/* Keepwarm app styles. System fonts only: nothing is loaded from other sites (privacy). */
:root {
  --bg: #eef1f4; --surface: #ffffff; --sunk: #e4e9ee; --ink: #15202b; --muted: #586675; --line: #d3dae2;
  --accent: #1d56c9; --accent-soft: #e2eafb; --on-accent: #ffffff;
  --good: #17784a; --good-soft: #dff2e8; --warn: #a05a00; --warn-soft: #fbeeda; --bad: #b8321f; --bad-soft: #fbe3df;
  --violet: #6a44b8; --violet-soft: #ece5fa; --scrim: rgba(12, 20, 28, 0.42);
  --font-display: "Archivo", "Arial Narrow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141a; --surface: #161f28; --sunk: #1d2833; --ink: #e5ecf2; --muted: #93a2b2; --line: #2b3844;
    --accent: #7ea4ff; --accent-soft: #1d2c4a; --on-accent: #0b1220;
    --good: #5fcf96; --good-soft: #15322a; --warn: #f0b052; --warn-soft: #3a2a12; --bad: #ff8a76; --bad-soft: #3d1d18;
    --violet: #b9a0ff; --violet-soft: #2a2245; --scrim: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-row { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; flex-direction: column; min-width: 0; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; line-height: 1.1; }
.brand span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.envtag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 6px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.lang button { border: 0; background: transparent; padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.nav { display: flex; gap: 4px; }
.top-row .nav { min-width: 0; flex: 0 1 auto; }
.nav button { white-space: nowrap; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav button svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav button[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.nav button:hover { color: var(--ink); }
main { padding-block: 24px 48px; }
.loading { color: var(--muted); }

@media (max-width: 759px) {
  .top-row .nav { display: none; }
  .nav.bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); justify-content: space-around; }
  .nav.bottom button { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 4px; flex: 1; min-width: 0; }
  .nav.bottom button[aria-current="page"] { box-shadow: none; background: var(--accent-soft); color: var(--accent); }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 760px) { .nav.bottom { display: none; } }
body.signed-out .nav, body.signed-out .envtag { display: none !important; }
body.signed-out main { padding-bottom: 48px; }

.h1 { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.015em; line-height: 1.15; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0; }
.lead { color: var(--muted); margin: 6px 0 0; max-width: 64ch; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head > div { min-width: 0; flex: 1 1 280px; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.good { color: var(--good); }
.btn.bad { color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.linky { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; text-align: left; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--sunk); color: var(--muted); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.violet { background: var(--violet-soft); color: var(--violet); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field input, .field select, .field textarea, .box { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 8px 10px; width: 100%; }
textarea.box, .field textarea { resize: vertical; }
.copyrow { display: flex; gap: 8px; align-items: center; }
.copyrow input { flex: 1; min-width: 0; font-family: var(--font-data); font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 140px; }
.notice { background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* Today */
.today { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.dg-section { display: flex; flex-direction: column; gap: 10px; }
.dg-row { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.dg-row.done { background: var(--sunk); }
.dg-top { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.dg-top .who { font-weight: 600; }
.dg-top .what { color: var(--muted); min-width: 0; }
.dg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dg-done { color: var(--good); font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.empty { color: var(--muted); font-size: 14px; padding: 4px 0; }

/* Board */
.chips { display: none; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 13px; white-space: nowrap; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.scroll { overflow-x: auto; padding-bottom: 8px; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; align-items: start; }
.col { background: var(--sunk); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }
.col-head b { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.col-head .n { margin-left: auto; font-family: var(--font-data); font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.card { text-align: left; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.card:hover { border-color: var(--muted); }
.card .nm { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.card .pr { color: var(--muted); font-size: 13px; line-height: 1.35; }
.card .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.list { display: none; flex-direction: column; gap: 8px; }
.search { max-width: 320px; }
@media (max-width: 759px) { .chips { display: flex; } .scroll { display: none; } .list { display: flex; } .search { max-width: none; flex: 1 1 100%; } }

/* Demos */
.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.demo { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.demo.focus { box-shadow: 0 0 0 3px var(--accent); }
.demo-top { display: flex; gap: 12px; align-items: flex-start; }
.demo-top .t { min-width: 0; flex: 1; }
.demo-top .t b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; }
.demo-top .t span { font-size: 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.formbox { background: var(--sunk); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }

/* Send in */
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 859px) { .grid2 { grid-template-columns: 1fr; } }
.result { border: 1px solid var(--good); background: var(--good-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; font-size: 14px; }
.result dt { color: var(--muted); }
.result dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.miss { color: var(--muted); font-style: italic; }

/* Setup and sign-in */
.settings { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.narrow { max-width: 480px; margin: 24px auto; }

/* Sheet */
.overlay { position: fixed; inset: 0; background: var(--scrim); z-index: 40; display: flex; justify-content: flex-end; }
.sheet { background: var(--surface); width: min(540px, 100%); height: 100%; overflow-y: auto;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  display: flex; flex-direction: column; gap: 18px; border-left: 1px solid var(--line); }
@media (max-width: 759px) {
  .overlay { align-items: flex-end; }
  .sheet { height: auto; max-height: 92%; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
}
.sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet section { display: flex; flex-direction: column; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg button { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input[type="date"] { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.thread { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; font-size: 14px; }
.thread.out { border-left-color: var(--accent); }
.thread .s { font-weight: 600; }
.thread .m { color: var(--muted); font-size: 12px; }
.thread .b { white-space: pre-wrap; overflow-wrap: anywhere; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.log li { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.log li .d { color: var(--muted); font-family: var(--font-data); font-size: 12px; padding-top: 1px; }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; background: #fff; color: #000; border-radius: 12px; }
.qrbox b { font: 800 28px/1 var(--font-data); letter-spacing: 0.04em; }
.qrbox span { font-size: 14px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); z-index: 60; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
@media (max-width: 759px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

@media print {
  body * { visibility: hidden; }
  .qrbox, .qrbox * { visibility: visible; }
  .qrbox { position: absolute; left: 0; top: 0; }
}

/* ---------- Results ---------- */
:root {
  /* Chart series, fixed order: enquiries, offers sent, won, lost (validated categorical palette). */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --offer: #c24f1f; --offer-soft: #fde7dc;
}
@media (prefers-color-scheme: dark) {
  :root { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --offer: #f08a5d; --offer-soft: #3d2216; }
}
.chip.offer { background: var(--offer-soft); color: var(--offer); }
.seg-period { display: flex; gap: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.tile .v { font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-panel { padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; min-width: 0; }
.chart-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-head .h2 { flex: 1 1 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-wrap .grid { stroke: var(--line); stroke-width: 1; }
.chart-wrap .axis-t { fill: var(--muted); font: 11px var(--font-body); font-variant-numeric: tabular-nums; }
.chart-wrap .hit { fill: transparent; cursor: default; }
.chart-wrap .hit:hover, .chart-wrap .hit.on { fill: var(--sunk); }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,0.12); min-width: 150px; z-index: 5; }
.tip b { display: block; margin-bottom: 4px; }
.tip div { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.tip div span:last-child { margin-left: auto; font-weight: 600; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.datatable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.datatable th, .datatable td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.datatable th:first-child, .datatable td:first-child { text-align: left; }
.datatable th { color: var(--muted); font-weight: 600; font-size: 12px; }
.tablewrap { overflow-x: auto; }
.grid2b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 859px) { .grid2b { grid-template-columns: 1fr; } }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 40%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.bar-row .track { height: 10px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--s4); border-radius: 0 4px 4px 0; }
.bar-row .n { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 2ch; text-align: right; }
.result-box { background: var(--sunk); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.value-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.value-row input { max-width: 180px; }
@media (max-width: 759px) {
  .nav.bottom button span { font-size: 10px; }
}

/* Results: lists behind the numbers */
button.tile { text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.tile:hover { border-color: var(--muted); }
button.tile.active { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }
button.bar-row { border: 0; background: none; padding: 4px 0; text-align: left; width: 100%; cursor: pointer; color: inherit; font: inherit; border-radius: 6px; }
button.bar-row:hover { background: var(--sunk); }
.chart-wrap .hit { cursor: pointer; }
.drill { margin-bottom: 16px; }
.drill-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drill-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 4px; color: inherit; font: inherit; cursor: pointer; }
.drill-row:hover { background: var(--sunk); }
.dr-main { display: flex; flex-direction: column; min-width: 0; }
.dr-side { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Machines: usual use, history */
.mc-usual { font-size: 13px; }
.mc-usual .hint { margin-right: 4px; }
.mc-history summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; }
.mc-history .log { margin-top: 8px; }
.mc-history .log li { grid-template-columns: 60px 1fr; }
.card .chip { white-space: normal; max-width: 100%; }

/* Setup: tabs on/off */
.mod-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mod-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mod-row input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.mod-row > span { display: flex; flex-direction: column; min-width: 0; }
.mod-row input:disabled + span { opacity: 0.7; }

/* ---------- Optional tabs ---------- */
/* More menu */
.more-wrap { position: relative; display: flex; }
.nav .more-wrap > button { display: flex; align-items: center; gap: 8px; }
.more-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.14); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.nav .more-menu button { width: 100%; justify-content: flex-start; flex-direction: row !important; font-size: 14px !important; padding: 9px 12px !important; }
@media (max-width: 759px) {
  .nav.bottom .more-wrap { display: contents; }
  .nav.bottom .more-menu { position: fixed; top: auto; right: 8px; left: 8px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); min-width: 0; }
  .nav.bottom .more-menu button { font-size: 15px !important; padding: 12px 14px !important; gap: 12px !important; flex: none !important; }
  .nav.bottom .more-menu button svg { width: 20px; height: 20px; }
  .nav.bottom .more-menu button span { font-size: 15px; }
}
.brand { flex-shrink: 0; }
.brand b { white-space: nowrap; }

/* Lists of rows */
.mlist { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.mlist > .h2 { display: flex; gap: 8px; align-items: baseline; }
.mrow { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.mrow.due { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.mrow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.mrow-side { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.mrow-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mrow-actions:empty { display: none; }
.mform { margin-bottom: 16px; max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.mform .row > .field { flex: 1 1 160px; }

/* Workshop columns: side by side on a computer, stacked on a phone */
.job { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.job-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.job .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.job .row { gap: 6px; }
.job .formbox { padding: 10px; }
.ws .cols { grid-auto-columns: minmax(200px, 1fr); }
@media (max-width: 759px) {
  .scroll.ws { display: block; }
  .ws .cols { grid-auto-flow: row; grid-auto-columns: auto; }
}

/* Bookings planner */
.tl { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.tl-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; min-width: 560px; }
.tl-head { position: sticky; top: 0; }
.tl-name { display: flex; flex-direction: column; text-align: left; border: 0; background: none; padding: 4px 2px; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.tl-name b { font-family: var(--font-data); font-size: 13px; }
.tl-name .hint { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-name:hover b { color: var(--accent); }
.tl-days { display: grid; }
.tl-day { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-family: var(--font-data); padding: 2px 0; border-radius: 4px; }
.tl-day .hint { font-size: 10px; }
.tl-day.we { background: var(--sunk); }
.tl-day.is-today { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.tl-track { position: relative; height: 30px; background: var(--sunk); border-radius: 6px; }
.tl-bar { position: absolute; top: 3px; bottom: 3px; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 5px; font-size: 12px; font-weight: 600;
  padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; cursor: pointer; min-width: 6px; }
.tl-bar.out { background: var(--warn); color: #fff; cursor: default; }

/* Handover checks */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--good); flex-shrink: 0; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); display: block; background: var(--sunk); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 16px; line-height: 1; }

/* Trade show capture: big targets for a phone on a stand */
.capture { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.capture .row > .field { flex: 1 1 200px; }
.box.big { font-size: 17px; padding: 12px; }
.btn.big { font-size: 16px; padding: 12px 20px; }
.rating button { padding: 9px 16px; font-size: 15px; }
@media (max-width: 759px) {
  .tl-row { grid-template-columns: 84px 1fr; min-width: 0; }
}
