/* Chicane's stylesheet. The direction and what is taken from Deepbob's desk: docs/RIKTNING.md.
   [Deepbob] marks what is taken unchanged from Deepbob's desk; [utkast] marks what is Chicane's own draft. */
@font-face { font-family: "Funnel Display"; src: url("/static/fonts/FunnelDisplay-Light.woff2") format("woff2"); font-weight: 300; }
@font-face { font-family: "Funnel Display"; src: url("/static/fonts/FunnelDisplay-Regular.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "Funnel Display"; src: url("/static/fonts/FunnelDisplay-Medium.woff2") format("woff2"); font-weight: 500; }
@font-face { font-family: "Google Sans"; src: url("/static/fonts/GoogleSans-Regular.woff2") format("woff2"); font-weight: 400; }

:root {
  color-scheme: light;
  /* [Deepbob] colours */
  --ink: oklch(16% 0.035 250);
  --n-0: oklch(97.5% 0.003 70);
  --n-1: oklch(93.6% 0.004 70);
  --n-4: oklch(70% 0.006 70);
  --n-6: oklch(49% 0.008 70);
  --n-7: oklch(37.4% 0.008 70);
  --white: oklch(100% 0 0);
  --red: oklch(59% 0.23 28);          /* one job, the same as on the desk: a person is needed */
  --kelp: oklch(25% 0.05 175);        /* in Deepbob's palette, unused on the desk. [utkast] as Chicane's own colour */
  --line: color-mix(in oklch, var(--ink) 13%, transparent);
  --quiet: var(--n-6);
  --soft: color-mix(in oklch, var(--ink) 74%, transparent);
  /* [utkast] one new colour, a light step of Kelp, for the door and for what is in progress */
  --kelp-wash: oklch(94% 0.022 175);
  /* [Deepbob] the palette's light colours with their inks (Colour Lab "deepbob"). Each has one job here. */
  --sun: oklch(86% 0.13 92);      --sun-ink: oklch(20% 0.02 60);       /* new */
  --shell: oklch(90% 0.045 15);   --shell-ink: oklch(27% 0.08 22);     /* waits for us */
  --pool: oklch(86% 0.06 215);    --pool-ink: oklch(22% 0.05 240);     /* waits for the customer */
  /* [Deepbob] the palette's dark colours. Here they are people: light says a state, dark says who. */
  --plum: oklch(24% 0.06 345); --petrol: oklch(30% 0.06 235); --umber: oklch(26% 0.04 65); --oxblood: oklch(26% 0.08 25);

  /* [Deepbob] type, space, measure, motion */
  --display: "Funnel Display", "Google Sans", system-ui, sans-serif;
  --text: "Google Sans", system-ui, sans-serif;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 40px; --s-8: 56px; --s-9: 80px; --s-10: 120px;
  --t-label: 12px; --t-small: 14px; --t-body: 16px; --t-lead: 19px; --t-title: 24px;
  --t-head: clamp(36px, 2.4vw + 18px, 56px);
  --t-statement: clamp(46px, 4.2vw + 18px, 84px);
  --w-narrow: 680px; --w-wide: 860px;
  --gut: var(--s-9);
  --radius: 4px; --radius-lg: 8px;   /* [utkast] the large one is for what floats over the page; thin bars and chips are round (999px) */
  --ease: cubic-bezier(0.2, 0, 0, 1); --fast: 200ms;
  /* [utkast] the working row: Deepbob's 40 px baseline as the height of a line of work */
  --row: 56px;
  /* [utkast] one height scale for every control a finger presses (Peter, 2026-11-18, on Dag/Vecka beside the day
     arrows). A button that ends a task is --ctl; everything that works inside a row (small buttons, fields, selects,
     switches, search) is --ctl-sm. A phone or a touch screen lifts --ctl-sm to 44 px. Heights live here, never in
     padding: padding plus a line of text is how eight heights came about. */
  --ctl: 48px; --ctl-sm: 40px;
  /* [utkast] the accent: one colour, two jobs. The next step (the filled button) and now (the line across the day,
     today in the week). Kelp until Peter picks a palette; a palette sets these three and nothing else needs to know. */
  --accent: var(--kelp); --on-accent: var(--n-0); --accent-mark: var(--kelp);
}
@media (max-width: 899px) { :root { --gut: var(--s-5); --t-statement: 56px; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: var(--t-body)/1.5 var(--text); letter-spacing: -0.006em; color: var(--ink); background: var(--n-0); -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
/* controls do not inherit the text's tracking on their own, so a link styled as a button and a button differed by a hair */
button, input, select, textarea { letter-spacing: inherit; }
p { text-wrap: pretty; }
.nb { white-space: nowrap; }

/* [Deepbob] the label, the button, the name as the mark */
.label { font-size: var(--t-label); font-weight: 400; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.name { font: 400 22px/1 var(--display); letter-spacing: -0.01em; color: var(--kelp); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ctl); padding: 0 var(--s-6); border: 1px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; transition: background var(--fast) var(--ease); }
.btn--do { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }   /* [utkast] the accent's first job: the next step */
.btn--small { min-height: var(--ctl-sm); padding: 0 var(--s-4); }
/* [utkast] The desk rings a focused field in red. Here red means a person is needed, and a form has many fields,
   so the ring is Kelp: where you are, not what is wrong. */
.btn:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--kelp); outline-offset: 3px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

/* [utkast] a state says what it is by colour and by word. One colour, one job. */
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font: 400 var(--t-small)/1.4 var(--text); letter-spacing: -0.006em; white-space: nowrap; background: var(--n-1); color: var(--n-7); vertical-align: 2px; }
.tag--new { background: var(--sun); color: var(--sun-ink); }
.tag--us { background: var(--shell); color: var(--shell-ink); }
.tag--them { background: var(--pool); color: var(--pool-ink); }
.tag--on { background: var(--kelp-wash); color: var(--kelp); }
/* [utkast] a person is a round badge with initials, always in the same colour */
.face { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; font: 400 13px/1 var(--text); letter-spacing: .02em; background: var(--n-1); color: var(--n-7); }
.face--1 { background: var(--plum); color: var(--n-0); }
.face--2 { background: var(--petrol); color: var(--n-0); }
.face--3 { background: var(--umber); color: var(--n-0); }
.face--4 { background: var(--oxblood); color: var(--n-0); }
.face--5 { background: var(--kelp); color: var(--n-0); }
.face--none { background: none; border: 1.5px dashed var(--red); }
.face img { width: 20px; height: 20px; }
.one { display: flex; align-items: center; gap: var(--s-3); }

/* [utkast] the one device of Chicane's own: the registration number, set as the thing everybody says aloud */
.plate { display: inline-flex; align-items: center; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--white); font: 500 15px/1.5 var(--display); letter-spacing: .1em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------------ the door */
.door { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.door__say { display: flex; flex-direction: column; padding: var(--s-7) var(--gut) var(--s-9); }
.door__body { margin-block: auto; display: grid; gap: var(--s-5); justify-items: start; max-width: 560px; }
.door h1 { font: 300 var(--t-statement)/1.02 var(--display); letter-spacing: -0.02em; }
.door .lead { font-size: var(--t-lead); line-height: 1.45; max-width: 30em; }
.door .help { font-size: var(--t-small); color: var(--soft); max-width: 34em; }
.door__show { background: var(--kelp-wash); display: grid; place-content: center; justify-items: center; gap: var(--s-6); padding: var(--gut); }
.door__plate { padding: .2em .34em .2em .42em; border: 4px solid var(--ink); border-radius: 14px; background: var(--white); font: 500 clamp(64px, 8.4vw, 132px)/1 var(--display); letter-spacing: .08em; white-space: nowrap; }  /* the right padding is smaller by the tracking after the last figure */
.door__show p { font-size: var(--t-lead); line-height: 1.45; text-align: center; max-width: 22em; }
@media (max-width: 899px) {
  .door { grid-template-columns: 1fr; }
  .door__say { padding-bottom: var(--s-7); }
  .door__body { margin-block: var(--s-8) 0; }
  .door__show { padding: var(--s-8) var(--gut); gap: var(--s-5); }
  .door__plate { font-size: 60px; border-width: 3px; border-radius: 10px; }
  .door__show p { font-size: var(--t-body); }
}

/* ------------------------------------------------------------------ the frame of a working page */
.frame { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s-7); padding: var(--s-6) var(--s-6) var(--s-6) var(--s-7); border-right: 1px solid var(--line); }
.rail .where { display: block; margin-top: var(--s-1); font-size: var(--t-small); color: var(--soft); }
.rail nav a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: var(--n-7); text-decoration: none; }
.rail nav a[aria-current] { color: var(--ink); font-weight: 600; }
.rail nav a[aria-current]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--kelp); }
.rail .you { margin-top: auto; font-size: var(--t-small); color: var(--soft); display: grid; gap: var(--s-1); }
.rail .you a { color: var(--ink); margin-top: var(--s-2); justify-self: start; }
.bar { display: flex; align-items: center; gap: var(--s-4); min-height: 72px; padding: var(--s-3) var(--gut); border-bottom: 1px solid var(--line); }
.bar__top { display: none; }
.find { flex: 1; max-width: var(--w-wide); display: flex; align-items: center; gap: var(--s-3); min-height: calc(var(--ctl-sm) + 8px); padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--quiet); }
.find .short { display: none; }
.find kbd { margin-left: auto; font: var(--t-label)/1 var(--text); letter-spacing: .04em; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--radius); }
.page { padding: var(--s-8) var(--gut) var(--s-9); display: grid; gap: var(--s-7); max-width: calc(var(--w-wide) + 2 * var(--gut)); }
.page header { display: grid; gap: var(--s-3); }
.page h1 { font: 300 var(--t-head)/1.06 var(--display); letter-spacing: -0.02em; }
.page .lead { font-size: var(--t-lead); line-height: 1.45; max-width: 34em; text-wrap: balance; }
.note { font-size: var(--t-small); color: var(--soft); max-width: 44em; }
.block { display: grid; gap: var(--s-3); }
.panel { background: var(--white); border-radius: var(--radius); }
@media (max-width: 899px) {
  .frame { grid-template-columns: 1fr; }
  .rail { display: none; }
  .bar { flex-wrap: wrap; min-height: 0; padding-block: var(--s-4); gap: var(--s-3); }
  .bar__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .bar__top .where { display: block; font-size: var(--t-small); color: var(--soft); margin-top: 2px; }
  .find { flex-basis: 100%; }
  .find kbd, .find .long { display: none; }
  .find .short { display: inline; }
  .page { padding-top: var(--s-6); gap: var(--s-6); }
}

