/* The staff app's stylesheet. The look is the Subscriber dashboard's, as drawn in the approved mockup
   (backend repository, docs/superpowers/specs/mockups/2026-11-11-sms-inbox/mockup.css, ClickUp z8uq9me128).
   Rules for pages that later plans build (inbox, contacts, bulk) are kept so those plans add no second copy. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}
[hidden] { display: none !important; }

body.dash-app {
  --c-bg: #08102B; --c-line: #1B275A; --c-card: #111B44; --c-block-line: #2B3A75;
  --c-text: #F2F4FA; --c-text-2: #C9D1EA; --c-meta: #AEB8D6; --c-hover: #141F4C;
  --primary: #173DB8; --primary-hover: #2A50D0; --gold: #C59A3B;
  --bg: #0A1230; --card: #111B44; --card-line: #24326A; --card-shadow: none;
  --text: #F2F4FA; --text-2: #C9D1EA; --meta: #AEB8D6; --link: #9DB4FF; --link-hover: #C7D4FF;
  --ghost-text: #E4E9F8; --ghost-line: #6474B0; --ghost-bg: transparent; --ghost-hover: #141F4C;
  --field-bg: #0A1230; --field-line: #6474B0;
  --tile: #1A2862; --tile-ink: #BCCBFF;
  --banner: #10205E; --banner-line: #2B47B0; --banner-text: #D3DCF7;
  --red: #DC3232; --red-h: #CF2C2C; --on-red: #FFFFFF; /* the one solid red: Reject buttons, Rejected badge and rule; white text 4.62:1 */
  --err-bg: #1E1220; --err-line: #7A3328; --err-h: #FFB8AC; --err-text: #E9C9C3;
  --chip-ok-bg: rgba(46,170,110,.16); --chip-ok: #8FE3BC;
  --chip-info-bg: rgba(120,150,255,.16); --chip-info: #BCCBFF;
  --chip-neutral-bg: #1C2858; --chip-neutral: #C9D1EA;
  --chip-warn-bg: rgba(232,185,35,.14); --chip-warn: #F2D99B;
  --in-bg: #1A2862; --in-text: #F2F4FA; --out-bg: #173DB8; --out-text: #FFFFFF;
  --row-hover: #141F4C;
  color-scheme: dark;
  margin: 0; background: var(--bg); color: var(--text); min-height: 100vh;
  font: 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] body.dash-app {
  --bg: #F7F8FC; --card: #FFFFFF; --card-line: #DFE4EF; --card-shadow: 0 1px 2px rgba(11,22,63,.05);
  --text: #0B163F; --text-2: #5A6479; --meta: #5A6479; --link: #173DB8; --link-hover: #0F2C8F;
  --ghost-text: #0B163F; --ghost-line: #7D879E; --ghost-bg: #FFFFFF; --ghost-hover: #EEF1F9;
  --field-bg: #FFFFFF; --field-line: #7D879E;
  --tile: #E8EDFB; --tile-ink: #173DB8;
  --banner: #EEF2FD; --banner-line: #C5D1F5; --banner-text: #3A4560;
  --red: #DC3232; --red-h: #CF2C2C; --on-red: #FFFFFF;
  --err-bg: #FDF0EE; --err-line: #E3A89D; --err-h: #A8321F; --err-text: #5A2A22;
  --chip-ok-bg: #E2F5EC; --chip-ok: #146B45;
  --chip-info-bg: #E8EDFB; --chip-info: #173DB8;
  --chip-neutral-bg: #EEF1F7; --chip-neutral: #3A4560;
  --chip-warn-bg: #FBF1D6; --chip-warn: #7A5A14;
  --in-bg: #EEF1F7; --in-text: #0B163F;
  --row-hover: #F2F5FC;
  color-scheme: light;
}
/* The chrome (sidebar, top bar, tab bar) stays dark in both themes, as on the dashboard. */
body.dash-app .dash-chrome {
  --text: var(--c-text); --text-2: var(--c-text-2); --meta: var(--c-meta); --card: var(--c-card);
  --card-line: var(--c-block-line); --ghost-text: #E4E9F8; --ghost-line: #6474B0; --ghost-bg: transparent;
  --ghost-hover: var(--c-hover);
  --chip-info-bg: rgba(120,150,255,.16); --chip-info: #BCCBFF;
  --chip-ok-bg: rgba(46,170,110,.16); --chip-ok: #8FE3BC;
  background: var(--c-bg); color: var(--c-text);
}

* { box-sizing: border-box; }
body.dash-app h1, body.dash-app h2 { margin: 0; color: var(--text); }
body.dash-app p { margin: 0; }
body.dash-app a { color: var(--link); }
/* Focus is light blue (--link), never gold. Buttons, tabs and links keep a ring for keyboard users; a typed-into field
   shows the dashboard's blue border and 1px ring; a heading is not a control and never shows a ring. */
