/* tools.css · the Tools section: the gallery (/tools) and one page per tool (/tools/<slug>). Light theme only, no external requests.
   The pages are generated by dev/build.mjs from src/ (tools.json is the registry). Every URL is root-absolute.

   SHARED CLASSES: a new tool should be built from these so every tool matches.

   Structure
     .gallery              the gallery page: the masthead, then .gallery-body.rows-N with one .plate-group per group
                           (h2.group-title + ul.plates). N is the most plates in any group; the build sets it.
     a.plate               one tool's index card: .plate-top (number, "Last used"), .plate-art (an art/sketch.js slot, drawn by
                           /tools/gallery.js or the tool's own plate script), .plate-name (serif), .plate-line (one plain sentence).
                           A real link to the tool's page.
     .bench                a tool page's column: the slim bar, the ONE tool, the About block, the Other tools row.
     .toolbar              the slim bar over the tool: "All tools" (a link to /tools), h1.toolbar-name, Copy link / Share.
     section.tool          the tool: a cream sheet. Needs id + data-title. Visible from the first paint; nothing hides it.
     .tool-head            the tool's heading row: h2.tool-title (serif) + p.tool-lead (one sentence). Put a tool's own header
                           button (for example "Start again") in div.tool-side.
     .about                the quiet static block under the tool: h2.about-title, then .about-cols of three .about-col
                           (What it does, ol.about-steps, dl.about-faq). Small type. Words come from tools.json.
     .others               the "Other tools" row of links under the About block.
     .card                 an inner panel on the sheet (paper tint, hairline border). Use for a form or a result block.

   Form
     .field                a control with its label, stacked. Works on <label> or <fieldset> (legend.label).
     .label                small letterspaced caps in clay-deep: field labels, row labels, panel titles.
     .input                text input. Wrap in .input-wrap to add .input-prefix / .input-suffix (for example £ or %). .input-big = large serif figure entry.
     .seg                  a segmented choice: <label><input type="radio"><span>Text</span></label> repeated. .seg-wide stretches it.

   Buttons
     .btn                  default button (hairline ink border).
     .btn-primary          the one main action of a tool (clay-deep).
     .btn-small            compact, for toolbars.   .btn-quiet = text only.   .btn-copy = the small "Copy" beside a figure.

   Results
     .figures > .figure    a ledger of results: dt.label, dd > .figure-value (large serif, tabular figures), optional .btn-copy.
     .working              the one plain line that shows how a figure was reached (serif italic).
     .results              a panel of produced files: .results-head (.label + .results-sum), ul.results-list of li.result.
     .progress             progress hairline + one status line (role="status").
     .alerts > li          a plain-words problem (clay rule on the left). Put role="alert" on the list.

   Text
     .note                 small muted text: hints, caveats, "Not tax advice."   .note.warn = a caveat that must be read.
     .visually-hidden      for screen readers only.

   Phones first: controls are 44px tall or more under 720px; test at 360px wide. No horizontal scroll.
   Remembered settings: SMTools.store.get(key, fallback) / SMTools.store.set(key, value) (localStorage, safe if blocked). Never store file contents.

   Tokens: --paper --cream --ink --ink-soft --rule --clay --clay-deep (+ --sky --olive --blush --amber --sepia as quiet markers only),
   --serif for headings and figures, --sans for interface text. No other colours. No em dashes in copy. UK spelling. */

:root {
  color-scheme: light;
  --paper: #EFEBE2;
  --cream: #F7F4EC;
  --ink: #1F1D1A;
  --ink-soft: rgba(31, 29, 26, .74);
  --ink-faint: rgba(31, 29, 26, .64);   /* .64 keeps small labels at 4.5:1 or better on paper and cream */
  --rule: rgba(31, 29, 26, .16);
  --rule-strong: rgba(31, 29, 26, .34);
  --clay: #C96F4E;
  --clay-deep: #A35136;   /* 4.6:1 on paper for the small clay labels */
  --clay-wash: rgba(201, 111, 78, .1);
  --sky: #9DB8CC;
  --olive: #7C8363;
  --blush: #E3A79A;
  --amber: #E9A03B;
  --sepia: #5A3E2B;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: 1120px;
  --pad: 36px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dt, dd, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- top bar ---------- */
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: var(--page); margin: 0 auto; padding: 14px 24px;
  font-size: 13px;
}
.bar a { padding: 6px 0; border-bottom: 1px solid transparent; }
.bar a:hover { border-bottom-color: var(--clay); }