/* ------------------------------------------------------------------ rows: one line of work */
.rows > li { display: grid; grid-template-columns: 56px 32px minmax(0, 1fr); column-gap: var(--s-4); align-items: center; min-height: var(--row); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); }
.rows .face { grid-row: span 2; }
.rows p { grid-column: 3; }
.rows time { grid-row: span 2; }
.rows > li:first-child { border-top: 0; }
.rows time { font-variant-numeric: tabular-nums; color: var(--soft); font-size: var(--t-small); }
.rows .who { font-weight: 600; }
.rows .was { color: var(--soft); }
.rows .more { font-size: var(--t-small); color: var(--soft); }
.day { padding: var(--s-5) var(--s-5) var(--s-2); }
.facts { display: grid; }
.facts > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: var(--s-4); align-items: baseline; min-height: var(--row); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--soft); font-size: var(--t-small); }
.facts dd + dd { grid-column: 2; }
.pick { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.pick a { display: inline-flex; align-items: center; min-height: var(--ctl-sm); padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: var(--t-small); text-decoration: none; }
.pick a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--n-0); }
.people { display: grid; gap: var(--s-3); }
.pick select { font: inherit; font-size: var(--t-small); color: var(--ink); min-height: var(--ctl-sm); padding: 0 var(--s-6) 0 var(--s-4); border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
@media (max-width: 899px) {
  .rows > li { grid-template-columns: 44px 32px minmax(0, 1fr); column-gap: var(--s-3); padding-inline: var(--s-4); }
  .day { padding-inline: var(--s-4); }
  .facts > div { grid-template-columns: 1fr; row-gap: 2px; padding-inline: var(--s-4); }
  .facts dd + dd { grid-column: 1; }
}

/* [Deepbob] the answer: the button says what it does (the desk's one bold move, kept) */
.answer { display: grid; gap: 2px; justify-items: start; text-align: left; width: 100%; max-width: var(--w-narrow); padding: var(--s-5) var(--s-6); border: 0; border-radius: var(--radius); background: var(--kelp); color: var(--n-0); font: inherit; cursor: pointer; }
.answer b { font: 400 var(--t-title)/1.2 var(--display); }
.answer span { color: color-mix(in oklch, var(--n-0) 82%, transparent); }
.inside > li { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.inside > li:first-child { border-top: 0; }
.inside small { display: block; font-size: var(--t-small); color: var(--soft); }

/* ------------------------------------------------------------------ later: a case with a car (step 1, not built) */
.work > li, .work__head { display: grid; grid-template-columns: 112px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--s-5); align-items: center; padding: var(--s-3) var(--s-5); }
.work > li { min-height: 72px; border-top: 1px solid var(--line); }
.work__head { padding-block: var(--s-4) var(--s-3); }
.work .k { display: none; }
.work .what b { display: block; font-weight: 600; }
.work .what .tag { display: flex; width: fit-content; margin-block: 4px 2px; }   /* the state has its own line, on every row */
.work small { display: block; font-size: var(--t-small); color: var(--soft); }
.work .lack { display: flex; align-items: center; gap: var(--s-2); }
.work .bob { display: flex; align-items: center; gap: var(--s-2); }
.work .bob img { width: 20px; height: 20px; }
@media (max-width: 899px) {
  .work__head { display: none; }
  .work > li { grid-template-columns: 96px minmax(0, 1fr); column-gap: var(--s-3); row-gap: var(--s-2); padding: var(--s-4); align-items: baseline; }
  .work > li > .plate { grid-column: 1 / -1; justify-self: start; }
  .work > li > .what { grid-column: 1 / -1; margin-bottom: var(--s-1); }
  .work > li > .cell { display: contents; }
  .work .k { display: block; font-size: var(--t-small); color: var(--soft); }
}

/* ------------------------------------------------------------------ forms: what a person fills in */
.form { display: grid; gap: var(--s-6); max-width: var(--w-wide); }
.set { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--white); border-radius: var(--radius); }
.set > h2 { margin-bottom: var(--s-1); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); }
.field { display: grid; gap: var(--s-1); min-width: 0; align-content: start; }   /* beside a field with a longer label, the box keeps its height and the label takes the room */
.field > span { font-size: var(--t-small); color: var(--soft); }
.field input, .field select, .field textarea, .act input, .act select, .act textarea {
  font: inherit; color: var(--ink); width: 100%; min-height: var(--ctl); padding: 0 var(--s-4);
  border: 1px solid var(--n-4); border-radius: var(--radius); background: var(--white); }
