/* A small refinement of the original v3.14.4 design.
   Keep its navy canvas, neon palette, logo, copy, and page structure. */
:root {
  --muted: #a5b3d0;
  --line: rgba(177, 198, 240, .15);
  --line2: rgba(177, 198, 240, .24);
}

body { line-height: 1.65; }
h1 { line-height: 1.2; letter-spacing: -.04em; }
h2, h3 { text-wrap: pretty; }
.hero { gap: 40px; padding: 48px 0 54px; }
.hero h1 { font-size: clamp(38px, 4.5vw, 56px); margin: 20px 0 22px; }
.hero h1 .gradient { display: inline-block; white-space: nowrap; font-size: .84em; letter-spacing: -.045em; }
.hero .lead { max-width: 38em; line-height: 1.95; }
.hero > *, .layout > *, .grid > * { min-width: 0; }
.lead, .notice p, .section-title p { overflow-wrap: anywhere; }
.section-title { flex-wrap: wrap; align-items: center; row-gap: 12px; margin-bottom: 20px; }
.section-title > div { min-width: 0; }
.section-title h2 { line-height: 1.4; letter-spacing: -.025em; }
.section-title p { line-height: 1.8; }
.explain-hero h2, .today-memory h2 { letter-spacing: -.025em; line-height: 1.4; }
.mock-live h2 { line-height: 1.4; letter-spacing: -.025em; }
.mock-live > p { line-height: 1.8; }

