/* Cortex owner app. Design v2: one family (Inter Tight), warm neutrals, one orange. No inline styles: strict CSP. */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/app/fonts/inter-tight-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/app/fonts/inter-tight-latin-wght-italic.woff2) format('woff2'); }

:root {
  --page: #F5F1ED; --page-2: #EEE8E2; --surface: #FFFFFF; --tint: #FAF8F6;
  --text: #1A1A1A; --ink: #000000; --text-2: #595552;
  --line: #E6E0DA; --line-2: #CBBAAB;
  --orange: #FF5200; --action: #C73E00; --action-hover: #A93400;
  --orange-wash: #FFF1E8; --orange-line: #FFCFB5;
  --em: #B42318; --em-wash: #FDECEA; --em-line: #F2C4BE;
  --ok: #1F6B3A; --ok-wash: #E6F2EA;
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --r: 4px;
  --tabbar: 60px;
  --float: 0 8px 24px -8px rgba(26, 26, 26, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }
a { color: var(--action); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }

/* Eyebrow: section kickers, table headers, field group titles */
.label { font: 600 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.fine { font-size: 13px; color: var(--text-2); }

.wordmark { font: 700 24px/1 var(--sans); letter-spacing: -.03em; color: var(--ink); }
.wordmark span { color: var(--orange); }
.wordmark-lg { font-size: 24px; }

/* ---------- buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; }
.btn:hover { border-color: var(--text); color: var(--text); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.btn-block { width: 100%; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--action); font-weight: 600; font-size: 15px; text-decoration: none; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- log in: white page, one centred column, no card ---------- */
.login { min-height: 100vh; min-height: 100dvh; background: var(--surface); display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.login-col { width: min(360px, 100%); margin: auto 0; padding: 72px 0 40px; display: flex; flex-direction: column; gap: 24px; }
.login-mark { margin-bottom: 16px; }
.login-form, .login-card { display: flex; flex-direction: column; gap: 18px; }
.login h1 { font: 600 24px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); margin-bottom: 6px; }
.login-links { font-size: 14px; }
.login-links a { font-weight: 600; text-decoration: none; }
.login-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.login-help { font-size: 14px; color: var(--text-2); }
.login-help a { color: var(--text); font-weight: 600; white-space: nowrap; }
.login-foot { width: min(1260px, 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 20px 0 24px; font-size: 13px; color: var(--text-2); }
.login-foot a { color: var(--text-2); text-decoration: none; }
.login-foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input { min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-weight: 400; font-size: 16px; }
.field input:focus { border-color: var(--text); outline: 2px solid var(--orange); outline-offset: 1px; }
.form-error { color: var(--em); font-weight: 600; font-size: 14px; min-height: 1px; }
.form-error:empty { display: none; }

/* ---------- shell: white sidebar on the warm page ---------- */
.shell { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
/* The white column runs the full height of the page; the sidebar's contents stick to the top. */
.shell::before { content: ''; position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 240px; background: var(--surface); border-right: 1px solid var(--line); }
.side { position: sticky; z-index: 1; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line);
  padding: 28px 16px 20px; display: flex; flex-direction: column; gap: 28px; }
.main { position: relative; z-index: 1; }
.side .wordmark { padding-left: 12px; }
.side-shop { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.side-shop-name { color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.3; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r);
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.side-link svg { width: 20px; height: 20px; flex: none; }
.side-link:hover { color: var(--text); background: var(--tint); }
.side-link.is-active, .side-link[aria-current="page"] { background: var(--page); color: var(--text); font-weight: 600; }
.side-link[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 2px 2px 0; background: var(--orange); }
.count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--action); color: #fff;
  font: 700 12px/22px var(--sans); font-variant-numeric: tabular-nums; text-align: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 12px 0; border-top: 1px solid var(--line); }
.side-foot .mono { color: var(--text); font-weight: 600; margin-top: 2px; }
.side-user { color: var(--text); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.side .link-btn { color: var(--text-2); align-self: flex-start; font-size: 14px; font-weight: 500; margin-top: -10px; }
.side .link-btn:hover { color: var(--text); }

.main { padding: 32px clamp(20px, 3vw, 40px) 56px; min-width: 0; max-width: 1340px; outline: none; display: flex; flex-direction: column; gap: 24px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.top h1 { font: 700 32px/1.1 var(--sans); letter-spacing: -.015em; color: var(--ink); margin-bottom: 6px; }
.top .label { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sync { text-align: right; font-variant-numeric: tabular-nums; }
.top .sync { font-size: 13px; }

/* ---------- stats: one white ledger, hairline cells ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--surface); padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.stat-n { font: 700 32px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ink); }
.stat-hot .stat-n.is-hot { color: var(--em); }

/* ---------- toolbar: underline tabs + search ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: flex-end; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 0 4px; }
.chip { min-height: 44px; padding: 0 12px; border: 0; border-radius: 0; background: transparent; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--text-2);
  box-shadow: inset 0 -2px 0 transparent; }
.chip:hover { color: var(--text); box-shadow: inset 0 -2px 0 var(--line-2); }
.chip[aria-pressed="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.chips .chip:first-child { padding-left: 2px; }
.search { position: relative; flex: 0 1 320px; margin-bottom: 8px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-2); }
.search input { width: 100%; min-height: 40px; padding: 0 12px 0 38px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 15px; }
.search input:focus { border-color: var(--text); outline: 2px solid var(--orange); outline-offset: 1px; }

/* ---------- panes ---------- */
.panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); gap: 24px; align-items: start; }
.list-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.row { width: 100%; min-height: 64px; display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; gap: 0 17px; align-items: center; text-align: left;
  padding: 12px 20px 12px 0; background: none; border: 0; cursor: pointer; }
.row:hover { background: var(--tint); }
.row[aria-current="true"] { background: var(--page); }
.row-bar { align-self: stretch; }
.row-bar.LIFE_SAFETY { background: var(--em); }
.row-bar.URGENT { background: repeating-linear-gradient(180deg, var(--em) 0 6px, transparent 6px 10px); }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-top { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.row-problem { color: var(--text-2); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-variant-numeric: tabular-nums; }
.row-meta .label { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.row.is-new .row-name::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--orange); vertical-align: 2px; }

.tag { display: inline-block; padding: 2px 6px; border-radius: 2px; font: 600 12px/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tag.LIFE_SAFETY { background: var(--em); color: #fff; }
.tag.URGENT { background: var(--em-wash); color: var(--em); box-shadow: inset 0 0 0 1px var(--em-line); }
.tag.ROUTINE { background: var(--page); color: var(--text-2); }
.pill { display: inline-block; padding: 1px 6px; border-radius: 2px; font: 500 12px/1.5 var(--sans); white-space: nowrap; border: 1px solid var(--line-2); color: var(--text-2); }
.pill.new { border-color: var(--text); color: var(--text); }
.pill.booked { background: var(--ok-wash); border-color: transparent; color: var(--ok); }
.pill.closed { border-style: dashed; }

.empty, .pick { padding: 56px 28px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty .muted, .pick .muted { max-width: 38ch; }
.empty-title { font-weight: 600; font-size: 18px; color: var(--ink); }
.pick { border: 1px dashed var(--line-2); border-radius: var(--r); position: sticky; top: 24px; }

/* ---------- detail ---------- */
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.back { display: none; align-self: flex-start; }
.d-head { display: flex; flex-direction: column; gap: 8px; }
.d-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.d-tags .label { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.d-head h2 { font: 700 26px/1.15 var(--sans); letter-spacing: -.015em; color: var(--ink); overflow-wrap: anywhere; }
.d-problem { font-size: 17px; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.d-actions .btn { flex: 1 1 140px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); margin-top: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; text-align: center; font-size: 14px; font-weight: 500; color: var(--text-2); line-height: 1.2; }
.seg label:hover span { color: var(--text); box-shadow: inset 0 -2px 0 var(--line-2); }
.seg input:checked + span { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: -2px; }
.block { display: flex; flex-direction: column; gap: 6px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; padding: 16px 0; border-block: 1px solid var(--line); }
.facts dt { font: 600 12px/1.4 var(--sans); padding-top: 3px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.facts dd { overflow-wrap: anywhere; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; }
.flags li { padding: 3px 8px; border-radius: 2px; background: var(--page); font-size: 14px; }
.flags li.warn { background: var(--em-wash); color: var(--em); font-weight: 600; }
.notes li { padding-left: 12px; border-left: 2px solid var(--line-2); }
.notes li + li { margin-top: 6px; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; resize: vertical; font-size: 16px; }
textarea:focus { border-color: var(--text); outline: 2px solid var(--orange); outline-offset: 1px; }
.notes-row { display: flex; gap: 12px; align-items: center; }
.transcript summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.transcript ol { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.transcript li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: 15px; }
.transcript .who { font: 600 12px/1.9 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.transcript li.caller .who { color: var(--action); }

.row.is-pinned { background: #FEF7F5; }
.row.is-pinned:hover { background: #FDF0ED; }
.row.is-pinned[aria-current="true"] { background: #FBE8E4; }
.pill.spam { border-style: dashed; }
.spam-note { padding: 12px 20px; font-size: 14px; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--tint); }

/* detail additions */
.d-job { align-self: flex-start; padding: 4px 10px; border-radius: 2px; background: var(--ok-wash); color: var(--ok); font-weight: 600; font-size: 14px; }
.sched { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--tint); }
.sched-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sched-row .input { flex: 1 1 200px; min-width: 0; width: auto; }
.qa { display: flex; flex-direction: column; gap: 8px; }
.qa dt { font-weight: 600; font-size: 14px; color: var(--text); }
.qa dd { padding-left: 12px; border-left: 2px solid var(--line-2); }
.rec { width: 100%; height: 40px; }

/* ---------- viewing as a shop (Cortex admin) ---------- */
.admin-bar { position: relative; z-index: 2; background: var(--orange-wash); color: var(--text); font-size: 14px; padding: 8px 18px; text-align: center; border-bottom: 1px solid var(--orange-line); }
.admin-bar a { color: var(--action); font-weight: 600; }

/* ---------- sidebar additions ---------- */
.side-plan { font-size: 13px; color: var(--text-2); }
.usage { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.usage-text { font-size: 14px; line-height: 1.35; color: var(--text); font-variant-numeric: tabular-nums; }
.meter { height: 4px; border-radius: 2px; background: var(--page-2); overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 2px; background: var(--text); }
.meter-fill.is-over { background: var(--orange); }
.usage-over { font: 600 13px/1.4 var(--sans); color: var(--action); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link .knob { fill: var(--surface); }
.side-link:hover .knob { fill: var(--tint); }
.side-link[aria-current="page"] .knob { fill: var(--page); }

/* ---------- views + cards ---------- */
.view { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.view h1:focus { outline: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-pad { padding: 18px 24px; }
.card-h { font: 600 20px/1.25 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.locked { padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text); font-size: 15px; }
.locked.card { padding: 20px 24px; background: transparent; font-size: 16px; }
.notice { padding: 12px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--ink); font-size: 15px; }
.hint { font-size: 14px; color: var(--text-2); }

/* ---------- form controls ---------- */
.input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 16px; }
select.input { padding-right: 36px; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23595552' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center; }
.input:focus { border-color: var(--text); outline: 2px solid var(--orange); outline-offset: 1px; }
.input:hover:not(:focus):not(:disabled) { border-color: #A89584; }
.input:disabled, textarea:disabled { background: var(--page); color: var(--text-2); cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--em); box-shadow: inset 0 0 0 1px var(--em); }
input[type="radio"], input[type="checkbox"], input[type="range"] { accent-color: var(--action); }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f > label, .f-label { font-weight: 600; font-size: 14px; color: var(--text); }
legend.f-label { padding: 0; margin-bottom: 6px; }
fieldset.f > .hint { margin-top: -4px; }
.field-error { color: var(--em); font-weight: 600; font-size: 14px; }
.field-error:empty { display: none; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
.set { display: flex; flex-direction: column; gap: 24px; }
.sub-form { display: flex; flex-direction: column; gap: 24px; }
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.save-state { font-weight: 600; font-size: 14px; }
.save-state.is-ok { color: var(--ok); }
.save-state.is-err { color: var(--em); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

/* chips you can edit (services) */
.tags-edit { display: flex; flex-wrap: wrap; gap: 6px; }
.tags-edit li { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 2px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 15px; max-width: 100%; }
.tags-edit li span { overflow-wrap: anywhere; }
.tags-edit .x { width: 30px; height: 30px; border: 0; border-radius: 2px; background: none; cursor: pointer; color: var(--text-2); font-size: 18px; line-height: 1; }
.tags-edit .x:hover { background: var(--page); color: var(--ink); }
.add-row { display: flex; gap: 8px; max-width: 460px; }
.add-row .input { flex: 1; min-width: 0; }

/* list editor (facts, questions, emails) */
.ledit { display: flex; flex-direction: column; gap: 8px; }
.ledit ol { display: flex; flex-direction: column; gap: 8px; }
.ledit li { display: flex; gap: 8px; align-items: flex-start; }
.ledit li .n { flex: none; width: 20px; padding-top: 13px; font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--text-2); text-align: right; }
.ledit li .input { flex: 1; min-width: 0; }
.ledit textarea.input { min-height: 44px; padding: 10px 12px; line-height: 1.45; resize: none; overflow: hidden; font-size: 16px; }
.ledit li .btn { margin-top: 4px; }
.ledit-foot { display: flex; align-items: center; gap: 12px; }
.ledit-empty { font-size: 14px; color: var(--text-2); }

/* business hours */
.hours { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.hour-row { display: grid; grid-template-columns: 110px 96px minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 8px 16px; min-height: 60px; }
.hour-row + .hour-row { border-top: 1px solid var(--line); }
.hour-day { font-weight: 600; }
.hour-open { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.hour-open input { width: 18px; height: 18px; margin: 0; }
.hour-times { display: flex; align-items: center; gap: 8px; }
.hour-times .input { width: 136px; min-height: 40px; font-size: 15px; font-variant-numeric: tabular-nums; }
.hour-closed { color: var(--text-2); font-size: 15px; }

/* radios */
.radios { display: flex; flex-direction: column; gap: 6px; }
.radio { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 15px; }
.radio:hover { border-color: var(--line-2); }
.radio input { flex: none; width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.radio:has(input:disabled) { cursor: not-allowed; color: var(--text-2); }
.radio-other { display: flex; flex-direction: column; gap: 6px; }
.radio-other .input { margin-left: 44px; width: calc(100% - 44px); }

.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); }
.money .input { padding-left: 26px; }

/* assistant preview: a quiet panel on the page colour, not a dark box */
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.assistant-fields { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hear { position: sticky; top: 24px; background: var(--page); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.hear .label { margin: 0; }
.hear-line { display: flex; flex-direction: column; gap: 6px; }
.hear-when { font: 600 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.hear-say { font-size: 17px; line-height: 1.45; color: var(--ink); padding-left: 14px; box-shadow: inset 2px 0 0 var(--orange); overflow-wrap: anywhere; }
.hear-fine { font-size: 13px; color: var(--text-2); }

.voices { display: flex; flex-direction: column; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.voice { display: flex; align-items: center; gap: 10px; padding: 8px 14px; min-height: 52px; }
.voice + .voice { border-top: 1px solid var(--line); }
.voice label { flex: 1; display: flex; gap: 12px; align-items: center; cursor: pointer; min-width: 0; }
.voice input { flex: none; width: 18px; height: 18px; margin: 0; }
.voice-name { font-weight: 600; }
.voice-meta { font-size: 14px; color: var(--text-2); }
.speed { display: flex; align-items: center; gap: 12px; max-width: 460px; min-height: 44px; }
.speed input { flex: 1; min-width: 0; }
.speed output { min-width: 4ch; text-align: right; font-weight: 600; }

/* alerts */
.device { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--tint); }
.push-state { font-weight: 600; }
.push-state.is-on { color: var(--ok); }
.numbers { display: flex; flex-direction: column; gap: 4px; }
.numbers li { font: 600 20px/1.4 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink); }
.numbers .label { margin-left: 8px; }
.plan-box { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.plan-list li { padding-left: 16px; position: relative; font-size: 15px; }
.plan-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* Settings: jump links read as tabs */
.jump { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--line); }
.jump-btn { min-height: 44px; padding: 0 12px; border: 0; background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text-2); box-shadow: inset 0 -2px 0 transparent; }
.jump-btn:first-child { padding-left: 2px; }
.jump-btn:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--line-2); }
#view-settings > * { max-width: 1040px; width: 100%; }
#view-settings .card { scroll-margin-top: 24px; }

/* ---------- jobs ---------- */
.jobs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.day + .day { border-top: 1px solid var(--line); }
.day-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 24px 6px; }
.day-h h2 { font: 600 17px/1.2 var(--sans); color: var(--ink); }
.job { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 24px; }
.job + .job { border-top: 1px solid var(--line); }
.job-time { font: 600 14px/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.job-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-name { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.job-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.job-problem { color: var(--text-2); overflow-wrap: anywhere; }
.job-addr { font-size: 14px; overflow-wrap: anywhere; }
.earlier summary { cursor: pointer; padding: 16px 24px; font-weight: 600; }
.cal { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.cal > div { display: flex; flex-direction: column; gap: 14px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; min-width: 0; }
.cal .input.mono { font-size: 14px; }
.howto { display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.howto-h { font-weight: 600; }

/* ---------- reports ---------- */
.stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-rev .stat-n { color: var(--ok); }
.stats-6 .stat { justify-content: space-between; }
.stats-6 .stat-n { font-size: 28px; }
#reports-body { display: flex; flex-direction: column; gap: 16px; }
#reports-body > .fine { margin-top: -4px; }
.weeks { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.weeks th { font: 600 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); text-align: right; padding: 12px 24px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.weeks td { text-align: right; padding: 0 24px; height: 52px; border-top: 1px solid var(--line); }
.weeks tr:first-child td { border-top: 0; }
.weeks th:first-child, .weeks td:first-child, .weeks .w-calls { text-align: left; }
.weeks tbody th { font: 600 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); text-align: left; padding: 0 24px; border-bottom: 0; border-top: 1px solid var(--line); }
.weeks tr:first-child th { border-top: 0; }
.weeks .w-calls { width: 34%; }
.bar-cell { display: flex; align-items: center; gap: 10px; }
.bar:empty[data-zero] { display: none; }
.bar { flex: none; height: 10px; border-radius: 0 2px 2px 0; background: var(--orange); }
.bar-n { font-weight: 600; }
.notice a { color: var(--action); font-weight: 600; }

/* ---------- team ---------- */
.team li { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px 96px; gap: 6px 20px; align-items: center; min-height: 72px; padding: 14px 24px; }
.team li + li { border-top: 1px solid var(--line); }
.who-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.who-email { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.you { margin-left: 6px; font: 600 12px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 2px; background: var(--page); color: var(--text-2); vertical-align: 1px; }
.alerts-on { color: var(--ok); }
.confirm { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: var(--r); background: var(--em-wash); }
.confirm p { flex: 1 1 220px; font-weight: 600; }
.btn-danger { background: var(--em); border-color: var(--em); color: #fff; }
.btn-danger:hover { background: #8F1C13; border-color: #8F1C13; color: #fff; }
.temp { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--text); border-radius: var(--r); background: var(--surface); box-shadow: inset 3px 0 0 var(--orange); outline: none; }
.temp-h { font: 600 20px/1.25 var(--sans); color: var(--ink); }
.temp-url { overflow-wrap: anywhere; }
.temp .input { font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.temp .link-btn { align-self: flex-start; }
#view-team > * { max-width: 1040px; width: 100%; }
#team-state:empty { display: none; }
.team li > .btn { justify-self: end; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .panes { grid-template-columns: 1fr; }
  .pick { display: none; }
  .detail { position: static; max-height: none; }
  .shell.has-detail #view-inbox .list-pane, .shell.has-detail #view-inbox .toolbar, .shell.has-detail #view-inbox .stats { display: none; }
  .back { display: inline-block; }
  .jobs-layout { grid-template-columns: 1fr; }
  .cal { position: static; }
  .assistant-layout { grid-template-columns: 1fr; }
  .hear { position: static; order: -1; }
  .stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phones: a slim white top bar, and the sections as a bottom tab bar */
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  .shell::before { display: none; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; min-height: 56px; overflow: visible; flex-direction: row; align-items: center; gap: 12px;
    padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .wordmark { padding-left: 0; font-size: 22px; }
  .side-shop, #line-box, .side-user, .side-foot { display: none; }
  .usage { margin-left: auto; padding: 0; gap: 5px; min-width: 96px; max-width: 60%; }
  .usage-month { display: inline; }
  .usage-text, .usage-over { font-size: 12px; white-space: nowrap; }
  .side-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: var(--surface); border-top: 1px solid var(--line);
    padding: 0 4px env(safe-area-inset-bottom); }
  .side-link { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; min-height: var(--tabbar); padding: 6px 2px 5px; border-radius: 0;
    font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--text-2); }
  .side-link > span:not(.count) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-link svg { display: block; width: 22px; height: 22px; }
  .side-link:hover { background: transparent; }
  .side-link[aria-current="page"] { background: transparent; color: var(--ink); font-weight: 600; }
  .side-link[aria-current="page"]::before { left: 50%; top: 0; bottom: auto; width: 32px; height: 2px; margin-left: -16px; border-radius: 0 0 2px 2px; }
  .side-link .knob, .side-link:hover .knob, .side-link[aria-current="page"] .knob { fill: var(--surface); }
  .count { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; }
  .main { gap: 16px; padding: 20px 16px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(var(--tabbar) + 16px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { flex-basis: 100%; margin-bottom: 0; order: -1; }
  .toolbar { border-bottom: 0; gap: 12px; }
  .chips { width: 100%; border-bottom: 1px solid var(--line); }
  .chip { padding: 0 10px; }
  .top h1 { font-size: 28px; }
  .row { padding-right: 16px; gap: 0 13px; }
  .row-meta .pill.new { display: none; }
  .detail { padding: 20px 16px; }
  .view { gap: 16px; }
  .stat { padding: 14px 16px 12px; gap: 6px; }
  .stat-n, .stats-6 .stat-n { font-size: 26px; }
  .jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .jump::-webkit-scrollbar { display: none; }
  .jump-btn { flex: none; }
  .d-actions .btn { flex-basis: 100%; }
  .seg span { font-size: 13px; padding-inline: 2px; }
  .card { padding: 20px; }
  .card-flush { padding: 0; }
  .card-pad { padding: 16px 20px; }
  .grid-2, .grid-3, .plan-list { grid-template-columns: 1fr; }
  .hour-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px; }
  .hour-times, .hour-closed { grid-column: 1 / -1; }
  .hour-times .input { flex: 1; width: auto; min-width: 0; }
  .radio-other .input { margin-left: 0; width: 100%; }
  .temp .input { font-size: 16px; letter-spacing: 0; }
  .temp { padding: 20px; }
  .job { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .job-time { grid-column: 1 / -1; }
  .day-h { padding: 16px 16px 4px; }
  .earlier summary { padding: 14px 16px; }
  .team li { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .team .who-meta { grid-column: 1 / -1; }
  .team li > .pill { justify-self: start; }
  .team li > .fine { grid-row: 3; }
  .team li > .btn, .team li > span:empty { grid-row: 2 / 4; grid-column: 2; align-self: center; }
  .ledit li { flex-wrap: wrap; row-gap: 4px; }
  .ledit li .input { flex: 1 1 calc(100% - 28px); }
  .ledit li .btn { margin: 0 0 0 28px; min-height: 32px; padding: 0 12px; font-size: 13px; }
  .weeks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .weeks, .weeks tbody { display: block; }
  .weeks tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 20px; border-top: 1px solid var(--line); }
  .weeks tbody th { padding: 0; border: 0; align-self: end; padding-bottom: 2px; }
  .weeks tr:first-child { border-top: 0; }
  .weeks td { display: flex; flex-direction: column; gap: 2px; height: auto; padding: 0; border: 0; text-align: left; }
  .weeks td::before { content: attr(data-label); font: 600 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
  .weeks td.w-calls { grid-column: 2 / -1; }
  .weeks td.w-calls::before { display: none; }
  .weeks .w-calls .bar-cell { margin-top: 2px; }
}
@media (max-width: 400px) {
  .stats-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- first-day setup + one-time password notice ---------- */
.pw-banner { margin-bottom: 4px; }
.setup { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; }
.setup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.setup-head h2 { font: 600 20px/1.25 var(--sans); color: var(--ink); }
.setup-list { display: flex; flex-direction: column; gap: 0; counter-reset: step; margin-top: 4px; }
.setup-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center; min-height: 56px; padding: 10px 0; border-top: 1px solid var(--line); }
.setup-list li::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--text); display: grid; place-items: center; font: 600 12px/1 var(--sans); }
.setup-list li.done::before { content: '✓'; background: var(--text); color: #fff; }
.setup-list li.done .setup-title { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--line-2); }
.setup-title { font-weight: 600; }
.setup-sub { display: block; color: var(--text-2); font-size: 14px; font-weight: 400; }
.setup-list .btn { min-height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 820px) { .setup { padding: 16px 20px; } .setup-list li { grid-template-columns: 26px 1fr; } .setup-list li .btn { grid-column: 2; justify-self: start; } }

/* Smallest phones (320–360px) */
@media (max-width: 360px) {
  .chip { padding: 0 8px; font-size: 14px; }
}

.pill.sample { border-style: dashed; color: var(--text-2); }

/* New-emergency banner while the dashboard is open: a white floating card, red marker */
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; width: min(380px, calc(100vw - 48px)); background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 16px 20px; box-shadow: var(--float), inset 3px 0 0 var(--em); display: flex; flex-direction: column; gap: 6px; }
.toast-tag { font: 600 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--em); }
.toast-text { font-weight: 600; }
.toast-row { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.toast .link-btn { color: var(--text-2); font-weight: 500; }
@media (max-width: 820px) { .toast { left: 12px; right: 12px; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); width: auto; } }

.after-call { margin-top: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--page); display: flex; flex-direction: column; gap: 10px; }
.after-call-q { font-weight: 600; }
.after-call-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.export-row { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.incidents { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px 14px; }
.incidents li { font-size: 14px; overflow-wrap: anywhere; }

/* Usability review fixes */
h1[tabindex="-1"]:focus:not(:focus-visible), h2[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.unsaved-bar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: 20px; width: min(640px, calc(100vw - 24px));
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--float), inset 3px 0 0 var(--orange); }
.unsaved-bar p { flex: 1 1 240px; font-size: 15px; font-weight: 600; }
.unsaved-bar .link-btn { color: var(--text-2); font-weight: 500; }
@media (max-width: 820px) { .unsaved-bar { bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); } }
.setup.is-compact { padding: 14px 20px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.setup.is-compact .setup-list, .setup.is-compact > .muted, .setup.is-compact .setup-head { display: none; }
.setup-one { display: none; font-weight: 600; }
.setup.is-compact .setup-one { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; width: 100%; justify-content: space-between; }
.quick-times { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.flash-target { animation: flashring 1.6s ease-out 1; }
@keyframes flashring { 0% { box-shadow: 0 0 0 3px var(--orange); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .flash-target { animation: none; } }
@media (max-width: 820px) { .week-zero { display: none !important; } }

/* ---------- second usability review ---------- */
.nowrap { white-space: nowrap; }
.when-short { display: none; }
@media (max-width: 480px) { .when-long { display: none; } .when-short { display: inline; } }

/* Paused or cancelled shop: on every screen, can't be missed, not alarming */
.paused-banner { padding: 14px 18px; border-radius: var(--r); background: var(--orange-wash); border: 1px solid var(--orange-line); box-shadow: inset 3px 0 0 var(--orange); color: var(--text); font-size: 15px; line-height: 1.45; }
.paused-banner strong { color: var(--ink); font-weight: 700; }
.paused-banner a { color: var(--action); font-weight: 600; white-space: nowrap; }

/* Outage: in place of a view's content */
.load-error { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border-style: dashed; border-color: var(--line-2); }
.load-error-h { font: 600 20px/1.25 var(--sans); color: var(--ink); }
.view.load-failed > :not(.top):not(.load-error) { display: none !important; }

/* Call detail: spam */
.spam-box { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--tint); font-size: 15px; }
.d-foot { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.spam-link { font-size: 14px; font-weight: 500; color: var(--text-2); }
.spam-link:hover { color: var(--ink); }
#spam-state:empty, #status-state:empty { display: none; }
#status-state { margin-top: 6px; }

/* Notes: autosave state */
.notes-state { font-size: 14px; font-weight: 600; color: var(--text-2); }
.notes-state.is-ok { color: var(--ok); }
.notes-state.is-err { color: var(--em); }

/* Job time: two rows of quick times, past-time confirm */
.quick-times { flex-direction: column; flex: 1 1 100%; gap: 6px; }
.quick-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 400px; }
.quick-row .chip { min-height: 40px; padding: 0 6px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); box-shadow: none; }
.quick-row .chip:hover { border-color: var(--text); box-shadow: none; }
@media (max-width: 360px) { .quick-row .chip { font-size: 13px; padding: 0 4px; } }
.d-foot:has(> #spam-mark[hidden]):has(> #spam-state:empty) { display: none; }
.past-confirm { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r); background: var(--orange-wash); }
.past-confirm p { font-weight: 600; color: var(--ink); }
.past-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Callback phrase: a fixed start inside the field, the owner types only the ending */
.cb-own { display: flex; align-items: center; margin-left: 44px; max-width: 560px; min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: text; }
.cb-own:focus-within { border-color: var(--text); outline: 2px solid var(--orange); outline-offset: 1px; }
.cb-own:has(.input[aria-invalid="true"]) { border-color: var(--em); box-shadow: inset 0 0 0 1px var(--em); }
.cb-prefix { flex: none; padding: 0 2px 0 12px; font-size: 16px; color: var(--text-2); white-space: nowrap; cursor: text; }
.radio-other .cb-own .input { flex: 1; min-width: 0; width: auto; margin: 0; padding-left: 6px; border: 0; background: transparent; box-shadow: none; outline: none; }
.cb-say { margin-top: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--page); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cb-say .label { margin-right: 6px; }

/* Jobs: whole row opens the job; Call and Done on the right */
.job { position: relative; min-height: 64px; }
.job:hover { background: var(--tint); }
.job-name::after { content: ''; position: absolute; inset: 0; }
.job-name:focus-visible { outline: none; }
.job-name:focus-visible::after { outline: 2px solid var(--orange); outline-offset: -3px; border-radius: var(--r); }
.job-addr, .job-acts, .job-after { position: relative; z-index: 1; }
.job-acts { display: flex; gap: 8px; align-items: center; }
.job-acts .btn { min-height: 44px; min-width: 64px; }
.job-after { grid-column: 1 / -1; margin-top: 4px; }
.jobs-note { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 24px; background: var(--ok-wash); color: var(--ok); font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
.jobs-note .link-btn { color: var(--ink); font-weight: 600; }
.jobs-layout.no-cal { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

@media (max-width: 820px) {
  .cb-own { margin-left: 0; max-width: none; }
  .jobs-note { padding: 12px 16px; }
}
@media (max-width: 360px) {
  .cb-prefix { font-size: 15px; padding-left: 10px; }
  .top { gap: 10px; }
  .top h1 { font-size: 26px; }
}

/* ---------- day-one review ---------- */
/* Spam call: its own tag, and a plain "right or wrong?" pair of buttons */
.tag.SPAM { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.spam-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.list-note { padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--ok); background: var(--ok-wash); border-bottom: 1px solid var(--line); }
.list-note:empty { display: none; }
#setup-state:empty { display: none; }
.setup.is-compact #setup-state { width: 100%; }

/* Errors read differently from hints: not just the colour, a marker too */
.field-error::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 1px; border-radius: 50%; background: var(--em); vertical-align: middle; }

/* Announcement end date */
.until { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.until > label { font-weight: 600; font-size: 14px; }
.input-date { max-width: 220px; }
.hear-until { padding-left: 14px; font-size: 13px; color: var(--text-2); }
.hear-until.is-ended { color: var(--action); font-weight: 600; }

/* Password with a Show / Hide button inside the field */
.pw-wrap { position: relative; display: flex; }
.pw-wrap .input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 36px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 2px; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pw-toggle:hover { background: var(--page); }
#set-account > .hint { margin-top: -10px; }

/* Deep links land on the field, clear of the sticky phone header */
#view-settings .f { scroll-margin-top: 24px; }
.f.flash-target { border-radius: var(--r); animation-name: flashfield; }
@keyframes flashfield { 0% { box-shadow: 0 0 0 8px var(--surface), 0 0 0 10px var(--orange); } 100% { box-shadow: 0 0 0 8px var(--surface), 0 0 0 10px transparent; } }
@media (max-width: 820px) { #view-settings .card, #view-settings .f { scroll-margin-top: 76px; } }