.field textarea, .act textarea { min-height: 96px; padding-block: var(--s-3); resize: vertical; }
.field input.reg { font: 500 var(--t-lead)/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; max-width: 220px; }
.hint { font-size: var(--t-small); color: var(--soft); }
.problem { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--red); background: var(--white); border-radius: var(--radius); }
.find input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); align-self: stretch; min-height: 0; outline-offset: 6px; }
.find { padding-right: var(--s-2); }
form.find { margin: 0; }
button.btn { cursor: pointer; }
.btn--quiet { border-color: var(--line); }
.inline { display: inline; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------------------------ the case: what it is, and what you can do */
.head { display: grid; gap: var(--s-3); }
.head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; max-width: 1180px; }
.page.wide { max-width: 1340px; }
.stack { display: grid; gap: var(--s-6); }
.act { display: grid; gap: var(--s-3); padding: var(--s-5); background: var(--white); border-radius: var(--radius); }
.act .pair { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-3); }
.act .btn { justify-self: start; }
.notes > li { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-1); }
.notes > li:first-child { border-top: 0; }
.notes .by { font-size: var(--t-small); color: var(--soft); display: flex; align-items: center; gap: var(--s-2); }
.notes p { white-space: pre-line; }
.lack { display: flex; align-items: center; gap: var(--s-2); }
.work a.cover, .rows a.cover { color: inherit; text-decoration: none; }
@media (hover: hover) { .work > li:hover { background: color-mix(in oklch, var(--kelp-wash) 45%, var(--white)); } }
.lack .dot { align-self: start; margin-top: .55em; }
.tabs { display: none; }
.work > li { position: relative; }
.work a.cover::after { content: ""; position: absolute; inset: 0; }
/* a row in any list is one target when it has a row link (a.cover): the link covers the row, and the row's own
   controls stand above it. One rule for every list, so a new list gets it by using the class. */
.rows > li:has(a.cover), .who-list > li:has(a.cover) { position: relative; }
.rows a.cover::after, .lines a.cover::after, .who-list a.cover::after { content: ""; position: absolute; inset: 0; }
.rows form, .rows button, .lines form, .lines button, .who-list .acts { position: relative; z-index: 1; }
@media (hover: hover) { :is(.rows, .lines, .who-list) > li:has(a.cover):hover { background: color-mix(in oklch, var(--kelp-wash) 45%, var(--white)); } }
/* on a touch screen a control that looks like a link still gets a finger-sized box */
/* on a phone, or any touch screen, a control that stands on its own gets a finger-sized box: links that look like
   links, the mark, the filter chips, and the way back in a page's kicker. A link inside a sentence keeps the
   sentence's line (WCAG 2.5.8 makes that exception), and a row link already covers its row. */
@media (max-width: 899px), (pointer: coarse) {
  :root { --ctl-sm: 44px; }
  .linkish { min-height: 44px; min-width: 44px; }
  .name, .filter nav a, .crew a { display: inline-flex; align-items: center; min-height: 44px; }
  p.label > a { display: inline-block; padding-block: 14px; margin-block: -14px; }
}
.empty { padding: var(--s-6) var(--s-5); color: var(--soft); }
/* `.page header` is a grid; a header with a button beside it has to say that it is a row. */
.page header.top { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: end; justify-content: space-between; }
.top .head { flex: 1 1 28em; min-width: 0; }
.top .btn { flex: none; }
.count { font-variant-numeric: tabular-nums; }
.who-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; min-height: var(--row); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); }
.who-list > li:first-child { border-top: 0; }
.who-list .acts { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.door .people { display: grid; gap: var(--s-3); width: 100%; }
.door .people button { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: var(--row); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.door .people button:hover { border-color: var(--ink); }
/* [utkast] the demo: two people to be, each with what they do; and a band on every page that says it is a demo */
.people--demo button { align-items: start; text-align: left; padding: var(--s-4); }
.people--demo button > span:last-child { display: grid; gap: var(--s-1); }
.people--demo small { font-size: var(--t-small); color: var(--soft); line-height: 1.45; }
.demoband { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--n-0); font-size: var(--t-small); text-align: center; }
.demoband a { color: inherit; font-weight: 600; }
.demoband ~ .frame .rail { top: 37px; height: calc(100vh - 37px); }   /* the rail stays under the band, not behind it */
.warn { font-size: var(--t-small); color: var(--shell-ink); background: var(--shell); padding: var(--s-3) var(--s-4); border-radius: var(--radius); }
@media (max-width: 899px) {
  /* The rail is gone on a phone, so the same four places and the way out sit in a row under the name. */
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-4); width: 100%; }
  .tabs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--n-7); text-decoration: none; }
  .tabs a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--kelp); }
  .tabs form { margin-left: auto; }
  .tabs .linkish { min-height: 44px; }
  .work > li > .cell > p, .work > li > .cell > .k { align-self: start; }
  .two { grid-template-columns: 1fr; gap: var(--s-6); }
  .who-list > li { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ the order: rows with numbers, and what they come to */
/* The order is mostly its rows, so its page gives them the room and keeps the facts narrow. */
.two--order { grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr); max-width: 1340px; }
.lines > li, .lines__head { display: grid; grid-template-columns: minmax(0, 1fr) 80px 104px 112px 64px; column-gap: var(--s-4); row-gap: 2px; align-items: baseline; padding: var(--s-3) var(--s-5); }
.lines > li > .about { grid-column: 1 / -1; }   /* what kind of row, and its discount: under the row, at full width */
.lines--orders > li, .lines__head:has(+ .lines--orders) { grid-template-columns: 150px minmax(0, 1.4fr) minmax(0, 1fr) 140px; }
.lines > li { min-height: var(--row); border-top: 1px solid var(--line); position: relative; }
.lines__head { padding-block: var(--s-4) var(--s-3); }
.lines small { display: block; font-size: var(--t-small); color: var(--soft); }
.lines b { font-weight: 600; }
.lines a.cover, .who-list a.cover { color: inherit; text-decoration: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines .k { display: none; }
.sums { display: grid; gap: var(--s-2); padding: var(--s-5); border-top: 1px solid var(--ink); }
.sums > div { display: flex; justify-content: space-between; gap: var(--s-4); font-variant-numeric: tabular-nums; }
.sums dt { color: var(--soft); }
.sums__pay { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); align-items: baseline; }
.sums__pay dt { color: var(--ink); }
.sums__pay dd { font: 400 var(--t-title)/1.2 var(--display); }
.sums__note { padding: 0 var(--s-5) var(--s-5); }
.facts--tight > div { grid-template-columns: 96px minmax(0, 1fr); }
@media (max-width: 899px) {
  .lines__head { display: none; }
  .lines > li { grid-template-columns: 1fr 1fr; row-gap: var(--s-2); padding-inline: var(--s-4); }
  .lines > li > :first-child { grid-column: 1 / -1; }
  .lines > li > .about { order: -1; }
  .lines > li > :first-child { order: -2; }
  .two--order { grid-template-columns: 1fr; }
  .lines:not(.lines--orders) > li > .num { text-align: left; }
  .lines .k { display: block; font-size: var(--t-small); color: var(--soft); }
  .lines--orders > li { grid-template-columns: 1fr auto; }
  .lines--orders > li > :nth-child(2) { grid-column: 1 / -1; }
  .facts--tight > div { grid-template-columns: 1fr; }
}