/* ---------- masthead ---------- */
.masthead { max-width: var(--page); margin: 0 auto; padding: 30px 24px 0; }
.eyebrow, .label {
  font-family: var(--sans); font-weight: 600; font-size: 10.5px; line-height: 1.5;
  letter-spacing: .15em; text-transform: uppercase; color: var(--clay-deep);
}
h1 { font-family: var(--serif); font-weight: 700; font-size: 68px; line-height: 1; letter-spacing: -.018em; margin-top: 10px; }
.intro { font-family: var(--serif); font-size: 22px; line-height: 1.35; margin-top: 16px; max-width: 30em; }
.private { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.private-mark { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px var(--clay-wash); }

/* =====================================================================
   The gallery: six plates in three quiet groups
   ===================================================================== */
.gallery { padding-bottom: 6px; }
.gallery-body {
  max-width: var(--page); margin: 30px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px;
}
.gallery-body::before { content: ""; grid-column: 1 / -1; height: 0; border-top: 1.5px solid var(--ink); margin-bottom: 16px; }
.plate-group { min-width: 0; }
/* three columns: the groups share the page's rows, so plates line up across the columns whatever their names wrap to.
   A group may hold fewer plates than its neighbours: its column simply ends sooner. rows-N = the most plates in any group. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1021px) {
    .gallery-body { --rows: 2; grid-template-rows: auto auto repeat(var(--rows), auto); }
    .gallery-body.rows-1 { --rows: 1; } .gallery-body.rows-3 { --rows: 3; } .gallery-body.rows-4 { --rows: 4; }
    .gallery-body.rows-5 { --rows: 5; } .gallery-body.rows-6 { --rows: 6; }
    .plate-group { display: grid; grid-row: 2 / -1; grid-template-rows: subgrid; }
    .plate-group .plates { grid-row: 2 / -1; grid-template-rows: subgrid; row-gap: 20px; align-content: start; }
  }
}
.group-title {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-soft);
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.plates { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 14px; }
.plates > li { display: flex; min-width: 0; }

.plate {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 16px 20px 20px;
  background: var(--cream); border: 1px solid var(--rule-strong); border-radius: 2px;
  transition: transform .32s var(--ease), border-color .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
/* the plate mark: a second hairline just inside the edge, as on an engraved plate */
.plate::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--rule); border-radius: 1px; pointer-events: none; transition: border-color .2s; }
.plate-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; line-height: 1.5; color: var(--ink-faint);
}
.plate-last { color: var(--clay-deep); }
.plate-last::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--clay); vertical-align: 1px; }
/* the drawing: an art/sketch.js slot. art.css would lay it over its parent; here it is a block in the card. */
.plate-art { position: relative; inset: auto; width: 100%; max-width: 330px; height: 178px; margin: 4px auto 10px; transition: filter .35s; }
.plate-name {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--rule);
  font-family: var(--serif); font-weight: 700; font-size: 25px; line-height: 1.14; letter-spacing: -.012em;
}
.plate-go { flex: none; font-weight: 400; font-size: 20px; color: var(--clay-deep); opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .32s var(--ease); }
.plate-line { display: block; margin-top: 7px; font-size: 15px; line-height: 1.42; color: var(--ink-soft); max-width: 26em; }
.plate:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }
.plate:focus-visible, .plate:active { border-color: var(--ink); }
.plate:focus-visible .plate-art, .plate:active .plate-art { filter: brightness(.62) contrast(1.08); }
.plate:focus-visible .plate-go { opacity: 1; transform: none; }
@media (hover: hover) {
  /* chosen: the card lifts by a hair (no shadow), its edge and its ink deepen */
  .plate:hover { transform: translateY(-3px); border-color: var(--ink); }
  .plate:hover::before { border-color: var(--rule-strong); }
  .plate:hover .plate-art { filter: brightness(.62) contrast(1.08); }
  .plate:hover .plate-go { opacity: 1; transform: none; }
}
@media (hover: none) {
  .plate-go { opacity: .7; transform: none; }
}
/* JavaScript off: no drawing can be made, so the plate closes up to its name and line */
html:not(.js) .plate-art { display: none; }
html:not(.js) .plate-name { border-top: 0; padding-top: 8px; }
.noscript { margin-top: 14px; color: var(--ink-soft); padding-left: 10px; border-left: 2px solid var(--clay); }

/* =====================================================================
   The bench: one open tool under a slim bar
   ===================================================================== */
