/* QuickData: the console, the account pages (sign-in, plans, welcome), the API guide and the admin console.
   Re-skinned 2026-10-06 to sit beside the website's redesign (static/web.css): its palette, Inter, square corners,
   its buttons, and on a visitor's pages its header and footer (copied at the foot of this file; a test keeps the
   copy equal to web.css). The layouts are the console's own: a working tool, on a light ground. */
:root {
  /* the website's palette: the same names with the same values as web.css */
  --navy: #172554; --board: #0e1838; --groove: #263568;
  --green: #10b981; --green-bright: #34d399; --green-deep: #047857; --green-ink: #053527; --green-wash: #e2f7ee;
  --plate: #fff; --wash: #eef1f8; --line: #d5dbea; --soft: #b4c0e4; --pale: #d3dbf3; --ink: #131c40; --muted: #55607f;
  --pad: clamp(20px, 5vw, 88px);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* the console's own */
  --navy-2: #1e3a8a; --bg: var(--wash); --card: var(--plate); --green-2: var(--green-deep); --green-bg: var(--green-wash);
  --amber: #b45309; --amber-bg: #fff7e0; --red: #b42318; --red-bg: #fdecec; --edge: #9aa7c9; --tint: #f5f7fb;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
::selection { background: var(--green); color: var(--green-ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; }
h1, h2 { letter-spacing: -.025em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; color: var(--navy); }
h2 { font-size: 26px; font-weight: 700; color: var(--navy); }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1rem; }
code, pre, .mono { font-family: var(--mono); font-size: 13.5px; }
code { background: var(--wash); padding: 2px 6px; }
pre { background: #0a1230; color: var(--pale); padding: 14px 16px; overflow: auto; margin: 0 0 1rem; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* the header of a signed-in page (the console, the welcome page, the admin console) */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav img { height: 26px; display: block; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 16px; }
.nav nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav nav .btn { white-space: nowrap; }
/* phones: the logo, sign-in and the call to action; the section links live on the page (David, 2026-09-29) */
@media (max-width: 560px) { .nav nav { gap: 14px; } .nav nav .wide-only { display: none; } .nav img { height: 22px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit;
  font-weight: 700; padding: 11px 18px; text-decoration: none; transition: background .2s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: var(--green-bright); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--board); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--wash); }
.btn-danger { background: #fff; color: var(--red); border: 1.5px solid #e3a8a3; }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--navy-2); text-decoration: underline; cursor: pointer; font: inherit; }

/* cards / layout */
.card { background: var(--card); border: 1px solid var(--line); padding: 22px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
section { padding: 56px 0; }
.eyebrow { color: var(--green-deep); font-weight: 700; font-size: 15px; margin-bottom: 10px; }

/* hero */
.hero { padding: 72px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero .lead { font-size: 19px; color: #33406b; max-width: 640px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
/* home page: three benefits under the call to action, and the pricing line (David, 2026-09-29) */
.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* from a rent roll file to the JSON schema */
.flow-caption { margin-top: 30px; font-size: 14px; font-weight: 700; color: var(--muted); }
.flow-caption + .flow { margin-top: 10px; }
.flow { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 40px; }
.flow-file, .flow-json { overflow: hidden; }
.flow-file { background: #fff; border: 1px solid var(--line); }
.flow-json { background: var(--navy); }
.flow-label { display: flex; gap: 8px; align-items: center; padding: 10px 14px; font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.flow-label .fi { background: #15803d; color: #fff; font-size: 10px; padding: 2px 5px; letter-spacing: .04em; }
.flow-json .flow-label { color: var(--edge); border-bottom-color: rgba(255, 255, 255, .08); }
.sheet-wrap { overflow-x: auto; }
.sheet { border-collapse: collapse; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
.sheet th { background: var(--wash); text-align: left; font-weight: 700; color: #33406b; padding: 7px 8px; white-space: nowrap; }
.sheet td { padding: 6px 8px; color: #33406b; white-space: nowrap; border-top: 1px solid var(--wash); }
.sheet .hl td { background: var(--green-bg); }
.sheet .tot td { font-weight: 700; border-top: 1.5px solid var(--edge); }
.flow-json pre { margin: 0; font-size: 12.5px; line-height: 1.55; background: transparent; }
.flow-json .k { color: #7dd3fc; }
.flow-json .s { color: #86efac; }
.flow-arrow { width: 44px; height: 44px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow-arrow { justify-self: center; transform: rotate(90deg); } }
@media (max-width: 560px) { .sheet .c-opt { display: none; } .flow-json pre { font-size: 10.5px; padding: 12px; } }
.perks { margin-top: 40px; gap: 24px 34px; }
.perks > div { border-top: 2px solid var(--green); padding-top: 12px; }
.perks b { display: block; color: var(--navy); font-size: 16px; }
.perks span { color: var(--muted); font-size: 15px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: #fff; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip:hover, .chip.active { border-color: var(--green); color: var(--green-2); background: var(--green-bg); }

/* dropzone */
.drop { border: 2px dashed #c3cbe0; padding: 28px; text-align: center; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--green); background: var(--green-bg); }
.drop input { display: none; }
.drop .big { font-weight: 700; color: var(--navy); }

/* stat tiles */
.stat { background: #fff; border: 1px solid var(--line); padding: 16px 18px; }
.stat .k { color: var(--muted); font-size: 14px; font-weight: 600; }
.stat .v { font-size: 28px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.stat .s { color: var(--muted); font-size: 13px; }

/* badges */
.badge { display: inline-block; padding: 3px 10px; font-size: 12.5px; font-weight: 700; }
.b-ok { background: var(--green-bg); color: var(--green-ink); }
.b-warn { background: #fde68a; color: #5a3d00; }
.b-bad { background: var(--red-bg); color: #7a1616; }
.b-muted { background: var(--wash); color: var(--muted); }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-weight: 700; font-size: 13.5px; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--wash); white-space: nowrap; }
table.t tr:hover td { background: var(--tint); }
.scroll { overflow: auto; max-height: 480px; border: 1px solid var(--line); background: #fff; }

/* forms */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], select { font: inherit; color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--edge); border-radius: 0; width: 100%; background: #fff; caret-color: var(--green-deep); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green-deep); }
label { font-weight: 600; font-size: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.key-box { font-family: var(--mono); font-size: 14px; background: var(--amber-bg); border: 1px solid #fde68a; padding: 12px 14px; word-break: break-all; }

/* tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--navy); border-color: var(--green); }
.panel { display: none; } .panel.active { display: block; }
.sec-title { margin: 30px 0 12px; font-size: 18px; scroll-margin-top: 16px; }

/* results */
.status-strip { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
.strip-file { font-weight: 700; color: var(--navy); max-width: min(100%, 460px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--wash); }
.check:last-child { border-bottom: 0; }
.check .ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.ico.ok { background: var(--green-bg); color: var(--green-2); } .ico.bad { background: var(--red-bg); color: var(--red); } .ico.na { background: var(--wash); color: var(--muted); } .ico.warn { background: var(--amber-bg); color: var(--amber); }
.json { max-height: 480px; overflow: auto; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.spinner { width: 18px; height: 18px; border: 3px solid #c3cbe0; border-top-color: var(--green-deep); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; padding: 26px; max-width: 440px; width: 100%; }

/* pricing */
.price { font-size: 44px; font-weight: 700; color: var(--navy); }
.price small { font-size: 16px; color: var(--muted); font-weight: 600; }
.ul { list-style: none; padding: 0; margin: 14px 0; }
.ul li { padding: 6px 0 6px 28px; position: relative; }
.ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* steps */
.step .n { width: 34px; height: 34px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }

/* the footer of a signed-in page */
.app-foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; background: #fff; }
.app-foot .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }

/* bars chart */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 6px 0; }
.bars div { flex: 1; background: var(--green); min-height: 2px; opacity: .9; }
.bars div.free { background: var(--edge); }
.bars div.zero { background: var(--line); opacity: 1; }
.toast { position: fixed; bottom: 22px; left: 50%; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; font-weight: 600; display: none; z-index: 60; }

/* sign-in page */
.signup-note { margin-top: 18px; background: var(--green-bg); border: 1px solid #9bd9bd;
  padding: 14px 16px; font-size: 14px; color: var(--green-ink); text-align: center; line-height: 1.5; }
.signup-note-title { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
#clerk-signin .cl-rootBox { margin: 0 auto; }

/* account tab: cancellation is deliberately quiet */
.acct-end { margin: 40px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.acct-end .link { color: var(--muted); }

/* ---------------- admin console ---------------- */
.wrap.wide { max-width: 1280px; }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .grid-6 { grid-template-columns: 1fr 1fr; } }
.stat-alert { border-color: #e3a8a3; background: var(--red-bg); }
.stat-alert .v { color: var(--red); }
.stat .v.small-v { font-size: 20px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.active { background: var(--navy); color: #fff; }
.try-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 6px; }
.try-box { display: flex; flex-direction: column; }
.try-box h4 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.try-box .drop { flex: 0 0 auto; }
.try-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
@media (max-width: 760px) { .try-boxes { grid-template-columns: minmax(0, 1fr); } }
.type-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; background: var(--wash); color: var(--navy); font-weight: 600; }
.type-note.warn { background: var(--amber-bg); border: 1px solid #fde68a; }
.tabs .count { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; background: var(--red); color: #fff; font-size: 12px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .tip i { width: 10px; height: 10px; display: inline-block; }
.tip i { margin-right: 6px; }
.stack { display: flex; align-items: flex-end; gap: 3px; height: 190px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.stack .col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.stack .col:hover { background: var(--wash); }
.stack .bar { width: 100%; display: flex; flex-direction: column-reverse; gap: 2px; overflow: hidden; }
.stack .bar div { min-height: 2px; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 6px 0 4px; }
.tip { position: fixed; display: none; z-index: 70; background: #fff; border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; line-height: 1.6; pointer-events: none; }
.fun { display: grid; grid-template-columns: 190px 1fr 90px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.fun-bar { background: var(--wash); height: 14px; overflow: hidden; }
.fun-bar div { height: 100%; background: var(--navy-2); }
.fun-n { font-weight: 700; color: var(--navy); text-align: right; }
.kv { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--wash); font-size: 14px; }
.kv:last-of-type { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); }
.scroll.plain { border: 0; max-height: 420px; }
table.t.clickable tr:not(:first-child) { cursor: pointer; }
table.t th { cursor: default; }
.clip { display: inline-block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.modal.wide { max-width: 1040px; max-height: 90vh; overflow: auto; }
.meta .k { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.meta > div { font-size: 14px; word-break: break-word; }
.errbox { background: var(--red-bg); border: 1px solid #e3a8a3; color: #7a1616; padding: 10px 12px; font-family: var(--mono); font-size: 13px; margin-top: 12px; white-space: pre-wrap; word-break: break-word; }
textarea { font: inherit; color: var(--ink); padding: 10px 12px; border: 1.5px solid var(--edge); border-radius: 0; width: 100%; resize: vertical; }
details.sec { border-top: 1px solid var(--line); padding: 10px 0; }
details.sec > summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details.sec > *:not(summary) { margin-top: 10px; }
pre.logs { max-height: 360px; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.card.rerun { margin: 8px 0 12px; background: var(--tint); }
.card.rerun.good { border-color: #9bd9bd; background: var(--green-bg); }
.actions { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); margin-bottom: 12px; }
.meter { height: 10px; background: var(--wash); overflow: hidden; margin-bottom: 8px; }
.meter div { height: 100%; }
.grid > * { min-width: 0; }

/* 'Needs review' tooltip: the checks that did not reconcile (a fixed layer, so scrolling tables never clip it) */
.badge.has-tip { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.qd-tip { position: fixed; z-index: 90; display: none; white-space: pre-line; max-width: min(460px, calc(100vw - 24px));
  background: var(--navy); color: #fff; font-weight: 600; font-size: 13px; line-height: 1.5; padding: 10px 12px;
  pointer-events: none; }

/* unit mix summary (house style: navy header, green accent, bold totals line) */
.mix-wrap { max-height: none; }
table.t.mix { font-size: 13.5px; }
table.t.mix th { background: var(--navy); color: #fff; cursor: default; border-bottom: 0; white-space: normal; line-height: 1.25; padding: 9px 8px; vertical-align: bottom; }
table.t.mix td { padding: 8px 8px; }
table.t.mix th.r, table.t.mix td.r { text-align: right; }
table.t.mix tr.total td { font-weight: 700; color: var(--navy); border-top: 2px solid var(--navy); border-bottom: 0; background: var(--green-bg); }
table.t.mix tr:hover td { background: inherit; }
table.t.mix tr.total:hover td { background: var(--green-bg); }

/* API guide */
.docs { max-width: 900px; }
.docs h2 { margin-top: 42px; scroll-margin-top: 80px; }
.docs h3 { margin-top: 24px; scroll-margin-top: 80px; }
.docs .lead-sm { font-size: 17px; color: #33406b; max-width: 760px; }
.docs .toc { margin: 18px 0 8px; }
.docs .toc ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.9; }
.docs table.spec { margin: 8px 0 14px; background: #fff; border: 1px solid var(--line); }
.docs table.spec td { white-space: normal; vertical-align: top; }
/* on a phone, long field names and paths may break anywhere, so a table never pushes the page wider than the screen */
@media (max-width: 640px) {
  .docs table.spec { width: 100%; }
  .docs table.spec td, .docs table.spec th, .docs p, .docs .ep { overflow-wrap: anywhere; }
  .docs table.spec th { white-space: normal; }
  .docs table.spec code, .docs p code, .docs .ep code { white-space: normal; overflow-wrap: anywhere; }
}
.docs table.spec th { cursor: default; }
.docs .ep { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.docs .ep .m { font: 700 12px var(--mono); padding: 3px 8px; color: #fff; }
.docs .ep .m.post { background: var(--green-2); } .docs .ep .m.get { background: var(--navy-2); } .docs .ep .m.put { background: var(--amber); } .docs .ep .m.patch { background: #7c3aed; } .docs .ep .m.delete { background: var(--red); }
.docs ol.steps { padding-left: 22px; } .docs ol.steps li { margin-bottom: 6px; }
.docs .code-tabs { margin: 8px 0 0; border-bottom: 0; }
.docs .code-tabs button { padding: 6px 12px; }
.copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.12); color: var(--line); border: 1px solid rgba(255,255,255,.25); font: 600 12px var(--font); padding: 3px 8px; cursor: pointer; }
.copy-btn:hover { background: rgba(255,255,255,.22); }

/* T12 (David, 2026-09-29): summary blocks, line items with subtotals and review corrections */
table.t.t12s td:first-child { white-space: normal; }
table.t.t12s tr.custom td:first-child { padding-left: 22px; }
table.t.t12s tr.grand td { background: var(--navy); color: #fff; border-top: 0; }
table.t.t12s tr.grand:hover td { background: var(--navy); }
table.t.t12l { font-size: 13px; }
table.t.t12l th.r, table.t.t12l td.r { text-align: right; }
table.t.t12l tr.sub td { font-weight: 700; color: var(--navy); background: var(--tint); }
table.t.t12l tr.rev td { background: var(--amber-bg); }
table.t.t12l td:first-child { position: sticky; left: 0; background: #fff; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.t.t12l tr.sub td:first-child { background: var(--tint); }
table.t.t12l tr.rev td:first-child { background: var(--amber-bg); }
table.t.t12l td.calc { font-style: italic; color: var(--muted); }
table.t.t12l td.off { color: var(--red); font-weight: 700; }
.cat-form { display: grid; grid-template-columns: 1.2fr 1.2fr 2fr auto; gap: 10px; align-items: end; }
.cat-form label { font-size: 12.5px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.cat-form input, .cat-form select { width: 100%; }
@media (max-width: 720px) { .cat-form { grid-template-columns: 1fr; } }

/* organizations (David, 2026-10-04): the workspace picker, small forms, endpoints, the dialog's fields */
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.form-grid label { font-size: 12.5px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.form-grid input, .form-grid select { width: 100%; height: 46px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .form-grid > div { grid-column: auto !important; } }
.scope-note { background: var(--amber-bg); border: 1px solid #fde68a; padding: 9px 12px; font-size: 14px; margin: 8px 0 4px; }
.hook { padding: 12px 0; border-top: 1px solid var(--line); }
.hook:first-child { border-top: 0; padding-top: 0; }
.hook code { word-break: break-all; }
.field { margin-bottom: 12px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 4px; }
.field input, .field select { width: 100%; }
.checks { display: grid; gap: 8px; margin: 10px 0 0; font-size: 15px; }
.checks input { width: auto; margin-right: 6px; }
.one-ws .ws-col { display: none; }

/* the console (David, 2026-10-05): a company's own pages; the result with the Excel file first */
.con { padding: 30px 0 56px; }
.con-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 4px; }
.con-head h1 { font-size: 28px; margin: 0; }
.con-mine { color: var(--muted); font-size: 15px; }
.con-mine b { color: var(--navy); font-size: 20px; font-weight: 700; margin-right: 2px; }
.nav-who { color: var(--muted); font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav nav:has(.nav-who) { min-width: 0; }
.nav nav:has(.nav-who) a { white-space: nowrap; flex: none; }
.con .tabs { margin-top: 14px; }
.con .muted, .con .stat .k, .con .stat .s, .con table.t th { color: var(--muted); }
.con h3 { font-size: 18px; font-weight: 700; }
.con .card > h3:first-child { margin-bottom: 8px; }
.con table.t { font-size: 14.5px; }
.con table.t td { padding: 12px 8px; }
.con table.t th { padding: 10px 8px; }
.con table.t td.file { font-weight: 600; max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.con table.t.mix th { color: #fff; }
.con .scroll.plain { max-height: none; }
.con .chip { font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); }
.con table.t td.acts { text-align: right; }
.con table.t td.acts .link { margin-left: 14px; }
.con table.t tr.gone td { opacity: .6; }
.con .who { font-weight: 700; }
.con .mono { font-family: var(--mono); }
.row.between { justify-content: space-between; }
.tiles { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.tiles .stat { flex: 1 1 220px; padding: 18px 20px; }
.tiles .stat .v { font-size: 30px; }
.tiles .stat .s { font-size: 14px; }
.tile-note { font-size: 14px; font-weight: 600; color: var(--muted); }
.limits { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 6px; font-size: 15px; }
.limits b { color: var(--navy); font-weight: 700; }
.home-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.home-drop { flex: 3 1 420px; display: flex; flex-direction: column; gap: 14px; }
.home-addin { flex: 2 1 300px; display: flex; flex-direction: column; gap: 10px; }
.home-addin p { margin: 0; }
.big-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border-color: var(--edge); padding: 34px 20px; flex: 1 1 auto; justify-content: center; }
.big-drop .big { font-weight: 700; font-size: 17px; }
.addin-dl { align-self: flex-start; padding: 13px 18px; text-decoration: none; }
.con-foot { margin: 18px 0 0; }
.notice { padding: 11px 14px; font-size: 14.5px; margin: 12px 0 0; border: 1px solid var(--line); background: #fff; }
.notice.ok { background: var(--green-bg); border-color: #9bd9bd; color: var(--green-ink); }
.notice.warn { background: var(--amber-bg); border-color: #fde68a; color: #5a3d00; }
.notice.bad { background: var(--red-bg); border-color: #e3a8a3; color: #7a1616; }
.confirm-box { border: 1.5px solid #e3a8a3; background: var(--red-bg); padding: 16px 18px; margin-top: 14px; }
.confirm-box h3 { color: #7a1616; margin: 0 0 6px; }
.confirm-box p { font-size: 14.5px; margin: 0 0 12px; }
.pick label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.pick select { width: auto; min-width: 150px; max-width: 100%; padding: 8px 10px; }
.pick input[type=search] { max-width: 100%; padding: 8px 10px; font-size: 15px; border: 1.5px solid var(--edge); border-radius: 0; background: #fff; }
.pick { min-width: 0; max-width: 100%; }
.con .modal { max-height: calc(100vh - 40px); overflow: auto; }
.big-drop:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.hold { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--wash); font-size: 14.5px; }
.hold-k { color: var(--muted); font-weight: 700; }
@media (max-width: 620px) { .hold { grid-template-columns: 1fr; } }
.divide { border-top: 1px solid var(--line); margin: 18px 0; }
.switch-row { display: flex; gap: 14px; align-items: flex-start; }
.switch-row p { margin: 4px 0 0; }
.switch-title { font-weight: 700; }
.switch { flex: none; width: 46px; height: 28px; border: 0; background: var(--edge); position: relative; cursor: pointer; padding: 0; margin-top: 1px; transition: background .15s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; transition: left .15s; }
.switch.on { background: var(--green-deep); }
.switch.on span { left: 21px; }
.switch[disabled] { opacity: .6; cursor: default; }
.switch:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.on-note { color: var(--green-ink); font-weight: 600; }
.bill-line { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--wash); }
.bill-line.total { border-bottom: 0; padding-bottom: 0; }
.bill-k { font-weight: 700; }
.bill-v { font-weight: 700; color: var(--navy); font-size: 17px; white-space: nowrap; }
.bill-line.total .bill-k, .bill-line.total .bill-v { font-size: 19px; font-weight: 700; color: var(--navy); }
.bill-end { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.bill-end .link { color: var(--muted); }
.steps-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 16px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.steps-list .n { flex: none; width: 30px; height: 30px; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.steps-list .n.done { background: var(--green-deep); }
.steps-list li > div { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.step-title { font-weight: 700; }
.step-title label { font: inherit; }
.card.joined { margin: 16px 0 18px; border-color: #9bd9bd; }
.card.joined h2 { font-size: 22px; }
.ribbon-shot { display: block; width: 100%; max-width: 844px; height: auto; border: 1px solid var(--line); }
/* a result: its name, the status with the Excel file, what to confirm */
.res-name h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; }
.res-name { margin-bottom: 10px; }
.res-head { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.res-head.ok { border-color: #9bd9bd; background: var(--green-bg); }
.res-head.warn { border-color: #fde68a; background: var(--amber-bg); }
.res-head.bad { border-color: #e3a8a3; background: var(--red-bg); }
.res-status { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 320px; }
.res-status .ico { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; background: #fff; }
.res-title { font-weight: 700; font-size: 18px; color: var(--ink); }
.confirm-item { padding: 11px 0 11px 14px; border-left: 3px solid var(--amber); margin: 8px 0; font-size: 15px; background: var(--amber-bg); }
.res-head + .card details.sec:first-child, .card > details.sec:only-child { border-top: 0; padding: 0; }

/* choosing a plan (/plans): two cards, each a checkbox */
.plan-pick { align-items: stretch; gap: 16px; }
.plan-card { position: relative; display: grid; gap: 6px; align-content: start; cursor: pointer; border: 2px solid var(--line); padding: 20px 22px; font-weight: 400; margin: 0; }
.plan-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.plan-check { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border: 2px solid var(--edge); background: #fff; }
.plan-card:has(input:checked) { border-color: var(--green-deep); background: var(--green-wash); }
.plan-card:has(input:checked) .plan-check { background: var(--green-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--green-deep); }
.plan-card:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.plan-name { font-size: 20px; font-weight: 700; color: var(--navy); padding-right: 34px; }
.plan-price { color: var(--ink); } .plan-price b { font-size: 26px; color: var(--navy); }
.plan-who { color: var(--muted); font-size: 14.5px; }
.plan-card ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14.5px; }
.plan-sum { font-weight: 700; color: var(--navy); margin: 16px 0 12px; min-height: 22px; }

/* the console: QuickData's consulting and training, at the foot of Home */
.card.consult { margin-top: 18px; border-style: dashed; background: var(--tint); }
.card.consult h3 { margin: 0 0 4px; }
.consult-points { margin: 10px 0 14px; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.plan-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 12px 14px; margin-top: 10px; cursor: pointer; font-weight: 400; }
.plan-opt input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.plan-opt:has(input:checked) { border-color: var(--green-deep); background: var(--green-wash); }
/* Developers (2026-10-05): the cards in the order that fits how the company uses the API; a client's keys under the client */
.dev-body { display: grid; gap: 18px; }
.dev-body > .card { margin: 0; min-width: 0; }
.con h4 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.sub-head { margin-top: 26px; align-items: flex-start; }
.con table.t tr.sub td { background: var(--tint); white-space: normal; padding: 16px 18px 18px; }
.con table.t tr.sub:hover td { background: var(--tint); }
.con table.t tr.sub table.t td { background: transparent; white-space: nowrap; padding: 10px 8px; }
.con table.t tr.open > td { border-bottom-color: transparent; }
.keys-toggle { white-space: nowrap; }
.keys-toggle .caret { display: inline-block; margin-left: 5px; font-size: 11px; }
.name-open { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.name-open:hover, .name-open:focus-visible { text-decoration: underline; }
.sub-in { position: sticky; left: 18px; max-width: calc(100vw - 110px); }
.client-more { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.con table.t td.client { white-space: normal; min-width: 220px; }
.start-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 14px 0 26px; }
.start-paths .card { margin: 0; }
.start-paths ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
@media (max-width: 820px) { .start-paths { grid-template-columns: 1fr; } }

/* ---------------- the website's header and footer, on a visitor's pages of the service (sign-in, the plans, the API guide)
   The rules between "begin" and "end" are web.css's own, copied (tests/test_site.py keeps them equal). Before them:
   what this stylesheet sets for every page and the website does not. */
.site-head, .site-foot { line-height: 1.5; }
.site-head a, .site-foot a { color: inherit; }
.site-foot p { margin: 0; }
.site-foot .foot-cta { justify-content: space-between; gap: 16px; background: var(--green); color: var(--green-ink); }
.site-foot .foot-cta:hover { background: var(--green-bright); }
.site-foot .foot-cta svg { width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease); }
.site-foot .foot-cta:hover svg { transform: translateX(5px); }
/* web.css: begin */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px var(--pad); background: var(--plate); color: var(--ink); }
.site-head img { height: 26px; width: auto; display: block; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-weight: 500; font-size: 16px; }
.site-head nav a { padding: 6px 0; text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-head nav a[aria-current] { font-weight: 700; box-shadow: 0 2px 0 var(--green); }
.site-foot { background: #0a1230; color: var(--soft); font-size: 15px; border-top: 2px solid var(--groove); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 40px clamp(32px, 6vw, 112px); padding: clamp(48px, 6vw, 80px) var(--pad); }
.foot-brand img { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); }
.foot-brand p { margin-top: 18px; max-width: 34ch; line-height: 1.5; }
.foot-cta { margin-top: 22px; min-height: 54px; font-size: 17px; padding: 0 20px; }
.site-foot a.foot-cta:hover { color: var(--green-ink); text-decoration: none; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 48px); }
.foot-title { font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; }
.foot-brand a { text-decoration: underline; }
.foot-cols ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-foot a { text-decoration: none; cursor: pointer; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 22px var(--pad); border-top: 1px solid var(--groove); font-size: 14px; }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-head nav { gap: 4px 20px; font-size: 15px; }
  .foot-top { gap: 28px; padding-top: 40px; padding-bottom: 36px; }
  .foot-cols { gap: 24px; }
  .foot-cols ul { margin-top: 12px; gap: 8px; }
}
/* web.css: end */