.pair--go { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.act .pair--go { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 899px) { .pair--go, .act .pair--go { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ the order, as the mechanic works it
   Two lists, as in the system people know: the work on top, the parts under it. What a mechanic does is in reach
   on every row (tick it done, add time); prices are one quiet line that opens for the desk. */
.orderhead h1 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.plate--big { font-size: .62em; padding: 4px 14px; border-width: 2px; text-decoration: none; color: var(--ink); }
.orderhead__who { color: var(--soft); }
.bandhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding: var(--s-4) var(--s-5) var(--s-3); border-bottom: 1px solid var(--line); }
.band { font: 500 var(--t-lead)/1.2 var(--display); }
.panel > .band { padding: var(--s-4) var(--s-5) 0; }
.jobs > li, .partlist > li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: start; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.jobs > li:first-child, .partlist > li:first-child { border-top: 0; }
.partlist > li { grid-template-columns: 64px minmax(0, 1fr) auto; }
.part__n { font-variant-numeric: tabular-nums; }
.job { display: grid; gap: var(--s-2); min-width: 0; }
.job__what b { font-weight: 600; }
.job__time { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); font-size: var(--t-small); color: var(--soft); }
.job__time b { color: var(--ink); font-weight: 600; }
.entry { display: inline-flex; align-items: center; gap: var(--s-2); }
.entry .face { width: 24px; height: 24px; font-size: var(--t-label); }
.is-done .job__what b { color: var(--soft); }
/* [utkast] the tick. What is drawn is an ordinary small box (20 px). What is pressed is the button around it,
   which is larger and invisible, so a thumb still hits it (Peter, 2026-11-17: the first one was "absurdt stor"). */
.tick { --box: 20px; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; display: block; }
.tick::before { content: ""; position: absolute; left: 0; top: 2px; width: var(--box); height: var(--box); border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--white); box-sizing: border-box; }
.tick[aria-pressed="true"]::before { background: var(--kelp); border-color: var(--kelp); }
.tick[aria-pressed="true"]::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 10px; border: solid var(--n-0); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tick:focus-visible { outline: none; }
.tick:focus-visible::before { outline: 2px solid var(--kelp); outline-offset: 3px; }
.tick[disabled] { opacity: .5; cursor: not-allowed; }
.inrow, .addrow { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-3); }
.addrow { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); background: color-mix(in oklch, var(--n-1) 45%, var(--white)); border-radius: 0 0 var(--radius) var(--radius); }
.field--n { width: 112px; flex: none; }
.field--wide { flex: 1 1 260px; }
.inrow--time { align-items: center; }
.inrow input.n { width: 72px; font: inherit; color: var(--ink); min-height: var(--ctl-sm); padding: 0 var(--s-3); border: 1px solid var(--n-4); border-radius: var(--radius); background: var(--white); }
.entry form { display: inline-flex; }
.sums__pay { flex-direction: column; align-items: stretch; gap: 2px; }
.sums__pay dd { text-align: right; }
.inrow .field, .addrow .field { min-width: 0; }
.addrow .field:not(.field--n):not(.field--wide) { flex: 0 1 180px; }
details.quiet > summary { cursor: pointer; font-size: var(--t-small); color: var(--soft); width: fit-content; }
details.quiet[open] > summary { margin-bottom: var(--s-3); color: var(--ink); }
details.act > summary { list-style-position: inside; }
.stack--tight { gap: var(--s-3); }
.seek { display: flex; gap: var(--s-2); align-items: center; flex: 1 1 320px; max-width: 460px; }
.seek input { flex: 1; min-width: 0; font: inherit; min-height: var(--ctl-sm); padding: 0 var(--s-3); border: 1px solid var(--n-4); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.found { padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); background: var(--kelp-wash); }
.found ul { display: grid; gap: var(--s-2); }
.found li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-2) var(--s-3); background: var(--white); border-radius: var(--radius); }
.sums { border-top: 0; }
.layouts { display: inline-flex; height: var(--ctl-sm); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: fit-content; }
.layouts button { font: inherit; padding: 0 var(--s-4); border: 0; background: none; color: var(--soft); cursor: pointer; }   /* a switch is a control in a row: the row's height and the row's type */
.layouts button[aria-pressed="true"] { background: var(--ink); color: var(--n-0); }
@media (max-width: 899px) {
  .jobs > li, .partlist > li { padding-inline: var(--s-4); column-gap: var(--s-3); }
  .jobs > li > form:last-child, .partlist > li > form:last-child { grid-column: 2; justify-self: start; }
  .jobs > li, .partlist > li { grid-template-columns: 44px minmax(0, 1fr); }
  .tick { width: 44px; height: 44px; margin: -8px 0 0 -8px; }      /* the pressed area, not the drawn box */
  .tick::before { left: 8px; top: 10px; }
  .tick[aria-pressed="true"]::after { left: 15px; top: 13px; }
  .partlist > li { grid-template-columns: 56px minmax(0, 1fr); }
  .addrow .field--n { width: calc(50% - var(--s-2)); }
  .bandhead, .addrow, .found { padding-inline: var(--s-4); }
}

/* ------------------------------------------------------------------ layouts: how a person wants the pages
   "airy" is the direction sheet's spacing. "compact" is the default, for a tool people sit in all day: the same
   type and colours, less air. Everything a layout changes is a variable or one of these few rules. */
body[data-layout="compact"] { --row: 44px; --gut: var(--s-7); --t-head: clamp(26px, 1vw + 18px, 34px); --t-lead: 16px; }
body[data-layout="compact"] .page { padding-top: var(--s-6); gap: var(--s-5); }
body[data-layout="compact"] .bar { min-height: 56px; padding-block: var(--s-2); }
body[data-layout="compact"] .rail { padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6); gap: var(--s-6); }
@media (min-width: 900px) { body[data-layout="compact"] .frame { grid-template-columns: 208px minmax(0, 1fr); } }   /* only where there is a rail: on a phone this rule squeezed the whole page into the rail's column */
body[data-layout="compact"] .rail nav a { min-height: 36px; }
body[data-layout="compact"] .act, body[data-layout="compact"] .set { padding: var(--s-4); gap: var(--s-3); }
body[data-layout="compact"] .stack { gap: var(--s-4); }
body[data-layout="compact"] .two { gap: var(--s-5); }
body[data-layout="compact"] .field input, body[data-layout="compact"] .field select, body[data-layout="compact"] .act input, body[data-layout="compact"] .act select { min-height: var(--ctl-sm); padding: 0 var(--s-3); }
body[data-layout="compact"] .jobs > li, body[data-layout="compact"] .partlist > li { padding-block: var(--s-3); }
body[data-layout="compact"] .rows > li, body[data-layout="compact"] .work > li, body[data-layout="compact"] .lines > li, body[data-layout="compact"] .facts > div, body[data-layout="compact"] .who-list > li { padding-block: var(--s-2); }
body[data-layout="compact"] .work > li { min-height: 56px; }
@media (max-width: 899px) {
  body[data-layout="compact"] { --gut: var(--s-4); }
}

