/* The plain pages: /privacy, /disclosure, /admin and /admin/catalog. Same tokens, type, header and footer as the homepage
   (src/home/home.css), which keeps its own copy so this file can't change it. It lives outside /admin so Access never guards it.
   Font longhands, not the shorthand, where a font-stretch % follows (see home.css). */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
}

:root {
  --film: #f5f6f6;
  --paper: #ffffff;
  --ink: #191919;
  --graphite: #4b5056;
  --rule: #c7ccd1;
  --hair: #e6e8ea;
  --blue: #2b78d0;
  --blue-strong: #1b5fae;
  --danger: #b3261e;
  --danger-strong: #8c1d17;
  --done: #1d6b3d;
  --r: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--film);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-size: 17px; line-height: 1.55; font-weight: 400;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; padding: 1px 5px; background: #eceeef; border-radius: 3px; }
.frac { font-variant-numeric: diagonal-fractions; }
.num, .fig-n { font-weight: 600; font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -60px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r); z-index: 10; }
.skip:focus { top: 12px; }
.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; background: transparent; color: inherit;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-strong); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3a3d41; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--paper); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-strong); }
.btn-danger-line { border-color: var(--danger); color: var(--danger); }
.btn-danger-line:hover { background: #fbeceb; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; }

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--film); }
.top-row { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 16px; font-weight: 500; }
.nav > a { text-decoration: none; padding: 8px 0; }
.nav > a:hover, .nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav > a[aria-current="page"] { text-decoration-thickness: 2px; }

/* footer: bottom padding leaves room for the Skimlinks consent bar */
.foot { padding: 48px 0 112px; border-top: 1px solid var(--rule); }
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot p { margin-top: 10px; font-size: 14px; color: var(--graphite); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot nav a { text-decoration: none; font-weight: 500; padding: 6px 0; }
.foot nav a:hover { text-decoration: underline; }

/* page head */
.page-head { padding: 40px 0 48px; border-bottom: 1px solid var(--rule); }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--graphite); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #8f969d; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.04; font-weight: 800; font-stretch: 125%; letter-spacing: -0.015em; max-width: 18em; }
.page-lede { margin-top: 18px; font-size: 19px; color: var(--graphite); max-width: 40em; }
.byline { margin-top: 16px; font-size: 14px; font-weight: 600; font-stretch: 87.5%; font-variant-numeric: tabular-nums; color: var(--graphite); }

