/* What belongs to one view only: the schedule, the week, the tyre hotel, forms, complaints, the merge, the door. */
body { font-synthesis: none; font: var(--t-body)/1.5 var(--text); letter-spacing: -0.006em; color: var(--ink); background: var(--n-0); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
p { text-wrap: pretty; }
/* a short block in the week shows one whole line, never slices of two (Bishop) */
@container (max-height: 40px) { .wk__block span { display: none; }
}

/* ------------------------------------------------------------------ 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; /* off-grid: the door's plate is drawn, its air relative to its own letters */ 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; /* off-grid: drawn, not set */ border-width: 3px; border-radius: 10px; }
  .door__show p { font-size: var(--t-body); }
}
.people { display: grid; gap: var(--s-3); }
form.find { margin: 0; }
button.btn { cursor: pointer; }
.lack { display: flex; align-items: center; gap: var(--s-2); }
.lack .dot { align-self: start; margin-top: .55em; }   /* off-grid: on the first line of its text */
@media (max-width: 899px), (pointer: coarse) {
  p.label > a { display: inline-block; padding-block: 14px; margin-block: -14px; }   /* off-grid: a finger's box around a small link */
}
.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); }
.demo__word { display: grid; gap: var(--gap-field); inline-size: min(100%, 320px); }   /* the demo's word: one field and its button, the width of a password */
.people--demo small { font-size: var(--t-small); color: var(--soft); line-height: 1.45; }

/* ------------------------------------------------------------------ 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); }
.orderhead__who { color: var(--soft); }
/* an order's or a case's way as steps (design round, 2026-11-18): a line through five dots in the kind's dark; what is done is
   filled and ticked, where it is now is a ring, what is ahead is grey. The next step is the button beside them. */
