/* Console (/app) frame, sign-in screens and console-specific screens. Uses tokens.css only. */

/* ---------- Console frame ---------- */
.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
/* The sticky sidebar is one viewport tall; the column keeps its surface below it on long pages. */
@media (min-width: 1025px) {
  .app-shell { background-image: linear-gradient(90deg, var(--glass) 0 264px, transparent 264px); }
}
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; z-index: 70;
  display: flex; flex-direction: column; gap: 14px; padding: 14px 12px 16px;
  background: var(--glass); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 1px 0 0 var(--hair-soft);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.sidebar-close { display: none; }

.org-switcher { position: relative; }
.org-switcher > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 10px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-inset);
}
.org-switcher > summary::-webkit-details-marker { display: none; }
.org-switcher > summary:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.org-switcher .org-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.org-switcher .org-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-switcher .org-text span { font-size: 12px; color: var(--fg-subtle); }
.org-switcher .chev { width: 14px; height: 14px; color: var(--fg-subtle); transition: transform .2s; }
.org-switcher[open] .chev { transform: rotate(180deg); }
.org-switcher .menu-panel { left: 0; right: 0; min-width: 0; }
.org-switcher .menu-panel button[aria-current="true"] { color: var(--fg); background: var(--film-2); }
.org-avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--primary-bright); color: var(--on-primary); font-weight: 800; font-size: 13px; }

.side-nav { display: grid; gap: 2px; }
.side-nav-label { padding: 12px 10px 4px; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-subtle); }
.side-link {
  display: flex; align-items: center; gap: 11px; min-height: var(--touch); padding: 0 10px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--fg-muted);
}
.side-link .i { width: 18px; height: 18px; }
.side-link:hover { background: var(--film-2); color: var(--fg); }
.side-link[aria-current="page"] { background: var(--nav-active); color: var(--nav-active-ink); }
.side-link .badge { margin-left: auto; }
.side-link.is-soon { color: var(--fg-faint); cursor: default; }
.side-link.is-soon:hover { background: transparent; color: var(--fg-faint); }
.sidebar-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--hair-soft); }

.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 10px 24px;
  background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--hair-soft);
}
.topbar-burger { display: none; }
.topbar-brand { display: none; }
.topbar-search {
  flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px;
  border-radius: 11px; background: var(--film-2); box-shadow: inset 0 0 0 1px var(--hair-soft); color: var(--fg-faint);
}
.topbar-search .i { width: 16px; height: 16px; }
.topbar-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 14px; color: var(--fg); }
.topbar-search input:disabled { cursor: not-allowed; }
.topbar-search input::placeholder { color: var(--fg-faint); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.user-toggle { padding: 0 6px 0 4px; }
.user-toggle .avatar { width: 32px; height: 32px; }
.user-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

.app-content { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 28px 24px 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head .crumbs { margin-bottom: 8px; }
.page-title { font-family: var(--font-display); font-weight: 900; text-transform: lowercase; letter-spacing: -0.035em; line-height: 1; font-size: clamp(30px, 3.4vw, 42px); overflow-wrap: anywhere; }
.page-sub { margin-top: 10px; color: var(--fg-muted); font-size: 15.5px; max-width: 680px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-gap { display: grid; gap: 20px; }
.env-banner { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; }

.mobile-send { display: none; }
.drawer-scrim { display: none; }

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw);
    background: var(--glass-thick); box-shadow: var(--shadow-float);
    transform: translateX(-104%); visibility: hidden; transition: transform .22s var(--ease-out), visibility .22s;
  }
  .sidebar:target, .sidebar.is-open { transform: none; visibility: visible; }
  .sidebar-close { display: inline-grid; }
  .drawer-scrim { position: fixed; inset: 0; z-index: 65; background: var(--backdrop); }
  .sidebar:target ~ .drawer-scrim, .sidebar.is-open ~ .drawer-scrim { display: block; }
  .topbar { padding: 8px 12px; gap: 6px; }
  .topbar-burger { display: inline-grid; }
  .topbar-brand { display: inline-flex; }
  .topbar-search { display: none; }
  .topbar-send { display: none; }
  .user-email { display: none; }
  .app-content { padding: 20px 16px 104px; }
  .mobile-send {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--glass-thick); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -1px 0 var(--hair-soft);
  }
  .mobile-send .btn { width: 100%; }
}
@media (max-width: 380px) { .topbar-brand .wordmark { font-size: 19px; } }