/* ------------------------------------------------------------------ the schedule: people as rows, time across
   The shape of the planning tool people know. A block's place is two numbers from the server (--l and --w, in
   percent of the hours shown), so the same markup holds whatever hours a day needs. */
.daynav { display: flex; gap: var(--s-2); flex: none; }
.tl__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: stretch; border-top: 1px solid var(--line); }
.tl__row--head { border-top: 0; }
.tl__who { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-width: 0; }
.tl__who small { display: block; font-size: var(--t-small); color: var(--soft); font-variant-numeric: tabular-nums; }
.tl__hours { display: grid; grid-template-columns: repeat(var(--hours), minmax(0, 1fr)); font-size: var(--t-label); color: var(--quiet); font-variant-numeric: tabular-nums; }
.tl__hours span { padding: var(--s-3) 0 var(--s-2) 4px; border-left: 1px solid var(--line); }
.tl__track { position: relative; min-height: calc(var(--lanes, 1) * 52px + 8px); background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / var(--hours))); }
.tl__block { position: absolute; top: calc(4px + var(--lane, 0) * 52px); height: 48px; left: calc(var(--l) * 1%); width: calc(var(--w) * 1%); min-width: 6px; display: grid; align-content: center; gap: 1px; padding: 2px 8px; border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; font-size: var(--t-small); line-height: 1.25; background: var(--kelp-wash); box-shadow: inset 3px 0 0 var(--kelp); }
.tl__block { container-type: inline-size; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
/* The preview: the browser's own popover, so it closes on Escape or a click outside with no script. */
.peek { width: min(460px, calc(100vw - 2 * var(--s-5))); margin: auto; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); color: var(--ink); box-shadow: 0 24px 60px color-mix(in oklch, var(--ink) 22%, transparent); }
.peek::backdrop { background: color-mix(in oklch, var(--ink) 18%, transparent); }
.peek h2 { font: 400 var(--t-title)/1.2 var(--display); margin: var(--s-2) 0 var(--s-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.peek .facts > div { padding-inline: 0; min-height: 0; padding-block: var(--s-2); }
.peek__do { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.tl__block b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl__block span { color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
@container (max-width: 84px) { .tl__block span { display: none; } }     /* a short block keeps its name and drops its hours; the list under says them */
.tl__block--absence, .tl__block--lunch { background: repeating-linear-gradient(135deg, var(--n-1) 0 6px, var(--white) 6px 12px); box-shadow: inset 3px 0 0 var(--n-4); }
.tl__block.is-clash { outline: 2px solid var(--red); outline-offset: -2px; }     /* red: a person is needed */
.tl__block.is-done { background: var(--n-1); box-shadow: inset 3px 0 0 var(--n-4); }
.rows--plain > li { grid-template-columns: 96px 16px minmax(0, 1fr); }
.rows--plain form.more { grid-column: 3; }
.todo > li { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.todo > li:first-child { border-top: 0; }
.todo small { display: block; font-size: var(--t-small); color: var(--soft); }
.todo b { font-weight: 600; }
.todo .inrow select, .n--time { font: inherit; color: var(--ink); min-height: var(--ctl-sm); padding: 0 var(--s-3); border: 1px solid var(--n-4); border-radius: var(--radius); background: var(--white); }
.todo .inrow select { flex: 1 1 120px; min-width: 0; }
.inrow input.n--time { width: 112px; }
.todo__note { padding: 0 var(--s-4) var(--s-4); }
.rail__more { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.rail__more a { font-size: var(--t-small); }
.tabs__daily, .tabs__more { display: contents; }
@media (max-width: 899px) {
  .tl { display: none; }                 /* a phone is too narrow for time across; the list under it says the same */
  .tabs { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .tabs__more { display: flex; grid-column: 1 / -1; gap: var(--s-5); border-top: 1px solid var(--line); }
  .tabs__more a { font-size: var(--t-small); min-height: 40px; }
  .rows--plain > li { grid-template-columns: 96px 12px minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ the hall: cars for sale, counted by the dates */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.figures > div { background: var(--white); padding: var(--s-4) var(--s-5); display: grid; gap: 2px; }
.figures dt { font-size: var(--t-small); color: var(--soft); }
.figures dd { font: 400 var(--t-title)/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines--hall > li { grid-template-columns: 124px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.lines--hall > li:first-child { border-top: 0; }
.plate--btn { cursor: pointer; font-family: var(--display); color: var(--ink); }
.plate--btn:hover { background: var(--kelp-wash); }
.addrow > form:not(.inrow) { align-self: end; }
.addrow .inrow { flex: 1 1 420px; }
.readings { display: grid; gap: var(--s-2); font-size: var(--t-small); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.readings li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--s-4); font-variant-numeric: tabular-nums; }
.readings li > .hint { text-align: right; }
.readings li > .tag { grid-column: 1 / -1; justify-self: start; }
.band .count { font-weight: 400; color: var(--soft); margin-left: var(--s-2); font-variant-numeric: tabular-nums; }
/* the line under a list that leads to the rest of it; its own name, so it never lands on a row's .more */
.listfoot { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-small); }
.figures > div:last-child:nth-child(odd) { grid-column: auto; }
.act input[name=km] { min-width: 0; }
.sums dt form { margin-left: var(--s-2); }
@media (max-width: 899px) {
  .lines--hall > li { grid-template-columns: 1fr 1fr; }
  .lines--hall > li > :nth-child(2) { grid-column: 1 / -1; order: 0; }
  .lines--hall > li > .num { text-align: left; }
  .lines--hall > li > .num:last-child { text-align: right; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------------------------------------------- working hours and call times: a weekly pattern, and its day in the schedule */
.two--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1340px; align-items: start; }
.week > li { display: grid; grid-template-columns: 96px 124px auto 124px minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-5); border-top: 1px solid var(--line); min-height: var(--row); }
.week > li:first-child { border-top: 0; }
.week__day { font-weight: 600; }
.week > li.is-off .week__day { font-weight: 400; color: var(--soft); }
.week input[type=time], .days + .inrow input[type=time] { font: inherit; color: var(--ink); min-height: var(--ctl-sm); padding: 0 var(--s-3); border: 1px solid var(--n-4); border-radius: var(--radius); background: var(--white); font-variant-numeric: tabular-nums; min-width: 0; }
.week input:disabled { background: var(--n-1); color: var(--soft); }
.addrow .hint { flex: 1 1 100%; }
.addrow--stack { display: grid; gap: var(--s-3); }
.days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.days legend { padding: 0; margin-bottom: var(--s-2); }
.days label { position: relative; cursor: pointer; }
.days input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.days span { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: var(--ctl-sm); padding: 0 var(--s-3); border: 1px solid var(--n-4); border-radius: 999px; background: var(--white); color: var(--soft); }
.days input:checked + span { background: var(--pool); border-color: var(--pool); color: var(--pool-ink); font-weight: 600; }
.days input:focus-visible + span { outline: 2px solid var(--kelp); outline-offset: 2px; }
.slots > li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); min-height: var(--row); font-variant-numeric: tabular-nums; }
.slots > li:first-child { border-top: 0; }
.slots b { font-weight: 600; white-space: nowrap; }
.slots__days { display: flex; flex-wrap: wrap; gap: 4px; }
.slots__days span { font-size: var(--t-small); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--quiet); }
.slots__days .is-on { background: var(--pool); border-color: var(--pool); color: var(--pool-ink); font-weight: 600; }
@media (max-width: 899px) { .slots > li { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline: var(--s-4); } .slots__days { grid-column: 1 / -1; grid-row: 2; } }
.callable { display: grid; gap: var(--s-2); }
.callable li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--s-4); padding-left: var(--s-3); box-shadow: inset 3px 0 0 var(--pool); font-variant-numeric: tabular-nums; }
.callable b { font-weight: 600; }
.day__hours { padding: 0 var(--s-5) var(--s-2); font-variant-numeric: tabular-nums; }
.tl__off { position: absolute; top: 0; bottom: 0; left: calc(var(--l) * 1%); width: calc(var(--w) * 1%); background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in oklch, var(--n-4) 28%, transparent) 5px 6px), color-mix(in oklch, var(--n-1) 70%, transparent); pointer-events: none; }
/* [utkast] now: the accent's second job. One line through every person's day, and the time on the hour row, placed
   by the same two numbers as the blocks so it cannot drift from them. Drawn only when the day shown is today. */
.tl__now { position: absolute; top: 0; bottom: 0; left: calc(var(--l) * 1%); width: 2px; margin-left: -1px; background: var(--accent-mark); z-index: 2; pointer-events: none; }
.tl__hours { position: relative; }
.tl__at { position: absolute; bottom: 2px; left: calc(var(--l) * 1%); transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; letter-spacing: .02em; z-index: 2; }
.tl__track.has-calls { min-height: calc(var(--lanes, 1) * 52px + 8px + 22px); }
.tl__call { position: absolute; bottom: 3px; height: 18px; left: calc(var(--l) * 1%); width: calc(var(--w) * 1%); min-width: 6px; padding: 0 6px; border: 0; border-radius: var(--radius); background: var(--pool); color: var(--pool-ink); font-family: inherit; font-size: var(--t-label); font-weight: 600; line-height: 18px; letter-spacing: .01em; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; font-variant-numeric: tabular-nums; z-index: 1; }   /* the bar says what it is and its place says when; words that ran past it read as spilled (2026-11-18). The time is in its popover and its name */
.tl__call:hover { filter: brightness(.96); }
@media (max-width: 899px) {
  .two--even { grid-template-columns: 1fr; }
  .week > li { grid-template-columns: 1fr auto 1fr; padding-inline: var(--s-4); }
  .week__day { grid-column: 1 / -1; }
  .week > li > .hint { display: none; }
  .day__hours { padding-inline: var(--s-4); }
}

/* ------------------------------------------------------- the tyre hotel: whose wheels lie where, and how worn they are */
.tag--stop { background: var(--red); color: var(--white); }      /* red: a person is needed, here because the law is */
.shelf { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 32px; padding: 2px 10px; border: 0; border-radius: var(--radius); background: var(--kelp); color: var(--n-0); font: 600 var(--t-small)/1 var(--display); letter-spacing: .04em; font-variant-numeric: tabular-nums; cursor: pointer; }
.shelf:hover { filter: brightness(1.25); }
.shelf--none { background: var(--shell); color: var(--shell-ink); }
.shelf--still { cursor: default; min-height: 26px; min-width: 0; font-size: var(--t-label); }
.lines--tyres > li { grid-template-columns: 88px 124px minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, .9fr); align-items: center; }
.lines--season > li { grid-template-columns: 28px 124px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
.lines--wheels > li { grid-template-columns: 124px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; }
.lines--tyres > li:first-child, .lines--season > li:first-child, .lines--wheels > li:first-child { border-top: 0; }
.lines--season input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--kelp); }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.filter nav { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--n-1); }
.filter nav a { padding: 4px 12px; border-radius: 999px; font-size: var(--t-small); color: var(--soft); text-decoration: none; }
.filter nav a[aria-current] { background: var(--white); color: var(--ink); font-weight: 600; }
.filter input[type=search] { font: inherit; min-height: var(--ctl-sm); padding: 0 var(--s-3); border: 1px solid var(--n-4); border-radius: var(--radius); background: var(--white); width: 230px; max-width: 100%; }
.done { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--kelp); background: var(--kelp-wash); border-radius: var(--radius); }
.figures small { font: 400 var(--t-small)/1.3 var(--text); color: var(--soft); }
.daynav a[aria-current] { background: var(--ink); color: var(--n-0); }
.wheels__set { display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.wheels__set:first-child { border-top: 0; }
.wheels__set.is-gone { color: var(--soft); }
.wheels__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.wheels__head b { font-weight: 600; }
.wheels__depth { margin-left: auto; font-variant-numeric: tabular-nums; }
.wheels .readings { border-top: 0; padding-top: 0; max-width: 460px; }
.addrow--plain { background: none; border-top: 0; padding: var(--s-2) 0 0; }
.swap .inrow .field { flex: 1 1 150px; }
.swap .inrow .field--wide { flex: 2 1 240px; }
.addrow .field--wide select { width: 100%; }
@media (max-width: 899px) { .daynav { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; } }   /* three buttons do not fit one row of a phone */
.swap .inrow .field--n { flex: 0 1 110px; }
@media (max-width: 899px) {
  .lines--tyres > li, .lines--wheels > li { grid-template-columns: auto minmax(0, 1fr); }
  .lines--tyres > li > :nth-child(n+3), .lines--wheels > li > :nth-child(n+3) { grid-column: 1 / -1; }
  .lines--tyres > li > .num, .lines--wheels > li > .num { text-align: left; }
  .lines--season > li { grid-template-columns: 28px minmax(0, 1fr); }
  .lines--season > li > :first-child, .lines--tyres > li > :first-child, .lines--wheels > li > :first-child { grid-column: 1; order: 0; }   /* the general rule gives a row's first cell the whole width */
  .lines--season > li > :nth-child(2) { grid-column: 2; }
  .lines--season > li > :nth-child(n+3) { grid-column: 2; }
  .lines--season > li > .num { text-align: left; }
  .filter input[type=search] { width: 100%; }
  .wheels__set { padding-inline: var(--s-4); }
  .wheels__depth { margin-left: 0; }
}

/* ------------------------------------------------------------ pictures and documents: what was seen, beside what was said */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--s-3); padding: var(--s-4) var(--s-5); }
.shots > li { display: grid; gap: 2px; align-content: start; min-width: 0; }
.shots small { font-size: var(--t-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--n-1); overflow: hidden; cursor: pointer; font-family: inherit; color: var(--ink); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:hover { border-color: var(--kelp); }
.shot--other { display: grid; align-content: center; justify-items: center; gap: 4px; padding: var(--s-3); text-align: center; }
.shot--other b { font: 600 var(--t-label)/1 var(--display); letter-spacing: .08em; padding: 4px 8px; border-radius: var(--radius); background: var(--ink); color: var(--n-0); }
.shot--other span { font-size: var(--t-small); color: var(--soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shots--small { grid-template-columns: repeat(auto-fill, 88px); padding: 0; }
.addrow input[type=file] { font: inherit; font-size: var(--t-small); width: 100%; min-height: var(--ctl-sm); padding: 6px var(--s-2); border: 1px dashed var(--n-4); border-radius: var(--radius); background: var(--white); }
.addrow input[type=file]::file-selector-button { font: inherit; margin-right: var(--s-3); padding: 4px 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; }
.peek--file { width: min(760px, calc(100vw - 2 * var(--s-5))); }
.peek--file img, .peek--file video { display: block; max-width: 100%; max-height: 62vh; margin: var(--s-2) auto 0; border-radius: var(--radius); background: var(--n-1); }
@media (max-width: 899px) { .shots { padding-inline: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }

/* ---------------------------------------------------------------- forms with requirements: questions, and what is lacking */
.lines--forms > li { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
.lines--fields > li { grid-template-columns: 28px minmax(0, 2fr) 120px 140px 64px; align-items: center; }
.lines--forms > li:first-child, .lines--fields > li:first-child { border-top: 0; }
.act--start { border-left: 3px solid var(--sun); max-width: var(--w-wide); }
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); padding: var(--s-5); }
.asks .field--long { grid-column: 1 / -1; }
.asks textarea { width: 100%; font: inherit; min-height: 96px; padding: var(--s-3) var(--s-4); border: 1px solid var(--n-4); border-radius: var(--radius); background: var(--white); resize: vertical; }
.asks small { display: block; margin-top: 2px; }
.ask { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-3) var(--s-5); padding: var(--s-4) var(--s-5); }
.ask .field--n { flex: 0 0 180px; }
.ask .hint { flex: 1 1 260px; }
.must { font-style: normal; font-size: var(--t-label); letter-spacing: .04em; text-transform: uppercase; color: var(--pool-ink); background: var(--pool); padding: 1px 6px; border-radius: var(--radius); margin-left: 4px; }
.needs { border-left: 3px solid var(--shell); }
.needs:has(.tag--on) { border-left-color: var(--kelp); }
.needs__list { display: grid; gap: var(--s-2); padding-left: 0; list-style: none; }
.needs__list li { padding-left: var(--s-4); position: relative; }
.needs__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.shots--pick .pick { position: relative; display: block; cursor: pointer; }
.shots--pick .pick input { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; accent-color: var(--kelp); z-index: 1; }
.shots--pick .pick .shot { cursor: pointer; }
.shots--pick .pick input:not(:checked) + .shot { opacity: .45; }
.shots--pick .pick input:checked + .shot { border-color: var(--kelp); box-shadow: 0 0 0 1px var(--kelp); }
.quiet-act { margin-top: var(--s-5); font-size: var(--t-small); }
.facts--answers > div { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.pre { white-space: pre-line; }
/* the sheet: a form as it is printed, or saved as a PDF by the browser */
.sheet { background: var(--n-1); }
.sheet__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); max-width: 800px; margin: var(--s-5) auto; padding: 0 var(--s-5); }
.sheet__page { max-width: 800px; margin: 0 auto var(--s-8, 64px); padding: 48px 56px; background: var(--white); display: grid; gap: var(--s-6); }
.sheet__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); padding-bottom: var(--s-4); border-bottom: 2px solid var(--ink); }
.sheet__head h1 { font: 400 32px/1.1 var(--display); margin: 4px 0 0; }
.sheet__ref { text-align: right; font-variant-numeric: tabular-nums; }
.sheet__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.sheet__pair dt, .sheet__answers dt { font-size: var(--t-small); color: var(--soft); }
.sheet__answers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-6); }
.sheet__answers > div:has(.pre) { grid-column: 1 / -1; }
.sheet__shots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.sheet__shots h2 { grid-column: 1 / -1; margin: 0; }
.sheet__shots figure { margin: 0; break-inside: avoid; }
.sheet__shots img { width: 100%; max-height: 300px; object-fit: contain; background: var(--n-1); border: 1px solid var(--line); }
.sheet__shots figcaption, .sheet__foot, .sheet__list { font-size: var(--t-small); color: var(--soft); }
.sheet__foot { padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media print {
  .sheet { background: none; }
  .sheet__bar { display: none; }
  .sheet__page { max-width: none; margin: 0; padding: 0; }
  @page { margin: 18mm 16mm; }
}
@media (max-width: 899px) {
  .lines--forms > li { grid-template-columns: 1fr auto; }
  .lines--forms > li > :first-child { grid-column: 1 / -1; }
  .lines--fields > li { grid-template-columns: 28px minmax(0, 1fr); }
  .lines--fields > li > :first-child { grid-column: 1; order: 0; }
  .lines--fields > li > :nth-child(n+3) { grid-column: 2; }
  .asks { grid-template-columns: 1fr; padding: var(--s-4); }
  .ask { padding-inline: var(--s-4); }
  .sheet__page { padding: 24px 20px; }
  .sheet__pair, .sheet__answers, .sheet__shots { grid-template-columns: 1fr; }
  .facts--answers > div { grid-template-columns: 1fr; }
}
/* A4 is narrower than a phone's limit above, so on paper the sheet would fall to one column and run onto a second
   page. On paper it keeps its two columns, whatever the width. */
@media print {
  .sheet .sheet__pair, .sheet .sheet__answers, .sheet .sheet__shots { grid-template-columns: 1fr 1fr; }
  .sheet .sheet__page { padding: 0; gap: 18px; }
  .sheet .sheet__shots img { max-height: 220px; }
  .sheet .sheet__answers > div:has(.pre) { grid-column: auto; }   /* a long answer in its own column keeps the order and wastes no half page */
}

/* -------------------------------------------------------------------- the handover: how the car looked when it changed hands */
.proof { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-left: 3px solid var(--kelp); }
.proof__what { font-size: var(--t-body); }
.proof__what b { font-weight: 600; margin-right: var(--s-2); }
.proof .facts > div { padding-inline: 0; }
.proof .shots--small { padding: 0; }
.proof__do { font-size: var(--t-small); }
@media (max-width: 899px) { .proof { padding-inline: var(--s-4); } }

/* -------------------------------------------------------- complaints: what is said, what it concerns, the proof, the law */
.lines--complaints > li { grid-template-columns: 124px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.lines--complaints > li:first-child { border-top: 0; }
.lines--complaints > li.is-late { box-shadow: inset 3px 0 0 var(--red); }
.claim { padding: var(--s-4) var(--s-5) 0; font-size: var(--t-lead); max-width: 60ch; }
.choices { display: grid; gap: var(--s-2); }
.choices--tight { grid-template-columns: 1fr; }   /* the side column is too narrow for three side by side */
.choices--tight .choice { padding-block: var(--s-2); }
.choice { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.choice input { margin-top: 3px; accent-color: var(--kelp); width: 18px; height: 18px; flex: none; }
.choice b { font-weight: 600; display: block; }
.choice small { display: block; font-size: var(--t-small); color: var(--soft); }
.choice:has(input:checked) { border-color: var(--kelp); box-shadow: 0 0 0 1px var(--kelp); background: var(--kelp-wash); }
.law__list { display: grid; gap: var(--s-3); padding: 0; list-style: none; }
.law__list li { display: grid; gap: 2px; padding-left: var(--s-5); position: relative; }
.law__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; }
.law__list li.is-yes::before { background: var(--kelp); }
.law__list li.is-no::before { background: var(--red); }
.law__list li.is-unknown::before { border: 1.5px dashed var(--n-4); }
.law__list small { font-size: var(--t-small); color: var(--soft); }
.plainlist { display: grid; gap: var(--s-2); padding: 0; list-style: none; }
@media (max-width: 899px) {
  .lines--complaints > li { grid-template-columns: auto minmax(0, 1fr); }
  .lines--complaints > li > :nth-child(2) { grid-column: 2; }
  .lines--complaints > li > :nth-child(n+3) { grid-column: 1 / -1; text-align: left; }
  .claim { padding-inline: var(--s-4); }
}

/* -------------------------------------------------------------- the week: days in columns, time downwards, where is room */
.views { flex: none; }
.h1-soft { color: var(--soft); font-size: .62em; margin-left: var(--s-3); white-space: nowrap; }
.crew { margin: var(--s-2) 0 var(--s-4); }
.crew a { display: inline-flex; align-items: center; padding: 4px 12px 4px 4px; border-radius: 999px; color: var(--soft); text-decoration: none; font-size: var(--t-small); }
.crew a[aria-current] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.crew a:first-child { padding-left: 12px; }
.wk { --hour: 52px; overflow: hidden; }
.wk__head, .wk__body { display: grid; grid-template-columns: 48px repeat(var(--days), minmax(0, 1fr)); }
.wk__head { border-bottom: 1px solid var(--line); }
.wk__corner { border-right: 1px solid var(--line); }
.wk__day { position: relative; display: grid; gap: 2px; padding: var(--s-3) var(--s-3) var(--s-4); border-left: 1px solid var(--line); min-width: 0; }
.wk__day b { font-weight: 600; }
.wk__day small { font-size: var(--t-small); color: var(--soft); font-variant-numeric: tabular-nums; }
.wk__day.is-today, .wk__col.is-today { background: color-mix(in oklch, var(--kelp-wash) 60%, var(--white)); }
.wk__day.is-today { box-shadow: inset 0 3px 0 var(--accent-mark); }   /* now, in the week: today's column is topped by the accent */
/* the day's answer to "when is there room?": the free time is the large number, what is booked the small one */
.free { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; color: var(--soft); font-size: var(--t-small); }
.free b { font: 400 var(--t-title)/1.1 var(--display); color: var(--kelp); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.free.over b, .free.over { color: var(--red); }
/* how full the day is: one thin bar, kelp while there is room, red when it is over */
.room { position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px; height: 4px; border-radius: 999px; background: color-mix(in oklch, var(--kelp) 14%, var(--n-1)); overflow: hidden; }
.room::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--fill) * 1%); background: var(--kelp); }
.wk__day:has(.free.over) .room::after { background: var(--red); }
.wk__hours { display: grid; grid-template-rows: repeat(var(--hours), var(--hour)); border-right: 1px solid var(--line); font-size: var(--t-label); color: var(--quiet); font-variant-numeric: tabular-nums; }
.wk__hours span { padding: 2px 6px 0 0; text-align: right; border-top: 1px solid var(--line); }
.wk__hours span:first-child { border-top: 0; }
.wk__col { position: relative; height: calc(var(--hours) * var(--hour)); border-left: 1px solid var(--line); min-width: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--hour) - 1px), var(--line) calc(var(--hour) - 1px) var(--hour)); }
.wk__off { position: absolute; left: 0; right: 0; top: calc(var(--t) * 1%); height: calc(var(--h) * 1%); background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in oklch, var(--n-4) 28%, transparent) 5px 6px), color-mix(in oklch, var(--n-1) 70%, transparent); pointer-events: none; }
.wk__call { position: absolute; right: 2px; width: 4px; top: calc(var(--t) * 1%); height: calc(var(--h) * 1%); border-radius: 999px; background: var(--pool); z-index: 2; }
.wk__block { position: absolute; top: calc(var(--t) * 1%); height: calc(var(--h) * 1%); min-height: 22px;
  left: calc(3px + (100% - 10px) * var(--lane) / var(--lanes)); width: calc((100% - 10px) / var(--lanes) - 2px);
  display: grid; align-content: start; gap: 1px; padding: 4px 6px 4px 8px; border: 0; border-radius: var(--radius); background: var(--kelp-wash);
  box-shadow: inset 3px 0 0 var(--kelp); font: inherit; font-size: var(--t-small); text-align: left; color: var(--ink); cursor: pointer; overflow: hidden; z-index: 1; container-type: inline-size; }
