/* Fielday. A dispatch whiteboard: flat, dense, navy on white. One accent, the brand blue:
   solid for the main action, a pale tint for "the planner did this". Orange only ever means
   "urgent or wrong". Brand: ../../brand/README.md (Haydn, 4 Dec 2026: blue on white throughout). */
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --board: #fff;                        /* the whiteboard */
  --board-sunk: #F3F5F9;                /* tray, inputs */
  --board-rule: rgb(11 21 51 / 0.11);
  --board-rule-strong: rgb(11 21 51 / 0.22);
  --ink: #0B1533;                       /* navy */
  --ink-2: #475069;
  --ink-3: #667085;
  --blue: #2456F5; --blue-deep: #1B45D1; /* the brand, the main action */
  --hivis: #DCE6FF;                     /* the planner's colour: a blue tint */
  --hivis-deep: #1B45D1;
  --cone: oklch(0.74 0.16 55);          /* breakdowns */
  --cone-deep: oklch(0.5 0.17 35);      /* problems, text-safe */
  --road: rgb(11 21 51 / 0.28);  /* driving hatch */
  --gap: 4px; --r: 3px;
  --narrow: 78%; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font: 14px/1.4 "Archivo", system-ui, sans-serif; color: var(--ink); background: var(--board);
  font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
/* One dropdown everywhere, drawn by us rather than by the browser. */
select { appearance: none; -webkit-appearance: none; padding-right: 26px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230B1533' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 9px center !important; background-size: 9px 6px !important; }
select:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
[hidden] { display: none !important; }
a { color: var(--blue-deep); text-underline-offset: 2px; }
.mark { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn { height: 32px; padding: 0 12px; border: 1px solid var(--board-rule-strong); border-radius: var(--r);
  background: var(--board); font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .12s var(--ease), transform .12s var(--ease); }
.btn:hover { background: var(--board-sunk); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.go { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.go:hover { background: var(--blue-deep); }
.btn.plan { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.plan:hover { background: var(--blue-deep); }
.btn.quiet { border-color: transparent; font-weight: 500; color: var(--ink-2); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; }
.field { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea, .inp { height: 34px; padding: 0 10px; border: 1px solid var(--board-rule-strong);
  border-radius: var(--r); background: var(--board-sunk); font-weight: 400; color: var(--ink); width: 100%; }
.field textarea { height: auto; padding: 8px 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; background: var(--board); }

/* top bar */
.top { display: flex; align-items: center; gap: 20px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--board-rule-strong); }
.mark { font-family: "Jakarta", "Archivo", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.035em; }
.mark { display: inline-flex; align-items: center; gap: 6px; }
.mark::before { content: ''; width: 16px; height: 21px; background: url(mark.svg) center / contain no-repeat; flex: none; }
.mark i { display: none; }
.tabs { display: flex; gap: 2px; height: 100%; }
.tabs a { display: flex; align-items: center; padding: 0 12px; color: var(--ink-2); text-decoration: none; font-weight: 600;
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--blue); }
.tabs .n { margin-left: 6px; font-size: 11px; padding: 0 5px; border-radius: 8px; background: var(--cone); color: var(--ink); }
.top .who { margin-left: auto; color: var(--ink-3); font-size: 13px; display: flex; align-items: center; gap: 8px; }

/* day header: date, the numbers, the planner */
.dayhead { display: flex; align-items: center; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.dayhead h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; min-width: 11ch; }
.datenav { display: flex; gap: 2px; }
.numbers { display: flex; gap: 20px; margin-left: 8px; color: var(--ink-2); font-size: 13px; }
.numbers b { color: var(--ink); font-size: 16px; font-weight: 700; margin-right: 4px; }
.numbers .bad b { color: var(--cone-deep); }
.split { width: 140px; height: 10px; display: flex; border: 1px solid var(--ink); align-self: center; }
.split .tools { background: var(--ink); }
.split .road { flex: 1; background: repeating-linear-gradient(-45deg, transparent 0 3px, var(--road) 3px 4.5px); }
.dayhead .acts { margin-left: auto; display: flex; gap: 8px; }

.proposal { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--hivis); border-block: 1px solid var(--blue); font-weight: 600; flex-wrap: wrap; }
.proposal .was { font-weight: 400; }
.proposal .acts { margin-left: auto; display: flex; gap: 8px; }
.proposal .btn { background: var(--board); border-color: var(--board-rule-strong); }
.proposal .btn.go { background: var(--blue); border-color: var(--blue); }
.proposal .btn.go:hover { background: var(--blue-deep); }

/* the board */
.boardwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-top: 1px solid var(--board-rule-strong); min-height: calc(100dvh - 110px); }
.board { overflow-x: auto; }
.board-in { min-width: 820px; }
.hours, .run { display: grid; grid-template-columns: 172px 1fr; }
.hours { height: 24px; border-bottom: 1px solid var(--board-rule); font-size: 11px; color: var(--ink-3); }
.hours .scale { position: relative; }
.hours span { position: absolute; top: 5px; transform: translateX(-50%); }
.run { min-height: 58px; border-bottom: 1px solid var(--board-rule); }
.run.over .lane { background: rgb(36 86 245 / 0.08); }
.run .name { padding: 8px 8px 8px 16px; border-right: 1px solid var(--board-rule); display: grid; align-content: center; gap: 1px; position: relative; }
.run .name strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run .name small { color: var(--ink-3); font-size: 11.5px; font-stretch: var(--narrow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run .name .btn { position: absolute; right: 6px; top: 6px; opacity: 0; }
.run:hover .name .btn, .run .name .btn:focus-visible { opacity: 1; }
.run.off { color: var(--ink-3); background: var(--board-sunk); }
.run.off .name .btn { opacity: 1; }
.run.off .lane::after { content: "Off today"; position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-size: 12px; }
.lane { position: relative; }
.tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--board-rule); }
.lane .shift { position: absolute; top: 0; bottom: 0; background: var(--board-sunk); }
.drive { position: absolute; top: 50%; height: 8px; translate: 0 -50%;
  background: repeating-linear-gradient(-45deg, transparent 0 3px, var(--road) 3px 4.5px); }
.job { position: absolute; top: 9px; bottom: 9px; padding: 3px 6px; border: 1px solid var(--board-rule-strong); border-radius: var(--r);
  background: var(--board); overflow: hidden; cursor: grab; text-align: left; font-stretch: var(--narrow); line-height: 1.25;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease); display: grid; align-content: center; }
.job:hover { border-color: var(--ink); z-index: 2; }
.job b { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.job span { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.job.p1 { background: var(--cone); border-color: var(--ink); }
.job.p1 span { color: var(--ink); }
.job.moved { background: var(--hivis); border-color: var(--blue); }
.job.moved span { color: var(--ink); }
.job.on_site { background: var(--ink); border-color: var(--ink); }
.job.on_site b, .job.on_site span { color: var(--board); }
.job.travelling { border: 1.5px dashed var(--ink); }
.job.done { background: transparent; border-style: dotted; }
.job.done b { text-decoration: line-through; color: var(--ink-3); font-weight: 600; }
.job.flag { border: 2px solid var(--cone-deep); }
.job.pin::after { content: ""; position: absolute; right: 3px; top: 3px; width: 5px; height: 5px; background: var(--ink); border-radius: 50%; }
.job.sel { outline: 2px solid var(--blue); outline-offset: 1px; z-index: 3; }
.job.dragging { opacity: .4; }
.empty-run { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--ink-3); font-size: 12px; }

/* side: waiting tray and job detail */
.side { border-left: 1px solid var(--board-rule-strong); background: var(--board-sunk); display: flex; flex-direction: column; min-width: 0; }
.side h2 { font-size: 12px; font-weight: 700; padding: 12px 14px 6px; display: flex; justify-content: space-between; }
.side h2 span { color: var(--ink-3); font-weight: 500; }
.tray { padding: 0 8px 12px; display: grid; gap: 4px; }
.tray.over { outline: 2px dashed var(--ink); outline-offset: -4px; }
.wjob { position: static; display: grid; grid-template-columns: 38px 1fr auto; gap: 2px 8px; align-items: center; padding: 7px 8px; height: auto; font-stretch: 100%; width: 100%; }
.wjob .code { grid-row: span 2; font-size: 10.5px; font-weight: 700; font-stretch: var(--narrow); text-align: center; border: 1px solid currentColor; border-radius: 2px; padding: 1px 0; }
.wjob em { font-style: normal; font-size: 11px; color: var(--ink-2); }
.none { padding: 16px 14px; color: var(--ink-3); font-size: 13px; }
.detail { border-top: 1px solid var(--board-rule-strong); background: var(--board); padding: 14px; display: grid; gap: 10px; margin-top: auto; position: sticky; bottom: 0; }
.detail h3 { font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.detail dl { display: grid; grid-template-columns: 74px 1fr; gap: 3px 8px; margin: 0; font-size: 13px; }
.detail dt { color: var(--ink-3); }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.detail .warn { color: var(--cone-deep); font-weight: 600; font-size: 13px; }
.detail .row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; font-stretch: var(--narrow); border: 1px solid currentColor; border-radius: 2px; padding: 0 4px; }

/* plain pages: due, customers, pipeline */
.page { padding: 16px; max-width: 1180px; }
.page > h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.page > .sub { color: var(--ink-2); margin-bottom: 16px; max-width: 70ch; }
table.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 6px 10px; border-bottom: 1px solid var(--board-rule-strong); }
.list td { padding: 8px 10px; border-bottom: 1px solid var(--board-rule); vertical-align: middle; overflow-wrap: anywhere; }
.list tr:hover td { background: var(--board-sunk); }
.overdue { color: var(--cone-deep); font-weight: 700; }
.two { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; border: 1px solid var(--board-rule-strong); border-radius: var(--r); min-height: 60dvh; }
.two nav { border-right: 1px solid var(--board-rule-strong); background: var(--board-sunk); }
.two nav button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--board-rule); background: none; cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.two nav button small { display: block; font-weight: 400; color: var(--ink-3); }
.two nav button:hover { background: var(--board); }
.two nav button[aria-current] { background: var(--hivis); color: var(--ink); box-shadow: inset 3px 0 0 var(--blue); }
.two nav button[aria-current] small { color: var(--ink-2); }
.two section { padding: 16px; display: grid; gap: 20px; align-content: start; }
.site h3 { font-size: 15px; font-weight: 700; }
.site .addr { color: var(--ink-2); font-size: 13px; }
.site .access { margin: 6px 0; padding: 6px 10px; background: var(--board-sunk); border-radius: var(--r); font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.site .access code { font: inherit; font-weight: 700; background: var(--hivis); padding: 0 6px; }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--board-rule-strong); border-radius: var(--r); }
.stage { border-right: 1px solid var(--board-rule-strong); min-height: 50dvh; }
.stage:last-child { border-right: 0; }
.stage > h2 { font-size: 12px; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--board-rule-strong); display: flex; justify-content: space-between; background: var(--board-sunk); }
.stage > h2 span { font-weight: 500; color: var(--ink-2); }
.opp { padding: 10px 12px; border-bottom: 1px solid var(--board-rule); display: grid; gap: 3px; }
.opp strong { font-weight: 700; overflow-wrap: anywhere; }
.opp .meta { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.opp .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.opp .val { font-weight: 700; }
.opp select { height: 26px; font-size: 12px; padding-left: 8px; border: 1px solid var(--board-rule-strong); border-radius: var(--r); background: var(--board); }
.newopp { padding: 12px; display: grid; gap: 8px; border-bottom: 1px solid var(--board-rule-strong); }
.toast { position: fixed; left: 50%; bottom: 20px; translate: -50% 0; background: var(--ink); color: var(--board); padding: 9px 14px; border-radius: var(--r); font-weight: 600; z-index: 20; max-width: 90vw; }

/* sign in */
.signin { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 440px) 1fr; }
.signin form { padding: 14vh 40px 40px; display: grid; gap: 14px; align-content: start; }
.signin h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 28px; }
.signin p { color: var(--ink-2); }
.signin .err { color: var(--cone-deep); font-weight: 600; min-height: 1.4em; }
.signin .btn { height: 40px; }
.signin aside { border-left: 1px solid var(--board-rule); background: var(--board-sunk); overflow: hidden; padding: 14vh 0 0 56px; }
/* The day board itself, running off the right and bottom edge. No slogan. */
.signin aside img { display: block; width: max(1190px, calc(100% + 40px)); height: auto; border: 1px solid var(--board-rule-strong);
  border-radius: 6px 0 0 0; background: var(--board); }