.bench { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
/* an old link (/tools#vat) is on its way to the tool's own page: the gallery never flashes first */
html.going body { visibility: hidden; }

.toolbar {
  display: flex; align-items: center; gap: 6px 16px; min-height: 52px;
  margin-top: 4px; padding: 6px 0; border-top: 1.5px solid var(--ink);
}
.toolbar-back { flex: none; padding: 8px 0 6px; border-bottom: 1.5px solid transparent; font-family: var(--serif); font-size: 17.5px; line-height: 1.2; white-space: nowrap; transition: border-color .2s; }
.toolbar-back:hover { border-bottom-color: var(--clay); }
/* the page's h1: the tool's name, set as a quiet label because the tool's own serif title sits just below it */
.toolbar-name {
  flex: 1 1 auto; min-width: 0; margin: 0; padding-left: 16px; border-left: 1px solid var(--rule-strong);
  font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; line-height: 1.9; color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toolbar .tool-share { flex: none; }

/* About this tool: static words for a reader (and a search engine) who wants to know what the tool is before using it.
   Clearly second to the tool: small type, soft ink, three short columns that each keep a comfortable line length. */
.about { margin-top: 44px; padding: 0 2px; color: var(--ink-soft); }
.about-title {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--sans); font-weight: 600; font-size: 10.5px; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint);
}
.about-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.about-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 44px; margin-top: 16px; }
.about-col { min-width: 0; max-width: 34em; font-size: 13.5px; line-height: 1.55; }
.about-col h3 { font-family: var(--serif); font-weight: 700; font-size: 16.5px; line-height: 1.25; color: var(--ink); margin-bottom: 8px; }
.about-col p + p { margin-top: 9px; }
.about-steps { counter-reset: step; }
.about-steps li { position: relative; padding-left: 24px; counter-increment: step; }
.about-steps li + li { margin-top: 8px; }
.about-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; font-family: var(--serif); font-weight: 700; font-size: 14.5px; line-height: 1.44; color: var(--clay-deep); font-variant-numeric: lining-nums; }
.about-faq > div + div { margin-top: 11px; }
.about-faq dt { font-weight: 600; color: var(--ink); }
.about-faq dd { margin-top: 1px; }
/* a tool that builds itself starts as an empty section: hold a screen of room for it, so the About block and the footer
   below do not jump down the page when the tool appears */