/* ---------- Sign-in, MFA and status screens ---------- */
.auth-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 56px; overflow-x: clip; }
.auth-card {
  position: relative; width: min(460px, 100%); padding: 36px 32px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow-card);
}
.auth-card-wide { width: min(560px, 100%); }
.auth-card::before { content: ""; position: absolute; inset: -30% 0 auto; height: 70%; background: var(--bloom); z-index: -1; opacity: .7; pointer-events: none; }
.auth-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--info-soft); color: var(--primary); margin-bottom: 18px; }
.auth-icon .i { width: 22px; height: 22px; }
.auth-icon-error { background: var(--danger-soft); color: var(--danger-ink); }
.auth-icon-ok { background: var(--ok-soft); color: var(--ok-ink); }
.auth-title { font-family: var(--font-display); font-weight: 900; text-transform: lowercase; letter-spacing: -0.035em; line-height: 1; font-size: clamp(30px, 6vw, 38px); }
.auth-sub { margin-top: 10px; color: var(--fg-muted); font-size: 15.5px; }
.auth-card .form { margin-top: 24px; }
.auth-alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair-soft); font-size: 14px; color: var(--fg-subtle); display: grid; gap: 8px; }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-foot { padding: 0 16px 24px; text-align: center; font-size: 13px; color: var(--fg-subtle); }
.auth-foot a:hover { color: var(--fg); }
.resend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--fg-subtle); }
.resend form { margin: 0; }
.qr { width: 196px; max-width: 100%; margin: 20px auto 8px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-inset); }
.qr svg { width: 100%; height: auto; }
.steps { counter-reset: step; display: grid; gap: 10px; margin-top: 18px; }
.steps li { counter-increment: step; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--fg-muted); }
.steps li::before { content: counter(step); flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--solid); color: var(--on-solid); font-size: 12px; font-weight: 800; margin-top: 1px; }
@media (max-width: 480px) { .auth-card { padding: 28px 20px; border-radius: 20px; } .auth-top { padding: 10px 16px; } }

/* ---------- Composer and editor ---------- */
.composer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.composer > * { min-width: 0; }
@media (max-width: 960px) { .composer { grid-template-columns: minmax(0, 1fr); } }
.step-card .card-head h2 { display: flex; align-items: center; gap: 10px; }
.step-badge { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--solid); color: var(--on-solid); font-size: 13px; font-weight: 800; flex: none; }
.status-line { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 14.5px; color: var(--fg-muted); overflow-wrap: anywhere; }
.status-line:empty { display: none; }
.camera-panel { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--bg-1); }
.camera-panel video { width: 100%; max-height: 280px; border-radius: 10px; background: #000; }
.doc-result a { font-weight: 650; }
.editor-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.editor-layout > * { min-width: 0; }
@media (max-width: 860px) { .editor-layout { grid-template-columns: minmax(0, 1fr); } }
.page-list { display: grid; gap: 8px; }
.page-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-radius: 12px; background: var(--bg-1); }
.page-row button { min-height: 36px; padding: 0 10px; border-radius: 9px; font-size: 13px; font-weight: 650; color: var(--fg-muted); background: var(--surface); box-shadow: var(--shadow-inset); }
.page-row button:first-child { flex: 1 1 100%; text-align: left; color: var(--fg); }
.page-row button[aria-current="page"] { background: var(--nav-active); color: var(--nav-active-ink); box-shadow: none; }
.page-row button:disabled { opacity: .45; }
.editor-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.edit-preview { position: relative; width: 100%; margin: 16px auto 0; border-radius: 8px; overflow: hidden; background: #d4e2f4; box-shadow: var(--shadow-inset); }
.edit-preview img { width: 100%; height: auto; background: #fff; }
.edit-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hash { font-family: var(--font-mono); font-size: 12.5px; overflow-wrap: anywhere; color: var(--fg-subtle); }

/* ---------- Component catalogue (/dev/ui) ---------- */
.ui-section { display: grid; gap: 16px; padding: 24px 0; border-top: 1px solid var(--hair-soft); }
.ui-section > h2 { font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-subtle); }
.ui-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-inset); font-size: 12px; background: var(--surface); }
.swatch i { display: block; height: 52px; }
.swatch span { display: block; padding: 8px 10px; font-family: var(--font-mono); }
.sw-bg-0 { background: var(--bg-0); } .sw-surface { background: var(--surface); } .sw-surface-muted { background: var(--surface-muted); }
.sw-fg { background: var(--fg); } .sw-fg-muted { background: var(--fg-muted); } .sw-primary { background: var(--primary); }
.sw-primary-bright { background: var(--primary-bright); } .sw-solid { background: var(--solid); } .sw-ok { background: var(--ok); }
.sw-warn { background: var(--warn); } .sw-danger { background: var(--danger); } .sw-info-soft { background: var(--info-soft); }
.ui-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ui-icons span { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--surface); font-size: 12px; box-shadow: var(--shadow-inset); }
.ui-icons .i { width: 18px; height: 18px; }
.card-icon.mb-0 { margin-bottom: 0; }
.session-list { display: grid; gap: 12px; }