/* the engineer's day, on a phone */
.eng { max-width: 520px; margin: 0 auto; padding: 0 0 40px; }
.eng header { position: sticky; top: 0; z-index: 5; background: var(--board); border-bottom: 1px solid var(--board-rule-strong);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; display: flex; align-items: baseline; gap: 10px; }
.eng header h1 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.eng header p { color: var(--ink-2); font-size: 13px; }
.eng header .btn { margin-left: auto; align-self: center; }
.eng .leg { margin: 0 16px 0 37px; padding: 5px 0 5px 14px; font-size: 12px; color: var(--ink-2); border-left: 8px solid transparent;
  border-image: repeating-linear-gradient(-45deg, transparent 0 3px, var(--road) 3px 4.5px) 8; }
.stop { margin: 0 16px; border: 1px solid var(--board-rule-strong); border-radius: var(--r); background: var(--board); }
.stop > button { width: 100%; display: grid; grid-template-columns: 52px 1fr auto; gap: 2px 10px; text-align: left; padding: 12px; min-height: 64px;
  border: 0; background: none; cursor: pointer; align-items: center; }
.stop .t { grid-row: span 2; font-weight: 800; font-size: 17px; }
.stop b { font-size: 15px; overflow-wrap: anywhere; }
.stop .what { grid-column: 2; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.stop .st { grid-row: 1 / span 2; grid-column: 3; font-size: 11px; font-weight: 700; font-stretch: var(--narrow); border: 1px solid currentColor; border-radius: 2px; padding: 1px 5px; }
.stop.p1 { border: 2px solid var(--ink); background: var(--cone); }
.stop.p1 .what { color: var(--ink); }
.stop.next { border: 2px solid var(--blue); }
.stop.done { border-style: dotted; }
.stop.done b, .stop.done .t { color: var(--ink-3); text-decoration: line-through; font-weight: 600; }
.stop .more { padding: 0 12px 12px; display: grid; gap: 10px; }
.stop .more p { font-size: 14px; overflow-wrap: anywhere; }
.stop .more .lbl { font-size: 11.5px; font-weight: 700; color: var(--ink-3); display: block; }
.stop .more code { font: inherit; font-weight: 800; background: var(--hivis); padding: 1px 8px; font-size: 16px; }
.big { height: 52px; font-size: 16px; font-weight: 700; width: 100%; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips .btn { height: 44px; flex: 1; min-width: 72px; }
.chips .btn[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.eng .done-line { margin: 20px 16px 0; color: var(--ink-2); font-size: 13px; }

@media (max-width: 900px) {
  .boardwrap { grid-template-columns: 1fr; }
  .side { border-left: 0; border-top: 1px solid var(--board-rule-strong); }
  .two, .stages { grid-template-columns: 1fr; }
  .two nav { border-right: 0; border-bottom: 1px solid var(--board-rule-strong); max-height: 30dvh; overflow: auto; }
  .stage { border-right: 0; border-bottom: 1px solid var(--board-rule-strong); min-height: 0; }
  .signin { grid-template-columns: 1fr; } .signin aside { display: none; }
  .numbers { margin-left: 0; flex-wrap: wrap; gap: 12px; } .top .who span { display: none; }
  .top { flex-wrap: wrap; height: auto; gap: 0 12px; padding: 8px 12px 0; }
  .top .who { height: 32px; } .tabs { order: 3; width: 100%; height: 40px; overflow-x: auto; }
  .tabs a { white-space: nowrap; padding: 0 10px; }
  .detail { position: static; } .dayhead .acts { margin-left: 0; width: 100%; } .dayhead .acts .btn { width: 100%; height: 44px; }
  .page { padding: 12px; } .list td, .list th { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Now: the desk view. A decision list with who should take each job, beside the crew as it stands.
   The small runs are the day board in miniature: blocks on the clock, driving as hatching. */
.now { padding: 20px 24px 48px; }
.nowhead { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--board-rule-strong); }
.nowhead h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 12px; }
.nowhead h1 span { font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 2px 8px; border-radius: 10px; background: var(--cone); }
.nowhead p { margin-left: auto; color: var(--ink-2); font-size: 13px; }
.nowhead p b { color: var(--ink); font-size: 15px; font-weight: 700; margin-right: 6px; }
.nowgrid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 40px; align-items: start; }
.needs, .crew, .later { list-style: none; margin: 0; padding: 0; }
.need { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--board-rule); }
.need .what { display: grid; gap: 4px; align-content: start; padding-left: 14px; border-left: 3px solid var(--board-rule-strong); }
.need.urgent .what { border-left-color: var(--cone); }
.need .kind { font-size: 11px; font-weight: 700; font-stretch: var(--narrow); color: var(--ink-2); }
.need.urgent .kind { color: var(--cone-deep); }
.need .what b { font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.need .what p { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.need .what a { font-size: 12px; margin-top: 4px; justify-self: start; }
.who .lbl { font-size: 11px; font-weight: 700; font-stretch: var(--narrow); color: var(--ink-3); margin-bottom: 6px; }
.pick { display: grid; grid-template-columns: 52px minmax(200px, 300px) minmax(80px, 1fr) 96px; gap: 14px; align-items: center; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--r); }
.pick + .pick { border-top-color: var(--board-rule); border-radius: 0; }
.pick.best { background: var(--hivis); border-color: var(--blue); border-radius: var(--r); }
.pick.best + .pick { border-top-color: transparent; }
.pick .at { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.pick .nm { display: grid; gap: 1px; min-width: 0; }
.pick .nm b { font-size: 14px; font-weight: 700; }
.pick .nm small, .crew small, .later small { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.pick .nm em { font-style: normal; color: var(--cone-deep); font-weight: 600; }
.pick .btn { width: 100%; padding: 0 8px; }
.pick .nm small { line-height: 1.35; }
.pick.ring { grid-template-columns: minmax(0, 1fr) auto; padding-left: 0; }
.pick.ring .btn { width: auto; padding: 0 12px; }
.pick a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.mrun { position: relative; display: block; height: 14px; background: var(--board-sunk); border-radius: 2px; overflow: hidden; }
.pick.best .mrun { background: rgb(255 255 255 / 0.7); }
.mrun i { position: absolute; top: 0; bottom: 0; }
.mrun .blk { background: rgb(11 21 51 / 0.2); border-right: 1px solid var(--board); }
.mrun .blk.done { background: var(--ink); }
.mrun .blk.on_site, .mrun .blk.travelling, .mrun .blk.mine { background: var(--blue); }
.mrun .blk.urgent:not(.done) { background: var(--cone); }
.mrun .blk.flag:not(.done) { box-shadow: inset 0 0 0 2px var(--cone-deep); }
.mrun .drive { background: repeating-linear-gradient(-45deg, transparent 0 2px, var(--road) 2px 3px); }
.mrun .nowline { width: 2px; margin-left: -1px; background: var(--cone-deep); }
.now aside h2 { font-size: 11px; font-weight: 700; font-stretch: var(--narrow); color: var(--ink-3); padding: 20px 0 8px; border-bottom: 1px solid var(--board-rule-strong); display: flex; justify-content: space-between; }
.now aside h2 span { color: var(--cone-deep); }
.crew li { display: grid; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--board-rule); }
.crew li > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.crew b { font-size: 14px; font-weight: 700; }
.crew .cnt { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.crew .cnt em { font-style: normal; font-weight: 700; color: var(--cone-deep); margin-right: 6px; }
.crew li.off { opacity: .5; }
.later li { border-bottom: 1px solid var(--board-rule); }
.later a { display: grid; gap: 1px; padding: 10px 0 10px 12px; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.later a:hover { background: var(--board-sunk); }
.later b { font-size: 14px; font-weight: 600; }
.later li.bad a { border-left-color: var(--cone); }
.later li.ok b { font-weight: 400; color: var(--ink-2); }
.now .clear { padding: 28px 0; color: var(--ink-2); font-size: 15px; max-width: 52ch; }
@media (max-width: 1180px) { .nowgrid { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 760px) {
  .now { padding: 16px 16px 40px; } .nowhead p { margin-left: 0; }
  .need { grid-template-columns: 1fr; gap: 14px; }
  .pick { grid-template-columns: 48px minmax(0, 1fr) auto; } .pick .mrun { display: none; }
}

/* Priority marks: !!! breakdown, !! urgent, ! routine. Same three everywhere a job is named. */
.pri { font-weight: 800; font-stretch: 100%; letter-spacing: 0.02em; margin-right: 5px; color: var(--ink-3); }
.pri.p2 { color: var(--cone-deep); }
.pri.p3 { color: #fff; background: var(--cone-deep); padding: 0 4px; border-radius: 2px; }
.job.p1 .pri.p3 { background: var(--ink); }
/* Now: one recommended person, then everyone on request. */
.pick { grid-template-columns: 64px minmax(220px, 340px) minmax(80px, 1fr) 110px; }
.pick .at { display: grid; line-height: 1.1; }
.pick .at small { font-size: 11px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.who .assign { margin-top: 6px; color: var(--blue-deep); }
table.all { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
table.all th, table.all td { text-align: left; padding: 9px 12px 9px 0; border-top: 1px solid var(--board-rule); vertical-align: top; }
table.all thead th { font-size: 11px; font-weight: 700; font-stretch: var(--narrow); color: var(--ink-3); border-top: 0; padding-bottom: 4px; }
table.all tbody th { font-weight: 700; white-space: nowrap; }
table.all small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); white-space: normal; }
table.all small em { font-style: normal; color: var(--cone-deep); font-weight: 600; }
table.all .arr b { font-size: 15px; font-weight: 800; }
table.all td:nth-child(2) { white-space: nowrap; color: var(--ink-2); }
table.all td:last-child { padding-right: 0; text-align: right; width: 1%; }
table.all tr.cant th, table.all tr.cant td { color: var(--ink-3); }
.upc { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--ink-2); }
.upc > span { white-space: nowrap; }
.upc .more, .upc.none { color: var(--ink-3); }
@media (max-width: 760px) { .pick { grid-template-columns: 56px minmax(0, 1fr); } .pick .btn { grid-column: 1 / -1; }
  table.all thead { display: none; } table.all tr { display: grid; padding: 8px 0; border-top: 1px solid var(--board-rule); } table.all th, table.all td { border: 0; padding: 2px 0; } table.all td:last-child { text-align: left; width: auto; } }
table.all th:nth-child(4), table.all td:nth-child(4) { min-width: 250px; }
.pick.best { align-items: center; padding: 12px 14px; }
abbr.pri { text-decoration: none; cursor: default; display: inline; }
.job abbr.pri { margin-right: 4px; }
.job.p1 abbr.pri.p3 { background: var(--ink); }

/* Messages: the switches on the left, the record on the right. */
.page.msgs { max-width: none; }
.msgs .hold { border: 1px solid var(--cone); border-left-width: 4px; border-radius: var(--r); padding: 10px 14px; margin-bottom: 20px; max-width: 900px; }
.msgrid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; align-items: start; }
.msgs h2 { font-size: 11px; font-weight: 700; font-stretch: var(--narrow); color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--board-rule-strong); display: flex; justify-content: space-between; }
.kinds, .log { list-style: none; margin: 0; padding: 0; }
.kinds li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--board-rule); }
.kinds li > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.kinds b { font-size: 15px; } .kinds small { color: var(--ink-2); font-size: 12px; }
.kinds p { margin-top: 6px; padding: 8px 10px; background: var(--board-sunk); border-radius: 10px 10px 10px 2px; font-size: 13px; overflow-wrap: anywhere; }
.kinds li.off p, .kinds li.off b { color: var(--ink-3); }
.switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 12px; color: var(--ink-2); padding: 4px 0; min-width: 62px; }
.switch i { width: 30px; height: 18px; border-radius: 9px; background: var(--board-rule-strong); position: relative; transition: background .15s var(--ease); }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: translate .15s var(--ease); }
.switch[aria-checked="true"] i { background: var(--blue); } .switch[aria-checked="true"] i::after { translate: 12px 0; }
.log li { padding: 12px 0; border-bottom: 1px solid var(--board-rule); display: grid; gap: 4px; }
.log .meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.log .meta span { color: var(--ink-2); font-size: 12px; } .log time { margin-left: auto; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.log p { font-size: 14px; max-width: 80ch; overflow-wrap: anywhere; }
.log small { font-size: 12px; color: var(--ink-2); } .log small.held { color: var(--cone-deep); font-weight: 600; }
@media (max-width: 980px) { .msgrid { grid-template-columns: 1fr; gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .switch i, .switch i::after { transition: none; } }
/* The engineer's notices from the office. */
.notices { margin: 12px 16px 0; border: 2px solid var(--blue); border-radius: var(--r); background: var(--hivis); padding: 12px; display: grid; gap: 10px; }
.notices ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; } .notices li { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.notices .btn { justify-self: start; height: 40px; background: var(--board); }

/* Top bar now carries more pages: the working pages, a gap, then the back-office ones. */
.tabs a[href="#messages"] { margin-left: 18px; }
.tabs a[href="#messages"], .tabs a[href="#hours"], .tabs a[href="#report"], .tabs a[href="#setup"] { font-weight: 500; font-size: 13px; padding: 0 9px; }
.top { overflow-x: auto; } .top .who { flex: none; }
.page.wide { max-width: none; padding: 20px 24px 48px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; } .pagehead .sub { color: var(--ink-2); max-width: 70ch; }
.pagehead .acts { display: flex; align-items: center; gap: 8px; } .pagehead .acts a.btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); margin-left: 12px; }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.hint { color: var(--ink-2); font-size: 13px; max-width: 76ch; } .scroll { overflow-x: auto; }
.stack { display: grid; gap: 12px; align-content: start; } .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
/* Dialogs */
.dlg { border: 1px solid var(--board-rule-strong); border-radius: 6px; padding: 0; width: min(520px, calc(100vw - 24px)); color: var(--ink); background: var(--board); }
.dlg.wide { width: min(760px, calc(100vw - 24px)); } .dlg::backdrop { background: rgb(11 21 51 / 0.35); }
.dlg header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--board-rule); }
.dlg header h2 { font-size: 17px; font-weight: 700; } .dlg > form, .dlg > div { padding: 18px 20px 20px; }
.dlg .btn.go { height: 40px; justify-self: start; padding: 0 20px; }
.prio, .checks { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.prio legend, .checks legend { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; padding: 0; }
.prio label, .checks label { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--board-rule-strong); border-radius: var(--r); cursor: pointer; font-size: 13px; font-weight: 600; }
.prio input { position: absolute; opacity: 0; } .prio label:has(:checked) { background: var(--hivis); border-color: var(--blue); } .prio label:has(:focus-visible) { outline: 2px solid var(--blue); }
.prio b { color: var(--cone-deep); }
.cred { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; } .cred span { color: var(--ink-2); font-size: 13px; } .cred code { font: 600 16px ui-monospace, Menlo, monospace; background: var(--board-sunk); padding: 4px 8px; user-select: all; }
/* Hours */
table.wk { width: 100%; border-collapse: collapse; min-width: 980px; }
.wk th, .wk td { border: 1px solid var(--board-rule); padding: 0; vertical-align: top; text-align: left; }
.wk thead th { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 8px 10px; background: var(--board-sunk); } .wk th.today { color: var(--blue-deep); }
.wk tbody th { padding: 10px; font-weight: 700; white-space: nowrap; } .wk td.today { background: rgb(36 86 245 / 0.04); }
.wk .cell { display: grid; gap: 3px; width: 100%; height: 100%; min-height: 78px; padding: 8px 10px; border: 0; background: none; text-align: left; cursor: pointer; align-content: start; }
.wk .cell:hover { background: var(--board-sunk); } .wk .cell b { font-size: 15px; } .wk small { font-size: 11px; color: var(--ink-2); }
.wk .cell.empty { color: var(--ink-3); font-size: 12px; min-height: 78px; } .wk .sum { padding: 8px 10px; display: grid; gap: 2px; } .wk .sum b { font-size: 15px; }
.share { display: flex; height: 6px; width: 100%; border-radius: 1px; overflow: hidden; } .share .son { background: var(--blue); } .share .sdr { background: repeating-linear-gradient(-45deg, var(--board-sunk) 0 2px, var(--road) 2px 3px); }
/* Report */
.headline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--board-rule-strong); margin-bottom: 24px; }
.headline p { padding: 18px 24px 18px 0; font-size: 15px; } .headline p + p { padding-left: 24px; border-left: 1px solid var(--board-rule); }
.headline b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; } .headline small { display: block; margin-top: 4px; color: var(--ink-2); font-size: 13px; }
.headline p.bad b { color: var(--cone-deep); }
table.rep th, table.rep td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--board-rule); } table.rep thead th { font-size: 12px; color: var(--ink-2); }
table.rep .bar { display: flex; align-items: center; gap: 10px; min-width: 220px; } .share.wide { height: 10px; }
/* Setup */
.setgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.setup h2 { font-size: 11px; font-weight: 700; font-stretch: var(--narrow); color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--board-rule-strong); display: flex; justify-content: space-between; margin-bottom: 12px; }
.setup h2:not(:first-child) { margin-top: 32px; } .setup h3 { font-size: 15px; font-weight: 700; margin: 24px 0 10px; } .setup .btn { justify-self: start; }
.people { list-style: none; margin: 0; padding: 0; } .people li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--board-rule); }
.people li > div { flex: 1; display: grid; gap: 1px; min-width: 0; } .people small { color: var(--ink-2); font-size: 12px; overflow-wrap: anywhere; } .people li.off { opacity: .5; }
.checks input { accent-color: var(--blue); } .setup textarea { font: 12px/1.4 ui-monospace, Menlo, monospace; width: 100%; padding: 8px; border: 1px solid var(--board-rule-strong); border-radius: var(--r); background: var(--board-sunk); }
.setup .out p { font-weight: 600; margin-bottom: 8px; }
@media (max-width: 1180px) { .setgrid { grid-template-columns: 1fr; gap: 8px; } .headline { grid-template-columns: 1fr; } .headline p + p { padding-left: 0; border-left: 0; border-top: 1px solid var(--board-rule); } }
.daybtn { margin: 12px 16px 0; width: calc(100% - 32px); } .daynote { margin-top: 8px; }
table.rep tbody th { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
table.rep .bar b { white-space: nowrap; min-width: 40px; } table.rep .bar .share { flex: 1; }
.dlg .prio { margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   The desk system (4 Dec 2026). Haydn: it has to stand beside ClickUp, Joblogic and Simpro.
   One frame: side navigation, a top bar with search, white panels on a pale canvas.
   One type family (Plus Jakarta Sans, the logo's own), one blue, one radius, borders plus a whisper of shadow.
   Everything above this line still supplies layout; this layer sets how it looks.
   ═══════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/jakarta-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
:root {
  --canvas: #F5F7FA; --panel: #fff; --line: #E4E8EF; --line-strong: #CDD4DF;
  --board-rule: var(--line); --board-rule-strong: var(--line-strong); --board-sunk: #F1F4F8;
  --ink-2: #4A556B; --ink-3: #6B7689; --tint: #EEF3FF; --hivis: #E3EBFF;
  --r: 7px; --r-panel: 10px; --narrow: 100%;
  --lift: 0 1px 2px rgb(11 21 51 / 0.05); --float: 0 12px 32px rgb(11 21 51 / 0.14), 0 2px 6px rgb(11 21 51 / 0.06);
}
html { font: 14px/1.45 "Jakarta", system-ui, sans-serif; letter-spacing: -0.005em; }
body.app { background: var(--canvas); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* frame */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100dvh; }
.side { background: var(--panel); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 18px 12px 12px; }
.side .mark { font-size: 21px; padding: 0 8px 18px; text-decoration: none; color: var(--ink); } .side .mark::before { width: 18px; height: 24px; }
.side nav { display: grid; gap: 2px; align-content: start; flex: 1; overflow-y: auto; }
.side nav p { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 14px 10px 6px; letter-spacing: 0.02em; }
.side nav p:first-child { padding-top: 0; }
.side nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; border: 0; margin: 0; }
.side nav a:hover { background: var(--board-sunk); color: var(--ink); }
.side nav a[aria-current] { background: var(--tint); color: var(--blue-deep); font-weight: 600; border: 0; }
.side nav a .n { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--cone); color: var(--ink); }
.sidefoot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
.sidefoot div { display: grid; min-width: 0; } .sidefoot b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidefoot small { color: var(--ink-3); font-size: 12px; }
.sidefoot .btn { grid-column: 1 / -1; justify-self: start; padding: 0; height: 26px; color: var(--ink-2); }
.sidefoot .av { background: var(--ink); color: #fff; border-radius: 8px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: rgb(255 255 255 / 0.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar #newjob { margin-left: auto; }
.search { position: relative; width: min(440px, 100%); display: flex; align-items: center; }
.search > svg { position: absolute; left: 11px; color: var(--ink-3); width: 16px; height: 16px; pointer-events: none; }
.search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--board-sunk); font: inherit; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); } .search input:focus { outline: 0; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(36 86 245 / 0.14); }
#hits { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--float); padding: 6px; display: grid; max-height: 60vh; overflow: auto; }
#hits button { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 10px; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; color: var(--ink); }
#hits button:hover, #hits button:focus-visible { background: var(--tint); } #hits small { grid-row: span 2; color: var(--ink-3); font-size: 12px; align-self: center; }
#hits b { font-weight: 600; } #hits span { grid-column: 2; color: var(--ink-2); font-size: 12px; } #hits p { padding: 10px; color: var(--ink-2); }