.way { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-2); }   /* an order's and a case's way */
.way__next { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); font-size: var(--t-lead); }
.way__next .label { align-self: center; }
.way__do { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }   /* waiting is a branch of the step it is at, on its own line, not a step after the last (Bishop, round 8) */
.steps .is-wait .steps__dot { border-style: dashed; }   /* under way, but waiting: the ring is broken */
.steps--case { grid-auto-columns: 136px; }   /* a case's middle step can say "Väntar på kunden" */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; list-style: none; padding: 0; margin: 0; }   /* equal steps, the first dot on the page's edge */
.steps li { position: relative; display: grid; justify-items: start; gap: var(--s-1); font-size: var(--t-label); color: var(--quiet); }
.steps li + li::before { content: ""; position: absolute; top: 9px; left: calc(10px - 100%); inline-size: 100%; block-size: 2px; background: var(--n-1); z-index: 0; }   /* from the dot before to this one */
.steps li.is-done + li::before, .steps li.is-done + li.is-now::before { background: var(--kind); }
.steps__dot { position: relative; z-index: 1; inline-size: 20px; block-size: 20px; border-radius: 50%; border: 2px solid var(--n-4); background: var(--white); box-sizing: border-box; }
.steps .is-done .steps__dot { border-color: var(--kind); background: var(--kind); }
.steps .is-done .steps__dot::after { content: ""; position: absolute; inset: 2px; background: var(--n-0); mask: url("/static/icons/check.svg") center / contain no-repeat; }
.steps .is-now .steps__dot { border-color: var(--kind); box-shadow: 0 0 0 3px color-mix(in oklch, var(--kind) 18%, transparent); }
.steps .is-now { color: var(--ink); }
.steps .is-done { color: var(--soft); }
.steps__left { font-size: var(--t-small); color: var(--soft); }   /* what is left before the next step, or where it goes next */
@media (max-width: 899px) {
  .steps { grid-auto-columns: 68px; }   /* five names fit across a phone at this width */
  .steps--case { grid-auto-columns: minmax(0, 1fr); inline-size: 100%; }
}
.part__n { font-variant-numeric: tabular-nums; }
.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); }
.entry form { display: inline-flex; }
.tl__row { display: grid; grid-template-columns: 224px 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-3) var(--s-3) var(--inset); min-width: 0; }
.tl__who small { display: block; white-space: nowrap; 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; position: relative; }
.tl__hours span { padding: var(--s-3) 0 var(--s-6) var(--s-1); border-left: 1px solid var(--line); }   /* the hours on one line and the now chip on its own under them (Bishop, round 8: it covered "17") */
.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 var(--s-2); 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); container-type: inline-size; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.tl__block b { font-family: var(--display); font-weight: 500; 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; }
  .tl__block { padding-inline: var(--s-2) var(--s-1); }
  .tl__block b { white-space: normal; overflow-wrap: normal; text-overflow: clip; line-height: 1.15; }   /* a plate breaks at its space, "MHK / 902", rather than ending in "…" */
}     /* a short block keeps its name and drops its hours; the list under says them */
@container (max-width: 64px) { .tl__block .block__word, .wk__block .block__word { display: none; } }   /* lunch and time off say it by their symbol (Bishop: "L…") */
.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); }
.todo > li { display: grid; gap: var(--s-2); padding: var(--s-3) var(--inset); 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-family: var(--display); font-weight: 500; }
.todo .inrow select, .n--time { 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); }
.todo .inrow select { flex: 1 1 120px; min-width: 0; }
.todo__note { padding: 0 var(--inset) var(--inset); }
@media (max-width: 899px) {
  .tl { display: none; }
}
.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; }
.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(--inset); border-top: 1px solid var(--line); min-height: var(--row); }
.week > li:first-child { border-top: 0; }
.week__day { font-family: var(--display); font-weight: 500; }
.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(--field-edge); 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); }
.week__add { grid-column: 2 / -1; }
.week__add > summary { display: inline-flex; align-items: center; gap: var(--s-3); min-height: var(--ctl); list-style: none; cursor: pointer; }
.week__add > summary::-webkit-details-marker { display: none; }
.week__add .linkish { min-height: 0; min-width: 0; }   /* the summary is what is pressed, at a control's height */
.week__add:not(:has(input:enabled)) > summary { pointer-events: none; }
.week__add[open] > summary { display: none; }   /* the fields take the words' place */
.week__times { display: grid; grid-template-columns: 124px auto 124px; align-items: center; gap: var(--s-3); }
.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(--inset); 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-family: var(--display); font-weight: 500; white-space: nowrap; }
.slots__days { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.slots__days span { font-size: var(--t-small); padding: 1px var(--s-2); 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); }
@media (max-width: 899px) { .slots > li { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline: var(--inset); } .slots__days { grid-column: 1 / -1; grid-row: 2; }
}
.callable { display: grid; gap: var(--s-1); font-size: var(--t-small); font-variant-numeric: tabular-nums; }   /* a quiet list (Peter: it stood out more than it meant) */
.callable li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px var(--s-4); }
.callable__next { 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, var(--hatch) 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: 0; pointer-events: none; }
.tl__at { position: absolute; bottom: 2px; left: calc(var(--l) * 1%); transform: translateX(-50%); padding: 1px var(--pad-chip-tight); border-radius: 999px; background: var(--accent); color: var(--on-accent); letter-spacing: .02em; z-index: 2; }
.tl__track.has-calls { min-height: calc(var(--lanes, 1) * 52px + 8px + 22px); }
.tl__call { container-type: inline-size; position: absolute; bottom: 3px; height: 18px; left: calc(var(--l) * 1%); width: calc(var(--w) * 1%); min-width: 6px; padding: 0 var(--pad-chip-tight); border: 0; border-radius: var(--radius); background: var(--pool); color: var(--pool-ink); font-family: inherit; font-size: var(--t-marker); 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); }
.tl__call .icon { vertical-align: -.25em; }
@container (max-width: 60px) { .tl__call .block__word { display: none; } }   /* a short call time is its symbol (Bishop: "Sa…") */
@media (max-width: 899px) {
  .week > li { grid-template-columns: 1fr auto 1fr; padding-inline: var(--inset); }
  .week__day { grid-column: 1 / -1; }
  .week > li > .hint { display: none; }
  .week > li:has(> .week__add:not([open])) { grid-template-columns: minmax(0, 1fr) auto; }
  .week > li:has(> .week__add:not([open])) > .week__day { grid-column: auto; }
  .week__add[open] { grid-column: 1 / -1; }
  .week__times { grid-template-columns: 1fr auto 1fr; }
}      /* 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 var(--pad-chip); border: 0; border-radius: var(--radius); background: var(--kelp); color: var(--n-0); font: 500 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); }
.wheels__set { display: grid; gap: var(--s-2); padding: var(--s-4) var(--inset); 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-family: var(--display); font-weight: 500; }
.wheels__depth { margin-left: auto; font-variant-numeric: tabular-nums; }
.wheels .readings { border-top: 0; padding-top: 0; max-width: 460px; }
.swap .inrow .field { flex: 1 1 150px; }
.swap .inrow .field--wide { flex: 2 1 240px; }   /* three buttons do not fit one row of a phone */
.swap .inrow .field--n { flex: 0 1 110px; }
@media (max-width: 899px) {
  .wheels__set { padding-inline: var(--inset); }
  .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(--inset); }
