/* The parts every view is built from: surface, row, field, button, switch, tag, plate. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ctl); padding: 0 var(--pad-ctl); border: 1px solid var(--ctl-edge); border-radius: var(--radius-ctl); font-size: var(--t-control); background: none; color: var(--ink); font-family: 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(--pad-ctl-sm); }
.acts .btn, .who-list .btn { min-height: var(--ctl-row); padding: 0 var(--s-2); font-size: var(--t-label); border-radius: var(--radius); }   /* an action in a list row */
.acts .linkish { font-size: var(--t-label); color: var(--soft); }   /* removing is quieter than the everyday action beside it (Bishop) */
/* a booking list's heading is the name or the date; the figures beside it are secondary (Bishop, round 2) */
.day__more { margin-left: var(--s-3); font: 400 var(--t-small)/1.4 var(--text); color: var(--soft); font-variant-numeric: tabular-nums; }
/* [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; }

/* [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 var(--pad-field); 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--now { background: var(--accent); color: var(--on-accent); }   /* now, in a list: coral, as the line across the day */
.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(--d-plum); color: var(--n-0); }
.face--2 { background: var(--d-petrol); color: var(--n-0); }
.face--3 { background: var(--d-umber); color: var(--n-0); }
.face--4 { background: var(--d-oxblood); color: var(--n-0); }
.face--5 { background: var(--d-kelp); color: var(--n-0); }
.face--none { background: none; border: 1.5px dashed var(--red); }
.face img { width: 20px; height: 20px; }

/* [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 var(--pad-chip); 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; }
.panel { background: var(--white); border-radius: var(--radius); }

/* ------------------------------------------------------------------ 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(--inset); border-top: 1px solid var(--line); }
.rows .face { grid-row: span 2; }
.rows p { grid-column: 3; }
.rows time { grid-row: span 2; font-variant-numeric: tabular-nums; color: var(--soft); font-size: var(--t-small); }
.rows > li:first-child { border-top: 0; }
.rows .who { color: var(--ink); }   /* who did it, at body weight: the event is what is read (Bishop) */
.rows .was { color: var(--soft); }
.rows .more { font-size: var(--t-small); color: var(--soft); }
.day { padding: var(--s-5) var(--inset) 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(--inset); 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(--pad-ctl-sm); border: 1px solid var(--line); border-radius: var(--radius-ctl); 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); }
.pick select { font: inherit; font-size: var(--t-small); color: var(--ink); min-height: var(--ctl-sm); padding: 0 var(--pad-select) 0 var(--pad-field); border: 1px solid var(--line); border-radius: var(--radius-ctl); background: var(--white); }
@media (max-width: 899px) {
  .rows > li { grid-template-columns: 44px 32px minmax(0, 1fr); column-gap: var(--s-3); }
  .facts > div { grid-template-columns: 1fr; row-gap: 2px; }
  .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: var(--s-1); justify-items: start; text-align: left; width: 100%; max-width: var(--w-narrow); padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.answer b { display: inline-flex; align-items: center; min-height: var(--ctl); padding: 0 var(--pad-ctl); border-radius: var(--radius-ctl); background: var(--accent); color: var(--on-accent); font: 400 var(--t-control) var(--text); }
.answer:hover b { filter: brightness(1.15); }
.answer span { font-size: var(--t-label); line-height: 1.4; color: var(--soft); }
.inside > li { padding: var(--s-4) var(--inset); 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(--inset); }
.work > li { min-height: 72px; border-top: 1px solid var(--line); position: relative; }
.work__head { padding-block: var(--s-4) var(--s-3); }
.work .k { display: none; }
.work .what b { display: block; font-family: var(--display); font-weight: 500; }
.work .what .tag { display: flex; width: fit-content; margin-block: var(--s-1) 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: max-content minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-2); padding: var(--s-4) var(--inset); align-items: baseline; }   /* the label lane as wide as its words, the rest to the value (Bishop)*/
  .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 */
