/* HandRaise account pages: sign in, password, and the dashboard. Same tokens as the marketing site. */
:root {
  --ground: #F3F5EF; --surface: #FFFFFF; --raised: #FAFBF8; --ink: #111318; --muted: #5A6067; --faint: #8A9096;
  --line: rgba(17, 19, 24, .1); --line-strong: rgba(17, 19, 24, .18);
  --lime: #C6F432; --lime-ink: #3D6800; --tint: #E9F3CC; --band: #111318; --blue: #0A64D6; --red: #C21F2A;
  --red-tint: #FBE9EA; --amber: #8A5A00; --amber-tint: #FFF3D6; --field: #F5F6F3;
  --shadow: 0 24px 48px -28px rgba(17, 19, 24, .3), 0 6px 18px -10px rgba(17, 19, 24, .14);
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1013; --surface: #171A1F; --raised: #1C2026; --ink: #F0F3EC; --muted: #A1A8AE; --faint: #7B8288;
    --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18);
    --lime-ink: #C6F432; --tint: #232A15; --band: #08090B; --blue: #8EC5FF; --red: #FF6B72; --red-tint: #3A1C1F;
    --amber: #F5C26B; --amber-tint: #33280F; --field: #1F2329;
    --shadow: 0 24px 48px -28px rgba(0, 0, 0, .7), 0 6px 18px -10px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0E1013; --surface: #171A1F; --raised: #1C2026; --ink: #F0F3EC; --muted: #A1A8AE; --faint: #7B8288;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .18);
  --lime-ink: #C6F432; --tint: #232A15; --band: #08090B; --blue: #8EC5FF; --red: #FF6B72; --red-tint: #3A1C1F;
  --amber: #F5C26B; --amber-tint: #33280F; --field: #1F2329;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .7), 0 6px 18px -10px rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
a { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); color: var(--ink); text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--lime); color: #111318; }
.btn.primary:hover { filter: brightness(.96); }
.btn.dark { background: var(--ink); color: var(--ground); }
.btn.quiet { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn.quiet:hover { background: var(--field); }
.btn.danger { background: transparent; border-color: var(--line-strong); color: var(--red); }
.btn.small { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, input:focus-visible, select:focus-visible, .nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
label small { font-weight: 400; color: var(--muted); }
input, select { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--field); font-size: 16px; font-weight: 400; }
input[aria-invalid="true"] { border-color: var(--red); }
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.err { color: var(--red); font-size: 14px; min-height: 0; margin: 0; }
.err:empty { display: none; }
.ok { color: var(--lime-ink); font-size: 14px; margin: 0; }
.ok:empty { display: none; }

/* sign in, password and confirm pages */
.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth header, .auth footer { padding: 20px 16px; max-width: 1080px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth footer { color: var(--muted); font-size: 14px; }
.auth header small { color: var(--muted); }
.auth main { display: grid; place-items: center; padding: 16px; }
.card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; box-shadow: var(--shadow); }
.card h1 { font-size: 30px; }
.card .sub { color: var(--muted); margin: 8px 0 22px; }
.card form { display: grid; gap: 14px; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.card .btn.primary { width: 100%; }
.card .alt { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { .card { padding: 26px 18px; border-radius: 18px; } .card h1 { font-size: 26px; } }

/* dashboard */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 20px 14px;
  background: var(--surface); border-right: 1px solid var(--line); }
.side .brand { padding: 4px 8px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 11px;
  color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: var(--field); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--tint); color: var(--ink); }
.nav a[aria-current="page"] svg { color: var(--lime-ink); }
.who { margin-top: auto; display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); font-size: 14px; }
.who b { display: block; }
.who span { color: var(--muted); overflow-wrap: anywhere; }
.main { padding: 28px 32px 64px; max-width: 1180px; width: 100%; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.top h1 { font-size: 32px; }
.top p { margin: 4px 0 0; color: var(--muted); }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px;
  border-radius: 14px; margin-bottom: 14px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--lime-ink) 22%, transparent); }