.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: var(--s-1); padding: var(--s-3); text-align: center; }
.shot--other b { font: 500 var(--t-label)/1 var(--display); letter-spacing: .08em; padding: var(--s-1) var(--s-2); 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; }
@media (max-width: 899px) { .shots { padding-inline: var(--inset); grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
.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(--field-edge); 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(--inset); }
.ask .field--n { flex: 0 0 180px; }
.ask .hint { flex: 1 1 260px; }
.must { font-style: normal; font-size: var(--t-label); color: var(--soft); background: var(--n-1); padding: 1px var(--pad-chip-tight); border-radius: var(--radius); margin-left: var(--s-1); }
.needs { box-shadow: inset 3px 0 0 var(--shell); }
.needs:has(.tag--on) { box-shadow: inset 3px 0 0 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); }
.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(--inset); }
.sheet__page { max-width: 800px; margin: 0 auto var(--s-8, 64px); padding: 48px 56px; /* off-grid: an A4 page's margins, read on paper */ 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: var(--s-1) 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) {
  .asks { grid-template-columns: 1fr; padding: var(--s-4); }
  .ask { padding-inline: var(--inset); }
  .sheet__page { padding: var(--s-5); }
  .sheet__pair, .sheet__answers, .sheet__shots { 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: var(--s-4); }
  .sheet .sheet__shots img { max-height: 220px; }
  .sheet .sheet__answers > div:has(.pre) { grid-column: auto; }
}

/* -------------------------------------------------------------------- the handover: how the car looked when it changed hands */
.proof { display: grid; gap: var(--s-3); padding: var(--s-4) var(--inset); box-shadow: inset 3px 0 0 var(--kelp); }
.proof__what { font-size: var(--t-body); }
.proof__what b { font-family: var(--display); font-weight: 500; 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(--inset); }
}
.claim { padding: var(--s-4) var(--inset) 0; font-size: var(--t-lead); max-width: 60ch; }
.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); }
@media (max-width: 899px) {
  .claim { padding-inline: var(--inset); }
}
.crew { margin: 0; }   /* the grid's gap sets its distance, not a margin of its own */
.crew a { display: inline-flex; align-items: center; padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1); border-radius: 999px; color: var(--soft); text-decoration: none; font-size: var(--t-small); }
.crew a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.crew a:first-child { padding-left: var(--s-3); }
.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-family: var(--display); font-weight: 500; }
.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: var(--today-col); }
.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: var(--s-2); 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 var(--pad-chip-tight) 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, var(--hatch) 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: var(--s-1) var(--pad-chip-tight) var(--s-1) var(--s-2); 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: size; }   /* size, so a short block can ask its height */
.wk__block b { font-family: var(--display); font-weight: 500; 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: 110px) { .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); }
@media (max-width: 899px) {
  .wk { display: none; }
}

