/* Traditional reference-wiki layout: quiet navigation, readable articles and compact data. */
:root {
  --bg: #f6f6f6; --paper: #fff; --panel: #f8f9fa; --panel-2: #eaecf0;
  --line: #a2a9b1; --fg: #202122; --dim: #54595d; --mute: #62676b;
  --accent: #315d4e; --accent-hi: #2452a1; --newlink: #a33232;
  --plus: #21633a; --minus: #a33232; --mark: #edf3f8;
  --nav-hover: #eaecf0; --nav-selected: #e3eee8;
  --f-display: Arial, "Segoe UI", sans-serif;
  --f-body: Arial, "Segoe UI", sans-serif;
  --f-heading: "Linux Libertine", Georgia, "Times New Roman", serif;
  --f-mono: Consolas, monospace; --bar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1e21; --paper: #23272b; --panel: #292e33; --panel-2: #333a40;
    --line: #63717b; --fg: #eaecf0; --dim: #c8ccd1; --mute: #b0b7bd;
    --accent: #a6c5b6; --accent-hi: #9bc1ff; --newlink: #ffb6b0;
    --plus: #a4d3b1; --minus: #ffb6b0; --mark: #303d4a;
    --nav-hover: #292e33; --nav-selected: #2d4038;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--f-body); }
[hidden] { display: none !important; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.map-location-link { display: inline-block; font: 12px/1.4 var(--f-body); padding: 1px 5px; border: 1px solid var(--line); border-radius: 2px; white-space: nowrap; vertical-align: baseline; }
.location-map-destination { margin: 0 0 12px; }
.location-map-destination .map-location-link { padding: 5px 10px; font-size: 14px; }
button, input, select { font: inherit; color: inherit; }
code { font: .88em var(--f-mono); background: var(--panel); border: 1px solid var(--panel-2); padding: .05em .2em; overflow-wrap: anywhere; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 8px 16px; background: var(--paper); border: 1px solid var(--line); }
.skip:focus { top: 8px; }
.bar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 max(20px, env(safe-area-inset-left)); }
.bar-in { max-width: 1420px; min-height: var(--bar-h); margin: auto; display: flex; align-items: center; gap: 16px; }
.mark { display: flex; align-items: baseline; gap: 8px; color: var(--fg); white-space: nowrap; }
.mark:hover { text-decoration: none; }
.mark b { font: 25px var(--f-heading); }
.mark span { font-size: 15px; color: var(--dim); }
.search { flex: 1 1 300px; max-width: 390px; margin-left: auto; min-width: 0; }
.search input { width: 100%; padding: 7px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.search input::placeholder { color: var(--mute); }
.actions { display: flex; gap: 6px; }
.btn { display: inline-flex; align-items: center; padding: 6px 10px; font-size: 14px; background: var(--paper); color: var(--accent-hi); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; white-space: nowrap; }
.navbtn { display: none; }
.wrap { max-width: 1500px; margin: auto; display: grid; grid-template-columns: 256px minmax(0, 1fr); padding: 0 20px; }
.nav { position: sticky; top: var(--bar-h); align-self: start; max-height: calc(100vh - var(--bar-h)); overflow-y: auto; overscroll-behavior: contain; padding: 22px 16px 32px 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; scrollbar-gutter: stable; font-size: 14px; line-height: 1.45; }
.nav ul { margin: 0; padding: 0; list-style: none; }
.nav .top { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--panel-2); }
.nav .top a, .wiki-tools a { display: block; padding: 7px 10px; }
.nav a { border-radius: 4px; overflow-wrap: anywhere; }
.nav a:hover { background: var(--nav-hover); color: var(--fg); text-decoration: none; }
.nav details { margin-bottom: 4px; }
.nav summary { position: relative; display: block; list-style: none; cursor: pointer; color: var(--dim); font-weight: 700; padding: 9px 10px 9px 26px; border-radius: 4px; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::before { content: ""; position: absolute; top: 15px; left: 10px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.nav details[open] > summary::before { transform: rotate(45deg); }
.nav summary:hover { background: var(--nav-hover); }
.nav > details[open] > summary { color: var(--accent); }
.nav > details > summary > a { display: block; color: inherit; }
.nav > details > ul { margin: 3px 0 12px 12px; padding-left: 8px; border-left: 1px solid var(--panel-2); }
.nav li a { display: block; padding: 7px 8px 7px 26px; }
.nav a[aria-current="page"], .nav summary:has(> a[aria-current="page"]) { color: var(--fg); background: var(--nav-selected); font-weight: 700; box-shadow: inset 3px 0 var(--accent); }
.nav .nav-topic { margin: 0; }
.nav .nav-topic > summary { padding: 0 0 0 26px; font-weight: 400; }
.nav .nav-topic[open] > summary { font-weight: 600; }
.nav .nav-topic > summary::before { top: 13px; color: var(--mute); }
.nav .nav-topic > summary a { padding-left: 0; background: none; }
.nav .nav-topic > summary a[aria-current="page"] { box-shadow: none; }
.nav .nav-topic > ul, .nav .nav-group > ul { margin: 3px 0 8px 12px; padding-left: 8px; border-left: 1px solid var(--panel-2); }
.nav .nav-group > a { font-weight: 600; }
.topic-children { max-width: 48rem; margin: 24px 0; }
.md .topic-children .topic-label { margin: 0 0 10px; color: var(--dim); font-size: 14px; font-weight: 700; }
.md .topic-children ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); column-gap: 24px; list-style: none; padding: 0; margin: 0; }
.md .topic-children li { display: flex; min-width: 0; margin: 0; padding: 0; border-top: 1px solid var(--panel-2); }
.topic-children a { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 12px 10px; border-radius: 3px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.topic-children a::after { content: ""; flex: 0 0 6px; height: 6px; margin-right: 3px; border: solid var(--mute); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.topic-children a:hover { background: var(--panel); text-decoration: none; }
.topic-children a:hover::after { border-color: var(--accent-hi); }
.wiki-tools { border-top: 1px solid var(--panel-2); padding-top: 14px; margin-top: 18px; }
.wiki-tools p { margin: 0 10px 4px; color: var(--dim); font-size: 13px; }
main { min-width: 0; background: var(--paper); border-inline: 1px solid var(--line); padding: 30px 36px 60px; min-height: calc(100vh - var(--bar-h)); }
.page { max-width: 1120px; }
.crumbs { font-size: 13px; margin: 0 0 4px; color: var(--dim); }
h1 { font: 32px/1.25 var(--f-heading); border-bottom: 1px solid var(--line); margin: 0 0 22px; padding-bottom: 8px; overflow-wrap: anywhere; }
.page-heading { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin: 0 0 22px; padding-bottom: 8px; }
.page-heading h1 { flex: 1; min-width: 0; border: 0; margin: 0; padding: 0; }
.page-heading .wiki-edit-trigger { flex: 0 0 auto; }
h2 { font: 25px/1.3 var(--f-heading); }
.msg { max-width: 48rem; color: var(--dim); }
.toc { width: fit-content; max-width: 100%; border: 1px solid var(--line); background: var(--panel); margin: 0 0 20px; padding: 10px 16px; }
.toc p { font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; }
.toc a { font-size: 13px; }
.md > :not(.tablewrap):not(.tbar):not(pre) { max-width: 48rem; }
.md p { margin: 0 0 16px; }
.md h2, .reference > h2 { margin: 28px 0 12px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.md h3 { font: 700 18px/1.4 var(--f-display); margin: 22px 0 10px; }
.md h4 { font-size: 16px; margin: 18px 0 8px; }
.md ul, .md ol { padding-left: 1.5em; margin: 0 0 18px; }
.md li { margin: 0 0 7px; padding-left: .15em; }
.md li::marker { color: var(--mute); }
.md li > ul, .md li > ol { margin: 7px 0 2px; }
.md blockquote { border-left: 3px solid var(--line); padding-left: 16px; margin: 0 0 16px; color: var(--dim); }
.md pre { background: var(--panel); border: 1px solid var(--line); padding: 10px; overflow-x: auto; }
.md pre code { border: none; }
.md hr { border: none; border-top: 1px solid var(--line); }
.new { color: var(--newlink); }
.tablewrap { overflow-x: auto; margin: 8px 0 22px; max-width: 100%; }
/* Separate borders stay attached to moving headers, with no collapsed-border gaps. */
.tablewrap table { border-collapse: separate; border-spacing: 0; border-width: 0 1px 1px 0; }
.tablewrap th, .tablewrap td { border-width: 1px 0 0 1px; }
.item-table { table-layout: fixed; min-width: 920px; }
.item-table th:nth-child(1) { width: 18%; }
.item-table th:nth-child(2) { width: 10%; }
.item-table th:nth-child(3) { width: 11%; }
.item-table th:nth-child(4) { width: 12%; }
.item-table th:nth-child(5) { width: 12%; }
.item-table th:nth-child(6) { width: 8%; }
.item-table th:nth-child(7) { width: 29%; }
.item-table td { overflow-wrap: anywhere; }
.item-table td:nth-child(3), .item-table td:nth-child(6) { text-align: right; }
table { border-collapse: collapse; width: 100%; font: 14px/1.5 var(--f-display); font-variant-numeric: tabular-nums; border: 1px solid var(--line); }
th { background: var(--panel-2); color: var(--fg); padding: 7px 9px; text-align: left; vertical-align: bottom; border: 1px solid var(--line); }
th.sortable { padding: 0; }
th button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 5px; width: 100%; padding: 7px 9px; cursor: pointer; font-weight: 700; }
th button::after { content: "\2195"; opacity: .45; font-size: 11px; }
th[aria-sort="ascending"] button::after { content: "\25B2"; opacity: 1; }
th[aria-sort="descending"] button::after { content: "\25BC"; opacity: 1; }
th button:focus-visible { outline-offset: -3px; }
td { padding: 7px 9px; border: 1px solid var(--line); vertical-align: top; }
.md tbody tr:nth-child(even) { background: var(--panel); }
.md tbody tr:hover { background: var(--mark); }
.md td:first-child { font-weight: 700; }
.route-map-link { display: block; max-width: 55rem; margin: 18px 0; }
.route-map { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.route-map-link:focus-visible { outline-offset: 4px; }
/* A small, inert rendering of the linked article, above table scrollers and navigation. */
.reference-preview { position: fixed; z-index: 60; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: hidden; pointer-events: none; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 24px #0004; }
.preview-title { padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel); font: 700 14px/1.4 var(--f-body); overflow-wrap: anywhere; }
.preview-image { position: relative; height: 230px; overflow: hidden; }
.preview-image::after { content: ""; position: absolute; inset: auto 0 0; height: 24px; background: linear-gradient(transparent, var(--paper)); }
.preview-paper { width: 166.667%; padding: 22px 26px; transform: scale(.6); transform-origin: top left; }
.preview-paper h1 { font-size: 30px; margin-bottom: 18px; }
.preview-paper .md { font-size: 16px; }
.preview-paper .tablewrap { overflow: hidden; }
.preview-paper .preview-link { color: var(--accent-hi); }
@media print { .reference-preview { display: none !important; } }

td.n, .al-right { text-align: right; }
.al-center { text-align: center; }
th.al-right button { justify-content: flex-end; }
td.when { white-space: nowrap; color: var(--dim); }
tr.day td { background: var(--panel-2); font-weight: 700; }
.tbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 6px; }
.tbar input, .tbar select { min-width: 0; max-width: 100%; padding: 5px 8px; color: var(--fg); background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.tbar input { width: 260px; }
.tbar label:not(.vh) { font-size: 14px; }
.tcount { font-size: 13px; color: var(--dim); }
.tbar { gap: 10px 12px; align-items: flex-end; padding: 12px; background: var(--panel); border: 1px solid var(--line); }
.tfield { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tfield label { color: var(--dim); line-height: 1.4; }
.tfield input, .tfield select { min-height: 36px; border-radius: 2px; }
.tfield input[type="number"] { width: 104px; }
.tranks { display: flex; gap: 12px; min-width: 0; }
.tsearch { flex: 1 1 230px; }
.tsearch input { width: 100%; }
.treset { min-height: 36px; }
.tcount { align-self: flex-end; padding-block: 7px; }
.tempty { margin: -10px 0 22px; padding: 10px 12px; background: var(--panel); border-left: 3px solid var(--accent); }
.longtable { scrollbar-width: thin; }
.tablewrap thead { position: relative; z-index: 3; background: var(--panel-2); box-shadow: 0 1px 0 var(--line); }
.tablewrap thead th { background: var(--panel-2); background-clip: border-box; }
@media (max-width: 520px) {
  .tsearch { flex-basis: 100%; }
  .tfield { flex-grow: 1; }
  .tfield select { width: 100%; }
  .tfield input[type="number"] { width: 100%; }
  .tranks { flex: 1 1 210px; }
  .tranks .tfield { flex: 1 1 0; }
}
.plus { color: var(--plus); } .minus { color: var(--minus); } .zero { color: var(--mute); }
.attrib, .sources { max-width: 48rem; margin: 18px 0 0; font-size: 13px; color: var(--dim); }
.attrib summary, .sources summary { cursor: pointer; padding-block: 4px; }
.attrib p { margin: 8px 0; }
.attrib ul, .sources ul { margin: 8px 0; padding-left: 22px; }
.attrib li, .sources li { overflow-wrap: anywhere; margin-bottom: 5px; }
.credit { margin: 24px 0 0; font-size: 12px; color: var(--dim); }
.stale { margin: 0 0 20px; padding: 10px 14px; border-left: 3px solid var(--minus); background: var(--panel); font-size: 14px; }
.stale p { margin: 0; }
.checklist { max-width: 48rem; }
.release { max-width: 48rem; margin: 18px 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.release h3 { font-size: 18px; margin: 0 0 8px; }
.release .when { font-size: 13px; color: var(--dim); font-weight: 400; }
.release p, .release li { margin: 0 0 6px; font-size: 14px; }
.home .md > p:first-child { max-width: 55rem; }
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 30px; margin: 16px 0; }
.cats h3 { font-size: 17px; margin: 0 0 8px; color: var(--accent); }
.cats h3 a { color: inherit; }
.cats ul { list-style: none; margin: 0 0 8px; padding: 0; font-size: 14px; }
.cats li { padding: 2px 0; }
.browse { font-size: 12px; }
.directory-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.directory-search { flex: 1 1 220px; max-width: 360px; }
.directory-filters label { font-size: 13px; }
.directory-filters input, .directory-filters select { min-width: 0; width: 100%; min-height: 34px; padding: 4px 8px; font-size: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.directory-filters .btn { min-height: 34px; }
.directory-count { margin: 10px 0; color: var(--dim); font-size: 13px; }
.page-list { list-style: none; columns: 16rem; column-gap: 28px; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
.page-list li { break-inside: avoid; margin: 0; padding: 0; }
.page-list a { display: block; padding: 2px 0; overflow-wrap: anywhere; }
.results { list-style: none; margin: 20px 0; padding: 0; max-width: 48rem; }
.results li { padding: 12px 0; border-top: 1px solid var(--line); }
.results li a { font-size: 18px; }
.results p { margin: 4px 0 0; color: var(--dim); font-size: 14px; }
.results mark { background: var(--mark); color: var(--fg); }
.foot { max-width: 55rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 36px; font-size: 12px; color: var(--dim); }
.foot p { margin: 0 0 7px; }
@media (max-width: 1000px) { .wrap { grid-template-columns: 232px minmax(0, 1fr); } main { padding-inline: 24px; } .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  .bar { padding-inline: 14px; }
  .bar-in { gap: 10px; }
  .mark b { font-size: 20px; }
  .mark span, .actions > a { display: none; }
  .navbtn { display: inline-flex; }
  .wrap { display: block; padding: 0; }
  main { border: none; padding: 22px 18px 40px; }
  .nav { display: none; position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 28; max-height: calc(100dvh - var(--bar-h)); background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 18px 24px; }
  .nav.open { display: block; }
  .nav li a { padding-block: 10px; }
  .nav .nav-topic > summary::before { top: 16px; }
  h1 { font-size: 29px; }
  .md h2 { font-size: 23px; }
  .toc ul { display: block; }
}
@media (max-width: 420px) { .bar-in { gap: 7px; } .mark b { font-size: 18px; } .btn { padding: 6px 7px; } .cats { column-gap: 18px; } }

/* A small, inert rendering of the linked article, above table scrollers and navigation. */
.reference-preview { position: fixed; z-index: 60; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: hidden; pointer-events: none; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 24px #0004; }
.preview-title { padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel); font: 700 14px/1.4 var(--f-body); overflow-wrap: anywhere; }
.preview-image { position: relative; height: 230px; overflow: hidden; }
.preview-image::after { content: ""; position: absolute; inset: auto 0 0; height: 24px; background: linear-gradient(transparent, var(--paper)); }
.preview-paper { width: 166.667%; padding: 22px 26px; transform: scale(.6); transform-origin: top left; }
.preview-paper h1 { font-size: 30px; margin-bottom: 18px; }
.preview-paper .md { font-size: 16px; }
.preview-paper .tablewrap { overflow: hidden; }
.preview-paper .preview-link { color: var(--accent-hi); }
@media print { .reference-preview { display: none !important; } }

/* Editing stays behind the compact header button; all colours come from the reference wiki. */
.wiki-edit-trigger { padding: 2px 7px; align-self: center; font-size: 12px; }
.wiki-editor { width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; color: var(--fg); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 12px 50px #0005; }
.wiki-editor::backdrop { background: #0006; }
.wiki-editor-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--panel); border-bottom: 1px solid var(--line); }
.wiki-editor-head h2 { margin: 0; font: 24px var(--f-heading); }
.wiki-editor-head .we-account { margin-left: auto; font-size: 13px; color: var(--dim); }
.wiki-editor button, .wiki-editor input, .wiki-editor select, .wiki-editor textarea { font: inherit; }
.wiki-editor button { cursor: pointer; }
.wiki-editor .btn { min-height: 32px; font-size: 14px; justify-content: center; }
.wiki-editor button:disabled { cursor: default; opacity: .5; }
.wiki-editor .we-primary { background: var(--accent-hi); border-color: var(--accent-hi); color: var(--paper); font-weight: 700; }
.wiki-editor .we-danger { color: var(--minus); }
.we-tabs { display: flex; gap: 0; padding: 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.we-tabs button { padding: 10px 13px; border: 0; border-bottom: 3px solid transparent; color: var(--accent-hi); background: transparent; white-space: nowrap; font-size: 14px; }
.we-tabs button[aria-selected="true"] { border-bottom-color: var(--accent-hi); color: var(--fg); font-weight: 700; }
.we-content { padding: 16px 18px; overflow-y: auto; max-height: calc(100dvh - 180px); overscroll-behavior: contain; }
.we-status { margin: 0; padding: 9px 18px; border-top: 1px solid var(--line); background: var(--panel); font-size: 13px; overflow-wrap: anywhere; }
.we-status[data-state="error"] { color: var(--minus); }
.we-status[data-state="saved"] { color: var(--plus); }
.we-help { font-size: 13px; color: var(--dim); margin: 6px 0 12px; }
.we-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.we-row > .we-field { flex: 1 1 220px; margin: 0; }
.we-field { display: block; margin-bottom: 12px; font-size: 14px; min-width: 0; }
.we-field > span { display: block; margin-bottom: 4px; font-weight: 700; }
.we-field input, .we-field select, .we-field textarea { width: 100%; min-width: 0; padding: 6px 8px; color: var(--fg); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.we-field textarea { resize: vertical; line-height: 1.5; }
.we-field .we-markdown { min-height: 280px; font: 14px/1.6 var(--f-mono); tab-size: 2; }
.we-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.we-toolbar .we-help { margin: 0; }
.we-preview { border: 1px solid var(--line); padding: 16px; margin-top: 12px; overflow-wrap: anywhere; }
.we-preview > :first-child { margin-top: 0; }
.we-picker { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--panel-2); }
.we-results { list-style: none; margin: 4px 0 0; padding: 0; max-height: 200px; overflow-y: auto; }
.we-results li { border-top: 1px solid var(--panel-2); }
.we-results button { display: block; width: 100%; padding: 7px; border: 0; background: var(--paper); color: var(--accent-hi); text-align: left; font-size: 14px; }
.we-results button:hover { background: var(--mark); }
.we-results small { display: block; color: var(--dim); }
.we-conflict { border: 1px solid var(--minus); padding: 12px; margin: 12px 0; }
.we-conflict h3, .we-section-title { font: 21px var(--f-heading); margin: 0 0 10px; }
.we-conflict textarea { min-height: 130px; }
.we-auth { max-width: 430px; margin: 8px auto; }
.we-auth-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.we-code { display: block; padding: 14px; margin: 10px 0; user-select: all; overflow-wrap: anywhere; white-space: pre-wrap; }
.we-recovery { border: 1px solid var(--line); padding: 14px; }
.we-order { margin: 12px 0; padding: 0; list-style: none; max-height: 360px; overflow-y: auto; }
.we-order li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--panel-2); padding: 6px 0; }
.we-order li > span { flex: 1; font-size: 14px; overflow-wrap: anywhere; }
.we-order li > .btn { min-width: 34px; }
.we-history { margin: 0; padding: 0; list-style: none; }
.we-history > li { border-top: 1px solid var(--line); padding: 10px 0; }
.we-history p { margin: 3px 0; font-size: 14px; }
.we-confirm { padding: 12px; border: 1px solid var(--line); margin-top: 12px; background: var(--panel); }
.we-decision { position: absolute; inset: 35% 12px auto; margin: auto; max-width: 480px; box-shadow: 0 4px 30px #0005; }
.we-draft { font-size: 13px; padding: 8px 0; color: var(--accent); }
.we-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.we-meta { font-size: 13px; color: var(--dim); }
.we-account-details { margin: 12px 0; overflow-wrap: anywhere; }
.we-account-details table { width: 100%; table-layout: fixed; font-size: 14px; }
.we-account-details th { text-align: left; }
.we-account-details th, .we-account-details td { padding: 8px; vertical-align: top; }
#we-signed-in > details { margin: 18px 0; }
#we-signed-in > details > summary { cursor: pointer; margin-bottom: 10px; }
.we-empty { padding: 12px 0; color: var(--dim); font-size: 14px; }
@media (max-width: 600px) {
  .wiki-editor { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .wiki-editor-head { padding: 10px 12px; }
  .wiki-editor-head h2 { font-size: 21px; }
  .wiki-editor-head .we-account { max-width: 42%; overflow-wrap: anywhere; }
  .we-tabs { padding-inline: 3px; }
  .we-tabs button { padding: 10px; }
  .we-content { max-height: calc(100dvh - 164px); padding: 12px; }
  .we-status { padding: 9px 12px; }
  .we-columns { grid-template-columns: 1fr; gap: 0; }
  .wiki-editor input, .wiki-editor textarea, .wiki-editor select { font-size: 16px; }
  .we-field .we-markdown { min-height: 240px; font-size: 16px; }
}
@media print { .wiki-editor, .wiki-edit-trigger { display: none !important; } }

/* Writing workspace: one scroll area, with publishing always within reach. */
.wiki-editor[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; width: min(1160px, calc(100vw - 32px)); height: min(94dvh, 1040px); max-height: 94dvh; overflow: hidden; }
.wiki-editor-head { grid-row: 1; }
.we-tabs { grid-row: 2; }
#we-writing-tools { grid-row: 3; border-bottom: 1px solid var(--line); }
#we-writing-tools > .we-format { padding: 6px 18px; }
.we-content { grid-row: 4; }
.we-status { grid-row: 5; }
.wiki-editor-head h2 { flex: 1 1 auto; min-width: 0; max-width: 65%; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#we-close { flex-shrink: 0; }
.we-content { min-height: 0; min-width: 0; max-height: none; }
.we-picker > summary, #we-page-options > summary, .we-writing > summary { cursor: pointer; font-size: 14px; color: var(--accent-hi); padding: 5px 0; }
.we-picker[open] > summary, #we-page-options[open] > summary { margin-bottom: 10px; }
.we-meta, .we-draft { margin: 5px 0; }
.we-meta:empty, .we-draft:empty { display: none; }
.we-edit-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.we-edit-bar > .we-primary { margin-left: auto; }
.we-modes, .we-format { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.we-modes .btn[aria-pressed="true"], .we-format .btn[aria-pressed="true"] { background: var(--mark); color: var(--fg); border-color: var(--accent-hi); }
.we-scope .we-field { flex: 0 1 340px; }
.we-scope .we-help { margin: 0 0 6px; }
#we-page-options { margin-bottom: 10px; }
.we-format { padding: 8px 0; }
.we-format .btn, .we-format select { font-size: 13px; min-height: 32px; }
.we-format select { border: 1px solid var(--line); background: var(--paper); color: var(--fg); padding: 4px; max-width: 130px; }
.we-visual { border: 1px solid var(--line); background: var(--paper); overflow-x: auto; }
.we-visual-document { outline: none; min-height: 42vh; padding: 18px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font: 16px/1.65 var(--f-body); }
.we-visual-document:focus { box-shadow: inset 0 0 0 2px var(--accent-hi); }
.we-visual-document p { margin: 0 0 12px; }
.we-visual-document h2 { font-family: var(--f-heading); font-size: 27px; }
.we-visual-document h3 { font-family: var(--f-heading); font-size: 22px; }
.we-visual-document li p { margin-bottom: 3px; }
.we-visual-document table { border-collapse: collapse; white-space: normal; }
.we-visual-document td, .we-visual-document th { min-width: 90px; position: relative; }
.we-visual-document td p, .we-visual-document th p { margin: 0; }
.we-visual-document .selectedCell { background: var(--mark); }
.we-visual-document .ProseMirror-selectednode { outline: 2px solid var(--accent-hi); }
.we-wikilink { color: var(--accent-hi); cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.we-visual-document img { max-width: 100%; height: auto; }
.we-writing { margin: 8px 0 12px; }
.we-changes { border: 1px solid var(--line); padding: 12px; }
.we-changes h3 { margin: 0 0 6px; font: 21px var(--f-heading); }
.we-diff { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 var(--f-mono); margin: 8px 0 16px; }
.we-diff ins, .we-diff del { display: block; text-decoration: none; padding: 3px 8px; border-left: 3px solid; }
.we-diff ins { background: color-mix(in srgb, var(--plus) 12%, var(--paper)); border-color: var(--plus); }
.we-diff del { background: color-mix(in srgb, var(--minus) 12%, var(--paper)); border-color: var(--minus); }
.we-check { display: flex; align-items: start; gap: 8px; font-size: 14px; margin: 10px 0; }
.we-check input { margin-top: 6px; }
.wiki-section-edit { font: 12px var(--f-body); padding: 2px 6px; margin-left: 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--accent-hi); cursor: pointer; opacity: 0; }
[data-wiki-section]:hover .wiki-section-edit, [data-wiki-section]:focus-within .wiki-section-edit, .wiki-section-edit:focus { opacity: 1; }
@media (pointer: coarse) { .wiki-section-edit { opacity: 1; } }
@media (max-width: 600px) {
  .wiki-editor[open] { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; }
  .wiki-editor-head h2 { max-width: 55%; font-size: 19px; }
  .wiki-editor-head .we-account { max-width: 25%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .we-edit-bar { padding: 8px 12px; flex-wrap: wrap; gap: 6px; }
  #we-writing-tools > .we-format { padding: 6px 12px; }
  .we-modes { flex: 1 1 100%; }
  .we-edit-bar > .we-primary { width: 100%; }
  .we-visual-document { padding: 12px; min-height: 38vh; }
  .we-format .btn { font-size: 12px; padding: 4px 6px; }
  #we-writing-tools .btn, #we-writing-tools select { min-height: 40px; }
}
@media print { .wiki-section-edit { display: none; } }

/* Accounts have their own entry point and workspace, outside page editing. */
.wiki-auth-actions { display: inline-flex; align-items: center; gap: 6px; }
.wiki-auth-pending { padding: 6px 8px; color: var(--dim); font-size: 13px; white-space: nowrap; }
.wiki-editor[data-view="account"] { width: min(720px, calc(100vw - 32px)); height: min(90dvh, 860px); }
.wiki-editor[data-view="account"] .we-account { display: none; }
.wiki-editor[data-view="account"] .we-content { padding: 20px 24px; }
.we-account-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.we-account-top p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.we-account-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.we-account-tabs button { flex: 1; padding: 10px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--accent-hi); cursor: pointer; }
.we-account-tabs [aria-selected="true"] { border-bottom-color: var(--accent-hi); color: var(--fg); font-weight: 700; }
.we-account-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 14px; margin: 10px 0 16px; font-size: 14px; }
.we-account-facts dt { color: var(--dim); }
.we-account-facts dd { margin: 0; overflow-wrap: anywhere; }
.we-more-account { margin: 16px 0; }
.we-more-account summary { cursor: pointer; color: var(--accent-hi); }
#we-recovery-result { margin-bottom: 18px; }
@media print { .wiki-auth-actions { display: none !important; } }
@media (max-width: 760px) {
  :root:has(.wiki-auth-actions) { --bar-h: 104px; }
  .bar-in:has(.wiki-auth-actions) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 7px; padding-block: 8px; }
  .bar-in:has(.wiki-auth-actions) .actions { display: contents; }
  .bar-in:has(.wiki-auth-actions) .mark { grid-row: 1; grid-column: 1; }
  .bar-in:has(.wiki-auth-actions) #navbtn { grid-row: 1; grid-column: 2; justify-self: end; }
  .bar-in:has(.wiki-auth-actions) .search { grid-row: 2; grid-column: 1; width: 100%; max-width: none; margin: 0; }
  .bar-in:has(.wiki-auth-actions) .wiki-auth-actions { grid-row: 2; grid-column: 2; justify-content: end; }
  .wiki-auth-actions .btn { min-height: 36px; }
}
@media (max-width: 600px) {
  .wiki-editor[data-view="account"] { width: 100%; height: 100dvh; }
  .wiki-editor[data-view="account"] .we-content { padding: 16px 12px; }
  .we-account-top .btn, .we-account-tabs button { min-height: 40px; }
}

/* Game palette and held parchment; wiki navigation remains outside the atlas. */
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/interactive-map/assets/cormorant.ttf') format('truetype'); }
body[data-wiki-slug="interactive-map"] .wrap { max-width: none; grid-template-columns: 200px minmax(0, 1fr); padding-inline: 10px; }
body[data-wiki-slug="interactive-map"] main { padding: 10px 12px 30px; }
body[data-wiki-slug="interactive-map"] .page { max-width: none; }
body[data-wiki-slug="interactive-map"] .page > h1 { margin-block: 4px 10px; font-size: 29px; }
body[data-wiki-slug="interactive-map"] .page > .page-heading { margin-block: 4px 10px; }
body[data-wiki-slug="interactive-map"] .page-heading h1 { font-size: 29px; }
body[data-wiki-slug="interactive-map"] .page > .crumbs { margin-bottom: 2px; }
body[data-wiki-slug="interactive-map"] .stale { margin: 6px 0; padding: 5px 10px; font-size: 12px; }
body[data-wiki-slug="interactive-map"] .stale p { margin: 0; }
.nav .atlas-nav { display: block; margin: 0 0 12px; padding: 10px; border-block: 1px solid var(--panel-2); font-weight: 700; }
.atlas { --atlas-ink: #0e1013; --atlas-slate: #171b21; --atlas-iron: #555148; --atlas-bone: #e9e4d9; --atlas-dim: #c2b8a3; --atlas-brass: #c08a3e; background: var(--atlas-ink); color: var(--atlas-bone); border: 1px solid #695538; margin: 16px 0 24px; isolation: isolate; position: relative; font: 14px/1.4 Arial, sans-serif; }
.atlas button, .atlas select, .atlas input, .atlas a { font: inherit; }
.atlas button, .atlas select { min-height: 38px; border: 1px solid var(--atlas-brass); border-radius: 0; padding: 7px 10px; background: var(--atlas-slate); color: var(--atlas-bone); cursor: pointer; }
.atlas button:hover, .atlas button[aria-pressed="true"] { background: #352b1b; color: #f4d28c; }
.atlas button[aria-pressed="false"] { border-color: #777064; }
.atlas :focus-visible { outline: 2px solid #f4d28c; outline-offset: 2px; }
.atlas-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; position: relative; z-index: 4; }
.atlas-search { position: relative; flex: 1 1 220px; }
.atlas-search input { width: 100%; min-width: 0; height: 40px; color: var(--atlas-bone); background: var(--atlas-slate); border: 1px solid #81755f; padding: 8px 12px; border-radius: 0; }
.atlas-search input::placeholder { color: #c2b8a3; }
.atlas-toolbar select { flex: 0 1 195px; min-width: 0; max-width: 100%; }
.atlas-results { position: absolute; inset: 100% 0 auto; z-index: 5; background: #101319; border: 1px solid #81755f; max-height: 360px; overflow: auto; box-shadow: 0 8px 18px #0008; }
.atlas-results p { padding: 10px 12px 4px; color: var(--atlas-dim); font-size: 12px; }
.atlas-results ul { padding: 0; margin: 0; list-style: none; }
.atlas-results button { display: block; width: 100%; border: 0; text-align: left; padding: 10px 12px; }
.atlas-results small { display: block; color: var(--atlas-dim); }
.atlas-stage { position: relative; overflow: hidden; height: max(560px, calc(100dvh - 170px)); background: #171b21; }
#atlas-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline-offset: -3px; }
#atlas-canvas:active { cursor: grabbing; }
.atlas-hover { position: absolute; left: 18px; top: 12px; right: 75px; pointer-events: none; font: 400 22px/1.15 'Cormorant', Georgia, serif; text-shadow: 0 1px 4px #000; }
.atlas-zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 5px; }
.atlas-zoom button { width: 40px; font-size: 21px; padding: 2px; }
.atlas-loading { position: absolute; top: 42%; width: 100%; text-align: center; padding: 20px; background: #101319e8; }
.atlas-card { position: absolute; right: 12px; bottom: 12px; width: min(290px, calc(100% - 24px)); padding: 17px; background: #101319f5; border: 1px solid #a77c3a; box-shadow: 0 3px 15px #0008; }
.atlas-card h2 { font: 400 25px/1.1 'Cormorant', Georgia, serif; border: 0; padding: 0 18px 0 0; margin: 0 0 7px; color: var(--atlas-bone); }
.atlas-card p { color: var(--atlas-dim); margin: 0 0 8px; }
.atlas-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 12px 0; font-size: 13px; }
.atlas-card dt { color: var(--atlas-dim); }
.atlas-card dd { margin: 0; text-align: right; }
.atlas-card a { display: block; color: #f4d28c; margin-bottom: 12px; }
#atlas-dismiss { position: absolute; top: 3px; right: 3px; min-height: 28px; border: 0; padding: 0 7px; font-size: 24px; }
.atlas-card > button:not(#atlas-dismiss) { width: 100%; margin-top: 6px; }
.atlas-foot { padding: 8px 12px; border-top: 1px solid #55452f; display: flex; gap: 12px; align-items: end; justify-content: space-between; }
.atlas-key { flex: 1; min-width: 0; }
.atlas-key summary { cursor: pointer; color: #f4d28c; padding: 4px 0; }
#atlas-filters { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 7px 0; }
.atlas-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.atlas-filter button { min-width: 85px; }
.atlas-kind { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; }
.atlas-kind canvas { width: 18px; height: 18px; }
.atlas-layers { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 3px; }
.atlas-layers button { min-height: 32px; font-size: 12px; }
#atlas-status { flex: 0 1 190px; color: var(--atlas-dim); font-size: 12px; margin: 0; }
.atlas-help { color: var(--atlas-dim); padding: 7px 12px 12px; font-size: 12px; margin: 0 !important; }
.atlas:fullscreen { display: flex; flex-direction: column; width: 100%; height: 100%; overflow: auto; }
.atlas:fullscreen .atlas-stage { flex: 1; min-height: 250px; }
.atlas.atlas-expanded { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; margin: 0; }
.atlas.atlas-expanded .atlas-stage { flex: 1; min-height: 240px; }
@media (max-width: 640px) {
  body[data-wiki-slug="interactive-map"] .wrap { display: block; padding-inline: 0; }
  body[data-wiki-slug="interactive-map"] main { padding: 8px 4px 24px; }
  .atlas-toolbar { gap: 6px; padding: 8px; }
  .atlas-search { flex-basis: calc(100% - 140px); }
  .atlas-toolbar select { flex: 1 1 120px; }
  .atlas-toolbar > button { flex: 1; min-height: 38px; font-size: 12px; }
  .atlas-stage { height: auto; display: grid; grid-template-rows: auto auto; }
  #atlas-canvas { height: max(420px, calc(100dvh - 180px)); }
  .atlas-hover { left: 12px; font-size: 19px; }
  .atlas-card { position: relative; inset: auto; grid-row: 2; max-height: none; width: auto; margin: 6px; padding: 12px; }
  .atlas-card h2 { font-size: 22px; }
  .atlas-foot { display: block; padding: 6px 8px; }
  #atlas-status { margin: 8px 0 0; }
  #atlas-filters { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .atlas-kind { font-size: 10px; }
  .atlas-filter button { min-width: 78px; }
}

/* The game's Enhanced Plus sky, framed by the wiki's existing type and controls. */
.firmament-planner { --fp-night: #111827; --fp-deep: #04060a; --fp-gold: #f3cf86; --fp-brass: #c08a3e; --fp-craft: #9fe8cc; --fp-price: #ffb4a6; margin: 1.5rem 0 2rem; border: 1px solid var(--fp-brass); background: var(--fp-deep); color: #e9e4d9; overflow: hidden; border-radius: 6px; }
.firmament-planner *, .firmament-planner *::before, .firmament-planner *::after { box-sizing: border-box; }
.firmament-planner h2, .firmament-planner h3, .firmament-planner h4 { color: var(--fp-gold); margin: 0 0 .6rem; line-height: 1.25; }
.firmament-planner h2 { font-size: 1.65rem; }
.firmament-planner h3 { font-size: 1.3rem; }
.firmament-planner h4 { margin-top: 1.25rem; font-size: 1.15rem; }
.firmament-planner p { margin: .4rem 0; line-height: 1.5; max-width: 78ch; }
.firmament-planner a { color: var(--fp-craft); }
.firmament-planner button, .firmament-planner input, .firmament-planner select, .firmament-planner textarea { font: inherit; font-size: .95rem; color: #e9e4d9; background: #1c1f26; border: 1px solid #7a7260; border-radius: 3px; padding: .5rem .65rem; min-height: 42px; max-width: 100%; }
.firmament-planner button { cursor: pointer; white-space: normal; }
.firmament-planner button:hover:not(:disabled) { border-color: var(--fp-gold); background: #262a33; }
.firmament-planner button:disabled { opacity: .45; cursor: default; }
.firmament-planner :focus-visible { outline: 3px solid var(--fp-craft); outline-offset: 3px; }
.firmament-planner input[type=checkbox] { min-height: 0; accent-color: var(--fp-brass); }
.firmament-planner [hidden] { display: none !important; }
.fp-heading, .fp-toolbar, .fp-pools, .fp-build-actions, .fp-summary, .fp-credit { padding: 1rem 1.2rem; }
.fp-heading { background: var(--fp-night); border-bottom: 1px solid #343c4a; }
.fp-heading p { color: #c2b79a; font-size: .95rem; }
.fp-pools { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1.6rem; padding-block: .7rem; }
.fp-pools strong { color: var(--fp-gold); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.fp-pools p:nth-child(2) strong { color: var(--fp-craft); }
#fp-spent { flex-basis: 100%; color: #c2b79a; font-size: .9rem; }
.fp-toolbar { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; border-bottom: 1px solid #343c4a; padding-top: .3rem; }
.fp-toolbar label { display: grid; gap: .3rem; font-size: .85rem; }
.fp-search { flex: 1; min-width: 170px; }
.fp-search input { width: 100%; }
.fp-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 265px; }
.fp-stage { height: 600px; min-width: 0; position: relative; overflow: hidden; }
#fp-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#fp-canvas.fp-drag { cursor: grabbing; }
#fp-map-label { position: absolute; left: .8rem; top: .6rem; max-width: calc(100% - 1.6rem); color: #e9e4d9; background: rgba(4,6,10,.88); border-left: 2px solid var(--fp-brass); padding: .35rem .65rem; font-size: .9rem; pointer-events: none; }
.fp-zoom { position: absolute; right: .8rem; bottom: .8rem; display: flex; gap: .4rem; }
.fp-zoom button { width: 44px; font-size: 1.2rem; }
.fp-inspector { padding: 1.2rem 1rem; border-left: 1px solid #343c4a; background: #141a24; overflow: auto; max-height: 600px; }
#fp-kind { color: var(--fp-craft); font-size: .9rem; }
#fp-lore { color: #c2b79a; font-style: italic; }
#fp-effects { margin: .9rem 0; padding-left: 1.1rem; font-size: .95rem; }
#fp-effects li { margin: .3rem 0; }
#fp-path { font-size: .9rem; }
.fp-actions { display: flex; flex-direction: column; gap: .5rem; margin: .9rem 0; }
#fp-learn { border-color: var(--fp-brass); color: var(--fp-gold); }
#fp-reference { display: inline-block; font-size: .9rem; }
.fp-help, .fp-status { padding: .7rem 1.2rem; font-size: .9rem; }
.fp-help { color: #c2b79a; border-top: 1px solid #343c4a; }
.fp-status { min-height: 2.8rem; color: var(--fp-craft); }
.fp-error, .fp-price { color: var(--fp-price); }
.fp-build-actions { display: flex; gap: .5rem; flex-wrap: wrap; border-top: 1px solid #343c4a; }
.fp-build-actions details { flex-basis: 100%; }
.firmament-planner summary { cursor: pointer; color: var(--fp-gold); padding: .5rem 0; }
.fp-build-actions details[open] { display: grid; gap: .5rem; }
.fp-build-actions textarea { width: 100%; resize: vertical; overflow-wrap: anywhere; }
.fp-summary { border-top: 1px solid var(--fp-brass); background: #111722; }
.fp-summary details { border-top: 1px solid #343c4a; margin-top: 1.3rem; padding-top: .5rem; }
.fp-summary details p, .fp-scope { color: #c2b79a; font-size: .9rem; }
.fp-tablewrap { overflow-x: auto; margin: .8rem 0 1.1rem; }
.firmament-planner table { width: 100%; border-collapse: collapse; background: transparent; font-size: .9rem; margin: 0; }
.firmament-planner th, .firmament-planner td { padding: .65rem .75rem; border: 1px solid #343c4a; vertical-align: top; text-align: left; background: transparent; color: inherit; }
.firmament-planner th { color: var(--fp-gold); background: #192231; font-weight: 600; }
.firmament-planner td { min-width: 140px; }
.fp-inspector td { min-width: 0; }
.fp-cap { color: var(--fp-gold); }
.fp-conditions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .8rem; }
.fp-conditions label { display: flex; gap: .4rem; align-items: center; }
.fp-credit { color: #c2b79a; font-size: .8rem; border-top: 1px solid #343c4a; }
.fp-results { padding: .7rem 1.2rem; border-bottom: 1px solid #343c4a; max-height: 280px; overflow: auto; }
.fp-results ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: .4rem; }
.fp-results button { width: 100%; text-align: left; }
.firmament-planner:fullscreen, .firmament-planner.fp-expanded { border-radius: 0; width: 100%; height: 100%; overflow: auto; margin: 0; }
.firmament-planner.fp-expanded { position: fixed; inset: 0; z-index: 1000; }
.firmament-planner:fullscreen .fp-stage, .fp-expanded .fp-stage { height: 65vh; min-height: 450px; }
.firmament-planner:fullscreen .fp-inspector, .fp-expanded .fp-inspector { max-height: 65vh; }
@media (max-width: 850px) {
  .fp-workspace { grid-template-columns: minmax(0,1fr); }
  .fp-stage { height: 480px; }
  .fp-inspector { max-height: none; border-left: 0; border-top: 1px solid #343c4a; }
  .fp-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .fp-heading, .fp-toolbar, .fp-pools, .fp-build-actions, .fp-summary, .fp-credit { padding-inline: .8rem; }
  .fp-stage { height: 420px; }
  .fp-toolbar label { width: 100%; }
  .fp-pools { column-gap: .9rem; }
  .fp-pools p { font-size: .85rem; }
  .fp-pools strong { font-size: 1.35rem; }
}