.wk__block b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk__block span { color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 70px) { .wk__block span { display: none; } }
.wk__block:hover { filter: brightness(.97); }
.wk__block.tl__block--absence, .wk__block.tl__block--lunch { background: repeating-linear-gradient(135deg, var(--n-1) 0 6px, var(--white) 6px 12px); }
.wk__block.is-clash { outline: 2px solid var(--red); outline-offset: -2px; }
.wk__block.is-done { background: var(--n-1); }
/* whose block it is: the person's own colour on the left edge, the same colour as their face */
.face--1-edge { box-shadow: inset 3px 0 0 var(--plum); }
.face--2-edge { box-shadow: inset 3px 0 0 var(--petrol); }
.face--3-edge { box-shadow: inset 3px 0 0 var(--umber); }
.face--4-edge { box-shadow: inset 3px 0 0 var(--oxblood); }
.face--5-edge { box-shadow: inset 3px 0 0 var(--kelp); }
@media (max-width: 899px) {
  .wk { display: none; }                 /* a phone is too narrow for seven columns; the list under it says the same */
  .h1-soft { display: block; margin: 4px 0 0; }
  .views { order: -1; }
}

/* [utkast] two customers who are one person, side by side (steg 1, femte varvet). The one kept is marked by the
   choice itself: its side takes the Kelp edge, so what stays is never in doubt before the button is pressed. */