/* what a form holds outside its sets (its button, a note) starts where the sets' fields start */
.form > :not(.set):not(section):not(input) { padding-inline: var(--inset); }
.form { display: grid; gap: var(--gap-group); max-width: var(--w-wide); }
.set { display: grid; gap: var(--gap-field); padding: var(--inset); 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(--gap-field); }
.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-label); line-height: 16px; color: var(--soft); }
.field input, .field select, .field textarea, .act input, .act select, .act textarea {
  font: inherit; font-size: var(--t-control); color: var(--ink); width: 100%; min-height: var(--ctl); padding: 0 var(--pad-field);
  border: 1px solid var(--field-edge); border-radius: var(--radius); background: var(--white); }
.field textarea, .act textarea { min-height: 96px; padding-block: var(--s-3); resize: vertical; }
.field--amount input { inline-size: 9em; }   /* the label has the rail's width, the box an amount's (Bishop, round 5) */
.field input.reg { font: 500 var(--t-lead)/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; max-width: 220px; }
/* a plate asked for beside its button, in a head: one row at a control's height (Bishop, round 5: a two-line label pushed the lead away) */
.reg--ask { font: 500 var(--t-control)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; inline-size: 9em; min-height: var(--ctl-sm); padding: 0 var(--pad-field); border: 1px solid var(--field-edge); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.reg--ask::placeholder { font-family: var(--text); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--quiet); }
.problem { padding: var(--s-4) var(--inset); box-shadow: inset 3px 0 0 var(--red); background: var(--white); border-radius: var(--radius); }
.btn--quiet { border-color: var(--line); }
.inline { display: inline; }
.act { display: grid; gap: var(--gap-field); padding: var(--inset); background: var(--white); border-radius: var(--radius); }
/* a side column is one surface: its tasks are parted by a rule, not each put in a box of its own (Bishop) */
aside.stack { gap: 0; align-content: start; background: var(--white); border-radius: var(--radius); }
aside.stack > .act { background: none; border-radius: 0; }
aside.stack > .act + .act, aside.stack > * + .act { border-top: 1px solid var(--line); }
.act .pair { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--s-3); }
/* a deadline is one thing, a day and a time: they stand together at the width they need (Bishop: half a panel each) */
.when { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.field .when input, .act .when input { flex: none; width: auto; }
.when input[type=date] { inline-size: 11em; }
.when input[type=time] { inline-size: 7.5em; }
.act .btn { justify-self: start; }
.notes > li { padding: var(--s-4) var(--inset); 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; }
.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)); }
}
.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)); }
}
.empty { padding: var(--s-4) var(--inset); font-size: var(--t-small); color: var(--soft); }
.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(--inset); 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; }   /* 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(--inset); border-radius: var(--radius); }
@media (max-width: 899px) {
  .work > li > .cell > p, .work > li > .cell > .k { align-self: start; }
  .who-list > li { grid-template-columns: 1fr; }
  .who-list > li > .acts { padding-left: calc(32px + var(--s-3)); }   /* off-grid: the face and its gap, so the actions start under the name (Bishop, round 5) */
}
.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(--inset); }
.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: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, .8fr) 176px; }   /* the job leads, so it is the widest (Bishop, round 4); the sum's column holds its "utan moms" line, which ran past the edge at 140 (every row is its own grid, so the width is fixed) */
.lines--packages > li, .lines__head:has(+ .lines--packages) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr) minmax(0, .6fr) 176px; }   /* a package's name is short and its contents long (Bishop, round 5) */
.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-family: var(--display); font-weight: 500; }
.lines a.cover, .who-list a.cover { color: inherit; text-decoration: none; }
.lines .k { display: none; }
.sums { display: grid; gap: var(--s-2); padding: var(--inset); border-top: 1px solid var(--ink); border-top: 0; }
.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); flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-3); }   /* label and amount on one line where they fit (Bishop) */
.sums__pay dt { color: var(--ink); }
.sums__sub { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }   /* a second total under the one that matters: a line, not a size */
.sums__sub dt { color: var(--ink); }
.sums__pay dd { font: 400 var(--t-title)/1.2 var(--display); text-align: right; margin-left: auto; }   /* a total that wraps stays on the right edge with the other amounts */
.sums__note { padding: 0 var(--inset) var(--inset); }
.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(--inset); }
  .lines > li > :first-child { grid-column: 1 / -1; }
  .lines > li > .about { order: -1; }
  .lines > li > :first-child { order: -2; }
  .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; }
}
.plate--big { font-size: .62em; padding: .1em .35em;   /* off-grid: the plate scales with the title it sits in */ border-width: 2px; text-decoration: none; color: var(--ink); }
.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(--inset) var(--s-3); border-bottom: 1px solid var(--line); }
.band { font: 500 18px/24px var(--display); letter-spacing: -0.005em; }
.panel > .band { padding: var(--s-4) var(--inset) 0; }
.jobs > li, .partlist > li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: var(--s-4); align-items: start; scroll-margin-top: var(--s-8); padding: var(--s-4) var(--inset); border-top: 1px solid var(--line); }
.jobs > li:first-child, .partlist > li:first-child { border-top: 0; }
.partlist > li { grid-template-columns: 48px minmax(0, 1fr) auto; }   /* the tick's lane is the drawn box and the count's lane its words: the job starts close after them (Bishop, round 5) */
.job { display: grid; gap: var(--s-2); min-width: 0; }
.job__what b { font-family: var(--display); font-weight: 500; }
.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); }
.job__price { font-size: var(--t-small); color: var(--soft); font-variant-numeric: tabular-nums; }
/* the job a mechanic came to from their day stands out when the order opens on it (#rad-…) */
.jobs > li:target { background: color-mix(in oklch, var(--coral) 10%, var(--white)); box-shadow: inset 3px 0 0 var(--coral-mark); }
.job__car { display: none; }
.jobs > li:target .job__car { display: inline; }   /* the job a mechanic came to says which car, even scrolled past the head (Bishop, round 10) */
.job__done { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.jobs > li:target .job__done .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }   /* on the job they came for, finishing it is the next step */
/* adding time to a job that is ticked is its own control beside the time, not one more disclosure among three (Bishop, round 9) */
.mend--time > summary { display: inline-flex; align-items: center; min-height: var(--ctl-sm); padding: 0 var(--pad-ctl-sm); border: 1px solid var(--ink); border-radius: var(--radius-ctl); font-size: var(--t-control); list-style: none; cursor: pointer; }
.mend--time > summary::-webkit-details-marker { display: none; }
/* [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(--inset); 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(--field-edge); border-radius: var(--radius); background: var(--white); }
.inrow .field, .addrow .field { min-width: 0; }
.addrow .field:not(.field--n):not(.field--wide) { flex: 0 1 180px; }
.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(--field-edge); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.found { padding: var(--s-4) var(--inset); 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); }
.layouts { display: inline-flex; gap: 2px; height: var(--ctl-sm); padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-ctl); background: var(--white); width: fit-content; }
.layouts button { font: inherit; font-size: var(--t-control); padding: 0 var(--pad-field); border: 0; border-radius: var(--radius); 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); }
.layouts--three button { padding: 0 var(--pad-chip-tight); }   /* three words in the rail's width (the week's audit: 15 px over) */
@media (max-width: 899px) {
  .jobs > li, .partlist > li { 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: 28px minmax(0, 1fr); }   /* the pressed area reaches 36, inside the gap */
  .tick { width: 44px; height: 44px; margin: -8px 0 0 -8px; }      /* off-grid: 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: 48px minmax(0, 1fr); }
  .addrow .field--n { width: calc(50% - var(--s-2)); }
}

/* ------------------------------------------------------------------ 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-lead: 16px; }
body[data-layout="compact"] .page { padding-top: var(--s-6); }
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"] aside.stack { gap: 0; }
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; }
/* 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(--inset); 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); }
.rows--plain > li { grid-template-columns: 3.5em minmax(0, 1fr); align-items: first baseline; }
.rows--plain time { white-space: nowrap; }
.rows--plain p { grid-column: -2; }   /* the text in the row's last column however many it has; "3" made a third, implicit one in a two-column row (lunch stood at the right) */   /* a booking has no face: the time and the job share a first line (Bishop) */
.rows--plain form.more { grid-column: 3; }
.inrow input.n--time { width: 112px; }
@media (max-width: 899px) {
  .rows--plain > li { grid-template-columns: 96px 12px minmax(0, 1fr); }
  .rows--start > li { grid-template-columns: 3.5em minmax(0, 1fr); }   /* a start time alone, as on I dag, needs no range's room (Bishop, round 6) */
}

/* ------------------------------------------------------------------ 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(--inset); 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; }
.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(--inset); 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; }
}
.addrow .hint { flex: 1 1 100%; }
.addrow--stack { display: grid; gap: var(--s-3); }
.addrow--stack > .btn { justify-self: start; }
.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: var(--radius-ctl); font-size: var(--t-control); background: var(--white); color: var(--soft); }
.days input:checked + span { background: var(--pool); border-color: var(--pool); color: var(--pool-ink); }
.days input:focus-visible + span { outline: 2px solid var(--kelp); outline-offset: 2px; }
.day__hours { padding: 0 var(--inset) var(--s-2); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .day__hours { padding-inline: var(--inset); }
}

/* ------------------------------------------------------- the tyre hotel: whose wheels lie where, and how worn they are */
.tag--stop { background: var(--red); color: var(--white); }
.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: 1px solid var(--line); border-radius: var(--radius-ctl); background: var(--white); }   /* the same switch as Dag/Vecka */
.filter nav a { display: inline-flex; align-items: center; min-height: calc(var(--ctl-sm) - 6px); padding: 0 var(--pad-field); border-radius: var(--radius); font-size: var(--t-control); color: var(--soft); text-decoration: none; }
.filter nav a[aria-current] { background: var(--ink); color: var(--n-0); }
.filter input[type=search] { font: inherit; min-height: var(--ctl-sm); padding: 0 var(--s-3); border: 1px solid var(--field-edge); border-radius: var(--radius); background: var(--white); width: 230px; max-width: 100%; }
.done { padding: var(--s-4) var(--inset); box-shadow: inset 3px 0 0 var(--kelp); background: var(--kelp-wash); border-radius: var(--radius); }
.done--complaint { box-shadow: inset 3px 0 0 var(--k-reklamationer); background: color-mix(in oklch, var(--k-reklamationer) 8%, var(--white)); }   /* a case that is a complaint says so in the complaint's colour, not the order's */
.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); }
.addrow--plain { background: none; border-top: 0; padding: var(--s-2) 0 0; }
.addrow .field--wide select { width: 100%; }
@media (max-width: 899px) { .daynav { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
}
@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%; }
}
.addrow input[type=file] { font: inherit; font-size: var(--t-small); width: 100%; min-height: var(--ctl-sm); padding: var(--s-1) 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: var(--s-1) var(--pad-chip); border: 1px solid var(--ink); border-radius: var(--radius); 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); }

