/* ============================================================
   Exxat One — Design System
   Colors sampled from reference-ui screenshots.
   ============================================================ */
:root {
  /* Brand */
  --brand: #dd276d;          /* Exxat "One" magenta / Ask Leo */
  --brand-hover: #c51e5e;
  --brand-soft: #fdeff5;
  --brand-softer: #fbf5fa;

  /* Ink (dark neutral CTA, sampled from reference dialog) */
  --ink: #39393c;
  --ink-hover: #242426;

  /* Radio selected state, sampled from reference radio button */
  --radio-blue: #6d8cf5;
  --radio-blue-soft: rgba(109, 140, 245, 0.18);

  /* Destructive */
  --danger: #de2019;
  --danger-hover: #c31812;
  --danger-soft: #fdecec;

  /* Neutrals */
  --text: #121216;
  --text-2: #4c4c54;
  --text-3: #74747e;
  --border: #e7e6ec;
  --border-strong: #d8d7df;
  --surface: #ffffff;
  --bg: #faf9fd;
  --bg-nav: #f2f1fe;
  --field: #ffffff;
  --field-bg: #fbfbfd;

  /* Status */
  --success: #1e9e63;
  --success-soft: #e8f6ee;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(18, 18, 22, 0.05);
  --shadow-sm: 0 1px 3px rgba(18, 18, 22, 0.06), 0 1px 2px rgba(18, 18, 22, 0.04);
  --shadow-md: 0 4px 16px rgba(18, 18, 22, 0.08), 0 1px 3px rgba(18, 18, 22, 0.05);
  --shadow-lg: 0 18px 48px rgba(18, 18, 22, 0.16), 0 6px 16px rgba(18, 18, 22, 0.08);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
::selection { background: rgba(221, 39, 109, 0.16); }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); }
h1, h2, h3 { font-family: var(--serif); margin: 0; letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }

/* ============================================================
   Top Navigation
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 60px; padding: 0 28px;
  background: var(--bg-nav);
  border-bottom: 1px solid #e6e4f5;
}
.nav-logo { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.nav-logo .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ff5fa2 0%, #dd276d 55%, #d21f52 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 17px;
  box-shadow: 0 2px 6px rgba(221, 39, 109, 0.35);
}
.nav-logo .wordmark { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.nav-logo .wordmark .one { color: var(--brand); }
.nav-logo .caret { color: var(--text-3); margin-left: 2px; }

.nav-links { display: flex; align-items: center; gap: 6px; margin: 0 auto 0 12px; }
.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
  border: none; background: transparent; position: relative;
}
.nav-link:hover { background: rgba(18,18,22,0.04); color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--text); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.ask-leo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: linear-gradient(120deg, #e94f8a 0%, #dd276d 100%);
  color: #fff; font-weight: 600; font-size: 14px; border: none;
  box-shadow: 0 2px 8px rgba(221,39,109,0.28); position: relative;
}
.ask-leo .beta {
  position: absolute; top: -7px; right: -6px;
  background: #ffd84d; color: #6a4a00; font-size: 8px; font-weight: 700;
  padding: 1px 5px; border-radius: var(--r-pill); letter-spacing: 0.05em;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; border: none; background: transparent; color: var(--text-2);
  position: relative;
}
.icon-btn:hover { background: rgba(18,18,22,0.06); color: var(--text); }
.icon-btn .badge {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; font-size: 9.5px; font-weight: 700;
  border-radius: var(--r-pill); display: grid; place-items: center; border: 2px solid var(--bg-nav);
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #9db4ff, #6d8bff);
  display: grid; place-items: center; color: #fff; border: none;
}
.avatar.lg { width: 56px; height: 56px; }
.avatar svg { width: 55%; height: 55%; }

/* ---------- Profile dropdown ---------- */
.menu {
  position: absolute; top: 54px; right: 0; width: 240px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 8px;
  z-index: 60;
}
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: var(--r-sm); border: none; background: transparent;
  color: var(--text); font-size: 14.5px; font-weight: 500; text-align: left;
}
.menu-item:hover { background: rgba(18,18,22,0.045); }
.menu-item.active { box-shadow: inset 0 0 0 1.5px var(--text); border-radius: var(--r-sm); }
.menu-item.danger { color: var(--danger); }
.menu-item svg { color: var(--text-3); }
.menu-item.danger svg { color: var(--danger); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* ============================================================
   Layout
   ============================================================ */
.page { max-width: 1180px; margin: 0 auto; padding: 40px 28px 80px; }
.hero-row { display: flex; align-items: center; gap: 24px; margin-bottom: 34px; }
.hero-title { font-size: 34px; font-weight: 600; }

.prism {
  margin-left: auto; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(100deg, #fdeef4, #f4eefb);
  border: 1px solid #f2dde9; border-radius: var(--r-md);
  padding: 14px 20px; max-width: 560px;
}
.prism .p-mark { width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ff5fa2, #dd276d); display:grid; place-items:center;
  color:#fff; font-family: var(--serif); font-weight:700; font-size:14px; }
.prism-word { font-family: var(--serif); font-weight: 700; font-size: 15px; }
.prism-word .accent { color: var(--brand); }
.prism .txt { font-size: 13.5px; color: var(--text-2); }
.prism .link { color: var(--brand); font-weight: 600; white-space: nowrap; }

/* ---------- Card grid ---------- */
.grid-3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.card.pad { padding: 22px; }
.card.hoverable { transition: box-shadow .15s ease, transform .15s ease; cursor: pointer; }
.card.hoverable:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.profile-head { display: flex; align-items: flex-start; gap: 14px; }
.profile-head .name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.profile-head .meta { color: var(--text-2); font-size: 13.5px; }
.profile-head .edit { margin-left: auto; color: var(--text-3); background: none; border: none; }
.progress-label { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 13.5px; color: var(--text-2); }
.pill {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; border: 1px solid var(--brand); color: var(--brand); background: #fff;
}
.progress-track { height: 7px; background: #eee; border-radius: var(--r-pill); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #de2019, #dd276d); border-radius: var(--r-pill); }
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-row .pct { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.tip {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  background: var(--field-bg); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 13px; color: var(--text-2);
}
.feature-card { padding: 20px; display: flex; flex-direction: column; }
.feature-card .fc-head { display: flex; align-items: center; }
.feature-card .fc-title { display:flex; align-items:center; gap:9px; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.feature-card .fc-sub { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.feature-card .fc-arrow { margin-left: auto; color: var(--text-2); }
.fc-illus { margin-top: 16px; border-radius: var(--r-md); height: 130px;
  background: linear-gradient(135deg, #eef0fb, #f6eef7); display: grid; place-items: center; }
.fc-illus svg { opacity: .9; }

.section-title { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.section-sub { color: var(--text-2); font-size: 13.5px; margin: 2px 0 16px; }

.todo-card { padding: 24px; }
.todo-head { display: flex; align-items: center; gap: 12px; }
.todo-head .ico { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--field-bg);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-2); }
.todo-head .t { font-weight: 700; font-size: 15.5px; }
.badge-soft { margin-left: auto; background: #eef1ff; color: #3f5bd6; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: var(--r-pill); }
.todo-body { color: var(--text-2); margin: 14px 0 16px; font-size: 14px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; display:block; }
.inline-field { display: flex; gap: 12px; }
.input-wrap { position: relative; flex: 1; }
.input-wrap > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
input[type="text"], input[type="password"], input[type="email"], textarea {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--text);
  background: var(--field); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 12px 14px; outline: none; transition: border-color .12s, box-shadow .12s;
}
.input-wrap input { padding-left: 40px; }
input:focus, textarea:focus { border-color: var(--text-3); box-shadow: none; }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.quick { display: flex; align-items: center; gap: 8px; padding: 14px 18px; }
.quick .q-label { font-weight: 700; font-size: 15px; margin-right: 8px; }
.quick .divider { width: 1px; align-self: stretch; background: var(--border); margin: 0 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: #fff;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
}
.chip:hover { border-color: var(--border-strong); }
.chip .count { background: #eef0f3; color: var(--text-2); font-size: 11.5px; font-weight: 700;
  border-radius: var(--r-pill); padding: 1px 7px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; border-radius: var(--r-md);
  padding: 11px 20px; border: 1px solid transparent; transition: background .12s, border-color .12s, box-shadow .12s, color .12s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(57,57,60,.25); }
.btn-primary:hover:not(:disabled) { background: var(--ink-hover); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 1px 2px rgba(222,32,25,.25); }
.btn-danger:hover:not(:disabled) { background: var(--danger-hover); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--field-bg); border-color: var(--text-3); }
.btn-subtle { background: transparent; color: var(--text-2); }
.btn-subtle:hover { background: rgba(18,18,22,0.05); color: var(--text); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--brand); font-weight: 600; padding: 0; }

/* ============================================================
   Account Settings (full-screen modal sheet)
   ============================================================ */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(30,30,36,0.55);
  z-index: 100; display: flex; justify-content: center;
  animation: fade .18s ease;
}
.sheet {
  position: fixed; inset: 24px 0 0 0; background: var(--surface);
  border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
  overflow-y: auto; animation: slideUp .28s cubic-bezier(.22,.61,.36,1);
}
.sheet-inner { max-width: 1360px; margin: 0 auto; padding: 40px 56px 80px; position: relative; }
.sheet-close {
  position: absolute; top: 32px; right: 40px; width: 38px; height: 38px; border-radius: 50%;
  background: #ececf0; border: none; color: var(--text-2); display: grid; place-items: center;
}
.sheet-close:hover { background: #e2e1e6; color: var(--text); }
.sheet h1 { font-size: 30px; font-weight: 600; }
.sheet .subtitle { color: var(--text-2); margin-top: 4px; font-size: 14.5px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 24px 0 0; padding-bottom: 12px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: transparent; border: none; border-radius: var(--r-md);
  color: var(--text-2); font-size: 14px; font-weight: 600; position: relative;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: #f2f2f5; }
.tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -13px;
  height: 2px; background: var(--text); border-radius: 1px;
}

.settings-body { padding-top: 28px; }
.settings-body h2 { font-size: 19px; font-weight: 700; font-family: var(--serif); }
.settings-body .sec-sub { color: var(--text-2); font-size: 14px; margin: 3px 0 20px; }

.panel { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-xs); background: var(--surface); }
.panel-title { font-weight: 700; font-size: 16px; }
.panel-sub { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 16px 0;
}
.row + .row { border-top: 1px solid var(--border); }
.row .r-ico { color: var(--text-3); }
.row .r-title { font-weight: 600; font-size: 14.5px; }
.row .r-sub { color: var(--text-3); font-size: 13px; margin-top: 1px; }
.row .r-right { margin-left: auto; }
.status-active { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 600; font-size: 14px; }
.status-scheduled { display: inline-flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 600; font-size: 14px; }
.round-link {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: #fff; display: grid; place-items: center; color: var(--text-2);
}
.round-link:hover { border-color: var(--text-3); color: var(--text); }
.hint-row { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* Need Help panel: collapsible "More Account Actions" subsection */
.collapse-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; padding: 2px 0; cursor: pointer;
  font-weight: 600; font-size: 14.5px; color: var(--text-2); text-align: left;
}
.collapse-toggle:hover { color: var(--text); }
.collapse-caret { display: flex; color: var(--text-3); transition: transform .18s ease; }
.collapse-caret.open { transform: rotate(180deg); }
.collapse-body { margin-top: 14px; animation: fade .15s ease; }
.collapse-body .btn-link { color: var(--danger); font-size: 14.5px; }

/* ============================================================
   Flow dialog (centered modal for delete / school / recovery)
   ============================================================ */
.dialog-backdrop {
  position: fixed; inset: 0; background: rgba(24,24,30,0.5); z-index: 200;
  display: grid; place-items: center; padding: 24px; animation: fade .18s ease;
  overflow-y: auto;
}
.dialog {
  width: 100%; max-width: 480px; background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .22s cubic-bezier(.22,.61,.36,1);
  margin: auto;
}
.dialog.wide { max-width: 520px; }
.dialog-body { padding: 32px; }
.dialog-illus { display: grid; place-items: center; margin-bottom: 20px; }
.success-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.success-tick {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #1e9e63; color: #fff;
}
.dialog h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.dialog .lead { color: var(--text-2); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
.dialog-foot { display: flex; gap: 12px; margin-top: 28px; }
.dialog-foot.between { justify-content: space-between; }
.dialog-foot.center-cta,
.flow-dialog .dialog-foot.center-cta { justify-content: center; }
.success-cta { min-width: 200px; }
.dialog-foot .grow { flex: 1; }

/* No-school delete flow: title + close button row, matching reference dialog */
.flow-dialog .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.flow-dialog h2 { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.flow-dialog .dialog-x {
  background: none; border: none; padding: 2px; margin: -2px -2px 0 0; flex: none;
  color: var(--text-3); cursor: pointer; display: grid; place-items: center; border-radius: var(--r-sm);
}
.flow-dialog .dialog-x:hover { color: var(--text); }
.flow-dialog .btn-primary {
  background: var(--ink); color: #fff; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(57,57,60,.25); padding: 9px 16px; font-size: 13.5px;
}
.flow-dialog .btn-primary:hover:not(:disabled) { background: var(--ink-hover); }
.flow-dialog .btn-ghost,
.flow-dialog .btn-danger { padding: 9px 16px; font-size: 13.5px; }
.flow-dialog .dialog-foot { justify-content: flex-end; }

/* Keep the pop-up the same size across every step, regardless of content length */
.flow-dialog {
  width: 480px; max-width: 92vw; height: 540px; max-height: 86vh;
  display: flex; flex-direction: column;
}
.flow-dialog.auto-height { height: auto; max-height: 86vh; }
.flow-dialog.auto-height .dialog-body { flex: none; }
.flow-dialog .dialog-body {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column;
}
.flow-dialog .dialog-body:not(.center) .dialog-foot { margin-top: auto; padding-top: 24px; }
.flow-dialog .dialog-body.center { justify-content: center; }

.steps { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; }
.step-dot { height: 5px; flex: 1; border-radius: var(--r-pill); background: var(--border); }
.step-dot.done { background: var(--text-3); }
.step-dot.current { background: var(--text-3); opacity: .55; }

.info-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; }
.info-list .li-ico { flex: none; display: grid; place-items: center; color: var(--text-2); margin-top: 1px; }
.info-list .li-ico.d { color: var(--danger); }
.info-list .li-text .t { font-weight: 600; font-size: 14.5px; }
.info-list .li-text .s { color: var(--text-3); font-size: 13px; margin-top: 1px; line-height: 1.5; }

/* Timeline variant: a single connecting line runs behind the icons.
   Its top/height are computed in JS (positionTimelineLines) from the actual
   rendered position of the first and last icon, so it always ends exactly
   at the last (trash) icon's center and never trails past it. */
.info-list.timeline { position: relative; }
.info-list.timeline .tl-row { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0; }
.info-list.timeline .tl-line { position: absolute; left: 9px; width: 1.5px; background: var(--border-strong); z-index: 0; }
.info-list.timeline .li-ico { position: relative; z-index: 1; width: 20px; height: 20px; background: var(--surface); }

/* Radio options: plain circle + label, no card/border */
.radio-group { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.radio {
  display: flex; align-items: center; gap: 12px; padding: 0;
  border: none; border-radius: 0; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--text);
}
.radio .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none;
  display: grid; place-items: center; transition: border-color .12s, box-shadow .12s; }
.radio:hover .dot { border-color: var(--text-3); }
.radio.selected .dot { border-color: var(--radio-blue); box-shadow: 0 0 0 3px var(--radio-blue-soft); }
.radio.selected .dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--radio-blue); }
.other-box { margin-top: 12px; animation: fade .16s ease; }

.field-block { margin-top: 22px; }
.pw-row { position: relative; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-3); padding: 4px; }
.error-text { color: var(--danger); font-size: 13px; margin-top: 8px; display: flex; align-items: center; gap: 6px; }

.callout {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px;
  background: var(--field-bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px;
}
.callout.warn { background: #fff8ec; border-color: #f3e2bf; }
.callout .c-ico { flex: none; color: var(--text-2); margin-top: 1px; }
.callout .c-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.success-badge { width: 84px; height: 84px; border-radius: 50%; background: var(--success-soft);
  display: grid; place-items: center; color: var(--success); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 380px; }

.support-line { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--field-bg); font-size: 14px; }
.support-line .s-ico { color: var(--text-2); }
.support-email { color: var(--text-2); font-weight: 600; }

/* ============================================================
   Auth screens (login / recovery) — split layout
   ============================================================ */
.auth-split { display: flex; min-height: 100vh; background: #fff; }

/* Left promo panel */
.auth-left {
  position: relative; flex: 1 1 56%; overflow: hidden; color: #fff;
  padding: 30px 56px 48px; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #fdf3bf 0%, #f7a9b6 34%, #ef5f8f 58%, #e11e6b 100%);
}
.auth-brand { display: flex; align-items: center; gap: 9px; }
.auth-brand .mark { width: 30px; height: 30px; border-radius: 7px;
  background: radial-gradient(circle at 30% 25%, #ff5fa2, #dd276d); display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 17px; }
.auth-brand .wm { font-family: var(--serif); font-weight: 700; font-size: 21px; color: #fff; }
.auth-art { flex: 1; display: grid; place-items: center; }
.cohere { display: grid; grid-template-columns: repeat(2, 104px); grid-template-rows: repeat(4, 104px); gap: 14px; }
.tile { border-radius: 10px; display: grid; place-items: center; font-family: var(--sans);
  font-weight: 800; font-size: 58px; color: transparent; -webkit-text-stroke: 2.5px #16323b; }
.t-c { grid-area: 1/1; } .t-o { grid-area: 2/1; } .t-h { grid-area: 2/2; }
.t-e1 { grid-area: 3/1; } .t-r { grid-area: 3/2; } .t-e2 { grid-area: 4/2; }
.auth-promo h2 { font-family: var(--sans); font-weight: 800; font-size: 46px; line-height: 1.02;
  letter-spacing: -0.02em; color: #fff; }
.auth-promo .loc { font-weight: 700; font-size: 15px; margin-top: 14px; line-height: 1.5; }
.promo-btn { margin-top: 20px; align-self: flex-start; background: #fff; color: var(--brand);
  border: none; border-radius: var(--r-pill); padding: 12px 22px; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-sm); }

/* Right auth panel */
.auth-right { flex: 1 1 44%; max-width: 780px; display: flex; flex-direction: column;
  justify-content: center; padding: 48px 72px; position: relative; }
.auth-mark-lg { width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ff5fa2, #dd276d); display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 23px; margin-bottom: 24px; }
.auth-right h1 { font-family: var(--sans); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.auth-field { margin: 24px 0 0; }
.btn-indigo { background: #4d4fc4; color: #fff; }
.btn-indigo:hover:not(:disabled) { background: #4143b0; }
.auth-fine { font-size: 13px; color: var(--text-3); margin-top: 14px; line-height: 1.5; }
.auth-fine a { color: var(--text-2); }
.auth-links { margin-top: 26px; font-size: 14.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 10px; }
.auth-links a { color: #4d4fc4; font-weight: 600; text-decoration: none; }
.auth-foot { position: absolute; bottom: 26px; left: 72px; right: 72px; display: flex;
  align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.auth-foot .cs { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border);
  padding: 8px 14px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; background: #fff; }

/* Recovery message on the right panel */
.rp-badge { width: 60px; height: 60px; border-radius: 50%; background: #fff4ec; color: #d97706;
  display: grid; place-items: center; margin-bottom: 20px; }
.auth-right .lead { color: var(--text-2); font-size: 15px; margin-top: 0; margin-bottom: 0; line-height: 1.55; max-width: 440px; }
.recovery-sub { color: var(--text-3); font-size: 13px; margin-top: 4px; line-height: 1.5; max-width: 440px; }
.recovery-box {
  margin-top: 14px; padding: 16px 18px; max-width: 440px;
  border: 1px solid var(--border); border-radius: var(--r-md);
}
.auth-cta-col { display: flex; flex-direction: column; gap: 10px; max-width: 440px; margin-top: 26px; }

@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { flex: 1; max-width: none; padding: 40px 28px; }
  .auth-foot { left: 28px; right: 28px; }
}

/* ============================================================
   Prototype control panel
   ============================================================ */
.proto {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  background: #17171c; color: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: 268px; overflow: hidden; font-size: 13px;
}
.proto-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #202027; font-weight: 600; }
.proto-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #46d17f; }
.proto-head .close { margin-left: auto; background: none; border: none; color: #9a9aa5; }
.proto-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 14px; }
.proto-label { color: #9a9aa5; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.seg { display: flex; background: #2a2a32; border-radius: var(--r-sm); padding: 3px; margin-top: 6px; }
.seg button { flex: 1; border: none; background: transparent; color: #b9b9c4; font-size: 12px; font-weight: 600;
  padding: 7px 6px; border-radius: 6px; }
.seg button.on { background: var(--brand); color: #fff; }
.proto-note { color: #83838f; font-size: 11.5px; line-height: 1.4; }
.proto-jump { display: flex; gap: 8px; }
.proto-jump button { flex: 1; background: #2a2a32; color: #e6e6ee; border: none; border-radius: 7px; padding: 8px; font-size: 12px; font-weight: 600; }
.proto-jump button:hover { background: #34343d; }
.proto-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  background: #17171c; color: #fff; border: none; border-radius: var(--r-pill);
  padding: 10px 16px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: #17171c; color: #fff; padding: 12px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 400;
  display: flex; align-items: center; gap: 9px; animation: pop .2s ease;
}
.toast svg { color: #46d17f; }

/* ---------- Animations ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(28px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .prism { margin-left: 0; max-width: none; flex-wrap: wrap; }
  .prism .link { white-space: normal; }
  .nav-links { display: none; }
  .sheet-inner { padding: 32px 20px 60px; }
  .sheet-close { top: 24px; right: 18px; }
  .quick { flex-wrap: wrap; }
  .quick .divider { display: none; }
  .row { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .page { padding: 28px 16px 64px; }
  .hero-title { font-size: 28px; }
  .nav { padding: 0 14px; gap: 8px; }
  .nav-right { gap: 6px; }
  .ask-leo { display: none; }
  .nav-right .icon-btn:nth-child(2), .nav-right .icon-btn:nth-child(3) { display: none; }
  .nav-logo .wordmark { font-size: 18px; }
  .dialog-foot { flex-wrap: wrap; }
  .dialog-foot .btn { flex: 1; }
  .proto { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-width: 300px; }
}