/* [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%; }
/* [utkast] the history's own search (plan 5) */
.history__ask { 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; }

/* a narrow block says the whole plate rather than half of a sentence (Bishop: "MHK…", "L…") */
.wk__block i, .tl__block i { font-style: normal; }
@container (max-width: 120px) { .wk__block .block__job, .tl__block .block__job { display: none; } }   /* not .job: that is the order's row */

/* taking everything out sits with the filters, where it stays put however long the log grows (Bishop) */
.history__export { margin-left: auto; align-self: center; }

.wk__date { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

/* ------------------------------------------------------------------ a person's own day as a path (design part three)
   The rows hang on one line through their dots: done is the order's dark with a tick, now a coral ring, later grey. */
.dayline > li { grid-template-columns: 3.5em 20px minmax(0, 1fr) 16px; column-gap: var(--s-3); border-top: 0; position: relative; }
.dayline > li > p { grid-column: 3; }
/* a job row opens its job on the order: the whole row is pressed, and a chevron says so (Bishop, round 9) */
.dayline > li:has(a.cover)::after { content: ""; grid-column: 4; grid-row: 1 / span 2; align-self: center; inline-size: 16px; block-size: 16px; background: var(--soft); mask: url("/static/icons/chevron-right.svg") center / contain no-repeat; }
.dayline > li::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--inset) + 3.5em + var(--s-3) + 9px); inline-size: 2px; background: var(--n-1); }
.dayline > li:first-child::before { top: 50%; }
.dayline > li:last-child::before { bottom: 50%; }
.dayline > li:only-child::before { display: none; }
.dayline__dot { position: relative; z-index: 1; grid-row: span 2; align-self: center; inline-size: 20px; block-size: 20px; border-radius: 50%; border: 2px solid var(--n-4); background: var(--white); box-sizing: border-box; }
.dayline .is-done .dayline__dot { border-color: var(--k-ordrar); background: var(--k-ordrar); }
.dayline .is-done .dayline__dot::after { content: ""; position: absolute; inset: 2px; background: var(--n-0); mask: url("/static/icons/check.svg") center / contain no-repeat; }
.dayline .is-now .dayline__dot { border-color: var(--coral-mark); box-shadow: 0 0 0 3px color-mix(in oklch, var(--coral) 45%, transparent); }
.dayline .is-done p:not(.more) { color: var(--soft); }
.dayline .is-past .dayline__dot { border-style: dashed; border-color: var(--n-6); }
.dayline .is-over .dayline__dot { border-color: var(--n-4); background: var(--n-1); }   /* a break that is over: quiet, never the tick that means confirmed work (Bishop, round 9) */
.dayline .is-over p:not(.more) { color: var(--soft); }   /* its time has gone and nobody ticked it: said in words beside it */
.dayline .is-now { background: color-mix(in oklch, var(--coral) 10%, var(--white)); }
.dayline > li > time { align-self: center; }
.dayline > li > span.dayline__dot { display: block; }   /* an empty span is hidden in plain rows; the dot is drawn, not empty */
.dayline p .icon { color: var(--soft); }

/* ------------------------------------------------------------------ dragging a booking (drag.js, 2026-11-18)
   A block that can be moved shows a hand; while dragged it lifts above the others and a label says where it lands. */
@media (hover: hover) { [data-move] { cursor: grab; } }
.is-dragging { z-index: 4; cursor: grabbing; box-shadow: 0 8px 20px color-mix(in oklch, var(--ink) 22%, transparent); opacity: .94; }
.is-moving { opacity: .6; }
.is-dragging-booking { user-select: none; cursor: grabbing; }
.drag-tip { position: fixed; z-index: 20; padding: var(--s-1) var(--pad-chip); border-radius: var(--radius); background: var(--band); color: var(--on-band); font-size: var(--t-small); font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }

/* ------------------------------------------------------------------ erasing a customer: the three lists */
.erase__list { padding: var(--s-4) var(--inset); }

/* ------------------------------------------------------------------ the answer to a complaint, as a letter */
.letter__body { display: grid; gap: var(--s-3); }
.letter__body .label { margin-top: var(--s-4); }
.letter__decision { font-size: var(--t-lead); }
.letter__ask { display: grid; gap: var(--s-3); justify-items: start; }

/* ------------------------------------------------------------------ the sale contract, to print and sign */
/* The draft mark waits on Willy, so it wears "waits for us"; dashed, and kept on paper, where a browser drops colour. */
.contract__draft { margin: 0; padding: var(--s-3) var(--s-4); background: var(--shell); color: var(--shell-ink); font-weight: 500;
  border: 2px dashed currentColor; border-radius: var(--radius); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
/* A field written by hand: its name small, then room for the pen, then the line. */
.contract__fill { display: block; padding-bottom: var(--s-5); border-bottom: 1px solid var(--soft); color: var(--soft);
  font-size: var(--t-small); }
.contract__fill--short { display: inline-block; min-width: 12em; padding-bottom: 0; }
.contract__sums { max-width: 560px; padding: 0; }
.contract section > h2.label { margin-bottom: var(--s-3); }
.contract dd + dt { margin-top: var(--s-4); }
.contract__terms { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); list-style: decimal; }
.contract__sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-6); break-inside: avoid; }
/* The pen goes on the line; what it is for is written under it. */
.contract__line { margin: var(--s-6) 0 0; padding-top: var(--s-1); border-top: 1px solid var(--ink); font-size: var(--t-small);
  color: var(--soft); }

/* ------------------------------------------------------------------ approving a connection to another system */
.connect { display: grid; gap: var(--gap-section); max-width: 720px; }
.connect__list { display: grid; gap: var(--s-2); margin: 0; padding: var(--s-4) var(--inset) var(--s-4) calc(var(--inset) + var(--s-4)); list-style: disc; }
.connect__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.connect__act .hint { flex: 1 1 100%; margin: 0; }

/* ------------------------------------------------------------------ Veckan: the week in figures */
/* the spec's own figures first and largest; the panels under them support them, in a smaller size */
.weekhead > div { padding-block: var(--s-5); }
.weekly { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--gap-section); align-items: start; }
.weekly > [data-kind="schema"], .weekly > :last-child { grid-column: 1 / -1; }   /* the time and the last panel the whole width, the two between side by side */
.figures--flat { border-radius: 0; }
.figures--small { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }   /* four to a half-width panel, never three and one */
.figures--small dd { font-size: var(--t-lead); }
.figures dd.was { font: inherit; font-size: var(--t-small); color: var(--soft); white-space: normal; }
.panel__note { margin: 0; padding: var(--s-3) var(--inset) var(--s-4); }
.daynav .is-off { color: var(--soft); border-color: var(--line); cursor: default; }
/* booked and done against the working time, per person: one scale for everyone, so a longer bar is more time. The
   track is quiet and the figures sit with the name (Bishop, 2026-11-19: the gray tracks outweighed the totals) */
