/* SettleZ player guide. A house lit at night: the one warm thing in a dark,
   empty world. Choose by pictures, one clear action at a time, plain words.
   No network requests: the fonts are in assets/fonts. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('assets/fonts/BricolageGrotesque-Variable.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/InstrumentSans-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b1116;
  --panel: #141c23;
  --raised: #1b252e;
  --fg: #f1eee5;
  --muted: #b4bdc2;
  --rule: #2c3944;
  --accent: #f5b95f;
  --accent-hi: #ffd08a;
  --on-accent: #17110a;
  --good: #a6cf8d;
  --bad: #ff9d90;
  --warn: #f0c466;
  --info: #92c2ec;
  --shade: rgba(0, 0, 0, .6);
  --tint: rgba(245, 185, 95, .12);
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 12px;
  --top: 68px;
  --gutter: clamp(16px, 4vw, 56px);
}


* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--body); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 6px 10px; z-index: 50; }
.skip-link:focus { left: 8px; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent);
  font: 800 14.5px/1 var(--body); text-decoration: none; padding: 11px 16px; border-radius: 8px; border: 1px solid var(--accent); white-space: nowrap; }
.button:hover { filter: brightness(1.08); text-decoration: none; }
.button.ghost { background: none; color: var(--fg); border-color: var(--rule); }
.button.ghost:hover { border-color: var(--fg); filter: none; }
.button.big { font-size: 16px; padding: 14px 20px; }
.button svg, .icon-button svg { width: 17px; height: 17px; flex: none; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--fg);
  background: none; border: 1px solid transparent; cursor: pointer; padding: 0; }
.icon-button:hover { border-color: var(--rule); background: var(--panel); }

/* Page layout: sidebar, reading column, on this page */
.layout { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 210px; gap: 48px; }
.sidebar, .toc { position: sticky; top: calc(var(--top) + 1px); align-self: start; max-height: calc(100vh - var(--top) - 1px);
  overflow-y: auto; padding: 20px 0 28px; scrollbar-width: thin; }
.sidebar h2 { font: 800 11.5px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 17px 0 4px 10px; }
.sidebar h2:first-child { margin-top: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a { display: block; color: var(--fg); text-decoration: none; font-size: 14.5px; padding: 4px 10px; border-radius: 7px; line-height: 1.35; }
.sidebar a:hover { background: var(--panel); }
.sidebar a[aria-current="page"] { background: var(--tint); color: var(--accent); font-weight: 800; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar .side-lists { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 6px 0; }
.sidebar .side-lists a { font-size: 13px; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 999px; }
.sidebar .side-foot { margin: 26px 10px 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.sidebar .side-foot a { padding: 0; display: inline; color: var(--muted); font-size: 13px; }
.sidebar .side-foot a:hover { background: none; color: var(--accent); }
.side-backdrop { display: none; }
.toc h2 { font: 800 11.5px/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; font-size: 13.5px; line-height: 1.35; color: var(--muted); text-decoration: none; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 700; }
.toc:empty { visibility: hidden; }

main { min-width: 0; padding: 34px 0 60px; }
.on-home main { grid-column: 2 / 4; }
.on-home .toc { display: none; }
.on-home .pager { display: none; }
.enhanced main > article[hidden] { display: none; }

/* Chapter */
article { max-width: 760px; }
.chapter-head { margin-bottom: 22px; }
.eyebrow { font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1 { font: 60px/.95 var(--display); letter-spacing: .015em; margin: 0 0 14px; font-weight: 400; }
h1:focus { outline: none; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 62ch; }
article > h2 { font: 34px/1.05 var(--display); letter-spacing: .02em; font-weight: 400; margin: 46px 0 12px; padding-top: 4px; }
article > h2 + p, article > h2 + ul, article > h2 + ol { margin-top: 0; }
h3 { font: 800 17px/1.35 var(--body); margin: 24px 0 6px; }
article p, article li { max-width: 70ch; }
article ul, article ol { padding-left: 22px; }
article li { margin: 5px 0; }
article li::marker { color: var(--muted); }
strong { font-weight: 800; }
kbd { display: inline-block; min-width: 22px; text-align: center; font: 700 12.5px/1 var(--mono); padding: 4px 6px 3px; border: 1px solid var(--rule);
  border-bottom-width: 2px; border-radius: 5px; background: var(--raised); color: var(--fg); vertical-align: 1px; }
b.ui { font-weight: 700; background: var(--panel); border: 1px solid var(--rule); border-radius: 5px; padding: 0 6px; white-space: nowrap; font-size: .94em; }
code { font: 13.5px var(--mono); background: var(--panel); border-radius: 4px; padding: 1px 5px; }

/* In short */
.glance { background: var(--raised); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 16px 20px 14px; margin: 0 0 8px; }
.glance-title { font: 800 12px/1 var(--body) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px !important; padding: 0 !important; }
.glance ul { margin: 0; padding-left: 18px; }
.glance li { margin: 4px 0; }

/* Steps */
ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 16px 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 16px 46px; margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 19px/31px var(--display); text-align: center; }
ol.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 14.5px; top: 32px; bottom: 2px; width: 1px; background: var(--rule); }

/* Key facts */
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 16px 0; max-width: 70ch; }
dl.facts > div { background: var(--panel); border-radius: 8px; padding: 10px 13px; }
dl.facts dt { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
dl.facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.35; }

/* Callouts */
.callout { --tone: var(--info); border-radius: var(--radius); padding: 12px 16px; margin: 18px 0; max-width: 70ch;
  background: color-mix(in srgb, var(--tone) 9%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); }
.callout.tip { --tone: var(--good); }
.callout.warn { --tone: var(--warn); }
.callout p { margin: 4px 0; }
.callout strong:first-child { color: var(--tone); }

/* While you are there / while you are away */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; max-width: 70ch; }
.split > section { --tone: var(--accent); border: 1px solid var(--rule); border-top: 3px solid var(--tone); border-radius: var(--radius); padding: 12px 16px; background: var(--raised); }
.split > .away { --tone: var(--info); }
.split h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--tone); display: flex; align-items: center; gap: 7px; }
.split h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.split p, .split li { margin: 5px 0; font-size: 15px; }
.split ul { padding-left: 18px; margin: 4px 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 16px 0; }
.card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 13px 15px 12px; background: var(--raised); display: flex; flex-direction: column; }
.card h3 { margin: 0 0 3px; font-size: 16px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.card > a { margin-top: 8px; font-size: 13.5px; font-weight: 800; text-decoration: none; }
.card > a::after { content: ' →'; }

/* Tables */
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 9px 13px; border-bottom: 1px solid var(--rule); }
th { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--panel); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }
tr.group td { font: 21px/1 var(--display); letter-spacing: .03em; font-weight: 400; color: var(--accent); background: var(--bg); padding-top: 16px; }
tr.hit td { background: var(--tint); }
tr.hit td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr[hidden] { display: none; }