.banner p { margin: 0; }
.banner b { font-weight: 700; }
.banner.warn { background: var(--amber-tint); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.banner.stop { background: var(--red-tint); border-color: color-mix(in srgb, var(--red) 30%, transparent); }

.grid { display: grid; gap: 14px; }
.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
.panel h2 { font-size: 19px; }
.panel .hint { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tile .label { color: var(--muted); font-size: 14px; font-weight: 600; }
.tile .value { font: 700 34px/1.1 var(--display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .of { color: var(--muted); font: 500 16px var(--body); }
.meter { height: 8px; border-radius: 99px; background: var(--field); overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--lime); min-width: 0; }
.meter.dark i { background: var(--ink); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.num { font-weight: 600; }
.scroll { position: relative; overflow-x: auto; margin: 0 -20px; padding: 0 20px; }  /* positioned, so hidden labels in a wide table stay inside it */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600;
  background: var(--field); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.good { background: var(--tint); color: var(--lime-ink); border-color: transparent; }
.chip.warn { background: var(--amber-tint); color: var(--amber); border-color: transparent; }
.chip.bad { background: var(--red-tint); color: var(--red); border-color: transparent; }
.chip svg { width: 13px; height: 13px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px;
  border-radius: 14px; background: var(--raised); border: 1px solid var(--line); }
.steps .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--field);
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; }
.steps li.done .dot { background: var(--lime); border-color: transparent; color: #111318; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font: 700 18px var(--display); margin-bottom: 4px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.lock { position: fixed; inset: 0; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px; z-index: 20; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--ground);
  padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); z-index: 30; max-width: calc(100vw - 32px); }

/* phones: the side nav becomes a top bar with a scrolling row of tabs */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    padding: 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .brand { padding: 0; margin-right: auto; }
  .who { order: 2; margin: 0; padding: 0; background: none; border: 0; display: flex; align-items: center; }
  .who > div { display: none; }
  .nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 4px 16px 10px; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .nav a { flex: none; min-height: 38px; padding: 0 12px; }
  .main { padding: 20px 16px 48px; }
  .top h1 { font-size: 26px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .table td, .table th { white-space: nowrap; }
}
@media (max-width: 420px) {
  .tile .value { font-size: 28px; }
  .panel { padding: 16px; border-radius: 16px; }
  .scroll { margin: 0 -16px; padding: 0 16px; }
}
.founding-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--tint); font-size: 14px; }
.founding-note b { color: var(--lime-ink); }

/* analytics */
:root { --an-seq: #3D6800; --an-t1: #1E7A34; --an-t2: #0E7C86; --an-t3: #A15C00; --an-t4: #C2410C; --an-t5: #6C6C70; --an-vol: #5A6067; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --an-seq: #C6F432; --an-t1: #7EE29A; --an-t2: #5AD8E6; --an-t3: #FFC266; --an-t4: #FFA36C; --an-t5: #A1A1A6; --an-vol: #A1A8AE; }
}
:root[data-theme="dark"] { --an-seq: #C6F432; --an-t1: #7EE29A; --an-t2: #5AD8E6; --an-t3: #FFC266; --an-t4: #FFA36C; --an-t5: #A1A1A6; --an-vol: #A1A8AE; }

.an .seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); gap: 2px; }
.an .seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.an .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.an .top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an .tile .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.an .tile .value.bad { color: var(--red); }
.an .state { text-align: center; padding: 48px 16px; color: var(--muted); }
.an .state b { display: block; color: var(--ink); font: 700 18px var(--display); margin-bottom: 6px; }
.an .state .btn { margin-top: 14px; }

.an .insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.an .insights li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px;
  border-radius: 14px; background: var(--raised); border: 1px solid var(--line); }
