/* ============================================================
   НавигаторПедагога — дизайн-система
   Палитра: пастельные фиолетовый · пурпурный · жёлтый · зелёный
   Шрифты: Fraunces (заголовки) · Manrope (текст) · JetBrains Mono (данные)
   ============================================================ */

@font-face { font-family: 'Onest'; src: url('../fonts/onest-cyrillic.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Golos Text'; src: url('../fonts/golos-text-cyrillic.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  /* --- signature palette (pastel) --- */
  --purple:        #8C6FD9;
  --purple-ink:     #4A3A8F;
  --purple-pastel:  #EDE7FC;
  --purple-pastel-2:#DCD1F7;

  --magenta:        #DD62B8;
  --magenta-ink:    #8F3572;
  --magenta-pastel: #FBE4F3;
  --magenta-pastel-2:#F6CCE9;

  --yellow:         #E9AC2C;
  --yellow-ink:     #7A5A0E;
  --yellow-pastel:  #FDF0D4;
  --yellow-pastel-2:#FAE3AC;

  --green:          #3FAE7D;
  --green-ink:      #1F6B4C;
  --green-pastel:   #DFF5EA;
  --green-pastel-2: #C4EBD8;

  /* --- neutrals --- */
  --bg:             #FBF9FF;
  --bg-alt:         #F5F1FC;
  --surface:        #FFFFFF;
  --surface-glass:  rgba(255,255,255,0.72);
  --border:         #E5DEF6;
  --ink:            #2B2148;
  --ink-soft:       #5B4E82;
  --ink-faint:      #9C8FC0;

  --shadow-sm: 0 2px 10px rgba(76, 53, 143, 0.06);
  --shadow-md: 0 10px 30px rgba(76, 53, 143, 0.10);
  --shadow-lg: 0 18px 48px rgba(76, 53, 143, 0.16);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-display: 'Onest', sans-serif;
  --font-body: 'Golos Text', sans-serif;
  --font-mono: 'Onest', sans-serif;

  --gradient-hero: linear-gradient(135deg, var(--purple-pastel) 0%, var(--magenta-pastel) 45%, var(--yellow-pastel) 78%, var(--green-pastel) 100%);
  --gradient-brand: linear-gradient(120deg, var(--purple) 0%, var(--magenta) 55%, var(--yellow) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--purple-ink); font-weight: 600; }
p { margin: 0; line-height: 1.55; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.mono { font-family: var(--font-mono); letter-spacing: 0.01em; }

/* ============ layout shell ============ */
#app { min-height: 100vh; }
.hidden { display: none !important; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-pill);
  padding: 12px 22px; font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--purple-ink); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--purple); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 8px 14px; }
.btn-ghost:hover { color: var(--purple-ink); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--magenta-pastel-2); color: var(--magenta-ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ============ landing ============ */
.landing-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251,249,255,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.landing-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--purple-ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: var(--shadow-sm); }
.landing-nav { display: flex; gap: 28px; align-items: center; }
.landing-nav a { font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.landing-nav a:hover { color: var(--purple-ink); }

.hero {
  background: var(--gradient-hero);
  padding: 76px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--purple-ink); background: var(--surface-glass); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--radius-pill); margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: 0; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--ink-soft); max-width: 490px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; }
.hero-stats div b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--purple-ink); }
.hero-stats div span { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }

/* signature route diagram */
.route-card {
  background: var(--surface-glass); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 26px;
}
.route-card h3 { font-size: 15px; margin-bottom: 4px; }
.route-card .sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin-bottom: 14px; }

section.section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--magenta-ink); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.section-head h2 { font-size: 34px; margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 15.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.feature-card h4 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); }
.tint-purple { background: var(--purple-pastel); color: var(--purple-ink); }
.tint-magenta { background: var(--magenta-pastel); color: var(--magenta-ink); }
.tint-yellow { background: var(--yellow-pastel); color: var(--yellow-ink); }
.tint-green { background: var(--green-pastel); color: var(--green-ink); }

.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.comp-pill { border-radius: var(--radius-md); padding: 18px; border: 1px solid var(--border); background: var(--surface); }
.comp-pill .ic { font-size: 22px; }
.comp-pill h5 { font-family: var(--font-body); font-weight: 700; font-size: 14px; margin: 10px 0 4px; color: var(--ink); }
.comp-pill p { font-size: 12.5px; color: var(--ink-faint); }

.ai-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ai-showcase .copy h2 { font-size: 32px; margin-bottom: 16px; }
.ai-showcase .copy p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 18px; }
.ai-showcase .copy ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.ai-showcase .copy li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); }
.ai-showcase .copy li .dot { flex: none; width: 22px; height: 22px; border-radius: 8px; background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; }

.mock-chat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 20px; }
.mock-chat .row { display: flex; margin-bottom: 12px; }
.mock-chat .bubble { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.mock-chat .ai .bubble { background: var(--purple-pastel); color: var(--purple-ink); border-bottom-left-radius: 4px; }
.mock-chat .me { justify-content: flex-end; }
.mock-chat .me .bubble { background: var(--gradient-brand); color: #fff; border-bottom-right-radius: 4px; }

.accounts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; cursor: pointer; transition: border-color .15s, transform .15s; }
.account-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.account-card .role-badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.account-card h5 { font-size: 15px; margin-bottom: 4px; }
.account-card p { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }

footer.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
footer.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer.site-footer p { font-size: 13px; color: var(--ink-faint); }

/* ============ auth panel ============ */
.auth-backdrop {
  position: fixed; inset: 0; background: rgba(43,33,72,0.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.auth-card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; padding: 32px; position: relative;
}
.auth-card .close-x { position: absolute; top: 18px; right: 18px; background: var(--bg-alt); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--ink-soft); }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-alt); padding: 4px; border-radius: var(--radius-pill); margin-bottom: 24px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 9px; border-radius: var(--radius-pill); font-weight: 700; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.auth-tabs button.active { background: var(--surface); color: var(--purple-ink); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 14px; background: var(--bg-alt); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); background: var(--surface); }
.form-error { background: var(--magenta-pastel); color: var(--magenta-ink); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.form-hint { font-size: 12px; color: var(--ink-faint); margin-top: 10px; text-align: center; }

/* ============ app shell ============ */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 8px 10px 22px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-md); background: var(--bg-alt); margin-bottom: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.side-user .info b { display: block; font-size: 13.5px; color: var(--ink); }
.side-user .info span { font-size: 11.5px; color: var(--ink-faint); font-family: var(--font-mono); }

.nav-group { margin-bottom: 6px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.nav-link .ic { width: 22px; text-align: center; font-size: 16px; }
.nav-link:hover { background: var(--bg-alt); color: var(--purple-ink); }
.nav-link.active { background: var(--purple-pastel); color: var(--purple-ink); }
.nav-spacer { flex: 1; }
.nav-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }

.main { padding: 30px 36px 60px; max-width: 1080px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { font-size: 26px; }
.topbar .sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.onboarding-side-note { margin: 2px 4px 16px; padding: 12px; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.45; }
.roadmap-workflow { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; align-items: center; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface); }
.roadmap-workflow.approved { border-left: 4px solid var(--green); }
.roadmap-workflow.pending { border-left: 4px solid var(--yellow); }
.workflow-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--bg-alt); color: var(--ink); font-weight: 800; font-size: 12px; }
.workflow-copy { display: grid; gap: 3px; min-width: 0; }
.workflow-copy b { font-size: 13.5px; }
.workflow-copy span { color: var(--ink-soft); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.search-audit { margin: -4px 0 14px; color: var(--ink-faint); font-size: 11.5px; }

.event-search { display: grid; grid-template-columns: minmax(0,1fr) auto 38px; gap: 8px; margin-bottom: 12px; }
.event-search input { min-width: 0; height: 42px; padding: 0 13px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; }
.event-search input:focus { outline: 2px solid color-mix(in srgb, var(--green) 30%, transparent); border-color: var(--green); }

.mentor-roadmap { margin: 22px 0; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mentor-roadmap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.mentor-roadmap-head h2 { margin: 3px 0 5px; font-size: 22px; }
.mentor-roadmap-head p { max-width: 680px; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.eyebrow { color: var(--green); font-size: 10.5px; font-weight: 800; letter-spacing: 0; }
.roadmap-editor { display: grid; gap: 16px; margin-top: 18px; }
.editor-field { display: grid; gap: 7px; }
.editor-field > span { font-size: 12px; font-weight: 750; color: var(--ink-soft); }
.editor-field textarea, .roadmap-event-editor input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); background: var(--surface); color: var(--ink); padding: 10px 12px; font: inherit; font-size: 13px; }
.editor-field textarea:focus, .roadmap-event-editor input:focus { outline: 2px solid color-mix(in srgb, var(--green) 25%, transparent); border-color: var(--green); }
.roadmap-priority-list { display: grid; gap: 12px; }
.roadmap-edit-block { border: 1px solid var(--border); background: var(--surface); padding: 15px; }
.roadmap-edit-title { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; font-size: 13.5px; }
.roadmap-edit-events { display: grid; gap: 8px; }
.roadmap-event-editor { display: grid; grid-template-columns: 1.4fr .65fr 1fr 1.2fr 1.6fr auto; gap: 7px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); }
.roadmap-event-controls { display: flex; gap: 4px; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-weight: 800; }
.icon-btn:hover { border-color: var(--green); }
.icon-btn.danger { color: var(--magenta-ink); }
.roadmap-editor-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.roadmap-history { display: grid; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.roadmap-history span { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.mentor-review-section { margin: 22px 0; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mentor-review-section .section-inline-head { margin-bottom: 12px; }
.mentor-review-section .section-inline-head h2 { font-size: 22px; }
.review-empty { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 1px dashed var(--border); color: var(--ink-soft); }
.review-empty > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--green-pastel); color: var(--green-ink); font-weight: 800; }
.review-empty b { color: var(--ink); font-size: 13.5px; }
.review-empty p { margin-top: 3px; font-size: 12px; line-height: 1.45; }
.report-review-row { display: grid; gap: 10px; padding: 15px; margin-top: 10px; border: 1px solid var(--border); background: var(--surface); }
.report-review-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.report-review-head > div { display: grid; gap: 3px; }
.report-review-head b { font-size: 13.5px; }
.report-review-head span, .report-review-meta { color: var(--ink-faint); font-size: 11.5px; }
.report-status { flex: none; padding: 5px 8px; background: var(--yellow-pastel); color: var(--yellow-ink) !important; font-size: 10px !important; font-weight: 800; }
.report-review-text { padding: 11px; background: var(--bg-alt); color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.report-feedback { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 12.5px; resize: vertical; }
.report-review-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-review-actions select { height: 34px; padding: 0 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.report-rate-label { color: var(--ink-faint); font-size: 11px; }
.add-event-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 13px 15px; border: 1px dashed var(--green); background: #f3f8f4; }
.add-event-bar > span { margin-right: auto; color: var(--green-ink); font-size: 12.5px; font-weight: 800; }
.add-event-bar select { height: 34px; max-width: 230px; padding: 0 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); }
.mentor-feedback-note { margin-top: 10px; padding: 11px 12px; border-left: 3px solid var(--green); background: #f3f8f4; }
.mentor-feedback-note b { font-size: 11px; color: var(--green-ink); }
.mentor-feedback-note p { margin-top: 4px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }

@media (max-width: 1050px) {
  .roadmap-event-editor { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .roadmap-event-controls { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .roadmap-workflow { grid-template-columns: 32px minmax(0,1fr); padding: 12px; }
  .workflow-mark { width: 30px; height: 30px; }
  .event-search { grid-template-columns: minmax(0,1fr) 38px; }
  .event-search .btn-primary { grid-column: 1 / -1; grid-row: 2; }
  .mentor-roadmap { padding: 18px 0; }
  .mentor-roadmap-head { display: grid; }
  .mentor-roadmap-head .btn { width: 100%; }
  .roadmap-event-editor { grid-template-columns: 1fr; padding: 12px 0; }
  .roadmap-event-controls { grid-column: auto; }
  .roadmap-editor-actions { display: grid; grid-template-columns: 1fr; }
  .roadmap-editor-actions .btn { width: 100%; }
  .report-review-head { display: grid; gap: 8px; }
  .report-status { justify-self: start; }
  .report-review-actions { display: grid; grid-template-columns: auto 1fr; }
  .report-review-actions .btn { width: 100%; }
  .add-event-bar { display: grid; grid-template-columns: 1fr; }
  .add-event-bar > span { margin: 0; }
  .add-event-bar select { max-width: none; width: 100%; }
}

.mobile-topbar { display: none; }

/* ============ cards / widgets ============ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-title { font-family: var(--font-body); font-weight: 800; font-size: 14.5px; color: var(--ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.stat-tile { border-radius: var(--radius-md); padding: 18px; }
.stat-tile b { display: block; font-family: var(--font-display); font-size: 26px; }
.stat-tile span { font-size: 12px; font-family: var(--font-mono); opacity: .85; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); }
.badge-purple { background: var(--purple-pastel); color: var(--purple-ink); }
.badge-magenta { background: var(--magenta-pastel); color: var(--magenta-ink); }
.badge-yellow { background: var(--yellow-pastel); color: var(--yellow-ink); }
.badge-green { background: var(--green-pastel); color: var(--green-ink); }
.badge-warn { background: var(--magenta-pastel-2); color: var(--magenta-ink); }

.progress-track { height: 9px; border-radius: var(--radius-pill); background: var(--bg-alt); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-pill); background: var(--gradient-brand); transition: width .4s ease; }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-state .emoji { font-size: 46px; margin-bottom: 12px; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }

/* ============ chips / filters ============ */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink-soft);
  padding: 8px 15px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--purple); }
.chip.active { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.chip.reply-chip { background: var(--purple-pastel); color: var(--purple-ink); border-color: var(--purple-pastel-2); }
.chip.reply-chip:hover { background: var(--purple-pastel-2); }

/* ============ coin / xp widget ============ */
.coin-widget { background: var(--yellow-pastel); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 14px; }
.xp-bar { height: 8px; border-radius: 5px; background: rgba(0,0,0,.08); overflow: hidden; }
.xp-bar-fill { height: 100%; background: var(--gradient-brand); border-radius: 5px; transition: width .3s; }

/* ============ journey map (Duolingo-style path of events) ============ */
.journey-map { position: relative; padding: 24px 0 8px; max-width: 460px; margin: 0 auto; }
.journey-map::before {
  content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 3px; transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--border) 0 8px, transparent 8px 16px); z-index: 0;
}
.journey-row { position: relative; z-index: 1; display: flex; margin-bottom: 6px; }
.journey-row.pos-0 { justify-content: center; }
.journey-row.pos-1 { justify-content: flex-end; padding-right: 14%; }
.journey-row.pos-2 { justify-content: center; }
.journey-row.pos-3 { justify-content: flex-start; padding-left: 14%; }
.journey-node-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.journey-node {
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; position: relative; border: 4px solid transparent; background: var(--surface);
  box-shadow: 0 5px 0 rgba(20,15,35,.1); transition: transform .12s;
}
.journey-node:hover { transform: translateY(-2px); }
.journey-node.done { background: var(--green); border-color: #fff; color: #fff; box-shadow: 0 5px 0 var(--green-ink); }
.journey-node.current { background: var(--gradient-brand); border-color: #fff; color: #fff; box-shadow: 0 5px 0 var(--purple-ink); animation: journey-pulse 1.8s infinite; }
.journey-node.locked { background: var(--bg-alt); color: var(--ink-faint); box-shadow: 0 5px 0 var(--border); opacity: .75; }
.journey-node .check-badge {
  position: absolute; bottom: -5px; right: -5px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-ink); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
}
@keyframes journey-pulse {
  0%, 100% { box-shadow: 0 5px 0 var(--purple-ink), 0 0 0 0 rgba(155,92,255,.45); }
  50% { box-shadow: 0 5px 0 var(--purple-ink), 0 0 0 9px rgba(155,92,255,0); }
}
.journey-label { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); max-width: 108px; line-height: 1.25; }
.journey-comp-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--purple-pastel); color: var(--purple-ink); }

/* ============ competency route diagram ============ */
.route-diagram { display: flex; flex-direction: column; gap: 0; }
.route-node { display: flex; align-items: flex-start; gap: 14px; position: relative; padding-bottom: 22px; }
.route-node:last-child { padding-bottom: 0; }
.route-node::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: -4px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px);
}
.route-node:last-child::before { display: none; }
.route-dot {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; background: var(--bg-alt); color: var(--ink-faint); z-index: 1;
}
.route-dot.done { background: var(--green); color: #fff; }
.route-dot.current { background: var(--gradient-brand); color: #fff; box-shadow: 0 0 0 5px var(--purple-pastel); }
.route-node .label { padding-top: 5px; font-size: 14px; font-weight: 600; color: var(--ink-faint); }
.route-node.done .label, .route-node.current .label { color: var(--ink); }

/* ============ events ============ */
.event-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; }
.event-date { flex: none; width: 62px; text-align: center; background: var(--purple-pastel); border-radius: 14px; padding: 10px 4px; }
.event-date .d { font-family: var(--font-display); font-size: 20px; color: var(--purple-ink); line-height: 1; }
.event-date .m { font-family: var(--font-mono); font-size: 10.5px; color: var(--purple-ink); text-transform: uppercase; }
.event-body { flex: 1; min-width: 0; }
.event-body h4 { font-size: 15.5px; margin-bottom: 6px; }
.event-body p.desc { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.event-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.event-actions { flex: none; }

/* ============ notes ============ */
.note-card { padding: 18px; cursor: pointer; }
.note-card h4 { font-size: 15px; margin-bottom: 6px; }
.note-card p { font-size: 13px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

/* ============ chat (AI assistant) ============ */
.chat-shell { display: flex; flex-direction: column; height: calc(100vh - 60px); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 26px 4px; display: flex; flex-direction: column; gap: 16px; }
.msg-row { display: flex; gap: 10px; max-width: 720px; }
.msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { padding: 13px 17px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.msg-row.ai .msg-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.msg-row.me .msg-bubble { background: var(--gradient-brand); color: #fff; border-bottom-right-radius: 5px; }
.msg-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.msg-avatar.ai { background: var(--gradient-brand); color: #fff; }
.msg-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-width: 720px; }
.msg-chips .chip { text-align: left; }
.typing-dots { display: inline-flex; gap: 4px; padding: 6px 4px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); opacity: .5; animation: bounce 1.1s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity:.4; } 40% { transform: translateY(-4px); opacity:1; } }

.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 4px; }
.chat-input-bar { display: flex; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.chat-input-bar input { flex: 1; border: none; background: transparent; font-size: 14.5px; font-family: var(--font-body); padding: 8px; }
.chat-input-bar input:focus { outline: none; }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--gradient-brand); color: #fff; border: none; cursor: pointer; font-size: 16px; flex: none; }
.chat-send[disabled] { opacity: .4; }

.roadmap-cta {
  background: var(--gradient-brand); border-radius: var(--radius-lg); padding: 26px; text-align: center; color: #fff; cursor: pointer;
  box-shadow: var(--shadow-md); transition: transform .15s;
}
.roadmap-cta:hover { transform: translateY(-2px); }
.roadmap-cta .big { font-size: 30px; margin-bottom: 6px; }
.roadmap-cta h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.roadmap-cta p { font-size: 12.5px; opacity: .9; }

.mode-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.mode-badge.live { background: var(--green-pastel); color: var(--green-ink); }
.mode-badge.offline { background: var(--yellow-pastel); color: var(--yellow-ink); }
.source-link { display: block; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--purple-ink); }
.source-link:hover { text-decoration: underline; }
.source-link .src { display: block; font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); margin-top: 2px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ modal ============ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(43,33,72,0.45); backdrop-filter: blur(3px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; padding: 28px; max-height: 88vh; overflow-y: auto; }
.modal-card h3 { margin-bottom: 18px; }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; box-shadow: var(--shadow-md); animation: toastIn .2s ease; }
@keyframes toastIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }

