/* ccdv-f command deck — hq-card layer (ledger #267, J 2026-10-02:
   "card formatting in the style of localhost/hqdash/").

   A LAYER over v2.css, loaded after it, rather than an edit to it: v2.css
   stays the working skin, and deleting the one <link> to this file is the
   whole rollback.

   Borrowed from hqdash.css, which is itself the station-board .vsdx palette:
   navy ink #1B213B, slate #5A6788, container #F4F6FA, hairlines #B9C2D8 /
   #8B94AD, link cyan #0E7FA6, service amber #C8922A. The idea carried over is
   the drawing: a white SHEET on a desk, each section a tinted GROUP container,
   each figure a white rounded TILE inside it.

   Type is raised to J's large-type floor (19px root / 20px body). v2.css
   sizes everything in rem, so the root bump scales the whole deck; the
   handful of mono kickers that were set below .66rem are lifted separately
   because at 19px root they would still land near 11px. */

:root{
  --paper:#e4e8f0; --bg2:#eef1f6; --card:#ffffff; --panel2:#f4f6fa;
  --ink:#1b213b; --ink2:#34405e; --muted:#5a6788; --faint:#8b94ad;
  --rule:#d5dae8; --rule2:#b9c2d8; --edge:#8b94ad;
  --azure:#0e7fa6; --brass:#8a6a16; --amber:#c8922a;
  --bar:#1b213b; --sheet:#ffffff;
  --now-wash:#fff7e8; --good-wash:#eef7f1; --bad-wash:#fbeeec;
}
html[data-theme="dark"]{
  --paper:#0b0e1a; --bg2:#121730; --card:#1b213b; --panel2:#161b31;
  --ink:#e8ecf6; --ink2:#c6cee3; --muted:#9fb0d8; --faint:#7d8bb0;
  --rule:#2c3558; --rule2:#3e4a73; --edge:#4d5a85;
  --azure:#5fc3e6; --brass:#e0b45a; --amber:#e0b45a;
  --bar:#070912; --sheet:#121729;
  --now-wash:#2a2414; --good-wash:#14241b; --bad-wash:#2a1a1a;
}

html{font-size:19px}
body{font-size:1.05rem}

/* ---- the bar: navy, the colour of hqdash's spine nodes ---- */
.bar{background:var(--bar)}
.mark i,.tab.on::after{color:var(--amber)}
.tab.on::after{background:var(--amber)}
.find,.tbtn,.sso,.sso.alt{border-radius:4px}

/* ---- the sheet ---- */
main.wrap{background:var(--sheet);border:1px solid var(--rule2);border-radius:4px;
  padding:40px 48px 46px;margin-top:30px;box-shadow:0 10px 34px rgba(10,14,30,.18)}
html[data-theme="dark"] main.wrap{box-shadow:0 10px 34px rgba(0,0,0,.5)}
@media(max-width:680px){main.wrap{padding:22px 16px;margin-top:16px}}

/* ---- groups: the tinted containers ---- */
.grp{background:var(--panel2);border:1px solid var(--rule2);border-radius:8px;padding:14px 14px 12px;margin-bottom:22px}
.grph h2,.grph .h2{color:var(--ink);letter-spacing:.13em;font-size:.7rem}
.grph .ln{background:var(--rule2)}
.grph .n{font-size:.7rem}

/* ---- tiles: white, rounded, hairline; hover = navy ring, as on hqdash ---- */
.pnl,.rows,.qcard,.flash,.chat,.result,.miss{background:var(--card);border:1px solid var(--edge);border-radius:6px}
.pnl,.qcard,.flash{border-left-width:3px}
.pnl{border-left-color:var(--edge)}
.qcard,.flash{border-left-color:var(--ink)}
.rows{overflow:hidden}
.row{border-bottom-color:var(--rule)}
button.pnl:hover,a.pnl:hover{border-color:var(--ink);transform:none;box-shadow:inset 0 0 0 1px var(--ink)}
.pnl.hot{border-left-color:var(--oxide)}
.pnl.good{border-left-color:var(--field)}
.pnl.now{border-left-color:var(--amber);background:var(--now-wash)}
.row.now,.wk.now .head{box-shadow:inset 3px 0 0 var(--amber)}
.miss{border-left:3px solid var(--oxide)}
.opt{border-radius:5px;border-color:var(--edge)}
.opt:hover{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.expl{border-radius:0 5px 5px 0}
.meter{border-radius:3px}
.msg{border-radius:6px;border-color:var(--rule2)}
.msg.coach{border-left-color:var(--amber)}
.chatin textarea{border-radius:5px;border-color:var(--edge)}
dialog.drawer{border-radius:8px;border-color:var(--edge)}
.dr-x{border-radius:4px}

/* the logistics fact lists picked up the browser's 40px list indent */
.facts{padding-left:0}

/* ---- buttons: hqdash's "Download" button — navy, cyan on hover ---- */
.btn{border-radius:4px;background:var(--ink);border-color:var(--ink);color:var(--sheet)}
html[data-theme="dark"] .btn{background:var(--ink);color:#1b213b}
.btn:hover{background:var(--azure);border-color:var(--azure);color:#fff}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--edge)}
.btn.ghost:hover{background:var(--panel2);color:var(--ink);border-color:var(--ink)}
.chip,.dchip{border-radius:4px}
.lnk{color:var(--azure)}
:focus-visible{outline-color:var(--azure)}

/* ---- large-type floor for the small mono kickers ---- */
.pnl .k,.rd .k,.msg .k,.dr-h .k,.dr-b dt,.dchip,.st,.pnl .v small,.rd .v small,
.node,.who .local,.who .warn,.who .out,.find kbd,.tab kbd,.wk .focus small,.row .nm small,
.qcard .dtag,.bhead .sub,.fresh,details.pnl summary .tog,.miss summary .tog,.chip,
footer,.tbtn,.sso{font-size:.7rem}
.tab{font-size:.74rem}
@media(max-width:560px){.tab{font-size:.7rem}}

/* phone: sheet + group + tile is three frames deep, so each one gives back
   width — the sheet and group pads shrink and the group header wraps. */
@media(max-width:560px){
  main.wrap{padding:18px 12px;width:calc(100% - 24px)}
  .grp{padding:10px 8px 8px}
  .grph{flex-wrap:wrap;gap:6px 12px}
  .grph .n{white-space:normal}
  /* a gate's long due-note (nowrap in v2.css) used to starve the title
     column down to one letter per line; on a phone it drops under it */
  .row:not(.drow){grid-template-columns:auto minmax(0,1fr)}
  .row:not(.drow) .r{grid-column:2;text-align:left;white-space:normal}
}
