/* Rapid Response Unit vendor view — SkyTerra's identity (copper on navy), PSG Ops's bones.
   Brand colours carry identity. Gaps and "needs a person" states use their own colours so
   Joe reads them without knowing the brand. System fonts only: no outside network calls. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Michroma"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/michroma-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Palette: src/styles/brand.css on the SkyTerra site, light (bone) variant. Navy band, copper accent. */
  --navy: #0F1620;
  --navy-2: #162030;
  --navy-3: #1E2B3D;
  --slate: #3E5168;
  --copper: #B07A3F;
  --copper-2: #D9A66A;
  --copper-soft: #F3E6D4;
  --sky-blue: #8FB6DD;
  --sky-blue-deep: #2F5F8F;
  --surface: #ECE7DF;
  --bone: #F4F0EA;
  --card: #ffffff;
  --line: #D9D3C8;
  --ink: #141B25;
  --muted: #5E6673;
  --steel: #8A94A3;
  --silver: #D5D9DE;
  --warn: #a9781f;
  --warn-soft: #fbf3df;
  --danger: #b23a2c;
  --ok: #157f5c;
  --font: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Michroma", "Eurostile", "Bank Gothic", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --btn: #2A4063;        /* button blue: lighter than the navy band, which read as black on a button (Gabe, 2026-11-06) */
  --btn-hover: #34507A;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 27, 37, 0.05), 0 4px 14px -10px rgba(20, 27, 37, 0.16);
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--surface); }
a { color: var(--navy); }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--copper); margin: 0 0 10px; }
h3 { font-size: 13px; margin: 14px 0 6px; color: var(--muted); }
code { font-family: var(--mono); font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.sub { color: var(--muted); font-size: 13px; }
.none { color: var(--steel); font-style: italic; }
.r { text-align: right; }

.topbar { display: flex; align-items: center; gap: 28px; padding: 0 24px; height: 54px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark { font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; color: var(--copper); }
.brand-word { font-weight: 600; font-size: 15px; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { color: #cfd5dd; text-decoration: none; padding: 6px 12px; border-radius: 3px; font-size: 14px; }
.topbar nav a.on, .topbar nav a:hover { background: var(--navy-2); color: #fff; }

main { max-width: 1240px; margin: 0 auto; padding: 22px 24px 60px; }
.foot { max-width: 1240px; margin: 0 auto; padding: 12px 24px 30px; color: var(--steel); font-size: 12px; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: flex; flex-direction: column; }
.stat .num { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.stat .lbl { color: var(--muted); font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.filters label.check { flex-direction: row; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); padding-bottom: 8px; }
.filters input[type=search], .filters input[type=text], .filters select { font: 15px var(--font); padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; min-width: 170px; }
.filters button { font: 600 14px var(--font); padding: 8px 16px; background: var(--navy); color: #fff; border: 0; border-radius: 3px; cursor: pointer; }
.filters button:hover { background: var(--navy-2); }
.filters .clear { font-size: 14px; padding-bottom: 8px; }
.count { margin: 0 0 10px; color: var(--muted); }

table.grid { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.grid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 10px 12px; background: var(--bone); border-bottom: 1px solid var(--line); }
table.grid th.r { text-align: right; }
table.grid td { padding: 9px 12px; border-bottom: 1px solid #efebe4; vertical-align: top; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr:hover td { background: #fbf9f5; }
a.name { font-weight: 600; text-decoration: none; }
a.name:hover { text-decoration: underline; }
.states { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; }
td.gaps { color: var(--danger); font-size: 13px; }
tr.gap td { background: #fdf1ee; }
tr.thin td { background: var(--warn-soft); }
tr.unresolved td { background: var(--warn-soft); }

.chip { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; background: var(--bone); color: var(--muted); }
.chip-tag { background: var(--copper-soft); color: #7a4f1f; }
.chip-status { background: var(--navy); color: #fff; }
.chip-orange { background: #ffe1b3; color: #7a4a00; }
.chip-yellow { background: #fff6a8; color: #6b5a00; }
.chip-grey { background: #d9d9d9; color: #444; }

.crumb { margin: 0 0 12px; font-size: 14px; }
.vendor-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.vendor-head .home { color: var(--muted); font-size: 14px; }
.tags { margin-top: 6px; }
.tags .chip { margin-left: 0; margin-right: 6px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.missing { background: var(--warn-soft); border-color: #ecd9a8; }
.card.missing h2 { color: var(--warn); }
.card.missing ul { margin: 0; padding-left: 18px; }
.card.quiet { background: transparent; box-shadow: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } .topbar { padding: 0 14px; gap: 14px; } main { padding: 16px 14px 40px; } }

dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 4px 8px 6px; border-bottom: 1px solid var(--line); }
table.mini th.r { text-align: right; }
table.mini td { padding: 6px 8px; border-bottom: 1px solid #f0ece6; vertical-align: top; }
ul.notes { margin: 0; padding-left: 18px; }

/* Phase 2: compliance */
.stat .num.ok { color: var(--ok); }
.stat .num.bad { color: var(--danger); }
.stat .num.warn { color: var(--warn); }
h3.bad { color: var(--danger); }
h3.warn { color: var(--warn); }
ul.plain { list-style: none; padding: 0; margin: 0 0 10px; }
ul.plain li { padding: 4px 0; border-bottom: 1px solid #f0ece6; font-size: 14px; }
ul.plain.cols { columns: 2; column-gap: 24px; }
.card.good { background: #e9f5ef; border-color: #bfe0cf; }
.card.good h2 { color: var(--ok); }
tr.bad-row td, .ins.bad-row { background: #fdf1ee; }
tr.warn-row td, .ins.warn-row { background: var(--warn-soft); }
.ins { padding: 8px; border-radius: 3px; margin-bottom: 8px; }
details.add { margin-top: 12px; }
details.add summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 14px; }
form.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 10px; }
form.entry label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
form.entry label.check { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); grid-column: 1 / -1; }
form.entry input { font: 14px var(--font); padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; }
form.entry button { grid-column: 1 / -1; justify-self: start; font: 600 14px var(--font); padding: 8px 16px; background: var(--navy); color: #fff; border: 0; border-radius: 3px; cursor: pointer; }
button.link { background: none; border: 0; color: var(--muted); font: 12px var(--font); cursor: pointer; text-decoration: underline; padding: 0; }

/* Phase 3: coverage map */
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.seg a { padding: 7px 14px; text-decoration: none; font-size: 14px; color: var(--muted); }
.seg a.on { background: var(--navy); color: #fff; }
.banner { background: var(--warn-soft); border: 1px solid #ecd9a8; border-radius: var(--radius); padding: 10px 14px; color: var(--warn); margin: 0 0 14px; }
.map-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.us-map { width: 100%; height: auto; display: block; }
.us-map .state { fill: var(--bone); stroke: none; cursor: pointer; transition: fill 120ms; }
.us-map .state:hover { fill: var(--copper) !important; }
.us-map .state.gap { fill: #f3cfc8; }
.us-map .state.thin { fill: #f1dca6; }
.us-map .state.c1 { fill: #e8d3bd; }
.us-map .state.c2 { fill: #d4ad84; }
.us-map .state.c3 { fill: #b98556; }
.us-map .state.c4 { fill: #8f5f30; }
.us-map .borders { fill: none; stroke: #fff; stroke-width: 0.8; pointer-events: none; }
.us-map .label { font: 600 11px var(--font); fill: var(--ink); pointer-events: none; }
.us-map .label.small { font-size: 9.5px; fill: var(--muted); }
.us-map .leader { stroke: var(--steel); stroke-width: 0.6; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; border-radius: 3px; background: var(--bone); }
.lg.gap::before { background: #f3cfc8; } .lg.thin::before { background: #f1dca6; } .lg.c1::before { background: #e8d3bd; } .lg.c2::before { background: #d4ad84; } .lg.c3::before { background: #b98556; } .lg.c4::before { background: #8f5f30; }
.bystate { display: flex; flex-wrap: wrap; gap: 6px; }
.bs { font-family: var(--mono); font-size: 12px; text-decoration: none; padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: var(--ink); }
.bs b { color: var(--muted); font-weight: 500; margin-right: 4px; }
.bs.gap { background: #fdf1ee; border-color: #e6b7ad; } .bs.thin { background: var(--warn-soft); border-color: #ecd9a8; }

/* Phase 4: jobs and quotes */
details.add.card summary { font-size: 15px; }
form.entry.wide { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { form.entry.wide { grid-template-columns: 1fr; } }
form.entry select { font: 14px var(--font); padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
form.inline { display: inline-flex; gap: 6px; align-items: center; }
form.inline select, form.inline input { font: 14px var(--font); padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.row input { font: 14px var(--font); padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; min-width: 200px; }
.row select { font: 14px var(--font); padding: 6px 8px; border: 1px solid var(--line); border-radius: 3px; }
label.inline-l { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
button.small { font: 600 13px var(--font); padding: 6px 12px; background: var(--bone); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
button.small.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; background: #fcfbf8; }
.quote-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.quote .chip { margin-left: 0; }
.chip-ok { background: #d6efe3; color: #0f5e42; }
.chip-bad { background: #fbe0da; color: #8a2a1c; }
textarea.draft { width: 100%; font: 13px/1.45 var(--mono); padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; margin-top: 10px; resize: vertical; }
table.rank td { vertical-align: middle; }
tr.good-row td { background: #e9f5ef; }
.strip.small { margin-bottom: 10px; }
.strip.small .stat .num { font-size: 20px; }

/* Phase 5: confirm */
a.btn.small { display: inline-block; font: 600 13px var(--font); padding: 6px 12px; background: var(--navy); color: #fff; border-radius: 3px; text-decoration: none; }

/* Manage, close, dashboard */
.progress { height: 10px; background: var(--bone); border-radius: 999px; overflow: hidden; margin: 4px 0 2px; }
.progress i { display: block; height: 100%; background: var(--copper); }
.tbl { overflow-x: auto; }
.scroll { overflow-x: auto; max-width: 100%; } /* wide ledger tables scroll inside their card instead of spilling past it */
.scroll table.mini th { white-space: nowrap; }

/* Request form groups, job sheet */
fieldset.group { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; margin: 0; }
fieldset.group legend { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); padding: 0 6px; }
fieldset.group label.span2 { grid-column: span 2; }
fieldset.group .span3 { grid-column: 1 / -1; }
fieldset.group .newrow { grid-column-start: 1; }
@media (max-width: 800px) { fieldset.group { grid-template-columns: 1fr; } fieldset.group label.span2, fieldset.group .span3, fieldset.group .newrow { grid-column: auto; } }
dl.wide { grid-template-columns: 150px 1fr; }
table.sheet th .sub { font-weight: 400; text-transform: none; letter-spacing: 0; }
table.sheet tfoot th { text-align: right; background: var(--bone); border-top: 1px solid var(--line); }
table.sheet tfoot th:first-child { text-align: left; }

/* Map dots */
.map-stage { position: relative; }
.us-map .dot { fill: var(--copper); fill-opacity: .8; stroke: #fff; stroke-width: 1; cursor: pointer; }
.us-map .dot.has-home { fill: #7a4f1f; }
.us-map .dot:hover { fill: var(--navy); }
.popup { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 13px; z-index: 2; width: 300px; max-height: 320px; overflow: auto; }
.popup .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.popup .x { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); }
.popup ul { list-style: none; margin: 0 0 6px; padding: 0; }
.popup li { padding: 2px 0; }
.dots-legend { justify-content: space-between; }
pre.raw { white-space: pre-wrap; font: 13px/1.5 var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 10px; max-height: 360px; overflow: auto; }

/* App shell */
.topbar nav { overflow-x: auto; scrollbar-width: none; }
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nav-sep { flex: 0 0 auto; width: 1px; height: 18px; background: rgba(255,255,255,.18); margin: 0 4px; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--copper); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
@media (max-width: 800px) { .brand-word { display: none; } }

/* Today board */
table.board td.actions { white-space: nowrap; }
table.board td.actions a.small { font: 600 12px var(--font); padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--ink); background: var(--bone); margin-left: 4px; }
details.inline-d { display: inline-block; vertical-align: middle; }
details.inline-d summary { cursor: pointer; font: 600 12px var(--font); padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bone); list-style: none; display: inline-block; }
details.inline-d[open] { display: block; margin-top: 6px; }
details.inline-d textarea { display: block; min-width: 320px; margin: 6px 0; }
.queues { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.queue h3 { margin: 0 0 6px; font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.queue .count { background: var(--copper-soft); color: #7a4f1f; border-radius: 999px; padding: 0 8px; font-size: 12px; }

/* Onboarding checklist, status form */
ul.checklist { list-style: none; padding: 0; margin: 0 0 8px; columns: 2; column-gap: 24px; }
ul.checklist li { padding: 3px 0; font-size: 14px; break-inside: avoid; }
ul.checklist li.done { color: var(--ok); }
ul.checklist .tick { display: inline-block; width: 16px; font-weight: 700; }
.status-form select, .status-form input { font: 13px var(--font); padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; }
.status-form input { min-width: 200px; }
@media (max-width: 800px) { ul.checklist { columns: 1; } }

/* Header: room to breathe. The brand stays on one line; the nav gets real padding. */
.topbar { height: auto; min-height: 64px; padding: 0 28px; gap: 36px; }
.brand { white-space: nowrap; gap: 12px; }
.brand-mark { font-size: 12px; letter-spacing: 0.18em; }
.brand-word { font-size: 16px; white-space: nowrap; }
.topbar nav { gap: 2px; }
.topbar nav a { padding: 9px 14px; font-size: 14.5px; border-radius: var(--radius); }
.nav-sep { height: 22px; margin: 0 8px; }
main { padding-top: 28px; }
@media (max-width: 1100px) { .topbar { padding: 0 16px; gap: 16px; } .topbar nav a { padding: 8px 10px; font-size: 14px; } }

/* Home */
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.home-head h1 { font-size: 30px; margin: 0 0 2px; }
.home-actions { display: flex; gap: 8px; }
a.btn.small.ghost { background: var(--card); color: var(--navy); border: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 120ms, box-shadow 120ms; }
.tile:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift, 0 8px 26px -10px rgba(20,27,37,.3)); }
.tile .num { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.tile .num .of { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.tile .lbl { font-size: 12.5px; color: var(--muted); }
.tile.accent { border-left-color: var(--copper); }
.tile.warn { border-left-color: var(--warn); } .tile.warn .num { color: var(--warn); }
.tile.bad { border-left-color: var(--danger); } .tile.bad .num { color: var(--danger); }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-grid .card { margin-bottom: 0; }
.home-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.card h2 .count, .card h3 .count { display: inline-block; background: var(--copper-soft); color: #7a4f1f; border-radius: 999px; padding: 0 8px; font-size: 11px; letter-spacing: 0; vertical-align: middle; margin-left: 6px; }
.card h3 { margin-top: 16px; }
p.empty { color: var(--steel); font-style: italic; margin: 4px 0 0; }
ul.plain li .chip { margin-left: 6px; }

/* Short request form, call-first sourcing, booking steps */
fieldset.group.quick { grid-template-columns: repeat(3, 1fr); }
fieldset.group.quick label:first-child { grid-column: span 2; }
details.more { grid-column: 1 / -1; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); margin: 4px 0; }
details.more > fieldset { margin-top: 8px; }
td.call a.tel { font-family: var(--mono); font-size: 13px; white-space: nowrap; text-decoration: none; padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--bone); color: var(--ink); display: inline-block; }
td.outcome { min-width: 280px; }
form.callform { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
form.callform select, form.callform input { font: 13px var(--font); padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; }
.steps { gap: 6px; margin: 6px 0 10px; }
.step { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bone); color: var(--muted); }
.step.done { background: #d6efe3; color: #0f5e42; }
.card.folded { background: var(--card-2, #f7f5f0); box-shadow: none; }
.card.folded > details > summary { cursor: pointer; list-style: none; }
.card.folded > details > summary h2 { margin: 0; display: inline; }
.card.folded > details > summary::before { content: "▸ "; color: var(--copper); }
.card.folded > details[open] > summary::before { content: "▾ "; }
.card.folded > details[open] > summary { margin-bottom: 10px; }

/* Client feedback question set on the Close card */
fieldset.feedback { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px 12px; margin: 0; }
fieldset.feedback legend { font-weight: 600; padding: 0 6px; }
fieldset.feedback table.mini td { padding: 4px 6px; }
fieldset.feedback td.scale { white-space: nowrap; text-align: right; }
fieldset.feedback label.radio { display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; font-weight: 400; }
fieldset.feedback label.radio input { width: auto; margin: 0; }
textarea.draft { width: 100%; font: 12.5px/1.45 ui-monospace, Consolas, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 3px; }
details.inline-pay summary { cursor: pointer; color: var(--copper); }
details.inline-pay form { margin-top: 6px; }
table.ledger details.inline-pay form.entry { min-width: 380px; } /* the Record form opens in the last column; give it room for its two-column grid */
table.ledger details.inline-pay form.entry input { min-width: 0; width: 100%; box-sizing: border-box; }

form.accept { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
blockquote { margin: 8px 0; padding: 8px 14px; border-left: 3px solid var(--copper); background: #faf7f2; }

button.danger { background: #b23a2c; }

table.periods td.nowrap { white-space: nowrap; }
table.periods details.inline-pay { display: inline; }
table.periods form.period-form { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 6px 10px; margin-top: 8px; white-space: normal; min-width: 520px; }
tr.quiet-row td { color: var(--muted); }
tr.good-row td { background: #f1f8f4; }

/* Client portal on a phone: tables stack into rows, forms go single-column, the header wraps. */
@media (max-width: 700px) {
  .portal main { padding: 14px; }
  .portal header.top { flex-wrap: wrap; gap: 8px 14px; }
  .portal header.top .who { margin-left: 0; width: 100%; }
  .portal .two-col { grid-template-columns: 1fr; }
  .portal form.entry, .portal form.entry.wide { grid-template-columns: 1fr; }
  .portal table.mini thead { display: none; }
  .portal table.mini, .portal table.mini tbody, .portal table.mini tr, .portal table.mini td { display: block; width: 100%; }
  .portal table.mini tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .portal table.mini td { border: 0; padding: 2px 0; text-align: left; }
  .portal table.mini td.r { text-align: left; }
  .portal .login { margin: 20px auto; }
  .portal dl.wide { grid-template-columns: 1fr; }
  .portal dl.wide dt { margin-top: 6px; }
}

/* Vendor profile: readiness strip, section headings and jump nav */
h2.sect { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin: 26px 0 8px; padding-top: 10px; border-top: 1px solid var(--line); }
nav.sect-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
nav.sect-nav a { padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 13px; text-decoration: none; color: var(--ink); }
nav.sect-nav a:hover { border-color: var(--copper); }
.strip.readiness .stat .num.ok { color: #0f5e42; } .strip.readiness .stat .num.bad { color: #b23a2c; }
/* Vendors page tabs */
.tabs { display: flex; gap: 6px; margin: 0 0 14px; }
.tabs a { padding: 7px 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bone); font-size: 14px; }
.tabs a.on { background: var(--navy); color: #fff; }

/* Calendar */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.cal-layout.with-panel { grid-template-columns: minmax(0, 1fr) 360px; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--bone); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cal-head div { padding: 6px 8px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cal-day { min-height: 96px; padding: 6px; border-right: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cal-day:last-child { border-right: 0; }
.cal-day.out { background: #faf8f4; color: var(--steel); }
.cal-day.today .cal-num { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 0 6px; }
.cal-date { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; margin-bottom: 2px; }
.cal-tot { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; background: var(--bone); border-radius: var(--radius); padding: 0 6px; }
.cal-tot b { font-weight: 800; }
.cal-day.out .cal-tot { background: transparent; color: var(--steel); }
.cal.week .cal-day { min-height: 220px; }
.cal-entry { display: block; font-size: 12px; line-height: 1.3; padding: 4px 6px; border-radius: 3px; text-decoration: none; color: var(--ink); background: #e6eef8; border-left: 3px solid #3b5f8a; min-width: 0; overflow: hidden; }
.cal-entry.closed { background: #eee9e0; border-left-color: var(--steel); }
.cal-entry.unfilled { background: #fff1d6; border-left-color: #c58a1f; }
.cal-entry.picked { outline: 2px solid var(--copper); }
.cal-entry .t { font-family: ui-monospace, Consolas, monospace; margin-right: 4px; color: var(--muted); }
.cal-entry .c { font-weight: 600; }
.cal-entry .v { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-panel { position: sticky; top: 12px; }
.cal-search { display: flex; gap: 8px; align-items: center; margin: 12px 0 4px; max-width: 640px; }
.cal-search input[type=search] { flex: 1; min-width: 0; }
#search-results { margin: 10px 0 14px; }
.cal-day[data-day] { cursor: pointer; }
.cal-day[data-day]:hover { background: #fbf9f5; }
.cal-day.picked { box-shadow: inset 0 0 0 2px var(--copper); }
.cal-num { color: inherit; text-decoration: none; font-weight: 600; }
.cal-num:hover { text-decoration: underline; }
.cal-more { font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: none; padding: 2px 6px; }
.cal-more:hover { text-decoration: underline; }
.cal-daylist { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow-y: auto; }
.cal-daylist .cal-entry .sub { display: block; color: var(--muted); }
@media (max-width: 900px) { .cal-layout.with-panel { grid-template-columns: 1fr; } .cal-day { min-height: 60px; } }

/* ---- SkyTerra skin (2026-10-27): the site's type and header, on the ops app's light pages ---- */
body { font-size: 14.5px; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin: 0 0 6px; }
.home-head h1 { font-size: 21px; }
h2, h2.sect, fieldset.group legend { font-family: var(--font-display); font-weight: 400; font-size: 10.5px; letter-spacing: 0.16em; color: var(--copper); }
h3 { font-weight: 600; }
.stat .num, .tile .num { font-family: var(--font); letter-spacing: -0.01em; }
.stat .lbl, .tile .lbl, table.grid th, table.mini th, .cal-head, .filters label { letter-spacing: 0.1em; font-size: 11px; text-transform: uppercase; }
.filters label.check { text-transform: none; letter-spacing: 0; font-size: 14px; }
.topbar { background: var(--navy); border-bottom: 1px solid var(--copper); min-height: 62px; }
.brand { align-items: center; gap: 14px; }
.brand .mark { height: 40px; width: auto; display: block; }
.brand .wm { display: inline-flex; flex-direction: column; line-height: 1; }
.brand .wm__word { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.brand .wm__sky { color: var(--sky-blue); }
.brand .wm__terra { color: var(--copper-2); }
.brand .wm__unit { margin-top: 5px; font-family: var(--font-display); font-size: 6.5px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--silver); white-space: nowrap; }
.topbar nav a { color: var(--silver); font-size: 14px; border-radius: 3px; }
.topbar nav a.on { background: var(--navy-3); color: #fff; box-shadow: inset 0 -2px 0 var(--copper); }
.topbar nav a:hover { background: var(--navy-2); color: #fff; }
.nav-sep { background: var(--slate); }
.badge { border-radius: 2px; }
.foot { font-family: var(--font-display); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }
a.btn.small, .filters button, form.entry button, button.small.primary { letter-spacing: 0.02em; }
.tabs a.on, .seg a.on, .chip-status, .step.now { background: var(--navy); }
.chip { border-radius: 2px; letter-spacing: 0.04em; }
.card.folded > details > summary::before { font-size: 11px; }
@media (max-width: 800px) { .brand .wm__unit { display: none; } .brand .mark { height: 32px; } }
.topbar { gap: 22px; padding: 0 22px; }
.topbar nav a { padding: 9px 11px; }
@media (max-width: 1360px) { .topbar nav a { padding: 8px 9px; font-size: 13.5px; } .brand .wm__unit { display: none; } }

/* Job page: when coverage starts (sourcing card) and the daily schedule editor */
p.starts { margin: 4px 0 10px; padding: 7px 10px; background: var(--copper-soft); border-left: 3px solid var(--copper); border-radius: 2px; }
form.sched-form { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { form.sched-form { grid-template-columns: 1fr 1fr; } }

/* Portal login access: every location, or chosen locations */
fieldset.access-pick { border: 1px solid var(--line, #ddd); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
fieldset.access-pick .site-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; padding-left: 24px; }
fieldset.access-pick { grid-column: 1 / -1; margin: 0; }
fieldset.access-pick label.radio { display: flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; font-size: 13px; color: var(--ink); }
fieldset.access-pick label.radio .sub { font-size: 12px; }
fieldset.access-pick label.radio input { width: auto; margin: 0; }

/* SANDBOX=1 only */
.sandbox-bar { background: #B07A3F; color: #fff; text-align: center; font: 600 13px var(--font, sans-serif); padding: 6px 12px; letter-spacing: .02em; }

/* Signed-in staff member and Sign out, right end of the top bar */
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #cfd5dd; white-space: nowrap; }
.topbar-user form { margin: 0; }
.topbar-user button.link { color: #fff; font-size: 13px; }
.cal-period { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
fieldset.group.flow { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { fieldset.group.flow { grid-template-columns: 1fr; } }

/* Billing → Workbook week */
.wb-line { margin: 0 0 12px; font-size: 14px; }
.wb-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
table.wbw td { vertical-align: top; }
table.wbw .day { width: 30px; padding-left: 4px; padding-right: 4px; color: var(--muted, #6b6b6b); }
.cp { cursor: copy; border-bottom: 1px dotted currentColor; }
.cp:hover { background: rgba(193, 120, 64, .12); }
.cp.copied { background: rgba(60, 150, 90, .2); }
.wb-more > summary { color: var(--muted, #6b6b6b); }
table.wbw td.nowrap { white-space: nowrap; }
button:disabled, button[disabled] { opacity: .45; cursor: not-allowed; }

/* Billing ledger */
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 12px; border-bottom: 1px solid var(--line, #e3e0da); }
nav.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted, #6b6b6b); border-bottom: 2px solid transparent; font-weight: 600; }
nav.tabs a.on { color: var(--navy); border-bottom-color: var(--copper); }
p.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
p.filters a.chip { text-decoration: none; }
p.filters a.chip.on { outline: 2px solid var(--copper); }
table.ledger td { vertical-align: top; white-space: nowrap; }
table.ledger td .sub { white-space: nowrap; }
tr.row-missing td { background: rgba(166, 59, 47, .05); }
ul.log { margin: 8px 0 0; padding-left: 16px; color: var(--muted, #6b6b6b); }
nav.tabs a, nav.tabs a.on { background: none; }

/* ---- App-wide polish (2026-11-05 for the client portal; rolled out to every page 2026-11-06, Gabe: crisper, smoother, newer).
   Motion answers a person's action; one fade on page load. ---- */
/* Type: Inter for everything a client reads (crisper at interface sizes than Plex; Gabe, 2026-11-05), Michroma stays for headings. */
body { --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-family: var(--font); letter-spacing: -0.005em; font-feature-settings: "cv11", "ss03"; --radius-lg: 10px; --line-2: rgba(20, 27, 37, 0.09); --ring: 0 0 0 3px rgba(176, 122, 63, 0.22);
  --shadow-card: 0 1px 1px rgba(20, 27, 37, 0.03), 0 2px 6px rgba(20, 27, 37, 0.04), 0 12px 32px -18px rgba(20, 27, 37, 0.22);
  --shadow-lift: 0 2px 4px rgba(20, 27, 37, 0.05), 0 14px 36px -16px rgba(20, 27, 37, 0.32);
  background: linear-gradient(180deg, #E6E1D8 0, var(--bone) 360px) fixed; -webkit-font-smoothing: antialiased; font-size: 15px; }
body a { text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 120ms ease; }
body a:hover { color: var(--copper); }
body :focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  body main { animation: portal-in 360ms cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes portal-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Header: a touch taller, a soft shadow so it sits above the page, links underline on hover */
body header.top { padding: 12px 28px; background: var(--navy); border-bottom: 1px solid rgba(217, 166, 106, 0.4); box-shadow: none; position: sticky; top: 0; z-index: 5; }
body header.top .who a, body header.top .who button.link { text-decoration: none; padding: 4px 2px; border-bottom: 1px solid transparent; transition: border-color 140ms ease, color 140ms ease; }
body header.top .who a:hover, body header.top .who button.link:hover { color: var(--copper-2); border-bottom-color: var(--copper-2); }
body main { padding: 32px 24px 48px; }
body h1 { font-size: 22px; letter-spacing: 0.07em; margin-bottom: 6px; }
body .home-head { margin-bottom: 22px; }
body .home-head .sub { font-size: 14px; max-width: 70ch; }

/* Surfaces: one rounder radius for cards and tiles, a hairline instead of the beige border, layered shadow */
body .card { border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-card); padding: 20px 22px; margin-bottom: 16px; }
body .card.quiet { background: transparent; border-color: transparent; box-shadow: none; padding: 6px 4px; }
body .card h2 { font-size: 11px; letter-spacing: 0.18em; margin-bottom: 12px; }
body .card.good { background: #f0f8f4; border-color: rgba(21, 127, 92, 0.22); }
body .card.missing { border-color: rgba(169, 120, 31, 0.3); }
body .two-col { gap: 16px; }
body .tiles { gap: 14px; margin-bottom: 22px; }
body .tile { border-radius: var(--radius-lg); border: 1px solid var(--line-2); border-left-width: 1px; box-shadow: var(--shadow-card); padding: 16px 18px 14px; position: relative; overflow: hidden; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
body .tile::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--line); border-radius: 2px 2px 0 0; transition: background 160ms ease; }
body .tile.accent::after { background: var(--copper); }
body a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: rgba(176, 122, 63, 0.35); }
body a.tile:hover::after { background: var(--copper); }
body table.mini, body .chip, body .tile .lbl, body dt { font-variant-numeric: tabular-nums; }
body .tile .num { font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: 0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
body .tile .lbl { font-size: 11px; letter-spacing: 0.08em; margin-top: 4px; }

/* Tables: airier rows, a firmer header rule, a hover tint that answers the pointer */
body table.mini th { padding: 6px 10px 8px; border-bottom: 2px solid rgba(20, 27, 37, 0.1); color: var(--steel); }
body table.mini td { padding: 9px 10px; border-bottom: 1px solid rgba(20, 27, 37, 0.06); }
body table.mini tbody tr { transition: background 120ms ease; }
body table.mini tbody tr:hover { background: rgba(176, 122, 63, 0.05); }
body table.mini tbody tr:last-child td { border-bottom: 0; }
body table.mini td a { text-decoration: none; font-weight: 500; }
body table.mini td a:hover { text-decoration: underline; }
body table.mini td .sub { font-size: 12.5px; }
body ul.plain li { padding: 7px 0; border-bottom: 1px solid rgba(20, 27, 37, 0.06); }
body ul.plain li:last-child { border-bottom: 0; }
body dl { gap: 8px 14px; }
body dt { font-size: 12.5px; letter-spacing: 0.01em; }

/* Chips: softer corners, a little weight, no borders */
body .chip { border-radius: 5px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.5; white-space: nowrap; }
body .chip-ok { background: #dcf1e6; color: #0f5e42; }
body .chip-tag { background: #f5e6d2; color: #7a4f1f; }
body .chip-grey { background: #e8e5df; color: #555; }

/* Job stages: a connected track; the current stage carries the copper, finished ones go quiet */
body .stages { gap: 0; margin: 14px 0 20px; align-items: center; flex-wrap: nowrap; overflow-x: auto; padding: 6px 2px 8px; scrollbar-width: none; }
body .stages::-webkit-scrollbar { display: none; }
body .stages span { white-space: nowrap; flex: none; }
body .stages span { position: relative; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--steel); font-size: 12px; font-weight: 500; transition: background 160ms ease, color 160ms ease; }
body .stages span + span { margin-left: 14px; }
body .stages span + span::before { content: ""; position: absolute; left: -15px; top: 50%; width: 14px; height: 1px; background: var(--line); }
body .stages span.done { background: #eef3f8; border-color: transparent; color: var(--sky-blue-deep); }
body .stages span.done + span::before { background: var(--sky-blue-deep); }
body .stages span.now { background: var(--copper); border-color: var(--copper); color: #fff; font-weight: 600; box-shadow: 0 0 0 4px rgba(176, 122, 63, 0.18), 0 6px 16px -8px rgba(176, 122, 63, 0.8); }
@media (prefers-reduced-motion: no-preference) {
  /* The current stage breathes: a ring that swells and fades every 2.4 s (Gabe, 2026-11-05: "pulsating, like it's blinking on whatever status it is") */
  body .stages span.now { animation: stage-pulse 2.4s ease-in-out infinite; }
  @keyframes stage-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(176, 122, 63, 0.45), 0 6px 16px -8px rgba(176, 122, 63, 0.8); background: var(--copper); }
    50% { box-shadow: 0 0 0 9px rgba(176, 122, 63, 0.14), 0 8px 22px -8px rgba(176, 122, 63, 1); background: #c98d4b; }
  }
}
@media (max-width: 700px) { body .stages { gap: 6px; flex-wrap: wrap; overflow: visible; } body .stages span + span { margin-left: 0; } body .stages span + span::before { display: none; } }

/* Fields: taller, rounder, copper focus ring; labels lighter */
body form.entry input, body form.entry select, body form.entry textarea, body .filters input, body .filters select, body .login input {
  font: 14.5px var(--font); padding: 8px 11px; min-height: 38px; border: 1px solid #cfd4db; border-radius: 6px; background: #fff; color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; }
body form.entry input:hover, body form.entry select:hover, body .filters input:hover, body .filters select:hover { border-color: var(--steel); }
body form.entry input:focus, body form.entry select:focus, body form.entry textarea:focus, body .filters input:focus, body .filters select:focus, body .login input:focus { outline: none; border-color: var(--copper); box-shadow: var(--ring); }
body form.entry textarea.draft { font: 14px/1.5 var(--font); border-radius: 6px; }
body fieldset.group { border-radius: 8px; border-color: var(--line-2); padding: 12px 14px 14px; gap: 10px 14px; }
body fieldset.group legend { padding: 0 8px; }
body fieldset.group label, body form.entry > label { font-size: 12px; color: var(--muted); font-weight: 500; }
body .filters { border-radius: 8px; border-color: var(--line-2); box-shadow: none; }
body p.filters { gap: 10px 12px; align-items: center; margin: 0; }

/* Buttons: one shape, a highlight on top, lift on hover, press on click */
body a.btn.small, body form.entry button, body .filters button, body button.small, body .login button {
  display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px var(--font); letter-spacing: 0.01em; padding: 9px 16px; min-height: 38px; border-radius: 6px; border: 1px solid var(--btn); cursor: pointer; text-decoration: none;
  background: var(--btn); color: #fff; box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease; }
body a.btn.small:hover, body form.entry button:hover, body .filters button:hover, body button.small:hover, body .login button:hover { color: #fff; background: var(--btn-hover); border-color: var(--btn-hover); box-shadow: var(--ring); }
body a.btn.small:active, body form.entry button:active, body .filters button:active, body button.small:active, body .login button:active { background: var(--btn); box-shadow: none; }
body button.small, body a.btn.small.ghost { background: #fff; color: var(--navy); border-color: #cfd4db; box-shadow: none; }
body button.small:hover, body a.btn.small.ghost:hover { background: var(--bone); color: var(--navy); border-color: var(--steel); box-shadow: none; }
body form.entry button.primary, body button.small.primary { background: var(--copper); border-color: var(--copper); color: #fff; }
body form.entry button.primary:hover, body button.small.primary:hover { background: #9c6b35; border-color: #9c6b35; }
body .home-actions .btn { padding: 10px 18px; }
/* Buttons inside table rows sit beside status chips, so they take the chip's size and the copper (Gabe, 2026-11-05) */
body table.mini a.btn.small, body table.mini a.btn.small.ghost, body ul.plain a.btn.small, body .notices a.btn.small { min-height: 0; padding: 2px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.5; border-radius: 5px; white-space: nowrap; vertical-align: middle;
  background: #fff; border: 1px solid var(--copper); color: var(--copper); box-shadow: none; text-decoration: none; transform: none; }
body table.mini a.btn.small:hover, body table.mini a.btn.small.ghost:hover, body .notices a.btn.small:hover { background: var(--copper); border-color: var(--copper); color: #fff; text-decoration: none; transform: none; box-shadow: none; }

/* Collapsible sections: a chevron that turns, content that eases in */
body details.add > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 2px 0; user-select: none; }
body details.add > summary::-webkit-details-marker { display: none; }
body details.add > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--copper); border-bottom: 1.5px solid var(--copper); transform: rotate(-45deg); transition: transform 180ms ease; margin-left: 2px; }
body details.add[open] > summary::before { transform: rotate(45deg); }
body details.add > summary { border-radius: 6px; margin: 0 -8px; padding: 6px 8px; transition: background 140ms ease, color 140ms ease; }
body details.add > summary:hover { background: rgba(176, 122, 63, 0.08); color: var(--copper); }
body details.add > summary:hover::before { border-color: var(--copper); }
body details.add.card > summary { font-family: var(--font-display); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper); }
body details.add[open] > summary { margin-bottom: 10px; }
details > .dx-body { will-change: height; } /* motion.js wraps what follows a summary to animate its height */

/* Sign-in and password pages */
body .login { border-radius: var(--radius-lg); padding: 26px 28px; }
body .login form.entry { grid-template-columns: 1fr; }
/* Fields fill their grid column and never run past the card (the password form did; Gabe, 2026-11-05) */
body form.entry label { min-width: 0; }
body form.entry input, body form.entry select, body form.entry textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
body footer { padding: 28px 24px 36px; font-size: 11.5px; letter-spacing: 0.02em; }
body .banner { border-radius: 8px; }

/* "From SkyTerra" notices on the portal overview (2026-11-05): title, two or three sentences, a copper chip-sized button */
body .notices { list-style: none; margin: 0; padding: 0; }
body .notice { padding: 10px 0; border-top: 1px solid var(--line-2); }
body .notice:first-child { padding-top: 0; border-top: 0; }
body .notice h3 { font: 600 15px var(--font); letter-spacing: 0; margin: 0 0 4px; color: var(--ink); }
body .notice p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; max-width: 78ch; }
body .notice .notice-act { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; }

/* Overview tables share one grid: the site, service, dates and status columns sit at the same places in Running
   now, Upcoming and Finished, and the requests table's status column lines up with theirs (Gabe, 2026-11-06). */
@media (min-width: 700px) {
  body table.mini.jobs, body table.mini.reqs { table-layout: fixed; }
  body table.mini.jobs .c-site { width: 30%; }
  body table.mini.jobs .c-service { width: 19%; }
  body table.mini.jobs .c-dates { width: 29%; }
  body table.mini.jobs .c-status, body table.mini.reqs .c-status { width: 22%; }
  body table.mini.reqs .c-sent { width: 15%; }
  body table.mini.reqs .c-what { width: 30%; }
  body table.mini.reqs .c-where { width: 33%; }
  body table.mini.jobs td, body table.mini.reqs td { overflow-wrap: anywhere; }
  body table.mini.jobs td:last-child, body table.mini.reqs td:last-child { white-space: nowrap; }
  body table.mini.jobs td:last-child .btn, body table.mini.reqs td:last-child .btn { margin-left: 6px; vertical-align: baseline; }
  body table.mini.reqs td:last-child .sub { white-space: normal; }
}
/* A status chip that starts a table cell sits on the column edge, level with its header (Gabe, 2026-11-06). */
body table.mini td > .chip:first-child { margin-left: 0; }

/* Staff top bar, same treatment as the portal header: flat navy, copper hairline, quiet link hover, no sticky */
.topbar { background: var(--navy); border-bottom: 1px solid rgba(217, 166, 106, 0.4); box-shadow: none; min-height: 60px; }
.topbar nav a { border-radius: 6px; transition: background 140ms ease, color 140ms ease; }
.topbar nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.topbar nav a.on { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 -2px 0 var(--copper); }
.topbar-user button.link, .topbar-user span { font-family: var(--font); }
.sandbox-bar { font-family: var(--font); }
/* Staff grids take the portal table's hairlines and hover */
table.grid { border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-card); font-variant-numeric: tabular-nums; }
table.grid th { background: #fff; color: var(--steel); font-size: 11px; letter-spacing: 0.1em; padding: 10px 12px; border-bottom: 2px solid rgba(20, 27, 37, 0.1); }
table.grid td { border-bottom: 1px solid rgba(20, 27, 37, 0.06); }
table.grid tr:hover td { background: rgba(176, 122, 63, 0.05); }
.filters, fieldset.group { border-radius: 8px; border-color: var(--line-2); }
nav.sect-nav a { border-radius: 6px; }
.badge { border-radius: 999px; }
/* Filter rows: every control the same height on one baseline, the "Covering" label no longer lifted (Gabe, 2026-11-06) */
body .filters input, body .filters select, body .filters button { box-sizing: border-box; height: 38px; min-height: 38px; line-height: 20px; }
body .filters label.check { padding-bottom: 0; align-items: center; gap: 8px; }
body .filters .sub, body .filters .clear { padding-bottom: 0; align-self: center; }
body .filters #job-q { flex: 1 1 260px; min-width: 200px; }
/* The highlighted tile shows its copper on the bar underneath only; the old left edge stayed behind (Gabe, 2026-11-06) */
body .tile.accent, body .tile.warn, body .tile.bad { border-left-color: var(--line-2); }

/* Job page: a menu of its sections that stays in view while scrolling (2026-11-10). */
.job-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px rgba(20, 27, 37, 0.06); }
.job-nav::-webkit-scrollbar { display: none; }
.job-nav a { flex: 0 0 auto; padding: 6px 12px; border-radius: 6px; font-size: 13.5px; color: var(--slate); text-decoration: none; white-space: nowrap; }
.job-nav a:hover, .job-nav a:focus-visible { background: var(--copper-soft); color: var(--ink); }
main section.card[id] { scroll-margin-top: 58px; }
@media print { .job-nav { display: none; } }
/* Top menu: every item fits on a laptop-width window instead of running off the right edge. */
@media (max-width: 2100px) { .topbar { gap: 16px; padding: 0 16px; } .topbar nav a { padding: 8px 8px; font-size: 13.5px; } .nav-sep { margin: 0 3px; } }
@media (max-width: 1750px) { .topbar { gap: 12px; } .topbar nav a { padding: 7px 6px; font-size: 13px; } .nav-sep { margin: 0 2px; } }
@media (max-width: 1480px) { .topbar nav a { padding: 6px 5px; font-size: 12.5px; } }
