/* Jurassic Marketing palette (CLAUDE.md "Branding"): #2B1C14 dark brown (text/headers),
   #4F392C brown, #475B2A dark green (primary actions), #899D40 light green (accents/success).
   Everything below is one of those four or a tint of one -- no invented brand colors.
   --danger/--warn/--focus stay standard semantic colors (error/warning/focus-ring are safety
   signals, not brand elements). */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #efe9e1;
  --text: #2b1c14;
  --muted: #6b5a4d;
  --line: #ded2c4;
  --brand: #475b2a;
  --brand-hover: #384717;
  --on-brand: #ffffff;
  --link: #475b2a;
  --danger: #9e2a2a;
  --danger-bg: #fbeaea;
  --warn-bg: #fff3d6;
  --warn-text: #6b4a00;
  --ok-bg: #e9edd9;
  --ok-text: #3c4e22;
  --focus: #2b7de0;
  --shadow: 0 1px 2px rgba(43, 28, 20, .08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1712;
    --surface: #28201a;
    --surface-2: #342a22;
    --text: #f1ece4;
    --muted: #b9a99a;
    --line: #453626;
    --brand: #899d40;
    --brand-hover: #a3ba54;
    --on-brand: #1a2208;
    --link: #a9c15c;
    --danger: #ff8f8f;
    --danger-bg: #3a1e1e;
    --warn-bg: #3a2f12;
    --warn-text: #f1cf7a;
    --ok-bg: #2c3a16;
    --ok-text: #c3d98f;
    --focus: #6aa8f5;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
h1 { font-size: 1.5rem; margin: 0; line-height: 1.2; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
h3 { font-size: .9rem; margin: 1rem 0 .4rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: .9rem .6rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: .4rem .7rem; z-index: 10; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li + li { margin-top: .2rem; }

/* shell */
.topbar {
  display: flex; align-items: center; gap: 1.25rem; padding: 0 1rem; min-height: 52px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.brand img, .login-card h1 img { height: 24px; }
.logo-light, .logo-dark { display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.brand .app-name { color: var(--muted); font-weight: 600; }
.env { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .4rem; border-radius: 4px; background: var(--warn-bg); color: var(--warn-text); }
.nav { display: flex; gap: .25rem; flex: 1; }
.nav-link { padding: .4rem .7rem; border-radius: 6px; color: var(--text); text-decoration: none; }
.nav-link:hover { background: var(--surface-2); }
.nav-link[aria-current="page"] { background: var(--surface-2); font-weight: 600; }
.user { position: relative; }
.user summary { cursor: pointer; padding: .4rem .6rem; border-radius: 6px; list-style: none; }
.user summary::-webkit-details-marker { display: none; }
.user summary:hover { background: var(--surface-2); }
.user .menu {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 230px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: .75rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
}
.linklike { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; }
.page { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.subtitle { font-weight: 400; color: var(--muted); font-size: 1.05rem; margin-left: .6rem; }
.narrow { max-width: 460px; }

/* cards + forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; min-width: 0; }
.field > label, .field > .label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.hint { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: .45rem .6rem; min-height: 36px;
}
textarea { resize: vertical; }
input:disabled, select:disabled { background: var(--surface-2); color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
.check { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; }
.check input { margin-top: .25rem; width: 1rem; height: 1rem; }
.release { background: var(--surface-2); border-radius: 8px; padding: .6rem .8rem; margin-bottom: .5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600;
  padding: .5rem .95rem; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  text-decoration: none; cursor: pointer; min-height: 36px;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-small { padding: .25rem .6rem; min-height: 30px; font-size: .88rem; }
.btn-danger { color: var(--danger); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn:disabled { opacity: .6; cursor: progress; }

.notice { padding: .65rem .85rem; border-radius: 8px; margin: .5rem 0 .9rem; }
.notice-error { background: var(--danger-bg); color: var(--danger); }
.notice-warn { background: var(--warn-bg); color: var(--warn-text); }
.notice-ok { background: var(--ok-bg); color: var(--ok-text); }

.tag, .chip, .badge { display: inline-block; font-size: .72rem; padding: .08rem .45rem; border-radius: 999px; margin-left: .4rem; vertical-align: 1px; }
.tag { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.chip { background: var(--surface-2); color: var(--text); margin: 0; font-size: .8rem; padding: .15rem .6rem; }
.chip-stage { background: var(--brand); color: var(--on-brand); }
.badge { background: var(--surface-2); color: var(--text); font-weight: 600; }
.badge.flag-rush { background: #f9d6d6; color: #7a1616; }
.badge.flag-hold, .badge.flag-payment_issue { background: #ffe5b8; color: #6b4200; }
.badge.flag-awaiting_items, .badge.flag-awaiting_approval { background: #dbe8fb; color: #163f7a; }
.badge.early { background: #d8f0e2; color: #14512e; }
@media (prefers-color-scheme: dark) {
  .badge.flag-rush { background: #5a1f1f; color: #ffc9c9; }
  .badge.flag-hold, .badge.flag-payment_issue { background: #5a4213; color: #ffdf9c; }
  .badge.flag-awaiting_items, .badge.flag-awaiting_approval { background: #1f3555; color: #bcd6fb; }
  .badge.early { background: #1a4029; color: #a8e8c3; }
}
.chips { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.chips .badge { margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th, .grid td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.grid th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.grid th.num, .grid td.num { text-align: right; }
.grid tbody tr:hover { background: var(--surface-2); }
.grid tfoot td { font-weight: 600; border-bottom: 0; }
.lines.edit td { padding: .3rem .35rem; }
.lines.edit td:first-child { min-width: 260px; }
.lines.edit td.num input { text-align: right; min-width: 90px; }
.grid.lines.edit tbody tr:hover { background: transparent; }

.toolbar { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; }

/* job entry */
.picked { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.results { list-style: none; margin: .5rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; max-height: 320px; overflow-y: auto; }
.results li + li { border-top: 1px solid var(--line); }
.result { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 0; padding: .55rem .75rem; cursor: pointer; }
.result:hover, .result:focus-visible { background: var(--surface-2); }
.part-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.part-head h2 { margin: 0; }

/* wizard (M2b) */
.card-inset { background: var(--surface-2); border-radius: 8px; padding: .7rem .9rem; margin-bottom: .75rem; }
.addon-list { display: flex; flex-direction: column; gap: .1rem; margin-bottom: .5rem; }
.addon-row { display: flex; align-items: flex-start; gap: .6rem; padding: .3rem 0; }
.addon-row.always { padding-left: 1.6rem; justify-content: space-between; }
.addon-row > span:nth-child(2) { flex: 1; }
.addon-amount { display: flex; align-items: center; gap: .4rem; font-variant-numeric: tabular-nums; }
.addon-amount .notice { margin: 0; padding: .15rem .5rem; font-size: .8rem; }
input.addon-hours { width: 90px; min-height: 30px; padding: .25rem .4rem; }

/* materials & postage (M2c) */
.num-input { width: 68px; }
tr.row-short { background: var(--danger-bg); }
.text-danger { color: var(--danger); }
.drop-row { display: grid; grid-template-columns: 170px 150px 1fr auto; gap: .5rem; margin-bottom: .4rem; align-items: center; }
.add-part { display: flex; align-items: center; gap: .9rem; margin: -.25rem 0 1rem; flex-wrap: wrap; }
.footer {
  position: sticky; bottom: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; box-shadow: 0 -4px 14px rgba(0, 0, 0, .08);
}
.footer .total { font-size: 1.05rem; }
.footer .actions { display: flex; gap: .6rem; }
.footer [aria-live] { flex: 1 1 100%; order: 3; }
.footer .notice { margin: 0; }

/* board (M3) */
.board { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: 1rem; align-items: flex-start; }
.board-col { flex: 0 0 250px; background: var(--surface-2); border-radius: 10px; padding: .6rem; }
.board-col-head { display: flex; justify-content: space-between; align-items: baseline; padding: .1rem .3rem .5rem; }
.board-col-head h3 { margin: 0; font-size: .8rem; }
.board-col-head .count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-col-body { display: flex; flex-direction: column; gap: .5rem; min-height: 40px; }
.board-col-body .empty { text-align: center; padding: 1rem 0; }
.board-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .65rem; box-shadow: var(--shadow); font-size: .85rem; }
.board-card-head { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-bottom: .25rem; }
.board-card-head a { font-weight: 700; }
.board-card-client { font-weight: 600; }
.board-card .chips { margin: .3rem 0; }
.board-card .chip { font-size: .72rem; padding: .05rem .45rem; }
.waiting { margin-top: .35rem; padding-top: .35rem; border-top: 1px dashed var(--line); }
.waiting-row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .78rem; color: var(--warn-text); }
.move-select { display: none; margin-top: .5rem; font-size: .82rem; min-height: 30px; padding: .2rem .4rem; width: 100%; }
.board-card.show-move .move-select { display: block; }
.move-toggle { margin-left: auto; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 6px; font-size: .8rem; line-height: 1; padding: .1rem .35rem; cursor: pointer; }
.move-toggle:hover, .board-card.show-move .move-toggle { color: var(--text); border-color: var(--text); }
.board-card[draggable="true"] { cursor: grab; }
.board-card.dragging { opacity: .45; cursor: grabbing; }
.board-col.drop-ok { outline: 2px dashed #475B2A; outline-offset: -2px; background: color-mix(in srgb, #899D40 14%, var(--surface-2)); }
.board-col.drop-no { opacity: .55; }
@media (max-width: 760px) { .board-col { flex-basis: 220px; } }

/* job view */
.kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem 1.25rem; margin: 0; }
.kv dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kv dd { margin: 0; }
.note + .note { margin-top: .75rem; }
.dl-row { margin: .75rem 0; }
.part-actions { margin-top: .75rem; }
.part-actions select { width: auto; min-width: 200px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.login-card h1 img { height: 34px; }

@media (max-width: 760px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .drop-row { grid-template-columns: 1fr 1fr; }
  .drop-row input[type=text] { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topbar { gap: .5rem; flex-wrap: wrap; padding: .4rem .75rem; }
}
@media print { .topbar, .footer, .btn { display: none; } }
.print-only { display: none; }

/* inventory (M7) */
.page-head .nav { margin-top: .3rem; gap: .1rem; }
.page-head .nav .nav-link { padding: .2rem .55rem; font-size: .85rem; }

/* job ticket (M6) */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; color: #111; font-size: .85rem; }
.ticket h3 { margin: 1rem 0 .3rem; font-size: .75rem; }
.ticket h4 { margin: 0 0 .3rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ticket-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 2px solid #111; padding-bottom: .5rem; margin-bottom: .5rem; }
.ticket-title h2 { margin: 0; font-size: 1.3rem; }
.ticket-barcode { flex: 0 0 auto; }
.ticket-barcode svg, .material-barcode svg { display: block; }
.ticket-name { text-align: right; font-weight: 700; }
.ticket-block { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .5rem; }
.ticket-band { background: #111; color: #fff; padding: .2rem .5rem; font-weight: 700; text-align: center; margin-bottom: .5rem; }
.ticket-important { border: 1px solid #111; padding: .5rem; }
.ticket-important li { white-space: pre-wrap; }
.tkvs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.5rem; }
.tkvs4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin-top: .5rem; }
.tkv { display: flex; gap: .4rem; border-bottom: 1px dotted var(--line); padding: .1rem 0; }
.tkv-k { color: var(--muted); font-size: .78rem; min-width: 90px; }
.tkv-v { font-weight: 600; }
.ticket-table { margin: .3rem 0; font-size: .82rem; }
.ticket-table.small { font-size: .78rem; max-width: 320px; }
.ticket-qc { margin-top: .4rem; }
.qc-control { display: inline-flex; gap: .4rem; align-items: center; }
.qc-qty { width: 80px; min-height: 28px; padding: .2rem .4rem; }
.material-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding: .5rem 0; }
.material-name { font-weight: 700; }

@media print {
  body { background: #fff; }
  .page { max-width: none; padding: 0; }
  .no-print { display: none !important; }
  .print-only { display: inline; }
  .ticket { border: 0; box-shadow: none; padding: 0; }
  .ticket-block { break-inside: avoid; }
}

/* proofing, staff side (M4) */
.proofs .round { border-top: 1px solid var(--line); padding: .6rem 0; }
.proofs .round:first-of-type { border-top: 0; }
.round-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.chip-draft { background: var(--surface-2); color: var(--muted); }
.chip-sent, .chip-viewed { background: var(--warn-bg); color: var(--warn-text); }
.chip-approved, .chip-ok { background: var(--ok-bg); color: var(--ok-text); }
.chip-changes_requested { background: var(--danger-bg); color: var(--danger); }
.chip-expired { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.decision-line { margin: .4rem 0; }
.proofs .pins ol { margin: .2rem 0 0; padding-left: 1.2rem; }
.proofs .pins li.resolved { color: var(--muted); text-decoration: line-through; }
.proofs .pins li { margin-bottom: .25rem; }
.quote { border-left: 3px solid var(--brand); padding-left: .6rem; margin: .3rem 0; white-space: pre-wrap; }
.send-form { margin-top: .5rem; padding: .6rem; background: var(--surface-2); border-radius: 8px; }
.send-form h4, .pins h4 { margin: 0 0 .4rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.recipients { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .3rem .8rem; margin-bottom: .5rem; }
.send-actions { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; margin-top: .4rem; }
.send-actions .field { margin: 0; }
.file-rows { display: flex; flex-direction: column; gap: .35rem; margin: .4rem 0; }
.file-row { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: center; }
.file-row .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.new-round, .mailing-list, .print-folder { margin-top: .6rem; }
.new-round > summary, .mailing-list > summary, .print-folder > summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.wide { width: 100%; max-width: 640px; }
.row-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* staff feedback tool (CUTOVER B2) */
.feedback-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  background: var(--brand); color: var(--on-brand); border: none; border-radius: 999px;
  padding: .65rem 1.1rem; font-weight: 600; font-size: .9rem; box-shadow: 0 4px 14px rgba(43, 28, 20, .25); cursor: pointer;
}
.feedback-fab:hover { background: var(--brand-hover); }
.feedback-overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(43, 28, 20, .35);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 1.25rem;
}
.feedback-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 1rem; width: 380px; max-width: 100%; max-height: calc(100vh - 2.5rem); overflow-y: auto;
}
.feedback-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.feedback-head h2 { margin: 0; }
.feedback-preview { margin: -.4rem 0 .5rem; }
@media (max-width: 520px) {
  .feedback-overlay { padding: 0; align-items: stretch; }
  .feedback-panel { width: 100%; border-radius: 0; max-height: 100vh; }
}

/* M9: global search (topbar) */
.gsearch { position: relative; width: 260px; max-width: 32vw; }
.gsearch-input { width: 100%; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
.gsearch-panel {
  position: absolute; left: 0; top: calc(100% + 4px); width: max(100%, 320px); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  padding: .4rem 0; max-height: 70vh; overflow-y: auto; z-index: 10;
}
.gsearch-group-label { padding: .3rem .8rem; text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }
.gsearch-row { padding: .3rem .8rem; }
.gsearch-row a { color: var(--text); text-decoration: none; display: block; }
.gsearch-row:hover { background: var(--surface-2); }
.gsearch-empty { padding: .5rem .8rem; }
.gsearch-all { display: block; padding: .5rem .8rem; border-top: 1px solid var(--line); margin-top: .3rem; color: var(--link); text-decoration: none; }
@media (max-width: 720px) { .gsearch { display: none; } }

/* M9: job-page timeline */
.timeline li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }

/* Midnight urgency colors (owner legend, 2026-09-22) as a left border on board cards and job parts */
.board-card, .card.part { border-left: 5px solid transparent; }
.urg-early_release     { border-left-color: #9ACD32 !important; }
.urg-payment_issue     { border-left-color: #FFFF00 !important; }
.urg-need_to_order     { border-left-color: #00FFFF !important; }
.urg-awaiting_approval { border-left-color: #FFFF99 !important; }
.urg-rush              { border-left-color: #FF8C00 !important; }
.urg-awaiting_items    { border-left-color: #FF00FF !important; }
.urg-hold              { border-left-color: #FF0000 !important; }
.urg-canceled          { border-left-color: #333333 !important; }
.urg-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .75rem; color: var(--muted); margin: .25rem 0 .6rem; }
.urg-legend span::before { content: ""; display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .3rem; vertical-align: -2px; background: var(--c); }

/* Full-width board page (owner, 2026-09-23). Page handlers receive a holder <div> that main.js
   attaches under <main class="page"> afterwards, so the board can only mark the holder
   (.board-page) -- the width cap lives on the parent, hence :has(). The page becomes a fixed-height
   flex column: header row on top, the board fills the rest, each column scrolls on its own. */
main.page:has(> .board-page) { max-width: none; padding: .5rem 1rem .75rem; display: flex; flex-direction: column; height: calc(100vh - 52px); box-sizing: border-box; overflow: hidden; }
.board-page { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.board-toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; flex: 0 0 auto; }
.board-toolbar h1 { font-size: 1.05rem; margin: 0 .5rem 0 0; }
.board-toolbar input[type="search"] { width: 200px; }
.board-toolbar .urg-legend { margin: 0 0 0 auto; gap: .3rem .6rem; }
.board-page .board { flex: 1 1 auto; min-height: 0; height: auto; gap: .5rem; padding-bottom: 0; align-items: stretch; overflow-x: auto; }
.board-page .board-col { flex: 1 1 0; min-width: 190px; display: flex; flex-direction: column; min-height: 0; }
.board-page .board-col-body { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding-right: .15rem; }
.board-page .board-card { padding: .45rem .55rem; font-size: .82rem; }
