/* Vera web app, in the Vera brand: Primary Dark #6541EC with Orchid, Lavender and Sky Cyan accents on the
   lavender-to-blue wash of the splash screen, white rounded cards, pill buttons, Montserrat Alternates for
   headings and Inter for text. Fonts are served from here (no third parties). */

@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/montserrat-alternates-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/montserrat-alternates-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/montserrat-alternates-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat Alternates"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/montserrat-alternates-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #EEEDF8; --wash: linear-gradient(170deg, #F3EAF4 0%, #ECEBF8 42%, #E4ECFD 100%);
  --surface: #FFFFFF; --surface-2: #F3F4FA; --ink: #14162B; --ink-2: #4A4F68; --ink-3: #6D7290;
  --line: #E7E9F3; --line-2: #D9DCEA; --accent: #6541EC; --accent-ink: #5230D9; --accent-soft: #E9E4FD;
  --good: #16935B; --good-soft: #E1F5EA; --warn-soft: #FFF3E3; --bad: #D93A3A; --bad-soft: #FDECEC;
  --btn: #6541EC; --btn-ink: #FFFFFF; --navy: #14162B; --navy-2: #2A2C55;
  --brand: #8FA8F6; --brand-light: #DCE6FF; --lavender: #C7B4E8; --orchid: #DDA4E8; --sky: #69C7F7; --pink: #F799D8; --blue: #0085FF;
  --hero: linear-gradient(135deg, #6541EC 0%, #7B62F0 50%, #8FA8F6 100%);
  --shadow: 0 1px 2px rgba(40, 40, 90, .04), 0 10px 30px -12px rgba(60, 60, 140, .18);
  --shadow-lg: 0 30px 70px -24px rgba(60, 50, 160, .38);
  --c: #6541EC; /* the person's companion color, set from /me */
  --serif: "Montserrat Alternates", "Inter", system-ui, sans-serif; /* headings, as in the Vera brand */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 22px; --side: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1022; --wash: linear-gradient(160deg, #141530 0%, #0F1226 50%, #18132B 100%);
    --surface: #1A1B33; --surface-2: #23253F; --ink: #EEEFF8; --ink-2: #BCC0D6; --ink-3: #8E93AE;
    --line: #2A2D4A; --line-2: #383B5C; --accent: #9C86FF; --accent-ink: #BBAEFF; --accent-soft: #2B2556;
    --good: #4CC98C; --good-soft: #17332A; --warn-soft: #33291A; --bad: #F27C7C; --bad-soft: #3A1F24;
    --btn: #6F62F7; --btn-ink: #FFFFFF; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1022; --wash: linear-gradient(160deg, #141530 0%, #0F1226 50%, #18132B 100%);
  --surface: #1A1B33; --surface-2: #23253F; --ink: #EEEFF8; --ink-2: #BCC0D6; --ink-3: #8E93AE;
  --line: #2A2D4A; --line-2: #383B5C; --accent: #9C86FF; --accent-ink: #BBAEFF; --accent-soft: #2B2556;
  --good: #4CC98C; --good-soft: #17332A; --warn-soft: #33291A; --bad: #F27C7C; --bad-soft: #3A1F24;
  --btn: #6F62F7; --btn-ink: #FFFFFF; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--wash) fixed, var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.025em; }
.title { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -.015em; }
.title2 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.h3 { font-size: 16px; font-weight: 600; }
.lead { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; line-height: 1.45; }
.tiny { font-size: 12px; }
.label { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.quote { font-family: var(--serif); font-size: 19px; line-height: 1.45; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .12s, opacity .15s, background .15s; text-decoration: none; }
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.lg { height: 54px; font-size: 16px; border-radius: 14px; padding: 0 26px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); opacity: 1; }
.btn.plain { background: transparent; color: var(--ink-2); }
.btn.plain:hover { background: var(--surface-2); opacity: 1; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--bad); border-color: var(--line-2); }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); flex-shrink: 0; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.link { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: currentColor; }