/* ---------- B2B-03: organizations, onboarding, team, contacts, cover sheets, audit ---------- */
.block { display: block; }
.join-facts { display: grid; gap: 0; margin: 20px 0; border-top: 1px solid var(--hair-soft); }
.join-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair-soft); font-size: 15px; }
.join-facts span { color: var(--fg-subtle); flex: none; }
.join-facts b { text-align: right; min-width: 0; }

.checklist { display: grid; gap: 4px; }
.checklist-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair-soft); }
.checklist-item:last-child { border-bottom: 0; }
.checklist-item .small { margin-top: 2px; }
.checklist-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); color: var(--on-ok-strong); }
.checklist-mark .i { width: 15px; height: 15px; }
.checklist-item.is-done .checklist-mark { background: var(--ok-strong); border-color: var(--ok-strong); }
.checklist-item.is-done b { color: var(--fg-muted); }
@media (max-width: 560px) {
  .checklist-item { grid-template-columns: 28px minmax(0, 1fr); }
  .checklist-item .btn { grid-column: 2; justify-self: start; }
}

.disclosure summary { cursor: pointer; font-weight: 650; color: var(--primary); min-height: var(--touch); display: flex; align-items: center; }
.disclosure summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }

.role-list { display: grid; gap: 8px; font-size: 14.5px; color: var(--fg-muted); }
.role-list b { color: var(--fg); }
.role-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.select-sm { min-height: 36px; padding-top: 6px; padding-bottom: 6px; width: auto; font-size: 14px; }

.search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-row .input { flex: 1 1 220px; min-width: 0; }
.textarea-mono { font-family: var(--font-mono); font-size: 13px; min-height: 180px; }

.logo-preview { display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-inset); }
.logo-preview img { max-width: 100%; max-height: 96px; filter: grayscale(1); }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 16px; align-items: end; }
.filters .field { margin: 0; }
.filters-actions { display: flex; gap: 8px; flex-wrap: wrap; }
fieldset.checks { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.checks legend { padding: 0; margin-bottom: 4px; }
.check > span { display: grid; gap: 2px; min-width: 0; }
.table-stack td .pill { white-space: normal; text-align: left; }
.table-stack td::before { flex: none; }
.table-stack td > * { min-width: 0; }

/* ---------- B2B-04: fax delivery (tracker, outcome, composer recipients and summary) ---------- */
.track-card { display: block; }
.track-top { display: flex; align-items: flex-start; gap: 14px; }
.track-top .thumb { width: 38px; height: 48px; flex: none; border-radius: 4px; background: var(--paper, #fff); box-shadow: 0 0 0 1px var(--hair); padding: 6px 5px; display: grid; gap: 3px; align-content: start; }
.track-top .thumb i { display: block; height: 2px; background: #d3e0f1; border-radius: 1px; }
.track-top .thumb i:first-child { width: 60%; height: 3px; background: #8ea3c0; }
.track-who { min-width: 0; display: grid; gap: 3px; }
.track-who b { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.track-who span { font-size: 14px; color: var(--fg-subtle); }
.track-top .right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; color: var(--fg-subtle); text-align: right; }
.track-card .progress { margin: 20px 0 14px; }
.track-card.is-bad .progress i { background: var(--danger); }
.track-note { font-size: 15px; line-height: 1.5; color: var(--fg-muted); }
@media (max-width: 560px) {
  .track-top { flex-wrap: wrap; }
  .track-top .right { margin-left: 52px; flex-direction: row; align-items: center; flex-wrap: wrap; text-align: left; }
}
.progress-p0 i { width: 0%; }
.progress-p5 i { width: 5%; }
.progress-p10 i { width: 10%; }
.progress-p15 i { width: 15%; }
.progress-p20 i { width: 20%; }
.progress-p25 i { width: 25%; }
.progress-p30 i { width: 30%; }
.progress-p35 i { width: 35%; }
.progress-p40 i { width: 40%; }
.progress-p45 i { width: 45%; }
.progress-p50 i { width: 50%; }
.progress-p55 i { width: 55%; }
.progress-p60 i { width: 60%; }
.progress-p65 i { width: 65%; }
.progress-p70 i { width: 70%; }
.progress-p75 i { width: 75%; }
.progress-p80 i { width: 80%; }
.progress-p85 i { width: 85%; }
.progress-p90 i { width: 90%; }
.progress-p95 i { width: 95%; }
.progress-p100 i { width: 100%; }
.outcome .btn-row { gap: 8px; }
.fax-detail { align-items: start; }

.recipient-add { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.recipient-add .field { flex: 1 1 220px; margin: 0; min-width: 0; }
.recipient-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.recipient-list:empty { display: none; }
.recipient-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 0 6px 0 12px; border-radius: var(--r-pill); background: var(--film-1); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; }
.recipient-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient-chip small { color: var(--fg-subtle); }
.recipient-chip button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-muted); flex: none; }
.recipient-chip button:hover { background: var(--film-2); color: var(--fg); }
.recipient-chip button .i { width: 14px; height: 14px; }
.fax-summary { display: grid; gap: 0; margin: 0; }
.fax-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--hair-soft); font-size: 15px; }
.fax-summary div:last-child { border-bottom: 0; }
.fax-summary dt { color: var(--fg-subtle); }
.fax-summary dd { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.draft-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-subtle); min-height: 24px; }
.draft-line:empty { display: none; }
.draft-line button { font-size: 13px; font-weight: 650; color: var(--primary); }
.page-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.page-strip img { width: 64px; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--hair); flex: none; }
.page-strip span { align-self: center; font-size: 13px; color: var(--fg-subtle); flex: none; }
@media (min-width: 900px) { .filters .field-wide { grid-column: span 2; } }

