/* WDT inventory. Tokens from kb/design/web-wdt.md: ink ground, gold for the one number
   that matters, Big Shoulders for words, IBM Plex Mono for every number. Passing checks
   stay grey; only failures carry colour. Hairlines, not boxes; radius 0. */

@font-face { font-family: "Big Shoulders"; src: url(fonts/BigShoulders-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url(fonts/BigShoulders-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/IBMPlexMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/IBMPlexMono-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0B0B0B; --elevated: #161616; --floating: #1F1F1F;
  --text: #F2F2F2; --muted: #B8B5CC; --dim: #6E6C7A;
  --hair: rgba(255, 255, 255, .13); --hair-strong: rgba(255, 255, 255, .28);
  --gold: #F2C014; --gold-soft: #FFD449;
  --bad: #FF3B30; --warn: #FFB800;
  --disp: "Big Shoulders", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); }
body { margin: 0; font-family: var(--disp); font-size: 18px; line-height: 1.35; letter-spacing: .01em; }
a { color: inherit; }
code, .num, .tile-num, .row-rank { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .78em; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; } }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }

/* --- top bar ------------------------------------------------------------------ */
.top { display: flex; align-items: center; gap: 24px; padding: 14px 24px; border-bottom: 1px solid var(--hair);
       max-width: 1240px; margin: 0 auto; }
.top-stale { border-bottom: 2px solid var(--warn); }
.top-stale .fresh strong { color: var(--warn); }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { height: 44px; width: auto; }
.brand-name { font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .06em; }
.fresh { margin: 0 0 0 auto; color: var(--muted); font-size: 16px; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; }
.btn-text { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.btn-text:hover { color: var(--text); }

/* --- stuck web-order banner -------------------------------------------------------- */
.banner { display: flex; gap: 24px; align-items: center; margin: 24px 0 0; padding: 16px 20px;
          border: 1px solid var(--hair-strong); border-left: 3px solid var(--warn); background: var(--elevated); }
.banner p { margin: 0; flex: 1; color: var(--muted); }
.banner strong { color: var(--text); }
.banner a { white-space: nowrap; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* --- tiles ------------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 0; border: 1px solid var(--hair); }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 16px; text-decoration: none;
        border-right: 1px solid var(--hair); position: relative; transition: background .4s var(--ease); }
.tile:last-child { border-right: 0; }
.tile:hover { background: var(--elevated); }
.tile.on { background: var(--floating); }
.tile.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.tile-lbl { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 15px; color: var(--muted); }
.tile-num { font-size: 44px; line-height: 1.05; font-weight: 700; }
.tile-oversell .tile-num { color: var(--bad); }
.tile-sub { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.gold { color: var(--gold); font-weight: 700; }

/* --- tabs + search ------------------------------------------------------------------ */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin: 32px 0 0;
        border-bottom: 1px solid var(--hair); }
.tabs a { text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 16px;
          color: var(--dim); padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--muted); }
.tabs a.on { color: var(--text); border-bottom-color: var(--text); }
.search { display: flex; justify-content: flex-end; margin: 14px 0 0; }
.search input, .count-form input, .login input {
  background: var(--ink); color: var(--text); border: 1px solid var(--hair-strong); border-radius: 0;
  font: 15px var(--mono); padding: 8px 10px; min-width: 240px; }
.search input:focus, .count-form input:focus, .login input:focus { outline: 2px solid var(--gold); outline-offset: -1px; }

/* --- rows ---------------------------------------------------------------------------- */
.list { margin-top: 8px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1.25fr) minmax(0, 1.35fr) 130px; gap: 6px 24px;
       padding: 18px 0; border-bottom: 1px solid var(--hair); align-items: start; scroll-margin-top: 16px; }