.field { display: grid; gap: 7px; }
.field > span { font-weight: 600; font-size: 14px; }
.field > small { color: var(--ink-3); font-size: 13px; }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B7385' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.input.big { height: 60px; font-size: 22px; text-align: center; border-radius: 14px; font-family: var(--serif); }
.input.code { height: 64px; font-size: 30px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: .5em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.err { color: var(--bad); font-weight: 500; font-size: 14px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.seg button { height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 33, 58, .12); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days button { height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: 13px; }
.days button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-weight: 500; font-size: 14px; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.switch { width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; flex-shrink: 0; border: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
.switch[aria-checked="true"] { background: var(--good); }
.switch[aria-checked="true"]::after { left: 21px; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card.pad-lg { padding: 22px; }
.card.soft { background: var(--accent-soft); border-color: transparent; }
.card.warn { background: var(--warn-soft); border-color: transparent; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.li { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; color: inherit; text-decoration: none; }
.li:first-child { border-top: 0; }
button.li:hover, a.li:hover { background: var(--surface-2); }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; font-weight: 600; }
.li .t span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
.li .t span.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t span.meta { display: flex; align-items: center; gap: 6px; }
.li .t span.meta svg { flex-shrink: 0; }
.li .t span.pill { display: inline-flex; width: auto; margin-top: 0; font-size: 12px; color: var(--ink-2); }
.li .t span.reprow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.li .r { font-size: 13px; color: var(--ink-3); text-align: right; flex-shrink: 0; }
.li .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex-shrink: 0; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 12px; }
.sec h2 { font-size: 17px; font-weight: 600; }
.sec .link { font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill.good { background: var(--good-soft); color: var(--good); }
.badge { min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 99px; background: var(--c); transition: width .6s ease; }
.empty { text-align: center; padding: 36px 20px; display: grid; gap: 10px; justify-items: center; }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); }
.empty p { max-width: 340px; color: var(--ink-3); }
.skel { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- avatars ---------- */
.av { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: calc(var(--s) * .44); color: #fff; }
.av.mono { background: color-mix(in srgb, var(--col) 18%, var(--surface)); color: color-mix(in srgb, var(--col) 75%, var(--ink)); }
.av.me { background: var(--surface-2); color: var(--ink-2); font-family: var(--sans); font-weight: 600; }
.orb { --s: 36px; position: relative; width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 18%, #fff) 0%, color-mix(in srgb, var(--c) 62%, #fff) 30%, var(--c) 64%, color-mix(in srgb, var(--c) 85%, #000) 100%);
  box-shadow: 0 calc(var(--s) * .2) calc(var(--s) * .5) calc(var(--s) * -.25) color-mix(in srgb, var(--c) 80%, transparent); }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 33% 26%, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, 0) 22%); }
.orb.live { animation: breathe 5.5s ease-in-out infinite; }
.orb.live::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 34%, transparent) 0%, transparent 66%); animation: glow 6s ease-in-out infinite; }
.orb.talk { animation: talk .5s ease-in-out infinite; }
.ripples { position: relative; display: grid; place-items: center; }
.ripples > i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--c); opacity: 0; animation: ripple 5.4s ease-out infinite; }
.ripples > i:nth-child(2) { animation-delay: 1.8s; } .ripples > i:nth-child(3) { animation-delay: 3.6s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes ripple { 0% { transform: scale(.95); opacity: .45; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes talk { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s ease both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---------- app shell: top nav on wide screens, bottom tabs on phones ---------- */
.logo { display: inline-flex; align-items: flex-end; text-decoration: none; color: var(--accent); line-height: 1; }
.logo svg { height: 34px; width: auto; display: block; }
.topnav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-top: env(safe-area-inset-top); }
.topnav .in { max-width: 1160px; margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.topnav nav { display: flex; gap: 4px; }
.navi { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.navi:hover { background: var(--surface-2); }
.navi[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.navi .badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; font-size: 11px; }
.topnav .sp { flex: 1; }
.topnav .right { display: flex; align-items: center; gap: 10px; }
.minsPill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.meBtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
.meBtn[aria-current="page"] .av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.main { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 860px; margin: 0 auto; padding: 44px 24px 80px; }
.page.wide { max-width: 1120px; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.phead .title { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-weight: 600; font-size: 14px; text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--accent); }
.tabbar { display: none; }
.asBanner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; }
.asBanner button { border: 1px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; border-radius: 99px; height: 26px; padding: 0 10px; font-size: 12.5px; font-weight: 600; }
.wide-only { }
.narrow-only { display: none; }
.iconbtn.bell { position: relative; }
.iconbtn.bell .pip { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 920px) {
  .topnav .in { height: 60px; padding: 0 12px 0 16px; gap: 10px; }
  .topnav nav, .topnav .wide-only { display: none; }
  .topnav .narrow-only { display: inline-grid; }
  .logo svg { height: 30px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--ink-3); font-size: 11.5px; font-weight: 600; text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .page { padding: 24px 16px calc(96px + env(safe-area-inset-bottom)); }
  .title { font-size: 28px; }
  .phead { margin-bottom: 18px; }
}

/* ---------- welcome / onboarding ---------- */
.ob { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--c) 16%, var(--bg)) 0%, var(--bg) 62%); }
.obtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; max-width: 1080px; width: 100%; margin: 0 auto; }
.obtop .wordmark { padding: 0; }
.obmid { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.obmid.center { text-align: center; align-items: center; }
.obmid > * { animation: rise .5s ease both; }
.obmid > :nth-child(2) { animation-delay: .05s; } .obmid > :nth-child(3) { animation-delay: .1s; } .obmid > :nth-child(4) { animation-delay: .15s; } .obmid > :nth-child(5) { animation-delay: .2s; }
.obfoot { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.steps { display: flex; gap: 6px; }
.steps i { width: 26px; height: 4px; border-radius: 99px; background: var(--line-2); transition: background .3s; }
.steps i.on { background: var(--ink); }
.hero { display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero .display { max-width: 640px; }
.hero .lead { max-width: 500px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 860px; margin: 18px auto 0; text-align: left; }
.feat { background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 8px; align-content: start; }
.feat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.feat b { font-size: 15.5px; }
.feat p { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
@media (max-width: 720px) { .feats { grid-template-columns: 1fr; } }
.fine { font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.5; }
.tiles { display: grid; gap: 10px; }
.tile { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--ink-3); }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); flex-shrink: 0; }
.tile b { display: block; font-size: 15.5px; font-weight: 600; }
.tile small { display: block; color: var(--ink-3); font-size: 13.5px; margin-top: 1px; }
.tile i.q { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink-2); margin-top: 4px; }
.tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), var(--shadow); }
.tile .ck { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: transparent; }
.tile[aria-pressed="true"] .ck { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.keep { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 16px; box-shadow: var(--shadow); text-align: left; }
.keep ol, .keep ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.keep .part { display: grid; gap: 8px; }

/* ---------- home ---------- */
.today { display: grid; gap: 6px; margin-bottom: 22px; }
.streak { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); }
.streak.due { opacity: .75; }
.streak .wk { display: inline-flex; gap: 3px; }
.streak .wk i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.streak .wk i.on { background: var(--accent); }
.spark { margin-top: 14px; display: grid; gap: 8px; justify-items: start; }
.spark .label { font-size: 12px; }
.spark .q { font-family: "Montserrat Alternates", sans-serif; font-weight: 600; font-size: 18px; line-height: 1.4; margin: 0; }
.spark .t { font-size: 16px; font-weight: 600; line-height: 1.45; margin: 0; }
.starter { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 2px 0 2px 4px; }
.spark .by { font-size: 13px; color: var(--ink-3); }
.vera { position: relative; overflow: hidden; border-radius: 24px; padding: 26px; display: grid; gap: 18px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 45%, var(--navy-2)) 0%, var(--navy) 70%); box-shadow: var(--shadow-lg); }
.vera .who { display: flex; align-items: center; gap: 12px; }
.vera .who b { font-weight: 600; }
.vera .who span { display: block; font-size: 12.5px; opacity: .7; }
.vera.tap { cursor: pointer; } .vera.tap:hover { transform: translateY(-1px); transition: transform .15s; }
.vera .hint { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; opacity: .85; }
.vera .say { font-family: var(--serif); font-size: 25px; line-height: 1.3; letter-spacing: -.01em; max-width: 560px; }
.vera .via { font-size: 12.5px; opacity: .65; }
.vera .btn { background: #fff; color: var(--navy); }
.vera .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.vera .pager { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 13px; opacity: .8; }
.vera .pager button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.vera .pager button:disabled { opacity: .35; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.qa { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: left; text-decoration: none; transition: border-color .15s, transform .15s; }
.qa:hover { border-color: var(--line-2); transform: translateY(-1px); }
.qa .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.qa b { font-weight: 600; }
.qa span { font-size: 13px; color: var(--ink-3); margin-top: -6px; }
.quick.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qa.split { position: relative; padding: 0; }
.qa .qmain { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.qa .qmore { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.qa .qmore:hover { background: var(--surface-2); color: var(--ink); }
.qmenu { position: absolute; top: 46px; right: 10px; z-index: 30; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; }
.qmenu[hidden] { display: none; }
.qmenu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 14.5px; color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; }
.qmenu button:hover { background: var(--surface-2); }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .quick.two { grid-template-columns: 1fr 1fr; } .qa { padding: 12px; align-items: center; text-align: center; } .qa .qmain { padding: 12px; align-items: center; text-align: center; } .qa span { display: none; } .qa .qmore { top: 6px; right: 6px; width: 28px; height: 28px; } .vera { padding: 22px; } .vera .say { font-size: 22px; } }
.when { width: 74px; flex-shrink: 0; font-weight: 600; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.when small { display: block; font-weight: 500; color: var(--ink-3); }

/* ---------- goals ---------- */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.goal { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-align: left; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.goal:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.goal .top { display: flex; gap: 12px; align-items: flex-start; }
.goal .top .t { flex: 1; min-width: 0; }
.goal .top b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.2; }
.goal .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 2px; min-width: 0; }
.stat b { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.1; }
.stat b.word { font-size: clamp(15px, 4vw, 22px); line-height: 1.3; padding-top: 6px; white-space: nowrap; }  /* "Tomorrow" fits the box */
.stat span { font-size: 12.5px; color: var(--ink-3); }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.tl::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line-2); margin-top: 2px; }
.tl .dot.ok { background: var(--good); border-color: var(--good); color: #fff; }
.tl .dot.next { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.tl .dot.miss { border-style: dashed; }
.tl p { font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.dots i.ok { background: var(--c); border-color: var(--c); }
.dots i.miss { border-style: dashed; }

/* ---------- chat ---------- */
.chatwrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.threads { border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.threads .head { display: flex; align-items: center; justify-content: space-between; padding: 22px 16px 12px 20px; }
.threads .scroll { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.th { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; background: transparent; text-align: left; text-decoration: none; }
.th:hover { background: var(--surface-2); }
.th[aria-current="true"] { background: var(--surface-2); }
.th .t { flex: 1; min-width: 0; }
.th .t b { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14.5px; }
.th .t b small { font-weight: 500; color: var(--ink-3); font-size: 12px; flex-shrink: 0; }
.th .t > span { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.th .t > span em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th.unread .t > span em { color: var(--ink); font-weight: 500; }
.convo { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.chead { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); min-height: 68px; }
.chead .t { flex: 1; min-width: 0; }
.chead .t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 16px; line-height: 1.3; }
.chead .t span { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .chead { gap: 8px; } .chead .btn.sm { padding: 0 12px; } }
.msgs { flex: 1; overflow-y: auto; padding: 24px 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.msgs > .inner { width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.day { align-self: center; margin: 14px 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }
.m { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; animation: rise .25s ease both; }
.m.me { align-self: flex-end; flex-direction: row-reverse; }
.m .b { padding: 10px 14px; border-radius: 20px; line-height: 1.5; font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.m .b.md { white-space: normal; }
.b.md :where(p, ul, ol) { margin: 0; }
.b.md > * + * { margin-top: 8px; }
.b.md ul, .b.md ol { padding-left: 20px; }
.b.md li + li { margin-top: 4px; }
.b.md li::marker { color: var(--ink-3); }
.b.md code { font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }
.m.them .b { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.m.me .b { background: var(--btn); color: var(--btn-ink); border-bottom-right-radius: 6px; }
.m .gap { width: 30px; flex-shrink: 0; }
.m .col { display: grid; gap: 6px; min-width: 0; }
.m.me .col { justify-items: end; }
.m.grp { margin-top: 10px; }
.saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--good); }
.offer { font-size: 13px; color: var(--ink-3); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: bounce 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.callcard { align-self: center; width: min(100%, 440px); margin: 12px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; }
.callcard .row { gap: 10px; }
a.callcard { color: inherit; text-decoration: none; transition: border-color .15s; } a.callcard:hover { border-color: var(--line-2); }
.segtabs { display: inline-flex; justify-self: start; width: max-content; padding: 4px; gap: 4px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.segtab { padding: 6px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.segtab[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 43, .08); }
.segwrap { padding: 0 16px 10px; }
.callrow .t span.note { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.feedback { display: grid; gap: 8px; }
.feedback .q { font-family: "Montserrat Alternates", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.45; margin: 0; }
.feedback .next { margin: 0; font-size: 15px; }
.transcript { display: grid; gap: 6px; }
.callcard .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }
.res { background: var(--warn-soft); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.composer { padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); }
.composer .box { max-width: 720px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); }
.composer .box:focus-within { border-color: var(--ink-3); }
.composer textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; padding: 9px 0; max-height: 160px; font-size: 15.5px; line-height: 1.45; }
.composer .send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; flex-shrink: 0; }
.composer .send:disabled { opacity: .3; }
.composer .attach { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); display: grid; place-items: center; flex-shrink: 0; margin-left: -12px; }
.composer .attach:hover { color: var(--ink); background: var(--surface-2, rgba(0,0,0,.04)); }
.composer .tray { max-width: 720px; margin: 0 auto 8px; display: flex; gap: 8px; }
.composer .tray .thumb { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.composer .tray img { width: 100%; height: 100%; object-fit: cover; }
.composer .tray button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; padding: 0; }
.m .pics { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-bottom: 4px; }
.m .pics img { max-width: 220px; max-height: 220px; border-radius: 16px; object-fit: cover; cursor: zoom-in; border: 1px solid var(--line); }
.composer .hint { max-width: 720px; margin: 6px auto 0; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.nothread { flex: 1; display: grid; place-items: center; }
@media (max-width: 920px) {
  .chatwrap { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 58px - 66px - env(safe-area-inset-bottom)); }
  .chatwrap.open .threads { display: none; }
  .chatwrap:not(.open) .convo { display: none; }
  .threads { border-right: 0; background: var(--bg); }
  .threads .head { padding: 18px 16px 10px; }
  .chatwrap.open { position: fixed; inset: 0; z-index: 30; height: 100dvh; }
  .chead { padding-top: calc(10px + env(safe-area-inset-top)); }
  .m { max-width: 92%; }
}

/* ---------- sheets, dialogs, toasts ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(14, 19, 34, .45); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; backdrop-filter: blur(2px); }
.sheet { width: 100%; max-width: 520px; max-height: min(88vh, 860px); overflow-y: auto; background: var(--bg); border-radius: 22px; padding: 22px; display: grid; gap: 18px; box-shadow: var(--shadow-lg); animation: pop .22s ease; }
.sheet .shead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet .grab { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (max-width: 600px) {
  .scrim { place-items: end stretch; padding: 0; }
  .sheet { max-width: none; border-radius: 24px 24px 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, .8, .2, 1); max-height: 92vh; }
  .sheet .grab { display: block; width: 40px; height: 5px; border-radius: 99px; background: var(--line-2); justify-self: center; }
  @keyframes up { from { transform: translateY(100%); } }
}
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--btn); color: var(--btn-ink); padding: 11px 16px; border-radius: 12px; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg); animation: rise .25s ease; pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.toast.bad { background: var(--bad); color: #fff; }
@media (max-width: 920px) { .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- calls ---------- */
.callui { position: fixed; inset: 0; z-index: 80; color: #fff; display: flex; flex-direction: column; align-items: center; padding: calc(40px + env(safe-area-inset-top)) 24px calc(40px + env(safe-area-inset-bottom)); gap: 14px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 40%, var(--navy-2)) 0%, var(--navy) 70%); animation: fade .3s ease; }
.callui .state { font-size: 14px; opacity: .75; font-variant-numeric: tabular-nums; }
.callui .name { font-family: var(--serif); font-size: 36px; font-weight: 500; letter-spacing: -.01em; }
.callui .stage { flex: 1; display: grid; place-items: center; width: 100%; }
.callui .hint { max-width: 340px; font-size: 14px; opacity: .7; line-height: 1.5; }
.callui .ctrls { display: flex; gap: 28px; justify-content: center; }
.callui .ctrl { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font-size: 13.5px; font-weight: 500; }
.callui .ctrl span { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); transition: background .15s; }
.callui .ctrl:hover span { background: rgba(255, 255, 255, .2); }
.callui .ctrl[aria-pressed="true"] span { background: #fff; color: var(--navy); }
.callui .ctrl.end span { background: #D9534F; }
.callui .ctrl.ok span { background: #3F9A6E; }
.callui svg.i { width: 26px; height: 26px; }
.callmini { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; background: var(--navy); color: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
@media (max-width: 920px) { .callmini { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ---------- misc ---------- */
.settings { display: grid; gap: 28px; }
.settings section { display: grid; gap: 12px; }
.settings section > h2 { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.srow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.srow:first-child { border-top: 0; }
.srow .t { flex: 1; min-width: 0; }
.srow .t b { display: block; font-weight: 600; }
.srow .t span { display: block; font-size: 13.5px; color: var(--ink-3); }
.profile { display: flex; align-items: center; gap: 16px; }
.note { display: grid; gap: 10px; }
.note .body { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; line-height: 1.55; }
.note ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.mem { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line); }
.mem:first-child { border-top: 0; }
.mem p { flex: 1; font-family: var(--serif); font-size: 17.5px; line-height: 1.45; }
.mem .acts { display: flex; gap: 2px; opacity: .7; }
.mem:hover .acts { opacity: 1; }
.spec { display: grid; gap: 14px; }
.spec .top { display: flex; gap: 14px; align-items: center; }
.spec .top .t { flex: 1; min-width: 0; }
.spec .top b { font-family: var(--serif); font-weight: 500; font-size: 21px; display: block; line-height: 1.2; }
.check { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check:first-child { border-top: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.icbox { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex-shrink: 0; }
.icbox.lg { width: 56px; height: 56px; border-radius: 16px; }
.icbox.lg svg.i { width: 26px; height: 26px; }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; display: grid; place-items: center; color: transparent; flex-shrink: 0; transition: all .15s; }
.tick:hover { border-color: var(--good); color: var(--good); }
.tick .spin { width: 14px; height: 14px; color: var(--good); }
.chead .back-m { display: none; }
@media (max-width: 920px) { .chead .back-m { display: inline-grid; margin-left: -8px; } }
@media (max-width: 920px) { .phead:not(.keep-row) { flex-direction: column; align-items: stretch; } .phead:not(.keep-row) > .btn { align-self: flex-start; } }
@media (max-width: 560px) { .hero .row { flex-direction: column; width: 100%; } .hero .row .btn { width: 100%; } }
.mobile-only { display: none !important; }
@media (max-width: 920px) { .mobile-only { display: grid !important; } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.loading { display: grid; gap: 12px; }
.center { display: grid; place-items: center; min-height: 60vh; }

/* ---------- color and shape: the Vera app's look ---------- */
.display { font-weight: 700; letter-spacing: -.025em; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.08; }
.title { font-weight: 700; letter-spacing: -.02em; font-size: 32px; }
.title2 { font-weight: 600; letter-spacing: -.02em; }
.quote, .tl p, .mem p, .vera .say, .tile i.q, .goal .top b, .spec .top b, .stat b { font-style: normal; font-weight: 600; letter-spacing: -.01em; }
.quote, .tl p, .mem p, .tile i.q { font-family: var(--sans); font-weight: 500; }
.label { color: var(--accent); }
.btn { border-radius: 99px; }
.btn.sm { border-radius: 99px; }
.btn:not(.ghost):not(.plain):not(.danger):not(.danger-ghost):not(.accent) { box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--btn) 70%, transparent); }
.btn.ghost { border-color: var(--line-2); }
.btn.accent { background: #E46FC0; }
.input { border-radius: 14px; }
.card, .list, .goal, .qa, .stat, .feat, .keep, .callcard { border-color: transparent; box-shadow: var(--shadow); border-radius: var(--r); }
.card.soft { background: var(--accent-soft); box-shadow: none; }
.card.warn { background: var(--warn-soft); box-shadow: none; }
.tile { border-color: transparent; box-shadow: var(--shadow); border-radius: 18px; }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
.tile[aria-pressed="true"] .ck { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile .ic, .feat .ic { background: var(--accent-soft); color: var(--accent); }
.feat:nth-child(2) .ic { background: #FBE6F6; color: #B54AA0; }
.feat:nth-child(3) .ic { background: #E0F2FD; color: #1C82C4; }
.qa .ic { background: var(--accent-soft); color: var(--accent); }
.qa:nth-child(2) .ic { background: #FBE6F6; color: #B54AA0; }
.qa:nth-child(3) .ic { background: #E0F2FD; color: #1C82C4; }
.chip[aria-pressed="true"], .days button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg { border-radius: 99px; }
.seg button { border-radius: 99px; }
.seg button[aria-pressed="true"] { color: var(--accent); }
.steps i.on { background: var(--accent); }
.prog i { background: linear-gradient(90deg, var(--accent), var(--brand)); }
.dots i.ok { background: var(--accent); border-color: var(--accent); }
.tl .dot.next { border-color: var(--accent); background: var(--accent-soft); }
.av.mono { background: var(--col); color: #fff; font-family: var(--serif); font-weight: 600; }
.vera { background: var(--hero); box-shadow: var(--shadow-lg); border-radius: 28px; }
.vera::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); pointer-events: none; }
.vera .btn { background: #fff; color: var(--accent-ink); box-shadow: none; }
.vera .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.vera .via, .vera .who span { opacity: .8; }
.m.me .b { background: var(--accent); color: #fff; }
.composer .send { background: var(--accent); color: #fff; }
.composer .box { border-color: transparent; border-radius: 99px; }
.th[aria-current="true"] { background: var(--accent-soft); }

.callmini { background: var(--accent); }
.ob { background: transparent; }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.switch[aria-checked="true"] { background: var(--accent); }
.swatch[aria-pressed="true"] { outline-color: var(--accent); }
.link { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
a { color: inherit; }
.fine a { color: var(--accent); }
.empty .ic { background: var(--accent-soft); color: var(--accent); }
.badge { background: #E46FC0; }

/* conversations sit in one rounded panel under the top nav */
.chatwrap { max-width: 1160px; margin: 20px auto 24px; width: calc(100% - 48px); height: calc(100dvh - 72px - 44px); border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.threads { background: var(--surface); }
.convo { background: var(--surface-2); }
.chead { background: var(--surface); }
.composer { background: transparent; }
@media (max-width: 920px) {
  .chatwrap { margin: 0; width: 100%; border-radius: 0; box-shadow: none; background: transparent; height: calc(100dvh - 60px - 66px - env(safe-area-inset-bottom)); }
  .threads { background: transparent; }
  .chatwrap.open { height: 100dvh; }
}

/* Vera herself: the signal mark on a gradient of her color */
.orb { background: linear-gradient(140deg, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 55%, #8FA8F6) 100%); display: grid; place-items: center;
  box-shadow: 0 calc(var(--s) * .18) calc(var(--s) * .45) calc(var(--s) * -.22) color-mix(in srgb, var(--c) 75%, transparent); }
.orb::after { display: none; }
.orb > svg { width: 58%; height: 58%; position: relative; z-index: 1; margin: 4% 0 0 4%; }
.vera .orb { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.vera .say { font-size: 23px; line-height: 1.35; }

/* the calling screen: the brand pattern, animated */
.callui { background: linear-gradient(180deg, #EEDFF1 0%, #E4E2F8 50%, #D9E4FC 100%); color: #14162B; }
.callui .ctrl { color: #14162B; }
.callui .ctrl span { background: rgba(255, 255, 255, .8); box-shadow: 0 8px 24px -12px rgba(60, 50, 160, .4); }
.callui .ctrl:hover span { background: #fff; }
.callui .ctrl[aria-pressed="true"] span { background: #14162B; color: #fff; }
.callui .ctrl.end span, .callui .ctrl.ok span { color: #fff; }
.callui .ctrl.end span, .callui .ctrl.end:hover span { background: #D9534F; } .callui .ctrl.end:hover span { background: #C4423E; }
.callui .ctrl.ok span, .callui .ctrl.ok:hover span { background: #3F9A6E; } .callui .ctrl.ok:hover span { background: #348760; }
.callui .callpill { background: rgba(255, 255, 255, .7); color: #4A4F68; }
.callui .callx { color: #14162B; }
.callui .name { font-weight: 700; }
.mosaic { --cell: min(52px, calc((100vw - 64px) / var(--n)), calc(32vh / var(--n))); display: grid; grid-template-columns: repeat(var(--n), var(--cell)); grid-auto-rows: var(--cell); }
.mosaic i { display: block; transition: clip-path .7s cubic-bezier(.6, 0, .3, 1), background-color .7s ease; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callui { background: linear-gradient(180deg, #2A2150 0%, #1A1D45 55%, #13203F 100%); color: #fff; }
  :root:not([data-theme="light"]) .callui .ctrl, :root:not([data-theme="light"]) .callui .callx { color: #fff; }
  :root:not([data-theme="light"]) .callui .ctrl span { background: rgba(255, 255, 255, .12); } }
.strip .mosaic { --cell: min(78px, calc((100vw - 48px) / 7)); }
.strip .mosaic i { transition-duration: 1.1s; }
@media (max-width: 560px) { .vera .say { font-size: 19px; } .title { font-size: 26px; } .display { font-size: 32px; } }

/* conversation list rows: a menu on each (shown on hover with a mouse, always on touch) */
.throw { position: relative; display: flex; align-items: center; }
.throw .th { flex: 1; min-width: 0; padding-right: 40px; }
.throw .thmore { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; opacity: 0; transition: opacity .15s; }
.throw:hover .thmore, .throw .thmore:focus-visible { opacity: 1; }
@media (hover: none) { .throw .thmore { opacity: .7; } }
.throw:hover .th .t > span .badge { visibility: hidden; }
.archlink { display: flex; align-items: center; gap: 8px; margin: 10px 12px 4px; padding: 10px 12px; border-radius: 12px; color: var(--ink-3); font-size: 14px; font-weight: 600; text-decoration: none; }
.archlink:hover { background: var(--surface-2); color: var(--ink); }
/* a specialist suggested on the side of the conversation */
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 6px; max-width: 520px; padding: 10px 10px 10px 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); animation: rise .3s ease both; }
.suggest .t { flex: 1 1 200px; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.suggest .t b { display: block; font-size: 14px; }
.suggest .t span { color: var(--ink-3); }
.suggest .row { margin-left: auto; }

/* readings on a goal */
.measures { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.measure { display: grid; gap: 6px; padding: 14px 16px; }
.measure b { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.measure .spark { color: var(--accent, #6541EC); flex-shrink: 0; }
.reading-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 8px; }
.sec .btn.sm { margin-left: auto; }
.tl .iconbtn.quiet { opacity: .35; } .tl:hover .iconbtn.quiet, .tl .iconbtn.quiet:focus-visible { opacity: 1; }

/* reactions */
.bwrap { position: relative; display: grid; }
.m.me .bwrap { justify-items: end; }
.rx { position: absolute; bottom: -12px; right: 10px; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-size: 13px; line-height: 22px; text-align: center; cursor: pointer; }
.rx.them-rx { right: auto; left: -8px; cursor: default; }
.rx.pop { animation: rxpop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes rxpop { from { transform: scale(0); } to { transform: scale(1); } }
.m:has(.rx) { margin-bottom: 12px; }
.rxadd { position: absolute; top: 50%; right: -34px; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); font-size: 17px; opacity: 0; cursor: pointer; }
.bwrap:hover .rxadd, .rxadd:focus-visible { opacity: 1; }
.rxadd:hover { background: var(--surface-2, rgba(0,0,0,.05)); color: var(--ink); }
@media (hover: none) { .rxadd { display: none; } }
.rxbar { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .15s ease both; }
.rxbar[hidden] { display: none; }
.rxbar button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; cursor: pointer; transition: transform .12s; }
.rxbar button:hover { transform: scale(1.2); background: var(--surface-2, rgba(0,0,0,.04)); }
.rxbar button[aria-pressed="true"] { background: var(--accent-soft, #ece8fd); }

/* companion character */
.personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.persona { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.persona b { font-size: 15px; }
.persona i { font-style: normal; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.persona[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.palettes { display: flex; flex-wrap: wrap; gap: 10px; }
.palette { display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--ink-3); font-size: 11.5px; }
.palette i { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--p) 0%, var(--p) 55%, var(--p2) 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.palette[aria-pressed="true"] i { outline: 2px solid var(--p); outline-offset: 3px; }
.palette[aria-pressed="true"] span { color: var(--ink); font-weight: 600; }

/* documents they share */
.filechip { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 13px; text-decoration: none; }
.filechip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filechip button { border: 0; background: none; color: var(--ink-3); padding: 0; display: grid; place-items: center; cursor: pointer; }
.composer .tray { flex-wrap: wrap; align-items: center; }
.note .body.clip { max-height: 160px; overflow: hidden; mask-image: linear-gradient(180deg, #000 70%, transparent); }

/* "How Vera works" reels */
.reels { position: fixed; inset: 0; z-index: 2000; background: #0B0A18; display: grid; place-items: center; animation: rise .2s ease both; }
.reels .rframe { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); background: #000; overflow: hidden; }
@media (min-width: 700px) { .reels .rframe { height: min(92dvh, 900px); width: calc(min(92dvh, 900px) * 9 / 16); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); } }
.reels .rstage { position: absolute; inset: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.reels video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.reels .rtop { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + env(safe-area-inset-top)) 12px 0; pointer-events: none; }
.reels .rbars { display: flex; gap: 4px; }
.reels .rbars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.reels .rbars i { display: block; height: 100%; width: 0; background: #fff; }
.reels .rlabel { color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.reels .rx { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; cursor: pointer; }
.reels .rskip { position: absolute; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); padding: 9px 18px; border-radius: 99px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.35); color: #fff; font: 600 14px/1 var(--sans); cursor: pointer; backdrop-filter: blur(6px); }

/* ---------- minutes */
.balance { display: grid; gap: 4px; }
.balance .bal { font-family: var(--serif); font-size: 44px; line-height: 1; }
.promo { display: grid; gap: 4px; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pack { position: relative; display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.pack:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.pack:disabled { opacity: .6; cursor: default; }
.pack.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pack b { font-family: var(--serif); font-size: 22px; }
.pack .price { font-size: 18px; font-weight: 700; }
.pack .was { font-size: 12.5px; color: var(--ink-3); }
.pack .bonus { font-size: 12.5px; font-weight: 700; color: var(--good); }
.pack .tag { position: absolute; top: -9px; right: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.li .amt { font-weight: 700; color: var(--good); white-space: nowrap; }
.li .amt.neg { color: var(--ink-3); }