/* controls */
.btn { height: 34px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-weight: 600; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--lift); text-decoration: none; }
.btn:hover { background: var(--board-sunk); } .btn svg { width: 16px; height: 16px; stroke-width: 2.2; }
.btn.go, .btn.plan, .proposal .btn.go { background: var(--blue); border-color: var(--blue); color: #fff; } .btn.go:hover, .btn.plan:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.quiet { border-color: transparent; box-shadow: none; background: none; font-weight: 500; } .btn.quiet:hover { background: var(--board-sunk); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; } .btn.big { height: 52px; font-size: 16px; }
.btn[aria-pressed="true"] { background: var(--tint); color: var(--blue-deep); border-color: var(--blue); }
.field { font-size: 12.5px; font-weight: 600; color: var(--ink-2); gap: 5px; }
.field input, .field select, .field textarea, .inp, .opp select { height: 36px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus, select:focus-visible { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(36 86 245 / 0.14); background: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0; flex: none; }
.av.sm { width: 22px; height: 22px; font-size: 9.5px; }
.av.a0 { background: #E3EBFF; color: #1B45D1; } .av.a1 { background: #DDF3EC; color: #0C6B55; } .av.a2 { background: #EFE6FF; color: #5A2BBE; }
.av.a3 { background: #FFE9D4; color: #9A4A0B; } .av.a4 { background: #E4EAF2; color: #33405A; } .av.a5 { background: #FFE1E8; color: #A61B45; }
.person { display: inline-flex; align-items: center; gap: 9px; min-width: 0; } .person > span { display: grid; }
abbr.pri { font-weight: 800; font-size: 11px; padding: 1px 6px; border-radius: 10px; background: var(--board-sunk); color: var(--ink-2); margin-right: 6px; letter-spacing: 0.04em; }
abbr.pri.p2 { background: #FFE9D4; color: #9A4A0B; } abbr.pri.p3, .job.p1 abbr.pri.p3 { background: var(--cone-deep); color: #fff; }
.tag { border: 0; background: var(--board-sunk); border-radius: 10px; padding: 2px 9px; font-size: 12px; font-weight: 600; font-stretch: 100%; }

/* pages */
.page, .page.wide, .now { padding: 24px 28px 56px; max-width: none; }
.page > h1, .pagehead h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; } .page > .sub, .pagehead .sub { color: var(--ink-2); font-size: 14px; }
.panel, .nowgrid > section, .nowgrid > aside, .two, .stages, .msgrid > section, .setgrid > section, .scroll, .headline, table.rep, .page > table.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--lift); }
.none { color: var(--ink-3); }

/* Now */
.nowhead { border-bottom: 0; padding-bottom: 18px; align-items: center; } .nowhead h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }
.nowhead h1 span { background: #FFE9D4; color: #9A4A0B; font-weight: 700; } .nowhead p b { font-weight: 700; }
.nowgrid { gap: 20px; grid-template-columns: minmax(0, 1fr) 360px; }
.nowgrid > section { padding: 4px 20px; } .nowgrid > aside { padding: 0 18px 8px; }
.need { padding: 18px 0; border-bottom: 1px solid var(--line); } .need:last-child { border-bottom: 0; }
.need .what { border-left: 0; padding-left: 0; } .need .what b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.need .kind { display: inline-flex; align-items: center; justify-self: start; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--board-sunk); border-radius: 10px; padding: 2px 10px 2px 3px; margin-bottom: 4px; }
.need.urgent .kind { background: #FFE9D4; color: #9A4A0B; } .need .kind abbr.pri { margin-right: 6px; }
.who .lbl, .now aside h2, .msgs h2, .setup h2 { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.pick { grid-template-columns: 30px 60px minmax(200px, 320px) minmax(80px, 1fr) 118px; } .pick.ring { grid-template-columns: minmax(0, 1fr) auto; }
.pick.best { background: var(--tint); border: 1px solid #C9D8FF; border-radius: var(--r-panel); padding: 12px 14px; }
.pick .at { font-weight: 700; font-size: 18px; } .mrun { height: 12px; border-radius: 6px; background: #E9EDF3; } .pick.best .mrun { background: #fff; }
.mrun .blk { border-radius: 2px; } .who .assign { color: var(--blue-deep); font-weight: 600; }
table.all thead th { font-size: 12px; font-weight: 600; background: var(--board-sunk); padding: 7px 12px; } table.all thead th:first-child { border-radius: 6px 0 0 6px; } table.all thead th:last-child { border-radius: 0 6px 6px 0; }
table.all th, table.all td { padding: 10px 12px; border-top: 1px solid var(--line); } table.all tbody tr:first-child th, table.all tbody tr:first-child td { border-top: 0; }
table.all tbody tr:hover { background: #FAFBFD; }
.now aside h2 { padding: 16px 0 10px; border-bottom: 1px solid var(--line); } .crew li, .later li { border-bottom: 1px solid var(--line); } .crew li:last-child, .later li:last-child { border-bottom: 0; }
.crew b.person { font-size: 14px; font-weight: 600; } .later a { border-radius: 6px; padding-left: 10px; } .later li.bad a { border-left: 3px solid var(--cone); border-radius: 0 6px 6px 0; }

/* Day board */
.dayhead { padding: 20px 28px 14px; } .dayhead h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.numbers b { font-weight: 700; } .split { border: 0; background: #E9EDF3; border-radius: 5px; overflow: hidden; height: 8px; } .split .tools { background: var(--blue); }
.proposal { margin: 0 28px 12px; border: 1px solid #C9D8FF; border-radius: var(--r-panel); background: var(--tint); padding: 10px 14px; }
.boardwrap { margin: 0 28px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--lift); overflow: hidden; min-height: calc(100dvh - 210px); grid-template-columns: minmax(0, 1fr) 320px; }
.hours, .run { grid-template-columns: 210px 1fr; } .hours { height: 32px; background: var(--board-sunk); font-size: 12px; } .hours span { top: 8px; }
.run { min-height: 64px; } .run .name { grid-template-columns: 30px minmax(0, 1fr); gap: 0 10px; padding: 8px 10px 8px 16px; } .run .name .av { grid-row: span 2; align-self: center; }
.run .name strong { font-weight: 600; font-size: 14px; } .run .name small { font-size: 12px; }
.job { top: 10px; bottom: 10px; border-radius: 6px; border: 1px solid var(--line-strong); box-shadow: var(--lift); padding: 4px 8px; font-stretch: 100%; }
.job:hover { border-color: var(--blue); } .job b { font-weight: 600; font-size: 12.5px; } .job span { font-size: 11.5px; }
.job abbr.pri { padding: 0 4px; font-size: 10px; margin-right: 4px; }
.job.p1 { background: #FFF1E3; border-color: #F0B37A; } .job.moved { background: var(--tint); border-color: #9DB8FF; }
.job.on_site { background: var(--blue); border-color: var(--blue); } .job.done { background: #F6F8FA; border: 1px solid var(--line); box-shadow: none; } .job.sel { outline: 2px solid var(--blue); outline-offset: 1px; }
.drive { height: 6px; opacity: .8; }
.tray { background: #FAFBFD; border-left: 1px solid var(--line); } .wjob { border-radius: var(--r); box-shadow: var(--lift); background: #fff; }

/* Records */
.two { overflow: hidden; } .two nav { background: #FAFBFD; border-right: 1px solid var(--line); } .two nav button { padding: 11px 14px; font-weight: 600; }
.two nav button[aria-current] { background: var(--tint); box-shadow: inset 3px 0 0 var(--blue); } .two section { padding: 20px 22px; }
table.list th { font-size: 12px; font-weight: 600; color: var(--ink-3); } table.list td, table.list th { border-color: var(--line); }
.page > table.list { overflow: hidden; } .page > table.list th, .page > table.list td { padding-left: 16px; } .page > table.list thead th { background: var(--board-sunk); }
.stages { overflow: hidden; } .stage h2 { background: #FAFBFD; font-size: 13px; font-weight: 600; } .opp strong { font-weight: 600; }
.msgrid > section, .setgrid > section { padding: 4px 20px 16px; } .msgs h2, .setup h2 { padding: 14px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.setup h2:not(:first-child) { margin-top: 20px; } .msgs .hold { background: #FFF7EE; border-color: #F0B37A; border-left-width: 1px; border-radius: var(--r-panel); }
.kinds p { background: var(--tint); border-radius: 12px 12px 12px 3px; } .setgrid, .msgrid { gap: 20px; }
.scroll { overflow: auto; } table.wk th, table.wk td { border-color: var(--line); } table.wk thead th { background: var(--board-sunk); font-size: 12px; font-weight: 600; } table.wk tr > :first-child { border-left: 0; } table.wk tr > :last-child { border-right: 0; } table.wk thead th { border-top: 0; } table.wk tbody tr:last-child > * { border-bottom: 0; }
.headline { border: 1px solid var(--line); padding: 0 24px; } .headline b { font-size: 36px; font-weight: 700; } table.rep { border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.rep th, table.rep td { padding: 11px 16px; border-bottom: 1px solid var(--line); } table.rep thead th { background: var(--board-sunk); font-weight: 600; } table.rep tbody tr:last-child > * { border-bottom: 0; }
.share { border-radius: 5px; background: #E9EDF3; } .share .sdr { background: repeating-linear-gradient(-45deg, #E9EDF3 0 2px, #B9C2D0 2px 3px); }
.people li { align-items: center; }
.dlg { border: 0; border-radius: 14px; box-shadow: var(--float); } .dlg header { padding: 16px 22px; } .dlg > form, .dlg > div { padding: 20px 22px 22px; }
.toast { border-radius: var(--r-panel); box-shadow: var(--float); padding: 11px 16px; font-weight: 500; }
.signin h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; } .signin .btn { height: 42px; } .signin aside { background: var(--canvas); } .signin aside img { border-radius: 12px 0 0 0; box-shadow: var(--float); border-color: var(--line); }

@media (max-width: 1180px) { .nowgrid { grid-template-columns: 1fr; } }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side .mark { padding: 0 8px 0 0; } .side nav { display: flex; overflow: visible; } .side nav p, .sidefoot div, .sidefoot .av { display: none; } .side nav a span { white-space: nowrap; } .sidefoot { border: 0; padding: 0; display: block; }
  .bar { padding: 0 16px; } .page, .page.wide, .now { padding: 16px 16px 40px; } .dayhead { padding: 16px; } .boardwrap, .proposal { margin: 0 16px 16px; } .pick { grid-template-columns: 30px 56px minmax(0, 1fr); } .pick .mrun { display: none; } .pick .btn { grid-column: 1 / -1; }
}
.pick { grid-template-columns: 62px 30px minmax(230px, 1.3fr) minmax(120px, 1fr) 118px; }
.pick.ring { grid-template-columns: minmax(0, 1fr) auto; }
.job abbr.pri.p1 { background: none; padding: 0; margin-right: 3px; color: var(--ink-3); }
.hours, .run { grid-template-columns: 196px 1fr; }
@media (max-width: 920px) { .pick { grid-template-columns: 56px 30px minmax(0, 1fr); } }
.pick { grid-template-columns: 62px 30px minmax(0, 1.5fr) minmax(60px, 1fr) 112px; gap: 12px; }
.pick.ring { grid-template-columns: minmax(0, 1fr) auto; }

/* Contracts */
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; } .cgrid > .panel { overflow: hidden; }
table.ctab th, table.ctab td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; } table.ctab thead th { background: var(--board-sunk); font-size: 12px; font-weight: 600; color: var(--ink-3); }
table.ctab tbody th { font-weight: 600; white-space: normal; } table.ctab tbody tr:last-child > * { border-bottom: 0; } table.ctab tr.ended { color: var(--ink-3); } table.ctab tbody tr:hover { background: #FAFBFD; }
.rowacts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 10px; background: var(--board-sunk); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: #DDF3EC; color: #0C6B55; } .pill.warn { background: #FFE9D4; color: #9A4A0B; } .pill.bad { background: #FFE1E1; color: #A61B1B; } .pill.blue { background: var(--tint); color: var(--blue-deep); }
.cgrid aside { padding: 0 18px 10px; } .cgrid aside h2 { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.tpls { list-style: none; margin: 0; padding: 0; } .tpls li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); } .tpls li:last-child { border: 0; }
.tpls li > div { flex: 1; display: grid; gap: 2px; min-width: 0; } .tpls small { color: var(--ink-2); font-size: 12px; }
.blank { padding: 48px 24px; display: grid; gap: 8px; justify-items: center; text-align: center; } .blank b { font-size: 16px; } .blank p { color: var(--ink-2); max-width: 44ch; margin-bottom: 8px; }
.sitehead { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; } .sitehead a.btn { color: var(--ink); }
.dlg .prio label { height: auto; min-height: 36px; padding: 6px 12px; }
@media (max-width: 1180px) { .cgrid { grid-template-columns: 1fr; } }
/* The page a sticker opens: one job, big targets, the firm's name first. */
body.rep { background: #fff; } .rep main { max-width: 460px; margin: 0 auto; padding: 28px 20px 48px; } .rep form, .rep .sent { display: grid; gap: 14px; }
.rep .firm { font-size: 13px; font-weight: 700; color: var(--blue-deep); } .rep h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; } .rep .unit { font-size: 16px; color: var(--ink-2); } .rep .unit b { color: var(--ink); }
.rep .field { font-size: 14px; } .rep .field input, .rep .field textarea { font-size: 17px; height: 48px; } .rep .field textarea { height: auto; padding: 12px; } .rep .btn.big { width: 100%; }
.rep .err { color: var(--cone-deep); font-weight: 600; } .rep .small, .rep .wait { color: var(--ink-3); font-size: 13px; } .rep .sent p { font-size: 16px; color: var(--ink-2); }
/* Stickers: a printable sheet, two across. */
body.stk { background: var(--canvas); } .stk header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.stk header h1 { font-size: 20px; } .stk header p { color: var(--ink-2); max-width: 70ch; }
.stk main { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; padding: 24px 28px; }
.stk section { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 16px; break-inside: avoid; }
.stk .qr svg { width: 120px; height: 120px; stroke: none; fill: none; display: block; } .stk .qr svg path { stroke-width: 1; stroke-linecap: butt; }
.stk .firm { font-size: 12px; font-weight: 700; color: var(--blue-deep); } .stk h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; } .stk section p { font-size: 13px; color: var(--ink-2); }
.stk .unit { margin-top: 8px; display: grid; } .stk .unit b { color: var(--ink); font-size: 14px; }
@media print { .noprint { display: none !important; } body.stk { background: #fff; } .stk main { grid-template-columns: 1fr 1fr; gap: 6mm; padding: 8mm; } .stk section { border-color: #000; } }
table.ctab tbody th { font-size: 14px; color: var(--ink); }

/* Setup sub-pages, firm details, sign-ins, stickers */
.subtabs { display: flex; gap: 4px; margin: 4px 0 20px; border-bottom: 1px solid var(--line); }
.subtabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-2); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button:hover { color: var(--ink); } .subtabs button[aria-selected="true"] { color: var(--blue-deep); border-bottom-color: var(--blue); }
.setgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } form.inline { display: flex; gap: 12px; align-items: flex-end; margin: 12px 0 20px; } form.inline .field { width: 140px; }
.logorow { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: center; } .logoprev { height: 96px; border: 1px dashed var(--line-strong); border-radius: var(--r-panel); display: grid; place-items: center; padding: 10px; color: var(--ink-3); font-size: 12px; text-align: center; background: #fff; }
.logoprev img { max-width: 100%; max-height: 74px; object-fit: contain; }
.steps { margin: 12px 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); } .steps b { color: var(--ink); }
.dlgfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; } .btn.danger { color: #A61B1B; } .btn.danger:hover { background: #FFF0F0; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; } .linkish:hover strong { color: var(--blue-deep); text-decoration: underline; }
table.list td .pill { margin-left: 8px; } .pill.grey { background: var(--board-sunk); color: var(--ink-3); }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; } .chk input { accent-color: var(--blue); width: 16px; height: 16px; }
.qr2 svg { width: 180px; height: 180px; stroke: none; display: block; } .qr2 svg path { stroke-width: 1; stroke-linecap: butt; } .dlg code { font: 600 13px ui-monospace, Menlo, monospace; background: var(--board-sunk); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.setgrid.two table.list { margin-top: 4px; } .setgrid.two table.list th, .setgrid.two table.list td { padding: 10px 12px 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
/* stickers: the firm's logo and number */
.stk .logo { max-height: 34px; max-width: 150px; object-fit: contain; display: block; margin-bottom: 4px; } .stk .tel { color: var(--ink); } .stk .tel b { font-size: 15px; } .stk .code { font: 600 12px ui-monospace, Menlo, monospace; color: var(--ink-3); letter-spacing: 0.08em; }
.rep .firm img { max-height: 44px; max-width: 200px; object-fit: contain; display: block; } .rep .ringbtn { width: 100%; text-decoration: none; color: var(--ink); }
.rep input[type=search] { height: 48px; font-size: 17px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); width: 100%; }
.rep .units { display: grid; gap: 8px; } .rep .units button { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-panel); background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.rep .units button:hover { border-color: var(--blue); background: var(--tint); } .rep .units b { font-size: 16px; } .rep .units span { color: var(--ink-2); font-size: 13px; } .rep .units small { color: var(--blue-deep); font-size: 12px; font-weight: 600; }
@media (max-width: 1180px) { .setgrid.two { grid-template-columns: 1fr; } }

.drivenote { font-size: 12px; color: var(--ink-3); }
.pick { grid-template-columns: 62px 30px minmax(0, 1fr) 130px 112px; }
.pick.ring { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 1320px) { .pick { grid-template-columns: 62px 30px minmax(0, 1fr) 112px; } .pick .mrun { display: none; } }
@media (max-width: 920px) { .pick { grid-template-columns: 56px 30px minmax(0, 1fr); } }

/* Help, and getting started */
.bar #help { margin-left: auto; } .bar #newjob { margin-left: 0; }
.past { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; display: grid; gap: 12px; } .past h3 { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.past small { color: var(--ink-3); font-size: 12px; } .past p { font-size: 14px; overflow-wrap: anywhere; } .past .reply { margin-top: 6px; padding: 8px 10px; background: var(--tint); border-radius: 10px 10px 10px 3px; }
.started { padding: 4px 20px 12px; margin-bottom: 20px; } .started h2 { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 14px 0 10px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.started ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.started li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); } .started li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; margin-top: 1px; position: relative; }
.started li.done i { background: var(--blue); border-color: var(--blue); } .started li.done i::after { content: ''; position: absolute; left: 4px; top: 4.5px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; }
.started a { display: grid; gap: 1px; text-decoration: none; color: var(--ink); } .started small { color: var(--ink-2); font-size: 12px; } .started li.done b { color: var(--ink-3); font-weight: 500; }
.startbar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; margin-bottom: 16px; background: var(--tint); border: 1px solid #C9D8FF; border-radius: var(--r-panel); text-decoration: none; color: var(--ink); font-size: 13px; }
.startbar .meter { display: inline-flex; gap: 3px; } .startbar .meter i { width: 18px; height: 6px; border-radius: 3px; background: #fff; border: 1px solid #C9D8FF; } .startbar .meter i.done { background: var(--blue); border-color: var(--blue); } .startbar span:last-child { color: var(--ink-2); }
@media (max-width: 1180px) { .started ol { grid-template-columns: 1fr; } }

.bill { margin: 14px 0 10px; } .bill b { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; } .bill small { display: block; color: var(--ink-2); font-size: 13px; }
.setup h2 .pill { font-size: 12px; }
.signin form .mark { text-decoration: none; color: var(--ink); } .signin #fields { display: grid; gap: 14px; } .signin .small { font-size: 13px; color: var(--ink-3); }
ul.steps { list-style: none; padding-left: 0; } ul.steps li { padding: 10px 0; border-bottom: 1px solid var(--line); }
/* The recommendation row: the words get the full width, the small run sits under them, the button stays on the right.
   Nothing overlaps at any width (Haydn, 4 Dec: the run was sitting on top of the text on narrower screens). */
.pick { grid-template-columns: 62px 30px minmax(0, 1fr) auto; grid-template-areas: "at av nm btn" "at av run btn"; row-gap: 8px; column-gap: 12px; align-items: center; }
.pick > .at { grid-area: at; } .pick > .av { grid-area: av; } .pick > .nm { grid-area: nm; } .pick > .mrun { grid-area: run; display: block; max-width: 420px; } .pick > .btn { grid-area: btn; width: auto; min-width: 104px; }
.pick.ring { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm btn"; }
@media (max-width: 920px) { .pick { grid-template-columns: 56px 30px minmax(0, 1fr); grid-template-areas: "at av nm" "run run run" "btn btn btn"; } .pick > .mrun { display: block; max-width: none; } .pick > .btn { width: 100%; } }
/* On a laptop the problem and the person to send stack, so neither is squeezed. */
@media (max-width: 1560px) { .need { grid-template-columns: 1fr; gap: 14px; } .cgrid { grid-template-columns: 1fr; } }
.cgrid > section.panel { overflow-x: auto; }