.kind { display: inline-block; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 1px 9px; white-space: nowrap;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); --tone: var(--muted); }
.kind.good { --tone: var(--good); } .kind.bad { --tone: var(--bad); }

/* Details (questions) */
article details { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); margin: 8px 0; max-width: 70ch; }
article details summary { cursor: pointer; font-weight: 800; padding: 12px 40px 12px 16px; list-style: none; position: relative; }
article details summary::-webkit-details-marker { display: none; }
article details summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 24px/1 var(--display); color: var(--accent); }
article details[open] summary::after { content: '–'; }
article details > :not(summary) { margin: 0 16px 12px; }

/* Screenshots */
figure.shot { margin: 20px 0; max-width: 70ch; }
figure.shot img { display: block; max-height: 440px; width: auto; border-radius: var(--radius); border: 1px solid var(--rule); cursor: zoom-in; background: var(--panel); }
figure.shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 7px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.shots figure.shot { margin: 0; }
dialog.lightbox { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 88vh; border-radius: 8px; }
dialog.lightbox p { color: #e3e4d8; text-align: center; font-size: 14px; margin: 8px 0 0; }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; margin-top: 56px; }
.pager a { border: 1px solid var(--rule); border-radius: var(--radius); padding: 13px 16px; text-decoration: none; color: var(--fg); background: var(--raised); }
.pager a:hover { border-color: var(--accent); }
.pager a span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pager a strong { font: 24px/1.1 var(--display); font-weight: 400; letter-spacing: .02em; }
.pager .next { text-align: right; grid-column: 2; }

/* List pages */
.list-tools { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
.list-tools input { font: 14.5px var(--body); color: var(--fg); background: var(--raised); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; width: min(320px, 100%); }
.list-tools input:focus { outline: none; border-color: var(--accent); }
.list-tools span { font-size: 13.5px; color: var(--muted); }
article.list-page { max-width: 980px; }

/* Side pages (changelog, roadmap, works with): one column under the same top bar */
.wrap.single { max-width: 820px; margin: 0 auto; padding: 34px 20px 60px; }
.log h1 { font-size: 56px; }
.log > p.lede { margin-bottom: 16px; }
.log article { max-width: none; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); padding: 6px 22px 12px; margin: 22px 0; }
.log article h2 { font: 32px/1.1 var(--display); font-weight: 400; letter-spacing: .02em; margin: 14px 0 6px; }
.log .versions { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.log .back { display: none; }
.status { font-size: 13.5px; color: var(--muted); }
p.note, .note { --tone: var(--info); }

/* Changelog page: one entry per version, its changes as a list */
.log article h2 { display: flex; align-items: baseline; gap: 12px; }
.log article h2 time { font: 13px var(--body); color: var(--muted); letter-spacing: 0; }
.log .changes { padding-left: 18px; }
.log .changes > li { margin: 6px 0; }
.log .changes p, .log .changes ul { margin: 3px 0; }
.log .status { font-size: 13.5px; color: var(--muted); }
.log .changes { list-style: none; padding-left: 0; }
.log .changes > li { margin: 0; border-top: 1px solid var(--rule); max-width: none; }
.log .changes > li:first-child { border-top: 0; }
.log .changes details { border: 0; background: none; margin: 0; max-width: none; border-radius: 0; }
.log .changes details > :not(summary) { margin: 0; }
.log .changes details summary { font-weight: 400; cursor: pointer; padding: 8px 26px 8px 0; position: relative; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.log .changes details summary::-webkit-details-marker { display: none; }
.log .changes details summary::after { content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font: 22px/1 var(--display); color: var(--accent); }
.log .changes details[open] summary::after { content: '–'; }
.log .changes details summary strong { flex: 1; font-weight: 700; }
.log .changes .ver { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log .changes details > div { padding: 0 0 12px; font-size: 15px; color: var(--fg); }
.log .changes details > div > :first-child { margin-top: 0; }
.log .changes ul { padding-left: 18px; }
.more-changes { font: 800 14px var(--body); color: var(--accent); background: none; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 14px; margin: 8px 0 10px; cursor: pointer; }
.more-changes:hover { border-color: var(--accent); }

/* Roadmap page: one line per planned part, a ticked box once it is published */
.log h2 .state { font: 13px var(--body); color: var(--muted); letter-spacing: 0; }
.road { list-style: none; padding-left: 0; }
.road li { position: relative; padding-left: 26px; margin: 7px 0; }
.road li::before { content: ''; position: absolute; left: 0; top: .28em; width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 3px; }
.road li.done::before { content: '✓'; border-color: var(--good); background: var(--good); color: var(--bg); font: 700 12px/14px var(--body); text-align: center; }
.road li.done { color: var(--muted); }
.road .size { font-size: 12.5px; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 0 6px; white-space: nowrap; }

/* Works-with page (made by tools/compat.py page): one line per tested mod, coloured by result */
.works { --tone: var(--good); } .note { --tone: var(--warn); } .clash { --tone: var(--bad); }
.needed { --tone: var(--accent); } .next { --tone: var(--info); } .open { --tone: var(--muted); }
.mod-bar { display: flex; gap: 2px; height: 10px; max-width: 74ch; margin: 14px 0; border-radius: 5px; overflow: hidden; }
.mod-bar span { background: var(--tone); min-width: 4px; }
.mod-bar .open { opacity: .45; }
.mod-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 6px; }
.mod-filter button { font: 13px var(--body); color: var(--fg); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.mod-filter button .sign { color: var(--tone); font-weight: 700; }
.mod-filter button b { color: var(--muted); font-weight: 400; margin-left: 2px; }
.mod-filter button:hover { border-color: var(--fg); }
.mod-filter button[aria-pressed="true"] { background: var(--panel); border-color: var(--tone, var(--fg)); box-shadow: inset 0 0 0 1px var(--tone, var(--fg)); }
.mod-filter input { font: 13px var(--body); flex: 1; min-width: 140px; max-width: 220px; color: var(--fg); background: var(--panel); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; }
.mods, .mod-legend { list-style: none; padding-left: 0; max-width: 74ch; }
.mods li { display: grid; grid-template-columns: 172px 1fr; column-gap: 14px; align-items: start; padding: 9px 0 9px 12px; border-top: 1px solid var(--rule); box-shadow: inset 3px 0 0 var(--tone); }
.mods li[hidden] { display: none; }
.mods li > * { grid-column: 2; margin: 0; }
.mods li > .badge { grid-column: 1; grid-row: 1 / span 3; justify-self: start; }
.mods li p { font-size: 14px; margin-top: 2px; }
.mods li .meta, .mods details { font-size: 12.5px; color: var(--muted); }
.mods details { margin-top: 2px; }
.mods details summary { cursor: pointer; }
.mods details p { margin: 2px 0 0 14px; font-size: 12.5px; }
.mods li.open strong, .mods li.open strong a { color: var(--muted); font-weight: 400; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--tone); border: 1px solid var(--tone); border-radius: 999px; padding: 1px 10px 1px 4px; }
.badge .sign { display: inline-block; width: 16px; height: 16px; margin-right: 3px; border-radius: 50%; background: var(--tone); color: var(--bg); font: 700 11px/16px var(--body); text-align: center; vertical-align: 1px; }
.mod-legend li { margin: 8px 0; }
.mod-legend .badge { margin-right: 6px; }
@media (max-width: 560px) {
  .mods li { grid-template-columns: 1fr; }
  .mods li > *, .mods li > .badge { grid-column: 1; grid-row: auto; }
  .mods li > .badge { margin-bottom: 4px; }
}

/* NPC mods compared page (made by tools/gen_compared.py): a picker of mods, then one column per chosen mod */
.wrap.single.cmp-wrap { max-width: 1260px; }
.cmp-pick { margin: 26px 0 18px; }
.cmp-mods { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.cmp-mods li { display: flex; }
.cmp-mod { width: 100%; min-height: 54px; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; column-gap: 10px; row-gap: 4px; text-align: left; font: inherit; color: var(--fg); background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 7px 36px 7px 7px; cursor: pointer; position: relative; transition: border-color .15s var(--ease), background .15s var(--ease); }
.cmp-mod img { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 8px; flex: none; object-fit: cover; filter: grayscale(.7) brightness(.75); transition: filter .2s var(--ease); }
.cmp-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cmp-l1 b { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-l2 { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--muted); line-height: 1.4; }
.cmp-l1 small { flex: none; color: var(--muted); font-size: 12px; }
.cmp-tag { display: inline-block; flex: none; margin: 0; font: 700 11px/1.5 var(--body); font-style: normal; color: var(--info); background: color-mix(in srgb, var(--info) 13%, transparent); border-radius: 999px; padding: 0 7px; }
.cmp-tag.warn { color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.st-works { --tone: var(--good); } .st-trouble { --tone: var(--warn); } .st-broken { --tone: var(--bad); } .st-abandoned { --tone: var(--muted); }
.cmp-upd.cmp-old { color: var(--warn); }
.cmp-mod::after { content: ''; position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule); font: 800 11px/18px var(--body); text-align: center; color: var(--on-accent); }
.cmp-mod:hover { border-color: var(--muted); }
.cmp-mod:hover img { filter: none; }
.cmp-mod[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); }
.cmp-mod[aria-pressed="true"] img { filter: none; }
.cmp-mod[aria-pressed="true"]::after { content: '✓'; background: var(--accent); box-shadow: none; }
.cmp-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; margin-top: 14px; align-items: center; }
.cmp-wishes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cmp-wishes > span { font-size: 13px; color: var(--muted); margin-right: 4px; }
.cmp-wish { font: 13px var(--body); color: var(--fg); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.cmp-wish:hover { border-color: var(--accent); color: var(--accent); }
.cmp-actions { display: flex; align-items: center; gap: 16px; }
.cmp-actions .status { font-size: 13px; color: var(--muted); }
.cmp-link { font: 700 13.5px var(--body); color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.cmp-link:hover { color: var(--accent-hi); }
.cmp-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; position: relative; }
.cmp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmp-switch span { width: 32px; height: 18px; border-radius: 9px; background: var(--rule); position: relative; transition: background .15s; }
.cmp-switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg); transition: transform .15s var(--ease); }
.cmp-switch input:checked + span { background: var(--accent); }
.cmp-switch input:checked + span::after { transform: translateX(14px); background: var(--on-accent); }
.cmp-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmp-verdict { --tone: var(--muted); display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 12px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--tone) 40%, var(--rule)); border-left: 4px solid var(--tone); border-radius: var(--radius); background: color-mix(in srgb, var(--tone) 9%, var(--raised)); }
.cmp-verdict[hidden] { display: none; }
.cmp-verdict .mk { flex: none; width: 30px; height: 30px; font-size: 16px; color: var(--tone); background: color-mix(in srgb, var(--tone) 18%, transparent); }
.cmp-verdict strong { display: block; font: 22px/1.15 var(--display); font-weight: 400; letter-spacing: .02em; color: var(--tone); }
.cmp-verdict p { margin: 3px 0 0; font-size: 14px; color: var(--fg); }
.cmp-none { color: var(--muted); border: 1px dashed var(--rule); border-radius: var(--radius); padding: 28px; text-align: center; }
.cmp-table { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--raised); margin: 8px 0 26px; }
.cmp-table[hidden], .cmp-table [hidden] { display: none; }
.cmp-table table { table-layout: fixed; width: max(100%, calc(210px + var(--n, 11) * 210px)); font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 11px 15px; border-bottom: 1px solid var(--rule); text-transform: none; letter-spacing: 0; white-space: normal; }
.cmp-table td, .cmp-table thead th[data-mod] { border-left: 1px solid var(--rule); }
.cmp-table thead th { background: var(--raised); color: var(--fg); vertical-align: bottom; padding-top: 18px; padding-bottom: 16px; }
.cmp-table tbody th, .cmp-corner { width: 210px; position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; }
.cmp-table tbody th { font: 600 14px/1.4 var(--body); color: var(--muted); }
.cmp-table tr.group th { position: static; font: 21px/1 var(--display); letter-spacing: .03em; color: var(--accent); background: var(--bg); padding-top: 20px; }
.cmp-table tbody tr:not(.group):hover th, .cmp-table tbody tr:not(.group):hover td { background-color: color-mix(in srgb, var(--fg) 3%, var(--raised)); }
.cmp-table tbody tr:not(.group):hover th { background-color: color-mix(in srgb, var(--fg) 3%, var(--panel)); }
.cmp-head { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; position: relative; font-size: 14px; font-weight: 400; }
.cmp-head img { width: 88px; height: 88px; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 8px 22px var(--shade); }
.cmp-head b { font: 23px/1.08 var(--display); font-weight: 400; letter-spacing: .02em; }
.cmp-head small { font-size: 12.5px; color: var(--muted); }
.cmp-head .button { margin-top: 10px; padding: 7px 12px; font-size: 13px; }
.cmp-x { position: absolute; top: -8px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); background: var(--panel); color: var(--muted); font: 16px/1 var(--body); cursor: pointer; }
.cmp-x:hover { color: var(--fg); border-color: var(--fg); }
.cmp-stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; margin-top: 2px; }
.cmp-stars i { color: var(--rule); font-style: normal; }
.mk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 14px/1 var(--body); vertical-align: middle; }
.mk.y { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.mk.p { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.mk.n { color: var(--muted); opacity: .6; }
.mk.u { color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule); font-size: 12px; }
.cmp-table td small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cmp-table td ul { margin: 0; padding-left: 16px; }
.cmp-table td li { margin: 3px 0; font-size: 13.5px; line-height: 1.4; }
.cmp-table td p { margin: 0; }
.cmp-table tr.cmp-likes li::marker { color: var(--good); }
.cmp-table tr.cmp-minds li::marker { color: var(--bad); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.cmp-legend .mk { width: 20px; height: 20px; font-size: 12px; margin-right: -3px; }
.cmp-self { color: var(--accent); font-weight: 700; }
.cmp-notes { max-width: 74ch; }
.cmp-notes li { margin: 6px 0; }
.hv { display: inline-block; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 1px 10px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.ai-yes, .ai-tr { --tone: var(--info); } .ai-no, .ai-unknown { --tone: var(--muted); }
.cmp-mods li[hidden] { display: none; }
.hv-light { --tone: var(--good); } .hv-medium { --tone: var(--warn); } .hv-heavy { --tone: var(--bad); } .hv-unknown { --tone: var(--muted); }
.cmp-bar { position: fixed; z-index: 20; overflow: hidden; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px var(--shade); }
.cmp-bar[hidden] { display: none; }
.cmp-bar-in { display: flex; will-change: transform; }
.cmp-bar-in > span { flex: none; display: flex; align-items: center; gap: 9px; padding: 8px 15px; min-width: 0; }
.cmp-bar-lab { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 15px; background: var(--panel); border-right: 1px solid var(--rule); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cmp-bar-mod { border-left: 1px solid var(--rule); }
.cmp-bar-mod img { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.cmp-bar-mod b { font: 16px/1.1 var(--display); font-weight: 400; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-pairs { margin: 30px 0 10px; }
.cmp-pairs h2, .cmp-notes h2 { font: 30px/1.1 var(--display); font-weight: 400; letter-spacing: .02em; margin: 34px 0 8px; }
.cmp-sub { color: var(--muted); max-width: 70ch; margin: 0 0 12px; }
.cmp-pairs-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.cmp-pairs-sum b { font-weight: 800; color: var(--tone); }
.cmp-pair-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 8px; }
.cmp-pair-list li { --tone: var(--muted); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; background: var(--raised); border: 1px solid var(--rule); border-left: 3px solid var(--tone); border-radius: var(--radius); padding: 11px 14px; }
.cmp-pair-list li[hidden] { display: none; }
.cmp-pair-list p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cmp-pair-mods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; }
.cmp-pair-mods img { width: 30px; height: 30px; border-radius: 6px; }
.cmp-pair-mods .plus { color: var(--muted); font: 18px/1 var(--display); margin: 0 2px; }
.cmp-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--tone); white-space: nowrap; }
.cmp-st .mk { width: 22px; height: 22px; font-size: 12px; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); }
.st-no { --tone: var(--bad); } .st-risky { --tone: var(--warn); } .st-patch { --tone: var(--info); }
.st-need { --tone: var(--accent); } .st-yes { --tone: var(--good); } .st-unknown { --tone: var(--muted); }
.cmp-withs { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp-rf { display: inline-flex; align-items: center; gap: 7px; font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
.cmp-rf-i { flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .5; }
.cmp-rf:hover, .cmp-rf:focus-visible, .cmp-rf[aria-expanded="true"] { color: var(--fg); }
.cmp-rf:hover .cmp-rf-i, .cmp-rf[aria-expanded="true"] .cmp-rf-i { opacity: 1; }
.cmp-rf.on, .cmp-rf.sorted { color: var(--accent); }
.cmp-rf.on .cmp-rf-i, .cmp-rf.sorted .cmp-rf-i { opacity: 1; }
.cmp-pop { position: absolute; z-index: 30; width: min(290px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); padding: 10px 12px; font-size: 14px; }
.cmp-pop-h { margin: 0 0 6px; font: 700 11.5px var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cmp-pop-list { display: grid; gap: 1px; max-height: min(320px, 50vh); overflow-y: auto; }
.cmp-pop-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 6px 5px; border-radius: 6px; cursor: pointer; color: var(--fg); }
.cmp-pop-opt:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.cmp-pop-opt input { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; }
.cmp-pop-opt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.cmp-pop-empty { color: var(--muted); margin: 4px; font-size: 13px; }
.cmp-pop-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 9px; }
.cmp-fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0 0; min-height: 28px; font-size: 13.5px; color: var(--muted); }
.cmp-fbar[hidden] { display: none; }
.cmp-fbar-n { color: var(--fg); font-weight: 700; }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.3 var(--body); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px; padding: 3px 10px; cursor: pointer; text-align: left; }
.cmp-chip:hover, .cmp-chip:focus-visible { border-color: var(--accent); }
.cmp-chip span { font-size: 11px; opacity: .8; }
.cmp-with { display: inline-flex; align-items: center; gap: 4px; font: 600 12.5px/1.3 var(--body); color: var(--fg); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 2px 9px 2px 4px; cursor: pointer; text-align: left; }
.cmp-with .mk { width: 16px; height: 16px; font-size: 10px; flex: none; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); }
.cmp-with:hover, .cmp-with:focus-visible { border-color: var(--tone); }
.cmp-with.on { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); }
.cmp-stats { margin: 26px 0 10px; }
.cmp-stats[hidden], .cmp-notes[hidden], .cmp-pairs[hidden], .cmp-pick[hidden] { display: none; }
.cmp-stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.cmp-stats-head h2 { font: 30px/1.1 var(--display); font-weight: 400; letter-spacing: .02em; margin: 0; }
.cmp-range { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--panel); }
.cmp-range button { font: 700 13px var(--body); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.cmp-range button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.cmp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 14px 0; }
.cmp-kpi { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px; }
.cmp-kpi span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmp-kpi b { display: block; font: 34px/1.1 var(--display); font-weight: 400; margin-top: 6px; overflow-wrap: anywhere; }
.cmp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 10px; margin-bottom: 18px; }
.cmp-card { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px 12px; min-width: 0; }
.cmp-card h3 { margin: 0 0 10px; font-size: 15px; }
.cmp-card.st-wide { grid-column: 1 / -1; }
.st-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; border-bottom: 1px solid var(--rule); }
.st-col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 3px; max-width: 34px; }
.st-col i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; }
.st-col:hover i { background: var(--accent-hi); }
.st-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.st-bars { list-style: none; padding: 0; margin: 0; }
.st-bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.st-lab { display: flex; align-items: center; gap: 6px; min-width: 0; }
.st-lab > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-lab img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.st-bar { height: 8px; border-radius: 4px; background: var(--panel); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.st-bars b { font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.st-bars .st-empty { display: block; color: var(--muted); }
.st-fresh-sum { margin: -4px 0 8px; font-size: 14px; color: var(--muted); }
.st-fresh { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2px 18px; }
.st-fresh li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.st-fresh li small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); padding-left: 28px; }
.fr-fine { --tone: var(--good); } .fr-maybe { --tone: var(--warn); } .fr-recheck, .fr-gone { --tone: var(--bad); }
@media (max-width: 640px) {
  .cmp-mods { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 6px; }
  .cmp-mod { min-height: 48px; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; }
  .cmp-mod { padding: 6px 24px 6px 6px; gap: 8px; }
  .cmp-mod img { width: 32px; height: 32px; }
  .cmp-l1 b { font-size: 13px; }
  .cmp-l1 small { display: none; }
  .cmp-mod::after { right: 6px; width: 14px; height: 14px; margin-top: -7px; font-size: 9px; line-height: 14px; }
  .cmp-actions { flex-wrap: wrap; gap: 10px 16px; }
  .cmp-table table { width: max(100%, calc(100px + var(--n, 11) * 120px)); font-size: 13px; }
  .cmp-table tbody th, .cmp-corner { width: 100px; font-size: 12.5px; padding: 9px; }
  .cmp-table th, .cmp-table td { padding: 9px; }
  .cmp-table tr.group th { font-size: 18px; }
  .cmp-head .button { padding: 6px 9px; font-size: 12px; }
  .cmp-x { right: -4px; top: -6px; width: 22px; height: 22px; font-size: 14px; }
  .cmp-head img { width: 52px; height: 52px; margin-bottom: 6px; }
  .cmp-head b { font-size: 17px; }
  .cmp-legend { font-size: 11.5px; }
  .cmp-pair-list { grid-template-columns: 1fr; }
  .cmp-stat-grid { grid-template-columns: 1fr; }
  .st-fresh { grid-template-columns: 1fr; }
  .cmp-kpis { grid-template-columns: 1fr 1fr; }
  .cmp-kpi b { font-size: 26px; }
  .cmp-bar-in > span { padding: 6px 9px; gap: 6px; }
  .cmp-bar-lab { font-size: 0; padding: 0; }
  .cmp-bar-mod img { width: 22px; height: 22px; }
  .cmp-bar-mod b { font-size: 13.5px; }
}