.an .insights .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--lime-ink); }
.an .insights .ic svg { width: 18px; height: 18px; }
.an .insights li.warn .ic { background: var(--amber-tint); color: var(--amber); }
.an .insights li.bad .ic { background: var(--red-tint); color: var(--red); }
.an .insights b { display: block; font-weight: 600; line-height: 1.4; }
.an .insights span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* best times: one green, light to dark; slots with too few dials stay blank */
.an .heat { display: grid; gap: 3px; align-items: stretch; }
.an .heat .h { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; justify-content: center; padding-bottom: 2px; }
.an .heat .cell { min-height: 34px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: default; }
.an .heat .cell.none { background: repeating-linear-gradient(135deg, var(--field) 0 4px, transparent 4px 8px); color: transparent; }
.an .heat .row-label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; }
.an .heat .vol { min-height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.an .heat .gap { grid-column: 1 / -1; height: 6px; }
.an .legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.an .legend .ramp { display: inline-flex; gap: 2px; vertical-align: middle; margin: 0 6px; }
.an .legend .ramp i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.an .legend .hatch { width: 18px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: middle; margin-right: 6px;
  background: repeating-linear-gradient(135deg, var(--line-strong) 0 3px, transparent 3px 6px); }

/* bars: thin, rounded at the value end, value printed above */
.an .bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 170px; padding-top: 4px;
  border-bottom: 1px solid var(--line-strong); }
.an .bars .b { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.an .bars .b i { display: block; border-radius: 4px 4px 0 0; background: var(--c, var(--an-seq)); min-height: 2px; }
.an .bars .b em { display: block; text-align: center; font-style: normal; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  margin-bottom: 4px; white-space: nowrap; }
.an .bars .b em.few { font-weight: 500; font-size: 11px; color: var(--faint); }
.an .bars-x { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 6px; }
.an .bars-x span { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.an .bars-x small { display: block; font-weight: 500; color: var(--faint); }
.an .sig { display: inline-block; width: 18px; height: 14px; vertical-align: -2px; }
.an .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.an .spark { width: 112px; height: 28px; display: block; }
.an .trend { font-variant-numeric: tabular-nums; white-space: nowrap; }
.an .trend .up { color: var(--lime-ink); }
.an .trend .down { color: var(--red); }
.an .numname b { display: block; white-space: nowrap; }
.an .numname small { color: var(--muted); white-space: nowrap; }

.an .cb { display: grid; gap: 10px; }
.an .cb .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 15px; }
.an .cb .track { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: var(--field); overflow: hidden; display: flex; gap: 2px; }
.an .cb .track i { display: block; height: 100%; }
.an .cb .row b { font-variant-numeric: tabular-nums; }
.an .cb .key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.an .cb .key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.an .fine { color: var(--muted); font-size: 13px; margin: 18px 2px 0; line-height: 1.5; }
.an-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--ground); padding: 8px 10px; border-radius: 10px;
  font-size: 13px; line-height: 1.35; box-shadow: var(--shadow); max-width: 240px; }
.an-tip b { display: block; }
@media (max-width: 1100px) { .an .three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .an .top-actions, .an .seg { width: 100%; }
  .an .seg button { flex: 1; padding: 7px 6px; }
  .an .insights li { grid-template-columns: 28px minmax(0, 1fr); padding: 11px 12px; }
  .an .insights .ic { width: 28px; height: 28px; }
}

/* numbers: HandRaise Flow (every number's purpose and setup) */
.nb .nb-lead { max-width: 660px; }
.nb .top .btn .chip { margin-left: 4px; padding: 1px 8px; font-size: 12px; }
.nb-group { margin-top: 14px; }
.nb-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 8px; }
.nb-group-head h2 { font-size: 18px; }
.nb-group-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.nb-group-head .count { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nb-list { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.nb-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.25fr) 176px 150px minmax(0, 1fr) 18px; gap: 14px; align-items: center;
  padding: 13px 18px; min-height: 64px; text-decoration: none; color: inherit; }
