/* Multiply's look. Brief: docs/superpowers/specs/2026-10-06-ui-design.md
   The colours keep the jobs they have in the screen tracker:
   claret = needs attention (and column headers), pink = what you choose with,
   petrol = what the platform made or knows, oat = finished. */

@font-face {
  font-family: "Figtree";
  src: url("/static/fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --claret: #990a2c;
  --claret-deep: #7a0823;
  --blush: #f7e0e4;
  --pink: #e0629b;
  --petrol: #1b6b7d;
  --petrol-tint: #e3eff1;
  --oat: #f3ede4;
  --ink: #2b2023;
  --quiet: #6b5e57;
  --mid: #4a3e3a;  /* between quiet and ink: breadcrumbs */
  --line: #e4dcd3;
  --paper: #fff;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.9375rem;
  --step-4: 2.4375rem;

  --radius: 4px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "tnum" 0;
}

/* ---------- Type ---------- */

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 750; margin-bottom: 1.25rem; }
h2 { font-size: var(--step-1); font-weight: 700; margin: 2.25rem 0 0.75rem; }
h3 { font-size: var(--step-0); font-weight: 700; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; max-width: var(--measure); }
p { text-wrap: pretty; }
li + li { margin-top: 0.25rem; }
strong { font-weight: 650; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--oat);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
td code { white-space: nowrap; }  /* a key in a table stays whole: the table scrolls instead */

a { color: var(--claret); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--claret-deep); text-decoration-thickness: 2px; }

.muted { color: var(--quiet); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---------- Focus: pink, everywhere ---------- */

:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 2px; }

/* ---------- Top bar (signed in) ---------- */