/* Wish board on the roadmap page (wishes.js) */
#wish-form label { display: block; font-weight: 700; margin-bottom: 4px; }
#wish-form textarea { display: block; width: 100%; max-width: 74ch; box-sizing: border-box; font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 8px 10px; resize: vertical; }
#wish-form .wish-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#wish-form .wish-send { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
#wish-form button.button { border: 0; cursor: pointer; }
#wish-form button[disabled] { opacity: .6; cursor: default; }
.wish-list { list-style: none; padding-left: 0; max-width: 74ch; }
.wish-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--rule); }
.wish-list .wish-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wish-list .wish-text p { margin: 2px 0; }
.wish-vote { flex: none; min-width: 56px; font: 700 14px var(--body); color: var(--fg); background: none; border: 1px solid var(--rule); border-radius: 3px; padding: 5px 8px; text-align: center; cursor: pointer; }
.wish-vote:hover { border-color: var(--fg); }
.wish-vote[aria-pressed=true] { background: var(--good); border-color: var(--good); color: var(--bg); }
.wish-vote.wish-new { cursor: default; color: var(--accent); border-color: var(--accent); }
.wish-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wish-waiting { border-left: 4px solid var(--accent); background: var(--panel); padding: 6px 14px 12px; margin: 14px 0; max-width: 74ch; }
.wish-waiting h3 { margin: 6px 0; }