/* article (the guide template) */
.guide-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding: 56px 0 96px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.toc-head { font-size: 15px; font-weight: 600; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 9px 0; border-bottom: 1px solid #e1e4e7; text-decoration: none; }
.toc li a:hover { text-decoration: underline; }
.toc-cta { margin-top: 20px; width: 100%; }

.prose { max-width: 720px; font-size: 18px; line-height: 1.65; overflow-wrap: break-word; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 30px; line-height: 1.12; font-weight: 800; font-stretch: 125%; scroll-margin-top: 24px; }
.prose > h2:first-child, .prose > p:first-child + h2 { margin-top: 48px; }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 36px; font-size: 20px; font-weight: 700; font-stretch: 110%; }
.prose h2 + p, .prose h3 + p, .prose h2 + h3 { margin-top: 12px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose blockquote { margin: 28px 0 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--ink); color: #2b2f33; }
.prose blockquote > * + * { margin-top: 16px; }
.prose .lead { font-size: 20px; color: #2b2f33; }

/* tables: the homepage's spec style */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; border-collapse: collapse; font-size: 16px; }
.data caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.data th, .data td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.data th:last-child, .data td:last-child { padding-right: 0; }
.data thead th { font-size: 14px; font-weight: 600; color: var(--graphite); border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.data tbody th { font-weight: 600; }
.data .num { text-align: right; white-space: nowrap; }
.data .act { text-align: right; white-space: nowrap; width: 1%; }
.prose .data { font-size: 16px; line-height: 1.5; }
.prose .data td:first-child { font-weight: 600; }

/* the cookie choice on /privacy (consent.js fills [data-consent-actions] with .mm-consent-btn buttons) */
.consent-manage { padding: 22px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); font-size: 17px; }
.consent-manage [data-consent-actions]:not(:empty) { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.consent-open-note { display: none; }
.consent-manage[data-region='open'] .consent-open-note { display: block; }
.consent-manage[data-region='open'] [data-consent-status] { display: none; }

/* ---------- admin ---------- */
.admin-mark { text-decoration: none; color: var(--ink); }
.admin-mark:hover { background: var(--ink); color: #fff; }
.admin-mark { font-size: 15px; font-weight: 700; font-stretch: 112%; padding: 3px 9px; border: 1.5px solid var(--ink); border-radius: 3px; }
.admin-top .top-row { gap: 20px; }
.admin-top .nav { margin-left: 28px; }
.room-search { display: flex; gap: 8px; margin-left: 24px; }
.room-search input { width: 150px; min-height: 38px; padding: 0 10px; border: 1px solid #8f969d; border-radius: var(--r); background: #fff; font: inherit; font-size: 15px; font-weight: 600; font-stretch: 87.5%; font-variant-numeric: tabular-nums; color: var(--ink); }
.room-search input::placeholder { color: #8f969d; font-weight: 500; }
.who { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 15px; color: var(--graphite); }
.who b { color: var(--ink); font-weight: 600; }
.who a:not(.btn) { color: var(--ink); font-weight: 500; }

.admin-main { padding: 40px 0 120px; }
.admin-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.admin-head h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.04; font-weight: 800; font-stretch: 125%; letter-spacing: -0.015em; }
.admin-head p { color: var(--graphite); max-width: 38em; }
.admin-head .crumbs ol { margin-bottom: 14px; }

.banner { display: flex; gap: 14px; align-items: baseline; margin-top: 28px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--done); border-radius: var(--r); font-weight: 500; }
.banner-err { border-left-color: var(--danger); }
.banner b { font-weight: 700; }

.sec { padding-top: 56px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 18px; }
.sec h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; font-weight: 800; font-stretch: 125%; }
.sec-head p { color: var(--graphite); font-size: 16px; max-width: 46em; }
.sheet { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); }
.pad { padding: 28px 32px; }
.sheet > .table-wrap { padding: 8px 32px 12px; }
.sheet + .sheet { margin-top: 16px; }
.sheet h3 { font-size: 20px; font-weight: 800; font-stretch: 112%; }
.sheet h3 + p, .sheet h3 + .hint { margin-top: 6px; }
.hint { font-size: 14px; color: var(--graphite); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.split-2 > .sheet + .sheet { margin-top: 0; }
.gap-top { margin-top: 16px; }
.rule-top { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hair); }

/* the numbers strip: set like the homepage's drawing figures */
.figs { margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.figs div { padding: 16px 16px 18px 0; }
.figs div + div { padding-left: 20px; border-left: 1px solid var(--hair); }
.figs-3 { grid-template-columns: repeat(3, 1fr); }
.figs dt { font-size: 14px; color: var(--graphite); }
.figs dd { margin: 4px 0 0; font-size: 40px; line-height: 1.05; font-weight: 700; font-stretch: 87.5%; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* forms */
form { margin: 0; }
.fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 16px; align-items: start; }
.fields > * { grid-column: span 12; }
.fields .c3 { grid-column: span 3; } .fields .c4 { grid-column: span 4; } .fields .c6 { grid-column: span 6; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 15px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--graphite); }
.field input:not([type="file"]), .field select {
  width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #8f969d; border-radius: var(--r); background: #fff;
  font: inherit; font-size: 16px; font-weight: 600; font-stretch: 87.5%; color: var(--ink);
}
.field input:not([type="file"]):hover, .field select:hover { border-color: var(--graphite); }
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; }
.field input::placeholder { color: #8f969d; font-weight: 500; }
.field input[type="file"] { font: inherit; font-size: 15px; max-width: 100%; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 9px 14px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper); color: var(--ink); cursor: pointer; }
.field .hint { margin-top: 0; }
.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline .field { flex: 1 1 260px; max-width: 420px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); }
.tile-now { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.tile-now > div { min-width: 0; flex: 1 1 200px; }
.tile-now img { width: 112px; height: 112px; object-fit: cover; border: 1px solid var(--rule); border-radius: 3px; background: var(--film); }

/* the tile maker on /admin/catalog (src/admin/catalog.ts reveals .tile-start; src/ui/tile/tile.css styles .tm, themed here) */
.tile-start[hidden], .tile-start [hidden] { display: none !important; }
.sec > .tile-start[hidden]:first-child + .sheet { margin-top: 0; }
.tile-start .inline .field { max-width: 640px; }
.ts-alt { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 16px; }
.ts-alt .hint { flex: 0 1 auto; margin-right: 4px; }
.ts-address { margin-top: 16px; }
.ts-status:empty { display: none; }
.ts-status { margin-top: 16px; font-size: 15px; color: var(--ink); }
.tile-start .banner { margin-top: 16px; }
.ts-h4 { font-size: 16px; font-weight: 700; font-stretch: 112%; }
.ts-found { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); }
.ts-thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.ts-thumb { display: grid; gap: 6px; width: 100%; padding: 6px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.ts-thumb:hover:not(:disabled) { border-color: var(--ink); }
.ts-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--film); }
.ts-size { font-size: 13px; font-weight: 600; font-stretch: 87.5%; font-variant-numeric: tabular-nums; color: var(--graphite); }
.ts-thumb:disabled { cursor: default; opacity: .55; }
.ts-broken img { visibility: hidden; }
.ts-maker {
  margin-top: 24px; padding-top: 20px; border-top: 1.5px solid var(--ink);
  --tm-font: "Archivo", system-ui, sans-serif; --tm-text: var(--ink); --tm-muted: var(--graphite);
  --tm-accent: var(--ink); --tm-accent-strong: #000; --tm-accent-soft: var(--hair); --tm-focus: var(--blue);
  --tm-line: var(--rule); --tm-panel: var(--paper); --tm-panel-border: var(--rule); --tm-stage: var(--film); --tm-box: #fff;
  --tm-dim: rgba(25, 25, 25, .55); --tm-ghost: rgba(255, 255, 255, .78); --tm-track: var(--rule);
  --tm-btn-bg: var(--paper); --tm-btn-border: var(--ink); --tm-radius: var(--r); --tm-radius-small: 3px;
}
.ts-maker-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.ts-maker-head h4:focus { outline: none; }
.ts-host { height: 70vh; min-height: 460px; }
.ts-notes { padding: 14px 16px; background: var(--film); border-left: 4px solid var(--rule); border-radius: var(--r); font-size: 14px; }
.ts-notes-h { font-weight: 700; }
.ts-notes ul { margin: 4px 0 0; padding-left: 18px; color: var(--graphite); }
.tile-now.ts-new img { border-color: var(--ink); border-width: 1.5px; }

