/* AFC Workstation. One neutral look, a light and a dark set (tokens.css). Hairline rows, one solid blue button per page at most,
 * everything else quiet. The type is the computer's own (tokens.css --font): the app must open in mainland China with no outside
 * requests. (The Geist file in fonts/ is no longer loaded, 2026-12-04.) The glass look sits on top of this file, in glass.css. */

/* Words written twice in the HTML itself (the login page, the first "loading" line): show the one that matches <html lang>. */
html:lang(en) .zh { display: none; }
html:not(:lang(en)) .en { display: none; }

/* ---------- frame: a rail on a computer, a top bar on a phone ---------- */
.brand { display: flex; align-items: center; gap: var(--s-2); min-height: 20px; font-size: var(--t-md); font-weight: 600; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column; padding: var(--s-5); background: var(--bg); border-right: 1px solid var(--line); z-index: 30; overflow-y: auto; }
.nav { display: grid; gap: 0; margin: var(--s-6) calc(var(--s-3) * -1) 0; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-md); color: var(--grey); font-size: var(--t-nav); text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 500; }
@media (hover: hover) { .nav a:hover { color: var(--ink); text-decoration: none; } }
.bot { margin-top: auto; padding-top: var(--s-5); display: grid; gap: var(--s-1); }
.seg { display: flex; align-items: center; gap: var(--s-1); margin-left: -0.25rem; font-size: var(--t-sm); color: var(--grey); }
.seg button { min-height: 32px; padding: 0 var(--s-1); border: 0; background: transparent; color: var(--grey); cursor: pointer; border-radius: var(--r-sm); }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
@media (hover: hover) { .seg button:hover { color: var(--ink); } }
.who { display: grid; gap: var(--s-1); font-size: var(--t-sm); margin-top: var(--s-2); }
.who a, .who button { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: var(--t-sm); text-align: left; cursor: pointer; text-decoration: none; }
.who a[aria-current="page"] { font-weight: 500; }
.who .me { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.who .role { color: var(--grey); }
@media (hover: hover) { .who a:hover, .who button:hover { text-decoration: underline; } }
.topbar { display: none; position: fixed; inset: 0 0 auto 0; height: 56px; align-items: center; justify-content: space-between; padding: 0 var(--s-4); background: var(--bg); border-bottom: 1px solid var(--line); z-index: 40; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); cursor: pointer; }
@media (hover: hover) { .menu-btn:hover { background: var(--soft); } }

.page { margin-left: var(--rail); padding: 3.5rem 2.5rem 6rem; max-width: 1760px; display: grid; gap: var(--s-5); align-content: start; }
.page > * { min-width: 0; }
@media (max-width: 1199.98px) { .page { padding-inline: 1.5rem; } }
.page p { max-width: 72ch; }
.narrow { max-width: 48rem; margin-inline: auto; width: 100%; display: grid; gap: var(--s-5); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) 3.5rem; align-items: start; }
@media (min-width: 1100px) { .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899.98px) {
  .topbar { display: flex; }
  .rail { display: none; inset: 56px 0 0 0; width: auto; border-right: 0; padding: var(--s-4); }
  .rail > .brand { display: none; }
  .nav { margin-top: 0; }
  .nav a { min-height: 48px; }
  .seg button, .who a, .who button { min-height: 44px; }
  body.menu-open .rail { display: flex; }
  body.menu-open { overflow: hidden; }
  .page { margin-left: 0; padding: calc(56px + var(--s-5)) var(--s-4) var(--s-7); }
}

