/* Sign in, onboarding and the dashboard. Tokens and primitives live in base.css. */

body.app-body { min-height: 100vh; }
.toast-zone { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn .3s var(--ease); max-width: min(520px, calc(100vw - 32px)); }
.toast--error { background: var(--hold-ink); }
.toast b { color: var(--go); font-weight: 500; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth__main { display: flex; flex-direction: column; padding: 28px 40px; }
.auth__top { display: flex; align-items: center; justify-content: space-between; }
.auth__switch { font-size: 14px; color: var(--ink-2); }
.auth__switch a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.auth__card { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }
.auth__title { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 450; letter-spacing: -.03em; }
.auth__sub { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.auth__sub b { color: var(--ink); font-weight: 500; }
.auth__form { display: grid; gap: 14px; margin-top: 32px; }
.auth__plan { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 12px; border-radius: 10px; background: var(--go-tint); color: var(--go-ink); font-size: 13.5px; }
.auth__plan b { font-weight: 550; }
.auth__error { min-height: 20px; margin: 0; font-size: 13.5px; color: var(--hold-ink); }
.auth__fine { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.auth__fine a { text-decoration: underline; text-underline-offset: 2px; }
.auth__dev { margin-top: 16px; padding: 10px 12px; border: 1px dashed var(--warn); border-radius: 8px; background: var(--warn-tint); font-size: 13px; color: var(--warn-ink); }
.auth__dev code { font-size: 15px; font-weight: 600; letter-spacing: .12em; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; height: 58px; text-align: center; font: 500 24px var(--mono); border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); transition: border-color .15s, box-shadow .15s, transform .15s; caret-color: var(--ink); }
.otp input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,19,15,.08); }
.otp input.is-filled { border-color: var(--ink-3); }
.otp.is-error input { border-color: var(--hold); animation: shake .35s; }
.otp.is-ok input { border-color: var(--go-2); background: var(--go-tint); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.linkish { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.linkish[disabled] { color: var(--ink-3); text-decoration: none; cursor: default; }
.auth__side { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; background: var(--ink); color: #fff; overflow: hidden; }
.auth__side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000, transparent 75%); }
.auth__side > * { position: relative; }
.auth__quote { max-width: 440px; font-size: 26px; line-height: 1.25; font-weight: 450; letter-spacing: -.02em; }
.auth__quote span { color: #A39A90; }
.side-card { max-width: 420px; padding: 18px; border-radius: 14px; background: #221C17; border: 1px solid #332B24; display: grid; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.side-card__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: #2A231D; font-size: 13.5px; }
.side-card__row span { color: #CFC7BC; }
.side-card__row b { font-weight: 500; font: 500 12px var(--mono); color: var(--go); }
.side-card__head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.side-card__head img { width: 28px; height: 28px; }
.side-card__head small { margin-left: auto; font: 11px var(--mono); color: #8F877D; }
.auth__stats { display: flex; gap: 28px; font-size: 13px; color: #A39A90; }
.auth__stats b { display: block; font-size: 24px; color: #fff; font-weight: 450; letter-spacing: -.02em; }

/* ---------- Onboarding ---------- */
.ob { display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; min-height: 100vh; }
.ob__rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 28px 24px; border-right: 1px solid var(--line); background: var(--paper); }
.ob__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: step; }
.ob__steps button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.ob__steps button:hover:not([disabled]) { background: var(--paper-2); color: var(--ink); }
.ob__steps button[disabled] { cursor: default; opacity: .55; }
.ob__steps .n { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 500 11px var(--mono); color: var(--ink-3); background: var(--card); transition: .2s; }
.ob__steps .is-done .n { background: var(--ink); border-color: var(--ink); color: var(--go); }
.ob__steps .is-done .n::before { content: "✓"; font-size: 11px; }
.ob__steps .is-done .n span { display: none; }
.ob__steps .is-current button { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 500; }
.ob__steps .is-current .n { border-color: var(--ink); color: var(--ink); }
.ob__rail-foot { margin-top: auto; display: grid; gap: 12px; font-size: 13px; color: var(--ink-2); }
.meter { height: 6px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--go-2); transition: width .5s var(--ease); }
.ob__main { display: flex; flex-direction: column; min-width: 0; }
.ob__bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 40px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ob__progress { display: none; }
.save { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--ink-3); }
.save::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--go-2); }
.save.is-saving::before { background: var(--warn); animation: pulseDot 1s infinite; }
.save.is-error::before { background: var(--hold); }
@keyframes pulseDot { 50% { opacity: .3; } }
.ob__content { width: 100%; max-width: 680px; margin: 0 auto; padding: 48px 40px 140px; }
.ob__kicker { margin: 0 0 10px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ob__title { margin: 0; font-size: 34px; line-height: 1.12; font-weight: 450; letter-spacing: -.03em; text-wrap: balance; }
.ob__lede { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.ob__form { display: grid; gap: 28px; margin-top: 36px; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }
.group { display: grid; gap: 16px; }
.group__title { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.row { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.row--3 { --cols: 3; }
.row--1 { --cols: 1; }
.field__label .opt { margin-left: 6px; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.field__label .from { margin-left: 6px; font: 500 10.5px var(--mono); color: var(--go-ink); background: var(--go-tint); padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice button { height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 14px; transition: border-color .15s, background .15s, color .15s, transform .1s; }
.choice button:hover { border-color: var(--ink-3); }
.choice button:active { transform: scale(.98); }
.choice button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice--cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 10px; }
.choice--cards button { height: auto; min-height: 76px; padding: 14px; border-radius: 12px; text-align: left; display: grid; gap: 4px; align-content: start; }
.choice--cards button b { font-weight: 500; font-size: 15px; }
.choice--cards button small { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.choice--cards button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--go-tint); }
.choice--cards button[aria-pressed="true"] small { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); cursor: text; transition: border-color .15s, box-shadow .15s; }
.tags:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,19,15,.08); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 10px; border-radius: 6px; background: var(--paper-2); font-size: 13.5px; animation: stepIn .2s var(--ease); }
.tag button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); font-size: 14px; line-height: 1; }
.tag button:hover { background: var(--paper-3); color: var(--ink); }
.tag .ord { font: 500 10px var(--mono); color: var(--ink-3); margin-right: 2px; }
.tags input { flex: 1; min-width: 120px; height: 32px; border: 0; outline: none; background: transparent; font-size: 14.5px; padding: 0 4px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggest button { height: 28px; padding: 0 10px; border: 1px dashed var(--line-2); border-radius: 999px; background: transparent; font-size: 12.5px; color: var(--ink-2); }
.suggest button:hover { border-style: solid; color: var(--ink); background: var(--card); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.callout b { color: var(--ink); font-weight: 500; }
.callout--go { background: var(--go-tint); border-color: #BFEBD2; color: var(--go-ink); }
.callout--go b { color: var(--go-ink); }
.callout__icon { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--card); font-size: 12px; }
.drop { position: relative; display: grid; place-items: center; gap: 10px; min-height: 230px; padding: 32px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--card); text-align: center; transition: border-color .2s, background .2s; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--ink); background: #FFFEFC; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); font-size: 22px; }
.drop b { font-weight: 500; font-size: 16px; }
.drop small { color: var(--ink-2); font-size: 13.5px; }
.file { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.file__icon { width: 42px; height: 50px; border-radius: 6px; background: var(--hold-tint); color: var(--hold-ink); display: grid; place-items: end center; padding-bottom: 6px; font: 600 10px var(--mono); }
.file b { display: block; font-weight: 500; }
.file small { color: var(--ink-2); }
.file .btn { margin-left: auto; }
.reading { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.reading__head { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.reading__item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); animation: stepIn .25s var(--ease) both; }
.reading__item::before { content: "✓"; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--go-tint); color: var(--go-ink); font-size: 10px; font-weight: 700; }
.shimmer { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2), var(--paper-3), var(--paper-2)); background-size: 200% 100%; animation: shim 1.2s infinite; }
@keyframes shim { to { background-position: -200% 0; } }
.list-card { position: relative; display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.list-card__head { display: flex; align-items: center; gap: 10px; }
.list-card__head b { font-weight: 500; }
.list-card__head small { color: var(--ink-2); }
.list-card__head .btn { margin-left: auto; }
.add { height: 46px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; transition: border-color .15s, color .15s, background .15s; }
.add:hover { border-color: var(--ink-3); color: var(--ink); background: var(--card); }
.ob__foot { position: fixed; left: 260px; right: 340px; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 16px 40px; background: linear-gradient(transparent, var(--paper) 30%); }
.ob__foot-inner { width: 100%; max-width: 600px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.ob__foot .btn--go { margin-left: auto; min-width: 140px; }
.kbd { font: 11px var(--mono); color: var(--ink-3); }
.kbd kbd { padding: 2px 5px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--card); font-size: 10.5px; }
.ob__aside { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 28px 24px; border-left: 1px solid var(--line); background: var(--paper-2); }
.preview { display: grid; gap: 14px; }
.preview__label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pcard { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.pcard__who { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--go); font: 600 16px var(--font); letter-spacing: -.02em; }
.avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.pcard__name { font-weight: 550; letter-spacing: -.01em; }
.pcard__meta { font-size: 13px; color: var(--ink-2); }
.pcard__sec { display: grid; gap: 6px; }
.pcard__sec h4 { margin: 0; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.pcard__sec p { margin: 0; font-size: 13.5px; }
.pcard__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard__chips span { padding: 3px 8px; border-radius: 6px; background: var(--paper-2); font-size: 12px; }
.pcard__chips span.go { background: var(--go-tint); color: var(--go-ink); }
.pcard .empty { color: var(--ink-3); font-style: italic; }
.preview__note { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.plan-pick { display: grid; gap: 10px; }
.plan-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); text-align: left; transition: border-color .15s, box-shadow .15s; }
.plan-opt:hover { border-color: var(--ink-3); }
.plan-opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 4px var(--go-tint); }
.plan-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.plan-opt[aria-pressed="true"] .radio { border-color: var(--ink); }
.plan-opt[aria-pressed="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.plan-opt b { display: block; font-weight: 500; }
.plan-opt small { color: var(--ink-2); font-size: 13px; }
.plan-opt .price { font: 500 16px var(--mono); text-align: right; }
.plan-opt .price small { display: block; font: 11px var(--font); color: var(--ink-3); }
.summary { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.summary__row { display: grid; grid-template-columns: 180px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--card); font-size: 14px; }
.summary__row span { color: var(--ink-2); }
.summary__row .btn { height: 30px; font-size: 13px; }
.summary__row.is-missing b { color: var(--hold-ink); font-weight: 500; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--paper); }
.side .brand { padding: 0 8px; }
.side__nav { display: grid; gap: 2px; }
.side__nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.side__nav a:hover { background: var(--paper-2); color: var(--ink); }
.side__nav a[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.side__nav svg { width: 16px; height: 16px; flex: none; }
.side__nav .count { margin-left: auto; font: 500 11px var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--warn-tint); color: var(--warn-ink); }
.credits { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.credits__top { display: flex; align-items: baseline; justify-content: space-between; }
.credits__top span { font-size: 12.5px; color: var(--ink-2); }
.credits__n { font: 500 26px var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.side__foot { margin-top: auto; display: grid; gap: 12px; }
.me { position: relative; }
.me__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.me__btn:hover { background: var(--paper-2); }
.me__btn b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__btn small { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__btn > div { min-width: 0; }
.menu-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
.menu-pop.is-open { display: grid; animation: stepIn .15s var(--ease); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; font-size: 13.5px; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--paper-2); }
.main { min-width: 0; }
.main__bar { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 40px; border-bottom: 1px solid var(--line); }
.main__bar h1 { margin: 0; font-size: 16px; font-weight: 500; }
.main__bar .actions { margin-left: auto; display: flex; gap: 8px; }
.main__body { max-width: 1280px; padding: 36px 40px 80px; }
.hello { margin: 0; font-size: 30px; font-weight: 450; letter-spacing: -.03em; }
.hello + p { margin: 6px 0 0; color: var(--ink-2); }
.banner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.banner img { width: 56px; height: 56px; }
.banner b { display: block; font-weight: 500; font-size: 16px; }
.banner p { margin: 4px 0 0; color: #B9B0A5; font-size: 14px; line-height: 1.5; max-width: 620px; }
.banner .pill { background: #2C251F; color: var(--go); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.kpi { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 6px; }
.kpi span { font-size: 13px; color: var(--ink-2); }
.kpi b { font: 450 30px var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12.5px; color: var(--ink-3); }
.kpi .meter { margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel__head h2 { margin: 0; font-size: 15px; font-weight: 500; }
.panel__head .btn { margin-left: auto; }
.panel__body { padding: 20px; }
.steps-list { display: grid; }
.steps-list a, .steps-list div.item { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .15s; }
.steps-list a:hover { background: var(--paper); }
.steps-list > :last-child { border-bottom: 0; }
.steps-list .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; }
.steps-list .is-done .tick { background: var(--go-tint); border-color: var(--go-2); color: var(--go-ink); }
.steps-list .is-done .tick::before { content: "✓"; font-weight: 700; }
.steps-list .is-done b { color: var(--ink-2); font-weight: 400; text-decoration: line-through; text-decoration-color: var(--line-2); }
.steps-list b { font-weight: 500; }
.steps-list small { display: block; color: var(--ink-2); font-size: 12.5px; }
.steps-list .arrow { color: var(--ink-3); }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; }
.empty-state img { width: 72px; height: 72px; opacity: .95; }
.empty-state b { font-weight: 500; font-size: 16px; }
.empty-state p { margin: 0; max-width: 360px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--paper-2); width: max-content; }
.tabs button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font-size: 13.5px; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 500; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 20px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--paper); }
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.table td.pos { color: var(--go-ink); }
.table .sub { color: var(--ink-2); font-size: 12.5px; }
.buy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.buy { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.buy--pro { border-color: var(--ink); box-shadow: 0 0 0 4px var(--go-tint); }
.buy__name { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.buy__price { font: 450 30px var(--font); letter-spacing: -.03em; }
.buy__price small { font-size: 14px; color: var(--ink-2); letter-spacing: 0; }
.buy__each { font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.big-credits { display: flex; align-items: baseline; gap: 10px; }
.big-credits b { font: 450 56px var(--font); letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-credits span { color: var(--ink-2); }
.dev-box { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--warn); border-radius: 10px; background: var(--warn-tint); color: var(--warn-ink); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.danger { border-color: #F2C9BF; }
.danger .panel__head h2 { color: var(--hold-ink); }
.btn--danger { background: var(--hold); color: #fff; }
.btn--danger:hover { background: #C9513A; }
.profile-sec { display: grid; grid-template-columns: 200px 1fr auto; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: start; }
.profile-sec:last-child { border-bottom: 0; }
.profile-sec > span { color: var(--ink-2); }
.profile-sec .btn { height: 30px; font-size: 13px; }
.view[hidden] { display: none; }
.skeleton { display: grid; gap: 12px; }

/* Responsive */
@media (max-width: 1180px) {
  .ob { grid-template-columns: 240px minmax(0, 1fr); }
  .ob__aside { display: none; }
  .ob__foot { right: 0; left: 240px; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .auth__main { padding: 20px; }
  .ob { grid-template-columns: 1fr; }
  .ob__rail { display: none; }
  .ob__progress { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--paper-3); }
  .ob__progress i { display: block; height: 100%; background: var(--ink); transition: width .4s var(--ease); }
  .ob__bar { padding: 0 20px; }
  .ob__content { padding: 32px 20px 140px; }
  .ob__foot { left: 0; padding: 14px 20px; }
  .row, .row--3 { --cols: 1; }
  .choice--cards { --cols: 1 !important; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side__nav { display: flex; overflow-x: auto; order: 3; width: 100%; }
  .side .credits, .side__foot { display: none; }
  .main__bar, .main__body { padding-left: 20px; padding-right: 20px; }
  .kpi-row, .buy-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .banner { grid-template-columns: 1fr; }
  .summary__row, .profile-sec { grid-template-columns: 1fr auto; }
  .summary__row > span, .profile-sec > span { grid-column: 1 / -1; }
}
.ob__title:focus, .ob__title:focus-visible { outline: none; }
.ob ~ .toast-zone { bottom: 100px; }
.dash > *, .side { min-width: 0; }
@media (max-width: 900px) {
  [data-mobile-brand] { display: inline-flex !important; }
  .ob__foot [data-hint] { display: none !important; }
  .ob__foot .btn--go { min-width: 0; }
  .ob__foot .btn--lg { --h: 48px; padding: 0 18px; }
  .main__bar { height: 56px; }
  .banner { gap: 12px; }
  .banner img { width: 44px; height: 44px; }
}
.banner .pill { justify-self: start; }

/* ---------- Review queue (the home screen) ---------- */
.main__body { max-width: none; padding: 24px 32px 48px; }
.main__bar { height: 56px; padding: 0 32px; }
.main__bar h1 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.main__bar .actions { gap: 8px; }
.runbar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 32px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--pen-tint); font-size: 13px; color: var(--pen); animation: runbarIn .2s var(--ease-out); }
/* It grows into place and folds away, so the page under it moves with it instead of jumping 40px in one frame. */
.runbar.is-out { animation: runbarOut .15s var(--ease-out) forwards; }
@keyframes runbarIn { from { height: 0; opacity: 0; } }
@keyframes runbarOut { to { height: 0; opacity: 0; border-bottom-width: 0; } }
.rv { transition: height .2s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .runbar, .runbar.is-out { animation: none; } .rv { transition: none; } }
.runbar b { font-weight: 600; }
.runbar__line { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px var(--mono); color: #3d64b8; }
.runbar__spin { width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.rv { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: calc(100vh - 56px - 24px - 48px); min-height: 520px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.runbar:not([hidden]) ~ .main__body .rv { height: calc(100vh - 56px - 40px - 24px - 48px); }
.rv__list { overflow-y: auto; border-right: 1px solid var(--line); padding: 8px; overscroll-behavior: contain; }
.rv__group + .rv__group { margin-top: 10px; }
.rv__glabel { display: flex; justify-content: space-between; padding: 8px 10px 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.rv__item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; cursor: default; transition: background-color .12s ease; outline: none; }
.rv__item:hover { background: var(--paper-2); }
.rv__item.is-sel { background: var(--paper-3); }
.rv__pick { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }
.rv__text { min-width: 0; }
.rv__text b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv__text small { display: block; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv__fit { font: 500 12px var(--mono); color: var(--ink-2); }
.rv__detail { overflow-y: auto; }
.rv__none { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 14px; }
.dt { max-width: 720px; padding: 28px 36px 40px; animation: dtIn .22s var(--ease-out); }
@keyframes dtIn { from { opacity: 0; transform: translateY(4px); } }
.dt__head { display: flex; align-items: center; gap: 14px; }
.dt__logo { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-3); font: 600 16px var(--font); color: var(--ink-2); }
.dt__title { min-width: 0; flex: 1; }
.dt__title h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.dt__title p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.dt__meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.dt__meta a { color: var(--ink-2); }
.dt__meta a:hover { color: var(--ink); }
.dt__reason { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; background: var(--paper-2); color: var(--ink-2); }
.dt__reason--hold { background: var(--hold-tint); color: var(--hold-ink); }
.dt__reason--wait { background: var(--warn-tint); color: var(--warn-ink); }
.dt__fields { margin-top: 22px; border-radius: 10px; box-shadow: var(--shadow-sm); overflow: hidden; }
.dt__f { display: grid; grid-template-columns: 42% 1fr 18px; gap: 12px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dt__f:last-child { border-bottom: 0; }
.dt__f > span:first-child { color: var(--ink-2); font-size: 13px; }
.dt__f em { font-style: normal; color: var(--ink-3); }
.dt__ok { color: var(--go); font-size: 12px; text-align: right; }
.dt__foot { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.dt__foot b { font-weight: 500; color: var(--hold-ink); }
.dt__hint { margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }
.dt__actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 16px; background: linear-gradient(transparent, #fff 30%); }
.rv-empty { display: grid; justify-items: center; gap: 12px; max-width: 460px; margin: 12vh auto 0; text-align: center; }
.rv-empty h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.rv-empty p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.rv-empty .btn { margin-top: 8px; }
.rv-note { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.rv-note--top { margin: 4px 10px 6px; padding: 8px 10px; border-radius: 8px; background: var(--paper-2); }

/* Billing */
.bill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; }
.bill__bal { display: grid; align-content: start; gap: 4px; padding: 24px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.bill__bal span { font-size: 13px; color: var(--ink-3); }
.bill__bal b { font: 600 48px/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.bill__bal small { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.bill__bal .btn { justify-self: start; }
.bill__plans { border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.bill__plan { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bill__plan:last-child { border-bottom: 0; }
.bill__plan.is-pro { background: var(--paper-2); }
.bill__plan b { display: block; font-size: 14.5px; font-weight: 600; }
.bill__plan small { font-size: 12.5px; color: var(--ink-3); }
.bill__plan .num { font-size: 15px; font-weight: 500; }
.bill__plan .btn { justify-self: end; }

/* Shell in Geist terms */
.side { background: var(--paper-2); }
.side__nav a[aria-current="page"] { background: #fff; box-shadow: var(--ring); }
.side__nav .count { background: var(--pen-tint); color: var(--pen); }
.credits { background: #fff; box-shadow: var(--ring); border: 0; gap: 4px; }
.credits__top a { font-size: 12.5px; color: var(--ink-2); }
.credits__top a:hover { color: var(--ink); }
.panel { border: 0; box-shadow: var(--shadow); }
.danger { box-shadow: 0 0 0 1px #f3c9bf; }
.toast { background: #171717; border-radius: 8px; animation: toastIn .24s var(--ease-out); }
@keyframes toastIn { from { opacity: 0; transform: translateY(6px) scale(.97); } }
@media (max-width: 900px) {
  .rv { grid-template-columns: 1fr; height: auto; }
  .rv__list { max-height: 44vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .dt { padding: 20px; }
  .bill { grid-template-columns: 1fr; }
  .main__bar .actions .btn { padding: 0 8px; font-size: 13px; }
}

/* ---------- Auth: one centred column ---------- */
.auth { display: block; min-height: 100vh; background: var(--paper); }
.auth__main { min-height: 100vh; padding: 20px 28px; }
.auth__top .brand span { font-size: 15px; }
.auth__switch a { text-decoration: none; color: var(--ink); font-weight: 500; }
.auth__card { max-width: 360px; padding: 0 0 12vh; }
.auth__title { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; text-align: center; }
.auth__sub { margin-top: 8px; font-size: 15px; text-align: center; }
.auth__form { gap: 12px; margin-top: 28px; }
.auth__form .btn--lg { --h: 44px; font-size: 15px; border-radius: 8px; }
.auth__plan { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; margin-top: 24px; padding: 12px 14px; border-radius: 8px; background: #fff; box-shadow: var(--ring); color: var(--ink); font-size: 13.5px; }
.auth__plan span { color: var(--ink-3); }
.auth__plan small { grid-column: 2; color: var(--ink-3); font-size: 12.5px; }
.auth__error { min-height: 18px; font-size: 13px; }
.auth__fine { text-align: center; font-size: 12.5px; }
.auth__dev { border: 0; background: var(--paper-2); color: var(--ink-2); box-shadow: var(--ring); text-align: center; }
.auth__dev code { color: var(--ink); }
.otp input { height: 52px; border-radius: 8px; font: 500 22px var(--mono); color: var(--ink); border-color: var(--line-2); transition: border-color .15s ease, box-shadow .15s ease, transform .2s var(--ease-out); }
.otp input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.otp.is-ok input { border-color: var(--go); background: var(--go-tint); }
.auth__row { font-size: 13px; }
.auth [data-step] { animation: stepIn .24s var(--ease-out); }

/* ---------- Onboarding refinements ---------- */
.ob__kicker { display: none; }
.ob__title { font-size: 30px; font-weight: 600; letter-spacing: -.035em; }
.ob__lede { font-size: 15.5px; }
.ob__rail { background: var(--paper-2); }
.ob__steps .is-current button { background: #fff; box-shadow: var(--ring); }
.ob__steps .is-done .n { background: var(--ink); color: #fff; }
.ob__aside { background: var(--paper-2); }
.preview__label { font: 600 13px var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
.pcard { border: 0; box-shadow: var(--shadow); border-radius: 12px; }
.pcard__sec h4 { font: 500 12.5px var(--font); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.pcard__chips span { border-radius: 5px; color: var(--pen); background: var(--pen-tint); }
.pcard__sec p:not(.empty) { color: var(--pen); }
.avatar { background: var(--paper-3); color: var(--ink); border: 0; }
.callout { border: 0; box-shadow: var(--ring); background: #fff; }
.callout__icon { display: none; }
.callout--go { box-shadow: 0 0 0 1px #bfe3c8; background: var(--go-tint); }
.choice button { border-radius: 6px; height: 36px; padding: 0 14px; border-color: var(--line-2); transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.choice button:active { transform: scale(.97); }
.choice--cards button { border-radius: 8px; }
.tags { border-radius: 6px; }
.tag { color: var(--pen); background: var(--pen-tint); border-radius: 5px; }
.drop { border-radius: 12px; border-color: var(--line-2); }
.drop__icon { border-radius: 10px; }
.list-card, .file, .reading, .summary, .plan-opt { border-color: var(--line); border-radius: 10px; }
.plan-opt[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--ink); border-color: var(--ink); }
.save::before { background: var(--go); }
.field__label .from { color: var(--pen); background: var(--pen-tint); text-transform: none; font: 500 11.5px var(--font); letter-spacing: 0; }
.ob__form { animation: stepIn .26s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
.auth .input { color: var(--ink); }
.bill { align-items: start; }

/* Data and privacy notes */
.privacy-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.privacy-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); transition: text-decoration-color .15s ease, color .15s ease; }
.privacy-note a:hover { color: var(--ink); text-decoration-color: currentColor; }
.data-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.data-row p { margin: 0; font-size: 14px; color: var(--ink-2); }
.panel__head .link-quiet { margin-left: auto; font-size: 13px; }

/* ---------- App shell: sidebar fits its width; phones get a compact top bar ---------- */
.side__foot, .me { min-width: 0; }
.side__foot { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .dash { grid-template-rows: auto 1fr; min-height: 100dvh; }
  .side { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 10px; padding: 10px 12px 0; height: auto; background: rgba(250,250,250,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
  .side .brand { padding: 0 4px; grid-area: 1 / 1; }
  .side .credits { grid-area: 1 / 2; }
  .side__foot { grid-area: 1 / 3; }
  .side__nav { grid-area: 2 / 1 / 3 / -1; }
  .side .credits { display: flex; flex-direction: row-reverse; align-items: center; gap: 5px; padding: 0 10px; height: 30px; border-radius: 999px; font-size: 13px; }
  .side .credits__n { font: 500 13px var(--font); letter-spacing: 0; }
  .side .credits__top span { font-size: 13px; text-transform: lowercase; }
  .side .credits__top a { display: none; }
  .side__foot { display: block; margin: 0; }
  .me__btn { padding: 2px; border-radius: 999px; }
  .me__btn > div { display: none; }
  .menu-pop { left: auto; right: 0; bottom: auto; top: calc(100% + 6px); min-width: 200px; z-index: 30; }
  .side__nav { grid-column: 1 / -1; display: flex; gap: 2px; margin: 0 -12px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; order: initial; width: auto; }
  .side__nav::-webkit-scrollbar { display: none; }
  .side__nav a { flex: none; height: 40px; padding: 0 10px; border-radius: 0; font-size: 14px; box-shadow: none !important; background: none !important; border-bottom: 2px solid transparent; }
  .side__nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .side__nav svg { display: none; }
  .main__bar { height: 56px; }
}
/* Phones: all five tabs fit in one row, down to 375 wide, spread edge to edge. Narrower screens still scroll them. */
@media (max-width: 480px) {
  .side__nav { justify-content: space-between; gap: 0; padding: 0 6px; }
  .side__nav a { padding: 0 6px; }
}
@media (max-width: 900px) {
  .main__bar h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .main__bar:has(.actions:empty) { display: none; }
  .main__bar .actions { margin-left: 0; width: 100%; }
  .main__body { padding-top: 20px; }
}

/* ---------- Live view: watch the runner fill, picture-in-picture ---------- */
.live { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 400px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: bottom right; animation: liveIn .24s var(--ease-out); transition: width .32s var(--ease); }
.live.is-big { width: min(980px, calc(100vw - 40px)); }
.live__head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.live__head b { font-weight: 600; }
.live__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: livePulse 1.6s var(--ease-out) infinite; }
.live__where { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font: 12px var(--mono); }
.live__btn { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); transition: background .15s, color .15s; }
.live__btn:hover { background: var(--paper-2); color: var(--ink); }
.live__btn:active { transform: scale(.96); }
.live.is-big .live__btn--size svg { transform: rotate(180deg); }
.live__screen { position: relative; aspect-ratio: 1280 / 880; background: var(--paper-2); }
.live__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.live__wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 13px; color: var(--ink-3); }
.live__wait::after { content: ""; position: absolute; left: 50%; top: calc(50% + 22px); width: 64px; height: 2px; margin-left: -32px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--ink-3), transparent); background-size: 200% 100%; animation: liveScan 1.2s linear infinite; }
.live__note { margin: 0; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.live-pill { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); animation: liveIn .2s var(--ease-out); transition: transform .15s var(--ease-out); }
.live-pill:active { transform: scale(.97); }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); } }
@keyframes liveIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes liveScan { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 900px) {
  .live, .live.is-big { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .live__btn--size { display: none; }
  .live-pill { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .live, .live-pill, .live__dot, .live__wait::after { animation: none; } .live { transition: none; } }

.live__take { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.live__take span { flex: 1; min-width: 0; color: var(--ink-2); }
.live.is-take .live__screen { cursor: default; outline: none; }
.live.is-take .live__screen:focus-visible { box-shadow: inset 0 0 0 2px var(--pen); }
.live.is-take { box-shadow: var(--shadow-lg), 0 0 0 2px var(--pen); }
@media (max-width: 900px) { .live__take span { display: none; } .live__take { justify-content: flex-end; } }
@media (max-width: 900px) { .live__screen { aspect-ratio: auto; height: min(34vh, 280px); } .live.is-take .live__screen { height: min(62vh, 560px); } }
/* Large and take-over views always fit the window; take-over is a centred window over a dimmed page. */
.live { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
.live.is-big .live__screen { aspect-ratio: auto; height: min(calc(100dvh - 140px), calc(min(980px, 100vw - 40px) * .69)); }
.live.is-take { left: 50%; top: 50%; right: auto; bottom: auto; translate: -50% -50%; transform-origin: center; width: min(1180px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); box-shadow: var(--shadow-lg), 0 0 0 2px var(--pen), 0 0 0 100vmax rgba(10, 10, 10, .32); }
.live.is-take .live__screen { aspect-ratio: auto; height: min(calc(100dvh - 48px - 38px - 52px), calc(min(1180px, 100vw - 48px) * .69)); }
.live.is-take .live__btn--size { display: none; }
@media (max-width: 900px) { .live.is-take { left: 50%; right: auto; width: calc(100vw - 24px); } .live.is-take .live__screen { height: min(62vh, 560px); } }

/* ---------- Documents: tailored resume and cover letters ---------- */
.docs-btn svg { margin-right: 6px; }
.docs-btn.is-on { color: var(--pen); box-shadow: 0 0 0 1px var(--pen-tint), inset 0 0 0 1px #c9dafc; background: var(--pen-tint); }
.docs-pop { position: fixed; z-index: 45; width: 360px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); animation: liveIn .16s var(--ease-out); }
.docs-pop__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.doc-switches { display: grid; gap: 12px; }
.switch-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 32px; height: 18px; margin-top: 1px; border-radius: 999px; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .18s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .18s var(--ease); }
.switch-row input:checked + .switch { background: var(--ink); box-shadow: none; }
.switch-row input:checked + .switch::after { transform: translateX(14px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--pen); outline-offset: 2px; }
.switch-row b { display: block; font-size: 13.5px; font-weight: 500; }
.switch-row small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.doc-note { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.dt__docs { display: flex; gap: 8px; margin: 12px 0 0; }
@media (max-width: 900px) { .docs-pop { left: 12px !important; right: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after, .docs-pop { transition: none; animation: none; } }
@media (max-width: 900px) { .main__bar .actions { overflow-x: auto; scrollbar-width: none; } .main__bar .actions::-webkit-scrollbar { display: none; } .main__bar .actions .btn { flex: none; } }
.costs { display: grid; gap: 0; padding-top: 4px; padding-bottom: 4px; }
.costs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.costs div:last-child { border-bottom: 0; }
.costs span { color: var(--ink-2); }
.costs b { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.rv-empty__spin { display: inline-block; width: 22px; height: 22px; margin-bottom: 14px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rv-empty__spin { animation: none; } }

/* ---------- Modes: manual, auto, hands-free ---------- */
.mode { margin: 4px 4px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mode__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 9px; background: var(--paper-2); }
.mode__opt { min-height: 36px; border: 0; border-radius: 7px; background: transparent; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.mode__opt:hover { color: var(--ink); }
.mode__opt.is-on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.mode__opt:focus-visible { outline: none; box-shadow: var(--ring); }
.mode__desc { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.mode__limit { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; font-size: 13px; color: var(--ink-2); }
.mode__limit select { min-height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); font: 500 14px var(--font); color: var(--ink); }
.mode__confirm p { margin: 10px 2px 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.mode__row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

/* ---------- A held form's open questions ---------- */
.ask { margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); display: grid; gap: 12px; }
.ask__title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ask__q { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.ask__q textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card); font: 16px/1.4 var(--font); color: var(--ink); resize: vertical; field-sizing: content; }
.ask__q textarea:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-tint); }
.ask__keep { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.ask .btn { justify-self: start; }

/* ---------- Code box in the take-over ---------- */
.live__code { display: flex; gap: 6px; align-items: center; }
.live__code input { width: 120px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font: 500 16px var(--mono); letter-spacing: 0.08em; color: var(--ink); }
.live__code input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-tint); }
@media (max-width: 640px) {
  .live__code { width: 100%; }
  .live__code input { flex: 1; width: auto; }
  /* The code box takes its own row, with Not now and I sent it under it, so nothing runs off the left edge. */
  .live__take { flex-wrap: wrap; }
}

/* ---------- Phones and touch ---------- */
/* Full height means the visible height: 100vh on phones includes the space under the browser bars. */
body.app-body, .auth, .auth__main, .ob, .dash { min-height: 100dvh; }
@supports not (min-height: 100dvh) { body.app-body, .auth, .auth__main, .ob, .dash { min-height: 100vh; } }
.ob__rail, .ob__aside, .side { height: 100dvh; }
@supports not (height: 100dvh) { .ob__rail, .ob__aside, .side { height: 100vh; } }

/* Toasts: rich text wraps as one paragraph, and the stack keeps clear of the home bar. */
.toast { display: block; }
.toast-zone { bottom: calc(24px + env(safe-area-inset-bottom)); justify-items: center; }
.ob ~ .toast-zone { bottom: calc(100px + env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  .toast-zone { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); transform: none; }
  .toast { max-width: 100%; }
  /* Above the review's pinned Skip and Approve, and at the top while the take-over sheet holds the bottom. */
  body:has([data-view="review"]:not([hidden]) .dt__actions) > .toast-zone { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.live.is-take:not([hidden])) > .toast-zone { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
}

/* Auth */
.auth__main { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(20px, env(safe-area-inset-bottom)); padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
@media (max-width: 600px) { .auth__main { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); } }
.auth__top { gap: 12px; }
.auth__top .brand { flex: none; white-space: nowrap; }
.auth__switch { text-align: right; }
@media (max-width: 420px) {
  .auth__top .brand span { display: none; }
  .auth__switch { margin: 0; }
  .auth__card { padding-bottom: 8vh; }
  .otp { gap: 6px; }
}

/* Onboarding */
.ob__bar { padding-top: env(safe-area-inset-top); height: calc(64px + env(safe-area-inset-top)); }
.ob__foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  .ob__bar { height: calc(56px + env(safe-area-inset-top)); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .ob__content { padding: 28px max(20px, env(safe-area-inset-right)) calc(120px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .ob__title { font-size: 26px; }
  .ob__form { gap: 24px; margin-top: 28px; }
  .ob__foot { padding: 12px max(20px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: linear-gradient(rgba(255,255,255,0), var(--paper) 24%); }
  /* While typing, the on-screen keyboard would cover a bar fixed to the bottom, so it joins the end of the form instead. */
  .ob:has(.ob__form :is(input, textarea, select):focus) .ob__foot { position: static; padding-top: 0; background: none; }
  .ob:has(.ob__form :is(input, textarea, select):focus) .ob__content { padding-bottom: 24px; }
  .summary__row { gap: 2px 12px; padding: 12px 14px; }
  .summary__row > span { font-size: 13px; }
  .plan-opt { gap: 12px; padding: 14px; }
  .drop { min-height: 180px; padding: 24px 16px; }
  .file { flex-wrap: wrap; }
  .list-card { padding: 14px; }
}
/* Every row of fields is one column on a phone; the columns set inline per row are for wider screens. */
@media (max-width: 600px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row > div:empty { display: none; }
  .choice--cards button { height: auto; min-height: 60px; padding: 12px 14px; }
}

/* Dashboard */
@media (max-width: 900px) {
  .side { height: auto; padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .side__nav a { height: 44px; }
  .main__body { padding: 16px max(12px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .main__bar { height: auto; min-height: 56px; padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); }
  .main__bar .actions { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .main__bar .actions .btn { flex: 1 1 calc(50% - 4px); min-width: 0; padding: 0 10px; font-size: 14px; }
  .main__bar .actions .docs-btn { overflow: hidden; text-overflow: ellipsis; }
  .runbar { padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
  .runbar > b { flex: none; }
  /* Review: list on top, the picked application below, its buttons pinned to the bottom of the screen. */
  .rv, .rv__detail { overflow: visible; }
  .rv__list { max-height: 40vh; max-height: 40dvh; overflow-y: auto; border-radius: 12px 12px 0 0; }
  .rv__item { padding: 10px; }
  .dt { padding: 18px 16px 0; }
  .dt__head { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
  .dt__logo { width: 36px; height: 36px; font-size: 15px; }
  .dt__title h2 { font-size: 18px; }
  .dt__head .pill { grid-column: 2; justify-self: start; }
  .dt__f { grid-template-columns: minmax(0, 1fr) 18px; gap: 2px 10px; padding: 10px 14px; }
  .dt__f > span:first-child { grid-column: 1 / -1; }
  .dt__f .pen { overflow-wrap: anywhere; }
  .dt__docs { flex-wrap: wrap; }
  .dt__actions { margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0 0 12px 12px; background: #fff; box-shadow: 0 -1px 0 var(--line); z-index: 5; }
  .dt__actions .btn { flex: 1 1 0; min-width: 0; }
  .rv-empty { margin-top: 8vh; padding: 0 8px; }
  /* Applications: a stacked row per application instead of four columns. */
  [data-view="applications"] .table thead { display: none; }
  [data-view="applications"] .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  [data-view="applications"] .table tr:last-child { border-bottom: 0; }
  [data-view="applications"] .table td { display: block; padding: 0; border: 0; }
  [data-view="applications"] .table td:nth-child(1) { grid-column: 1; grid-row: 1 / 3; min-width: 0; }
  [data-view="applications"] .table td:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  [data-view="applications"] .table td:nth-child(3) { display: none; }
  [data-view="applications"] .table td:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; }
  .tabs { width: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 1 0 auto; height: 40px; padding: 0 14px; }
  /* Billing */
  .bill__bal { padding: 20px; }
  .bill__plan { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 14px 16px; }
  .bill__plan > div { grid-column: 1; }
  .bill__plan .num { grid-column: 1; grid-row: 2; font-size: 14px; }
  .bill__plan .btn { grid-column: 2; grid-row: 1 / 3; min-width: 96px; }
  [data-view="billing"] .table td { padding: 12px 14px; vertical-align: top; }
  [data-view="billing"] .table td:first-child { width: 72px !important; white-space: nowrap; }
  .panel__head { padding: 14px 16px; }
  .panel__body { padding: 16px; }
  .profile-sec { gap: 4px 12px; padding: 14px 16px; }
  .profile-sec > div { min-width: 0; overflow-wrap: anywhere; }
  .data-row .btn { flex: 1 1 auto; }
  .danger .field { max-width: none !important; }
  /* Documents popover: fits the screen, scrolls if it has to. */
  .docs-pop { max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Live view on a phone: the picture at its own shape, clear of the home bar; take-over fills the screen. */
@media (max-width: 900px) {
  .live, .live.is-big { left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .live__screen, .live.is-big .live__screen { height: auto; aspect-ratio: 1280 / 880; }
  .live-pill { right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); height: 44px; padding: 0 16px; }
  .live.is-take { left: 0; right: 0; top: auto; bottom: 0; translate: none; width: auto; max-height: 100dvh; border-radius: 16px 16px 0 0; animation: liveSheet .28s var(--ease-out); }
  .live.is-take .live__screen { height: auto; aspect-ratio: 1280 / 880; }
  .live__take { padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .live__take .btn { flex: 1 1 0; }
}
@keyframes liveSheet { from { transform: translateY(24px); opacity: 0; } }

/* Touch: 44px controls and 16px text in every field. */
@media (pointer: coarse) {
  .tags input { font-size: 16px; height: 34px; }
  .tag { height: 34px; }
  .tag button { width: 32px; height: 32px; margin-right: -4px; font-size: 18px; }
  .choice:not(.choice--cards) button { height: 44px; padding: 0 16px; }
  .suggest { gap: 8px; }
  .suggest button { height: 40px; padding: 0 14px; font-size: 13.5px; }
  .summary__row .btn, .profile-sec .btn { height: var(--h); font-size: 14px; }
  .linkish { min-height: 44px; }
  .ob__steps button { min-height: 44px; }
  .side__nav a { min-height: 44px; }
  .me__btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .menu-pop a, .menu-pop button { height: 44px; font-size: 14.5px; }
  .tabs button { height: 40px; }
  .rv__item { min-height: 52px; }
  .rv__pick { width: 22px; height: 22px; }
  .rv__item { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .live__btn { width: 44px; height: 44px; }
  .live__head { height: 48px; }
  .switch-row { min-height: 44px; }
  .switch { width: 44px; height: 26px; }
  .switch::after { width: 22px; height: 22px; }
  .switch-row input:checked + .switch::after { transform: translateX(18px); }
  .panel__head .link-quiet { display: inline-flex; align-items: center; min-height: 44px; }
  .dt__meta a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .field__hint[href] { display: inline-flex; align-items: center; min-height: 44px; }
  a.brand { min-height: 44px; }
}
/* Hover colours stay on after a tap on touch screens, so they are off there. */
@media (hover: none) {
  .btn--line:hover, .btn--ghost:hover { background: #fff; }
  .btn--ink:hover { background: #171717; }
  .btn--quiet:hover { background: transparent; color: var(--ink-2); }
  .choice button:hover { border-color: var(--line-2); }
  .choice button[aria-pressed="true"]:hover { border-color: var(--ink); }
  .suggest button:hover { border-style: dashed; background: transparent; color: var(--ink-2); }
  .rv__item:hover { background: transparent; }
  .rv__item.is-sel:hover { background: var(--paper-3); }
  .plan-opt:hover { border-color: var(--line-2); }
  .plan-opt[aria-pressed="true"]:hover { border-color: var(--ink); }
  .drop:hover { border-color: var(--line-2); background: var(--card); }
  .add:hover { border-color: var(--line-2); color: var(--ink-2); background: transparent; }
}


/* ---------- Autopilot card: mode, daily limit, pace ---------- */
.ap { margin: 4px 4px 14px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; gap: 8px; }
.ap__seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 9px; background: var(--paper-2); }
.ap__opt { min-height: 34px; border: 0; border-radius: 7px; background: transparent; font: 500 13.5px var(--font); color: var(--ink-2); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.ap__opt:hover { color: var(--ink); }
.ap__opt.is-on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.ap__opt:focus-visible { outline: none; box-shadow: var(--ring); }
.ap__row { display: flex; flex-wrap: wrap; gap: 6px; }
.ap__pill { position: relative; display: inline-flex; }
.ap__pill select { appearance: none; -webkit-appearance: none; height: 30px; padding: 0 26px 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%23666' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center; font: 500 12.5px var(--font); color: var(--ink); cursor: pointer; }
.ap__pill select:hover { border-color: var(--line-2); }
.ap__pill select:focus-visible { outline: none; box-shadow: var(--ring); }
.ap__meta { margin: 0 2px; font-size: 12px; color: var(--ink-3); }
.ap__note { margin: 0 2px; font-size: 12.5px; color: var(--ink-2); }
.ap__note a { color: var(--pen); font-weight: 500; }
.ap__note--warn { color: var(--warn-ink); }
.ap__confirm { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 9px; background: var(--paper-2); font-size: 13px; color: var(--ink); }
.ap__confirm-btns { display: flex; align-items: center; gap: 10px; flex: none; }
.ap__link { border: 0; background: none; padding: 0; font: 500 13px var(--font); color: var(--ink-2); cursor: pointer; }
@media (pointer: coarse) {
  .ap__opt { min-height: 44px; }
  .ap__pill select { height: 40px; font-size: 16px; }
  .ap__link { min-height: 44px; }
}
@media (max-width: 600px) { .ap__meta { display: none; } }

/* ---------- Walkthrough ("Show me how") ---------- */
.tour { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; animation: tourIn .2s var(--ease-out); }
.tour.is-out { animation: tourOut .18s var(--ease-out) forwards; }
@keyframes tourIn { from { opacity: 0; } }
@keyframes tourOut { to { opacity: 0; } }
.tour__scrim { position: absolute; inset: 0; background: rgba(23, 23, 23, .32); backdrop-filter: blur(3px); }
.tour__card { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; width: min(1000px, 100%); min-height: 520px; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 30px 80px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); animation: tourCard .28s var(--ease-out); }
@keyframes tourCard { from { transform: translateY(10px) scale(.985); } }
.tour__scene { position: relative; display: grid; place-items: center; padding: 36px; background: radial-gradient(120% 100% at 0% 0%, #f4f4f2 0%, #ececea 100%); }
.tour__side { display: flex; flex-direction: column; padding: 28px 32px 24px; }
.tour__top { display: flex; align-items: center; justify-content: space-between; }
.tour__eyebrow { font: 500 11.5px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tour__close, .tour__back { border: 0; background: none; padding: 8px 0; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; }
.tour__close:hover, .tour__back:hover { color: var(--ink); }
.tour__title { margin: 22px 0 8px; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.tour__lede { margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tour__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tour__step button { display: flex; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: 15px var(--font); color: var(--ink-2); cursor: pointer; transition: background .15s var(--ease); }
.tour__step button:hover { background: var(--paper-2); }
.tour__step.is-on button { background: var(--paper-2); color: var(--ink); }
.tour__step b { display: block; font-weight: 500; }
.tour__step small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); animation: stepIn .25s var(--ease-out); }
.tour__num { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 12px var(--font); color: var(--ink-2); }
.tour__step.is-on .tour__num { background: var(--ink); border-color: var(--ink); color: #fff; }
.tour__step.is-done .tour__num { background: var(--go-tint); border-color: transparent; color: var(--go-ink); }
.tour__nav { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; }
.tour__count { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .tour { padding: 0; place-items: end stretch; }
  .tour__card { grid-template-columns: 1fr; min-height: 0; max-height: 100dvh; border-radius: 18px 18px 0 0; overflow-y: auto; }
  .tour__scene { padding: 20px 16px; min-height: 280px; }
  .tour__side { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
  .tour__title { margin-top: 10px; font-size: 24px; }
  .tour__lede { margin-bottom: 14px; }
  .tour__close, .tour__back { min-height: 44px; }
}

/* The little page inside the walkthrough. */
.tm { position: relative; width: min(420px, 100%); padding: 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 18px 40px -18px rgba(0,0,0,.25); font-size: 13px; color: var(--ink); overflow: hidden; }
.tm b { font-weight: 600; }
.tm small { display: block; color: var(--ink-3); font-size: 11.5px; margin-top: 1px; }
.tm-example { position: absolute; right: 16px; bottom: 14px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.8); box-shadow: 0 0 0 1px var(--line); font-size: 11px; color: var(--ink-3); }
.tm-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.tm-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 7px; font-weight: 500; font-size: 12px; }
.tm-btn--line { box-shadow: 0 0 0 1px var(--line-2); background: #fff; }
.tm-btn--ink { background: var(--ink); color: #fff; }
.tm-glabel { margin: 2px 4px 6px; font-size: 11px; color: var(--ink-3); }
.tm-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 9px; }
.tm-logo { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--paper-2); font-weight: 600; font-size: 12px; color: var(--ink-2); }
.tm-logo--lg { width: 34px; height: 34px; font-size: 14px; }
.tm-text { flex: 1; min-width: 0; }
.tm-fit { font: 500 11.5px var(--mono); color: var(--ink-2); }
.tm-pill { flex: none; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 500; }
.tm-pill--run { background: var(--pen-tint); color: var(--pen); }
.tm-pill--ready { background: #eaf1fe; color: var(--pen); }
.tm-pill--go { background: var(--go-tint); color: var(--go-ink); }
.tm-pill--wait { background: var(--warn-tint); color: var(--warn-ink); }
.tm-head { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tm-head > div { flex: 1; }
.tm-head .tm-pill { position: absolute; right: 0; top: 6px; }
.tm-f { display: grid; grid-template-columns: 42% 1fr 16px; align-items: center; gap: 8px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.tm-val { overflow: hidden; white-space: nowrap; color: var(--pen); }
.tm-val span { display: inline-block; }
.tm-ok { color: var(--go); font-weight: 600; opacity: 0; }
.tm-f--done .tm-ok { opacity: 1; }
.tm-foot { margin: 10px 2px 0; font-size: 11px; color: var(--ink-3); }
.tm-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.tm-ap { padding: 8px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; }
.tm-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 8px; background: var(--paper-2); }
.tm-opt { display: grid; place-items: center; height: 28px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tm-pills { display: flex; gap: 6px; margin-top: 8px; }
.tm-chip { padding: 5px 10px; border-radius: 999px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); font-size: 11.5px; font-weight: 500; }
.tm-cursor { position: absolute; z-index: 3; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 1.5L10 19z' fill='%23111' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }

/* Scene: find. The cursor presses Find jobs and matches come in. */
.tm-cursor--find { animation: curFind 4.2s var(--ease) infinite; }
@keyframes curFind { 0% { left: 70%; top: 85%; } 22% { left: 13%; top: 24px; } 26% { transform: scale(.82); } 30% { transform: scale(1); left: 13%; top: 24px; } 100% { left: 13%; top: 24px; } }
.tm--find .tm-press { animation: press 4.2s var(--ease) infinite; }
@keyframes press { 0%, 24% { transform: none; background: #fff; } 27% { transform: scale(.95); background: var(--paper-2); } 32%, 100% { transform: none; background: #fff; } }
.tm--find .tm-in { opacity: 0; animation: rowIn 4.2s var(--ease-out) infinite; animation-delay: calc(var(--i) * .18s); }
@keyframes rowIn { 0%, 32% { opacity: 0; transform: translateY(6px); } 42%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Scene: fill. Each answer types in, then a check; the pill turns to Ready. */
.tm--fill .tm-val span { animation: typeIn 4.4s steps(14) infinite; animation-delay: calc(var(--i) * .45s); clip-path: inset(0 100% 0 0); }
@keyframes typeIn { 0%, 6% { clip-path: inset(0 100% 0 0); } 22%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.tm--fill .tm-ok { animation: okIn 4.4s var(--ease-out) infinite; animation-delay: calc(var(--i) * .45s + .5s); }
@keyframes okIn { 0%, 18% { opacity: 0; transform: scale(.6); } 24%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.tm--fill .tm-swap-out { animation: swapOut 4.4s infinite; }
.tm--fill .tm-swap-in { animation: swapIn 4.4s infinite; }
@keyframes swapOut { 0%, 66% { opacity: 1; } 70%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapIn { 0%, 66% { opacity: 0; } 70%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* Scene: send. The cursor presses Approve and the pill turns to Sent. */
.tm-cursor--send { animation: curSend 4.2s var(--ease) infinite; }
@keyframes curSend { 0% { left: 30%; top: 90%; } 30% { left: 86%; top: calc(100% - 36px); } 34% { transform: scale(.82); } 38% { transform: scale(1); left: 86%; top: calc(100% - 36px); } 100% { left: 86%; top: calc(100% - 36px); } }
.tm--send .tm-press { animation: pressInk 4.2s var(--ease) infinite; }
@keyframes pressInk { 0%, 32% { transform: none; } 35% { transform: scale(.94); } 40%, 100% { transform: none; } }
.tm--send .tm-swap-out { animation: swapOut2 4.2s infinite; }
.tm--send .tm-swap-in { animation: swapIn2 4.2s infinite; }
@keyframes swapOut2 { 0%, 40% { opacity: 1; } 46%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapIn2 { 0%, 40% { opacity: 0; transform: scale(.9); } 46%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Scene: mode. The cursor picks Hands-free; limits and pace show under it. */
.tm-cursor--mode { animation: curMode 4.2s var(--ease) infinite; }
@keyframes curMode { 0% { left: 20%; top: 80%; } 28% { left: 78%; top: 30px; } 32% { transform: scale(.82); } 36% { transform: scale(1); left: 78%; top: 30px; } 100% { left: 78%; top: 30px; } }
.tm--mode .tm-opt--on { animation: optOn 4.2s infinite; }
.tm--mode .tm-opt--off { animation: optOff 4.2s infinite; }
@keyframes optOn { 0%, 34% { background: transparent; box-shadow: none; color: var(--ink-2); } 38%, 100% { background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); } }
@keyframes optOff { 0%, 34% { background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); } 38%, 100% { background: transparent; box-shadow: none; color: var(--ink-2); } }
.tm--mode .tm-pills { animation: rowIn 4.2s var(--ease-out) infinite; }
.tm--mode .tm-in { animation: rowIn 4.2s var(--ease-out) infinite; animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .tm *, .tm-cursor { animation: none !important; }
  .tm-in, .tm-pills { opacity: 1 !important; }
  .tm--fill .tm-val span { clip-path: none; }
  .tm-ok { opacity: 1; }
  .tm-swap-out { opacity: 0; }
}
.tm .tm-swap-in { opacity: 0; }

/* Getting started: what to do next, until the first application is sent. */
.gs { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.gs__count { flex: none; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.gs__bar { flex: none; width: 72px; height: 5px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.gs__bar i { display: block; height: 100%; border-radius: 5px; background: var(--go); transition: width .4s var(--ease-out); }
.gs__next { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); }
.gs__next span { color: var(--ink-3); }
.gs__btns { display: flex; align-items: center; gap: 8px; flex: none; }
.gs__x { border: 0; background: none; width: 28px; height: 28px; border-radius: 7px; font-size: 18px; line-height: 1; color: var(--ink-3); cursor: pointer; }
.gs__x:hover { background: var(--paper-2); color: var(--ink); }
.gs ~ .rv { height: calc(100vh - 56px - 24px - 48px - 70px); }
.runbar:not([hidden]) ~ .main__body .gs ~ .rv { height: calc(100vh - 56px - 40px - 24px - 48px - 70px); }
.main__bar h1 .tour-link { margin-left: 12px; border: 0; background: none; padding: 0; font: 500 13px var(--font); color: var(--pen); cursor: pointer; vertical-align: 2px; }
@media (max-width: 900px) {
  .gs { flex-wrap: wrap; gap: 8px 12px; }
  .gs__next { flex-basis: 100%; order: 3; }
  .gs__btns { order: 4; }
  .gs ~ .rv { height: auto; }
}
@media (pointer: coarse) { .gs__x { width: 44px; height: 44px; } .main__bar h1 .tour-link { min-height: 44px; } }
.ap.is-flash { animation: apFlash 1.2s var(--ease-out); }
@keyframes apFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--pen-tint); border-color: var(--pen); } }