.merge { border: 0; margin: 0; padding: 0; min-width: 0; }
.merge > legend { padding: 0; margin-bottom: var(--s-3); }
.merge__side { display: grid; gap: var(--s-4); padding: var(--s-4); align-content: start; border: 1px solid transparent; }
.merge__side:has(input:checked) { border-color: var(--kelp); box-shadow: inset 3px 0 0 var(--kelp); }
.merge__keep { border: 0; padding: 0; background: none; }
.merge__keep b { font: 400 var(--t-title)/1.2 var(--display); display: block; }
.merge__keep small { display: block; color: var(--soft); font-size: var(--t-small); }
.merge__keep, .merge__keep:has(input:checked) { background: none; box-shadow: none; }
.merge__keep .merge__say { margin-top: var(--s-1); }
.merge__keep .merge__say--keep { color: var(--kelp); }
.merge__side:has(input:checked) .merge__say--go, .merge__side:not(:has(input:checked)) .merge__say--keep { display: none; }
.merge__moves { padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink); }
.merge__go { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); }

/* [utkast] passkeys: the door's button and its words, and a person's passkeys on Personer (plan 4b) */
.door__in { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-6); max-width: 420px; }
.door__in .field { width: 100%; }
.keys { margin-top: var(--s-2); }
.keys > summary { font-size: var(--t-small); color: var(--soft); cursor: pointer; }
.keys[open] { display: grid; gap: var(--s-2); }
/* [utkast] the history's own search (plan 5) */
.history__ask { max-width: var(--w-wide); margin-bottom: var(--s-5); align-items: end; }
/* a date field has a width of its own that is wider than a narrow column, and pushed into the button beside it */
.history__ask .field--n { flex: 1 1 150px; }
.history__ask input[type=date] { width: 100%; min-width: 0; }
/* [utkast] the invoice basis (step 7): the order's rows with their amounts in the same right edge as the sums */
.lines--basis > li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 130px; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-5); }
.lines--basis .num { text-align: right; }
@media (max-width: 899px) { .lines--basis > li { grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-3); padding-inline: var(--s-4); } }