.row:target { background: var(--elevated); }
.row-rank { color: var(--dim); font-size: 14px; padding-top: 5px; }
.row-name { margin: 0; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; overflow-wrap: anywhere; }
.row-why { margin: 6px 0 0; color: var(--text); }
.sev-3 .row-why { color: #FF8A82; }
.row-ok { margin: 6px 0 0; color: var(--muted); }
.row-hint { margin: 6px 0 0; color: var(--muted); font-size: 16px; border-left: 2px solid var(--hair-strong); padding-left: 10px; }
.row-risk { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; }
.row-risk .num { font-size: 22px; font-weight: 700; }
.sub { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.sub.due { color: var(--warn); }
.store-only { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.store-only .btn-text { font-size: 15px; }

/* checks: grey when they pass, colour only on failure, icon + word so colour is never alone */
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.chk { display: inline-flex; align-items: center; gap: 4px; font: 12px var(--mono); text-transform: uppercase;
       letter-spacing: .04em; padding: 3px 7px 3px 5px; border: 1px solid var(--hair); color: var(--dim); }
.chk-fail { color: var(--bad); border-color: rgba(255, 59, 48, .55); }
.chk-na { border-style: dashed; }
.ic { width: 13px; height: 13px; }

/* the chain: shelf, CoreStore, website on one rail. A pin sits above each number;
   the rail between two that disagree turns red. Nothing sits beside a digit. */
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.chain-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.node { position: relative; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-top: 16px; }
.node::before { content: ""; position: absolute; top: 0; left: 0; width: 7px; height: 7px; background: var(--muted); }
.node::after { content: ""; position: absolute; top: 3px; left: 7px; right: 0; height: 1px; background: var(--hair-strong); }
.node:last-child::after { display: none; }
.node.out-bad::after { top: 2px; height: 3px; background: var(--bad); }
.node.out-bad::before, .node.out-bad + .node::before { background: var(--bad); }
.node .lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; }
.node .num { font-size: 26px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-squared_away .node .num, .st-squared_away .row-name { color: var(--muted); }

/* details */
.row-more { grid-column: 2 / -1; }
.row-more summary { cursor: pointer; color: var(--dim); font-size: 15px; text-transform: uppercase; letter-spacing: .06em;
                    font-weight: 700; list-style: none; width: max-content; }
.row-more summary::-webkit-details-marker { display: none; }
.row-more summary:hover, .row-more[open] summary { color: var(--text); }
.more-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px 32px; padding: 14px 0 4px; }
.more-grid dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; font-size: 16px; }
.more-grid dt { color: var(--dim); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; font-weight: 700; padding-top: 2px; }
.more-grid dd { margin: 0; color: var(--muted); }
.more-links { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.count-form { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.count-form label, .login label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; text-transform: uppercase;
                                  letter-spacing: .06em; color: var(--dim); font-weight: 700; }
.count-form input { min-width: 320px; }

.btn { font: 700 17px var(--disp); text-transform: uppercase; letter-spacing: .06em; padding: 10px 18px;
       border-radius: 0; cursor: pointer; }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--hair-strong); }
.btn-line:hover { border-color: var(--text); }
.btn-gold { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-soft); }

.empty, .more-note { color: var(--muted); padding: 32px 0; }

/* --- login ---------------------------------------------------------------------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.login-logo { width: 72px; height: auto; }
.login h1 { margin: 0; font-size: 34px; text-transform: uppercase; letter-spacing: .06em; }
.login input { min-width: 0; width: 100%; font-size: 16px; padding: 10px 12px; }
.login-error { margin: 0; color: var(--bad); }

/* --- phone and tablet ------------------------------------------------------------------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(2) { border-right: 0; }
  .tile:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .row { grid-template-columns: 32px minmax(0, 1fr) minmax(0, max-content); }
  .chain { grid-column: 2 / -1; grid-row: 2; }
  .row-risk { grid-column: 3; grid-row: 1; }
  .more-grid { grid-template-columns: 1fr; }
  .count-form input { min-width: 0; width: 100%; }
  .count-form label { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .wrap, .top { padding-left: 16px; padding-right: 16px; }
  .top { flex-wrap: wrap; gap: 8px 16px; }
  .fresh { order: 3; margin: 0; width: 100%; }
  .who { margin-left: auto; }
  .tile { padding: 14px; }
  .tile-num { font-size: 34px; }
  .banner { flex-direction: column; align-items: flex-start; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .tabs a { white-space: nowrap; flex: none; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; min-width: 0; }
  .node .num { font-size: 20px; }
  .more-grid dl { grid-template-columns: 1fr; }
  /* Phone: the name gets the full width; the money sits on one line under it. */
  .row { grid-template-columns: 32px minmax(0, 1fr); }
  .row > :not(.row-rank) { grid-column: 2; grid-row: auto; }
  .row-risk { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start;
              text-align: left; gap: 4px 10px; }
  .row-risk .store-only { align-items: flex-start; }
}

/* --- fixes ------------------------------------------------------------------------------- */
.fix-link { color: var(--gold); font-weight: 700; }
.change { display: grid; grid-template-columns: 150px 1.4fr 1.4fr 170px 80px; gap: 16px; align-items: baseline;
          padding: 14px 0; border-bottom: 1px solid var(--hair); }