.timekey { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0; padding: var(--s-4) var(--inset) 0; font-size: var(--t-small); color: var(--soft); }
.timekey li { display: flex; align-items: center; gap: var(--s-2); }
.timekey i { inline-size: 14px; block-size: 8px; border-radius: 0 4px 4px 0; }
.timekey__booked { background: var(--bar-booked); }
.timekey__done { background: var(--bar-done); }
.timekey__work { background: var(--track); }
.timebars { display: grid; gap: var(--s-1); margin: 0; padding: var(--s-3) var(--inset); }
.timebars li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 8rem); align-items: center; gap: var(--s-4); padding-block: var(--s-2); }
.timebars__who { display: grid; gap: 2px; min-width: 0; }
.timebars__nums { font-variant-numeric: tabular-nums; color: var(--soft); }
.timebars__nums b { font-weight: 500; color: var(--ink); font-size: var(--t-lead); }
.timebars__bars { position: relative; block-size: 24px; }
.timebars__bars > span { position: absolute; inset-inline-start: 0; inline-size: var(--w); border-radius: 0 4px 4px 0; }
.timebars__work { inset-block: 0; background: var(--track); border-radius: 0 var(--radius) var(--radius) 0; }
.timebars__booked { top: 4px; block-size: 7px; background: var(--bar-booked); }
.timebars__done { bottom: 4px; block-size: 7px; background: var(--bar-done); }
.timebars__of { font-size: var(--t-small); color: var(--soft); font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .timebars li { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); }
  .timebars__who { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ the first reply to a case */
.reply { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--s-5); padding: var(--s-4) var(--inset); }
.reply__part { display: grid; gap: var(--s-2); align-content: start; }
.reply__part .label { margin: 0; }
.reply__subject { margin: 0; }
.reply__text { field-sizing: content; inline-size: 100%; resize: vertical; font: inherit; line-height: 1.5; color: var(--ink); background: var(--n-0); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); }
.reply__do { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.reply__sent { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.reply__sent .hint { flex: 1 1 260px; }
.replied { margin: 0; font-size: var(--t-small); color: var(--soft); }

/* ------------------------------------------------------------------ the mail on a case */
.mails { display: grid; margin: 0; padding: 0; list-style: none; }
.mail { display: grid; gap: var(--s-1); padding: var(--s-4) var(--inset); border-top: 1px solid var(--line); }
.mail:first-child { border-top: 0; }
.mail p { margin: 0; }
.mail__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); }
.mail__subject { font-weight: 500; }
.mail__body { color: var(--ink); overflow-wrap: anywhere; max-height: 24em; overflow: auto; }
.mail--auto .mail__subject, .mail--auto .mail__body { color: var(--soft); }

/* Koppla företagets mejl (Personer · Kopplingar): a form folded under its own line once mail is connected */
.connect-mail > summary { cursor: pointer; width: fit-content; padding-block: var(--s-2); color: var(--ink); font-weight: 500; }
.connect-mail[open] > summary { margin-bottom: var(--s-3); }
.connect-mail .checkline { align-self: end; }

/* "Inget ärende?" under a case's mails: quiet, folded, one line until it is wanted */
.notcase { padding: var(--s-3) var(--inset) var(--inset); border-top: 1px solid var(--line); }
.notcase form { display: grid; gap: var(--s-3); justify-items: start; }

/* Mina inställningar: one panel per thing, a row for each switch with its name on the left */
.settings { display: grid; gap: var(--gap-group); max-width: var(--w-wide); }
.setting { display: grid; gap: var(--s-3); padding: var(--inset); }
.setting__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.setting__form { display: grid; gap: var(--s-3); }
.setting .plainlist { display: grid; gap: var(--s-2); }

/* Fortnox on the invoice basis: what lies there, and what can be done with it */
.fortnox__body { display: grid; gap: var(--s-3); padding: var(--inset); justify-items: start; }
.fortnox__do { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Skuggan (2026-11-19): Infoflex's figures beside Chicane's own, a plain table of figures that scrolls sideways
   inside its panel on a phone rather than the page. */
.figtable-wrap { overflow-x: auto; padding: 0 var(--inset); }
.figtable { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.figtable th, .figtable td { padding: var(--s-3) var(--s-3); border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.figtable thead th { border-top: 0; font: 500 var(--t-label)/1.3 var(--text); color: var(--soft); }
.figtable th:first-child, .figtable td:first-child { padding-left: 0; }
.figtable th:last-child, .figtable td:last-child { padding-right: 0; }
.figtable .num { text-align: right; }
.figtable td small { display: block; }
.figtable th[scope="row"] { font-weight: 500; white-space: nowrap; }
.figtable__same th, .figtable__same td { border-top-color: transparent; }   /* the same day's next person: one group 