/* ---------------------------------------------------------------- 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 { box-shadow: inset 3px 0 0 var(--sun); max-width: var(--w-wide); }
.facts--answers > div { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
@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; }
  .facts--answers > div { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------- 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); }
.choices { display: grid; gap: 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: 3px 0 0; accent-color: var(--kelp); width: 18px; height: 18px; flex: none; }
.choice b { font-family: var(--display); font-weight: 500; display: block; }
.choice small { display: block; font-size: var(--t-small); color: var(--soft); }
.choice:not(:has(small)) { align-items: center; }   /* a one-line choice: the circle sits on the middle of its word (Bishop, round 5) */
.choice:not(:has(small)) input { margin: 0; }
.choice:has(input:checked) { border-color: var(--kelp); box-shadow: 0 0 0 1px var(--kelp); background: var(--kelp-wash); }
@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; }
}
/* 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(--d-plum); }
.face--2-edge { box-shadow: inset 3px 0 0 var(--d-petrol); }
.face--3-edge { box-shadow: inset 3px 0 0 var(--d-umber); }
.face--4-edge { box-shadow: inset 3px 0 0 var(--d-oxblood); }
.face--5-edge { box-shadow: inset 3px 0 0 var(--d-kelp); }
.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 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(--inset); }
.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(--inset); }
}

/* [utkast] Bishop's foundation (2026-11-18): every field the same size of words and the same corners, wherever it is */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not(.reg), select, textarea { font-size: var(--t-control); border-radius: var(--radius-ctl); }