.change .ok { color: var(--muted); font: 13px var(--mono); }
.change .bad { color: var(--bad); font: 13px var(--mono); }
.fix-wrap { max-width: 760px; margin: 40px auto; padding: 0 24px; }
.fix-wrap h1 { font-size: 34px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.fix-wrap h2 { font-size: 22px; text-transform: uppercase; margin: 0 0 20px; color: var(--muted); }
.ba { width: 100%; border-collapse: collapse; margin: 18px 0; }
.ba th, .ba td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.ba th { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.ba td { font: 18px var(--mono); }
.ba td.after { color: var(--gold); font-weight: 700; }
.ba td.same { color: var(--dim); }
.notice { border-left: 3px solid var(--warn); padding: 10px 14px; background: var(--elevated); color: var(--muted); margin: 16px 0; }
.refused { border-left: 3px solid var(--bad); padding: 10px 14px; background: var(--elevated); margin: 16px 0; }
.fix-actions { display: flex; gap: 16px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.fix-actions input { background: var(--ink); color: var(--text); border: 1px solid var(--hair-strong); font: 16px var(--mono); padding: 9px 10px; }
@media (max-width: 700px) { .change { grid-template-columns: 1fr; gap: 4px; } }
.fix-actions select { background: var(--ink); color: var(--text); border: 1px solid var(--hair-strong); font: 16px var(--mono); padding: 8px; margin-left: 8px; }
.row-risk .fix-link { margin-top: 8px; font-size: 16px; }
.listing-id { border: 1px solid var(--hair-strong); padding: 10px 14px; color: var(--muted); }
.listing-id strong { color: var(--text); }
.fix-wrap h2 { margin-top: 32px; }
.fix-actions label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; }
.fix-actions input:not([type=hidden]) { min-width: 180px; }
.search-head { color: var(--muted); margin: 18px 0 0; font-size: 17px; }
.compare { border: 1px solid var(--hair-strong); padding: 10px 14px; width: 100%; }
.compare p { margin: 4px 0; color: var(--muted); } .compare strong { color: var(--text); }
.fix-actions label.same { flex-direction: row; align-items: center; gap: 10px; text-transform: none; font-size: 17px; color: var(--text); }
.fix-actions label.same input { width: 22px; height: 22px; min-width: 0; }
.fixed-pending { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--hair-strong); border-left: 3px solid var(--muted); }
.fixed-pending p { margin: 0 0 6px; color: var(--muted); } .fixed-pending strong { color: var(--text); }
.fixed-pending ul { margin: 0; padding-left: 18px; color: var(--text); }
.inline { display: inline; }
.flash { margin: 20px 0 0; padding: 12px 16px; border: 1px solid var(--hair-strong); border-left: 3px solid var(--gold); }
.count-form .shelf-input { min-width: 0; width: 110px; }
.staff-table-wrap { overflow-x: auto; }
@media (max-width: 560px) {
  .row-more summary, .btn-text, .store-only .btn-text, a.fix-link {
    min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
  .btn-text, a.fix-link { justify-content: center; }
  .node .num { font-size: 18px; }
  .ba { font-size: 15px; } .ba td, .ba th { padding: 8px 6px; }
  .change { grid-template-columns: 1fr; }
}
.dup { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.dup-head { margin: 0 0 6px; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.dup-table { margin: 6px 0; } .dup-table td { font-size: 15px; }
.dup-dismiss { text-align: right; }
@media (max-width: 700px) { .dup-table { display: block; overflow-x: auto; } }

/* --- new product ---------------------------------------------------------------------------- */
.new-item { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.new-item label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; text-transform: uppercase;
                  letter-spacing: .06em; color: var(--dim); font-weight: 700; }
.new-item label .sub { text-transform: none; letter-spacing: 0; font-weight: 400; }
.new-item input, .new-item select, .new-item textarea {
  background: var(--ink); color: var(--text); border: 1px solid var(--hair-strong); font: 16px var(--mono);
  padding: 10px; width: 100%; border-radius: 0; }
.new-item input[type=file] { padding: 8px; }
.new-item input:focus, .new-item select:focus, .new-item textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.new-item .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.new-item > .sub, .fix-wrap > .sub { color: var(--dim); font-size: 15px; margin: 0; }
.refused ul, .compare ul { margin: 6px 0; padding-left: 18px; }

/* --- assistant panel ------------------------------------------------------------------------- */
.chat-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 20; }
.chat { position: fixed; right: 20px; bottom: 76px; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100vh - 110px));
        background: var(--elevated); border: 1px solid var(--hair-strong); display: flex; flex-direction: column; z-index: 20; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--hair);
             font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { white-space: pre-wrap; font-size: 16px; line-height: 1.4; }
.chat-msg.user { align-self: flex-end; background: var(--floating); padding: 8px 12px; max-width: 85%; }
.chat-msg.assistant { color: var(--text); }
.chat-msg.pending { color: var(--dim); }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--hair); }
.chat-form textarea { flex: 1; resize: none; background: var(--ink); color: var(--text); border: 1px solid var(--hair-strong);
                      font: 16px var(--disp); padding: 8px; border-radius: 0; }
@media (max-width: 560px) { .chat { right: 16px; left: 16px; width: auto; bottom: 72px; } .chat-toggle { right: 16px; bottom: 16px; } }