/* ---------- headings and small text ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.head > div { display: grid; gap: var(--s-2); }
.big { font-size: var(--t-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.sub { color: var(--grey); font-size: var(--t-md); max-width: 52ch; }
.small { font-size: var(--t-sm); color: var(--grey); }
.label { font-size: var(--t-sm); font-weight: 500; color: var(--grey); line-height: 1.4; }
.back { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; color: var(--grey); font-size: var(--t-sm); }
.back:hover { color: var(--ink); }
.calm { color: var(--ink); }
.err { color: var(--stop); }
.stack { display: grid; gap: var(--s-3); }
.grow { flex: 1 1 12rem; min-width: 0; }
.mono { font-variant-numeric: tabular-nums; }
.sheet { display: grid; gap: var(--s-3); min-width: 0; }
.pad { display: grid; gap: var(--s-3); padding: var(--s-4) 0; }
.sheet > h2.pad { padding-bottom: 0; }
.sub-h { font-size: var(--t-md); font-weight: 500; }
blockquote { overflow-wrap: anywhere; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: 0 1.125rem; border: 1px solid var(--inb); border-radius: var(--r-md); background: var(--bg); color: var(--ink); font-weight: 500; line-height: 1.2; text-align: center; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.btn:active { opacity: 0.8; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn-primary { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.btn-quiet { min-height: 44px; padding: 0 var(--s-2); border-color: transparent; background: transparent; color: var(--blue); }
.btn-sm { min-height: 36px; padding: 0 var(--s-3); font-size: var(--t-sm); }
.btn-wide { min-width: 9rem; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: var(--soft); text-decoration: none; }
  .btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--btn) 88%, var(--ink)); }
  .btn-quiet:hover:not(:disabled) { background: transparent; text-decoration: underline; }
}
.row-btns { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }

.field, input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 44px; padding: 0 0.875rem; border: 1px solid var(--inb); border-radius: var(--r-md); background: var(--bg); color: var(--ink); font-size: var(--t-md); line-height: 1.4;
  transition: border-color var(--dur) var(--ease);
}
textarea { padding: var(--s-3) 0.875rem; min-height: 6rem; resize: vertical; line-height: 1.55; }
select { width: auto; max-width: 100%; cursor: pointer; padding-right: var(--s-3); }
::placeholder { color: var(--grey); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
input:disabled, textarea:disabled, select:disabled { opacity: 0.5; cursor: not-allowed; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--stop-dot); }
@media (hover: hover) { input:not(:disabled):not(:focus):hover, select:not(:disabled):hover, textarea:not(:disabled):not(:focus):hover { border-color: var(--grey); } }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--btn); flex: none; }
.check-row { display: flex; gap: var(--s-3); align-items: center; min-height: 44px; cursor: pointer; }
label.lab { display: grid; gap: var(--s-2); font-weight: 500; }
.help { min-height: 1lh; font-size: var(--t-sm); color: var(--grey); }
.help.err { color: var(--stop); }
.file-pick { position: relative; overflow: hidden; }
.file-pick input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-pick:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- state marks: always a shape and words ---------- */
.mk { display: inline-block; vertical-align: middle; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); white-space: nowrap; }
.s-stop { color: var(--stop); } .s-watch, .s-ask { color: var(--watch); } .s-fine { color: var(--fine); } .s-none { color: var(--grey); }
.tint-stop { background: color-mix(in srgb, var(--stop-dot) 12%, transparent); } .tint-watch { background: color-mix(in srgb, var(--watch-dot) 14%, transparent); }
.tint-fine { background: color-mix(in srgb, var(--fine-dot) 12%, transparent); } .tint-none { background: var(--soft); }