.topbar { background: var(--claret); color: #fff; }
.topbar-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
}
.wordmark {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
}
.wordmark:hover { color: #fff; }
.nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.nav a {
  color: #fff;
  text-decoration: none;
  padding: 1.15rem 0.75rem 1rem;
  border-bottom: 3px solid transparent;
  font-weight: 550;
}
.nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.45); color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--pink); }
.topbar :focus-visible { outline-color: #fff; }
.who { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.who span { color: rgba(255, 255, 255, 0.8); font-size: var(--step--1); }
.who button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  min-height: 2rem;
  padding: 0.2rem 0.8rem;
  font-size: var(--step--1);
}
.who button:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Page ---------- */

.page { max-width: 76rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.crumbs { font-size: var(--step-0); color: var(--mid); margin-bottom: 0.5rem; }
.crumbs a { color: var(--mid); text-decoration-color: var(--line); }
.crumbs a:hover { color: var(--claret); text-decoration-color: currentColor; }

/* ---------- Tables: the tracker's claret headers ---------- */

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; position: relative; }  /* relative: hidden labels in its cells stay inside it */
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th {
  text-align: left;
  color: var(--claret);
  font-weight: 650;
  padding: 0.55rem 0.75rem 0.5rem;
  border-bottom: 2px solid var(--claret);
  vertical-align: bottom;
  white-space: nowrap;
}
td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child, th:first-child { padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
tbody tr:hover td, table tr:hover td { background: #fcfaf7; }
td.num, th.num { text-align: right; }
table.compare { max-width: 52rem; }
tr.problem td { background: var(--blush) !important; box-shadow: inset 0 0 0 1px var(--claret); }
tr.problem td:first-child { box-shadow: inset 3px 0 0 var(--claret), inset 0 0 0 1px var(--claret); padding-left: 0.75rem; }

/* ---------- Messages ---------- */

.error, .note {
  max-width: var(--measure);
  padding: 0.85rem 1rem;
  border-left: 4px solid;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.25rem;
}
.error { background: var(--blush); border-color: var(--claret); color: var(--ink); }
.note { background: var(--paper); border-color: var(--petrol); box-shadow: inset 0 0 0 1px var(--petrol-tint); }

.recent-activity {
  background: var(--petrol-tint);
  border: 1px solid var(--petrol);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.activity-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 1rem; }
.recent-activity h2 { font-size: inherit; font-style: italic; font-weight: 400; line-height: inherit; letter-spacing: normal; margin: 0; }
.recent-activity h3 { color: var(--claret); margin-top: 1rem; }
.recent-activity h4 { font-size: inherit; margin: 1rem 0 0.5rem; }
.recent-activity > ul:last-child { margin-bottom: 0; }

/* Something the platform is doing right now: a slim bar that moves while you wait */
.note.working { position: relative; overflow: hidden; }
.note.working::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 30%;
  background: var(--petrol);
}
@media (prefers-reduced-motion: no-preference) {
  .note.working::after { animation: working 1.6s ease-in-out infinite; }
}
@keyframes working { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* The platform respelt something on saving: a small note pinned beneath it, with an undo */
.respelt {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0.35rem 0 1.25rem;
  padding: 0.4rem 0.4rem 0.4rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--petrol);
  border-radius: var(--radius);
  font-size: var(--step--1);
}
.respelt::before {  /* the point, up towards what was respelt */
  content: "";
  position: absolute;
  top: -6px; left: 1.25rem;
  width: 10px; height: 10px;
  background: var(--paper);
  border-left: 1px solid var(--petrol);
  border-top: 1px solid var(--petrol);
  transform: rotate(45deg);
}
.respelt p, .respelt form { margin: 0; }
.respelt button { min-height: 2rem; padding: 0.15rem 0.75rem; }
.respelt-row td { border-bottom: 0; padding-top: 0; }
.respelt-row .respelt { margin-bottom: 0.5rem; }
@media (max-width: 52rem) {  /* in a table that scrolls sideways: keep the note, and its undo, on screen */
  .respelt-row .respelt { position: sticky; left: 0; max-width: calc(100vw - 3rem); }
}

/* ---------- Status labels: the tracker's states ---------- */

.status {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 650;
  white-space: nowrap;
}
.status-attention { color: var(--claret); background: var(--blush); }
.status-made { color: var(--petrol); background: var(--petrol-tint); }
.status-done { color: var(--quiet); background: var(--oat); }

/* ---------- A job's steps, in the order a window happens ---------- */
.steps { list-style: none; margin: 1.5rem 0 2.5rem; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 2.25rem 1fr auto; gap: 0.25rem 1rem; align-items: center;
        padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.step-mark { display: inline-grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%;
             font-weight: 700; font-size: var(--step--1); border: 2px solid var(--line); color: var(--quiet); }
.step.done .step-mark { background: var(--oat); border-color: var(--oat); color: var(--petrol); }
.step.current .step-mark { border-color: var(--claret); color: var(--claret); }
.step-title { font-size: var(--step-0); margin: 0; }
.step-body p { margin: 0.1rem 0 0; }
.step.todo .step-title { color: var(--quiet); }
.step-action { justify-self: end; }
@media (max-width: 40rem) {
  .step { grid-template-columns: 2.25rem 1fr; }
  .step-action { grid-column: 2; justify-self: start; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Forms ---------- */

button, .button {
  font: inherit;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--claret);
  background: var(--claret);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
button:hover, .button:hover { background: var(--claret-deep); border-color: var(--claret-deep); color: #fff; }
button.secondary, .button.secondary { background: var(--paper); color: var(--claret); }
button.secondary:hover, .button.secondary:hover { background: var(--blush); color: var(--claret-deep); }
button:disabled { background: var(--oat); border-color: var(--line); color: var(--quiet); cursor: not-allowed; }

input[type="text"], input[type="email"], input:not([type]), input[type="number"], select, textarea {
  font: inherit;
  min-height: 2.5rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #cdbfb3;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  max-width: 100%;
}
input:hover, select:hover { border-color: var(--quiet); }
input[type="file"] { font: inherit; font-size: var(--step--1); max-width: 100%; }
input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 650;
  margin-right: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--pink);
  background: #fdf1f6;
  color: var(--claret);
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--blush); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--claret); width: 1.05rem; height: 1.05rem; vertical-align: -0.15em; }
label { font-weight: 550; }
form p { max-width: none; }
details > summary { cursor: pointer; color: var(--claret); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem 0.25rem; margin: 0 0 1rem; }
legend { font-weight: 650; padding: 0 0.35rem; }

/* Inputs with their labels above, side by side, wrapping on small screens */
.field-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin: 0 0 1.5rem; }
.field-row label { display: grid; gap: 0.3rem; font-size: var(--step--1); color: var(--quiet); }
.field-row label input, .field-row label select { font-size: var(--step-0); color: var(--ink); }

/* A small form living in a table row */
.row-form { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; margin: 0; }
.row-form button { min-height: 2.5rem; }
.inline-form { display: inline-block; margin: 0 0.5rem 0 0; }

/* A file chooser and its button, together */
form p:has(input[type="file"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
input[type="file"] { width: auto; }

details.inline { display: inline; margin-left: 0.5rem; }
details.inline[open] { display: block; margin: 0.5rem 0 0; }

/* Labelling: rows the platform proposed and nobody has checked yet */
tr[data-unconfirmed] td { background: #fdf5f7; }
tr[data-unconfirmed] td:first-child { box-shadow: inset 3px 0 0 var(--claret); padding-left: 0.75rem; }
.page-map { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--oat); margin: 0 0 0.75rem; }
.page-map text { fill: var(--ink); font-family: inherit; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; }

/* A row of related actions */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.25rem 0; }

/* ---------- Signed out: the menu board ---------- */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.board {
  background: var(--claret);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(2rem, 6vw, 6rem);
}
.board-screen {
  width: 100%;
  max-width: 38rem;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  background: rgba(0, 0, 0, 0.1);
}
.board-row {
  display: grid;
  grid-template-columns: auto 1fr 4.5rem 4.5rem;
  align-items: baseline;
  column-gap: 0.75rem;
  font-size: var(--step-2);
  padding: 0.35rem 0;
}
.board-row .item { font-weight: 600; }
.board-head { font-size: var(--step--1); padding-bottom: 0.6rem; }
.board-head .item { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.01em; }
.board-head .size { text-align: right; color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.board-row .leader { border-bottom: 2px dotted rgba(255, 255, 255, 0.4); transform: translateY(-0.3em); }
.board-row .price { font-variant-numeric: tabular-nums; font-weight: 700; display: grid; text-align: right; }
.board-row .price > span { grid-area: 1 / 1; }
.board-row .price .was { opacity: 0.55; }
.board-row .price .now { opacity: 0; }
.board-caption { margin: 1.5rem 0 0; color: rgba(255, 255, 255, 0.85); font-size: var(--step-0); max-width: 34rem; }

/* The one moment: the missing prices fill in, a line at a time. */
@media (prefers-reduced-motion: no-preference) {
  .board-row .price .was { animation: price-out 0.35s ease-in forwards; animation-delay: calc(0.9s + var(--i) * 0.3s); }
  .board-row .price .now { animation: price-in 0.35s ease-out forwards; animation-delay: calc(1.05s + var(--i) * 0.3s); }
}
@media (prefers-reduced-motion: reduce) {
  .board-row .price .was { opacity: 0; }
  .board-row .price .now { opacity: 1; }
}
@keyframes price-out { to { opacity: 0; transform: translateY(-0.25em); } }
@keyframes price-in { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }

.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 4rem clamp(1.5rem, 6vw, 5.5rem); }
.auth-panel .wordmark { color: var(--claret); font-size: var(--step-2); margin-bottom: 2.5rem; display: inline-block; }
.auth-panel h1 { font-size: var(--step-3); }
.auth-panel form { display: grid; gap: 0.85rem; max-width: 24rem; margin-top: 1.25rem; }
.auth-panel input[type="email"] { width: 100%; font-size: var(--step-1); min-height: 3rem; }
.auth-panel button { min-height: 3rem; font-size: var(--step-0); justify-self: start; padding: 0.5rem 1.5rem; }
.auth-panel p { max-width: 26rem; }

@media (max-width: 52rem) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .board { padding: 1.5rem; }
  .board-screen { padding: 1rem 1.25rem; aspect-ratio: auto; }
  .board-row { font-size: var(--step-0); padding: 0.15rem 0; grid-template-columns: auto 1fr 3rem 3rem; column-gap: 0.5rem; }
  .board-head .item { font-size: var(--step-0); }
  .board-row:nth-child(n+5) { display: none; }
  .board-caption { display: none; }
  .auth-panel { padding: 2rem 1.5rem 3rem; }
  .auth-panel .wordmark { margin-bottom: 1.5rem; }
}

@media (max-width: 52rem) {
  table {
    display: block; overflow-x: auto;
    /* A shadow at an edge with more to see: the white covers move with the content, the shadows stay put */
    background:
      linear-gradient(to right, var(--paper) 30%, rgb(255 255 255 / 0)) left / 2.5rem 100% no-repeat local,
      linear-gradient(to left, var(--paper) 30%, rgb(255 255 255 / 0)) right / 2.5rem 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgb(43 32 35 / 0.22), transparent) left / 0.9rem 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgb(43 32 35 / 0.22), transparent) right / 0.9rem 100% no-repeat scroll;
  }
}