.bench > section.tool:empty { min-height: 100vh; }
/* an optional full-width block under the three columns (the DUoS page's table of every region's time bands) */
.about-wide { margin-top: 30px; font-size: 13.5px; line-height: 1.5; }
.about-wide h3 { font-family: var(--serif); font-weight: 700; font-size: 16.5px; line-height: 1.25; color: var(--ink); margin-bottom: 10px; }
.about-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.about-table { width: 100%; min-width: 720px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.about-table th, .about-table td { text-align: left; vertical-align: top; padding: 7px 18px 7px 0; border-top: 1px solid var(--rule); }
.about-table thead th { border-top: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.about-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.about-note { margin-top: 10px; max-width: 62em; color: var(--ink-faint); }

.others {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 24px;
  margin-top: 34px; padding-top: 12px; border-top: 1px solid var(--rule);
}
.others-name { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.others a { padding: 7px 0 5px; border-bottom: 1.5px solid transparent; font-family: var(--serif); font-size: 16.5px; transition: border-color .2s; }
.others a:hover { border-bottom-color: var(--clay); }

.tool {
  margin-top: 10px; padding: var(--pad);
  background: var(--cream);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(31, 29, 26, .06), 0 14px 40px rgba(31, 29, 26, .08);
  scroll-margin-top: 260px;   /* an anchor jump to an open tool lands at the very top, above its bar */
}
.tool-title:focus { outline: none; }
/* the heading takes focus only so a screen reader starts at the tool; it is not a control, so it shows no ring */
.tool-title:focus, .tool-title:focus-visible, [tabindex="-1"]:is(h1, h2, h3):focus { outline: none; }
.tool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.tool-title { font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -.012em; }
.tool-lead { margin-top: 7px; color: var(--ink-soft); max-width: 44em; }
.tool-side { display: flex; align-items: center; gap: 6px; flex: none; }
.tool-share.is-done { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card { background: rgba(239, 235, 226, .55); border: 1px solid var(--rule); border-radius: 3px; padding: 26px; }
.note { font-size: 13px; line-height: 1.45; color: var(--ink-faint); }
.note.warn { color: var(--ink-soft); padding-left: 10px; border-left: 2px solid var(--clay); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  font-size: 14px; line-height: 1.2; white-space: nowrap;
  color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--ink); border-radius: 2px;
  transition: background-color .16s, color .16s, border-color .16s, transform .12s var(--ease), opacity .16s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
    .btn-quiet:active:not(:disabled) { background: transparent; color: var(--clay-deep); }
      .seg label:hover input:checked + span { background: var(--ink); }
    .tile[aria-selected="true"]:hover .stage { background: var(--clay-wash); }
  .tile:hover .tick { opacity: 1; transform: none; }
  .tile:hover .tile-tools { opacity: 1; transform: none; }
  }
.btn:active:not(:disabled) { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .36; cursor: not-allowed; }
.btn-primary { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--cream); font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 32px; padding: 5px 11px; font-size: 13px; border-color: var(--rule-strong); }
.btn-quiet { border-color: transparent; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; padding-inline: 6px; }
.btn-quiet:hover:not(:disabled) { background: transparent; color: var(--clay-deep); }
.btn-copy { min-height: 30px; min-width: 62px; padding: 4px 10px; font-size: 12px; border-color: var(--rule-strong); }
.btn-copy.is-done { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ---------- fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > .label, .field > legend.label { display: block; }
legend.label { margin-bottom: 7px; }
.input-wrap {
  display: flex; align-items: center; min-height: 40px;
  background: var(--cream); border: 1px solid var(--rule-strong); border-radius: 2px;
  transition: border-color .16s, box-shadow .16s;
}
.input-wrap:focus-within { border-color: var(--clay-deep); box-shadow: 0 0 0 3px var(--clay-wash); }
.input { flex: 1; min-width: 0; width: 100%; padding: 8px 10px; border: 0; background: transparent; outline: none; font-size: 15px; }
.input::placeholder { color: var(--ink-faint); opacity: .7; }
.input-prefix, .input-suffix { flex: none; color: var(--ink-faint); }
.input-prefix { padding-left: 12px; }
.input-suffix { padding-right: 12px; }
.input-big { min-height: 66px; }
.input-big .input, .input-big .input-prefix { font-family: var(--serif); font-size: 34px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.input-big .input { padding: 8px 12px 8px 6px; }
.input-big .input-prefix { padding-left: 16px; color: var(--ink-soft); }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--cream); padding: 2px; gap: 2px; max-width: 100%; }
.seg label { position: relative; display: flex; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: baseline; justify-content: center; gap: 5px; min-height: 34px; padding: 7px 13px; font-size: 14px; line-height: 1.3; border-radius: 1px; white-space: nowrap; transition: background-color .16s, color .16s; }
.seg span i { font-style: normal; font-size: 11.5px; opacity: .62; }
.seg label:hover span { background: rgba(31, 29, 26, .06); }
.seg input:checked + span { background: var(--ink); color: var(--cream); }
.seg input:focus-visible + span { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
.seg-wide, .seg-rates { display: flex; }
.seg-rates label { flex: 1 1 auto; }
.seg-rates span { flex: 1; }
.seg-wide label { flex: 1; }
.seg-wide span { flex: 1; }

/* ---------- alerts ---------- */
.alerts { display: grid; gap: 8px; }
.alerts:not(:empty) { margin-top: 18px; }
.alerts li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 10px 12px 10px 14px; background: var(--clay-wash); border-left: 2px solid var(--clay-deep); font-size: 14px;
  animation: rise .3s var(--ease) both;
}
.alerts b { font-weight: 600; overflow-wrap: anywhere; }
.alerts button { flex: none; min-height: 26px; min-width: 26px; padding: 0 8px; border: 0; background: transparent; cursor: pointer; font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
   PDF desk
   ===================================================================== */
.desk { position: relative; }
.drop {
  margin-top: 24px; padding: 46px 20px 42px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px dashed var(--rule-strong); border-radius: 4px;
  background:
    linear-gradient(var(--rule), var(--rule)) 50% 0 / 1px 14px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 50% 100% / 1px 14px no-repeat,
    rgba(239, 235, 226, .5);
  transition: border-color .2s, background-color .2s, transform .28s var(--ease), box-shadow .28s var(--ease), padding .3s var(--ease);
}
.drop-art { width: 132px; height: auto; overflow: visible; }
.drop-sheet { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.drop-sheet rect { fill: var(--cream); stroke: var(--ink); stroke-width: 1.1; }
.drop-sheet path { fill: none; stroke: var(--rule-strong); stroke-width: 1.1; stroke-linecap: round; }
.drop-sheet .drop-fold { fill: var(--clay); stroke: var(--ink); stroke-linejoin: round; }
.drop-sheet.s1 { transform: rotate(-9deg) translate(-9px, 1px); }
.drop-sheet.s2 { transform: rotate(6deg) translate(8px, 2px); }
.drop-sheet.s3 { transform: rotate(-1deg); }
.drop-title { margin-top: 20px; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.drop-sub { margin-top: 12px; display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.drop-kinds { margin-top: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }

/* files held over the page: the tray lifts and the sheets fan out */
.desk.is-over .drop {
  border-color: var(--clay-deep); border-style: solid; background-color: var(--clay-wash);
  transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(31, 29, 26, .35);
}
.desk.is-over .drop-sheet.s1 { transform: rotate(-17deg) translate(-20px, -4px); }
.desk.is-over .drop-sheet.s2 { transform: rotate(14deg) translate(19px, -3px); }
.desk.is-over .drop-sheet.s3 { transform: translateY(-9px); }

/* once pages are on the desk the tray folds down to a strip */
.desk[data-state="work"] .drop { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; margin-top: 20px; background-image: none; }
.desk[data-state="work"] .drop-art { display: none; }
.desk[data-state="work"] .drop-title { margin: 0; font-size: 17px; }
.desk[data-state="work"] .drop-sub { margin: 0; }
.desk[data-state="work"] .drop-sub .btn { min-height: 32px; padding: 5px 12px; font-size: 13px; font-weight: 400; background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.desk[data-state="work"] .drop-sub .btn:hover { background: var(--ink); color: var(--cream); }
.desk[data-state="work"] .drop-kinds { display: none; }

/* selection toolbar */
.selbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.selcount { font-family: var(--serif); font-size: 17px; }
.selcount b { font-weight: 700; }
.selcount span { color: var(--ink-soft); }
.selbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sel-rule { width: 1px; height: 20px; background: var(--rule); margin: 0 4px; }

/* the grid of pages */
.grid-wrap { position: relative; margin-top: 22px; }
.grid { --gx: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 22px var(--gx); }
.tile {
  --src: var(--sky); --w: .707; --h: 1;
  position: relative; min-width: 0; cursor: grab; border-radius: 3px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.tile:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 4px; }
.tile.is-new { animation: deal .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }

/* source file: a coloured rule that runs across a file's pages, with the name on its first page */
.tile-src { position: relative; display: flex; align-items: center; gap: 6px; height: 22px; border-top: 2px solid var(--src); font-size: 11px; line-height: 1; color: var(--ink-soft); }
.tile[data-run="start"] .tile-src::after, .tile[data-run="mid"] .tile-src::after {
  content: ""; position: absolute; left: 100%; top: -2px; width: var(--gx); height: 2px; background: var(--src);
}
.tile[data-rowend] .tile-src::after { display: none; }
.tile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile[data-run="mid"] .tile-name, .tile[data-run="end"] .tile-name { visibility: hidden; }

.stage {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  background: rgba(31, 29, 26, .045); border-radius: 3px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .18s, box-shadow .18s;
}
.tile:hover .stage { background: rgba(31, 29, 26, .07); }
.tile[aria-selected="true"] .stage { background: var(--clay-wash); box-shadow: inset 0 0 0 2px var(--clay); }
.sheet {
  width: calc(var(--w) * 80%); height: calc(var(--h) * 80%);
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(31, 29, 26, .14), 0 1px 2px rgba(31, 29, 26, .12), 0 6px 14px -6px rgba(31, 29, 26, .28);
  transform: rotate(calc(var(--turns, 0) * 90deg));
  transition: transform .36s var(--ease), width .3s var(--ease), height .3s var(--ease);
  overflow: hidden;
}
.sheet canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; }
.sheet.is-ready canvas { opacity: 1; }
.sheet:not(.is-ready) {
  background:
    repeating-linear-gradient(to bottom, transparent 0 9px, var(--rule) 9px 10px) 18% 22% / 64% 52% no-repeat,
    var(--cream);
  animation: breathe 1.5s ease-in-out infinite;
}
.sheet.is-failed { animation: none; background: var(--cream); }

.tick {
  position: absolute; left: 7px; top: 7px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--cream);
  opacity: 0; transform: scale(.8); transition: opacity .16s, transform .2s var(--ease), background-color .16s, border-color .16s;
}
.tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--cream); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.tile:focus-visible .tick, .tile[aria-selected="true"] .tick { opacity: 1; transform: none; }
.tile[aria-selected="true"] .tick { background: var(--clay-deep); border-color: var(--clay-deep); }
.tile[aria-selected="true"] .tick::after { opacity: 1; }

.tile-tools { position: absolute; right: 5px; top: 5px; display: flex; gap: 4px; opacity: 0; transform: translateY(-2px); transition: opacity .16s, transform .2s var(--ease); }
.tile:focus-visible .tile-tools { opacity: 1; transform: none; }
.tile-tools button {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; cursor: pointer;
  color: var(--ink); background: var(--cream); border: 1px solid var(--rule-strong); border-radius: 50%;
  box-shadow: 0 1px 3px rgba(31, 29, 26, .16);
  transition: background-color .14s, color .14s, transform .12s;
}
.tile-tools button:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tile-tools button:active { transform: scale(.92); }
.tile-tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) {
  .tile-tools, .tick { opacity: 1; transform: none; }
  .tile-tools { left: 0; right: 0; top: calc(100% + 2px); justify-content: space-between; }
  .tile-tools button { width: 44px; height: 44px; background: transparent; border-color: transparent; box-shadow: none; }
  .tile-tools button:active { background: var(--ink); color: var(--cream); }
  .tile-tools svg { width: 18px; height: 18px; }
  .tick { width: 24px; height: 24px; }
  .tick::after { left: 8px; top: 4px; }
  .for-mouse { display: none; }
}
@media (hover: hover) { .for-touch { display: none; } }
.more-short { display: none; }

.tile-num { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin-top: 7px; font-size: 12.5px; line-height: 1; color: var(--ink-soft); font-variant-numeric: lining-nums tabular-nums; }
.tile-num b { font-weight: 600; color: var(--ink); }
.tile-num i { font-style: normal; font-size: 11px; color: var(--clay-deep); }

@media (hover: none) { .tile-num { height: 44px; margin-top: 2px; align-items: center; font-size: 14px; } }

/* dragging */
.tile.is-lifted { cursor: grabbing; }
.tile.is-lifted .stage { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.tile.is-lifted .sheet, .tile.is-lifted .tick, .tile.is-lifted .tile-tools { opacity: 0; }
.tile.is-lifted .stage { outline: 1px dashed var(--rule-strong); outline-offset: -5px; }
body.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
body.is-dragging .tile { cursor: grabbing; }
body.is-dragging .tile-tools { opacity: 0 !important; }
.marker {
  position: absolute; left: 0; top: 0; width: 3px; height: 100px; margin-left: -1.5px; border-radius: 2px;
  background: var(--clay-deep); opacity: 0; pointer-events: none;
  transition: transform .14s var(--ease), opacity .12s, height .14s;
  will-change: transform;
}
.marker::before, .marker::after { content: ""; position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--clay-deep); }
.marker::before { top: -5px; } .marker::after { bottom: -5px; }
.marker.is-on { opacity: 1; }
.ghost {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  display: grid; place-items: center;
  will-change: transform; transform-origin: 50% 50%;
}
.ghost .sheet { transition: none; box-shadow: 0 0 0 1px rgba(31, 29, 26, .16), 0 22px 40px -12px rgba(31, 29, 26, .45), 0 6px 12px rgba(31, 29, 26, .16); }
.ghost .ghost-in { display: grid; place-items: center; width: 100%; height: 100%; transform: scale(1.06) rotate(2.5deg); transition: transform .22s var(--ease); }
.ghost.is-settling { transition: transform .24s var(--ease); }
.ghost.is-settling .ghost-in { transform: none; }
.ghost-count {
  position: absolute; right: 8%; top: 4%; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
  display: grid; place-items: center; background: var(--clay-deep); color: var(--cream); font-size: 12px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(31, 29, 26, .3);
}
.keys { margin-top: 20px; }
.keys-touch { display: none; }
@media (hover: none) { .keys-touch { display: inline; } .keys-mouse { display: none; } }

/* sticky action bar */
.actions {
  position: sticky; bottom: 0; z-index: 20;
  margin: 22px calc(var(--pad) * -1) 0; padding: 14px var(--pad) 16px;
  background: var(--cream); border-top: 1px solid var(--rule-strong);
  box-shadow: 0 -14px 26px -20px rgba(31, 29, 26, .45);
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 30px;
}
.actions-main { display: flex; align-items: flex-end; gap: 10px; flex: 1 1 380px; min-width: 0; }
.field-name { flex: 1 1 auto; max-width: 340px; }
.btn-more { display: none; }
.actions-extra { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 30px; }
.act-set { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.act-set .note { max-width: 31em; margin-top: 1px; }
.progress { flex: 1 1 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; }
.progress-track { grid-column: 1 / -1; height: 2px; background: var(--rule); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 100%; background: var(--clay-deep); transform-origin: 0 50%; transform: scaleX(0); transition: transform .2s linear; }
.progress-line { font-size: 14px; font-variant-numeric: tabular-nums; }
.progress.is-done .progress-fill { background: var(--olive); }
.progress.is-done #act-stop { display: none; }

@media (min-width: 721px) {
  .actions { align-items: center; gap: 12px 28px; }
  .actions-main { align-items: center; flex: 1 1 400px; }
  .field-name { flex-direction: row; align-items: center; gap: 12px; }
  .field-name .input-wrap { flex: 1; min-width: 120px; }
  .actions-extra { display: contents; }
  .act-set { flex-direction: row; align-items: center; gap: 12px; }
  .act-set-shrink { flex: 1 1 100%; }
  .act-set .note { flex: 1 1 200px; max-width: 34em; margin: 0; }
  .progress { grid-template-columns: auto 1fr auto; gap: 6px 14px; }
  .progress-track { grid-column: 1 / -1; }
}

/* results */
.results { margin-top: 26px; padding: 20px 22px; background: rgba(239, 235, 226, .55); border: 1px solid var(--rule); border-radius: 3px; animation: rise .4s var(--ease) both; scroll-margin-bottom: 24px; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.results-sum { font-family: var(--serif); font-size: 17px; }
.results-sum b { font-weight: 700; }
.results-list { display: grid; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 18px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.result-name { font-family: var(--serif); font-size: 16px; overflow-wrap: anywhere; }
.result-meta { font-size: 13px; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.result a { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--clay); white-space: nowrap; }
.result a:hover { color: var(--clay-deep); }
.results .note { margin-top: 12px; }
.results .note:empty { display: none; }

/* =====================================================================
   VAT calculator
   ===================================================================== */
.vat { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 26px 44px; align-items: start; }
.vat-in { display: grid; gap: 22px; }
.field-custom { margin-top: 12px; max-width: 170px; animation: rise .25s var(--ease) both; }
.vat-out { min-width: 0; }
.figures { display: grid; }
.figure { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label copy" "value copy"; align-items: end; gap: 0 14px; padding: 12px 0 13px; border-top: 1px solid var(--rule); }
.figure:first-child { border-top: 1.5px solid var(--clay); }
.figure[data-fig="gross"] { border-top: 1.5px solid var(--ink); }
.figure dt, .figure > .label { grid-area: label; }
.figure dd, .figure > .figure-val { grid-area: value; min-width: 0; }
.figure .btn-copy { grid-area: copy; align-self: center; }
.figure-value {
  display: block; font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1.12; letter-spacing: -.012em;
  font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere;
  transition: color .2s;
}
.figures.is-empty .figure-value { color: rgba(31, 29, 26, .5); }
.figures.is-long .figure-value { font-size: 30px; }
.working { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--rule); font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.4; color: var(--ink-soft); font-variant-numeric: lining-nums; min-height: 3.2em; }
.working.is-error { color: var(--clay-deep); font-style: normal; }
.vat-note { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--rule); }

/* .gallery-body.flow (wide screens): with nine tools the three groups hold 2, 3 and 4 plates, so three headed columns end at three
   different heights. Instead the plates run as one even grid, three to a row, in plate order, and each plate names its group in
   its top line. The group headings stay in the page for screen readers. Narrower screens keep the three headed groups. */
.plate-group-name { display: none; }
@media (min-width: 1021px) {
  .gallery-body.flow { grid-template-rows: none; gap: 24px 26px; }
  .gallery-body.flow::before { margin-bottom: -8px; }
  .gallery-body.flow .plate-group, .gallery-body.flow .plates { display: contents; }
  .gallery-body.flow .group-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .gallery-body.flow .plate-group-name { display: inline; }
}

/* ---------- footer ---------- */
.foot { max-width: var(--page); margin: 56px auto 0; padding: 18px 24px 44px; font-size: 13px; color: var(--ink-faint); }
.foot p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.foot a { color: var(--ink-soft); border-bottom: 1px solid var(--rule-strong); }
.foot a:hover { border-bottom-color: var(--clay); }
.foot-privacy { flex: 1 1 100%; max-width: 62em; }

@keyframes deal { from { opacity: 0; transform: translateY(14px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { opacity: .55; } }

/* ---------- narrower screens ---------- */
@media (max-width: 1020px) {
  .gallery-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 26px 0; }
  .gallery-body::before { margin-bottom: -10px; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
/* two plates to a row: a group with an odd number of plates ends on one wide plate, its drawing beside its words,
   so no row is left half empty */
@media (min-width: 601px) and (max-width: 1020px) {
  html.js .plates > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  html.js .plates > li:last-child:nth-child(odd) .plate { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); grid-template-rows: auto 1fr 1fr; column-gap: 30px; }
  html.js .plates > li:last-child:nth-child(odd) .plate-top { grid-column: 1 / -1; grid-row: 1; }
  html.js .plates > li:last-child:nth-child(odd) .plate-art { grid-column: 1; grid-row: 2 / -1; margin: 4px 0 0; }
  html.js .plates > li:last-child:nth-child(odd) .plate-name { grid-column: 2; grid-row: 2; align-self: end; border-top: 0; padding-top: 0; }
  html.js .plates > li:last-child:nth-child(odd) .plate-line { grid-column: 2; grid-row: 3; align-self: start; }
}
@media (max-width: 900px) {
  .vat { grid-template-columns: minmax(0, 1fr); }
  .about-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-col { max-width: 40em; font-size: 14px; }
}
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .bar { padding: 8px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
  .bar a { padding: 10px 0; }
  .masthead { padding: 18px 16px 0; }
  h1 { font-size: 42px; margin-top: 6px; }
  .intro { font-size: 18px; margin-top: 10px; }
  .private { margin-top: 10px; }
  .gallery-body { margin-top: 20px; padding: 0 12px; gap: 22px 0; }
  .gallery-body::before { margin: 0 4px -8px; }
  .group-title { padding: 0 4px; }
  .plates { gap: 14px; margin-top: 12px; }
  .plate { padding: 14px 16px 18px; }
  .plate-art { height: 160px; margin: 2px auto 8px; }
  .plate-name { font-size: 23px; padding-top: 12px; }
  .plate-line { font-size: 15.5px; }
  .bench { padding: 0 10px; }
  .toolbar { margin: 0 6px; padding: 2px 0; border-top: 0; min-height: 50px; gap: 6px 12px; }
  .toolbar-back { padding: 12px 0 10px; font-size: 17px; }
  .toolbar-name { padding-left: 12px; }
  .about { margin-top: 32px; padding: 0 6px; }
  .about-col { font-size: 14.5px; }
  .about-col h3 { font-size: 17.5px; }
  .others { margin: 28px 6px 0; gap: 0 22px; }
  .others-name { flex: 1 1 100%; padding-bottom: 2px; }
  .others a { padding: 11px 0 9px; }
  .tool { padding: 14px var(--pad) var(--pad); margin-top: 4px; }
  .tool-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding-bottom: 14px; }
  .tool-head > div:first-child { display: contents; }
  .tool-title { font-size: 27px; grid-column: 1; grid-row: 1; }
  .tool-side { grid-column: 2; grid-row: 1; }
  .tool-side .btn { min-height: 40px; padding: 6px 12px; }
  .tool-lead { grid-column: 1 / -1; margin-top: 2px; }
  .card { padding: 18px 14px; }
  .btn { min-height: 46px; font-size: 15px; }
  .btn-small { min-height: 44px; padding: 8px 13px; font-size: 14px; }
  .btn-copy { min-height: 44px; min-width: 68px; font-size: 13px; }
  .input-wrap { min-height: 46px; }
  .input { font-size: 16px; }
  .seg span { min-height: 42px; padding: 10px 14px; font-size: 15px; }
  .alerts button { min-height: 40px; }
  .drop { padding: 26px 14px 26px; margin-top: 16px; }
  .drop-art { width: 104px; }
  .drop-title { font-size: 23px; margin-top: 14px; }
  .drop-sub { margin-top: 14px; }
  .drop-sub .btn { min-width: 200px; min-height: 52px; font-size: 17px; }
  .drop-kinds { margin-top: 14px; }
  .desk[data-state="work"] .drop-title { display: none; }
  .desk[data-state="work"] .drop-or { display: none; }
  .desk[data-state="work"] .drop { padding: 8px; border-style: solid; border-color: var(--rule); }
  .desk[data-state="work"] .drop-sub, .desk[data-state="work"] .drop-sub .btn { width: 100%; min-height: 44px; font-size: 15px; }
  .grid { --gx: 10px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px var(--gx); }
  .selbar { align-items: center; margin-top: 16px; }
  .selbtns .btn:disabled { display: none; }
  .selbtns:has(#sel-clear:not(:disabled)) { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .selbtns:has(#sel-clear:not(:disabled)) .btn:disabled { display: inline-flex; }
  .sel-rule { display: none; }
  .actions { gap: 10px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px)); max-height: 82vh; overflow-y: auto; overscroll-behavior: contain; }
  .actions-main { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }
  .actions-main .btn-primary { flex: 1 1 auto; order: 1; }
  .actions-main { flex-wrap: nowrap; }
  .actions.is-open .actions-main { flex-wrap: wrap; }
  .actions-main .btn-primary { flex: 1 1 0; min-width: 0; padding-inline: 10px; }
  .btn-more { display: inline-flex; flex: 0 0 auto; order: 2; padding-inline: 14px; }
  .more-long { display: none; } .more-short { display: inline; }
  .btn-more::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(1px) rotate(-135deg); transition: transform .2s; }
  .btn-more[aria-expanded="true"]::after { transform: translateY(-2px) rotate(45deg); }
  .field-name { display: none; order: 3; flex: 1 1 100%; max-width: none; gap: 5px; padding-top: 4px; }
  .actions.is-open .field-name { display: flex; }
  .actions-extra { display: none; flex: 1 1 100%; gap: 14px; }
  .actions.is-open .actions-extra { display: flex; animation: rise .22s var(--ease) both; }
  .act-set { flex: 1 1 100%; }
  .act-row { display: grid; grid-template-columns: 1fr; }
  .act-row .seg { display: flex; }
  .act-row .seg label, .act-row .seg span { flex: 1; }
  .progress { order: -1; }
  .results { padding: 16px 14px; }
  .result { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 0; }
  .result-meta { grid-column: 1; grid-row: 2; }
  .result a { grid-column: 2; grid-row: 1 / span 2; padding: 13px 0 12px; font-size: 14px; }
  .seg-rates { display: grid; grid-template-columns: 1fr 1fr; }
  .seg-rates span { flex: 1; }
  .field-custom { max-width: none; }
  .figure-value { font-size: 36px; }
  .figures.is-long .figure-value { font-size: 25px; }
  .input-big { min-height: 68px; }
  .input-big .input, .input-big .input-prefix { font-size: 30px; }
  .foot { padding: 18px 16px 36px; font-size: 14px; }
  .foot a { display: inline-block; padding: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
@media (max-width: 600px) {
  .plates { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .bar, .toolbar, .about, .others, .actions, .drop { display: none; }
  body { background: #fff; }
  .tool { box-shadow: none; }
}