.card {
  border-color: rgba(177, 198, 240, .16);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .24);
}
.panel { padding: 24px; }
.mock-live { border-color: rgba(225, 166, 255, .22); }
.explain-hero { box-shadow: 0 16px 42px rgba(0, 0, 0, .18); }
.scene-card, .explain-card, .simple-step, .timeline-card,
.member-product-card, .notification-card, .follow-list-card {
  border-color: rgba(177, 198, 240, .15);
}
.scene-card b, .explain-card h3, .simple-step b { line-height: 1.55; }
.scene-card span, .simple-step span { line-height: 1.8; }
.nav button { line-height: 1.55; text-align: left; white-space: normal; }
.nav button.active { border-color: rgba(97, 189, 255, .34); }
.sidebar .card { box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.sidebar { top: 104px; }

button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.btn {
  min-height: 44px;
  font-weight: 800;
  line-height: 1.5;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn.primary { box-shadow: 0 8px 24px rgba(167, 65, 233, .23); }
.btn:disabled { transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid #81d5ff;
  outline-offset: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }
.topbar { background: rgba(5, 9, 20, .87); }
.creator-search { font-weight: 600; border-color: rgba(177, 198, 240, .2); }
.creator-search::placeholder { color: #a7b6d4; opacity: 1; }
.top-search:focus-within .creator-search { border-color: rgba(98, 195, 255, .65); }
.search-results-dropdown { border-color: rgba(177, 198, 240, .24); }
.search-row { line-height: 1.5; }
.mode-banner { font-weight: 700; gap: 14px; flex-wrap: wrap; height: auto; min-height: 34px; padding: 6px 16px; }
.lm-beta-note { font-size: 10px; line-height: 1.5; }
.lm-mode-label { font-size: 10px; line-height: 1.5; color: #c8d7f0; }
.user-pill { line-height: 1.45; }
.user-pill b { overflow-wrap: anywhere; }

.field { margin-bottom: 18px; }
.field label { color: #bac8e2; font-weight: 700; line-height: 1.6; margin-bottom: 9px; }
.input, select, textarea {
  background: rgba(5, 11, 24, .5);
  border-color: rgba(177, 198, 240, .23);
  color: #f8fbff;
  color-scheme: dark;
  line-height: 1.6;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input, select { min-height: 48px; }
textarea { padding-top: 13px; padding-bottom: 13px; }
.input::placeholder, textarea::placeholder { color: #8697b6; opacity: 1; }
.input:focus, select:focus, textarea:focus {
  border-color: rgba(98, 195, 255, .7);
  box-shadow: 0 0 0 3px rgba(59, 183, 255, .08);
}
select option { color: #f8fbff; background: #0c1427; }
.file-input { border-color: rgba(177, 198, 240, .28); line-height: 1.65; }
.file-input::file-selector-button {
  padding: 7px 11px;
  margin-right: 10px;
  border: 1px solid rgba(177, 198, 240, .3);
  border-radius: 9px;
  background: #1a2841;
  color: #ecf4ff;
  cursor: pointer;
}
.table th { color: #bac8e2; font-weight: 700; }
.table th, .table td { line-height: 1.6; }
.table-scroll { scrollbar-width: thin; scrollbar-color: #3d506f #0a1223; }
.table-scroll .table { margin-bottom: 1px; }
.mini-note, .media-meta, .role { line-height: 1.75; }
.lm-footer { margin-top: 44px; }
.footer-links button { min-height: 30px; line-height: 1.7; }

@media (hover: hover) {
  .btn:not(:disabled):hover { border-color: rgba(131, 205, 255, .5); background-color: rgba(255, 255, 255, .075); }
  .btn.primary:not(:disabled):hover { box-shadow: 0 10px 30px rgba(193, 68, 231, .33); transform: translateY(-1px); }
  .timeline-card:hover { border-color: rgba(113, 199, 255, .34); }
  .footer-links button:hover { color: #b6e7ff; }
}

@media (max-width: 980px) {
  .hero { gap: 28px; }
  .hero h1 { font-size: 44px; }
  .sidebar { top: 0; }
  .panel { padding: 22px; }
}

@media (max-width: 680px) {
  .mode-banner { font-size: 10px; line-height: 1.5; padding: 7px 12px; gap: 3px 12px; overflow-wrap: anywhere; }
  .lm-beta-note, .lm-mode-label { font-size: 9px; }
  .topbar, .topbar-inner { min-height: 124px !important; height: auto !important; }
  .topbar-inner {
    padding: 12px 16px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "logo actions" "search search" !important;
    gap: 10px !important;
  }
  .header-logo-btn .logo, .logo { width: 176px !important; max-width: 45vw !important; }
  .header-actions { gap: 6px !important; }
  .header-actions .btn { min-width: 0 !important; min-height: 40px; height: 40px !important; padding: 0 11px !important; font-size: 12px !important; }
  .user-pill { gap: 7px; padding: 6px 9px; font-size: 10px; max-width: 45vw; }
  .user-pill .avatar { width: 29px; height: 29px; flex-shrink: 0; }
  .user-pill .role { font-size: 9px; }
  .creator-search { height: 46px !important; font-size: 14px !important; border-radius: 14px !important; }
  .top-search:before { top: 9px !important; }
  body.mode-admin .topbar, body.mode-admin .topbar-inner,
  body.mode-member .topbar, body.mode-member .topbar-inner { min-height: 74px !important; }
  body.mode-admin .topbar-inner, body.mode-member .topbar-inner { grid-template-areas: "logo actions" !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .hero { gap: 24px; padding-top: 26px !important; padding-bottom: 26px !important; }
  .hero h1 { font-size: clamp(31px, 8.5vw, 37px) !important; line-height: 1.3; letter-spacing: -.035em; margin: 18px 0; }
  .hero .lead { font-size: 14px !important; line-height: 1.9 !important; }
  .login-actions { gap: 8px !important; }
  .login-actions .btn { height: 44px !important; min-height: 44px; font-size: 12px !important; }
  .mock-live { padding: 19px; }
  .mock-live h2 { font-size: 25px; }
  .card.panel { padding: 18px; }
  .section-title { gap: 12px; }
  .section-title h2 { font-size: 25px !important; }
  .section-title > .btn { max-width: 100%; white-space: normal; height: auto; padding-top: 9px; padding-bottom: 9px; }
  .nav { gap: 7px; }
  .nav button { min-height: 46px; }
  .actions { gap: 8px; }
  .actions > .btn { max-width: 100%; white-space: normal; height: auto; padding-top: 9px; padding-bottom: 9px; }
  .input, select, textarea { font-size: 16px; }
  .field label { font-size: 12px; }
  .explain-hero { padding: 22px; }
  .explain-hero h2 { font-size: 27px; line-height: 1.4; }
  .scene-grid { gap: 10px; }
  .scene-card { padding: 16px 14px; }
  .scene-card b { font-size: 14px; }
  .scene-card span { font-size: 11px; }
  .lm-footer { margin-top: 30px; }
  .footer-links { gap: 8px 14px; }
  .footer-links button { font-size: 11px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 30px !important; }
  .header-actions .btn { padding: 0 8px !important; font-size: 11px !important; }
  .user-pill { max-width: 43vw; font-size: 9px; }
  .user-pill .avatar { width: 25px; height: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