/* Numbers and inbox (B2B-05) */
.max-720 { max-width: 720px; }
.segment label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 650; color: var(--fg-muted); cursor: pointer; }
.segment label:has(input:checked) { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-inset); }
.segment label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fax-pages { display: grid; gap: 18px; }
.fax-pages figure { margin: 0; }
.fax-pages img { display: block; width: 100%; height: auto; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--hair); }
.fax-pages figcaption { margin-top: 6px; font-size: 13px; color: var(--fg-subtle); }
.note-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.note-list li { padding: 12px 14px; border-radius: 12px; background: var(--bg-1); overflow-wrap: anywhere; }
.note-list p { margin: 6px 0 0; }
.dot-unread { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--primary); vertical-align: middle; }
tr.is-unread .row-link { font-weight: 800; }
tr.is-new { animation: row-in .9s ease-out; }
@keyframes row-in { from { background: var(--film-2); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { tr.is-new { animation: none; } }
fieldset.field, fieldset.section-gap { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset > legend.field-label, fieldset > legend.title { display: block; padding: 0; margin-bottom: 8px; }
fieldset.section-gap > legend.title { margin-bottom: 0; }
.field .segment { justify-self: start; width: max-content; max-width: 100%; }
@media (max-width: 480px) { .tabs a, .tabs button { padding: 0 9px; } }
.card-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Billing (B2B-06): plan banner under the page title, plan comparison, estimate */
.plan-banner { margin: 0 0 var(--space-4); align-items: center; }
.plan-banner > div { flex: 1 1 auto; min-width: 0; }
.plan-banner .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .plan-banner { flex-wrap: wrap; } .plan-banner .btn { margin-left: 34px; } }
.plans-compare .card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; }
.plans-compare .stat { margin: 10px 0 12px; }
.price-estimate { padding: 16px 18px; margin: 4px 0 8px; }
.price-estimate .stat { margin: 4px 0; }
.stat small.small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--fg-subtle); }
.stat .progress { margin: 8px 0 4px; }

/* ---------- Notification centre ---------- */
.notif-btn { position: relative; }
.notif-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; }
.notif-item + .notif-item { border-top: 1px solid var(--hair-soft); }
.notif-item a { display: flex; gap: 12px; align-items: flex-start; padding: 14px 6px; color: var(--fg); border-radius: 10px; }
.notif-item a:hover { background: var(--film-1); }
.notif-dot { flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: transparent; }
.notif-item.is-unread .notif-dot { background: var(--primary-bright); }
.notif-text { display: grid; gap: 2px; min-width: 0; }
.notif-text span, .notif-text time { font-size: 14px; color: var(--fg-muted); overflow-wrap: anywhere; }
.notif-item.is-unread .notif-text b { font-weight: 750; }
.nps-scale { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 8px 0 0; }
.nps-scale label { position: relative; }
.nps-scale input { position: absolute; opacity: 0; inset: 0; }
.nps-scale span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 10px; background: var(--film-2); font-weight: 700; cursor: pointer; }
.nps-scale input:checked + span { background: var(--primary-bright); color: var(--on-primary); }
.nps-scale input:focus-visible + span { box-shadow: var(--focus-ring); }