.nb-row + .nb-row { border-top: 1px solid var(--line); }
a.nb-row:hover { background: var(--raised); }
a.nb-row:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.nb-name b { display: block; font-weight: 650; }
.nb-name span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.nb-day { color: var(--muted); font-size: 13.5px; }
.nb-load { font-size: 14px; font-variant-numeric: tabular-nums; }
.nb-load .bar { height: 6px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); margin-top: 5px; overflow: hidden; }
.nb-load .bar i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.nb-txt { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.nb-txt i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.nb-txt.on i { background: var(--lime-ink); }
.nb-txt.off i { background: var(--line-strong); }
.nb .chev { width: 18px; height: 18px; color: var(--faint); }
.nb-row.pending { color: var(--muted); }
.nb-row.pending .nb-name b { color: var(--muted); font-weight: 600; }
.nb .chip.move { background: transparent; border-style: dashed; }
.nb-note { margin: 10px 4px 0; color: var(--muted); font-size: 13.5px; }
.nb-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.nb-state b { display: block; color: var(--ink); font: 700 18px var(--display); margin-bottom: 4px; }

.nb-back { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.nb-back svg { width: 16px; height: 16px; }
.nb-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.nb-top h1 { font-size: 30px; }
.nb-top p { margin: 4px 0 0; color: var(--muted); }
.nb-feature { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lime-ink);
  background: var(--tint); padding: 3px 9px; border-radius: 99px; margin-bottom: 8px; }
.nb-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.nb-gap { margin-bottom: 14px; }
.nb-flow { list-style: none; margin: 0; padding: 4px 0 0; }
.nb-step { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; position: relative; padding-bottom: 18px; }
.nb-step:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: var(--line-strong); }
.nb-dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--field); border: 1px solid var(--line); color: var(--ink); }
.nb-dot svg { width: 18px; height: 18px; }
.nb-dot.go { background: var(--tint); color: var(--lime-ink); border-color: transparent; }
.nb-step h3 { font: 650 16px/1.3 var(--body); margin: 8px 0 3px; letter-spacing: 0; }
.nb-step p { margin: 0; color: var(--muted); font-size: 14px; }
.nb-edit { align-self: start; margin-top: 4px; }
.nb-step > .nb-tog { align-self: start; margin-top: 8px; }
.nb-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.nb-opt { font: 600 13px var(--body); padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); background: transparent; cursor: pointer; }
.nb-opt.sel { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.nb-greet { display: flex; align-items: center; gap: 10px; margin-top: 9px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; max-width: 460px; }
.nb-greet b { font-weight: 600; font-size: 14px; }
.nb-greet span { color: var(--muted); font-size: 13px; }
.nb-play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--tint); color: var(--lime-ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.nb-play svg { width: 13px; height: 13px; }
.nb textarea.nb-msg { display: block; width: 100%; max-width: 460px; margin-top: 9px; min-height: 0; padding: 10px 12px; resize: none; overflow: hidden;
  background: var(--field); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; font: 400 14.5px/1.4 var(--body); color: var(--ink); }
.nb textarea.nb-msg.dim { opacity: .65; }
.nb-wait { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--amber); font-size: 13px; font-weight: 600; }
.nb-wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-top: 5px; flex: none; }
.nb-tline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; }
.nb-tline .nb-tog { margin-left: auto; }
.nb-tog { width: 46px; height: 28px; border-radius: 99px; background: var(--line-strong); position: relative; flex: none; border: 0; padding: 0; cursor: pointer; }
.nb-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s; }
.nb-tog.on { background: #34C759; }
.nb-tog.on::after { left: 21px; }
.nb-tog:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nb-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); gap: 2px; margin-top: 10px; }
.nb-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: 600 14px var(--body); color: var(--muted); cursor: pointer; }
.nb-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.nb-default { margin-top: 8px !important; font-size: 13px !important; }
.nb-link { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }
.nb-editor { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); display: grid; gap: 10px; max-width: 520px; }
.nb-editor textarea { width: 100%; min-height: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--field); font: 400 15px/1.4 var(--body); resize: vertical; }
.nb-editor .hint { margin: 0; color: var(--muted); font-size: 14px; }
.nb-editor .err { margin-top: -2px; }
.nb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nb-fields select { min-height: 40px; }
.nb-devices { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.nb-devices legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
.nb-check { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.nb-check input { width: 18px; min-height: 0; height: 18px; }
.nb-hours { display: grid; gap: 6px; }
.nb-day-row { display: grid; grid-template-columns: 20px 40px minmax(0, 1fr) 22px minmax(0, 1fr); align-items: center; gap: 8px; font-weight: 500; }
.nb-day-row input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; }
.nb-day-row input[type="time"] { min-height: 36px; padding: 0 8px; font-size: 15px; }
.nb-day-row input:disabled { opacity: .45; }
.nb-to { color: var(--muted); font-size: 13px; text-align: center; }
.nb-recording { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 600; font-size: 14px; }
.nb-recording i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: nb-pulse 1s ease-in-out infinite; }
@keyframes nb-pulse { 50% { opacity: .3; } }
.nb-upload { cursor: pointer; }
.nb .btn svg { width: 14px; height: 14px; }
.nb-sec { margin-bottom: 14px; }
.nb-sec-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 6px 7px; }
.nb-rows { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.nb-srow { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; font-size: 15px; }
.nb-srow + .nb-srow { border-top: 1px solid var(--line); }
.nb-srow .k { font-weight: 550; flex: none; }
.nb-srow .v { margin-left: auto; color: var(--muted); }
.nb .nb-input { width: auto; flex: 1; min-width: 0; max-width: 260px; margin-left: auto; min-height: 36px; padding: 0 10px; text-align: right;
  background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: 15px; }
.nb .nb-input:hover, .nb .nb-input:focus { border-color: var(--line-strong); background: var(--field); color: var(--ink); }
.nb select.nb-input { text-align-last: right; cursor: pointer; }
.nb-ok { color: var(--lime-ink); font-weight: 600; }
.nb-foot { color: var(--muted); font-size: 13px; margin: 7px 6px 0; line-height: 1.45; }
.nb .err { margin: 6px 6px 0; }
@media (max-width: 1100px) { .nb-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .nb-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 6px 10px; }
  .nb-row .pp-list, .nb-row .nb-health, .nb-row .nb-load, .nb-row .nb-txt { grid-column: 1; }
  .nb-row .chev { grid-column: 2; grid-row: 1 / span 5; }
  .nb-row .pp-list:empty, .nb-row.pending > div:empty { display: none; }
  .nb-row .nb-health { display: flex; gap: 6px; align-items: center; }
  .nb-row .nb-load .bar { max-width: 220px; }
  .nb-top h1 { font-size: 26px; }
  .nb-step { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; }
  .nb-edit { grid-column: 2 / -1; justify-self: start; margin-top: 8px; }
  .nb-dot { width: 34px; height: 34px; }
  .nb-step:not(:last-child)::before { left: 16px; top: 36px; }
  .nb-fields { grid-template-columns: minmax(0, 1fr); }
  .nb-day-row { grid-template-columns: 20px 36px minmax(0, 1fr) 18px minmax(0, 1fr); gap: 6px; }
}