/* ---------- hairline rows ---------- */
.list { display: grid; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: center; padding: var(--s-3) 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.name { font-weight: 500; overflow-wrap: anywhere; }
.says { grid-column: 1; color: var(--grey); font-size: var(--t-sm); overflow-wrap: anywhere; }
.line > .state, .line > .btn, .line > .row-btns, .line > select { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.line .row-btns { justify-content: end; }
a.line:hover { text-decoration: none; }
@media (hover: hover) { a.line:hover .name { text-decoration: underline; } }
/* a bigger row: a mark, two lines, a state on the right, a chevron (Dashboard) */
.row { display: flex; align-items: center; gap: var(--s-4); min-height: 72px; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rows { border-top: 1px solid var(--line); }
.row:hover { text-decoration: none; }
.row .bigm { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex: none; }
.row .l { flex: 1; min-width: 0; }
.row .t, .row .s, .row .d { display: block; }
.row .t { font-size: var(--t-lg); font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.row .s { font-size: var(--t-sm); color: var(--grey); line-height: 1.4; overflow-wrap: anywhere; }
.row .r { text-align: right; flex: none; max-width: 40%; }
.row .r .st { font-size: var(--t-nav); line-height: 1.5; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.row .r .d { font-size: var(--t-sm); color: var(--grey); line-height: 1.4; }
.row .go { color: var(--grey); margin-right: -4px; flex: none; }
@media (hover: hover) { a.row:hover { background: var(--soft); box-shadow: -12px 0 0 var(--soft), 12px 0 0 var(--soft); } }

details > summary { list-style: none; display: flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; color: var(--grey); font-weight: 500; font-size: var(--t-sm); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--dur) var(--ease); margin: 0 2px 0 3px; }
details[open] > summary::before { transform: rotate(45deg); }
@media (hover: hover) { details > summary:hover { color: var(--ink); } }
details > .pad { padding-top: var(--s-2); }
.sheet > details { border-top: 1px solid var(--line); }
.more-part { display: grid; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.more-part:first-of-type { border-top: 0; }
.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
ol.steps { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }

/* the 1, 2, 3 of a job */
.trail { display: flex; gap: var(--s-1) var(--s-4); margin: 0; padding: 0; list-style: none; flex-wrap: wrap; font-size: var(--t-sm); color: var(--grey); counter-reset: step; }
.trail li { counter-increment: step; display: flex; align-items: center; gap: var(--s-4); }
.trail li + li::before { content: ""; width: 28px; height: 1px; background: var(--inb); }
.trail a { display: inline-flex; gap: var(--s-1); align-items: center; min-height: 44px; color: inherit; }
.trail a::before { content: counter(step); }
.trail li[aria-current="step"] a { color: var(--ink); font-weight: 500; }
@media (hover: hover) { .trail a:hover { color: var(--ink); text-decoration: none; } }
.steps-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }

/* a soft block: one question, one answer */
.card-q { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-5); background: var(--soft); border-radius: var(--r-lg); }
.card-q h2 { overflow-wrap: anywhere; }
.card-q blockquote, .proof blockquote { font-size: var(--t-lg); line-height: 1.5; }
.pick { display: grid; gap: var(--s-3); }
.pick > .btn { justify-content: space-between; text-align: left; min-height: 56px; padding-block: var(--s-2); flex-wrap: wrap; gap: var(--s-1) var(--s-4); white-space: normal; background: var(--bg); }
@media (hover: hover) { .pick > .btn:hover:not(:disabled) { border-color: var(--grey); background: var(--bg); } }
.pick > .btn .opt-sub { color: var(--grey); font-weight: 400; font-size: var(--t-sm); }
.counter { font-size: var(--t-sm); color: var(--grey); }
.pressed { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; color: var(--fine); font-size: var(--t-sm); font-weight: 500; }
.drop { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-6) var(--s-5); border: 1px dashed var(--inb); border-radius: var(--r-lg); text-align: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.drop.over { background: var(--soft); border-color: var(--blue); }
.proof { display: grid; gap: var(--s-2); }
.proof .what { font-weight: 500; }

/* an email: the buyer's language beside the Chinese, edited in place */
.mail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.mail > div { display: grid; gap: var(--s-2); align-content: start; }
.edit { resize: none; border-color: transparent; background: var(--bg); padding: var(--s-3); min-height: 0; overflow: hidden; }
.card-q .edit { background: var(--bg); border-color: var(--line); }
.edit.subject { font-weight: 500; font-size: var(--t-lg); }
.edit.zh-copy { color: var(--grey); font-size: var(--t-sm); }
.edit[readonly] { cursor: default; background: transparent; border-color: transparent; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-1); font-size: var(--t-sm); }
.checks .bad { color: var(--stop); } .checks .warn { color: var(--watch); } .checks .fine { color: var(--grey); }

/* tables, only behind "see everything" */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
th { text-align: left; font-weight: 500; color: var(--grey); white-space: nowrap; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
td { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
tr:first-child td { border-top: 0; }
tr.open-row { cursor: pointer; }
@media (hover: hover) { tr.open-row:hover td { background: var(--soft); } }
td .row-btns { flex-wrap: nowrap; justify-content: end; }
/* "Wrong name or country?" on a buyer: a short form at the left of the wide row, its Save button under the boxes. */
.fix > form { max-width: 26rem; padding-bottom: var(--s-3); }
.fix .row-btns { justify-content: start; }
td > .name { min-width: 10rem; }
td:last-child { width: 1%; white-space: nowrap; padding-right: 0; }
.detail-row td { background: var(--soft); padding: var(--s-4); }
.pager { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; padding: var(--s-4) 0; flex-wrap: wrap; }
.tools { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; padding: var(--s-2) 0 var(--s-4); }
.tools .grow { min-width: 14rem; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips button { min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--inb); border-radius: 999px; background: var(--bg); color: var(--grey); font-size: var(--t-sm); cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.chips button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 500; background: var(--soft); }
@media (hover: hover) { .chips button:hover { border-color: var(--grey); color: var(--ink); } }

/* loading */
.skel { height: 56px; border-radius: var(--r-md); background: var(--soft); animation: breathe 1.1s ease-in-out infinite alternate; }
.skel.h1 { height: 40px; max-width: 18rem; }
.skel.short { height: 20px; max-width: 28rem; }
@keyframes breathe { from { opacity: 0.5; } to { opacity: 1; } }
.prog { position: relative; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.prog::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 2px; background: var(--blue); animation: slide 1.4s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.toast { position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%); z-index: 500; max-width: calc(100% - 2 * var(--s-4)); background: var(--ink); color: var(--bg); padding: var(--s-3) var(--s-5); border-radius: var(--r-md); font-weight: 500; font-size: var(--t-sm); }

/* ---------- Dashboard ---------- */
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) 3.5rem; align-items: start; }
.dgrid > * { min-width: 0; }
.dhead { display: grid; gap: var(--s-2); }
.dhead .stat { color: var(--grey); font-size: var(--t-md); }
.strip { display: flex; gap: 4px; margin-top: var(--s-4); }
.strip a { display: block; flex: 1 1 0; min-width: 4px; height: 10px; border-radius: 3px; transition: transform var(--dur) var(--ease); }
@media (hover: hover) { .strip a:hover { transform: scaleY(1.7); } }
.strip a:focus-visible { outline-offset: 3px; }
.sum { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); margin-top: var(--s-3); font-size: var(--t-sm); color: var(--grey); }
.sum span { display: inline-flex; align-items: center; gap: 6px; }
.sum b { font-weight: 500; color: var(--ink); }
.dsec { display: grid; gap: var(--s-2); }
.dsec .label { margin-bottom: 2px; }
.side { display: grid; gap: var(--s-3); align-content: start; }
.dwait .row { min-height: 60px; }
.dwait .row .t { font-size: var(--t-md); }
.bars { display: grid; gap: var(--s-4); margin-top: var(--s-1); }
.bl { display: flex; align-items: center; gap: var(--s-3); min-height: 24px; }
.bl .k { width: 3.5rem; font-size: var(--t-nav); color: var(--grey); }
.bl .tk { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bl .tk i { display: block; height: 8px; border-radius: 4px; background: var(--blue); }
.bl .v { min-width: 2.5rem; text-align: right; font-size: var(--t-lg); }
.more-link { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; color: var(--blue); font-size: var(--t-md); }
.notes { display: grid; gap: var(--s-1); }
.note { font-size: var(--t-sm); color: var(--grey); }
.dright { display: contents; }
.side { order: 8; }
.dnotes { order: 9; }
@media (min-width: 1100px) {
  .dgrid { grid-template-columns: minmax(0, 1fr) 400px; }
  .dhead { grid-column: 1 / -1; }
  .dclients { grid-column: 1; }
  .dright { display: grid; grid-column: 2; gap: var(--s-6); align-content: start; }
  .side, .dnotes { order: 0; }
  .dnotes { grid-column: 1 / -1; }
}

/* ---------- Client Risk Monitor ---------- */
.fld { display: grid; gap: var(--s-2); min-width: 0; }
.fld .help { min-height: 0; }
/* What will be saved for a new client, and a website a public page named for a client that has none. */
.idcard { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-1) var(--s-4); font-size: var(--t-sm); }
.idcard dt { color: var(--grey); }
.idcard dd { margin: 0; overflow-wrap: anywhere; }
.hint { display: grid; gap: var(--s-2); justify-items: start; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.hint p { overflow-wrap: anywhere; }
/* The clients as boxes: each one filled with the colour of its state, so the board reads at a glance. */
.chdr { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.chdr > div { display: grid; gap: var(--s-1); }
.addslot { display: grid; gap: var(--s-3); max-width: 32rem; justify-items: start; }
.addslot > .card-q { width: 100%; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: var(--s-4); }
.tile { display: grid; align-content: start; gap: var(--s-1); min-height: 10.5rem; padding: var(--s-4) var(--s-4) var(--s-3); border-radius: var(--r-lg); border: 1px solid transparent; color: var(--ink); text-decoration: none; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tile:hover { text-decoration: none; }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); } }
.tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tile .st { display: flex; align-items: center; gap: 6px; font-size: var(--t-sm); font-weight: 500; margin-bottom: var(--s-2); }
.tile .n { font-size: var(--t-lg); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.tile .c { font-size: var(--t-sm); color: var(--grey); }
.tile .y { font-size: var(--t-sm); line-height: 1.45; margin-top: var(--s-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tile .d { font-size: var(--t-xs); color: var(--grey); margin-top: auto; padding-top: var(--s-2); }
.t-stop { background: color-mix(in srgb, var(--stop-dot) 20%, var(--bg)); border-color: color-mix(in srgb, var(--stop-dot) 45%, transparent); }
.t-watch { background: color-mix(in srgb, var(--watch-dot) 24%, var(--bg)); border-color: color-mix(in srgb, var(--watch-dot) 50%, transparent); }
.t-fine { background: color-mix(in srgb, var(--fine-dot) 16%, var(--bg)); border-color: color-mix(in srgb, var(--fine-dot) 38%, transparent); }
.t-none { background: var(--soft); border-color: var(--line); }
.t-stop .st, .banner.t-stop .w { color: var(--stop); } .t-watch .st, .banner.t-watch .w { color: var(--watch); } .t-fine .st, .banner.t-fine .w { color: var(--fine); } .t-none .st { color: var(--grey); }
.cextra { display: grid; gap: 0; max-width: 48rem; }
/* One client: a single column to read from top to bottom, like a written answer. */
.cpane { display: grid; gap: var(--s-5); align-content: start; max-width: 46rem; width: 100%; margin-inline: auto; animation: open var(--dur) var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cpane > * { min-width: 0; }
.creport { display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.chead { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.chead > div { display: grid; gap: 6px; min-width: 0; }
.chead h1 { overflow-wrap: anywhere; }
.banner { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); border: 1px solid transparent; }
.banner .c44 { display: flex; align-items: center; justify-content: center; flex: none; }
.banner .w { font-size: var(--t-state); font-weight: 500; line-height: 1.4; }
.banner .x { font-size: var(--t-md); line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.ask { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: var(--soft); border-radius: var(--r-lg); }
.ask blockquote { font-size: var(--t-lg); line-height: 1.5; }
.why { display: grid; gap: var(--s-2); }
/* The summary: a few sentences, each followed by the number of its source. */
.rsum { display: grid; gap: var(--s-3); }
.rsum .lead { font-size: var(--t-lg); line-height: 1.7; max-width: none; overflow-wrap: anywhere; }
.rsum .lead2 { color: var(--grey); line-height: 1.6; max-width: none; }
.ref { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 5px; margin: 0 2px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--blue); font-size: 0.75rem; font-weight: 500; line-height: 1; vertical-align: 0.15em; text-decoration: none; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .ref:hover { border-color: var(--blue); text-decoration: none; } }
.srcs { display: grid; gap: var(--s-2); }
.srcs ol { list-style: none; margin: 0; padding: 0; }
.srcs li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.srcs li > div { display: grid; gap: var(--s-1); min-width: 0; }
.srcs .sn { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 500; color: var(--grey); font-variant-numeric: tabular-nums; }
.srcs .lk { overflow-wrap: anywhere; text-align: left; }
.srcs .q { color: var(--grey); font-size: var(--t-sm); line-height: 1.5; overflow-wrap: anywhere; }
.srcs > .small { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.finds { list-style: none; margin: 0; padding: 0; }
.find { display: grid; gap: var(--s-2); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.find .sum { display: flex; align-items: flex-start; gap: var(--s-2); color: var(--ink); font-size: var(--t-lg); line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.find .sum .mk { flex: none; margin-top: 3px; }
.find .sum > span:last-child { flex: 1; min-width: 0; }
.find .q { color: var(--grey); line-height: 1.5; overflow-wrap: anywhere; max-width: 70ch; }
.find .g { font-size: var(--t-sm); color: var(--grey); overflow-wrap: anywhere; max-width: 70ch; }
.find .acts { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); flex-wrap: wrap; min-height: 2rem; }
.find .acts .src { display: inline-flex; align-items: center; gap: var(--s-1) var(--s-3); flex-wrap: wrap; font-size: var(--t-sm); color: var(--grey); overflow-wrap: anywhere; }
.find .acts .btn-quiet { color: var(--grey); }
.lk { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--blue); width: fit-content; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 500; line-height: 1rem; border: 1px solid var(--tagb); border-radius: var(--r-sm); padding: 2px 6px; color: var(--grey); white-space: nowrap; }
.tag.on { color: var(--ink); border-color: var(--tagon); }
.todo-h { display: grid; gap: var(--s-2); }
.cmore { border-top: 1px solid var(--line); margin-top: var(--s-2); }
.cmore > details > .more-body { padding-bottom: var(--s-4); }
@media (max-width: 40rem) {
  .chead { flex-wrap: wrap; }
  .ask { padding: var(--s-4); }
  .banner { padding: var(--s-4); }
  .banner .w { font-size: var(--t-lg); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; }
}

/* the two lanes: which way in finds better buyers */
.lanes { display: grid; gap: 0; }
.lane { display: grid; grid-template-columns: minmax(7rem, 1.15fr) repeat(5, minmax(0, 1fr)); gap: var(--s-1) var(--s-4); align-items: start; padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.lane.hd { padding: var(--s-2) 0; border-top: 0; color: var(--grey); font-size: var(--t-sm); }
.lane .nm { display: grid; gap: 2px; }
.lane .nm b { font-weight: 500; font-size: var(--t-lg); }
.lane .cell { display: grid; gap: 6px; }
.lane .cell .v { font-size: var(--t-lg); line-height: 1.2; }
.lane .cell .bar { display: block; height: 3px; border-radius: 2px; background: var(--ink); }
.lane.two .cell .bar { background: var(--blue); }
.lane .cell .k { font-size: var(--t-sm); color: var(--grey); }
@media (min-width: 40.01rem) { .lane .cell .k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
@media (max-width: 40rem) {
  .lane { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lane .nm { grid-column: 1 / -1; }
  .lane.hd { display: none; }
}

/* a table on a phone: each row becomes a labelled block */
@media (max-width: 40rem) {
  .mail { grid-template-columns: minmax(0, 1fr); }
  .card-q { padding: var(--s-4); }
  .page.dash .sum { gap: var(--s-1) var(--s-4); }
  h1 { font-size: 1.75rem; }
  table.stackable thead { display: none; }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable tr { padding: var(--s-3) 0; border-top: 1px solid var(--line); }
  table.stackable td { border: 0; padding: var(--s-1) 0; }
  table.stackable td[data-label]::before { content: attr(data-label); display: block; color: var(--grey); font-size: var(--t-xs); }
  td .row-btns { justify-content: start; flex-wrap: wrap; }
  .line > .row-btns, .line > .btn, .line > select { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .row .r { max-width: 45%; }
}

/* ---------- sign in ---------- */
.login { max-width: 26rem; margin-inline: auto; padding: var(--s-6) var(--s-4); min-height: 100vh; align-content: center; display: grid; gap: var(--s-5); }
.login .brand { justify-self: start; }
.login-sw { display: flex; gap: var(--s-5); flex-wrap: wrap; padding-top: var(--s-2); }

/* ---------- phones: long names get the whole line, the state sits under them ---------- */
@media (max-width: 600px) {
  .row { flex-wrap: wrap; row-gap: 2px; }
  .row .l { flex: 1 1 0; min-width: 40%; }
  .row .r { order: 3; flex-basis: 100%; max-width: none; text-align: left; display: flex; align-items: center; gap: var(--s-3); }
  .row .bigm ~ .r { margin-left: 52px; }
  .row .r .st { justify-content: flex-start; }
}

/* ---------- Client Outreach, payments, checks, settings: use the width ---------- */
.ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) 3.5rem; align-items: stretch; }
.ways > * { min-width: 0; align-content: start; }
.ways > .stack { display: flex; flex-direction: column; gap: var(--s-5); }
.ways > .stack:first-child > .card-q:last-child { flex: 1; }
@media (min-width: 1100px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ways > .card-q, .ways > .stack > .card-q:only-child { height: 100%; align-content: start; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) 2.5rem; align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 22rem minmax(0, 1fr); } .split > .queue { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; } }
.split.solo { grid-template-columns: minmax(0, 1fr); max-width: 48rem; margin-inline: auto; width: 100%; }
.queue { display: grid; gap: var(--s-3); align-content: start; }
.qlist { display: grid; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-2) 12px; margin: 0 -12px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; position: relative; font-size: var(--t-md); }
.qrow::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--line); }
.qrow:first-child::before { display: none; }
.qrow[aria-current="true"] { background: var(--soft); font-weight: 500; }
.qrow[aria-current="true"]::before, .qrow[aria-current="true"] + .qrow::before { display: none; }
.qrow .n { overflow-wrap: anywhere; min-width: 0; }
.qrow .c { color: var(--grey); font-size: var(--t-sm); flex: none; max-width: 45%; text-align: right; }
@media (hover: hover) { .qrow:not([aria-current="true"]):hover { background: color-mix(in srgb, var(--soft) 60%, transparent); text-decoration: none; } }
.evgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
@media (min-width: 1280px) { .evgrid { grid-template-columns: minmax(0, 1fr) 26rem; } }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: var(--s-5) 3.5rem; align-items: start; }
.checkgrid > .sheet { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.settings { columns: 2 28rem; column-gap: 3.5rem; }
.settings > .sheet { break-inside: avoid; margin-bottom: var(--s-5); display: grid; }
.login-note { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-family: var(--mono, ui-monospace, monospace); background: var(--bg); padding: var(--s-3); border-radius: var(--r-md, 8px); margin: 0; user-select: all; }
@media (min-width: 900px) { .login { min-height: 100vh; align-content: center; padding-block: var(--s-6); } }
.queue .line { grid-template-columns: minmax(0, 1fr); }
.queue .line > .row-btns, .queue .line > .btn, .queue .line > .state { grid-column: 1; grid-row: auto; justify-self: start; }
.queue .pad { padding-block: var(--s-2); }

/* How the app knows which company it is: one small line under the write-up. */
.sure { display: flex; gap: .4rem; align-items: flex-start; margin-top: .6rem; }
.sure .mk { flex: none; margin-top: .15rem; }

/* A client the app knows by name only: one small line on its box. */
.tile .miss { font-size: var(--t-sm); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* The board: companies that are not clients yet sit in their own group under the clients. */
.notyet { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.notyet h2 { font-size: var(--t-lg); }

/* ---- the three simple places (2026-11-30): a headline, a short list, the rest folded away ---- */
.slist { list-style: none; margin: 0; padding: 0; display: grid; border-bottom: 1px solid var(--line); max-width: 52rem; }
.srow { display: grid; gap: var(--s-2); padding: var(--s-4) 0; border-top: 1px solid var(--line); min-width: 0; }
.srow-main { display: grid; gap: var(--s-1); color: inherit; text-decoration: none; min-width: 0; }
.srow-main:hover .n > :first-child { text-decoration: underline; }
.srow .n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-3); font-size: var(--t-lg); font-weight: 500; }
.srow .n .c, .srow .n .small { font-size: var(--t-sm); font-weight: 400; color: var(--grey); }
.srow .y { color: var(--ink); }
.srow .why { color: var(--grey); font-size: var(--t-sm); }
.srow > .row-btns { margin-top: var(--s-1); }
.srow details > summary { color: var(--blue); cursor: pointer; width: fit-content; font-size: var(--t-sm); }
.srow .letter { display: grid; gap: var(--s-2); margin-top: var(--s-2); padding: var(--s-3) var(--s-4); background: var(--soft); border-radius: var(--r-md); white-space: pre-wrap; overflow-wrap: anywhere; }
.srow .letter b { font-weight: 500; }
.names { list-style: none; margin: 0; padding: 0; columns: 3 15rem; column-gap: var(--s-5); }
.names li { break-inside: avoid; padding: 2px 0; }
.quiet-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-sm); }
.quiet-links a { color: var(--blue); }
.slist .res { justify-self: start; font-size: var(--t-sm); color: var(--grey); }
.slist .res.is-all { color: var(--fine); }
.slist .res.is-none, .slist .res.is-no_recipe { color: var(--stop); }
.backline { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--blue); width: fit-content; }
/* An email that waits for a yes: who and why on the left, Yes / No on the right, the email itself folded under them. */
.mailrow { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: start; }
.mailrow > .n, .mailrow > .why { grid-column: 1; }
.mailrow > .row-btns { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: center; flex-wrap: nowrap; }
.mailrow > details { grid-column: 1 / -1; }
@media (max-width: 640px) { .mailrow { grid-template-columns: minmax(0, 1fr); } .mailrow > .row-btns { grid-column: 1; grid-row: auto; } }