/* two-step destructive actions: <details> reveals the confirm */
.confirm > summary { list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] > summary { background: #fbeceb; }
.confirm-body { margin-top: 14px; padding: 18px 20px; border: 1px solid var(--danger); border-radius: var(--r); background: #fffafa; display: grid; gap: 14px; text-align: left; white-space: normal; }
.confirm-body p { font-size: 15px; color: #2b2f33; max-width: 40em; }
.confirm-body .field { max-width: 420px; }
.confirm-body .btn { justify-self: start; }
td .confirm { display: inline-block; }
td .confirm[open] { display: block; }

/* tables in the admin */
.swatch { width: 44px; }
.tilecell { width: 80px; }
.thumb { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--rule); border-radius: 3px; background: var(--film); }
.chip { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgb(25 25 25 / .18); vertical-align: middle; }
.sub { display: block; font-size: 14px; color: var(--graphite); font-weight: 400; }
.data tr.off td:not(.act) { color: #8f969d; }
.data tr.off .thumb, .data tr.off .chip { opacity: .45; }
.state { display: inline-block; font-size: 13px; font-weight: 600; font-stretch: 87.5%; padding: 1px 7px; border: 1px solid currentColor; border-radius: 3px; }
.state-off { color: var(--graphite); }
.fp { font-weight: 600; font-stretch: 87.5%; font-variant-numeric: tabular-nums; letter-spacing: .02em; word-break: break-all; }
.empty { padding: 28px 32px; color: var(--graphite); }
.empty b { color: var(--ink); }

/* room lookup */
.room-id { display: inline-block; margin-left: 8px; padding: 2px 10px; border: 1.5px solid var(--ink); border-radius: 3px; font-weight: 700; font-stretch: 87.5%; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th { text-align: left; vertical-align: top; font-weight: 400; color: var(--graphite); width: 180px; padding: 10px 16px 10px 0; border-top: 1px solid var(--hair); }
.spec td { padding: 10px 0; border-top: 1px solid var(--hair); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.recipe > summary { cursor: pointer; font-weight: 600; }
.recipe pre { margin: 14px 0 0; padding: 16px 18px; max-height: 30rem; overflow: auto; background: var(--film); border: 1px solid var(--hair); border-radius: 3px; font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }

/* shared rooms list */
.thumbcell { width: 144px; }
.room-thumb { display: block; width: 128px; height: 72px; object-fit: cover; border: 1px solid var(--rule); border-radius: 3px; background: var(--film); }
.thumbcell a { text-decoration: none; }
.room-thumb-none { display: grid; place-items: center; font-size: 13px; color: var(--graphite); }
.data td a b { text-decoration: none; }
.data td a:has(b) { text-decoration: none; }
.data td a:has(b):hover b { text-decoration: underline; text-underline-offset: 3px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px 18px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--graphite); }
.pager .num { margin: 0 auto; }

/* paint: the color browser */
.color-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.color-filters .field { flex: 1 1 180px; }
.color-filters .f-q { flex: 2 1 260px; }
.swatches { list-style: none; margin: 0; padding: 0 32px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.swatch-card { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.swatch-big { display: block; aspect-ratio: 16 / 9; border-radius: 3px; border: 1px solid rgb(25 25 25 / .12); background: repeating-linear-gradient(45deg, var(--film) 0 6px, #fff 6px 12px); }
.swatch-text { display: grid; gap: 2px; font-size: 15px; line-height: 1.3; }
.swatch-text .state { justify-self: start; margin-top: 4px; }
.swatch-card form .btn { width: 100%; }
.swatch-card.off .swatch-big { opacity: .45; }
.swatch-card.off b { color: var(--graphite); }
.sec-small { padding-top: 40px; }
.feed { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.feed > div { flex: 1 1 420px; display: grid; gap: 4px; }
.feed h2 { font-size: 18px; font-weight: 800; font-stretch: 112%; }
.sec-note { margin: -8px 0 14px; }

/* wallpaper: the add form as a popover (no JavaScript) */
.modal { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0; border: 0; background: transparent; overflow: auto; }
.modal::backdrop { background: rgb(25 25 25 / .45); }
.modal > .sheet { box-shadow: 0 18px 50px rgb(25 25 25 / .25); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--film); }

/* clicks: one bar per day, drawn like the homepage's dimensioned figures */
.bars-fig { margin: 0; }
.bars { --max-h: 140px; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; align-items: end; height: var(--max-h); margin: 0; padding: 0 0 0 44px; list-style: none; border-bottom: 1.5px solid var(--ink); position: relative; }
.bars::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; border-left: 1px solid var(--graphite); }
.bars li { height: var(--h); min-height: 1px; background: var(--ink); }
.bars li.zero { background: var(--rule); }
.bars-max { position: absolute; left: 0; top: -4px; width: 40px; text-align: center; background: var(--paper); font-size: 13px; }
.bars-wrap { position: relative; padding-top: 6px; }
.bars-axis { display: flex; justify-content: space-between; padding: 8px 0 0 44px; font-size: 13px; color: var(--graphite); }
.bars-fig figcaption { margin-top: 14px; font-size: 14px; color: var(--graphite); }
.meter { display: inline-block; height: 6px; margin-right: 10px; background: var(--ink); vertical-align: middle; border-radius: 1px; }

/* tablet */
@media (max-width: 1100px) {
  .guide-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; max-width: 420px; }
  .admin-head { grid-template-columns: 1fr; gap: 12px; }
  .admin-top .top-row { flex-wrap: wrap; padding: 12px 0; }
  .admin-top .nav { order: 3; margin-left: 0; width: 100%; }
  .room-search { order: 4; margin-left: 0; width: 100%; }
  .room-search input { flex: 1; width: auto; }
  .who { order: 5; }
  .split-2 { grid-template-columns: 1fr; }
}

/* phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .top-row { min-height: 64px; gap: 12px; }
  .brand img { width: 112px; }
  .site-top .nav { display: none; }
  .site-top .btn { margin-left: auto; min-height: 42px; padding: 0 14px; font-size: 15px; }
  .page-head { padding: 24px 0 32px; }
  .crumbs ol { margin-bottom: 18px; }
  .page-head h1, .admin-head h1 { font-size: 32px; font-stretch: 112%; }
  .page-lede { font-size: 17px; }
  .guide-grid { padding: 32px 0 64px; }
  .toc-cta { display: none; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; font-stretch: 112%; margin-top: 44px; }
  .prose .data { font-size: 15px; }
  .data th, .data td { padding-right: 12px; }
  .consent-manage { padding: 16px; }
  .consent-manage [data-consent-actions]:not(:empty) { display: grid; grid-template-columns: 1fr 1fr; }
  [data-consent-actions] button { min-height: 44px; }

  .admin-top .nav { gap: 22px; }
  .who { width: 100%; order: 4; margin-left: 0; gap: 14px; flex-wrap: wrap; font-size: 14px; }
  .who .btn { margin-left: auto; }
  .admin-main { padding-top: 28px; }
  .pad, .empty { padding: 20px 16px; }
  .sheet > .table-wrap { padding: 4px 16px 8px; }
  .sec { padding-top: 44px; }
  .figs { grid-template-columns: 1fr 1fr; }
  .figs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .figs div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .figs dd { font-size: 30px; }
  .fields .c3, .fields .c4, .fields .c6 { grid-column: span 12; }
  .fields .c3.half { grid-column: span 6; }
  .inline .field { max-width: none; }
  .inline .btn, .form-foot .btn { flex: 1 1 100%; }
  .ts-alt .btn { flex: 1 1 100%; }
  .ts-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-host { height: 82vh; min-height: 520px; }
  .spec th { width: 110px; }
  .pager { padding: 12px 16px; }
  .swatches { padding: 0 16px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .color-filters .field, .color-filters .f-q { flex: 1 1 100%; }
  .color-filters .btn { flex: 1 1 100%; }
  .thumbcell { width: 104px; }
  .room-thumb { width: 88px; height: 50px; }
  .bars { --max-h: 110px; gap: 2px; padding-left: 36px; }
  .bars-max { width: 32px; }
  .bars-axis { padding-left: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --graphite: #2f3337; --rule: #7b8289; }
}