/* responsive */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .feature-grid, .comp-grid, .grid-3, .accounts-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-showcase { grid-template-columns: 1fr; }
  .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; inset: 0; height: 100vh; z-index: 150; width: 84%; box-shadow: var(--shadow-lg); }
  .mobile-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 30; }
  .main { padding: 20px 16px 50px; }
  .feature-grid, .comp-grid, .grid-3, .accounts-grid, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; }
}

/* ============================================================
   2026 visual refresh — editorial green / warm paper
   ============================================================ */
:root {
  --purple: #47735B;
  --purple-ink: #173629;
  --purple-pastel: #E6F0E8;
  --purple-pastel-2: #CFE3D4;
  --magenta: #E27457;
  --magenta-ink: #8A3F2E;
  --magenta-pastel: #FFF0EA;
  --magenta-pastel-2: #FFDACE;
  --yellow: #E5AA3C;
  --yellow-ink: #765016;
  --yellow-pastel: #FFF4D8;
  --yellow-pastel-2: #F6E1A9;
  --green: #2EA879;
  --green-ink: #155A43;
  --green-pastel: #DDF3E8;
  --green-pastel-2: #BDE6D0;
  --bg: #F7F8F4;
  --bg-alt: #EEF2EC;
  --surface: #FFFFFF;
  --surface-glass: rgba(255,255,255,.74);
  --border: #DCE5DD;
  --ink: #17211B;
  --ink-soft: #5E6D63;
  --ink-faint: #91A097;
  --shadow-sm: 0 4px 16px rgba(23,54,41,.07);
  --shadow-md: 0 14px 34px rgba(23,54,41,.11);
  --shadow-lg: 0 24px 70px rgba(23,54,41,.16);
  --gradient-hero: linear-gradient(135deg, #E5F0E8 0%, #F7F8F4 47%, #FFF0E6 100%);
  --gradient-brand: linear-gradient(120deg, #173629 0%, #47735B 65%, #E5AA3C 140%);
}

body {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .72;
  background:
    radial-gradient(circle at 7% 6%, rgba(46,168,121,.09), transparent 24rem),
    radial-gradient(circle at 93% 18%, rgba(226,116,87,.08), transparent 23rem);
}

h1, h2, h3, h4 { letter-spacing: 0; }
.btn { min-height: 44px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.btn-primary { box-shadow: 0 8px 18px rgba(23,54,41,.16); }
.btn-secondary { background: rgba(255,255,255,.78); }
.card, .feature-card, .comp-pill, .account-card, .mock-chat, .route-card, .note-card, .event-card {
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.card:hover, .note-card:hover, .account-card:hover { box-shadow: var(--shadow-md); }

/* Landing page */
.landing-header { background: rgba(247,248,244,.82); border-bottom-color: rgba(220,229,221,.8); }
.landing-header .brand { color: var(--purple-ink); }
.landing-brand-short { display: none; }
.landing-nav a { color: var(--ink-soft); }
.hero { isolation: isolate; }
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -130px;
  top: -160px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: 0 0 0 32px rgba(255,255,255,.12), 0 0 0 64px rgba(255,255,255,.08);
  pointer-events: none;
}
.hero h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; max-width: 650px; }
.hero-eyebrow { background: rgba(255,255,255,.6); border-color: rgba(255,255,255,.72); }
.hero p.lead { color: #52635A; }
.route-card {
  position: relative;
  overflow: hidden;
  background: #173629;
  color: #F4FAF5;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 70px rgba(23,54,41,.24);
}
.route-card::before {
  content: "";
  position: absolute;
  inset: auto -70px -130px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(229,170,60,.18);
}
.route-card h3 { color: #fff; position: relative; }
.route-card .sub { color: rgba(244,250,245,.58); position: relative; }
.route-card .route-node .label { color: rgba(244,250,245,.58); }
.route-card .route-node.done .label, .route-card .route-node.current .label { color: #fff; }
.route-card .route-node::before { background: repeating-linear-gradient(to bottom, rgba(255,255,255,.25) 0 6px, transparent 6px 12px); }
.route-card .route-dot { background: rgba(255,255,255,.12); color: rgba(255,255,255,.58); }
.route-card .route-dot.done { background: var(--green); color: #fff; }
.route-card .route-dot.current { background: var(--yellow); color: #173629; box-shadow: 0 0 0 5px rgba(229,170,60,.2); }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.feature-card, .comp-pill, .account-card { background: rgba(255,255,255,.86); }
.feature-card { padding: 28px; }
.feature-card:hover { transform: translateY(-6px); }
.mock-chat { background: rgba(255,255,255,.86); }

/* App shell */
.shell { grid-template-columns: 276px minmax(0, 1fr); background: linear-gradient(135deg, rgba(238,242,236,.7), rgba(247,248,244,.92)); }
.sidebar {
  background: #173629;
  border-right: none;
  color: #F4FAF5;
  box-shadow: 12px 0 36px rgba(23,54,41,.08);
}
.sidebar .brand { color: #fff; }
.sidebar .brand-mark { background: var(--yellow); color: #173629; box-shadow: none; }
.side-user { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.1); }
.side-user .info b { color: #fff; }
.side-user .info span { color: rgba(244,250,245,.56); }
.nav-link { color: rgba(244,250,245,.66); }
.nav-link:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-link.active { background: var(--yellow); color: #173629; }
.nav-foot { border-color: rgba(255,255,255,.13); }
.sidebar .coin-widget { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.13); color: #fff; }
.sidebar .coin-widget span:last-child { color: rgba(244,250,245,.56) !important; }
.sidebar .xp-bar { background: rgba(255,255,255,.14); }
.sidebar .xp-bar-fill { background: var(--yellow); }
.main { width: 100%; max-width: 1180px; padding: 38px clamp(18px, 4vw, 60px) 72px; }
.topbar { margin-bottom: 30px; }
.topbar h1 { font-size: clamp(26px, 3vw, 34px); }
.topbar .sub { color: var(--ink-soft); }
.mobile-topbar { background: #173629; border-bottom: 0; box-shadow: 0 8px 24px rgba(23,54,41,.12); }
.mobile-topbar .brand { color: #fff; }
.mobile-topbar .brand-mark { background: var(--yellow); color: #173629; }
.mobile-topbar .btn-secondary { color: #fff; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.18); }
.mode-badge.live { box-shadow: 0 0 0 4px rgba(46,168,121,.1); }

/* responsive polish */
@media (max-width: 980px) {
  .main { padding-left: 28px; padding-right: 28px; }
  .hero .container { gap: 34px; }
}
@media (max-width: 760px) {
  .landing-header .container { height: 64px; padding: 0 18px; }
  .landing-header .brand { font-size: 17px; }
  .landing-header .brand-mark { width: 34px; height: 34px; }
  .landing-nav { display: none; }
  .landing-header .container > div:last-child .btn-primary { display: none; }
  .hero { padding: 48px 0 58px; }
  .hero::after { width: 260px; height: 260px; right: -130px; top: -90px; }
  .hero .container { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero p.lead { font-size: 15px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { justify-content: space-between; gap: 14px; margin-top: 28px; }
  .hero-stats div b { font-size: 21px; }
  .route-card { padding: 20px; }
  section.section { padding: 62px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 30px; }
  .feature-card { padding: 22px; }
  .ai-showcase .copy h2 { font-size: 30px; }
  .shell { display: block; }
  .sidebar.open { inset: 0 12% 0 0; width: auto; max-width: 360px; height: 100dvh; overflow-y: auto; box-shadow: 18px 0 48px rgba(23,54,41,.28); }
  .mobile-topbar { padding: 12px 16px; }
  .main { padding: 24px 16px calc(72px + env(safe-area-inset-bottom)); }
  .topbar { align-items: flex-start; margin-bottom: 22px; }
  .topbar h1 { font-size: 26px; line-height: 1.12; }
  .topbar .sub { font-size: 12.5px; margin-top: 7px; }
  .card, .note-card, .event-card { border-radius: 18px; }
  .event-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .event-date { width: 54px; }
  .event-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
  .event-actions .btn { width: 100%; }
  .chat-shell { height: calc(100dvh - 112px); }
  .chat-scroll { padding: 18px 0; }
  .msg-row { max-width: 100%; }
  .msg-bubble { font-size: 14px; padding: 11px 13px; }
  .chat-input-bar { position: static; padding: 10px; }
  .modal-card, .auth-card { padding: 22px 18px; border-radius: 20px; }
  .toast-wrap { left: 16px; right: 16px; bottom: 16px; }
}
@media (max-width: 380px) {
  .landing-brand-full { display: none; }
  .landing-brand-short { display: inline; }
  .container { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 7px; }
  .hero-stats { gap: 8px; }
  .hero-stats div span { font-size: 10px; }
  .main { padding-left: 12px; padding-right: 12px; }
}

/* 2026 workspace refresh: restrained, data-first and fully responsive. */
:root {
  --purple: #087F8C;
  --purple-ink: #075A63;
  --purple-pastel: #E6F3F3;
  --purple-pastel-2: #C9E6E7;
  --magenta: #D5674E;
  --magenta-ink: #93402E;
  --magenta-pastel: #FBEAE6;
  --yellow: #D9A329;
  --green: #3D8061;
  --bg: #F4F6F5;
  --bg-alt: #EDF1EF;
  --surface: #FFFFFF;
  --border: #D9E0DD;
  --ink: #17211E;
  --ink-soft: #52605B;
  --ink-faint: #75827D;
  --shadow-sm: 0 1px 2px rgba(20, 34, 29, .06);
  --shadow-md: 0 12px 30px rgba(20, 34, 29, .09);
}

.svg-icon { display: inline-grid; flex: none; place-items: center; vertical-align: middle; }
.svg-icon svg { overflow: visible; }
.brand-mark { color: #fff; font-size: 11px; letter-spacing: 0; box-shadow: none; }

.shell { grid-template-columns: 272px minmax(0, 1fr); }
.sidebar {
  background: #FFFFFF; color: var(--ink); border-right: 1px solid var(--border);
  padding: 18px 14px; box-shadow: none;
}
.sidebar .brand { color: var(--ink); padding: 5px 8px 18px; gap: 11px; }
.sidebar .brand-mark { background: var(--purple); color: #fff; }
.side-user { background: #F5F7F6; border: 1px solid var(--border); }
.side-user .info b { color: var(--ink); }
.nav-link { min-height: 43px; color: #52605B; padding: 10px 11px; border-radius: 6px; }
.nav-link .ic { width: 22px; display: grid; place-items: center; }
.nav-link:hover { background: #F1F5F3; color: var(--ink); }
.nav-link.active { background: #163D3A; color: #FFFFFF; }
.nav-link.active .svg-icon { color: #77D1C8; }
.nav-foot { border-color: var(--border); }
.sidebar .coin-widget { background: #FFF8E7; border: 1px solid #EAD7A6; color: #6B5215; }
.sidebar .coin-widget span { color: inherit !important; }

.main { max-width: 1380px; padding: 34px clamp(22px, 4vw, 58px) 72px; }
.view-root { width: min(100%, 1180px); }
.topbar { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.topbar h1 { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 28px; font-weight: 720; }
.topbar h1 > .svg-icon { color: var(--purple); }
.topbar .sub { max-width: 760px; color: var(--ink-soft); }

.card { border-radius: 6px; box-shadow: none; }
.card-title { color: var(--ink); font-size: 13px; text-transform: uppercase; font-weight: 780; }
.stat-tile { position: relative; overflow: hidden; min-height: 112px; padding: 20px; border: 1px solid var(--border); background: #fff !important; color: var(--ink) !important; }
.stat-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--purple); }
.stat-tile.stat-magenta::before { background: var(--magenta); }
.stat-tile.stat-yellow::before { background: var(--yellow); }
.stat-tile.stat-green::before { background: var(--green); }
.stat-tile b { color: var(--ink); font-size: 30px; }
.stat-tile span { color: var(--ink-soft); opacity: 1; }

.algorithm-card { margin-top: 18px; padding: 24px; }
.algorithm-card .section-inline-head { margin-bottom: 22px; }
.algorithm-card .section-inline-head h3 { font-size: 18px; }
.algorithm-card .section-inline-head p { margin-top: 5px; color: var(--ink-soft); font-size: 13px; }
.editable-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.editable-stages .route-node {
  min-width: 0; padding: 0 12px 0 0; display: grid; justify-items: start; gap: 10px;
  border: 0; background: transparent; text-align: left; color: inherit; cursor: pointer;
}
.editable-stages .route-node::before { left: 31px; right: 0; top: 15px; bottom: auto; width: auto; height: 2px; background: var(--border); }
.editable-stages .route-node.done::before { background: var(--green); }
.editable-stages .route-dot { width: 32px; height: 32px; }
.editable-stages .route-node .label { display: grid; gap: 4px; padding: 0; line-height: 1.3; }
.editable-stages .route-node .label b { color: var(--ink); font-size: 12.5px; }
.editable-stages .route-node .label span { color: var(--ink-faint); font-size: 10.5px; font-weight: 500; }
.editable-stages .route-node:hover .route-dot { outline: 3px solid var(--purple-pastel-2); }

.event-search { grid-template-columns: minmax(260px, 1fr) auto auto; margin-bottom: 10px; }
.event-search-field { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--ink-faint); }
.event-search-field:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-pastel); }
.event-search-field input { width: 100%; height: auto; padding: 0; border: 0; outline: none !important; }
.event-filter-bar { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.event-filter-bar select { height: 40px; padding: 0 34px 0 11px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.event-results-meta { margin: 4px 0 14px; color: var(--ink-faint); font-size: 12px; }
.chip-row { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; }
.chip { flex: none; }
.event-card { border-left: 3px solid var(--purple); transition: border-color .15s ease, background .15s ease; }
.event-card:hover { border-color: var(--magenta); background: #FCFDFC; }
.event-date { border-radius: 6px; background: #E7F2F1; }

.portfolio-cover { display: flex; min-height: 188px; background: #173D3A; }
.portfolio-identity { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; min-width: 0; }
.avatar.portfolio-avatar { width: 104px; height: 104px; flex: none; border: 3px solid rgba(255,255,255,.8); border-radius: 8px; font-size: 28px; overflow: hidden; }
.avatar.portfolio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-cover-copy { min-width: 0; }
.portfolio-cover h2 { font-size: 34px; }
.portfolio-stage { background: #F0C350; color: #23322D; }

.report-note { min-height: 0; padding: 26px; justify-content: center; border: 1px solid var(--border); border-left: 5px solid var(--magenta); border-radius: 6px; background: #FFFFFF; color: var(--ink); box-shadow: none; }
.report-note span { color: var(--magenta-ink); }
.report-note b { color: var(--ink); font-size: clamp(23px, 3vw, 34px); }
.report-note p { color: var(--ink-soft); }

@media (max-width: 1040px) {
  .editable-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 0; }
  .editable-stages .route-node:nth-child(3)::before, .editable-stages .route-node:nth-child(6)::before { display: none; }
}

@media (max-width: 760px) {
  .mobile-topbar { background: #FFFFFF; color: var(--ink); border-bottom: 1px solid var(--border); }
  .mobile-topbar .brand { color: var(--ink); }
  .mobile-topbar .brand-mark { background: var(--purple); }
  .mobile-topbar .btn-secondary { background: #fff; color: var(--ink); border-color: var(--border); }
  .sidebar.open { inset: 0 10% 0 0; background: #fff; }
  .main { padding: 20px 14px calc(62px + env(safe-area-inset-bottom)); }
  .topbar h1 { font-size: 22px; }
  .topbar-actions { display: flex; width: 100%; }
  .topbar-actions .btn { flex: 1 1 auto; width: auto; }
  .editable-stages { grid-template-columns: 1fr; gap: 0; }
  .editable-stages .route-node { grid-template-columns: 32px minmax(0, 1fr); align-items: start; padding: 0 0 18px; }
  .editable-stages .route-node::before { display: block !important; left: 15px; right: auto; top: 32px; bottom: 0; width: 2px; height: auto; }
  .editable-stages .route-node:last-child::before { display: none !important; }
  .event-search { grid-template-columns: 1fr auto; }
  .event-search-field { grid-column: 1 / -1; }
  .event-search .btn-primary { grid-column: auto; grid-row: auto; }
  .event-filter-bar { grid-template-columns: 1fr; }
  .portfolio-cover { align-items: stretch; }
  .portfolio-identity { align-items: flex-start; gap: 14px; }
  .avatar.portfolio-avatar { width: 72px; height: 72px; }
  .portfolio-cover h2 { margin-top: 7px; font-size: 26px; }
}

@media (max-width: 420px) {
  .portfolio-identity { display: grid; }
  .portfolio-cover h2 { font-size: 24px; }
}

/* Account security, profile media and organization workspace */
.form-success { background: var(--green-pastel); color: var(--green-ink); border-radius: 7px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.link-button { width: 100%; margin-top: 10px; padding: 7px; border: 0; background: transparent; color: var(--purple-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-copy { margin: 8px 0 16px; text-align: left; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.card, .btn-secondary { background: var(--surface); }
.profile-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px 78px; }
.organization-workspace { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.organization-list { display: grid; gap: 6px; }
.organization-item { width: 100%; min-height: 66px; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.organization-item:hover, .organization-item.active { border-color: var(--purple); background: var(--purple-pastel); }
.organization-item span, .organization-item small { color: var(--ink-soft); font-size: 12px; }
.organization-editor { min-width: 0; padding-left: 24px; border-left: 1px solid var(--border); }
.organization-editor-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.organization-editor-head h2 { font-size: 22px; }
.organization-editor-head p { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.organization-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.process-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.process-metrics div { min-height: 78px; display: grid; align-content: center; gap: 4px; padding: 12px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.process-metrics b { font-size: 22px; color: var(--ink); }
.process-metrics span { font-size: 11px; color: var(--ink-soft); }
.section-heading { margin-bottom: 14px; font-size: 17px; }
.theme-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); gap: 22px; }
.theme-editor { min-width: 0; }
.theme-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.color-field, .range-field, .toggle-field { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.color-field input { width: 100%; height: 42px; padding: 3px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.range-field { margin-bottom: 14px; grid-template-columns: 1fr auto; }
.range-field input { grid-column: 1 / -1; width: 100%; }
.toggle-field { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.theme-preview { min-height: 250px; align-self: start; padding: 22px; border: 1px solid var(--border); border-top: 6px solid var(--preview-primary); border-radius: 8px; box-shadow: var(--shadow-sm); }
.theme-preview small { color: var(--preview-accent); font-weight: 800; }
.theme-preview h3 { margin-top: 32px; color: var(--preview-primary); }
.theme-preview p { margin: 8px 0 18px; color: var(--ink-soft); }
.theme-preview button { padding: 10px 14px; border: 0; border-radius: 6px; background: var(--preview-primary); color: #fff; font: inherit; font-weight: 700; }
.compact-mode .card { padding: 14px; }
.compact-mode .nav-link { min-height: 36px; }

@media (max-width: 760px) {
  .organization-workspace { grid-template-columns: 1fr; }
  .organization-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .organization-editor { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .process-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-layout { grid-template-columns: 1fr; }
  .theme-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-photo-actions { margin-left: 0; }
}

@media (max-width: 380px) {
  .organization-list, .theme-colors { grid-template-columns: 1fr; }
}

/* focused quiz experience */
.quiz-modal { width: min(900px, calc(100vw - 32px)); max-width: 900px; padding: 0; overflow: hidden; background: #f5f7f4; }
.quiz-header { display: flex; justify-content: space-between; gap: 20px; padding: 26px 30px 20px; background: #173629; color: #fff; }
.quiz-header h3 { margin: 6px 0 5px; color: #fff; font-size: 22px; line-height: 1.2; }
.quiz-header .quiz-subtitle { color: rgba(255,255,255,.68); font-size: 12.5px; }
.quiz-kicker { display: block; color: #d8a63c; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.quiz-header .quiz-close, .quiz-result-head .quiz-close { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; }
.quiz-progress { padding: 16px 30px 14px; background: #fff; border-bottom: 1px solid var(--border); }
.quiz-progress-meta { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }
.quiz-progress-meta b { color: var(--green-ink); }
.quiz-progress-track { height: 7px; margin-top: 9px; overflow: hidden; background: #e8ece8; border-radius: 8px; }
.quiz-progress-track > div { height: 100%; background: var(--green); border-radius: inherit; transition: width .25s ease; }
.quiz-layout { display: grid; grid-template-columns: 150px minmax(0,1fr); min-height: 430px; }
.quiz-rail { padding: 22px 16px; background: #edf1ec; border-right: 1px solid var(--border); }
.quiz-rail > span { display: block; margin-bottom: 12px; color: var(--ink-faint); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.quiz-rail-item { width: 34px; height: 34px; margin: 0 5px 8px 0; border: 1px solid #ccd6ce; border-radius: 9px; background: transparent; color: var(--ink-soft); font: 700 12px var(--font-body); cursor: pointer; }
.quiz-rail-item:hover { border-color: var(--green); }
.quiz-rail-item.active { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 3px 8px rgba(21,128,112,.2); }
.quiz-rail-item.answered:not(.active) { background: #d9ebe3; color: var(--green-ink); }
.quiz-question { padding: 30px; }
.quiz-question-label { color: var(--green-ink); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.quiz-question h4 { max-width: 650px; margin: 10px 0 5px; font-size: 21px; line-height: 1.3; }
.quiz-hint { color: var(--ink-faint); font-size: 12px; }
.quiz-options { display: grid; gap: 10px; margin-top: 24px; }
.quiz-option { display: grid; grid-template-columns: 34px minmax(0,1fr) 22px; gap: 12px; align-items: center; width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--ink); text-align: left; font: 500 13.5px/1.4 var(--font-body); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.quiz-option:hover { border-color: var(--green); transform: translateY(-1px); }
.quiz-option.selected { border-color: var(--green); background: #e7f3ed; box-shadow: 0 0 0 2px rgba(21,128,112,.1); }
.quiz-option-letter { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #edf1ec; color: var(--green-ink); font-weight: 800; }
.quiz-option.selected .quiz-option-letter { background: var(--green); color: #fff; }
.quiz-option-check { color: var(--green-ink); font-weight: 900; }
.quiz-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.quiz-footer .btn { min-width: 150px; }
.quiz-result-head { position: relative; padding: 30px; background: #173629; color: #fff; text-align: center; }
.quiz-result-head .quiz-close { position: absolute; top: 18px; right: 18px; }
.quiz-result-head h3 { margin: 8px 0 4px; color: #fff; font-size: 25px; }
.quiz-result-head > p { color: rgba(255,255,255,.72); font-size: 13px; }
.quiz-score { width: 92px; height: 92px; display: flex; align-items: baseline; justify-content: center; gap: 2px; margin: 18px auto 12px; border: 7px solid #d8a63c; border-radius: 50%; color: #fff; }
.quiz-score b { font-size: 29px; }
.quiz-score span { font-size: 13px; }
.quiz-result-note { max-width: 500px; margin: auto; }
.quiz-result-list { display: grid; gap: 8px; max-height: 330px; padding: 22px 30px; overflow-y: auto; background: #f5f7f4; }
.quiz-result-item { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 12px; border: 1px solid var(--border); border-left: 3px solid var(--green); background: #fff; }
.quiz-result-item.wrong { border-left-color: var(--yellow-ink); }
.quiz-result-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #d9ebe3; color: var(--green-ink); font-weight: 900; }
.quiz-result-item.wrong .quiz-result-mark { background: var(--yellow-pastel); color: var(--yellow-ink); }
.quiz-result-item b { display: block; font-size: 12.5px; line-height: 1.35; }
.quiz-result-item p { margin-top: 4px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.4; }
.quiz-result-close { display: block; margin: 0 30px 24px auto; }
.quiz-loading { margin-bottom: 18px; }
.quiz-loading h3 { margin: 7px 0 5px; }
.quiz-loading p { color: var(--ink-soft); font-size: 13px; }

@media (max-width: 640px) {
  .quiz-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); overflow-y: auto; }
  .quiz-header { padding: 20px 18px 17px; }
  .quiz-header h3 { max-width: 270px; font-size: 18px; }
  .quiz-progress { padding: 13px 18px; }
  .quiz-layout { display: block; min-height: 0; }
  .quiz-rail { display: flex; align-items: center; gap: 5px; padding: 11px 18px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .quiz-rail > span { flex: none; margin: 0 7px 0 0; }
  .quiz-rail-item { flex: none; margin: 0; }
  .quiz-question { padding: 22px 18px 18px; }
  .quiz-question h4 { font-size: 18px; }
  .quiz-option { grid-template-columns: 30px minmax(0,1fr) 18px; gap: 9px; padding: 12px; font-size: 13px; }
  .quiz-option-letter { width: 28px; height: 28px; }
  .quiz-footer { margin-top: 22px; }
  .quiz-footer .btn { min-width: 0; flex: 1; padding-left: 8px; padding-right: 8px; }
  .quiz-result-head { padding: 25px 18px; }
  .quiz-result-list { padding: 16px 18px; }
  .quiz-result-close { width: calc(100% - 36px); margin: 0 18px 18px; }
}

/* ============================================================
   Service modules: live chat, portfolio, files, reports
   ============================================================ */
.sidebar { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.nav-label { flex: 1; min-width: 0; }
.nav-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--magenta); color: #fff; font: 700 10px/1 var(--font-mono);
}
.nav-link.active .nav-count { background: var(--ink); color: #fff; }
.icon-btn {
  width: 42px; height: 42px; padding: 0; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink);
  font: 700 18px/1 var(--font-body); cursor: pointer; transition: transform .15s, border-color .15s, background .15s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--purple); background: var(--purple-pastel); }
.muted { color: var(--ink-faint); font-size: 13px; }
.text-link { display: inline-block; margin-top: 7px; color: var(--purple-ink); font-size: 12px; font-weight: 800; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* deep AI diagnostic */
.diagnostic-progress {
  padding: 14px 16px; margin-bottom: 2px; border: 1px solid var(--border); border-radius: 16px;
  background: rgba(255,255,255,.78); box-shadow: var(--shadow-sm);
}
.diagnostic-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-soft); }
.diagnostic-progress-head b { color: var(--purple-ink); font-family: var(--font-mono); }
.diagnostic-progress-track { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 5px; background: var(--bg-alt); }
.diagnostic-progress-track > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--yellow)); transition: width .35s ease; }

/* mentor chat */
.chat-peer-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--border); }
.chat-peer-head .card-title { margin: 0; }
.chat-live-status { margin-top: 4px; color: var(--green-ink); font-size: 10.5px; font-weight: 800; letter-spacing: 0; }
.peer-chat-scroll { min-height: 220px; max-height: 440px; overflow-y: auto; padding: 18px; background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }
.peer-chat-scroll .msg-row { margin-bottom: 10px; }
.peer-chat-scroll .msg-bubble { min-width: 90px; max-width: min(520px, 82vw); display: flex; flex-direction: column; }
.chat-empty { padding: 54px 12px; text-align: center; color: var(--ink-faint); font-size: 13px; }
.message-time { align-self: flex-end; margin-top: 6px; color: var(--ink-faint); font: 500 9px/1 var(--font-mono); }
.msg-row.me .message-time { color: rgba(255,255,255,.68); }
.message-file {
  margin-top: 9px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; text-align: left;
  border: 1px solid rgba(255,255,255,.22); border-radius: 11px; background: rgba(255,255,255,.12); color: inherit; cursor: pointer;
}
.msg-row.ai .message-file { border-color: var(--border); background: var(--bg-alt); }
.message-file-icon { font-size: 18px; }
.message-file b, .message-file small { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-file b { font-size: 11.5px; }
.message-file small { margin-top: 2px; opacity: .7; font-size: 9.5px; }
.peer-chat-composer { padding: 10px 14px 14px; border-top: 1px solid var(--border); background: #fff; }
.peer-chat-bar { display: flex; align-items: center; gap: 8px; }
.peer-chat-bar input[type="text"] { flex: 1; min-width: 0; height: 42px; border: 1.5px solid var(--border); border-radius: 12px; padding: 9px 13px; font: 500 13.5px var(--font-body); color: var(--ink); }
.peer-chat-bar input:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-pastel); }
.selected-file { margin-bottom: 8px; padding: 8px 10px; border-radius: 9px; background: var(--yellow-pastel); color: var(--yellow-ink); font-size: 11.5px; font-weight: 700; cursor: pointer; }

/* portfolio */
.portfolio-cover {
  min-height: 220px; padding: clamp(24px, 5vw, 46px); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden; border-radius: 24px; color: #fff; background: #173629; box-shadow: var(--shadow-lg);
}
.portfolio-cover::before { content: ""; position: absolute; width: 340px; height: 340px; right: -72px; top: -170px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); box-shadow: 0 0 0 35px rgba(255,255,255,.08), 0 0 0 70px rgba(255,255,255,.05); }
.portfolio-cover::after { content: ""; position: absolute; width: 220px; height: 220px; right: 16%; bottom: -155px; border-radius: 50%; background: rgba(229,170,60,.25); }
.portfolio-cover-copy, .portfolio-stage { position: relative; z-index: 1; }
.portfolio-kicker { font: 700 10.5px/1 var(--font-mono); color: #BBD2C5; }
.portfolio-cover h2 { max-width: 700px; margin: 13px 0 8px; color: #fff; font-size: clamp(30px, 5vw, 50px); line-height: 1.02; }
.portfolio-cover p { color: rgba(255,255,255,.7); font-size: 13px; }
.portfolio-stage { width: 92px; height: 92px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.portfolio-stage b { font: 700 29px/1 var(--font-display); }
.portfolio-stage span { margin-top: 5px; font: 700 8.5px/1 var(--font-mono); text-transform: uppercase; }
.portfolio-metrics { margin-top: 18px; }
.portfolio-overview, .portfolio-activity { margin-top: 18px; align-items: start; }
.portfolio-summary p { color: var(--ink-soft); font-size: 14px; line-height: 1.72; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.portfolio-section { margin-top: 28px; }
.section-inline-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.section-inline-head h3 { font-size: 22px; }
.section-inline-head p { margin-top: 4px; color: var(--ink-soft); font-size: 12.5px; }
.portfolio-item { display: grid; grid-template-columns: 48px minmax(0,1fr) 42px; align-items: center; gap: 14px; padding: 15px 16px; margin-bottom: 9px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.portfolio-item-mark { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--yellow-pastel); color: var(--yellow-ink); font: 800 11px/1 var(--font-mono); }
.portfolio-item-meta { display: block; color: var(--ink-faint); font: 600 9.5px/1 var(--font-mono); text-transform: uppercase; }
.portfolio-item h4 { margin: 5px 0 3px; font: 800 14px/1.25 var(--font-body); color: var(--ink); letter-spacing: 0; }
.portfolio-item p { color: var(--ink-soft); font-size: 12.5px; }
.evidence-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.evidence-row:last-child { border-bottom: 0; }
.evidence-row b { display: block; font-size: 13px; }
.evidence-row p { margin: 4px 0; color: var(--ink-soft); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evidence-row span { color: var(--ink-faint); font: 500 9.5px/1 var(--font-mono); }

/* files */
.file-list { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); }
.file-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.file-row:last-child { border-bottom: 0; }
.file-kind { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--purple-pastel); color: var(--purple-ink); font: 800 10px/1 var(--font-mono); }
.file-info { min-width: 0; }
.file-info b, .file-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info b { font-size: 13.5px; }
.file-info span { margin-top: 5px; color: var(--ink-faint); font-size: 11px; }

/* reports */
.report-stats { margin-bottom: 18px; }
.report-detail { align-items: stretch; }
.report-note { min-height: 220px; padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 20px; background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-md); }
.report-note span { font: 700 10px/1 var(--font-mono); text-transform: uppercase; }
.report-note b { margin: 12px 0 6px; font: 700 clamp(24px, 4vw, 38px)/1 var(--font-display); }
.report-note p { font-size: 13px; }
.data-table { margin-top: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.data-table-head, .data-table-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr .55fr .55fr; gap: 12px; align-items: center; padding: 13px 16px; }
.data-table-head { background: var(--ink); color: #fff; font: 700 9.5px/1 var(--font-mono); text-transform: uppercase; }
.data-table-row { border-top: 1px solid var(--border); font-size: 12.5px; }
.data-table-row:first-of-type { border-top: 0; }

/* notifications */
.notification-list { overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.notification-row { width: 100%; padding: 16px 18px; display: grid; grid-template-columns: 42px minmax(0,1fr) 24px; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--border); background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.notification-row:last-child { border-bottom: 0; }
.notification-row.unread { background: linear-gradient(90deg, var(--green-pastel), #fff 42%); }
.notification-row.unread::before { content: ""; position: absolute; }
.notification-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--bg-alt); font-size: 17px; }
.notification-copy b, .notification-copy span, .notification-copy small { display: block; }
.notification-copy b { font-size: 13.5px; }
.notification-copy span { margin: 3px 0 6px; color: var(--ink-soft); font-size: 12px; }
.notification-copy small { color: var(--ink-faint); font: 500 9.5px/1 var(--font-mono); }
.notification-arrow { color: var(--ink-faint); }

@media (max-width: 760px) {
  .sidebar { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .chat-peer-head { align-items: flex-start; }
  .chat-peer-head .btn { min-height: 40px; padding: 8px 11px; font-size: 11.5px; }
  .peer-chat-scroll { min-height: 250px; max-height: 48dvh; padding: 13px; }
  .peer-chat-bar { display: grid; grid-template-columns: 42px minmax(0,1fr); }
  .peer-chat-bar .btn { grid-column: 1 / -1; width: 100%; }
  .portfolio-cover { min-height: 260px; padding: 24px; align-items: flex-start; flex-direction: column; }
  .portfolio-cover-copy { width: 100%; min-width: 0; }
  .portfolio-cover h2 { font-size: 34px; overflow-wrap: anywhere; }
  .portfolio-stage { width: 76px; height: 76px; align-self: flex-end; }
  .portfolio-overview, .portfolio-activity { grid-template-columns: 1fr; }
  .portfolio-item { grid-template-columns: 42px minmax(0,1fr) 38px; gap: 10px; padding: 13px; }
  .portfolio-item-mark { width: 40px; height: 40px; }
  .file-row { grid-template-columns: 46px minmax(0,1fr); padding: 13px; }
  .file-row .btn { grid-column: 2; width: 100%; }
  .report-detail { grid-template-columns: 1fr; }
  .data-table-head { display: none; }
  .data-table-row { grid-template-columns: 1fr 1fr; gap: 9px 14px; padding: 16px; }
  .data-table-row > *::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--ink-faint); font: 600 8.5px/1 var(--font-mono); text-transform: uppercase; }
  .notification-row { padding: 14px 12px; grid-template-columns: 38px minmax(0,1fr) 18px; gap: 10px; }
  .topbar-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topbar-actions .btn { width: 100%; padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 380px) {
  .portfolio-cover h2 { font-size: 30px; }
}

/* ============================================================
   Navigator UI 3.0 - calm operational workspace
   ============================================================ */
:root {
  --purple: #087F8C;
  --purple-ink: #12353A;
  --purple-pastel: #E2F2F3;
  --purple-pastel-2: #BFE2E5;
  --magenta: #D65F4A;
  --magenta-ink: #84382D;
  --magenta-pastel: #FBEAE7;
  --magenta-pastel-2: #F2C8C0;
  --yellow: #E5A824;
  --yellow-ink: #654A09;
  --yellow-pastel: #FFF4D6;
  --yellow-pastel-2: #F2D98E;
  --green: #24845F;
  --green-ink: #15553D;
  --green-pastel: #E1F2EA;
  --green-pastel-2: #BEE2D1;
  --bg: #F4F6F5;
  --bg-alt: #EEF1F0;
  --surface: #FFFFFF;
  --surface-glass: #FFFFFF;
  --border: #D8DEDC;
  --ink: #18201E;
  --ink-soft: #56615E;
  --ink-faint: #7D8985;
  --shadow-sm: 0 1px 2px rgba(18, 35, 31, .05);
  --shadow-md: 0 8px 24px rgba(18, 35, 31, .08);
  --shadow-lg: 0 18px 48px rgba(18, 35, 31, .13);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --gradient-hero: #E7F1EF;
  --gradient-brand: #087F8C;
}

body { background: var(--bg); }
body::before { display: none; }
h1, h2, h3, h4 { color: var(--ink); }
.mono, .section-eyebrow, .hero-eyebrow { letter-spacing: 0; }

.btn {
  min-height: 42px; padding: 10px 16px; border-radius: 7px; font-size: 14px;
  box-shadow: none; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active, .btn-primary:hover { transform: none; }
.btn-primary, .chat-send { background: var(--purple); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #066D78; box-shadow: none; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: #8EA19B; background: #F8FAF9; }
.btn-danger { background: var(--magenta-pastel); color: var(--magenta-ink); }
.icon-btn { border-radius: 7px; }

.landing-header { background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.hero { padding: 64px 0 72px; background: #E7F1EF; border-bottom: 1px solid #CADBD6; }
.hero::after, .route-card::before, .portfolio-cover::before, .portfolio-cover::after { display: none; }
.hero .container { grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr); gap: 48px; }
.hero h1 { font-size: 52px; line-height: 1.08; max-width: 680px; }
.hero h1 em { background: none; color: var(--purple); }
.hero-eyebrow { border-radius: 6px; background: rgba(255,255,255,.72); }
.route-card { padding: 24px; border-radius: 8px; background: #1F2926; box-shadow: 0 18px 45px rgba(18,35,31,.16); }
.feature-card, .comp-pill, .account-card, .mock-chat, .note-card, .event-card { border-radius: 8px; box-shadow: var(--shadow-sm); }
.feature-card:hover { transform: translateY(-2px); }

.shell { grid-template-columns: 260px minmax(0, 1fr); background: var(--bg); }
.sidebar {
  padding: 18px 14px; background: #1F2926; color: #F6F8F7;
  box-shadow: none; border-right: 1px solid #34413D;
}
.sidebar .brand { padding: 6px 8px 20px; font-size: 18px; }
.sidebar .brand-mark { width: 34px; height: 34px; border-radius: 7px; background: var(--purple); color: #fff; }
.side-user { padding: 10px; border-radius: 7px; background: #293530; border: 1px solid #394741; }
.avatar { border-radius: 7px; }
.nav-link { min-height: 42px; border-radius: 6px; color: #BBC7C3; }
.nav-link:hover { background: #2A3732; }
.nav-link.active { background: #E0F0F1; color: #0D4E55; }
.nav-link.active .nav-count { background: #0D4E55; }
.sidebar .coin-widget { border-radius: 7px; }

.main { max-width: 1240px; padding: 32px 40px 64px; }
.topbar { min-height: 56px; margin-bottom: 24px; align-items: flex-start; }
.topbar h1 { font-size: 30px; line-height: 1.2; }
.topbar .sub { margin-top: 5px; }
.card {
  padding: 20px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-title { font-size: 14px; margin-bottom: 12px; }
.stat-tile { border-radius: 8px; box-shadow: none; }
.badge, .mode-badge { border-radius: 5px; }
.field input, .field select, .field textarea,
.peer-chat-bar input[type="text"] { border-radius: 7px; background: #fff; }
.auth-card, .modal-card { border-radius: 8px; }
.auth-tabs { border-radius: 7px; }
.auth-tabs button, .auth-tabs button.active { border-radius: 5px; }

.chat-peer-head { padding: 14px 16px; background: #F8FAF9; }
.peer-chat-scroll { min-height: 340px; background: #F5F7F6; }
.msg-bubble { border-radius: 8px; }
.msg-row.me .msg-bubble { background: #087F8C; }
.message-file, .selected-file { border-radius: 6px; }
.peer-chat-composer { padding: 12px; }

.video-provider-dialog { max-width: 540px; }
.video-dialog-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 7px; background: var(--purple-pastel); font-size: 22px; }
.video-provider-dialog > p { margin: -10px 0 18px; line-height: 1.5; }
.video-options { display: grid; gap: 10px; margin-bottom: 10px; }
.video-option { width: 100%; padding: 16px; display: grid; gap: 5px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.video-option:hover { border-color: var(--purple); background: #F7FBFB; }
.video-option.primary { border-color: #8FC7CC; background: #EFF8F8; }
.video-option b { font-size: 15px; }
.video-option span { color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.video-option small { color: var(--green-ink); font-size: 11px; font-weight: 700; }

.portfolio-cover { min-height: 210px; padding: 32px; border-radius: 8px; background: #1F2926; box-shadow: var(--shadow-md); }
.portfolio-cover h2 { font-size: 40px; line-height: 1.1; }
.portfolio-stage { width: 84px; height: 84px; border-radius: 8px; background: #E5A824; }
.portfolio-item, .data-table, .notification-list, .file-list { border-radius: 8px; }
.portfolio-item-mark, .notification-icon, .file-kind { border-radius: 6px; }
.report-note { border-radius: 8px; background: #1F2926; }
.data-table-head { background: #293530; }
.notification-row.unread { background: #EFF8F5; }
.toast { border-radius: 7px; }

@media (max-width: 980px) {
  .main { padding: 28px 24px 60px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
}

@media (max-width: 760px) {
  .mobile-topbar { min-height: 60px; padding: 10px 14px; background: #1F2926; }
  .mobile-topbar .brand { font-size: 16px; }
  .mobile-topbar .brand-mark { border-radius: 6px; background: var(--purple); color: #fff; }
  .sidebar.open { inset: 0 14% 0 0; border-radius: 0; }
  .main { padding: 20px 14px calc(56px + env(safe-area-inset-bottom)); }
  .topbar { gap: 12px; margin-bottom: 18px; }
  .topbar h1 { font-size: 24px; }
  .topbar-actions { grid-template-columns: 1fr; }
  .hero { padding: 42px 0 50px; }
  .hero h1 { font-size: 38px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stats div span { font-size: 11px; }
  .card { padding: 16px; }
  .chat-peer-head { display: grid; grid-template-columns: 1fr; }
  .chat-peer-head .btn { width: 100%; }
  .peer-chat-scroll { min-height: 300px; max-height: 50dvh; }
  .peer-chat-bar { grid-template-columns: 42px minmax(0,1fr) !important; }
  .portfolio-cover { min-height: 240px; padding: 22px; }
  .portfolio-cover h2 { font-size: 31px; }
  .portfolio-stage { border-radius: 7px; }
  .modal-backdrop, .auth-backdrop { padding: 10px; align-items: flex-end; }
  .modal-card, .auth-card { max-height: 92dvh; border-radius: 8px 8px 0 0; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .main { padding-left: 10px; padding-right: 10px; }
  .card { padding: 14px; }
  .portfolio-cover h2 { font-size: 28px; }
}

/* Final workspace layer. Keep after legacy themes so organization colors remain configurable. */
.shell { grid-template-columns: 272px minmax(0, 1fr); background: var(--bg); }
.sidebar { padding: 18px 14px; background: #FFFFFF; color: var(--ink); border-right: 1px solid var(--border); }
.sidebar .brand { padding: 5px 8px 18px; color: var(--ink); gap: 11px; }
.sidebar .brand-mark { background: var(--purple); color: #fff; }
.side-user { background: #F5F7F6; border-color: var(--border); }
.side-user .info b { color: var(--ink); }
.nav-link { min-height: 43px; padding: 10px 11px; color: var(--ink-soft); }
.nav-link:hover { background: #F1F5F3; color: var(--ink); }
.nav-link.active { background: #173D3A; color: #FFFFFF; }
.nav-link.active .svg-icon { color: #7DD4CB; }
.nav-foot { border-color: var(--border); }
.sidebar .coin-widget { background: #FFF8E7; border: 1px solid #EAD7A6; color: #6B5215; }
.sidebar .coin-widget span { color: inherit !important; }
.main { max-width: 1380px; padding: 34px clamp(22px, 4vw, 58px) 72px; }
.view-root { width: min(100%, 1180px); }
.topbar { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.topbar h1 { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 28px; }
.topbar h1 > .svg-icon { color: var(--purple); }
.card { border-radius: 6px; box-shadow: none; }
.stat-tile { min-height: 112px; background: #fff !important; color: var(--ink) !important; }
.portfolio-cover { min-height: 188px; background: #173D3A; }
.portfolio-cover h2 { font-size: 34px; }
.portfolio-stage { background: #F0C350; color: #23322D; }
.report-note { min-height: 0; padding: 26px; justify-content: center; border: 1px solid var(--border); border-left: 5px solid var(--magenta); border-radius: 6px; background: #FFFFFF; color: var(--ink); box-shadow: none; }
.report-note span { color: var(--magenta-ink); }
.report-note b { color: var(--ink); font-size: clamp(23px, 3vw, 34px); }
.report-note p { color: var(--ink-soft); }

@media (max-width: 760px) {
  .mobile-topbar { background: #FFFFFF; color: var(--ink); border-bottom: 1px solid var(--border); }
  .mobile-topbar .brand { color: var(--ink); }
  .mobile-topbar .brand-mark { background: var(--purple); }
  .mobile-topbar .btn-secondary { background: #fff; color: var(--ink); border-color: var(--border); }
  .sidebar.open { inset: 0 10% 0 0; background: #fff; }
  .main { padding: 20px 14px calc(62px + env(safe-area-inset-bottom)); }
  .topbar h1 { font-size: 22px; }
  .topbar-actions { display: flex; width: 100%; }
  .topbar-actions .btn { flex: 1 1 auto; width: auto; }
  .portfolio-cover { min-height: 220px; }
  .portfolio-cover h2 { font-size: 26px; }
}

.web-event-review { margin-bottom: 18px; padding: 20px; border: 1px solid #E5D39B; border-left: 4px solid var(--yellow); border-radius: 6px; background: #FFFBF0; }
.web-event-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.web-event-review-head h3 { margin: 4px 0; color: var(--ink); font-size: 18px; }
.web-event-review-head p { max-width: 700px; color: var(--ink-soft); font-size: 13px; }
.web-event-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid #EBDDB4; }
.web-event-row > div { display: grid; gap: 3px; min-width: 0; }
.web-event-row b { overflow-wrap: anywhere; font-size: 13.5px; }
.web-event-row span { color: var(--ink-faint); font-size: 11.5px; }

.leader-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.leader-card { position: relative; min-height: 215px; display: grid; justify-items: center; align-content: center; padding: 24px 18px; border: 1px solid var(--border); border-top: 4px solid var(--purple); border-radius: 6px; background: #fff; text-align: center; }
.leader-card.rank-1 { border-top-color: var(--yellow); background: #FFFCF3; }
.leader-card.rank-2 { border-top-color: #8A9993; }
.leader-card.rank-3 { border-top-color: var(--magenta); }
.leader-rank { position: absolute; top: 12px; left: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--ink); font-weight: 800; }
.leader-name { margin-top: 10px; color: var(--ink); font-weight: 760; }
.leader-subject { margin-top: 3px; color: var(--ink-faint); font-size: 12px; }
.leader-score { display: grid; gap: 2px; margin-top: 14px; }
.leader-score b { color: var(--purple-ink); font-size: 14px; }
.leader-score span { color: var(--ink-soft); font-size: 11.5px; }
.leader-list { overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.leader-row { display: grid; grid-template-columns: 38px 34px minmax(0, 1fr) 110px 110px; gap: 12px; align-items: center; min-height: 68px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.leader-row:last-child { border-bottom: 0; }
.leader-row.is-me { background: var(--purple-pastel); }
.leader-position { color: var(--ink-faint); text-align: center; }
.leader-person, .leader-level { display: grid; gap: 3px; min-width: 0; }
.leader-person b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.leader-person span, .leader-level span { color: var(--ink-faint); font-size: 11px; }
.leader-level b { color: var(--ink); font-size: 12px; }
.leader-coins { color: var(--yellow-ink); font-size: 12px; text-align: right; }

@media (max-width: 760px) {
  .web-event-review-head { display: grid; }
  .web-event-review-head .badge { justify-self: start; }
  .web-event-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .leader-podium { grid-template-columns: 1fr; }
  .leader-card { min-height: 180px; }
  .leader-row { grid-template-columns: 28px 30px minmax(0, 1fr) auto; padding: 10px; gap: 8px; }
  .leader-level { display: none; }
  .leader-coins { font-size: 11px; }
}

/* Authentication is the product entry point, not a marketing landing page. */
.auth-home {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: #F2F6F4;
}
.auth-home-header {
  width: min(100% - 48px, 1180px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.auth-home-header .brand { color: var(--ink); }
.auth-home-status { color: var(--ink-soft); font-size: 13px; }
.auth-home-main {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 54px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: clamp(48px, 8vw, 116px);
  align-items: center;
}
.auth-intro { max-width: 620px; }
.auth-intro-kicker {
  margin-bottom: 16px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.auth-intro h1 {
  max-width: 580px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
}
.auth-intro > p { max-width: 590px; margin-top: 22px; color: var(--ink-soft); font-size: 17px; }
.auth-benefits { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.auth-benefits div { padding: 18px 16px 0 0; display: grid; gap: 5px; }
.auth-benefits b { color: var(--ink); font-size: 13px; }
.auth-benefits span { color: var(--ink-faint); font-size: 12px; line-height: 1.4; }
.auth-panel { width: 100%; }
.auth-panel .auth-card {
  max-width: none;
  padding: 30px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--purple);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(24, 32, 30, .10);
}
.auth-card-head { margin-bottom: 20px; }
.auth-card-head span { color: var(--ink); font-size: 20px; font-weight: 780; }
.auth-card-head p { margin-top: 4px; color: var(--ink-soft); font-size: 13px; }
.auth-panel .auth-tabs { margin-bottom: 20px; }
.auth-panel .field input,
.auth-panel .field select { min-height: 46px; font-size: 16px; }
.quick-access {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 32px 0 46px;
  border-top: 1px solid var(--border);
}
.quick-access-head { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.quick-access-head span { color: var(--purple); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.quick-access-head h2 { margin-top: 5px; color: var(--ink); font-size: 24px; }
.quick-access-head p { max-width: 520px; color: var(--ink-soft); font-size: 13px; text-align: right; }
.quick-access .account-card { min-height: 138px; padding: 18px; border-radius: 7px; box-shadow: none; }
.quick-access .account-card:hover { transform: none; background: #F8FBFA; }
.auth-home-footer { padding: 18px 24px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 12px; text-align: center; }

@media (max-width: 820px) {
  .auth-home { display: block; }
  .auth-home-header { width: min(100% - 32px, 620px); min-height: 66px; }
  .auth-home-status { display: none; }
  .auth-home-main { width: min(100% - 32px, 620px); padding: 30px 0 34px; grid-template-columns: 1fr; gap: 28px; }
  .auth-intro-kicker { margin-bottom: 10px; }
  .auth-intro h1 { font-size: 34px; line-height: 1.08; }
  .auth-intro > p { margin-top: 14px; font-size: 14px; }
  .auth-benefits { margin-top: 20px; grid-template-columns: 1fr; }
  .auth-benefits div { padding: 10px 0; grid-template-columns: 130px 1fr; border-bottom: 1px solid var(--border); }
  .auth-panel .auth-card { padding: 22px 18px; max-height: none; border-radius: 8px; }
  .quick-access { width: min(100% - 32px, 620px); padding: 28px 0 34px; }
  .quick-access-head { display: grid; gap: 8px; }
  .quick-access-head p { text-align: left; }
  .quick-access .accounts-grid { grid-template-columns: 1fr; gap: 10px; }
  .quick-access .account-card { min-height: 0; }
}

@media (max-width: 390px) {
  .auth-home-header, .auth-home-main, .quick-access { width: calc(100% - 24px); }
  .auth-home-header .brand { font-size: 17px; }
  .auth-intro h1 { font-size: 30px; }
  .auth-benefits div { grid-template-columns: 1fr; gap: 2px; }
  .auth-panel .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .auth-panel .auth-tabs button { padding: 10px 6px; }
}
