/* Cinch client portal. One family, restrained color: the accent marks primary actions and the current place. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --line: #e2e5e9;
  --line-strong: #c9ced5;
  --ink: #15191e;
  --muted: #566070;
  --faint: #6f7886;
  --accent: #1c6b58;
  --accent-hover: #155342;
  --accent-ink: #ffffff;
  --accent-weak: #e4f1ec;
  --side: #0f1f1b;
  --side-ink: #c9d6d1;
  --side-ink-strong: #ffffff;
  --side-line: #1d322c;
  --side-active: #1b3a32;
  --ok: #17703f; --ok-bg: #e1f3e8;
  --warn: #8a5300; --warn-bg: #fdf0d3;
  --danger: #b42318; --danger-bg: #fde8e6;
  --info: #1a5aa0; --info-bg: #e3eefa;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 1px 1px rgba(16, 24, 32, .04);
  --shadow-pop: 0 12px 32px rgba(16, 24, 32, .18), 0 2px 6px rgba(16, 24, 32, .08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px;
  --side-w: 15rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1013; --surface: #151a1e; --surface-2: #1a2025; --line: #262d34; --line-strong: #3a434c;
    --ink: #e8ebee; --muted: #a1abb6; --faint: #8b95a1;
    --accent: #55c4a3; --accent-hover: #74d2b6; --accent-ink: #08140f; --accent-weak: #15302a;
    --side: #0a1210; --side-ink: #a9bbb4; --side-line: #172622; --side-active: #153029;
    --ok: #6fd69c; --ok-bg: #12301f; --warn: #f2c66d; --warn-bg: #33270b;
    --danger: #ff9b92; --danger-bg: #3a1a17; --info: #8cc0f5; --info-bg: #14283f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-pop: 0 12px 32px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 .9375rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: 1rem; line-height: 1.3; font-weight: 650; }
h3 { font-size: .9375rem; font-weight: 650; }
code, .mono { font-family: var(--mono); font-size: .85em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 100; border-radius: 6px; box-shadow: var(--shadow-pop); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.icon { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 1rem .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1.25rem; color: var(--side-ink-strong); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.brand:hover { color: var(--side-ink-strong); }
.brand .mark { width: 1.75rem; height: 1.75rem; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--side-ink); letter-spacing: 0; margin-top: -.15rem; }
.side nav { display: grid; gap: .125rem; }
.side nav a, .side .side-btn { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: 6px; color: var(--side-ink); text-decoration: none; font-weight: 500; background: none; border: 0; font: inherit; font-weight: 500; cursor: pointer; width: 100%; text-align: left; }
.side nav a:hover, .side .side-btn:hover { background: var(--side-line); color: var(--side-ink-strong); }
.side nav a[aria-current="page"] { background: var(--side-active); color: var(--side-ink-strong); }
.side nav a .count { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 1rem; font-size: .72rem; font-weight: 700; padding: 0 .45rem; line-height: 1.25rem; min-width: 1.25rem; text-align: center; }
.side .spacer { flex: 1; }
.side .who { border-top: 1px solid var(--side-line); padding: .75rem .5rem 0; margin-top: .75rem; font-size: .8125rem; }
.side .who strong { display: block; color: var(--side-ink-strong); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .side-btn { margin-top: .4rem; padding: .4rem .5rem; margin-left: -.5rem; width: calc(100% + .5rem); font-size: .8125rem; }
.side :focus-visible { outline-color: #fff; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; align-items: center; gap: .75rem; padding: .6rem 1rem; background: var(--side); color: var(--side-ink-strong); position: sticky; top: 0; z-index: 20; }
.topbar .brand { padding: 0; }
.topbar button { background: none; border: 0; color: inherit; padding: .4rem; border-radius: 6px; cursor: pointer; display: flex; }
.topbar button:hover { background: var(--side-line); }
.topbar :focus-visible { outline-color: #fff; }
main { padding: 1.75rem 2rem 3rem; max-width: 76rem; width: 100%; }
main:focus { outline: none; }
.foot { margin-top: auto; padding: 1rem 2rem 1.5rem; color: var(--faint); font-size: .8125rem; display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--faint); }
.foot nav { display: flex; gap: 1.25rem; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head .sub { color: var(--muted); margin-top: .2rem; }
.crumbs { font-size: .8125rem; color: var(--muted); margin-bottom: .35rem; }
.crumbs a { color: var(--muted); }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.main-col main > .panel + .panel, main > .grid + .panel, main > .panel + .grid, main > div > .panel + .panel { margin-top: 1.25rem; }
main .grid > .panel { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-body { padding: 1.1rem; }
.panel-foot { padding: .7rem 1.1rem; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: .875rem; }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.grid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }

.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary > div { padding: 1rem 1.1rem; border-left: 1px solid var(--line); min-width: 0; }
.summary > div:first-child { border-left: 0; }
.summary dt { color: var(--muted); font-size: .8125rem; margin-bottom: .3rem; }
.summary dd { margin: 0; font-weight: 600; font-size: 1.0625rem; }
.summary dd small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; margin-top: .1rem; }

.kv { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .55rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-weight: 600; font-size: .875rem; line-height: 1.25rem; padding: .45rem .85rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); border-color: var(--faint); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(.92); background: var(--danger); color: #fff; }
.btn.quiet { border-color: transparent; background: none; color: var(--muted); }
.btn.quiet:hover { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn.small { padding: .25rem .6rem; font-size: .8125rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.block { width: 100%; }

.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .05rem .6rem; border-radius: 1rem; font-size: .8125rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.pill.info { background: var(--info-bg); color: var(--info); border-color: transparent; }

/* ---------- tables and lists ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .8125rem; font-weight: 600; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover { background: var(--surface-2); }
td.r, th.r { text-align: right; white-space: nowrap; }
td.nw { white-space: nowrap; }
td .name { font-weight: 600; color: var(--ink); text-decoration: none; }
td .name:hover { color: var(--accent); text-decoration: underline; }
td .req-text { font-weight: 500; display: block; max-width: 36rem; overflow-wrap: anywhere; }
td .sub, .sub { color: var(--muted); font-size: .8125rem; display: block; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .75rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); align-items: start; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.feed .dot.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.feed .dot.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.feed .dot.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.feed .when { color: var(--faint); font-size: .8125rem; white-space: nowrap; }
.feed .text { overflow-wrap: anywhere; }

/* ---------- notices ---------- */
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 1.25rem; }
.notice .icon { margin-top: .15rem; }
.notice > div { flex: 1; min-width: 0; }
.notice p + p { margin-top: .2rem; }
.notice.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.notice.danger, .notice.error { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.notice.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.notice.info { background: var(--info-bg); border-color: transparent; color: var(--info); }
.notice .btn { margin-top: .5rem; }

/* ---------- forms ---------- */
.stack { display: grid; gap: 1rem; }
label, legend { font-weight: 600; display: block; margin-bottom: .3rem; font-size: .875rem; }
.hint { color: var(--muted); font-size: .8125rem; font-weight: 400; display: block; margin-bottom: .3rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; padding: .5rem .65rem; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 6rem; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8125rem; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 0; }
.check input { width: 1rem; height: 1rem; margin-top: .22rem; flex: none; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
form.sections > fieldset { padding-top: 1.25rem; border-top: 1px solid var(--line); }
form.sections > fieldset:first-of-type { border-top: 0; padding-top: 0; }
form.sections legend { font-size: 1rem; font-weight: 650; margin-bottom: .25rem; }
.checks { display: grid; gap: .5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg label { margin: 0; font-weight: 600; cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: .35rem .85rem; color: var(--muted); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .6rem .1rem; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .count { background: var(--surface-2); border: 1px solid var(--line); border-radius: 1rem; font-size: .75rem; padding: 0 .4rem; color: var(--muted); }

/* ---------- conversation ---------- */
.inbox { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: 30rem; }
.threads { border-right: 1px solid var(--line); overflow-y: auto; max-height: 36rem; }
.threads a { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.threads a:hover { background: var(--surface-2); color: var(--ink); }
.threads a[aria-current="page"] { background: var(--accent-weak); }
.threads strong { display: block; font-weight: 600; }
.threads .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread-head { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; max-height: 28rem; padding: 1.1rem; display: flex; flex-direction: column; gap: .85rem; }
.msg { max-width: 34rem; }
.msg .bubble { padding: .6rem .85rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .by { font-size: .75rem; color: var(--faint); margin-top: .2rem; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg.mine .bubble { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); text-align: left; }
.composer { border-top: 1px solid var(--line); padding: .85rem 1.1rem; display: grid; gap: .6rem; }
.composer textarea { min-height: 3.5rem; }
.empty { padding: 2.25rem 1.25rem; text-align: center; color: var(--muted); }
.empty .icon { width: 1.75rem; height: 1.75rem; color: var(--faint); margin-bottom: .5rem; }
.empty strong { display: block; color: var(--ink); margin-bottom: .2rem; }
.empty .btn { margin-top: .75rem; }

/* ---------- checklist ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: .8rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); align-items: flex-start; }
.steps li:last-child { border-bottom: 0; }
.steps .tick { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; margin-top: .1rem; }
.steps .tick .icon { width: .8rem; height: .8rem; stroke-width: 3; }
.steps li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.done .t { color: var(--muted); }
.steps .t { font-weight: 600; }
.steps li > div { flex: 1; }
.steps .btn { align-self: center; }

/* ---------- catalog ---------- */
.options { list-style: none; margin: 0; padding: 0; }
.options li { display: grid; grid-template-columns: minmax(0, 1fr) 10rem 9.5rem; gap: 1rem; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.options li:last-child { border-bottom: 0; }
.options .price { font-weight: 650; text-align: right; white-space: nowrap; }
.options .price small { color: var(--muted); font-weight: 400; }
.options .feat { color: var(--muted); font-size: .8125rem; }
.options li.current { background: var(--accent-weak); }

/* ---------- toasts, skeleton, dialog ---------- */
main > * { animation: enter .22s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 60; }
.toast { background: var(--ink); color: var(--bg); padding: .65rem .9rem; border-radius: 8px; box-shadow: var(--shadow-pop); display: flex; gap: .6rem; align-items: center; max-width: 24rem; animation: rise .22s cubic-bezier(.16, 1, .3, 1); }
.toast.error { background: var(--danger); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.skel { background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel, .toast, main > * { animation: none; } }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); width: min(34rem, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(10, 16, 20, .5); }
dialog form { display: grid; }
dialog .panel-head { border-radius: 12px 12px 0 0; }

/* ---------- auth and focused layouts ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { background: var(--side); color: var(--side-ink); padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h2 { color: #fff; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.015em; max-width: 24rem; }
.auth-art ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; max-width: 24rem; }
.auth-art li { display: flex; gap: .65rem; }
.auth-art li .icon { color: var(--accent); margin-top: .2rem; }
.auth-art small { color: var(--side-ink); }
.auth-form { display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(24rem, 100%); }
.auth-card h1 { margin-bottom: .35rem; }
.auth-card .m-brand { display: none; margin-bottom: 1.5rem; }
.auth-card .m-brand .brand { color: var(--ink); padding: 0; }
.auth-card .m-brand .brand small { color: var(--muted); }
.auth-card .lead { color: var(--muted); margin-bottom: 1.5rem; }
.auth-card .alt { margin-top: 1.25rem; color: var(--muted); }
.focus-page { max-width: 44rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
.focus-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.focus-top .brand { color: var(--ink); padding: 0; }
.focus-top .brand:hover { color: var(--ink); }
.focus-top .brand small { color: var(--muted); }
.btn-link { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: .25rem; }
.btn-link:hover { color: var(--ink); text-decoration: underline; }
.callback { min-height: 100vh; display: grid; place-items: center; padding: 1rem; text-align: center; }

.danger-zone { border-top: 1px solid var(--danger); }
.steps-list { padding-left: 1.2rem; margin: .5rem 0 0; }
.steps-list li { margin-bottom: .35rem; }

/* ---------- responsive ---------- */
@media (max-width: 40rem) {
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; min-width: 0; width: 100%; }
  table.rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.rt tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  table.rt tbody tr:last-child { border-bottom: 0; }
  table.rt td { border: 0; padding: .15rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; text-align: right; white-space: normal; }
  table.rt td:first-child { display: block; text-align: left; padding-bottom: .35rem; }
  table.rt td[data-label]:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-size: .8125rem; text-align: left; flex: none; }
}
@media (max-width: 62rem) {
  .grid.two, .grid.even { grid-template-columns: minmax(0, 1fr); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary > div:nth-child(3) { border-left: 0; }
  .summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 52rem) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar { display: flex; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(18rem, 85vw); transform: translateX(-100%); transition: transform .2s ease-out; z-index: 40; height: 100dvh; }
  .side.open { transform: none; box-shadow: var(--shadow-pop); }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 30; }
  main { padding: 1.25rem 1rem 2.5rem; }
  .foot { padding: 1rem; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-card .m-brand { display: block; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .threads { border-right: 0; border-bottom: 1px solid var(--line); max-height: 11rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .kv dd { margin-bottom: .6rem; }
  .options li { grid-template-columns: minmax(0, 1fr) auto; }
  .options li > :last-child { grid-column: 1 / -1; }
  .options li > :last-child .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* Help */
.type-options { display: grid; gap: .6rem; margin-top: .5rem; }
.type-option { border: 1px solid var(--line); border-radius: var(--radius); padding: .65rem .85rem; background: var(--surface); cursor: pointer; }
.type-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.crumb { font-size: .8125rem; color: var(--muted); display: inline-block; margin-bottom: .35rem; }
details > summary { cursor: pointer; font-weight: 600; }
.topbar .topbar-help { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; color: inherit; text-decoration: none; padding: .35rem .6rem; border-radius: 6px; font-weight: 600; font-size: .875rem; }
.topbar .topbar-help:hover { background: var(--side-line); }

/* Plan cards: three comparable options side by side, stacked on a phone. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; padding: 1rem; }
.plan { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.plan h3 { margin: 0; font-size: 1.05rem; }
.plan-price { display: flex; align-items: baseline; gap: .25rem; margin-top: .25rem; }
.plan-price .amount { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--muted); }
.plan-sub { margin: 0; color: var(--muted); font-size: .875rem; }
.plan .checks { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; flex: 1; }
.plan .checks li { position: relative; padding-left: 1.5rem; line-height: 1.35; }
.plan .checks li::before { content: ""; position: absolute; left: .1rem; top: .35em; width: .7rem; height: .4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan-action { margin-top: .75rem; }
.plan-action .btn { width: 100%; justify-content: center; }
.plan-note { display: block; text-align: center; color: var(--accent); font-weight: 600; padding: .5rem 0; }

/* Phone: checklist rows put the action under the text instead of squeezing the text beside it. */
@media (max-width: 40rem) {
  .steps li { flex-wrap: wrap; }
  .steps li > div { flex: 1 1 calc(100% - 2.4rem); min-width: 0; }
  .steps .btn { margin-left: 2.2rem; align-self: flex-start; }
}

/* Round 5: bigger touch targets on a phone. */
@media (max-width: 40rem) { .btn, button, select, input:not([type=checkbox]):not([type=radio]) { min-height: 2.75rem; } }