/* Narrower screens */
@media (max-width: 1240px) {
  .layout { grid-template-columns: 224px minmax(0, 1fr); gap: 40px; }
  .toc { display: none; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .hero h1 { font-size: 80px; }
  .toc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .top-links { display: none; }
  .search-wrap { margin-left: auto; }
  body:not(:has(#sidebar)) .top-links { display: flex; overflow-x: auto; scrollbar-width: none; }
  body:not(:has(#sidebar)) .top-links a { padding: 7px 8px; font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 640px) {
  body:not(:has(#sidebar)) .brand-name, body:not(:has(#sidebar)) .brand-sub, body:not(:has(#sidebar)) .topbar .button { display: none; }
  body:not(:has(#sidebar)) .top-links { margin-left: 0; }
  b.ui { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}
@media (max-width: 900px) {
  :root { --top: 56px; }
  .layout { display: block; padding: 0 16px; }
  .menu-toggle { display: inline-grid; margin-left: -6px; }
  .brand-sub { display: none; }
  .search-wrap { margin-left: 4px; }
  .search-wrap kbd { display: none; }
  .topbar-in { padding: 0 12px 0 16px; gap: 8px; }
  .topbar .dl-text { display: none; }
  .topbar .button { padding: 9px 11px; }
  .sidebar { position: fixed; top: var(--top); left: 0; bottom: auto; align-self: auto; height: calc(100vh - var(--top)); height: calc(100dvh - var(--top));
    width: min(300px, 86vw); max-height: none; z-index: 25; overscroll-behavior: contain;
    background: var(--bg); border-right: 1px solid var(--rule); padding: 18px 12px 30px; transform: translateX(-102%);
    transition: transform .2s ease; visibility: hidden; }
  .menu-open .sidebar { transform: none; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .search-results { position: fixed; top: calc(var(--top) + 4px); left: 12px; right: 12px; width: auto; }
  .menu-open .side-backdrop { display: block; position: fixed; inset: var(--top) 0 0 0; background: var(--shade); z-index: 24; }
  main { padding-top: 24px; }
  h1 { font-size: 46px; }
  .lede { font-size: 17px; }
  article > h2 { font-size: 29px; margin-top: 38px; }
  .home .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 6px; }
  .home .hero h1 { font-size: 66px; }
  .home .hero-lede { font-size: 17.5px; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .split { grid-template-columns: 1fr; }
  .pillars, .quick, .toc-groups { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  th, td { padding: 8px 10px; }
  .log h1 { font-size: 44px; }
  .log article { padding: 4px 16px 10px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
@media print {
  .topbar, .sidebar, .toc, .pager, .side-backdrop, .list-tools, .site-foot { display: none !important; }
  .layout { display: block; }
  main > article[hidden] { display: block !important; }
  article { max-width: none; page-break-before: always; }
  article details > :not(summary) { display: block; }
}

/* ---- SettleZ look: everything below overrides the parts above ---- */
html { overflow-x: clip; }
body { font: 400 18px/1.55 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-hi); text-decoration-color: rgba(255, 208, 138, .45); transition: color .2s; }
a:hover { color: #fff; text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }
h1, article > h2, h3, .sidebar h2 { font-family: var(--display); }
h1 { font: 800 clamp(38px, 4vw, 54px)/1.05 var(--display); letter-spacing: -.018em; text-wrap: balance; }
article > h2 { font: 700 29px/1.15 var(--display); letter-spacing: -.012em; margin: 44px 0 12px; border: 0; }
h3 { font: 700 20px/1.3 var(--display); }
strong { font-weight: 700; }
.lede { font-size: 20px; line-height: 1.5; color: #dfe2e0; }
.eyebrow { font: 600 16px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 8px; }
article { max-width: 800px; }
b.ui { font-weight: 600; background: var(--raised); border-color: var(--rule); color: var(--fg); }
kbd { background: var(--raised); color: var(--fg); border-color: var(--rule); font-size: 14px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); background: rgba(11, 17, 22, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.topbar-in { height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.brand { font: 800 30px/1 var(--display); letter-spacing: -.02em; color: var(--fg); text-decoration: none; flex: none; }
.brand b { color: var(--accent); font-weight: 800; }
.brand:hover { color: var(--fg); }
.top-links { display: flex; gap: clamp(12px, 1.6vw, 24px); margin: 0; }
.top-links a { color: var(--muted); font-weight: 600; font-size: 17px; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.top-links a:hover, .top-links a[aria-current="page"] { color: var(--fg); }
.menu-toggle { display: none; font: 600 16px/1 var(--body); color: var(--fg); background: var(--raised); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; cursor: pointer; }

/* search */
.search-wrap { position: relative; flex: 0 1 300px; margin-left: auto; }
.search-wrap input { width: 100%; height: 46px; font: 17px var(--body); color: var(--fg); background: var(--raised); border: 1px solid var(--rule); border-radius: 999px; padding: 0 18px 0 44px; transition: border-color .2s, background .2s; }
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { outline: 0; border-color: var(--accent); background: #212c36; }
.search-wrap .search-icon { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 8px); right: 0; left: auto; width: min(560px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 24px 60px -12px #000; padding: 6px; z-index: 40; }
.search-results a { display: block; padding: 11px 13px; border-radius: 9px; color: var(--fg); text-decoration: none; }
.search-results a .where { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.search-results a .what { display: block; font-weight: 700; }
.search-results a .snip { display: block; font-size: 15.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results a[aria-selected="true"], .search-results a:hover { background: var(--raised); }
.search-results mark { background: none; color: var(--accent-hi); font-weight: 700; }
.search-results .none { padding: 12px; color: var(--muted); font-size: 16px; }

/* buttons */
.button { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px; font: 700 16px/1 var(--body); padding: 13px 18px; transition: background .2s; }
.button:hover { background: var(--accent-hi); color: var(--on-accent); filter: none; }
.topget { margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 12px; font-weight: 700; font-size: 18px; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn.go { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px -8px rgba(245, 185, 95, .55); }
.btn.go:hover { background: var(--accent-hi); color: var(--on-accent); transform: translateY(-2px); }
.btn.quiet { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
.btn.quiet:hover { background: rgba(255, 255, 255, .1); color: var(--fg); transform: translateY(-2px); }

/* reading pages */
.layout { max-width: 1440px; padding: 0 var(--gutter); grid-template-columns: 250px minmax(0, 1fr) 220px; gap: clamp(28px, 3.4vw, 56px); }
.sidebar h2 { font: 700 15px/1.2 var(--display); letter-spacing: 0; text-transform: none; color: var(--muted); margin: 20px 0 5px 12px; }
.sidebar a { font-size: 16.5px; padding: 6px 12px; border-radius: 9px; color: var(--fg); transition: background .15s; }
.sidebar a:hover { background: var(--panel); color: var(--fg); }
.sidebar a[aria-current="page"] { background: var(--tint); color: var(--accent-hi); font-weight: 600; box-shadow: none; }
.toc h2 { font: 700 15px/1.2 var(--display); letter-spacing: 0; text-transform: none; }
.toc a { font-size: 15.5px; color: var(--muted); }
.toc a.active { color: var(--accent-hi); border-left-color: var(--accent); font-weight: 600; }
main { padding: 36px 0 70px; }
.glance { background: var(--panel); border: 0; border-radius: 14px; padding: 18px 22px 16px; }
.glance-title { font: 700 16px/1.2 var(--display) !important; letter-spacing: 0; text-transform: none; color: var(--accent-hi); }
ol.steps > li::before { font: 700 17px/30px var(--display); }
details { border-color: var(--rule); }
.table { border-color: var(--rule); border-radius: 12px; }
th { font-weight: 700; }
td a { font-weight: 600; }
tr.hit td { background: var(--tint); }
table { font-size: 16.5px; }
th { font-size: 13px; }
td:has(> img.ri) { position: relative; padding-left: 58px; min-width: 190px; font-weight: 700; }
img.ri { position: absolute; left: 12px; top: 8px; width: 36px; height: 36px; image-rendering: pixelated; object-fit: contain; }
article p, article li { max-width: 680px; }
.room-card p, .room-card li, .room-sheet p, .glance li { max-width: none; }
.list-tools input { font-size: 17px; height: 46px; background: var(--raised); border: 1px solid var(--rule); border-radius: 10px; color: var(--fg); padding: 0 14px; }
.pager a { border-color: var(--rule); border-radius: 12px; transition: background .2s; }
.pager a:hover { background: var(--panel); }

/* room pages */
.room-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 8px; }
.room-sheet section { background: var(--panel); border-radius: 14px; padding: 16px 18px 12px; }
.room-sheet .wide { grid-column: 1 / -1; }
.room-sheet p { margin: 8px 0 4px; }
.rs-h { font: 700 15px/1.2 var(--body); color: var(--muted); margin: 0 0 9px; }
.see-also { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.see-also li { margin: 0; }
.see-also a { display: block; background: var(--panel); padding: 11px 16px; border-radius: 10px; color: var(--fg); text-decoration: none; font-weight: 600; transition: background .2s; }
.see-also a:hover { background: var(--raised); color: var(--accent-hi); }
.things { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.things li { margin: 0; max-width: none; }
.thing { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 84px; min-height: 88px; background: var(--raised); border-radius: 12px; padding: 8px 2px 7px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.15; color: var(--fg); text-decoration: none; transition: background .2s; }
a.thing:hover { background: #26323d; color: var(--accent-hi); }
.thing img { height: 42px; width: 50px; object-fit: contain; }
.room-sheet .thing { background: var(--raised); }
.guide-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guide-list li { margin: 0; max-width: none; }
.guide-list a { display: block; height: 100%; background: var(--panel); border-radius: 12px; padding: 14px 16px; color: var(--fg); text-decoration: none; transition: background .2s; }
.guide-list a:hover { background: var(--raised); }
.guide-list strong { display: block; font: 700 19px/1.2 var(--display); }
.guide-list span { display: block; color: var(--muted); font-size: 16px; line-height: 1.35; margin-top: 3px; }
.list-page, .list-page ~ article { max-width: 1000px; }

/* a room's complete list: one folded line per kind */
.count-line { font-size: 19px; }
.count-line strong { color: var(--accent-hi); }
article > h3.count-h { font: 700 21px/1.25 var(--display); margin: 28px 0 2px; }
.count-h + p { margin: 0 0 10px; color: var(--muted); }
details.kind { display: block; width: 100%; max-width: none; background: var(--panel); border: 0; border-radius: 12px; margin: 6px 0; padding: 0; overflow: hidden; white-space: normal; }
details.kind > summary > span { min-width: 0; }
details.kind > summary { display: flex; align-items: center; gap: 12px; padding: 8px 40px 8px 12px; min-height: 60px; cursor: pointer; list-style: none; position: relative; transition: background .2s; }
details.kind > summary::-webkit-details-marker { display: none; }
details.kind > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; color: var(--accent); font: 700 20px/1 var(--body); }
details.kind[open] > summary::after { content: "\2212"; }
details.kind > summary:hover { background: var(--raised); }
details.kind > summary img, details.kind .noicon { width: 44px; height: 44px; object-fit: contain; flex: none; }
details.kind > summary b { display: block; font-weight: 700; font-size: 18px; line-height: 1.25; }
details.kind > summary small { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.3; font-weight: 400; }
.pieces { list-style: none; margin: 0; padding: 6px 10px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px; }
.pieces li { display: block; min-width: 0; overflow-wrap: anywhere; margin: 0; max-width: none; background: var(--raised); border-radius: 10px; padding: 8px 4px 7px; font-size: 14.5px; line-height: 1.2; text-align: center; }
.pieces img { display: block; width: 64px; height: 64px; margin: 0 auto 4px; object-fit: contain; }
.pieces.items img { width: 48px; height: 48px; image-rendering: pixelated; }
.pieces .noicon { display: block; width: 48px; height: 48px; margin: 0 auto 4px; }

.prof-icon { display: block; width: 72px; height: 72px; image-rendering: pixelated; margin: 0 0 6px; }
ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin: 5px 0; max-width: none; }
a.kind-link { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: 12px; margin: 6px 0; padding: 8px 16px 8px 12px; min-height: 60px; color: var(--fg); text-decoration: none; transition: background .2s; }
a.kind-link:hover { background: var(--raised); color: var(--fg); }
a.kind-link img, a.kind-link .noicon { width: 44px; height: 44px; object-fit: contain; flex: none; image-rendering: pixelated; }
a.kind-link b { display: block; font-size: 18px; line-height: 1.25; }
a.kind-link small { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.3; }

/* the home page takes the whole width */
.on-home .layout { display: block; max-width: none; padding: 0; }
/* A page with no "on this page" (the list pages) takes the empty column for its tables. */
@media (min-width: 1241px) { body:not(.on-home) .layout:has(.toc:empty) { grid-template-columns: 250px minmax(0, 1fr) 0; } }
.on-home .sidebar, .on-home .toc, .on-home .pager { display: none; }
.on-home main { padding: 0; }
.home { max-width: none; }
.hhero { position: relative; display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 1fr); align-items: stretch; min-height: 640px; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); }
.hhero::before { content: ""; position: absolute; right: 0; top: -8%; width: 74%; aspect-ratio: 1.5; background: radial-gradient(closest-side, rgba(245, 185, 95, .11), transparent); pointer-events: none; }
.side-col { position: relative; z-index: 3; padding-block: 8px; }
.enhanced .side-col { display: grid; }
.enhanced .side-col > * { grid-area: 1 / 1; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.enhanced .side-col > [aria-hidden="true"] { opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; }
.pitch { align-self: center; }
.pitch .kicker { margin: 0 0 14px; color: var(--muted); font-weight: 600; font-size: 17px; }
.home h1 { font-size: clamp(44px, 4.5vw, 62px); line-height: 1.02; margin: 0; }
.pitch p.say { margin: 20px 0 26px; font-size: 20px; line-height: 1.45; color: #dfe2e0; max-width: 25em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.needs { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.room-card { align-self: center; background: rgba(20, 28, 35, .95); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 22px 20px; box-shadow: 0 30px 70px -30px #000; }
.room-card p, .room-card li { max-width: none; }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rc-top h2 { font: 800 36px/1.05 var(--display); letter-spacing: -.02em; margin: 0; }
.close { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; background: rgba(255, 255, 255, .08); border: 0; border-radius: 10px; color: var(--fg); font: 600 16px var(--body); cursor: pointer; transition: background .2s; }
.close:hover { background: rgba(255, 255, 255, .16); }
.rc-label { margin: 14px 0 7px; font-size: 15px; font-weight: 700; color: var(--muted); }
.note { margin: 7px 0 0; font-size: 16px; line-height: 1.35; color: #dfe2e0; }
.get-text { margin: 0; font-size: 16.5px; line-height: 1.38; }
.rc-go { margin-top: 14px; width: 100%; min-height: 52px; }
.stage { position: relative; z-index: 1; margin-left: -3%; min-width: 0; align-self: center; overflow: clip; padding-bottom: 34px; }
.stage.zoomed { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 7%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.scene { position: relative; width: 100%; aspect-ratio: var(--aspect); user-select: none; transform-origin: 0 0; transition: transform .85s var(--ease); --z: 1; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.layer { transition: opacity .55s var(--ease); }
.layer.room { opacity: 0; }
.layer.room.on { opacity: 1; filter: brightness(1.06); }
.layer.room.peek { opacity: .72; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene polygon { fill: transparent; stroke: transparent; stroke-width: .25; vector-effect: non-scaling-stroke; cursor: pointer; transition: stroke .2s, fill .2s; outline: 0; }
.scene:not(.zoomed) polygon:hover, .scene:not(.zoomed) polygon.hover { fill: rgba(255, 208, 138, .14); stroke: var(--accent-hi); stroke-width: 2; }
.scene.zoomed polygon.peeking { fill: rgba(255, 208, 138, .1); }
.pin { position: absolute; transform: translate(-50%, -50%) scale(calc(1 / var(--z))); z-index: 2; background: rgba(9, 14, 18, .62); color: var(--fg); border: 0; border-radius: 999px; padding: 7px 13px; font: 600 15px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, transform .85s var(--ease), opacity .3s; backdrop-filter: blur(2px); }
.pin:hover, .pin.hover { background: var(--accent-hi); color: var(--on-accent); opacity: 1 !important; }
.scene.zoomed .pin { opacity: .72; }
.pin.on { opacity: 0 !important; pointer-events: none; }
.house-tip { position: absolute; left: 0; right: 0; bottom: 4px; margin: 0; text-align: center; z-index: 2; color: var(--muted); font-weight: 500; font-size: 17px; transition: opacity .3s; pointer-events: none; max-width: none; }
.chips-wrap { display: none; }

/* shelves */
.home .shelf, .trio { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.home .shelf { padding-block: clamp(22px, 2.8vw, 38px); }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shelf-head h2 { font: 700 clamp(27px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.all { color: var(--fg); font-weight: 600; white-space: nowrap; padding: 8px 0; text-decoration: none; }
.all:hover { color: var(--accent-hi); }
.all::after { content: " \2192"; }
.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.guides li { margin: 0; max-width: none; }
.guide { display: block; position: relative; border-radius: 14px; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 10; color: #fff; text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); transition: transform .3s var(--ease), box-shadow .3s; }
.guide img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.guide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 10, 13, .95) 6%, rgba(6, 10, 13, .55) 38%, transparent 66%); }
.guide span { position: absolute; left: 16px; right: 16px; bottom: 13px; z-index: 1; font: 700 21px/1.12 var(--display); letter-spacing: -.01em; }
.guide:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 18px 40px -18px #000, 0 0 0 2px var(--accent); }
.guide:hover img { transform: scale(1.05); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); padding-block: clamp(10px, 1.6vw, 22px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.tiles li { margin: 0; max-width: none; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 122px; padding: 14px 6px 10px; background: var(--panel); border-radius: 14px; text-align: center; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2; box-shadow: 0 0 0 1px rgba(255, 255, 255, .05); transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.tile img { width: 56px; height: 56px; object-fit: contain; image-rendering: pixelated; transition: transform .25s var(--ease); }
.tile:hover { background: var(--raised); color: var(--fg); transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent); }
.tile:hover img { transform: scale(1.08); }
.rooms-grid img { image-rendering: auto; }
.rooms-grid, .prof-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.trouble { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; background: var(--panel); border-radius: 18px; padding: 24px 28px; }
.trouble h2 { font: 700 27px/1.1 var(--display); letter-spacing: -.01em; margin: 0 auto 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li { margin: 0; }
.pills a { display: block; padding: 12px 18px; border-radius: 10px; background: var(--raised); color: var(--fg); font-weight: 600; font-size: 17px; text-decoration: none; transition: background .2s, color .2s; }
.pills a:hover { background: var(--accent); color: var(--on-accent); }

/* foot */
.site-foot { margin-top: 18px; border-top: 1px solid var(--rule); background: none; }
.site-foot > div { max-width: none; padding: 26px var(--gutter) 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; color: var(--muted); font-size: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 600; }
.site-foot a { color: var(--fg); text-decoration: none; }
.site-foot a:hover { color: var(--accent-hi); }
.site-foot p { margin: 0; }
.site-foot .made { margin-left: auto; }
.site-foot .ai { flex-basis: 100%; font-size: 15px; }

/* side pages */
.wrap.single { max-width: 900px; padding-inline: var(--gutter); }

/* narrow */
@media (max-width: 1240px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .tiles:not(.rooms-grid):not(.prof-grid) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .top-links a { font-size: 16px; }
}
@media (max-width: 1000px) {
  .hhero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 16px; padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .side-col { order: 2; padding-block: 0; }
  .stage { order: 1; margin: 0 calc(-1 * var(--gutter)) -44px; padding-bottom: 0; }
  .stage.zoomed { -webkit-mask-image: none; mask-image: none; }
  .hhero::before { width: 100%; }
  .pin, .house-tip { display: none; }
  .chips-wrap { display: block; order: 3; }
  .chips-head { font: 700 26px/1.1 var(--display); margin: 6px 0 12px; }
  .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
  .chips li { margin: 0; }
  .chips button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; background: var(--panel); border: 0; border-radius: 12px; padding: 6px 12px; color: var(--fg); font: 600 17px var(--body); text-align: left; cursor: pointer; transition: background .2s, color .2s; }
  .chips button img { width: 38px; height: 38px; object-fit: contain; flex: none; }
  .chips button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
  .pitch p.say { margin: 14px 0 20px; }
  .actions .btn { flex: 1 1 220px; }
}
@media (max-width: 900px) {
  :root { --top: 62px; }
  .topbar-in { gap: 10px; }
  .top-links { display: none; }
  body:not(:has(#sidebar)) .top-links { display: none; }
  .menu-toggle { display: block; }
  .search-wrap { flex: 1 1 auto; margin-left: 0; min-width: 0; }
  .search-wrap input { height: 42px; padding-left: 38px; font-size: 16px; }
  .search-wrap .search-icon { left: 13px; }
  .search-results { position: fixed; top: calc(var(--top) + 4px); left: 12px; right: 12px; width: auto; }
  .topget { margin-left: auto; padding: 12px 14px; font-size: 15px; }
  .layout, .on-home .layout { display: block; padding: 0 16px; }
  .on-home .layout { padding: 0; }
  .on-home .sidebar { display: block; }
  .sidebar { position: fixed; top: var(--top); left: 0; height: calc(100vh - var(--top)); width: min(320px, 88vw); max-height: none; z-index: 25; overscroll-behavior: contain; background: var(--panel); border-right: 1px solid var(--rule); padding: 18px 12px 30px; transform: translateX(-102%); transition: transform .25s var(--ease); visibility: hidden; overflow-y: auto; }
  .menu-open .sidebar { transform: none; visibility: visible; }
  .menu-open .side-backdrop { display: block; position: fixed; inset: var(--top) 0 0 0; background: var(--shade); z-index: 20; }
  .site-foot .made { margin-left: 0; }
  .room-sheet { grid-template-columns: minmax(0, 1fr); }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 17.5px; }
  .brand { font-size: 26px; }
  .tiles:not(.rooms-grid):not(.prof-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { min-height: 112px; font-size: 15.5px; padding: 12px 4px 9px; }
  .tile img { width: 48px; height: 48px; }
  .guides { gap: 10px; }
  .guide span { font-size: 17.5px; left: 11px; right: 11px; bottom: 9px; }
  .trouble { padding: 20px; }
  .trio { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media print {
  :root { color-scheme: light; --bg: #fff; --fg: #111; --muted: #444; --panel: #f3f3f3; --raised: #f3f3f3; --rule: #bbb; --accent-hi: #111; }
  .hhero, .trio, .guides, .tiles, .topbar { display: none !important; }
}