body.dash-app :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
body.dash-app input:focus-visible, body.dash-app textarea:focus-visible, body.dash-app select:focus-visible { outline: none; }
body.dash-app :is(h1, h2, h3, h4, h5, h6):focus, body.dash-app :is(h1, h2, h3, h4, h5, h6):focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 6px; background: var(--c-bg); color: var(--c-text); }
.skip:focus { left: 8px; }

/* shell */
.app { display: flex; flex-direction: column; min-height: 100vh; }
.side, .topbar, .tabs, .desk-switch { display: none; }
.col { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.view { display: flex; flex-direction: column; gap: 16px; }
body.dash-app .wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-radius: 6px; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; }
.wordmark svg { flex: none; width: 30px; height: 27px; }
.wordmark span span { color: #fff; }

.side-sep { height: 1px; margin: 0 -16px; background: var(--c-line); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
body.dash-app .side-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--c-text-2); text-decoration: none; }
.side-nav a svg { flex: none; width: 20px; height: 20px; color: var(--c-meta); }
body.dash-app .side-nav a:hover { background: var(--c-hover); color: var(--c-text); }
body.dash-app .side-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.side-nav a[aria-current="page"] svg { color: #fff; }
.side-nav .count { margin-left: auto; min-width: 24px; padding: 0 8px; border-radius: 999px; background: var(--gold); color: #0B163F; font-size: 13px; font-weight: 800; text-align: center; line-height: 22px; }
/* The foot of the side panel: the user chip and its pop-up card, copied from the Subscriber dashboard (dash.css, .acct-row and .acct-menu). */
.side-foot { position: relative; display: flex; flex-direction: column; margin: auto -16px -24px; border-top: 1px solid var(--c-line); }
.side-foot > .no-btn { margin: 16px; }
.acct-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 16px; border: 0; border-radius: 0; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.acct-row:hover, .acct-row[aria-expanded="true"] { background: #18234F; }
.acct-row-ini { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; }
.acct-row-name { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-row svg { flex: none; width: 20px; height: 20px; color: var(--c-text-2); }
.acct-menu { position: absolute; right: 0; bottom: calc(100% + 8px); left: 16px; z-index: 30; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--c-block-line); border-radius: 10px; background: var(--c-card); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.menu-head { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 20px 12px 14px; border-radius: 8px; background: #18234F; text-align: left; }
.menu-ini { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 17px; font-weight: 700; }
.menu-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding-top: 8px; }
.menu-name { max-width: 100%; font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.menu-email { max-width: 100%; font-size: 14px; line-height: 1.25; color: var(--c-meta); overflow-wrap: anywhere; }
.menu-head > .menu-chip { position: absolute; top: 20px; left: 44px; z-index: 1; min-height: 16px; padding: 0 7px; font-size: 10px; line-height: 16px; white-space: nowrap; transform: translateY(-50%); box-shadow: 0 0 0 2px #18234F; }
.menu-div { height: 1px; margin: 4px 0; background: var(--c-block-line); }
.menu-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.menu-row { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--c-text-2); font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.menu-row:hover { background: #18234F; color: #fff; }
.menu-out { margin-left: auto; color: #FFB8AC; }
.menu-out:hover { background: rgba(232,96,76,.14); color: #FFD3CB; }
.menu-ico { display: inline-flex; }
.menu-row svg { flex: none; width: 20px; height: 20px; }

.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--card-line); border-radius: 8px; background: var(--card); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--ghost-hover); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.acct-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #1A2862; color: #fff; font-size: 15px; font-weight: 700; }
body.dash-app .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 2px; border-radius: 6px; color: var(--c-meta); font-size: 14px; font-weight: 600; text-decoration: none; }
body.dash-app .tabs a[aria-current="page"] { color: #fff; }
.tabs svg { width: 22px; height: 22px; }

/* Horizontal platform menu inside Inbox: copied from the dashboard's Settings menu (.set-tabs, dash.css at frontend 5802934). */
body.dash-app .set-tabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 0 24px; border-bottom: 1px solid var(--c-block-line, #22305F); }
body.dash-app .set-tabs a { flex: 0 0 auto; padding: 12px 16px; border-bottom: 2px solid transparent; color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
body.dash-app .set-tabs a:hover { color: var(--text); }
body.dash-app .set-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--primary, #2A50D0); }
/* The Lifecycle tab row (a tablist of buttons) takes the same look; the button defaults are reset. */
body.dash-app .set-tabs [role="tab"] { flex: 0 0 auto; margin: 0; padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
body.dash-app .set-tabs [role="tab"]:hover { color: var(--text); }
body.dash-app .set-tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary, #2A50D0); }
body.dash-app .set-tabs [role="tab"]:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 720px; }
.empty h2 { margin: 0; }

/* view head */
.dash-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--meta); }
.view-head h1 { margin: 4px 0 0; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.view-sub { margin: 6px 0 0; font-size: 16px; color: var(--text-2); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
body.dash-app .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--link-hover); }

/* components */
.no-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.no-btn svg { width: 18px; height: 18px; flex: none; }
body.dash-app .no-btn-primary { background: var(--primary); color: #fff; }
body.dash-app .no-btn-primary:hover { background: var(--primary-hover); }
body.dash-app .no-btn-ghost { background: var(--ghost-bg); color: var(--ghost-text); border-color: var(--ghost-line); }
body.dash-app .no-btn-ghost:hover { background: var(--ghost-hover); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.chip-ok { background: var(--chip-ok-bg); color: var(--chip-ok); }
.chip-info { background: var(--chip-info-bg); color: var(--chip-info); }
.chip-neutral { background: var(--chip-neutral-bg); color: var(--chip-neutral); }
.chip-warn { background: var(--chip-warn-bg); color: var(--chip-warn); }
/* Rejected: solid red with light text, readable in both themes. */
.chip-err { background: var(--red); color: var(--on-red); }
.dash-copy.is-rejected { border-left: 3px solid var(--red); padding-left: 10px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dash-card { min-width: 0; padding: 22px 24px; border: 1px solid var(--card-line); border-radius: 10px; background: var(--card); box-shadow: var(--card-shadow); }
.dash-card h2 { margin-bottom: 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.dash-copy { color: var(--text-2); }
.small { font-size: 14px; color: var(--meta); }
.banner { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; border: 1px solid var(--banner-line); border-radius: 10px; background: var(--banner); }
.banner h2 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.banner ul { margin: 0; padding-left: 20px; color: var(--banner-text); }
.banner li + li { margin-top: 2px; }
.err-box { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px dashed var(--err-line); border-radius: 8px; background: var(--err-bg); }
.err-box h2 { font-size: 16px; font-weight: 700; color: var(--err-h); }
.err-box p { color: var(--err-text); }
.icon-tile { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--tile); color: var(--tile-ink); }
.icon-tile svg { width: 22px; height: 22px; }

/* top-right buttons: search, theme, bell, as on the dashboard (44px, 8px apart) */
body.dash-app a.icon-btn { text-decoration: none; }
.bell { position: relative; }
/* Search and bell wait for the Inbox: shown, not active (aria-disabled, no handler), the dashboard's disabled look. */
.icon-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.icon-btn[aria-disabled="true"]:hover { background: var(--card); color: var(--text-2); }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border: 2px solid var(--card); border-radius: 50%; background: #E8604C; }
/* status chips and the SMS actions on one line */
.status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-row .status-actions .no-btn { padding: 0 14px; }
.facts.six { grid-template-columns: repeat(3, 1fr); }
.no-btn .chip { min-height: 22px; padding: 0 8px; font-size: 12px; }
.thread-note { padding: 0 20px 14px; }
/* bulk SMS proposal */
.form-card.wide { max-width: none; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--tile); color: var(--tile-ink); font-size: 14px; font-weight: 800; }
.file { font: inherit; font-size: 14px; color: var(--text-2); max-width: 100%; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.facts div { padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 8px; }
.facts dt { font-size: 14px; color: var(--meta); }
.facts dd { margin: 2px 0 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.input.narrow { max-width: 200px; }
@media (max-width: 600px) { .input.narrow { max-width: none; } }
.form-card .banner h2 { margin: 0; }
.bar { height: 10px; border-radius: 999px; background: var(--chip-neutral-bg); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); }
.results li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; }
/* A destructive primary button (Reject payment) is solid red with light text; focus is the shared light-blue ring. */
body.dash-app .no-btn.stop { background: var(--red); border-color: var(--red); color: var(--on-red); }
body.dash-app .no-btn.stop:hover { background: var(--red-h); border-color: var(--red-h); }
body.dash-app .no-btn.stop:disabled, .modal .no-btn:disabled { opacity: .55; cursor: not-allowed; }
body.dash-app .no-btn.stop:disabled:hover { background: var(--red); border-color: var(--red); }
body.dash-app .modal .no-btn-primary:disabled:hover { background: var(--primary); }
/* the list of bulk sends, and the CSV upload */
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 20px; border-bottom: 1px solid var(--card-line); }
.list-head h2 { margin: 0; }
.batch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 20px; }
.batch-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.batch-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 17px; font-weight: 600; }
.batch-end { display: flex; flex-wrap: wrap; gap: 8px; }
.batch-note { flex: 1 1 100%; margin: 0; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-width: 0; padding: 20px; border: 2px dashed var(--field-line); border-radius: 10px; background: var(--field-bg); color: var(--text-2); }
.upload-text { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.upload-text strong { font-size: 17px; color: var(--text); }
.upload .file { flex: 1 1 100%; min-width: 0; }
.file::file-selector-button { min-height: 44px; margin-right: 12px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; background: var(--primary); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* contacts, groups and the Send to choice */
.num { font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.checks { display: flex; flex-direction: column; gap: 4px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 16px; font-weight: 400; }
.checks input, .opt-head input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.checks .small { margin-left: auto; }
.sendto { gap: 10px; }
.opt { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--card-line); border-radius: 8px; }
.opt.on { border-color: var(--primary-hover); box-shadow: inset 0 0 0 1px var(--primary-hover); }
.field .opt-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.textarea.short { min-height: 72px; }
select.input { appearance: auto; }
.toolbar .field.inline { flex: 0 1 200px; }

/* status strip and toolbar */
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--card-line); border-radius: 8px; background: var(--bg); }
body.dash-app .seg a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; }
body.dash-app .seg a[aria-current="true"] { background: var(--primary); color: #fff; }
.find { flex: 1 1 240px; display: flex; gap: 8px; min-width: 0; }
.input, .textarea { display: block; width: 100%; min-width: 0; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 6px; background: var(--field-bg); color: var(--text); font: inherit; font-size: 16px; }
.input { min-height: 44px; }
.textarea { min-height: 112px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--meta); opacity: .8; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err-line); }
.input:focus, .textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }

/* inbox list */
.list-card { padding: 0; overflow: hidden; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--card-line); }
body.dash-app .item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 14px 20px; color: var(--text); text-decoration: none; }
.item:hover { background: var(--row-hover); }
.item-main { display: flex; flex-direction: column; min-width: 0; }
.item-num { font-size: 17px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.item.unread .item-num { font-weight: 800; }
.item-sub { font-size: 14px; color: var(--meta); }
.item-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.item-time { font-size: 14px; color: var(--meta); white-space: nowrap; }
.item.unread .icon-tile { background: var(--primary); color: #fff; }
/* A list row that is a button, since an open conversation has no address. */
button.item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.list-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 20px; border-top: 1px solid var(--card-line); }
.list-note { margin: 0; padding: 16px 20px; }

/* conversation */
.thread-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.thread { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.day { align-self: center; padding: 2px 12px; border-radius: 999px; background: var(--chip-neutral-bg); color: var(--chip-neutral); font-size: 13px; font-weight: 600; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: min(78%, 560px); }
.msg.in { align-self: flex-start; align-items: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 14px; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.msg.in .bubble { border-bottom-left-radius: 4px; background: var(--in-bg); color: var(--in-text); }
.msg.out .bubble { border-bottom-right-radius: 4px; background: var(--out-bg); color: var(--out-text); }
.msg.failed .bubble { background: transparent; border: 1px dashed var(--err-line); color: var(--text); }
.msg-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--meta); }
.msg.failed .msg-meta strong { color: var(--err-h); }
.reply { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--card-line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; }
.hint { font-size: 14px; color: var(--meta); }
.field-err { font-size: 14px; font-weight: 600; color: var(--err-h); }
.auth-card .note-warn { padding: 12px 14px; border: 1px solid var(--err-line); border-radius: 10px; background: var(--err-bg); color: var(--err-text); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.counter { font-size: 14px; font-weight: 600; color: var(--meta); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--err-h); }
.form-card { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.cols > .form-card { flex: 999 1 420px; }
.cols > .aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }

.dash-foot { margin-top: auto; padding: 12px 0 0; border-top: 1px solid var(--card-line); font-size: 14px; color: var(--meta); }

@media (min-width: 900px) {
  .app { flex-direction: row; align-items: stretch; }
  .side { display: flex; flex-direction: column; gap: 20px; flex: 0 0 272px; width: 272px; height: 100vh; position: sticky; top: 0; overflow-y: auto; padding: 24px 16px; border-right: 1px solid var(--c-line); }
  .col { gap: 24px; padding: 32px 40px 16px; }
  .view { gap: 24px; }
  .side { overflow: visible; z-index: 40; }
  .acct-menu { right: auto; width: 320px; max-width: calc(100vw - 32px); }
  .desk-switch { display: flex; gap: 8px; position: absolute; top: 32px; right: 40px; z-index: 1; }
  .set-tabs, .fin-tabs { max-width: calc(100% - 172px) !important; margin-bottom: 0 !important; }
  .view-head h1 { font-size: 34px; line-height: 1.15; }
}
@media (max-width: 899.98px) {
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 20; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); }
  .dash-card { padding: 18px 16px; }
  .list-card, .thread-card { padding: 0; }
  .item { padding: 14px 16px; }
  .thread { padding: 16px; }
  .reply { padding: 14px 16px 16px; }
  .msg { max-width: 88%; }
  .head-row .no-btn { width: 100%; }
  .pair { grid-template-columns: 1fr !important; }
  .facts.six { grid-template-columns: repeat(2, 1fr); }
  .list-head, .batch { padding-left: 16px; padding-right: 16px; }
  .batch-end { width: 100%; }
  .batch-end .no-btn { flex: 1 1 auto; }
  .status-actions { width: 100%; }
  .status-actions .no-btn { flex: 1 1 auto; }
  .thread-note { padding: 0 16px 12px; }
  .form-foot .no-btn { flex: 1 1 100%; }
}
@media (max-width: 479.98px) {
  .item { grid-template-columns: 44px minmax(0, 1fr); }
  .item-end { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .find { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .no-btn { transition: none; } }
/* Phone top bar with search, theme, bell and account: the dashboard narrows its wordmark below 420px and drops the theme button below 380px. */
@media (max-width: 419.98px) {
  body.dash-app .topbar .wordmark { gap: 8px; font-size: 15px; }
  .topbar .wordmark svg { width: 24px; height: 22px; }
}
@media (max-width: 379.98px) { .top-actions [data-theme-toggle] { display: none; } }
.find .no-btn { flex: none; white-space: nowrap; }

/* The staff area's sign-in pages and console (design sections 20 and 22; R24). One card, no menu. */
.auth { display: flex; flex-direction: column; min-height: 100vh; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 16px 48px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.auth-card .no-btn { width: 100%; }
.auth-card .banner { padding: 12px 14px; color: var(--banner-text); }
.input.code { font-size: 22px; font-weight: 600; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.auth-link { text-align: center; }
body.dash-app .auth-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.event { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 14px 20px; }
@media (min-width: 900px) {
  .auth-top { padding: 18px 40px; }
  .auth-main { padding-top: 72px; }
}
@media (max-width: 899.98px) {
  .event { padding-left: 16px; padding-right: 16px; }
  .event .item-time { flex-basis: 100%; }
}

/* The phone navigation: under 900 px the avatar in the top bar opens this sheet under the bar, with the side menu's entries, the name and Sign out. The top bar is not drawn from 900 px up, and neither is the sheet. */
button.acct-btn { border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.nav-sheet { position: absolute; top: 100%; right: 0; left: 0; z-index: 25; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 72px); overflow-y: auto; padding: 8px 16px 16px; border-bottom: 1px solid var(--c-line); background: var(--c-bg); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.nav-sheet[hidden] { display: none; }
.sheet-nav { display: flex; flex-direction: column; gap: 4px; }
body.dash-app .sheet-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--c-text-2); text-decoration: none; }
.sheet-nav a svg { flex: none; width: 20px; height: 20px; color: var(--c-meta); }
body.dash-app .sheet-nav a:hover { background: var(--c-hover); color: var(--c-text); }
body.dash-app .sheet-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.sheet-nav a[aria-current="page"] svg { color: #fff; }
.sheet-nav .count { margin-left: auto; min-width: 24px; padding: 0 8px; border-radius: 999px; background: var(--gold); color: #0B163F; font-size: 13px; font-weight: 800; text-align: center; line-height: 22px; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.sheet-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; }
.sheet-name { font-size: 16px; font-weight: 700; color: var(--c-text); overflow-wrap: anywhere; }
.sheet-email { font-size: 14px; color: var(--c-meta); overflow-wrap: anywhere; }

/* The console on a phone: "Sign out" sits in the first card, since the side menu is not shown. */
.phone-only { display: none; }
@media (max-width: 899.98px) { .phone-only { display: inline-flex; } }

/* Finance: the queue of bank transfer payments and one payment with its proof (ClickUp z8uq9me581). */
/* The Finance tabs are the dashboard's Settings menu, rule for rule (.set-tabs): 15px semi-bold, 12px by 16px, 4px apart, a thin line under the row, the current tab brighter with a 2px blue underline, the row wraps onto a second line when a phone is too narrow for all four (z8uq9memqw). */
.fin-tabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; flex-wrap: wrap; margin: 0 0 8px; border-bottom: 1px solid var(--c-block-line); }
.fin-tabs button { flex: 0 0 auto; padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fin-tabs button:hover { color: var(--text); }
.fin-tabs button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--primary); }
.fin-msg { color: var(--banner-text); font-weight: 600; }
.fin-note { padding: 18px 20px; }
.fin-pay { display: flex; flex-direction: column; gap: 14px; }
.fin-pay h2 { margin: 0; font-size: 22px; }
.fin-due { display: flex; flex-direction: column; }
.fin-amount { font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.fin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: 0; }
.fin-facts dt { font-size: 14px; color: var(--meta); }
.fin-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fin-split { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
.fin-proofcard { display: flex; flex-direction: column; gap: 14px; }
.fin-proofcard h2 { margin: 0; font-size: 22px; }
.fin-hist h3 { margin: 0 0 4px; font-size: 16px; }
.fin-cta { margin-top: auto; padding-top: 6px; }
/* The proof is fitted inside the card, never scrolled: it takes the height the details card gives, and no more. */
.fin-frame { position: relative; flex: 1 1 auto; min-height: 320px; display: grid; place-items: center; border: 1px solid var(--card-line); border-radius: 8px; background: var(--field-bg); overflow: hidden; }
.fin-proof { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fin-file { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; }
.fin-file svg { width: 48px; height: 48px; }
.fin-frame .fin-row { padding: 16px; justify-content: center; }
.fin-frame .dash-copy { padding: 16px; }
@media (min-width: 900px) {
  .fin-split { grid-template-columns: 7fr 5fr; gap: 24px; }
  .fin-frame { min-height: 0; }
}
/* The two decisions open a dialog over the page. */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,8,24,.72); }
.modal-box { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--card-line); border-radius: 12px; background: var(--card); color: var(--text); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.modal-box h2 { margin: 0; font-size: 22px; }
/* The title row is divided from the body by the card line, edge to edge of the dialog. */
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -24px -24px 0; padding: 16px 24px; border-bottom: 1px solid var(--card-line); }
.modal-x { flex: none; margin: -8px -8px -8px 0; border-color: transparent; background: transparent; }
.fin-block { width: 100%; }
.modal .form-card { max-width: none; }
body.modal-open { overflow: hidden; }
/* The amount box: one border for the group; the fixed parts are not inputs. */
.fin-amt { position: relative; display: flex; align-items: center; gap: 0; min-height: 44px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--field-line); border-radius: 6px; background: var(--field-bg); cursor: text; }
.fin-amt:focus-within { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.fin-amt input { flex: none; width: 1ch; min-width: 1ch; max-width: 100%; margin: 0 0 0 8px; padding: 0; text-align: left; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.fin-amt input:focus, .fin-amt input:focus-visible { outline: none; box-shadow: none; }
.fin-amt input::placeholder { color: var(--meta); opacity: 1; }
.fin-amt-ruler { position: absolute; visibility: hidden; white-space: pre; pointer-events: none; font: inherit; font-size: 16px; }
.fin-amt-fix { flex: none; color: var(--text-2); font-size: 16px; user-select: none; -webkit-user-select: none; pointer-events: none; }
.fin-amt:has(input[aria-invalid="true"]) { border-color: var(--err-line); }
/* The house dropdown (twc-select), copied from the Subscriber dashboard's .pm-combo rules in HQ colours: one box, the option panel directly below it. */
.fin-combo { position: relative; }
.fin-combo .fin-combo-native { position: absolute; inset: 0; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; appearance: none; -webkit-appearance: none; }
.fin-combo-box { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 36px 0 12px; box-sizing: border-box; border: 1px solid var(--field-line); border-radius: 6px; background: var(--field-bg); cursor: pointer; }
.fin-combo-box:focus-within { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.fin-combo-input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; cursor: pointer; }
.fin-combo-input:focus, .fin-combo-input:focus-visible { outline: none; box-shadow: none; }
.fin-combo-input::placeholder { color: var(--meta); opacity: 1; }
.fin-combo-caret { position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; border-right: 2px solid var(--meta); border-bottom: 2px solid var(--meta); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; pointer-events: none; }
.fin-combo.is-open .fin-combo-caret { transform: translateY(-30%) rotate(225deg); }
.fin-combo-panel { display: none; position: fixed; z-index: 110; box-sizing: border-box; padding: 6px; overflow-y: auto; border: 1px solid var(--card-line); border-radius: 12px; background: var(--card); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.fin-combo.is-open .fin-combo-panel { display: block; }
.fin-combo-opt { padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 15px; cursor: pointer; }
.fin-combo-opt:hover, .fin-combo-opt.is-active { background: color-mix(in srgb, var(--link) 12%, transparent); }
.fin-combo-opt.is-selected { background: color-mix(in srgb, var(--link) 20%, transparent); color: var(--link); font-weight: 600; }
.fin-combo-opt.is-disabled { background: none; color: var(--meta); cursor: default; }
.fin-progress { height: 8px; border-radius: 999px; background: var(--chip-neutral-bg); overflow: hidden; }
.fin-progress span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--primary-hover); animation: fin-fill 2s linear forwards; }
@keyframes fin-fill { to { width: 100%; } }
.fin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pair > .form-card { max-width: none; }
.banner .fin-row { margin-top: 4px; }
button.no-btn:disabled { opacity: .55; cursor: default; }
@media (max-width: 899.98px) {
  .fin-note { padding: 16px; }
  .fin-amount { font-size: 28px; }
}

/* Finance, usage review and issuer pages (Billing HQ-F1, ClickUp z8uq9mektc): the sub-navigation row, the Active
   switch, the two-column form grid, the pending card and the history rows. One block, kept at the end of the file. */
.fin-sub { margin-bottom: 0 !important; }
.fin-sub .fin-sub-off { flex: 0 0 auto; padding: 12px 16px; border-bottom: 2px solid transparent; color: var(--meta); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: default; }
@media (max-width: 899.98px) { .fin-sub { flex-wrap: wrap; overflow: visible; row-gap: 0; } }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.fgrid .wide { grid-column: 1 / -1; }
.rec-form { max-width: none; }
.dash-card > .rec-form { margin-top: 8px; }
.fin-lbl { font-size: 15px; font-weight: 700; }
.fin-fixed { margin: 0; font-weight: 600; }
.pending-card { border-style: dashed; }
.fin-hist .list li { padding: 10px 0; }
.fin-hist .list li + li { border-top: 1px solid var(--card-line); }
.ev { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.char-count { text-align: right; }
.sw { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.sw:disabled { opacity: .55; cursor: default; }
.sw-track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--chip-neutral-bg); border: 1px solid var(--field-line); transition: background .15s; }
.sw-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform .15s; }
.sw[aria-checked="true"] .sw-track { background: var(--primary); border-color: var(--primary); }
.sw[aria-checked="true"] .sw-track::after { transform: translateX(18px); background: #fff; }

/* Finance, invoice register and reconciliation pages (Billing HQ-F2, ClickUp z8uq9memvq): the notice, the grouped queue,
   the exception chips, the WRITE THIS ON PAPER worksheet, the scan upload box, the values list and the reconciliation table
   (stacked rows on a phone). Taken from the approved mockup; every colour is an HQ variable. */
.grp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 12px 20px; border-bottom: 1px solid var(--card-line); background: var(--row-hover); }
.grp-head h2 { margin: 0; font-size: 16px; }
.exc { display: flex; flex-wrap: wrap; gap: 6px; }
.exc .chip { min-height: 24px; padding: 0 10px; font-size: 13px; }
.q-notice { border-left: 3px solid var(--chip-warn); }
.q-notice p { color: var(--text); }
.q-notice strong { font-weight: 800; letter-spacing: .01em; }
.paper { display: flex; flex-direction: column; gap: 0; border: 1px dashed var(--ghost-line); border-radius: 8px; background: var(--field-bg); overflow: hidden; }
.paper-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: var(--chip-warn-bg); color: var(--chip-warn); font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.paper-sec { min-width: 0; padding: 12px 16px; border-top: 1px dashed var(--card-line); }
.paper-sec:first-of-type { border-top: 0; }
.paper-sec dt, .paper-sec .k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--meta); }
.paper-sec dd, .paper-sec .v { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.paper-sec .v.note { font-weight: 500; color: var(--text-2); }
.paper-sec dl { margin: 0; display: grid; gap: 10px; }
.paper-total { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.p-row { margin-top: 4px; }
.p-desc { margin: 0; font-weight: 600; overflow-wrap: normal; word-break: normal; hyphens: none; }
.p-nums { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 16px; margin-top: 6px; color: var(--meta); font-size: 14px; text-align: right; }
.p-nums span { white-space: nowrap; }
.p-nums b { color: var(--text); font-weight: 700; margin-left: 4px; }
.nw { white-space: nowrap; }
.rule-hint { color: var(--text-2); }
.rec-form .fin-amt > input { flex: 1 1 auto; width: 100%; min-width: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 12px 14px; border: 1px solid var(--card-line); border-radius: 8px; background: var(--field-bg); }
.kv dt { color: var(--meta); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fin-frame .upload-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; text-align: center; }
.upload-box input[type=file] { max-width: 100%; color: var(--text-2); font: inherit; font-size: 15px; }
.rtable-wrap { overflow: hidden; }
.rtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.rtable th { padding: 12px 14px; text-align: left; font-size: 13px; font-weight: 700; color: var(--meta); border-bottom: 1px solid var(--card-line); white-space: nowrap; }
.rtable td { padding: 12px 14px; border-top: 1px solid var(--card-line); vertical-align: top; }
.rtable tbody tr:first-child td { border-top: 0; }
.rtable .r { text-align: right; }
.rtable td small { display: block; color: var(--meta); font-size: 13px; }
@media (max-width: 1099.98px) {
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { padding: 12px 16px; border-top: 1px solid var(--card-line); }
  .rtable tbody tr:first-child { border-top: 0; }
  .rtable td { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 4px 0; border: 0; text-align: right; }
  .rtable td::before { content: attr(data-label); flex: none; color: var(--meta); font-size: 14px; text-align: left; }
  .rtable td .exc { justify-content: flex-end; }
}
.sub-scroll { overflow-x: auto; }
.sub-table td { overflow-wrap: break-word; }
@media (min-width: 1100px) { .sub-table td { white-space: nowrap; } .sub-table td.sub-wrap { white-space: normal; } .sub-table td:first-child { min-width: 180px; white-space: normal; } }
.sub-table td.sub-wrap { overflow-wrap: break-word; }
.sub-table td .small { display: block; margin-top: 2px; }
.range-row.sub-search .field { flex: 1 1 320px; max-width: 460px; }
@media (max-width: 1099.98px) { .sub-table td > div { text-align: right; } }
.range-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.range-row .field { flex: 1 1 180px; max-width: 220px; }
@media (max-width: 599.98px) { .range-row .field { max-width: none; } .range-row .no-btn { width: 100%; } }

/* Lifecycle page (ClickUp z8uq9mb22v, plan docs/plans/2026-11-13-hq-lifecycle-page-plan.md): the row checkbox, the per-table
   details, the sticky action row, and the read-only line to type. Taken from the approved mockup; every colour is an HQ variable. */
.lc-sel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lc-sel input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.lc-sel label { font-weight: 600; overflow-wrap: anywhere; }
.lc-scroll { position: relative; max-width: 100%; overflow-x: auto; }
.lc-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.lc-table th { padding: 12px 10px; text-align: left; font-size: 13px; font-weight: 700; color: var(--meta); border-bottom: 1px solid var(--card-line); white-space: nowrap; }
.lc-table td { padding: 12px 10px; border-top: 1px solid var(--card-line); vertical-align: top; white-space: nowrap; }
.lc-table td.lc-wrap, .lc-table td small { white-space: normal; }
.lc-table td.lc-wrap { min-width: 160px; }
.lc-table tbody tr:first-child td { border-top: 0; }
.lc-table td small { display: block; color: var(--meta); font-size: 13px; }
.lc-table .lc-detrow td { border-top: 0; padding: 0 14px 14px 52px; }
.lc-table .lc-id { font-weight: 600; white-space: nowrap; }
.lc-table .lc-act { white-space: nowrap; text-align: right; }
.lc-table .lc-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lc-table .lc-btns { display: flex; justify-content: flex-end; gap: 8px; }
.lc-det { padding: 0; }
.list-card .fin-cta { padding: 14px 20px; }
.lc-det dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 20px; font-size: 14px; }
.lc-det dt { color: var(--meta); }
.lc-det dd { margin: 0; font-weight: 600; }
.lc-sticky { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; border-top: 1px solid var(--card-line); }
.lc-line { display: block; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field-bg); font-family: ui-monospace, Menlo, monospace; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 899.98px) {
  .lc-sticky { position: sticky; bottom: 0; background: var(--card); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .lc-sticky .no-btn { flex: 1 1 auto; }
  .lc-table .lc-detrow td { padding-left: 16px; padding-right: 16px; }
}

/* Domains page (ClickUp z8uq9mhgvh): the heading row with the state filter, the facts line, the sites list, and claim rows that stack
   on a phone. The filter is the house dropdown (.fin-combo), whose focus border is the link blue. Every colour is an HQ variable. */
.dm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 20px 20px 0; }
.dm-head h2 { margin: 0; }
.dm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.dm-filter { width: 220px; max-width: 100%; margin: 0; }
.dm-facts { padding: 10px 20px 0; margin: 0; }
.dm-ids { list-style: none; margin: 0; padding: 0 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.dm-ids li { min-width: 0; }
.dm-ids .lc-id, .dm-ids small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-ids small { color: var(--meta); font-size: 13px; }
/* The claims table: Store | Domain | Status | Actions. Names and ids are one line with an ellipsis (the full text is in title),
   the status wraps, the action column takes its buttons' natural width. Nothing scrolls inside the card at 1200 or 1360. */
.dm-table { min-width: 0; table-layout: auto; }
.dm-table th, .dm-table td { padding-left: 10px; padding-right: 10px; }
.dm-table td.dm-trunc { width: 26%; max-width: 0; overflow: hidden; }
.dm-stack { min-width: 0; }
.dm-stack .lc-id, .dm-stack small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-table td.dm-st { white-space: normal; }
.dm-status { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.dm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dm-table td.lc-act { width: 1%; white-space: nowrap; }
.dm-table td .lc-btns { flex-direction: column; align-items: stretch; }
.dm-table td .lc-btns .no-btn { white-space: nowrap; }
@media (max-width: 899.98px) {
  .dm-head { padding: 16px 16px 0; }
  .dm-filter { flex: 1 1 180px; width: auto; }
  .dm-facts { padding: 10px 16px 0; }
  .dm-ids { padding: 0 16px 16px; }
  .dm-table { display: block; }
  .dm-table thead { display: none; }
  .dm-table tbody { display: block; }
  .dm-table tr { display: block; padding: 14px 16px; border-top: 1px solid var(--card-line); }
  .dm-table tbody tr:first-child { border-top: 0; }
  .dm-table td, .dm-table td.dm-trunc { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; width: auto; max-width: none; padding: 5px 0; border-top: 0; text-align: left; }
  .dm-table td::before { content: attr(data-label); color: var(--meta); font-size: 13px; font-weight: 700; }
  .dm-table td.lc-act { display: block; width: auto; padding-top: 10px; }
  .dm-table td.lc-act::before { content: none; }
  .dm-table td.lc-act .lc-btns { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .dm-table td.lc-act .no-btn { flex: 1 1 auto; }
}
