/* The KYC Validation look for the carrier's desk: system font, iOS blue, grouped gray page (as on kycvalidation.com).
   Every rule here starts with body.kv-desk, which app.js sets only while a desk page is open: applicants always see the carrier's own brand. */
html:has(body.kv-desk) { background: #f2f2f7; }
body.kv-desk {
  color-scheme: light;
  --brand: #ffffff; --brand-2: #0067d6; --brand-soft: #e5f0ff; --brand-ink: #0040a8; --teal: #007aff; --link: #0059bd;
  --bg: #f2f2f7; --card: #ffffff; --border: #e5e5ea; --text: #1c1c1e; --text-2: #48484a; --muted: #636366; --field: #8e8e93;
  --green: #1a7f37; --green-soft: #e3f6e8; --red: #c4271e; --red-soft: #fdebea; --amber: #8f5400; --amber-soft: #fff3df; --gray-soft: #efeff4;
  --r: 14px; --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  font-family: var(--font); font-size: 14px; overflow-wrap: break-word;
}
body.kv-desk .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.kv-desk :focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
/* Text for screen readers is absolutely placed: keep it inside its own box so it never widens the page. */
body.kv-desk table.kvt th, body.kv-desk table.kvt td, body.kv-desk .ir, body.kv-desk button, body.kv-desk dd { position: relative; }
body.kv-desk .stack > *, body.kv-desk .card, body.kv-desk .two > * { min-width: 0; }

/* ---- Header: KYC Validation | Desk: <name> ▾ (All desks) | Queue · Resellers · Team · Desk setup ............ <Name> · <Role> ▾ ----
   Every control is a 44px target with a 36px face. Under it, the desk's own brand colour as a 3px stripe (--stripe, set by app.js). */
body.kv-desk header { position: relative; z-index: 20; background: #fff; color: var(--text); border-bottom: 0; }
body.kv-desk header .in { padding: 6px 16px; min-height: 56px; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; }
body.kv-desk:not(:has(.board)) header .in, body.kv-desk main:not(:has(.board)) { max-width: 1132px; }
body.kv-desk .logo { display: flex; align-items: center; flex: 0 1 auto; flex-wrap: nowrap; gap: 0; min-width: 0; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--text); }
body.kv-desk .kv-word { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 4px; margin-left: -4px; border-radius: 8px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
body.kv-desk .vsep { flex: none; width: 1px; height: 22px; background: var(--border); margin: 0 10px; }
body.kv-desk svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
body.kv-desk svg.i.sm { width: 12px; height: 12px; stroke-width: 2; }
body.kv-desk .hb { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 400; text-decoration: none; white-space: nowrap; cursor: pointer; }
body.kv-desk .hb > .face { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; transition: background-color .15s, border-color .15s; }
body.kv-desk .hb:hover > .face { background: var(--gray-soft); }
body.kv-desk .hb:focus-visible { outline: 0; }
body.kv-desk .hb:focus-visible > .face { outline: 2px solid var(--brand-2); outline-offset: 2px; }
body.kv-desk .hb.on > .face { background: var(--brand-soft); color: var(--link); font-weight: 600; }
body.kv-desk .kv-word:focus-visible { outline-offset: 0; }
/* The desk: "which desk am I on?" is answered here, at normal size. A long name is cut off with "…" (in full on hover and in the list). */
body.kv-desk .desk { position: relative; display: flex; align-items: center; flex: 0 1 auto; min-width: 0; max-width: 300px; }
body.kv-desk .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--desk); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
body.kv-desk .desk-btn { min-width: 0; max-width: 100%; }
body.kv-desk .desk-btn > .face, body.kv-desk .desk-static { max-width: 100%; min-width: 0; border: 1px solid #d1d1d6; background: #fff; color: var(--text); padding: 0 10px 0 12px; text-align: left; }
body.kv-desk .desk-btn:hover > .face { background: #fafafc; border-color: #aeaeb2; }
body.kv-desk .desk-btn[aria-expanded="true"] > .face { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
body.kv-desk .desk-static { display: inline-flex; align-items: center; gap: 8px; height: 36px; border-radius: 9px; border-color: transparent; background: none; padding-left: 4px; }
body.kv-desk .desk-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.kv-desk .desk-k { color: var(--text-2); }
body.kv-desk .desk-n { font-weight: 600; }
body.kv-desk .chev { color: var(--muted); transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
body.kv-desk [aria-expanded="true"] .chev { transform: rotate(180deg); }
body.kv-desk .allc { margin-left: 4px; }   /* a page like the others (staff's view across desks), not an action */
/* The pages, after a thin rule. */
body.kv-desk header nav.pages { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; flex: none; min-width: 0; overflow: visible; }
body.kv-desk header nav.pages::before { content: ""; flex: none; width: 1px; height: 22px; background: var(--border); margin: 0 8px; }
body.kv-desk header nav.pages:empty::before { content: none; }
body.kv-desk header nav.pages a { color: var(--text-2); font-size: 14px; overflow-wrap: normal; }
body.kv-desk header nav.pages a.on { color: var(--link); }
body.kv-desk header nav.pages .hb > .face { padding: 0 9px; }   /* five pages since Invites (2026-12-04): 9px, and the rule before them 8px a side, so staff's header still fits one row at 1280 */
/* You, on this desk. */
body.kv-desk .acct { position: relative; margin-left: auto; flex: none; }
body.kv-desk .acct-btn > .face { padding: 0 8px 0 4px; color: var(--text); }
body.kv-desk .av { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e5e5ea; color: var(--text-2); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
body.kv-desk .acct-n { font-weight: 600; }
body.kv-desk .acct-r { color: var(--text-2); }
body.kv-desk .menu-btn, body.kv-desk .only-phone { display: none; }
body.kv-desk .acct[hidden], body.kv-desk .menu-btn[hidden], body.kv-desk .stripe[hidden], body.kv-desk .kv-skip[hidden] { display: none; }
/* The stripe. Moving to another desk wipes the new colour across: the header's one moving part. */
body.kv-desk .stripe { position: relative; height: 3px; background: var(--stripe-old, var(--stripe)); overflow: hidden; }
body.kv-desk .stripe i { position: absolute; inset: 0; background: var(--stripe); }
body.kv-desk .stripe.wipe i { animation: kv-wipe .6s cubic-bezier(.22, 1, .36, 1); }
@keyframes kv-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* When one row can't hold it all, the pages drop to a second row; tighter still, your name gives way to your initials and a long desk
   name is cut shorter. Never a third row. (app.js measures with "measuring" on, then picks.) */
body.kv-desk header.two-row .in { flex-wrap: wrap; padding-bottom: 2px; }
body.kv-desk header.two-row nav.pages { order: 10; flex: 1 1 100%; margin-left: -9px; padding-top: 2px; }
body.kv-desk header.two-row nav.pages::before { content: none; }
body.kv-desk header.tight .acct-n, body.kv-desk header.tight .acct-dot { display: none; }
body.kv-desk header.tight .desk { max-width: 220px; }
body.kv-desk header.measuring .in { flex-wrap: nowrap; }
body.kv-desk header.measuring .logo, body.kv-desk header.measuring .desk { flex-shrink: 0; }
body.kv-desk header.measuring .acct { margin-left: 0; }
/* Skip link: the first thing Tab reaches. */
body.kv-desk .kv-skip { position: absolute; left: 12px; top: 6px; z-index: 60; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--text); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-140%); }
body.kv-desk .kv-skip:focus { transform: none; }

/* ---- The desk list and your account (pop-overs), and the phone's Menu ---- */
body.kv-desk .pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 330px; max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain; padding: 6px; background: #fff; border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .06); animation: kv-pop .16s cubic-bezier(.22, 1, .36, 1); white-space: normal; }
body.kv-desk .pop[hidden], body.kv-desk .sheet[hidden], body.kv-desk .scrim[hidden] { display: none; }
body.kv-desk .pop.pop-r { left: auto; right: 0; width: 300px; }
@keyframes kv-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
body.kv-desk .pop-h { margin: 0; padding: 8px 10px 6px; font-size: 13px; font-weight: 600; color: var(--text); }
body.kv-desk .pop-find { padding: 2px 4px 6px; }
body.kv-desk .pop-find input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 9px; font: inherit; background: #fff; color: var(--text); }
body.kv-desk .pop-find input::placeholder { color: var(--muted); }
body.kv-desk .pl { list-style: none; margin: 0; padding: 0; }
body.kv-desk .pi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 400; }
body.kv-desk .pi:hover { background: var(--gray-soft); }
body.kv-desk .pi:focus-visible { outline-offset: -2px; }
body.kv-desk .pi[aria-current] { background: var(--brand-soft); }
body.kv-desk .pi-t { flex: 1 1 auto; min-width: 0; display: grid; }
body.kv-desk .pi-t b { font-weight: 600; overflow-wrap: anywhere; }
body.kv-desk .pi-t small { font-size: 12.5px; color: var(--muted); opacity: 1; margin: 0; font-weight: 400; }   /* not the applicant header's faded .logo small */
body.kv-desk .pi[aria-current] .pi-t small { color: var(--brand-ink); }
body.kv-desk .pi .check { width: 18px; height: 18px; color: var(--brand-2); stroke-width: 2.25; }
body.kv-desk .pi .ext { color: var(--muted); }
body.kv-desk .pi.quiet { color: var(--link); font-weight: 500; }
body.kv-desk .pop hr, body.kv-desk .sheet hr { border: 0; border-top: 1px solid var(--border); margin: 6px; }
body.kv-desk .empty-find { padding: 10px; color: var(--muted); font-size: 13px; margin: 0; }
body.kv-desk .who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: center; padding: 10px 10px 8px; }
body.kv-desk .who .av { grid-row: span 2; width: 36px; height: 36px; font-size: 13px; }
body.kv-desk .who b { font-weight: 600; }
body.kv-desk .who .em { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
body.kv-desk .who p { grid-column: 1 / -1; margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: var(--gray-soft); font-size: 12.5px; color: var(--text-2); }
body.kv-desk .who p b { color: var(--text); }
body.kv-desk .sheet { position: absolute; top: 100%; left: 0; right: 0; z-index: 25; max-height: calc(100dvh - 64px); overflow: auto; overscroll-behavior: contain; padding: 6px 8px 12px; background: #fff; border-radius: 0 0 18px 18px; box-shadow: 0 18px 36px rgba(0, 0, 0, .16); animation: kv-pop .18s cubic-bezier(.22, 1, .36, 1); }
body.kv-desk .sheet nav { display: block; }   /* not the old header's row of links */
body.kv-desk .sg { margin: 10px 12px 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
body.kv-desk .sheet .pi { min-height: 46px; font-size: 15px; }
body.kv-desk .sheet .pi-t b { font-weight: 500; }
body.kv-desk .sheet .pi[aria-current] .pi-t b { font-weight: 600; color: var(--brand-ink); }
body.kv-desk .sheet .pl.sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; margin: 0; padding: 0; border: 0; }   /* the five setup tabs two to a row, so the menu stays short */
body.kv-desk .scrim { position: fixed; inset: 0; z-index: 15; background: rgba(28, 28, 30, .28); animation: kv-fade .18s ease-out; }
@keyframes kv-fade { from { opacity: 0; } }

/* ---- A page with tabs (Desk setup, Team): the page's heading, then its tabs (and Desk setup's History) ---- */
body.kv-desk .kv-page { margin: 0 0 16px; }
body.kv-desk .kv-page h1 { margin: 0 0 12px; }
body.kv-desk .tab-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
body.kv-desk .kv-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 12px; background: #e5e5ea; }
body.kv-desk .kv-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none; }
body.kv-desk .kv-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .55); }
body.kv-desk .kv-tabs a[aria-current] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
body.kv-desk .kv-tabs a:focus-visible { outline-offset: 0; }
body.kv-desk .hist { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border-radius: 8px; font-weight: 500; text-decoration: none; }
body.kv-desk .hist:hover { background: rgba(0, 0, 0, .04); text-decoration: underline; }
body.kv-desk .kv-head h2, body.kv-desk .kv-tab h2[data-tabfocus], body.kv-desk h2[data-tabfocus] { margin: 0; font-size: 17px; }
body.kv-desk [data-tabfocus]:focus, body.kv-desk h1[tabindex="-1"]:focus { outline: 0; }
body.kv-desk .filter-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #e8e8ed; color: var(--text-2); font-size: 13.5px; }
body.kv-desk .filter-note a { margin-left: 4px; font-weight: 600; white-space: nowrap; }
body.kv-desk .dk { display: inline-flex; align-items: center; gap: 8px; }

/* ---- On an application: where it is (desk › Queue › company), and the one-line note when an old link opened it on its own desk ---- */
body.kv-desk .trail { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: -10px 0 0 -6px; font-size: 13.5px; color: var(--muted); }
body.kv-desk .trail a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; border-radius: 8px; font-weight: 500; }
body.kv-desk .trail svg { color: #aeaeb2; }
body.kv-desk .trail-desk { display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 0 6px; font-weight: 600; color: var(--text-2); }
body.kv-desk .trail-n { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.kv-desk .trail [aria-current] { padding: 0 6px; color: var(--text-2); }
body.kv-desk .trail-cur { display: contents; }
body.kv-desk .kv-notice { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; font-weight: 500; }

/* ---- An application on another desk (an alert link from before addresses named the desk) ---- */
body.kv-desk .kv-stop { max-width: 640px; margin: 24px auto 0; padding: 26px 28px 24px; }
body.kv-desk .kv-stop h1 { font-size: 21px; margin: 0; }
body.kv-desk .kv-stop .lede { margin: 6px 0 20px; }
body.kv-desk .kv-stop .desk-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--gray-soft); font-size: 13px; font-weight: 600; color: var(--text-2); }
body.kv-desk .kv-stop .desk-chip .dot { background: var(--c); }
body.kv-desk .kv-stop .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
body.kv-desk .kv-stop .hint { margin: 16px 0 0; font-size: 13px; }