/* a row inside a surface that already has its inset does not add another: the export's facts sat 48 px in (Bishop, round 3) */
:is(.act, .set, .peek) :is(.facts > div, .rows > li, .who-list > li, .lines > li) { padding-inline: 0; }
/* what stands loose in a side column (a link, a note) starts where its tasks start */
aside.stack > :not(.act):not(.set):not(.panel):not(.warn) { padding: var(--s-3) var(--inset); }
/* a warning inside a surface is a box of its own, set in by the surface's inset (Bishop, round 3: it ran edge to edge) */
:is(aside.stack, .panel) > .warn { margin: var(--s-3) var(--inset); }

/* an order's head says how far it is and what it costs, before any editor (Bishop: the total sat below both editors) */
.orderhead__sum { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-size: var(--t-small); color: var(--soft); font-variant-numeric: tabular-nums; }
.orderhead__sum b { font-family: var(--display); font-weight: 500; color: var(--ink); }
.warn-text { color: var(--shell-ink); }
/* additions on a finished order wait behind their own action */
details.addrow--more { display: block; }
details.addrow--more > summary { cursor: pointer; color: var(--soft); font-size: var(--t-small); }
details.addrow--more[open] > summary { margin-bottom: var(--s-3); }
details.addrow--more > .addrow { padding: 0; border-top: 0; background: none; }
/* in a wide card a total's label and amount share one line (Bishop: they sat on two lines at opposite edges) */