/* teams: who a number rings, and one card per person (Sam approved the mockup 10-23) */
.pp-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pp { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 3px; border-radius: 99px; max-width: 100%;
  background: var(--field); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pp i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 10.5px/1 var(--body); font-style: normal; flex: none; }
.pp-then { color: var(--muted); font-size: 13px; }
.tm-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pick { display: grid; gap: 6px; }
.pick-p { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px 6px 8px; border-radius: 12px; min-width: 0;
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.pick-p .pp { background: none; border: 0; padding: 0; height: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pick-p .pick-r { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.pick-p .ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  font: 700 12px/1 var(--body); color: #111318; flex: none; }
.pick-p.sel { border-color: color-mix(in srgb, var(--lime-ink) 45%, transparent); background: var(--tint); }
.pick-p.sel .ck { background: var(--lime); border-color: var(--lime); }
.pick-p:disabled { opacity: .5; cursor: default; }
.pick-p:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nb-editor .nb-seg { margin-top: 0; justify-self: start; }
.nb-opts.nb-sub { margin-top: 6px; }
.nb-reword { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 8px 12px; max-width: 460px;
  border-radius: 12px; background: var(--amber-tint); color: var(--ink); font-size: 14px; }
.nb-reword span { flex: 1 1 200px; }
.nb-ro { margin: 6px 0 0 !important; font-size: 14px; color: var(--amber) !important; font-weight: 600; }
#nb-setup .nb-opt:disabled, #nb-setup .nb-tog:disabled, #nb-setup .nb-seg button:disabled { cursor: default; }

.tm-list { display: grid; gap: 14px; }
.tm-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.tm-id { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; align-items: center; min-width: 0; }
.tm-id > div b { display: block; font-weight: 650; font-size: 17px; }
.tm-id > div span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.tm-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--body); grid-row: span 2; }
.tm-chips { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tm-actions { grid-column: 2; margin-top: 8px; }
.tm-body { min-width: 0; }
.tm-body .nb-foot { margin-top: 8px; }
.tm-body .err { margin: 8px 6px 0; }
.tm .nb-input { width: auto; flex: 0 1 auto; max-width: 340px; }
.tm-match { display: inline-flex; align-items: center; gap: 5px; color: var(--lime-ink); font-size: 13px; font-weight: 600; white-space: nowrap; margin-left: auto; }
.tm-match::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--lime-ink)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.tm-match + .nb-input { margin-left: 0; }
.tm-sub { padding: 0 16px 10px; margin-top: -6px; text-align: right; font-size: 13px; }
.tm-nums { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; min-width: 0; }
.tm-num { padding: 4px 10px; border-radius: 99px; background: var(--field); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tm-num.also { color: var(--muted); font-weight: 500; }
.tm-vm { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; min-width: 0; }
.tm-vm b { color: var(--ink); font-weight: 600; }
.tm-greet { flex-wrap: wrap; padding-top: 0; min-height: 0; padding-bottom: 12px; border-top: 0 !important; }
.tm-greet .nb-opts { margin: 0 0 0 auto; justify-content: flex-end; }
.tm-greet .nb-editor { flex: 1 1 100%; max-width: none; margin-top: 0; }
.tm-seat { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-seat .v { margin: 0; }
.tm-price { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--tint); font-size: 14px; }
.tm-price b { color: var(--lime-ink); }
.tm-sheet .card { max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; }
.tm-sheet .card h1 { font-size: 26px; }
.tm-sheet form { gap: 0; }
.tm-sheet .err { margin-top: 10px; }
.tm-sheet .actions { margin-top: 16px; }
.tm-sheet .card .btn.primary { width: auto; }
@media (max-width: 980px) { .tm-card { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
@media (max-width: 820px) {
  .tm .nb-srow { flex-wrap: wrap; row-gap: 6px; }
  .tm .nb-srow .k { width: 100%; }
  .tm .nb-srow .nb-input, .tm .nb-srow .v, .tm-nums, .tm-vm, .tm-seat { margin-left: 0; max-width: 100%; text-align: left; justify-content: flex-start; }
  .tm .nb-srow .nb-input { padding-left: 0; flex: 1 1 auto; }
  /* a drawn arrow, so a picked value starts exactly where the plain values above and below it start */
  .tm .nb-srow select.nb-input, .tm .nb-srow select.nb-input:hover, .tm .nb-srow select.nb-input:focus { text-align-last: left; -webkit-appearance: none; appearance: none;
    padding: 0 26px 0 0; border-color: transparent; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A9096' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 4px center / 14px no-repeat; }
  .tm-match { margin-left: 0; order: 2; width: 100%; }
  .tm-sub { text-align: left; }
  .tm-greet .nb-opts { margin-left: 0; justify-content: flex-start; }
  .tm-seat { width: 100%; justify-content: space-between; }
}
.tm-vm .nb-link { font-size: 14px; margin-left: 2px; }
.tm-greet .nb-opts { align-items: center; }
.tm-greet .nb-opts .nb-link { font-size: 14px; margin-left: 6px; }

/* billing: two-column price tables wrap on a phone instead of running off the screen */
.table.wrap td, .table.wrap th { white-space: normal; }
.table.wrap td.num { min-width: 7em; }