@media (max-width: 40rem) {
  .topbar-inner { gap: 0.25rem 1rem; padding: 0.6rem 1rem; }
  .nav a { padding: 0.5rem 0.5rem; }
  .who { margin-left: 0; width: 100%; justify-content: space-between; }
  .page { padding: 1.5rem 1rem 3rem; }
  h1 { font-size: var(--step-2); }
}

/* ---------- Prices and calories ---------- */
.lede { font-size: var(--step-1); margin-top: 0; }
.tag { display: inline-block; vertical-align: 0.2em; margin-left: 0.5rem; padding: 0.1rem 0.55rem; border-radius: 999px;
       font-size: var(--step--1); font-weight: 650; color: var(--claret); background: var(--blush); }
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr) 16rem auto; gap: 0.5rem 1rem; align-items: center;
              padding: 0.75rem 0; border-bottom: 1px solid var(--line); max-width: 60rem; }
.upload-row label { font-weight: 400; }
.upload-row label .muted { display: block; font-size: var(--step--1); }
@media (max-width: 40rem) { .upload-row { grid-template-columns: 1fr; } .upload-row button { justify-self: start; } }
.prices-now .section-row th { padding-top: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 700; }

/* ---------- The screen check: each yes and no stays with its button ---------- */
.choices { display: inline-flex; gap: 0.75rem; white-space: nowrap; }
.choice { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 400; }