/* --- memory ---------------------------------------------------------------------------------- */
.memory { max-width: 920px; }
.mem-nav { color: var(--muted); font-size: 16px; }
.mem-list { list-style: none; padding: 0; margin: 0; }
.mem-list li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.mem-list .sub, .memory .sub { color: var(--dim); font-size: 15px; }
.tag { font: 12px var(--mono); color: var(--gold); border: 1px solid var(--hair-strong); padding: 1px 6px; margin-left: 6px; }
.mem-body { font-family: var(--mono); font-size: 15px; line-height: 1.6; color: var(--text); }
.mem-body h2, .mem-body h3, .mem-body h4 { font-family: var(--disp); color: var(--text); text-transform: none; margin: 18px 0 6px; }
.mem-body ul { padding-left: 20px; }
.mem-body a, .mem-list a { color: var(--gold); }
.mem-raw { white-space: pre-wrap; font: 14px var(--mono); color: var(--muted); background: var(--elevated); padding: 10px; }
.mem-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mem-compare > div { border: 1px solid var(--hair); padding: 10px 14px; }
.mem-proposal { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.mem-version summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.mem-search { display: flex; gap: 10px; margin: 16px 0; }
.mem-search input { flex: 1; background: var(--ink); color: var(--text); border: 1px solid var(--hair-strong); font: 16px var(--mono); padding: 10px; }
.mem-token { word-break: break-all; color: var(--gold); font-size: 14px; }
.new-item label.check { flex-direction: row; align-items: center; gap: 10px; text-transform: none; font-size: 16px; color: var(--text); font-weight: 400; }
.new-item label.check input { width: 20px; height: 20px; }
@media (max-width: 700px) { .mem-compare { grid-template-columns: 1fr; } }
.mem-steps { padding-left: 20px; color: var(--muted); } .mem-steps li { margin: 8px 0; }

/* Stock sync page */
.sync-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.sync-table th, .sync-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hair); vertical-align: top; font-size: 15px; }
.sync-table form.inline { display: inline; }
@media (max-width: 700px) { .sync-table { display: block; overflow-x: auto; } }

/* People: the person x module grid */
.fix-wrap.people-wrap { max-width: 1240px; }
.people-grid th { font-size: 12px; padding: 8px 6px; vertical-align: bottom; }
.people-grid td { font: 14px var(--mono); padding: 8px 6px; vertical-align: middle; }
.people-grid td:first-child { font-family: inherit; min-width: 110px; }
.people-grid select { background: var(--ink); color: var(--text); border: 1px solid var(--hair-strong); border-radius: 0;
                      font: 13px var(--mono); padding: 5px 4px; }
.people-grid select:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
.people-grid .inline { display: inline; margin-right: 10px; }

/* --- dealer CRM (/crm) ------------------------------------------------------------------ */
.crm h1 { font-size: 34px; text-transform: uppercase; letter-spacing: .04em; margin: 32px 0 6px; }
.crm h2 { font-size: 22px; text-transform: uppercase; margin: 32px 0 10px; color: var(--muted); }
.crm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crm-back { margin: 24px 0 0; }
.crm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.crm-grid section { min-width: 0; }
.crm-form { margin-top: 10px; }
.crm-form label { flex: 1 1 200px; }
.crm-form input, .crm-form select { width: 100%; min-width: 0 !important; margin-left: 0; box-sizing: border-box; }
.crm-act { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.crm-active { color: var(--gold); }
.crm-dormant { color: var(--warn); }
.crm-never-ordered { color: var(--dim); }
.crm-due { white-space: nowrap; color: var(--muted); }
.crm-done td { color: var(--dim); }
.crm-note { border-bottom: 1px solid var(--hair); padding: 8px 0; }
.crm-note p { margin: 2px 0; }
.crm-pricing { border-left: 3px solid var(--gold); padding-left: 12px; }
.crm-body { white-space: pre-wrap; font: 16px var(--mono); }
.crm-note-form textarea, .crm-notes textarea { width: 100%; box-sizing: border-box; background: var(--ink); color: var(--text);
  border: 1px solid var(--hair-strong); font: 16px var(--mono); padding: 8px 10px; }
.crm-notes { display: block; margin-top: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; }
.crm-lines input { width: 100%; min-width: 70px; box-sizing: border-box; background: var(--ink); color: var(--text);
  border: 1px solid var(--hair-strong); font: 16px var(--mono); padding: 6px 8px; }
.crm-total { font: 20px var(--mono); margin: 12px 0; }
.crm-list td a { color: var(--text); }
@media (max-width: 860px) { .crm-grid { grid-template-columns: 1fr; } }
.crm-lines td:nth-child(1) input { min-width: 110px; }
.crm-lines td:nth-child(2) input { min-width: 200px; }