/* a fact that can be changed says so beside itself, and leads to where it is changed (Bishop: edit beside the summary) */
.facts > div:has(> .facts__do) { grid-template-columns: 180px minmax(0, 1fr) auto; }
.facts__do { font-size: var(--t-small); }
.facts__do a { color: var(--soft); }
@media (max-width: 899px) { .facts > div:has(> .facts__do) { grid-template-columns: minmax(0, 1fr) auto; } .facts > div:has(> .facts__do) > dt { grid-column: 1 / -1; } }
/* a case list in the work column gives the title the room: the owner shows as a face only (Bishop: titles wrapped to four lines) */
.panel:has(> .work) { container-type: inline-size; }
@container (600px < width <= 860px) {   /* a work column on a desk; a phone keeps its own stacked rows */
  .work > li, .work__head { grid-template-columns: 96px minmax(0, 1.6fr) auto minmax(0, 1fr); }
  .work .cell .one { font-size: 0; gap: 0; }
  .work .cell .one .face { font-size: var(--t-label); }
  .work__head span:nth-child(3) { font-size: 0; }
}
.facts > div > dd.facts__do { grid-column: -2 / -1; grid-row: 1; justify-self: end; }   /* always the last column, on its fact's line */
@media (max-width: 899px) { .facts > div > dd.facts__do { grid-row: 2; } }

/* a list row that leads with what it is: the plate, then the job (Bishop: the order number led and the plate hid) */
.lead-cell { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; }
.lead-cell > span { min-width: 0; }
/* a row that opens a record shows it can (Bishop: search results read as plain text) */
.go { color: var(--soft); font-size: var(--t-lead); line-height: 1; }

/* a section's heading with its one action beside it */
.block__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }

/* the tread in its own column: the measure, then its warning under it, never pushed sideways (Bishop) */
.lines--tyres .num { display: grid; justify-items: end; align-content: center; gap: 2px; }
@media (max-width: 899px) { .lines--tyres .num { justify-items: start; } }
/* a list of bookings has no face to show: the time and the job share a first line (Bishop: the time floated mid-row) */
.rows--plain > li > span:empty { display: none; }
/* a person's face stands at their name, not in the middle of everything under it */
.who-list .one { align-items: flex-start; }
/* a person's row: face, name and their actions start on one top line, clear of the rule above (Bishop) */
.who-list > li:has(> .one), .who-list > li:has(> span > .one) { align-items: start; }

.who-list > li:has(> .go) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.lead-cell > .plate { flex: none; min-width: 6.5em; justify-content: center; }   /* one width, so every job title in the list starts on one edge */