/* ---------- The preview: flagged rows, folded sections ---------- */
.flagged td { background: var(--blush); }
details.section > summary { cursor: pointer; padding: 0.5rem 0; }
details.section > summary h3 { display: inline; margin: 0; }

/* ---------- Labelling: a box on the page map jumps to its row ---------- */
tr:target td { background: var(--blush); }
.page-map a rect:hover { fill-opacity: 0.5; }
/* ...and a row back to its box, which glows so it stands out among the rest */
tr[data-box] { cursor: pointer; }
tr.lit td { background: var(--blush); box-shadow: inset 3px 0 0 var(--pink); }
@keyframes glow { 50% { stroke-width: 14; fill-opacity: 0.7; } }
.page-map rect.lit { stroke: var(--pink); fill: var(--pink); fill-opacity: 0.45; stroke-width: 7;
  filter: drop-shadow(0 0 10px var(--pink)); animation: glow 0.9s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) { .page-map rect.lit { animation: none; } }
.save-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

/* Example text in an empty box: faint, so it never reads as something typed */
::placeholder { color: #b9aea6; opacity: 1; }

/* The fields page */
.labelled { display: grid; gap: 0.3rem; font-size: var(--step--1); color: var(--quiet); }
.labelled > span { display: flex; align-items: center; gap: 0.35rem; }
.labelled input { font-size: var(--step-0); color: var(--ink); }
button.help {
  min-height: 0; width: 1.15rem; height: 1.15rem; padding: 0; border-radius: 50%;
  font-size: 0.75rem; font-weight: 700; line-height: 1; vertical-align: 0.1em;
  background: var(--paper); color: var(--petrol); border: 1px solid var(--petrol);
}
button.help:hover { background: var(--petrol-tint); color: var(--petrol); border-color: var(--petrol); }
.help-note {
  max-width: 22rem; padding: 0.6rem 0.85rem; border: 1px solid var(--petrol); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-size: var(--step--1); font-weight: 400;
  box-shadow: 0 4px 16px rgb(43 32 35 / 0.15);
}
.help-note p { margin: 0; }
ul.suggest {
  position: absolute; top: 100%; left: 0; z-index: 10; min-width: 100%; max-height: 16rem; overflow-y: auto;
  margin: 2px 0 0; padding: 0.25rem 0; list-style: none; background: var(--paper);
  border: 1px solid #cdbfb3; border-radius: var(--radius); box-shadow: 0 4px 16px rgb(43 32 35 / 0.12);
  font-size: var(--step-0); color: var(--ink); font-weight: 400;
}
ul.suggest li { padding: 0.3rem 0.65rem; cursor: pointer; white-space: nowrap; }
ul.suggest li span { color: var(--quiet); font-size: var(--step--1); }
ul.suggest li:hover, ul.suggest li[aria-selected="true"] { background: var(--petrol-tint); }
table.fields tr[data-copy] { cursor: copy; }
table.fields .row-actions { white-space: nowrap; text-align: right; font-size: var(--step--1); }
table.fields .row-actions .inline-form { margin: 0 0 0 0.75rem; }
table.fields .row-actions .muted { display: inline-block; white-space: normal; max-width: 16rem; text-align: left; vertical-align: top; }
table.fields tr.editing td { background: var(--oat); }
table.fields tr.editing label { font-size: var(--step--1); color: var(--quiet); }
table.fields tr.editing input { font-size: var(--step-0); }
table.fields tr.editing input[readonly] { background: var(--oat); color: var(--quiet); }
button.link { min-height: 0; padding: 0; border: 0; background: none; color: var(--claret); font: inherit;
  font-weight: 400; text-decoration: underline; }
button.link:hover { background: none; color: var(--claret-deep); }
@keyframes copied { from { background: var(--petrol-tint); } to { background: transparent; } }
tr.copied td { animation: copied 1.2s ease-out; }
h2 .file-name { font-weight: 450; color: var(--quiet); font-size: var(--step-0); overflow-wrap: anywhere; }

/* The labelling agent's suggestions, under the frame they're about */
tr.suggested td { background: var(--petrol-tint); }
tr.agent-line td { padding-top: 0; font-size: 0.9em; border-top: none; }
tr.agent-line.agrees td { padding-bottom: 0.25rem; }
rect.flagged { stroke-dasharray: 8 5; stroke-width: 4; }

/* ---------- Resources ---------- */

.resource-index { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.resource { border-top: 1px solid var(--line); padding: 0.25rem 0 0.75rem; scroll-margin-top: 1rem; }
.resource h2 { margin-top: 1.25rem; }
.resource:target { background: var(--petrol-tint); box-shadow: 0 0 0 0.75rem var(--petrol-tint); border-radius: var(--radius); }
.resource table { max-width: 52rem; margin-bottom: 1rem; }
ol.guide li { margin-bottom: 0.75rem; max-width: var(--measure); }
.faq .qa { max-width: var(--measure); }
.faq-contents { columns: 2; max-width: 36rem; margin-bottom: 1rem; }
.faq-contents p { margin: 0 0 0.25rem; }
.faq h2 { scroll-margin-top: 1rem; }

@media print {
  .topbar, .print-hide, .crumbs { display: none; }
  @page { margin: 16mm; }
  body { font-size: 10.5pt; }
  h1 { font-size: 18pt; }
  h2 { font-size: 13pt; margin-top: 1.25rem; }
  .page { padding: 0; max-width: none; }
  .faq .qa, ol.guide li { break-inside: avoid; }
}

/* Where prices stand: one short line each, the figure first */
ul.facts { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.35rem; font-size: var(--step-1); }
ul.facts li + li { margin-top: 0; }
ul.facts li { padding-left: 1.1rem; position: relative; }
ul.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.45rem; height: 0.45rem;
                      border-radius: 50%; background: var(--petrol); }
ul.facts li.fact-attention::before { background: var(--claret); }
ul.facts li.fact-done::before { background: var(--oat); box-shadow: inset 0 0 0 2px var(--petrol); }
.fact-figure { font-weight: 750; font-variant-numeric: tabular-nums; }
.fact-source { display: block; font-size: var(--step--1); color: var(--quiet); }
.chip { display: inline-block; margin: 0 0.3rem 0.2rem 0; padding: 0 0.5rem; border-radius: 999px;
        font-size: var(--step--1); font-weight: 650; color: var(--claret); background: var(--blush); }
.chip.done { color: var(--petrol); background: var(--petrol-tint); }
.chip-count { font-weight: 450; }
.facts-intro { margin-bottom: 0.6rem; }
ul.facts.compact { font-size: var(--step-0); margin: 0.15rem 0 0; gap: 0.15rem; }

/* Folded actions: closed, they're one line each, so the prices table is close to the top */
.folds { display: grid; gap: 0.6rem; margin: 1.5rem 0 0.5rem; max-width: 62rem; }
details.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
details.fold[open] { border-color: #cdbfb3; }
details.fold > summary { list-style: none; display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1rem;
                         color: var(--ink); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; flex: none; margin: 0 0.25rem 0 auto; width: 0.6rem; height: 0.6rem;
                                border-right: 2px solid var(--claret); border-bottom: 2px solid var(--claret);
                                transform: rotate(-45deg); transition: transform 0.15s; }
details.fold[open] > summary::after { transform: rotate(45deg); }
details.fold > summary:hover { background: var(--oat); }
.fold-icon { flex: none; width: 2.1rem; height: 2.1rem; padding: 0.4rem; border-radius: 50%; background: var(--blush);
             fill: none; stroke: var(--claret); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fold-title { font-weight: 700; font-size: var(--step-1); }
.fold-hint { display: block; font-size: var(--step--1); color: var(--quiet); }
.fold-body { padding: 0 1rem 0.75rem 3.95rem; }
.fold-body .upload-row:last-of-type { border-bottom: 0; }
.fold-note { margin: 0.75rem 0 0; font-size: var(--step--1); color: var(--quiet); }
ol.how { margin: 0.25rem 0 0.5rem; padding-left: 1.25rem; }
@media (max-width: 40rem) { .fold-body { padding-left: 1rem; } }

/* The job page's SharePoint folder line */
.folder { margin-bottom: 1rem; }

/* ---------- Windows: a tracker, one row per job, the window spanning its jobs ---------- */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
             margin-bottom: 1.25rem; }
.title-row h1 { margin: 0; }
.tracker { min-width: 46rem; }
.tracker tbody.window-group { border-top: 2px solid var(--line); }
.tracker th.window-cell { background: var(--oat); color: var(--ink); font-weight: 400; vertical-align: top;
                          padding: 0.6rem 0.75rem; border-bottom: 0; width: 11rem; white-space: normal; }
.tracker .window-cell strong { display: block; }
.tracker .window-cell a { font-size: var(--step--1); }
.tracker .window-cell .button { margin-top: 0.7rem; min-height: 0; padding: 0.6rem 0.6rem; }
.button.outline { background: transparent; color: var(--claret); }
.button.outline:hover { background: transparent; border-color: var(--claret-deep); color: var(--claret-deep); }
.tracker td.job { padding-left: 0.75rem; }  /* the job column sits beside the tinted window cell */
.tracker .cell { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tracker .cell a { text-decoration: none; color: inherit; }
.tracker .cell a:hover { text-decoration: underline; }
.tracker .cell-done { color: var(--petrol); font-weight: 650; }
.tracker .cell-todo { color: var(--quiet); }
.tracker .add-row td { border-bottom: 0; padding: 0.25rem 0.75rem 0.6rem; }
.tracker .add-row summary { color: var(--claret); cursor: pointer; font-size: var(--step--1); font-weight: 600; }
.tracker .add-row details[open] summary { margin-bottom: 0.5rem; }
.tracker thead th:nth-child(n+3) { text-align: center; }
.tracker tbody tr:hover td, .tracker tbody tr:hover th { background: inherit; }
.start-from { margin-bottom: 1.5rem; }
details.how-to { margin: 0 0 1.5rem; }
details.how-to summary { cursor: pointer; color: var(--claret); font-weight: 600; margin-bottom: 0.5rem; }
.exclusions fieldset { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.exclusions .choice.none { font-style: italic; }

/* A folder name edited where it's shown: plain text until clicked, then a Save beside it */
form.inplace { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; vertical-align: baseline; }
form.inplace input { font: inherit; font-weight: 650; color: var(--ink); border: 0; border-radius: 0;
                     border-bottom: 1px dashed transparent; background: transparent; padding: 0.1rem 0;
                     min-height: 0; width: auto; box-shadow: none; }
form.inplace input:hover { border-bottom-color: var(--quiet); }
form.inplace input:focus { border-bottom: 1px solid var(--claret); outline: none; }
form.inplace button { display: none; min-height: 1.9rem; padding: 0.1rem 0.7rem; font-size: var(--step--1); }
form.inplace:focus-within button, form.inplace.changed button { display: inline-flex; }
.variant-actions form { margin: 0; }