/* ---- The desk's existing pieces, in this look ---- */
body.kv-desk .card { border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .04); }
body.kv-desk button.primary, body.kv-desk .btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
body.kv-desk button, body.kv-desk .btn { border-color: #d1d1d6; }
body.kv-desk button.good { border-color: var(--green); }
body.kv-desk table { border: 0; box-shadow: 0 0 0 1px var(--border); }
body.kv-desk th { background: #f9f9fb; color: var(--muted); }
body.kv-desk input[type=checkbox], body.kv-desk input[type=radio] { accent-color: #007aff; }
body.kv-desk input[type=text], body.kv-desk input[type=search], body.kv-desk input[type=number], body.kv-desk input[type=date], body.kv-desk input[type=email], body.kv-desk input[type=url], body.kv-desk select, body.kv-desk textarea { border: 1px solid #c7c7cc; border-radius: 8px; }
body.kv-desk input:focus, body.kv-desk select:focus, body.kv-desk textarea:focus { outline: 2px solid #99c6ff; outline-offset: 0; border-color: var(--brand-2); }
/* A ring that shows on boxes, answers and text boxes (the pale one above is easy to miss on a tick box). */
body.kv-desk input[type=checkbox]:focus-visible, body.kv-desk input[type=radio]:focus-visible, body.kv-desk textarea:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
body.kv-desk .invalid { border-color: var(--red) !important; }
body.kv-desk .nextbar { border-color: #cfe2ff; }
body.kv-desk .kcol { background: #e8e8ed; }
body.kv-desk .note.warn { color: #6d4100; }
body.kv-desk .note ul { margin: 4px 0; padding-left: 20px; }
body.kv-desk #changedNote { margin: 0 0 16px; }
body.kv-desk input[type=date] { padding: 8px 10px; font: inherit; background: #fff; color: var(--text); }
body.kv-desk .log { max-height: 320px; }
body.kv-desk .linkb { all: unset; cursor: pointer; color: var(--link); text-decoration: underline; font: inherit; padding: 4px 2px; position: relative; }
body.kv-desk .linkb:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
body.kv-desk .whys { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13px; }
body.kv-desk .qv { white-space: pre-wrap; }
body.kv-desk #qCard h3 { margin-top: 14px; }

/* ---- Resellers: who's who, the list, one reseller's page ---- */
body.kv-desk .rs-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; min-height: 44px; width: max-content; }
body.kv-desk .rs-chain { display: flex; flex-wrap: wrap; align-items: stretch; }
body.kv-desk .rs-who { flex: 1 1 190px; min-width: 0; border-radius: 12px; padding: 12px 14px; border: 1px solid; }
body.kv-desk .rs-who b { display: block; font-size: 14px; }
body.kv-desk .rs-who span { display: block; font-size: 12.5px; }
body.kv-desk .rs-who.you { background: var(--gray-soft); border-color: #d1d1d6; color: var(--text); }
body.kv-desk .rs-who.you span { color: var(--text-2); }
body.kv-desk .rs-who.res { background: var(--brand-soft); border-color: #b9d6ff; color: var(--brand-ink); }
body.kv-desk .rs-who.res span { color: #0a52b3; }
body.kv-desk .rs-who.cust { background: var(--green-soft); border-color: #b6e2c3; color: #12582a; }
body.kv-desk .rs-who.cust span { color: #1a6b35; }
body.kv-desk .rs-arrow { flex: 0 0 84px; display: grid; place-items: center; align-content: center; color: var(--muted); font-size: 11.5px; text-align: center; line-height: 1.2; }
body.kv-desk .rs-arrow svg { width: 26px; height: 12px; display: block; margin: 2px auto 0; }
body.kv-desk .rs-cap { margin: 12px 0 0; font-size: 13.5px; color: var(--text-2); max-width: 78ch; }
body.kv-desk .rs-cap b { color: var(--text); }
body.kv-desk .rs-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
body.kv-desk .rs-sh { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 4px; }
body.kv-desk .rs-sh h2 { margin: 0; }
body.kv-desk .rs-note { font-size: 13.5px; color: var(--text-2); margin: 0 0 12px; max-width: 72ch; }
body.kv-desk .rs-item { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
body.kv-desk .rs-item > .k { font-weight: 600; font-size: 13.5px; }
body.kv-desk .rs-item > .v { min-width: 0; overflow-wrap: anywhere; }
body.kv-desk .rs-item > .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.kv-desk .rs-item > .acts:empty { display: none; }
body.kv-desk .rs-gap { width: 12px; }
body.kv-desk .rs-key { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; background: #f7f7fa; border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-wrap: anywhere; user-select: all; }
body.kv-desk .rs-once { box-shadow: 0 0 0 2px var(--brand-2); }
body.kv-desk .rs-inline { margin-top: 12px; padding: 16px; border-radius: 12px; background: #f9f9fb; border: 1px solid var(--border); display: grid; gap: 12px; }
body.kv-desk .rs-inline h3 { font-size: 15px; margin: 0; text-transform: none; letter-spacing: 0; color: var(--text); }
body.kv-desk .rs-inline.bad { background: var(--red-soft); border-color: #f1c2bd; }
body.kv-desk .rs-inline.bad h3 { color: #7d1a14; }
body.kv-desk .rs-inline .small, body.kv-desk .rs-item .small, body.kv-desk .rs-item .small { font-size: 13px; }
body.kv-desk .rs-item .small.muted { display: block; margin-top: 2px; }
body.kv-desk button.bad.solid { background: var(--red); border-color: var(--red); color: #fff; }
body.kv-desk .rs-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
body.kv-desk .rs-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; }
body.kv-desk .rs-steps .mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c7c7cc; display: grid; place-items: center; }
body.kv-desk .rs-steps .mark svg { width: 12px; height: 12px; }
body.kv-desk .rs-steps .done .mark { background: var(--green); border-color: var(--green); color: #fff; }
body.kv-desk .rs-steps .done .what { color: var(--muted); }
body.kv-desk .rs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
body.kv-desk tr.click { cursor: pointer; }
@media (max-width: 700px) {
  body.kv-desk .rs-chain { flex-direction: column; }
  body.kv-desk .rs-arrow { flex-basis: 34px; }
  body.kv-desk .rs-arrow svg { transform: rotate(90deg); }
  body.kv-desk .rs-item { grid-template-columns: minmax(0, 1fr); }
  body.kv-desk .rs-item > .acts { justify-content: flex-start; }
}

/* ---- Settings screens ---- */
body.kv-desk .kv-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; }
body.kv-desk .kv-head h1 { margin: 0; }
body.kv-desk .kv-head .lede { margin: 4px 0 0; }
body.kv-desk .kv-head > div:first-child { min-width: 0; max-width: 64ch; }
body.kv-desk .kv-ver { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
body.kv-desk .kv-ver b { color: var(--text); font-variant-numeric: tabular-nums; }
body.kv-desk .kv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
body.kv-desk .kv-filters input[type=search] { width: 240px; max-width: 100%; padding: 8px 11px; font: inherit; background: #fff; color: var(--text); }
body.kv-desk .chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.kv-desk .chips button { border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid #d1d1d6; color: var(--text-2); min-height: 32px; }
body.kv-desk .chips button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
body.kv-desk .chips .n { font-variant-numeric: tabular-nums; opacity: .75; margin-left: 4px; }
body.kv-desk .hint { font-size: 12.5px; color: var(--muted); }
body.kv-desk .sub2 { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
body.kv-desk .kvt-wrap { overflow-x: auto; border-radius: 12px; max-width: 100%; }
body.kv-desk table.kvt { min-width: 720px; overflow: visible; }
body.kv-desk table.kvt-dlg { min-width: 640px; }
body.kv-desk table.kvt th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
body.kv-desk table.kvt th button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
body.kv-desk table.kvt th .arr { opacity: .6; font-size: 10px; }
body.kv-desk table.kvt td { vertical-align: middle; }
body.kv-desk table.kvt td button { white-space: nowrap; padding: 7px 11px; font-size: 13px; }
body.kv-desk table.kvt td.act .row { gap: 6px; flex-wrap: nowrap; }
body.kv-desk td.sig { min-width: 250px; }
body.kv-desk .sigbox { display: flex; gap: 10px; align-items: flex-start; }
body.kv-desk .sigbox > div { min-width: 0; }
body.kv-desk .sigbox b { display: block; font-weight: 600; }
body.kv-desk .sigbox small { display: block; color: var(--muted); font-size: 12px; }
body.kv-desk tr.off .sigbox b { color: var(--muted); }
body.kv-desk tr.chg td { background: #f3f8ff; }
body.kv-desk tr.chg td:first-child { box-shadow: inset 3px 0 0 var(--brand-2); }
body.kv-desk table.kvt select { padding: 6px 8px; font-size: 13px; min-width: 176px; }
body.kv-desk .dash { color: var(--muted); }
body.kv-desk .num { font-variant-numeric: tabular-nums; }
body.kv-desk .url { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
/* Switches: 40x24 to look at, a bigger area to press. */
body.kv-desk .sw { position: relative; display: inline-block; width: 40px; height: 24px; flex: none; }
body.kv-desk .sw input { opacity: 0; position: absolute; inset: -10px -6px; width: calc(100% + 12px); height: calc(100% + 20px); margin: 0; cursor: pointer; }
body.kv-desk .sw span { position: absolute; inset: 0; border-radius: 999px; background: #8e8e93; transition: background .2s; pointer-events: none; }
body.kv-desk .sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s; }
body.kv-desk .sw input:checked + span { background: #248a3d; }
body.kv-desk .sw input:checked + span::after { transform: translateX(16px); }
body.kv-desk .sw input:disabled { cursor: not-allowed; }
body.kv-desk .sw input:disabled + span { opacity: .45; }
body.kv-desk .sw input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
body.kv-desk .tag { display: inline-block; font-size: 11.5px; font-weight: 650; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
body.kv-desk .t-none { background: var(--gray-soft); color: var(--text-2); }
body.kv-desk .t-info { background: #e5f0ff; color: #0040a8; }
body.kv-desk .t-cx { background: var(--amber-soft); color: var(--amber); }
body.kv-desk .t-break { background: var(--red-soft); color: var(--red); }
body.kv-desk .t-ok { background: var(--green-soft); color: #14662b; }
body.kv-desk .t-fcc { background: #efe9ff; color: #5b2fb5; }
body.kv-desk .savebar { position: sticky; bottom: 8px; z-index: 4; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #1c1c1e; color: #fff; border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); }
body.kv-desk .savebar .muted { color: #c7c7cc; }
body.kv-desk .savebar button { min-height: 40px; }
body.kv-desk .savebar button.ghost { background: transparent; color: #fff; border-color: #636366; }
body.kv-desk .savebar button.primary { background: #0a84ff; border-color: #0a84ff; color: #001a33; }
body.kv-desk .savebar button:focus-visible { outline-color: #fff; }
body.kv-desk .idres { display: grid; margin-top: 8px; }
body.kv-desk .idres .ir { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); align-items: start; }
body.kv-desk .idres .ir.one { grid-template-columns: minmax(0, 1fr); }
body.kv-desk .idres .ir:first-child { border-top: 0; }
body.kv-desk .idres .ic { font-weight: 700; text-align: center; line-height: 20px; }
body.kv-desk .ic.ok, body.kv-desk .iw.ok { color: var(--green); } body.kv-desk .ic.warn, body.kv-desk .iw.warn { color: var(--amber); } body.kv-desk .ic.bad, body.kv-desk .iw.bad { color: var(--red); } body.kv-desk .ic.na, body.kv-desk .iw.na { color: var(--muted); }
body.kv-desk .iw { font-size: 12.5px; font-weight: 600; line-height: 20px; white-space: nowrap; }
body.kv-desk .idres small { color: var(--muted); display: block; font-size: 12.5px; }
body.kv-desk .idres small.dl { color: var(--text-2); margin-top: 4px; }
body.kv-desk .idwhy { font-size: 13px; color: var(--text-2); }
body.kv-desk .whits ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
body.kv-desk .whits li { overflow-wrap: anywhere; }
body.kv-desk .whits details summary { cursor: pointer; color: var(--text-2); margin-top: 4px; }
body.kv-desk .cost { font-variant-numeric: tabular-nums; color: var(--muted); }
body.kv-desk .est { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: baseline; }
body.kv-desk .est b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
body.kv-desk .est input { width: 84px; display: inline-block; padding: 5px 8px; background: #fff; color: var(--text); font: inherit; }
body.kv-desk .radios { display: grid; gap: 8px; }
body.kv-desk .radios label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #d1d1d6; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
body.kv-desk .radios label:has(input:checked) { border-color: var(--brand-2); background: #f3f8ff; }
body.kv-desk .radios label:has(input:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 2px; }
body.kv-desk .radios label.dis { cursor: not-allowed; background: #f9f9fb; color: var(--muted); }
body.kv-desk .radios input { margin-top: 3px; flex: none; }
body.kv-desk .radios small { display: block; color: var(--muted); font-size: 12.5px; }
body.kv-desk fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
body.kv-desk fieldset.plain > legend { font-weight: 600; font-size: 12.5px; padding: 0; margin-bottom: 6px; }
body.kv-desk .qlist { display: grid; }
body.kv-desk .qitem { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--border); }
body.kv-desk .qitem:first-child { border-top: 0; }
body.kv-desk .qitem b { font-weight: 600; }
body.kv-desk .qmeta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
body.kv-desk .qopts { font-size: 12.5px; color: var(--text-2); }
body.kv-desk .qsec { border-top: 1px solid var(--border); }
body.kv-desk .qsec > summary { cursor: pointer; padding: 11px 0; min-height: 44px; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
body.kv-desk .qsec > summary::-webkit-details-marker { display: none; }
body.kv-desk .qsec > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); margin: 0 4px 0 2px; transition: transform .15s; }
body.kv-desk .qsec[open] > summary::before { transform: rotate(45deg); }
body.kv-desk .qsec > .qlist, body.kv-desk .qsec > .hint, body.kv-desk .qsec > .whys { margin-left: 17px; }
body.kv-desk .qsec > .qlist { margin-bottom: 12px; }
body.kv-desk .pend { display: grid; gap: 6px; }
body.kv-desk .pend > div { display: flex; gap: 8px 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 8px; }
body.kv-desk .pend > div:first-child { border-top: 0; padding-top: 0; }
body.kv-desk .only-sm { display: none; }
body.kv-desk input[type=color] { width: 44px; height: 40px; padding: 3px; border: 1px solid #c7c7cc; border-radius: 8px; background: #fff; flex: none; cursor: pointer; }
body.kv-desk .co-logo { max-height: 40px; max-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; }
body.kv-desk .co-term { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }

/* ---- Dialogs ---- */
body.kv-desk dialog { border: 0; border-radius: 16px; box-shadow: 0 24px 64px rgba(0, 0, 0, .25); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; color: var(--text); }
body.kv-desk dialog.kv-dlg { max-width: 760px; padding: 0; }
body.kv-desk dialog.kv-dlg h2 { font-size: 19px; }
body.kv-desk .dh { padding: 18px 20px 10px; }
body.kv-desk .db { padding: 0 20px 6px; display: grid; gap: 14px; }
body.kv-desk .db > * { min-width: 0; }
body.kv-desk .df { padding: 12px 20px 16px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 10px; position: sticky; bottom: 0; background: #fff; }
body.kv-desk .df .err { flex: 1 1 100%; font-size: 13px; margin: 0; }
body.kv-desk .secret { font-family: ui-monospace, Menlo, monospace; font-size: 13px; min-height: 64px; }

/* ---- Phones: one-row header (60px or less), compact type, 44px targets, and lists that stack instead of scrolling sideways ---- */
@media (max-width: 700px) {
  body.kv-desk main { padding-top: 16px; }
  /* One 56px row: the desk on the left, Menu on the right. Every page is in the Menu; nothing sits in a sideways strip. */
  body.kv-desk header .in { padding: 6px 8px 6px 12px; gap: 6px; }
  body.kv-desk .logo { flex: 1 1 auto; }
  body.kv-desk .logo:has(.desk) .kv-word, body.kv-desk .logo .vsep, body.kv-desk .allc, body.kv-desk header nav.pages, body.kv-desk .acct { display: none; }
  body.kv-desk .desk { position: static; flex: 1 1 auto; max-width: none; }
  body.kv-desk .desk-btn > .face, body.kv-desk .desk-static { height: 44px; border-color: transparent; padding: 0 8px 0 4px; }
  body.kv-desk .desk-btn[aria-expanded="true"] > .face { border-color: transparent; box-shadow: none; background: var(--gray-soft); }
  body.kv-desk .desk-txt { display: grid; line-height: 1.2; }
  body.kv-desk .desk-k { font-size: 11.5px; font-weight: 600; color: var(--muted); }
  body.kv-desk .dk-colon { display: none; }
  body.kv-desk .desk-n { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
  body.kv-desk header .dot { width: 12px; height: 12px; }
  body.kv-desk .menu-btn { display: inline-flex; }
  body.kv-desk .menu-btn > .face { gap: 6px; padding: 0 12px; background: var(--gray-soft); color: var(--text); font-weight: 600; }
  body.kv-desk .menu-btn:hover > .face { background: #e5e5ea; }
  body.kv-desk .menu-btn[aria-expanded="true"] > .face { background: var(--text); color: #fff; transition: none; }   /* no fade: white on a light grey would flash past */
  body.kv-desk .pop { left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 80px); }
  body.kv-desk .pop-find input { font-size: 16px; }
  body.kv-desk .only-phone { display: block; }
  body.kv-desk .pi { min-height: 48px; font-size: 15px; }
  body.kv-desk .trail-n { max-width: 58vw; }
  body.kv-desk .trail-cur { display: none; }   /* the heading right below names the application */
  /* Tabs become wrapped chips, all in view. */
  body.kv-desk .kv-tabs { display: flex; gap: 8px; padding: 0; background: none; border-radius: 0; }
  body.kv-desk .kv-tabs a { min-height: 44px; padding: 0 16px; border: 1px solid #d1d1d6; border-radius: 999px; background: #fff; font-size: 14.5px; }
  body.kv-desk .kv-tabs a:hover { background: #fafafc; }
  body.kv-desk .kv-tabs a[aria-current] { background: var(--text); border-color: var(--text); color: #fff; box-shadow: none; }
  body.kv-desk .kv-tabs a:focus-visible { outline-offset: 2px; }
  body.kv-desk .kv-stop { margin-top: 8px; padding: 20px 18px; }
  body.kv-desk .kv-stop .row .btn { flex: 1 1 100%; }
  body.kv-desk h1 { font-size: 20px; }
  body.kv-desk .lede { font-size: 14px; }
  body.kv-desk .card { padding: 14px; }
  body.kv-desk button:not(.cpb):not(.linkb), body.kv-desk .btn, body.kv-desk input[type=text], body.kv-desk input[type=search], body.kv-desk input[type=number], body.kv-desk input[type=date], body.kv-desk input[type=email], body.kv-desk input[type=url], body.kv-desk select:not(#carrierSel), body.kv-desk .chips button, body.kv-desk .seg button { min-height: 44px; }
  body.kv-desk input, body.kv-desk select, body.kv-desk textarea { font-size: 16px; }   /* iPhone Safari zooms in on anything smaller */
  body.kv-desk table.kvt select, body.kv-desk input[type=date], body.kv-desk .kv-filters input[type=search], body.kv-desk .qfilters input[type=search] { font-size: 16px; }
  body.kv-desk .kv-filters input[type=search], body.kv-desk .kv-filters .chips { width: 100%; }
  body.kv-desk details.how summary { padding: 8px 0; }
  body.kv-desk .est input { font-size: 16px; }
  body.kv-desk .only-sm { display: block; }
  body.kv-desk .co-term { grid-template-columns: minmax(0, 1fr); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  body.kv-desk input[type=color] { height: 44px; }
  body.kv-desk .savebar .row { flex: 1 1 auto; justify-content: flex-end; }
  body.kv-desk .df button { flex: 1 1 auto; }
  body.kv-desk .dh { padding: 16px 16px 8px; } body.kv-desk .db { padding: 0 16px 4px; } body.kv-desk .df { padding: 10px 16px 14px; }
  body.kv-desk dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  body.kv-desk .linkb { padding: 12px 6px; margin: -12px 0; }
  body.kv-desk .nb-act { flex: 1 1 100%; }
  body.kv-desk .nb-act > button { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; }
  /* One block per row, so the columns that decide something are never off-screen. */
  body.kv-desk table.kvt-stack { min-width: 0; box-shadow: none; background: none; }
  body.kv-desk table.kvt-stack thead { display: none; }
  body.kv-desk table.kvt-stack, body.kv-desk table.kvt-stack tbody { display: block; width: auto; }
  body.kv-desk table.kvt-stack tr { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
  body.kv-desk table.kvt-stack tr:last-child { border-bottom: 0; }
  body.kv-desk table.kvt-stack tr.chg { background: #f3f8ff; box-shadow: inset 3px 0 0 var(--brand-2); padding-left: 10px; }
  body.kv-desk table.kvt-stack td { display: block; border: 0; padding: 0; flex: 1 1 100%; min-width: 0; background: none !important; box-shadow: none !important; }
  body.kv-desk table.kvt-stack td.inl { flex: none; max-width: 100%; }
  body.kv-desk table.kvt-stack td.empty { display: none; }
  body.kv-desk table.kvt-stack td[data-l]:not(.inl)::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
  body.kv-desk table.kvt-stack td.then { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; order: 5; }
  body.kv-desk table.kvt-stack td.then::before { margin: 0 !important; }
  body.kv-desk table.kvt-stack td.then .sub2 { grid-column: 2; margin: 0; }
  body.kv-desk table.kvt-stack td.act { order: 6; }
  body.kv-desk table.kvt-stack td.act .row { flex-wrap: wrap; gap: 8px; }
  body.kv-desk table.kvt-stack select { width: 100%; min-width: 0; }
}
@media (max-width: 360px) {
  body.kv-desk main { padding-left: 12px; padding-right: 12px; }
  body.kv-desk header .in { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  body.kv-desk .sw span, body.kv-desk .sw span::after, body.kv-desk .hb > .face, body.kv-desk .chev { transition: none; }
  body.kv-desk .pop, body.kv-desk .sheet, body.kv-desk .scrim, body.kv-desk .stripe.wipe i { animation: none; }
}

/* ================= Desk setup (2026-12-03): the overview, a page for each part, the rules grid, automatic approval =================
   body.kv-setup is on only while one of Desk setup's pages is showing (app.js, route), so nothing here reaches the queue, an
   application, Resellers or Team. Same tokens as the rest of this file. */
body.kv-setup ::selection { background: #cfe2ff; color: var(--text); }
body.kv-setup { accent-color: #007aff; caret-color: var(--brand-2); }
body.kv-setup a { text-underline-offset: 2px; }
body.kv-setup main { padding-bottom: 96px; }
body.kv-setup h1:focus { outline: 0; }
body.kv-setup .num { font-variant-numeric: tabular-nums; }
body.kv-setup .muted { color: var(--muted); }
body.kv-setup .small { font-size: 13px; }
body.kv-setup .hint { margin: 10px 0 0; max-width: 72ch; }
body.kv-setup .linkish { border: 0; background: none; color: var(--link); cursor: pointer; font: inherit; font-weight: 500; }
body.kv-setup svg.i.warn { color: #b86e00; }
body.kv-setup svg.go { color: #8e8e93; }

/* The outcome tones: one colour per step of the scale, the same ones a reviewer sees on an application. */
body.kv-setup .tn-off { --tone: #8e8e93; --ink: #636366; }
body.kv-setup .tn-note { --tone: #636366; --ink: #48484a; }
body.kv-setup .tn-flag { --tone: #b86e00; --ink: #8f5400; }
body.kv-setup .tn-own { --tone: #c4271e; --ink: #b3231b; }
body.kv-setup .tn-away { --tone: #1c1c1e; --ink: #1c1c1e; }
body.kv-setup .pip { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
body.kv-setup .pip.tn-off { background: none; box-shadow: inset 0 0 0 2px var(--tone); }

/* ---- The overview: every part of the desk as one line that says how it's set now ---- */
body.kv-setup .su-col { max-width: 880px; }
body.kv-setup .su-head, body.kv-setup .ar-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 16px; }
body.kv-setup .su-head h1, body.kv-setup .ar-title h1 { margin: 0; }
body.kv-setup .su-head .lede, body.kv-setup .ar-title .lede { margin: 4px 0 0; max-width: 68ch; }
body.kv-setup .su-g { margin-top: 24px; }
body.kv-setup .su-g > h2 { margin: 0 0 8px 16px; font-size: 13px; font-weight: 600; color: var(--text-2); }
body.kv-setup .su-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
body.kv-setup .su-list > li + li { border-top: 1px solid var(--border); }
body.kv-setup .su-row { display: grid; grid-template-columns: 208px minmax(0, 1fr) 12px; gap: 4px 16px; align-items: center; width: 100%; min-height: 56px; padding: 12px 16px; border: 0; border-radius: 0; background: none; color: var(--text); font: inherit; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s; }
body.kv-setup .su-row:hover { background: #f7f7fa; }
body.kv-setup .su-row:hover .go { color: var(--text-2); transform: translateX(2px); }
body.kv-setup .su-row .go { transition: transform .18s cubic-bezier(.22, 1, .36, 1), color .15s; }
body.kv-setup .su-row:focus-visible { outline-offset: -2px; border-radius: 10px; }
body.kv-setup .su-row .k { font-weight: 600; font-size: 14.5px; }
body.kv-setup .su-row .k.wide { grid-column: 1; }
body.kv-setup .su-row .v { color: var(--text-2); font-size: 13.5px; min-width: 0; }
body.kv-setup .su-warn { display: flex; align-items: flex-start; gap: 6px; color: var(--amber); font-weight: 500; }
body.kv-setup .su-warn svg { margin-top: 2px; }
body.kv-setup .v > .su-warn:not(:first-child) { margin-top: 2px; }
body.kv-setup .su-pend { display: block; margin-top: 2px; color: var(--brand-ink); font-weight: 600; }
body.kv-setup .mix { display: flex; flex-wrap: wrap; gap: 2px 14px; }
body.kv-setup .mixi { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
body.kv-setup .su-foot { margin: 16px 16px 0; font-size: 13.5px; color: var(--text-2); max-width: 72ch; }
body.kv-setup .su-start { margin-top: 20px; }
body.kv-setup .su-start h2 { font-size: 16px; }
body.kv-setup .su-start .rs-steps li { align-items: start; }
body.kv-setup .su-start .rs-steps a { font-weight: 600; }

/* ---- One area's page: back to Desk setup, its name, what it's for ---- */
body.kv-setup .ar-head { margin: -10px 0 18px; }
body.kv-setup .ar-head .rs-back { margin-left: -2px; text-decoration: none; font-weight: 500; }
body.kv-setup .ar-head .rs-back:hover { text-decoration: underline; }
body.kv-setup .ar-head ~ .card, body.kv-setup .ar-head ~ details.card, body.kv-setup .ar-head ~ ul.card { margin-top: 14px; }
body.kv-setup #app[data-narrow] > * { max-width: 880px; }
body.kv-setup .card > h2 { margin-bottom: 10px; }
body.kv-setup .none-yet { margin: 0; color: var(--text-2); }
body.kv-setup .savebar { margin-top: 18px; }
body.kv-setup .savebar .row { gap: 8px; }

/* ---- Rules: the baseline line, then the grid ---- */
body.kv-setup .basel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 16px 14px 20px; }
body.kv-setup .basel > div { flex: 1 1 420px; min-width: 0; }
body.kv-setup .basel b { display: block; }
body.kv-setup .basel .muted { font-size: 13.5px; color: var(--text-2); }
body.kv-setup .mxcard { padding: 0; }
body.kv-setup .mxbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px 12px; }
body.kv-setup .mxbar input[type=search] { width: 190px; height: 44px; padding: 0 11px; font: inherit; background: #fff; color: var(--text); }
body.kv-setup .mxbar input::placeholder, body.kv-setup .addrow input::placeholder { color: var(--muted); }
body.kv-setup .mxbar .row button { min-height: 44px; padding: 0 14px; }
body.kv-setup .mxbar .chips button { min-height: 44px; padding: 0 14px; font-size: 13px; }
body.kv-setup .how { margin: 0 16px 12px; font-size: 13.5px; }
body.kv-setup .how > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--link); font-weight: 500; }
body.kv-setup .how dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px 28px; margin: 6px 0 0; }
body.kv-setup .how dt { display: flex; align-items: center; gap: 7px; font-weight: 600; }
body.kv-setup .how dd { margin: 2px 0 0 15px; color: var(--text-2); font-size: 13px; }

body.kv-setup table.mx { table-layout: fixed; border-collapse: separate; border-spacing: 0; border-radius: 0 0 var(--r) var(--r); box-shadow: none; overflow: visible; background: none; }
body.kv-setup .mx col.w0 { width: 68px; } body.kv-setup .mx col.w1 { width: 90px; } body.kv-setup .mx col.w3 { width: 158px; }
body.kv-setup .mx th, body.kv-setup .mx td { border-bottom: 1px solid var(--border); text-transform: none; letter-spacing: 0; background: none; }
body.kv-setup .mx thead { position: sticky; top: 0; z-index: 3; }
body.kv-setup .mx thead th { background: #fff; padding: 8px 4px 7px; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--text-2); text-align: center; vertical-align: bottom; border-bottom-color: #d1d1d6; border-top: 1px solid var(--border); }
body.kv-setup .mx thead th.hname { padding-left: 16px; text-align: left; font-size: 12.5px; color: var(--muted); }
body.kv-setup .mx thead th.hspan { vertical-align: middle; padding: 6px 4px 5px; border-bottom-color: var(--border); border-left: 1px solid var(--border); border-right: 1px solid var(--border); color: var(--ink); }
body.kv-setup .mx thead tr + tr th { border-top: 0; }
body.kv-setup .mx .hc span { display: block; }
body.kv-setup .mx .hc b { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; font-weight: 650; color: var(--ink); }
body.kv-setup .mx .hc b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
body.kv-setup .mx .hc.tn-off b::before { background: none; box-shadow: inset 0 0 0 2px var(--tone); }
body.kv-setup .mx .gfirst { border-left: 1px solid var(--border); }
body.kv-setup .mx .glast { border-right: 1px solid var(--border); }
/* A group: its name opens it, and its row counts how many of its rules sit at each outcome. */
body.kv-setup .mx tr.grp th, body.kv-setup .mx tr.grp td { background: #f7f7fa; padding: 0; vertical-align: middle; }
body.kv-setup .gbtn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px 8px 16px; cursor: pointer; }
body.kv-setup .gbtn:hover b { text-decoration: underline; text-underline-offset: 2px; }
body.kv-setup .gbtn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; border-radius: 8px; }
body.kv-setup .gbtn b { display: block; font-size: 14.5px; font-weight: 650; color: var(--text); }
body.kv-setup .gbtn small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
body.kv-setup .gbtn .tw { color: var(--muted); transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
body.kv-setup .gbtn[aria-expanded="true"] .tw { transform: rotate(90deg); }
body.kv-setup .mx .gsum { text-align: center; }
body.kv-setup .mx .gsum .num { font-size: 13px; font-weight: 600; color: var(--text-2); }
/* A rule: one row, one dot per outcome. The whole cell is the target. */
body.kv-setup .mx tr.rule th { padding: 10px 12px 10px 38px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); text-align: left; vertical-align: middle; }
body.kv-setup .mx tr.rule:hover th, body.kv-setup .mx tr.rule:hover td { background: #fafafc; }
body.kv-setup .mx tr.rule.unsaved th, body.kv-setup .mx tr.rule.unsaved td { background: #f3f8ff; }
body.kv-setup .mx tr.isoff .rn { color: var(--muted); }
body.kv-setup .mx tbody:last-child tr:last-child th, body.kv-setup .mx tbody:last-child tr:last-child td { border-bottom: 0; }
body.kv-setup .mx tbody:last-child tr:last-child th { border-radius: 0 0 0 var(--r); }
body.kv-setup .mx .tag.t-fcc { margin-left: 4px; font-size: 10.5px; padding: 1px 6px; vertical-align: 1px; }
body.kv-setup .chgm { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--brand-ink); }
body.kv-setup .advice { display: flex; align-items: flex-start; gap: 7px; margin-top: 5px; font-size: 13px; font-weight: 400; color: #6d4100; max-width: 62ch; }
body.kv-setup .advice svg { margin-top: 1px; color: #b86e00; }
body.kv-setup .mx td.mc { padding: 0; text-align: center; vertical-align: middle; }
body.kv-setup .mx td.mc label { display: grid; place-items: center; min-height: 44px; height: 100%; cursor: pointer; }
body.kv-setup .mx input[type=radio] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 50%; border: 1.5px solid #8e8e93; background: #fff; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s cubic-bezier(.22, 1, .36, 1); }
body.kv-setup .mx td.mc label:hover input:not(:checked) { border-color: var(--tone); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 14%, transparent); }
body.kv-setup .mx input[type=radio]:checked { background: var(--tone); border-color: var(--tone); transform: scale(1.06); }
body.kv-setup .mx .tn-off input[type=radio]:checked { background: #fff; border-width: 5px; }
body.kv-setup .mx input[type=radio]:focus { outline: 0; }
body.kv-setup .mx input[type=radio]:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
body.kv-setup .mx select.only-sm { margin-top: 8px; }

/* ---- Folded cards (reseller exceptions, the delivery log) ---- */
body.kv-setup details.fold { padding: 0 20px; }
body.kv-setup details.fold > summary { display: flex; align-items: center; gap: 6px; min-height: 52px; cursor: pointer; font-weight: 600; list-style: none; }
body.kv-setup details.fold > summary::-webkit-details-marker { display: none; }
body.kv-setup details.fold > summary::before { content: ""; width: 7px; height: 7px; margin: 0 6px 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
body.kv-setup details.fold[open] > summary::before { transform: rotate(45deg); }
body.kv-setup details.fold[open] { padding-bottom: 16px; }
body.kv-setup details.fold .rs-item .v .small, body.kv-setup .card .rs-item .v .small { display: block; margin-top: 2px; }
body.kv-setup .card > .rs-item:first-of-type { border-top: 0; padding-top: 4px; }
body.kv-setup .card > h2 + .rs-item { border-top: 1px solid var(--border); padding-top: 14px; }
body.kv-setup .rs-item select { width: auto; min-width: 190px; min-height: 40px; }
body.kv-setup .rs-item .acts button { min-height: 40px; }

/* ---- Automatic approval ---- */
body.kv-setup .autoon { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.kv-setup .autoon h2 { margin: 0; }
body.kv-setup .autoon p { margin: 2px 0 0; max-width: 64ch; }
body.kv-setup .sw.big { width: 52px; height: 32px; }
body.kv-setup .sw.big span::after { width: 28px; height: 28px; }
body.kv-setup .sw.big input:checked + span::after { transform: translateX(20px); }
body.kv-setup .conds > h2 { margin-bottom: 4px; }
body.kv-setup .conds.dim > h2 { color: var(--text-2); }
body.kv-setup fieldset.cond { border: 0; border-top: 1px solid var(--border); margin: 16px 0 0; padding: 16px 0 0; min-width: 0; }
body.kv-setup fieldset.cond > legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-weight: 650; font-size: 14.5px; }
body.kv-setup fieldset.cond > legend + * { clear: both; }
body.kv-setup .radios.pair { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.kv-setup .radios label b { display: block; font-weight: 600; }
body.kv-setup .radios label { min-height: 44px; }
body.kv-setup .cks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
body.kv-setup .ckrow { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; }
body.kv-setup .ckrow input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
body.kv-setup .ckrow b { display: block; font-weight: 500; }
body.kv-setup .ckrow small { display: block; color: var(--muted); font-size: 12.5px; }
body.kv-setup .ckgroup { grid-column: 1 / -1; }
body.kv-setup .cksub { margin-left: 28px; }
body.kv-setup .hint.lead { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); }
body.kv-setup .picks { margin: 10px 0 0; padding: 4px 14px; border-radius: 10px; background: #f7f7fa; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
body.kv-setup .tally { margin: 12px 0 0; font-size: 13.5px; color: var(--text-2); }
body.kv-setup .tally b { color: var(--text); font-variant-numeric: tabular-nums; }
body.kv-setup .now { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--amber-soft); color: #6d4100; font-size: 13.5px; }
body.kv-setup .now svg { margin-top: 2px; }
body.kv-setup .now a { color: #6d4100; font-weight: 600; }
body.kv-setup p.now.card { margin: 14px 0 0; padding: 12px 16px; box-shadow: none; }

/* ---- The lighter pages ---- */
body.kv-setup .fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
body.kv-setup .fgrid.one { grid-template-columns: minmax(0, 1fr); }
body.kv-setup .fld { display: block; min-width: 0; }
body.kv-setup .fld.wide, body.kv-setup .fgrid > p, body.kv-setup .fgrid > .swrow { grid-column: 1 / -1; }
body.kv-setup .fgrid > p { margin: 0; }
body.kv-setup .fld > span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
body.kv-setup .fld small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
body.kv-setup .fld input:not([type=color]), body.kv-setup .fld textarea, body.kv-setup .addrow input { min-height: 40px; background: #fff; color: var(--text); font: inherit; }
body.kv-setup .fld .row small { margin: 0; }
body.kv-setup .logo-ph { display: inline-grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px dashed #aeaeb2; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
body.kv-setup .co-term.docrow { align-items: end; padding: 12px 0; border-top: 1px solid var(--border); }
body.kv-setup .co-term.docrow:first-child { border-top: 0; padding-top: 0; }
body.kv-setup .co-term.docrow button { min-height: 40px; }
body.kv-setup .swrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
body.kv-setup .swrow b { display: block; font-weight: 600; }
body.kv-setup .swrow small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
body.kv-setup .swrow + .hint { margin-top: 14px; }
body.kv-setup ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
body.kv-setup .rmlist { list-style: none; margin: 0; padding: 0; }
body.kv-setup .rmlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--border); }
body.kv-setup .rmlist button { min-height: 36px; padding: 0 12px; }
body.kv-setup .addrow { margin-top: 14px; flex-wrap: nowrap; }
body.kv-setup .addrow input { flex: 1 1 auto; min-width: 0; padding: 0 11px; border: 1px solid #c7c7cc; border-radius: 8px; }
body.kv-setup .addrow button { min-height: 40px; }
body.kv-setup .msgs .su-row { grid-template-columns: minmax(0, 1fr) auto 12px; }
body.kv-setup .msgs .su-row .tw { color: #8e8e93; transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
body.kv-setup .msgs .su-row[aria-expanded="true"] .tw { transform: rotate(90deg); }
body.kv-setup .msgs .su-row .v { font-size: 13px; color: var(--muted); }
body.kv-setup .msged { padding: 4px 16px 16px; }
body.kv-setup .qsec > summary { justify-content: flex-start; }
body.kv-setup .card > .qsec:first-of-type { border-top: 0; }
body.kv-setup .card p:last-child { margin-bottom: 0; }

/* ---- Before saving rules ---- */
body.kv-setup dialog.kv-dlg.rv { width: min(640px, calc(100vw - 32px)); }
body.kv-setup dialog.kv-dlg.rv.wide { width: min(760px, calc(100vw - 32px)); }
body.kv-setup dialog::backdrop { background: rgba(28, 28, 30, .32); }
body.kv-setup .chlist { list-style: none; margin: 0; padding: 0; }
body.kv-setup .chlist li { display: grid; gap: 1px; padding: 10px 0; border-top: 1px solid var(--border); }
body.kv-setup .chlist li:first-child { border-top: 0; padding-top: 0; }
body.kv-setup .chlist span { color: var(--text-2); font-size: 13.5px; }
body.kv-setup .chlist span b { color: var(--text); }
body.kv-setup .df button { min-height: 40px; }

/* ---- Narrow screens: the grid becomes one menu per rule; the overview's lines stack ---- */
@media (min-width: 1100px) { body.kv-setup .mx .only-sm { display: none; } }
@media (max-width: 1099px) {
  body.kv-setup .mx .mix.only-sm { display: flex; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
  body.kv-setup .mx .bulk { display: none; }
  body.kv-setup .ghead { display: block; }
  body.kv-setup .mx thead, body.kv-setup .mx td.mc, body.kv-setup .mx colgroup { display: none; }
  body.kv-setup table.mx, body.kv-setup .mx tbody, body.kv-setup .mx tr, body.kv-setup .mx th { display: block; width: 100%; }
  body.kv-setup .mx tr.rule th { padding: 12px 16px; }
  body.kv-setup .mx select.only-sm { display: block; width: 100%; min-height: 44px; font-size: 16px; }
  body.kv-setup .mxbar input[type=search] { flex: 1 1 160px; width: auto; height: 44px; font-size: 16px; }
  body.kv-setup .mxbar .row { flex: 1 1 100%; flex-wrap: nowrap; }
  body.kv-setup .mxbar .chips button, body.kv-setup .mxbar .row button { min-height: 44px; }
}
@media (max-width: 700px) {
  body.kv-setup .su-row { grid-template-columns: minmax(0, 1fr) 12px; }
  body.kv-setup .su-row .k { grid-column: 1; }
  body.kv-setup .su-row .v { grid-column: 1; grid-row: 2; }
  body.kv-setup .su-row .go, body.kv-setup .su-row .tw { grid-column: 2; grid-row: 1 / span 2; }
  body.kv-setup .msgs .su-row { grid-template-columns: minmax(0, 1fr) 12px; }
  body.kv-setup .fgrid { grid-template-columns: minmax(0, 1fr); }
  body.kv-setup .co-term.docrow { grid-template-columns: minmax(0, 1fr); }
  body.kv-setup .autoon { align-items: flex-start; }
  body.kv-setup .fld input:not([type=color]), body.kv-setup .fld textarea, body.kv-setup .addrow input, body.kv-setup .rs-item select { font-size: 16px; min-height: 44px; }
  body.kv-setup .rs-item .acts button, body.kv-setup .rmlist button, body.kv-setup .addrow button, body.kv-setup .df button, body.kv-setup .co-term.docrow button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { body.kv-setup *, body.kv-setup *::before, body.kv-setup *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

body.kv-setup .su-unsaved { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; font-weight: 500; }
body.kv-setup .hist { min-height: 44px; }
/* A new desk's short list: links, not tick circles (those would look like the grid's dots). */
body.kv-setup .todo { list-style: none; margin: 8px 0 0; padding: 0; }
body.kv-setup .todo li + li { border-top: 1px solid var(--border); }
body.kv-setup .todo a { display: grid; grid-template-columns: 120px minmax(0, 1fr) 12px; gap: 4px 16px; align-items: center; min-height: 48px; padding: 8px 0; color: var(--text); text-decoration: none; }
body.kv-setup .todo a b { font-weight: 600; color: var(--link); }
body.kv-setup .todo a:hover b { text-decoration: underline; }
body.kv-setup .todo a span { color: var(--text-2); }
/* The grid's header: each outcome's name, what it means in a few words, and how many rules sit there. */
body.kv-setup .mx .hc .hl { display: block; color: var(--text); }
body.kv-setup .mx .hc small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; line-height: 1.25; color: var(--muted); }
body.kv-setup .mx thead th.hspan .hl { color: var(--text); }
body.kv-setup .mx thead th.hsub { vertical-align: bottom; }
body.kv-setup .mx thead th.hsub.glast { padding: 8px 8px 7px; text-align: left; }
body.kv-setup .ghead { display: flex; align-items: center; gap: 8px; padding-right: 10px; }
body.kv-setup .ghead .gbtn { flex: 1 1 auto; width: auto; min-width: 0; }
body.kv-setup .mx .bulk { flex: none; width: auto; max-width: 150px; min-height: 36px; padding: 0 26px 0 10px; font-size: 12.5px; font-weight: 500; color: var(--text-2); background-color: #fff; }
body.kv-setup .mx td.addon { padding: 0 8px; text-align: left; }
body.kv-setup .mx td.addon select { width: 100%; min-height: 36px; padding: 0 22px 0 8px; font-size: 12.5px; background-color: #fff; color: var(--text); }
body.kv-setup .mx tr.rule td.addon select:has(option[value="owner"]:checked) { color: var(--muted); }
/* The dots: each end of the scale has its own shape, so a column of them can't be misread. */
body.kv-setup .mx .tn-off input[type=radio]:checked { background: radial-gradient(circle, #8e8e93 0 4px, #fff 4.5px); border: 2px solid #8e8e93; }
body.kv-setup .mx .tn-away input[type=radio]:checked { background: linear-gradient(#fff, #fff) center / 10px 2.5px no-repeat, var(--tone); }
body.kv-setup .tn-note { --tone: #7c7c80; --ink: #48484a; }
body.kv-setup .pip.tn-away { background: linear-gradient(#fff, #fff) center / 5px 1.5px no-repeat, var(--tone); }
body.kv-setup .mx .tag.t-fcc { font-size: 11.5px; }
body.kv-setup .exm { display: inline-block; margin-left: 6px; padding: 2px; font-size: 12.5px; font-weight: 500; }
body.kv-setup .advice b { font-weight: 600; }
body.kv-setup .none-yet.pad { padding: 20px; }
/* The way sideways, at the foot of every area. */
body.kv-setup .ar-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
body.kv-setup .ar-next a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
body.kv-setup .ar-next a:hover { background: rgba(0, 0, 0, .05); }
body.kv-setup .ar-next a.nx { margin-left: auto; text-align: right; }
body.kv-setup .ar-next small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
body.kv-setup .ar-next svg { color: var(--muted); }
/* Before saving: what will be true afterwards, then each change. */
body.kv-setup .after { margin: 0; color: var(--text-2); max-width: 68ch; }
body.kv-setup .after b { color: var(--text); }
body.kv-setup .chlist.plainlist li { display: list-item; margin-left: 18px; padding: 4px 0; border: 0; list-style: disc; color: var(--text); }
body.kv-setup .picks { display: block; padding: 12px 14px 6px; }
body.kv-setup .picks fieldset.plain { margin: 0 0 8px; }
body.kv-setup .picks fieldset.plain > legend { color: var(--text-2); margin-bottom: 0; }
body.kv-setup .picks fieldset.plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
body.kv-setup .picks fieldset.plain > legend { grid-column: 1 / -1; float: left; width: 100%; }
body.kv-setup .conds > .hint.lead { margin: 0; }
body.kv-setup .swrow .sw { margin: 10px 0 10px 2px; }
@media (max-width: 700px) { body.kv-setup .todo a { grid-template-columns: minmax(0, 1fr) 12px; } body.kv-setup .todo a b, body.kv-setup .todo a span { grid-column: 1; } body.kv-setup .todo a svg { grid-column: 2; grid-row: 1 / span 2; } body.kv-setup .ar-next { flex-direction: column; } body.kv-setup .ar-next a.nx { margin-left: 0; text-align: left; justify-content: space-between; } }

html:has(body.kv-setup) { scroll-padding: 116px 0 96px; }   /* the keyboard's place never hides under the grid's header or the save bar */
body.kv-setup p, body.kv-setup li, body.kv-setup small, body.kv-setup dd { text-wrap: pretty; }
body.kv-setup h1, body.kv-setup h2, body.kv-setup legend { text-wrap: balance; }
body.kv-setup .su-head .lede, body.kv-setup .ar-title .lede { max-width: 62ch; }
body.kv-setup #app > .su-foot { max-width: 72ch; }
body.kv-setup .basel .muted { display: block; max-width: 72ch; }
body.kv-setup .tally, body.kv-setup .after { max-width: 70ch; }
body.kv-setup .fld small, body.kv-setup .ckrow small, body.kv-setup .radios small, body.kv-setup .swrow small { max-width: 68ch; }
body.kv-setup .mx .hc .hl { font-size: 12.5px; }
body.kv-setup .mx .hc small { font-size: 12px; }
/* 44px targets on every control this mock adds, at every width. */
body.kv-setup #app button:not(.linkb):not(.gbtn):not(.su-row):not(.linkish), body.kv-setup #app select, body.kv-setup #app input[type=text], body.kv-setup #app input[type=email], body.kv-setup #app input[type=url], body.kv-setup #app input[type=date], body.kv-setup #app input[type=search], body.kv-setup .df button { min-height: 44px; }
body.kv-setup input[type=color] { height: 44px; }
body.kv-setup .mx td.addon select { padding: 0 20px 0 8px; font-size: 13px; }
body.kv-setup .mx .bulk { max-width: 140px; }
body.kv-setup .exm { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 -10px 6px; padding: 0 4px; }
body.kv-setup #app select:focus-visible, body.kv-setup #app input:not([type=radio]):not([type=checkbox]):focus-visible, body.kv-setup #app textarea:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
body.kv-setup legend.h2like { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
body.kv-setup fieldset.cond .cks { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }

/* ---- What the real pages add to the above ---- */
body.kv-setup .fld > label, body.kv-setup .fld > .lab { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
body.kv-setup .fld .err { margin-top: 5px; }
body.kv-setup .err:empty { display: none; }
body.kv-setup .fld textarea { width: 100%; }
body.kv-setup .advice.late { color: var(--text-2); }
body.kv-setup .advice.late svg { color: var(--muted); }
body.kv-setup .who-h { margin: 18px 0 8px; font-size: 14.5px; font-weight: 650; text-transform: none; letter-spacing: 0; color: var(--text); }
/* A passing note sits above the save bar, never on it. */
body.kv-setup > .toast { bottom: 84px !important; }
@media (max-width: 700px) { body.kv-setup > .toast { bottom: 128px !important; } }
body.kv-setup p.kv-ver { margin: -8px 0 14px; }
body.kv-setup .ckrow.wide { grid-column: 1 / -1; }
body.kv-setup .docrow.ro { padding: 12px 0; border-top: 1px solid var(--border); }
body.kv-setup .docrow.ro:first-child { border-top: 0; padding-top: 0; }
body.kv-setup .rs-item > .k .small { display: block; font-weight: 400; }
body.kv-setup .su-row .k .chgm { margin-left: 8px; }
body.kv-setup details.fold > summary .chgm { margin-left: 8px; }
body.kv-setup details.fold .swrow { padding: 12px 0; border-top: 1px solid var(--border); }
body.kv-setup .msged[hidden] { display: none; }
body.kv-setup h1[tabindex]:focus-visible { outline: 0; }
body.kv-setup p.kv-ver { display: block; }
body.kv-setup p.kv-ver .tag { margin-right: 6px; }

/* ---- After the design review of the built pages (2026-12-03) ---- */
body.kv-setup .advice.quiet { color: var(--text-2); }   /* our view on a saved choice: said once, quietly */
body.kv-setup .su-note { display: block; margin-top: 2px; color: var(--text-2); }
body.kv-setup .tag.nc { margin-left: 4px; font-size: 11.5px; vertical-align: 1px; white-space: nowrap; }
body.kv-setup .ckrow small.held { color: #6d4100; }
body.kv-setup .kept { margin: 12px 0 6px; }
body.kv-setup .linkb.tap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
body.kv-setup details#rvAll > summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--link); font-weight: 500; }
body.kv-setup details#rvAll .chlist { margin-top: 6px; }
body.kv-setup .mx .hc small { overflow-wrap: anywhere; }
/* Room under the Before / Next links, so the save bar doesn't sit on them on a short page. */
body.kv-setup .ar-next + .savebar { margin-top: 72px; }
body.kv-setup fieldset.cond > p.hint.lead, body.kv-setup #auAlways { max-width: 70ch; }

/* ===== All desks (platform staff, 2026-12-04): Desks, Needs us, Find an applicant. Classes start with ow-. */
body.kv-desk .ow-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
body.kv-desk a.ow-needs { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--red-soft); color: var(--text); font-size: 14px; line-height: 1.35; text-decoration: none; }
body.kv-desk a.ow-needs:hover { background: #fbdedc; }
body.kv-desk a.ow-needs:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
body.kv-desk .ow-needs b { color: #8a1c15; }
body.kv-desk .ow-needs .ow-why { color: #5c2b28; }
body.kv-desk .ow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
body.kv-desk .ow-go { margin-left: auto; font-weight: 650; color: #8a1c15; white-space: nowrap; }
body.kv-desk .ow-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body.kv-desk .ow-seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 10px; background: #e5e5ea; }
body.kv-desk .ow-seg button { border: 0; background: none; padding: 5px 12px; min-height: 32px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
body.kv-desk .ow-seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
body.kv-desk .ow-card { padding: 4px 14px 10px; }
body.kv-desk table.kvt th[aria-sort] button { all: unset; cursor: pointer; font: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center; }
body.kv-desk table.kvt th[aria-sort] button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
body.kv-desk table.kvt th[aria-sort] .arr { font-size: 9px; }
body.kv-desk .ow-sub { margin-top: 4px; font-size: 12.5px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
body.kv-desk .ow-addr { color: var(--text-2); }
body.kv-desk .ow-host { overflow-wrap: anywhere; min-width: 0; }   /* the desk's own web address (2026-12-05) */
body.kv-desk a.ow-taglink { border-radius: 999px; text-decoration: none; }
body.kv-desk a.ow-taglink .tag { text-decoration: underline; text-underline-offset: 2px; }
body.kv-desk a.ow-taglink:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
body.kv-desk .ow-count { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); }
body.kv-desk .ow-neg { color: var(--red); }
body.kv-desk .ow-sumrow { display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
body.kv-desk .ow-sum { margin: 0; font-size: 14px; color: var(--text-2); }
body.kv-desk .ow-sum b { color: var(--text); font-variant-numeric: tabular-nums; }
body.kv-desk .ow-warn { margin: 0; font-size: 13px; color: #6d4100; background: var(--amber-soft); padding: 9px 12px; border-radius: 10px; max-width: 68ch; text-wrap: pretty; }
body.kv-desk .ow-note { margin: 0; font-size: 12.5px; color: var(--text-2); max-width: 68ch; text-wrap: pretty; border-left: 3px solid #c7c7cc; padding: 2px 0 2px 10px; }
body.kv-desk .ow-email { display: flex; gap: 8px; align-items: center; font-size: 14px; min-height: 44px; }
body.kv-desk .ow-email input { width: 18px; height: 18px; margin: 0; flex: none; }
body.kv-desk .ow-find { display: flex; gap: 8px; flex-wrap: wrap; }
body.kv-desk .ow-find input[type=search] { flex: 1 1 260px; max-width: 520px; padding: 10px 12px; font: inherit; font-size: 16px; background: #fff; color: var(--text); }
body.kv-desk .ow-empty { font-size: 14px; }
body.kv-desk .ow-apps { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
body.kv-desk .ow-h3 { margin: 6px 0 0; font-size: 14px; }
body.kv-desk .ow-dollar { display: flex; align-items: center; gap: 6px; }
body.kv-desk .ow-dollar input { flex: 1; min-width: 0; }
body.kv-desk .nw { white-space: nowrap; }
body.kv-desk .ow-phone { display: none; }
@media (max-width: 700px) {
  body.kv-desk a.ow-needs { align-items: flex-start; }
  body.kv-desk .ow-dot { margin-top: 5px; }
  body.kv-desk .ow-go { font-size: 18px; line-height: 1.1; }
  body.kv-desk .ow-gotext { display: none; }
  body.kv-desk .ow-right { width: 100%; }
  body.kv-desk .ow-right input[type=search] { flex: 1 1 160px; width: auto; }
  body.kv-desk .ow-seg button { min-height: 40px; }
  body.kv-desk select.ow-phone { display: inline-block; font-size: 16px; min-height: 44px; flex: 1 1 140px; padding: 6px 8px; }
  body.kv-desk .ow-laptop { display: none !important; }
  /* tabs and filters stay on one line and scroll sideways */
  body.kv-desk .ow-tabs, body.kv-desk .ow-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; width: auto; }
  body.kv-desk .ow-tabs a, body.kv-desk .ow-chips button { flex: none; white-space: nowrap; }
  body.kv-desk .ow-card { padding: 2px 12px 8px; }
  /* compact rows: label and value on one line; on the desk list the buttons sit beside the desk's name */
  body.kv-desk .ow-card table.kvt-stack tr { position: relative; gap: 3px 8px; padding: 10px 0; }
  body.kv-desk .ow-card table.kvt-stack td[data-l]:not(.inl) { display: grid; grid-template-columns: 10.4em minmax(0, 1fr); gap: 0 8px; align-items: baseline; font-size: 14.5px; }
  body.kv-desk .ow-card table.kvt-stack td[data-l]:not(.inl)::before { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-2); }
  body.kv-desk .ow-card table.kvt-stack td[data-l] > * { grid-column: 2; }
  body.kv-desk .ow-card table.kvt-stack td.empty[data-l]:not(.inl) { display: none; }
  body.kv-desk .ow-card table.kvt-stack td.act { position: absolute; top: 10px; right: 0; }
  body.kv-desk .ow-card table.kvt-stack td.act .row { flex-wrap: nowrap; gap: 6px; }
  body.kv-desk .ow-card table.kvt-stack td.act button { padding: 0 11px; }
  body.kv-desk .ow-card table.kvt-stack td:first-child > .dk { display: flex; min-height: 44px; padding-right: 150px; box-sizing: border-box; }
  body.kv-desk .ow-card table.kvt-stack td:first-child > .ow-sub { margin-top: 2px; }
  body.kv-desk .ow-card.ow-wide table.kvt-stack td.act { position: static; order: 6; }
}

/* ===== Your web address (Desk setup, 2026-12-05). Classes start with dm-. One column; the record is the thing to copy. */
body.kv-setup .dm .card > h2 { font-size: 17px; }
body.kv-setup .dm-val { font-weight: 600; color: var(--text); overflow-wrap: break-word; }
body.kv-setup .db.dm-dlg p { margin: 0; }
/* The field, its help and its error stay together; on a computer the button sits beside the field, on a phone after them. */
body.kv-setup .dm-addrow { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: start; column-gap: 8px; }
body.kv-setup .dm-addrow input { grid-column: 1; grid-row: 1; min-width: 0; padding: 9px 12px; font-size: 15px; }
body.kv-setup .dm-addrow button { grid-column: 2; grid-row: 1; align-self: start; }
body.kv-setup .dm-addrow small, body.kv-setup .dm-addrow .err { grid-column: 1 / -1; }
body.kv-setup .dm-addrow .err:empty { display: none; }
/* Where it stands: the address, the three steps, then what to do now. */
body.kv-setup .dm-now { display: grid; gap: 14px; }
body.kv-setup .dm-addr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
body.kv-setup .dm-host { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; min-width: 0; }
body.kv-setup .dm-steps { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
body.kv-setup .dm-steps li { display: inline-flex; align-items: center; gap: 7px; }
body.kv-setup .dm-steps li.dm-at { color: var(--text); font-weight: 600; }
body.kv-setup .dm-steps li.dm-did { color: var(--text-2); }
body.kv-setup .dm-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #8e8e93; }
body.kv-setup .dm-steps li.dm-at .dm-dot { box-shadow: inset 0 0 0 4.5px var(--brand-2); }
body.kv-setup .dm-steps li.dm-did .dm-dot { background: var(--green); box-shadow: none; }
body.kv-setup .dm-dot svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.kv-setup .dm-say h2:focus { outline: none; }
body.kv-setup .dm-say h2:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }
body.kv-setup .dm-say h2 { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 4px; font-size: 17px; }
body.kv-setup .dm-say p { margin: 0; color: var(--text-2); max-width: 68ch; }
body.kv-setup .dm-now .pip { flex: none; width: 10px; height: 10px; margin-top: 0.42em; background: var(--tone, #8e8e93); }
body.kv-setup .dm-wait { --tone: #8e8e93; }
body.kv-setup .dm-go { --tone: var(--brand-2); }
body.kv-setup .dm-flag { --tone: #b86e00; }
body.kv-setup .dm-live { --tone: var(--green); }
body.kv-setup .dm-flag .dm-say h2 { color: #8f5400; }
body.kv-setup .dm-live .dm-say h2 { color: #14662b; }
body.kv-setup .dm-acts .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; box-sizing: border-box; padding: 0 16px; border-color: #d1d1d6; }
body.kv-setup .dm-check { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
body.kv-setup .dm-check .hint { margin: 0; }
body.kv-setup .dm-check .linkish { min-height: 44px; padding: 0 4px; }
/* The record: three short lines, each value easy to select and copy. */
body.kv-setup .dm-rec { margin: 12px 0 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
body.kv-setup .dm-r { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; align-items: center; min-height: 56px; padding: 6px 0; }
body.kv-setup .dm-r + .dm-r { border-top: 1px solid var(--border); }
body.kv-setup .dm-r dt { font-size: 13px; color: var(--muted); }
body.kv-setup .dm-r dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; min-width: 0; }
body.kv-setup .dm-code { font: 500 14.5px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--text); overflow-wrap: break-word; user-select: all; min-width: 0; }
body.kv-setup .dm-copy { flex: none; min-width: 76px; }
body.kv-setup .dm-copy.done, body.kv-setup #dmMsg.done, body.kv-setup #dmCopyLink.done { color: #14662b; border-color: #9fd4ad; }
body.kv-setup #dmCopyLink.done { background: var(--green); border-color: var(--green); color: #fff; }
/* Where to add it: one fold per DNS host, steps inside. */
body.kv-setup .dm-help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
body.kv-setup .dm-help h3 { margin: 0 0 2px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); }
body.kv-setup .dm-hosts { list-style: none; margin: 8px 0 0; padding: 0; }
body.kv-setup .dm-hosts > li + li { border-top: 1px solid var(--border); }
body.kv-setup .dm-hosts details.fold { padding: 0; }
body.kv-setup .dm-hosts details.fold > summary { min-height: 48px; font-weight: 600; }
body.kv-setup .dm-hosts ol { margin: 0 0 14px; padding-left: 40px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); max-width: 66ch; }
body.kv-setup .dm-hosts ol b { color: var(--text); font-weight: 600; }
body.kv-setup .dm-it { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); }
body.kv-setup .dm-it b { display: block; font-size: 14px; color: var(--brand-ink); }
body.kv-setup .dm-it span { font-size: 13.5px; color: var(--brand-ink); }
body.kv-setup details.dm-keep > summary { min-height: 52px; }
body.kv-setup details.dm-keep { padding-bottom: 2px; }
body.kv-setup details.dm-keep[open] { padding-bottom: 18px; }
body.kv-setup .dm-remove { margin-top: 8px; }
body.kv-setup button.primary.bad-fill { background: var(--red); border-color: var(--red); color: #fff; }
body.kv-setup .dm-facts ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); max-width: 70ch; }
body.kv-setup .dm-facts ul b { color: var(--text); font-weight: 600; }
body.kv-setup .dm-link { display: inline-block; max-width: 100%; padding: 4px 0; overflow-wrap: anywhere; }
body.kv-setup .dm-link svg { vertical-align: -2px; margin-left: 3px; }
@media (max-width: 700px) {
  body.kv-setup .dm { font-size: 15px; }
  body.kv-setup .dm h1 { font-size: 22px; }
  body.kv-setup .dm .lede, body.kv-setup .dm .dm-facts ul, body.kv-setup .dm .dm-hosts ol { font-size: 14px; }
  body.kv-setup .dm .dm-say p { font-size: 15px; }
  body.kv-setup .dm .hint, body.kv-setup .dm .fld small, body.kv-setup .dm .err, body.kv-setup .dm-r dt { font-size: 13px; }
  body.kv-setup .dm-addrow { grid-template-columns: minmax(0, 1fr); }
  body.kv-setup .dm-addrow input { font-size: 16px; }
  body.kv-setup .dm-addrow button { grid-column: 1; grid-row: auto; margin-top: 10px; }
  body.kv-setup .dm-steps { column-gap: 12px; }
  body.kv-setup .dm-remove { display: flex; }
  body.kv-setup .dm-r { grid-template-columns: minmax(0, 1fr); padding: 10px 0; }
  body.kv-setup .dm-hosts ol { padding-left: 22px; }
  body.kv-setup .dm-it button, body.kv-setup .dm-remove button, body.kv-setup .dm-acts > * { flex: 1 1 auto; justify-content: center; }
}