/* what is due today carries the accent: now is the accent's job (the line through the day is the other) */
.tag--due { background: none; box-shadow: inset 0 0 0 1px var(--accent-mark); color: var(--accent-mark); }   /* a deadline, not a booking: an outline in the accent, and the word Senast (Bishop, round 5) */
/* closing is the last thing done, not the next step: an outlined button (Bishop) */
.answer--quiet b { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.answer--quiet:hover b { filter: none; background: var(--n-1); }

/* in the history the time and the face start where the event's words start (Bishop: they floated mid-row) */
.rows:not(.rows--plain) > li { align-items: start; }
.rows:not(.rows--plain) > li > time { padding-top: var(--s-1); }

/* one task's parts stand closer than the sections around it */
.stack--task { gap: var(--gap-group); }
/* a form's action is the foot of its surface */
.set__foot { padding-top: var(--s-4); border-top: 1px solid var(--line); }
/* a list's sort note stands at the band's right edge on every list, and wraps inside its own box (Bishop) */
.bandhead > .hint { flex: 1 1 14em; text-align: right; text-wrap: pretty; }   /* on a phone too: notes beside a title share the panel's right edge (Bishop, round 5) */
/* a search field and its button stay together */
.seek-pair { display: inline-flex; gap: var(--s-2); flex: 1 1 260px; min-width: 0; }
.seek-pair > input { flex: 1; min-width: 0; }

/* a day off is quiet: its fields stay, faint and dashed, and the word says it (Bishop: off days had two full fields) */
.week > li.is-off .hint { color: var(--ink); }
/* a head whose action is a small form: the form stands at the foot of the head, the title and lead stay together */
.top > form:has(.field) { grid-row: 1 / span 3; align-self: end; }
/* a decision in a side column: options as rows parted by a rule, not boxes (Bishop) */
.choices--tight { grid-template-columns: 1fr; gap: 0; }   /* the side column is too narrow for three side by side */
.choices--tight .choice { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: var(--s-3) 0; }
.choices--tight .choice:first-child { border-top: 0; }
.choices--tight .choice:has(input:checked) { box-shadow: none; background: none; }
/* a booking's removal stands in the row's own action place, at its end (Bishop: it moved with the job's name) */
.rows--range > li { grid-template-columns: 7em minmax(0, 1fr) auto; }
.rows--range > li > p:not(.more) { grid-column: 2; }
.rows--range > li > .more { grid-column: 3; grid-row: 1; align-self: start; }
.rows--range > li > span:not(:empty) { grid-column: 1; grid-row: 2; }

@media (max-width: 899px) {
  .rows--range > li { grid-template-columns: 7em minmax(0, 1fr); }
  .rows--range > li > .more { grid-column: 2; grid-row: auto; }   /* on a phone the job takes the width; removal goes under it */
}

/* ------------------------------------------------------------------ kinds: what sort of thing this is, by colour and icon
   (design round, 2026-11-18). A square in a Deepbob dark with its icon is a kind; a circle is a person. The kind is set
   with data-kind on the menu's links, on the page, and on a section about another kind than the page's own. */
[data-kind="idag"] { --kind: var(--k-idag); --kind-icon: url("/static/icons/sun.svg"); }
[data-kind="schema"] { --kind: var(--k-schema); --kind-icon: url("/static/icons/calendar-days.svg"); }
[data-kind="arenden"] { --kind: var(--k-arenden); --kind-icon: url("/static/icons/clipboard-list.svg"); }
[data-kind="ordrar"] { --kind: var(--k-ordrar); --kind-icon: url("/static/icons/wrench.svg"); }
[data-kind="hallen"] { --kind: var(--k-hallen); --kind-icon: url("/static/icons/car-front.svg"); }
[data-kind="dack"] { --kind: var(--k-dack); --kind-icon: url("/static/icons/disc-3.svg"); }
[data-kind="reklamationer"] { --kind: var(--k-reklamationer); --kind-icon: url("/static/icons/message-square-warning.svg"); }
[data-kind="kunder"] { --kind: var(--n-7); --kind-icon: url("/static/icons/user.svg"); }
[data-kind="veckan"] { --kind: var(--n-7); --kind-icon: url("/static/icons/chart-column.svg"); }
[data-kind="tid"] { --kind: var(--n-7); --kind-icon: url("/static/icons/clock.svg"); }
[data-kind="paket"] { --kind: var(--n-7); --kind-icon: url("/static/icons/package.svg"); }
[data-kind="mallar"] { --kind: var(--n-7); --kind-icon: url("/static/icons/clipboard-check.svg"); }
[data-kind="personer"] { --kind: var(--n-7); --kind-icon: url("/static/icons/users.svg"); }
[data-kind="historik"] { --kind: var(--n-7); --kind-icon: url("/static/icons/history.svg"); }
[data-kind="kopplingar"] { --kind: var(--n-7); --kind-icon: url("/static/icons/plug.svg"); }
[data-kind="jag"] { --kind: var(--n-7); --kind-icon: url("/static/icons/sliders-horizontal.svg"); }
.tile { display: inline-grid; place-items: center; inline-size: 24px; block-size: 24px; flex: none; border-radius: var(--radius); background: var(--kind); }
.tile::after { content: ""; inline-size: 16px; block-size: 16px; background: var(--n-0); mask: var(--kind-icon) center / contain no-repeat; }
.tile--line { background: none; }   /* set-up places: the icon alone, in the quiet ink */
.tile--line::after { background: var(--kind); inline-size: 18px; block-size: 18px; }
/* a section about another kind: its dark along the top and its square by the title, so a case shows its order and
   an order its booking as what they are */
.panel[data-kind]:not(.is-empty) { box-shadow: inset 0 3px 0 var(--kind); }   /* an empty one keeps the square only (Bishop, round 7: an empty section outweighed the next step) */
.band:has(> .tile), .label:has(> .tile) { display: flex; align-items: center; gap: var(--s-3); }
.label:has(> .tile) { gap: var(--s-2); }
.tile--sm { inline-size: 20px; block-size: 20px; }
.tile--sm::after { inline-size: 14px; block-size: 14px; }
/* a button that makes or opens a kind carries its icon in the button's own colour; a link that leads on along the
   flow (case → order → schedule) carries it small, in the kind's dark (design part two, 2026-11-18). Buttons that
   save, change or remove have none: the word says it. */
.btn[data-kind]::before { content: ""; inline-size: 16px; block-size: 16px; flex: none; margin-inline-end: var(--s-2); background: currentColor; mask: var(--kind-icon) center / contain no-repeat; }
a.via[data-kind]::before { content: ""; display: inline-block; inline-size: 1.1em; block-size: 1.1em; vertical-align: -0.2em; margin-inline-end: var(--s-1); background: var(--kind); mask: var(--kind-icon) center / contain no-repeat; }
/* the page's own kind, before the kicker */
/* inline, not flex: a kicker is a sentence with links in it, and flex would cut it into columns on a phone. The tile and
   its symbol share one origin, as the menu's .tile does (Peter, 2026-11-19: centred "på samma sätt som i menypanelen"):
   the 20px tile sits 2px above the 16px line so their middles meet, and the 14px symbol 3px in from every edge. A
   second line on a phone starts under the words, not under the tile. */
.page[data-kind] .head > .label:first-child { position: relative; padding-left: calc(20px + var(--s-2)); }   /* off-grid: the tile's own 20px and its gap, so the words start after it */
.page[data-kind] .head > .label:first-child::before { content: ""; position: absolute; left: 0; top: -2px; inline-size: 20px; block-size: 20px; border-radius: var(--radius); background: var(--kind); }
.page[data-kind] .head > .label:first-child::after { content: ""; position: absolute; left: 3px; top: 1px; inline-size: 14px; block-size: 14px; background: var(--n-0); mask: var(--kind-icon) center / contain no-repeat; }

/* one checkbox with its words, in a form's column */
.checkline { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); cursor: pointer; }
.checkline input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
/* the foot of a sale: its contract, and whether the contract's terms are still a draft */
.salefoot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: 0; }
.salefoot .hint { flex: 0 1 auto; }

/* A page's quiet note about where the thing comes from (an order read in from Infoflex, 2026-11-19): set apart like
   a done message, in the grey of the ground rather than a colour that says something happened. */
.note-band { margin-bottom: var(--s-5); padding: var(--s-4) var(--inset); border-radius: var(--radius); background: var(--n-1); box-shadow: inset 3px 0 0 var(--n-7); font-size: var(--t-small); }
.note-band ul { margin: var(--s-3) 0 0; padding-left: var(--s-5); }
