:root {
  color-scheme: dark;
  --ink: #f2f5f3;
  --muted: #a3b7c1;
  --hairline: #a9c6d336;
  --accent: #f3cc91;
  --accent-rgb: 243, 204, 145;
  --frost-grain: url('./textures/panel-frost.webp?v=0d02496107a3');
  --dock-fill: #17212d;
  --sheet-fill: #111b28;
  --index-fill: #14202c;
  --glass-blur: 14px;
  --gutter: clamp(20px, 3.4vw, 64px);
  --header-height: 88px;
  --dock-clearance: 150px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; overflow: hidden; background: #030812; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body[data-view="alpha"] { --accent: #a7dfeb; --accent-rgb: 167, 223, 235; }
body[data-view="hole"] { --accent: #d8c0f6; --accent-rgb: 216, 192, 246; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 1px solid transparent; background: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: wait; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Keep the reflected edge separate from the translucent surface underneath it. */
:where(.destinations, #chapter-detail, #panel) {
  border: 1px solid #9cb0bf48;
  box-shadow: inset 0 1px 1px #f1f6fa26, inset 0 -2px 3px #0206108c,
    0 2px 4px #01040ab3, 0 14px 36px #01040a80;
}
@supports (mask-composite: exclude) {
  :where(.destinations, #chapter-detail, #panel)::before {
    content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
    background: linear-gradient(140deg, #e8f5f7bb, #c1d6de55 18%, #7e9aaf10 43%, #8aa2b526 62%, rgba(var(--accent-rgb),.55) 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }
}
.view-tools, #directory, .chapter-back {
  border: 1px solid #8ca5b852; border-top-color: #e0ecf078; border-bottom-color: #5e768b63;
  background: linear-gradient(165deg, #c6dce62e, transparent 55%), #14212ee6;
  box-shadow: inset 0 1px 1px #edf5fa19, inset 0 -1px 2px #03070d99, 0 2px 7px #0007;
}
@supports (backdrop-filter: blur(1px)) {
  :root { --dock-fill: rgb(12 20 32 / 71%); --sheet-fill: rgb(11 19 31 / 86%); --index-fill: rgb(13 22 34 / 92%); }
  :where(.destinations, #chapter-detail, #panel) { backdrop-filter: blur(var(--glass-blur)) saturate(115%); }
}

#space { position: fixed; inset: 0; overflow: hidden; background: #040912; }
.galactic-sky { position: absolute; inset: -32% -16%; pointer-events: none;
  background: url('./textures/galactic-band.webp?v=0d02496107a3') 50% 48% / cover no-repeat;
  transform: rotate(-18deg); opacity: .70; transition: opacity .65s; }
#space::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #03081255, transparent 23%, transparent 75%, #030812a0),
    radial-gradient(ellipse at 47% 48%, transparent 42%, #02071080 100%); }
#space canvas { position: absolute; inset: 0; display: block; touch-action: none; transition: opacity .35s; }
body.solar-locked .galactic-sky, body.alpha-locked .galactic-sky, body.hole-locked .galactic-sky { opacity: .19; }
body.detail-open .galactic-sky { opacity: .13; }

.site-bar { position: fixed; z-index: 6; inset: 0 0 auto; min-height: var(--header-height);
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  pointer-events: none; }
.site-bar::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: linear-gradient(90deg, #a8c9d039, #a8c9d00b 32%, transparent 60%, #a8c9d024); }
.site-bar > * { pointer-events: auto; }
.brand, .brand-copy, .header-controls, .top-actions, .view-tools, #directory { display: flex; align-items: center; }
.brand { gap: 13px; }
.brand-copy strong,#directory,.catalog-link { white-space:nowrap; }
.compact-catalog { display:none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 41px; height: 41px;
  border: 1px solid #efc98b80; border-radius: 50%; font: italic 34px/1 Georgia, serif; color: #f5d6a8;
  background: radial-gradient(ellipse at 32% 22%, #b6905640, #13212d 71%); }
.brand-mark::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #f6d39e; right: 1px; top: 4px; box-shadow: 0 0 8px #efb85c99; }
.brand-copy { flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-copy strong { font-size: 17px; line-height: 1.35; font-weight: 620; letter-spacing: .04em; }
#scene-location { color: #b2c2cb; font-size: 12px; letter-spacing: .1em; }
.header-controls { gap: 16px; }.top-actions { gap: 9px; }
.view-tools { border-radius: 24px; padding: 2px 3px; }
.view-tools button, #close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #bfced6; border-radius: 50%; }
.view-tools svg, #directory svg, #close svg, .search-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.view-tools button:hover, #close:hover { background: #a6ccdc1d; color: #fff; }
#pause .play-symbol, #pause[aria-pressed="true"] .pause-symbol { display: none; }
#pause[aria-pressed="true"] .play-symbol { display: block; }
.solar-locked #zoom-in, .solar-locked #zoom-out, .alpha-locked #zoom-in, .alpha-locked #zoom-out,
.hole-locked #zoom-in, .hole-locked #zoom-out, .scene-fallback .view-tools { display: none; }
.catalog-link, #directory, .chapter-back { justify-content: center; min-height: 44px; border-radius: 22px; font-size: 14px; }
.catalog-link { display: grid; place-items: center; padding: 0 10px; color: #b5c3cb; }
.catalog-link:hover { color: #fff; }
#directory { gap: 8px; padding: 0 17px; color: #f1f4f1; }
#directory:hover, #directory[aria-expanded="true"] { background-color: #2b3d4c; border-color: var(--accent); }
.chapter-back { display: flex; align-items: center; position: fixed; z-index: 4; left: var(--gutter); top: calc(var(--header-height) + 16px);
  color: #d7e1e6; padding: 0 15px; }
.chapter-back:hover { border-color: var(--accent); }

.destinations { position: fixed; z-index: 5; left: 50%; bottom: max(38px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 4px; width: min(770px, calc(100% - 40px)); padding: 6px;
  border-radius: 23px; background-color: var(--dock-fill);
  background-image:
    linear-gradient(173deg, #e3f1fa29, #c7dce610 32%, transparent 49%),
    linear-gradient(96deg, #e0b27f22, transparent 34%, #8bbfc612 64%, #bba2dc25); }
.destinations button { --nav-rgb: 243,204,145; display: flex; align-items: center; justify-content: flex-start;
  gap: 15px; flex: 1; min-width: 0; min-height: 75px; position: relative; overflow: hidden;
  padding: 10px 13px 10px clamp(12px,2.1vw,31px); text-align: left; border-radius: 16px;
  transition: background-color .18s, border-color .18s; }
.destinations button[data-view="alpha"] { --nav-rgb: 167,223,235; }
.destinations button[data-view="hole"] { --nav-rgb: 216,192,246; }
.destinations button + button::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: linear-gradient(transparent,#ccdde350,transparent); }
.destinations button:hover, .destinations button[aria-current="true"] {
  border-color: rgba(var(--nav-rgb),.45); background: linear-gradient(115deg,rgba(var(--nav-rgb),.21),rgba(var(--nav-rgb),.045) 72%);
  box-shadow: inset 0 1px 0 #f6f5ed26, inset 0 -1px 2px #04081085; }
.destinations button:active { box-shadow: inset 0 2px 4px #01050b99; }
.destinations button[aria-current="true"]::after { content: ''; position: absolute; left: 16%; right: 16%; bottom: 0; height: 2px; background: linear-gradient(90deg,transparent,rgb(var(--nav-rgb)),transparent); }
.destination-icon { width: 48px; height: 48px; padding: 4.5px; flex: none; border-radius: 50%; stroke: rgb(var(--nav-rgb)); stroke-width: 1.5; fill: none;
  border: 1px solid rgba(var(--nav-rgb),.32);
  background: radial-gradient(ellipse at 27% 13%,rgba(var(--nav-rgb),.24),transparent 68%), #0a131de0;
  box-shadow: inset 0 1px 1px #f4f5ed36, inset 0 -2px 3px #02070cb3, 0 2px 5px #02050b73; }
.destination-icon .icon-core, .destination-icon .icon-point { fill: rgb(var(--nav-rgb)); }
.destination-icon .icon-faint { opacity: .55; }
.destination-icon .icon-bright { stroke-width: 2.2; }
.nav-copy { display: grid; gap: 3px; }
.nav-copy > span { color: #f2f4f2; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.nav-copy small { color: rgb(var(--nav-rgb)); font-size: 12px; line-height: 1.4; letter-spacing: .065em; }

#labels, #region-halos { position: fixed; inset: 0; pointer-events: none; }
#labels { z-index: 2; } #region-halos { z-index: 1; }
.celestial-label { position: absolute; transform: translate(-50%,0); pointer-events: auto;
  border-radius: 9px; white-space: nowrap; padding: 6px 10px; color: #e6eef2;
  font-size: 13px; line-height: 1.42; text-shadow: 0 1px 6px #000; }
.celestial-label small { display: none; }
.celestial-label:hover, .celestial-label.is-hovered { background: #102030d9; border-color: rgba(var(--accent-rgb),.5); }
.line-label { transform: translate(0,-50%); text-align: left; white-space: normal; min-width: 150px; max-width: min(350px,55vw); padding: 6px 12px; }
.line-label::before { content: ''; position: absolute; left: -20px; top: 50%; width: 18px; height: 1px; background: rgba(var(--accent-rgb),.55); }
.line-label span, .neighbor-label span { display: block; color: #a0b1bd; font-size: 12px; line-height: 1.4; }
.line-label small, .neighbor-label small { display: block; text-wrap:balance; color: #eff2f3; font-size: 16px; font-weight: 530; margin-top: 2px; line-height: 1.4; }
.line-label.is-planned span { color: #a0acb8; }.line-label.is-planned small { color: #ced9df; }
.neighbor-label { white-space: normal; text-align: center; min-width: 62px; }
.neighbor-label small { font-size: 13px; }
#body-caption { display: none; position: fixed; z-index: 2; left: 26%; top: var(--body-caption-y); transform: translateX(-50%); padding: 5px 13px;
  font-size: 16px; letter-spacing: .12em; color: #dce5e7; text-shadow: 0 1px 8px #000; pointer-events: none; }
.detail-open #body-caption:not(:empty) { display: block; }
#planet-tooltip { position: fixed; z-index: 4; pointer-events: none; padding: 10px 15px; border: 1px solid rgba(var(--accent-rgb),.4);
  border-radius: 10px; background: #0a1521f5; font-size: 14px; line-height: 1.55; }
#planet-tooltip strong { display: block; color: var(--accent); font-size: 12px; }
.region-halo { --region-rgb: 243,204,145; position:absolute; border:1px solid transparent; border-radius:50%; transition:background .22s,border-color .22s; }
.region-halo[data-region="alpha"] { --region-rgb:167,223,235; }.region-halo[data-region="hole"] { --region-rgb:216,192,246; }
.region-halo.active,.region-halo:focus-within,.region-halo:has(button:hover) { border-color:rgba(var(--region-rgb),.44); background:radial-gradient(ellipse,transparent 63%,rgba(var(--region-rgb),.055)); }
.region-halo button { pointer-events:auto; position:absolute; left:50%; top:100%; transform:translate(-50%,9px); display:flex; align-items:center; gap:7px; white-space:nowrap;
  padding:3px 8px; border-radius:9px; color:rgb(var(--region-rgb)); background:#040a13a6; font-size:13px; letter-spacing:.08em; text-shadow:0 1px 3px #030812; }
.region-halo button::before { content:''; width:15px; height:1px; background:currentColor; opacity:.72; }
.region-halo.label-above button { top:auto; bottom:100%; transform:translate(-50%,-4px); }
.region-halo button::after { content:''; position:absolute; inset:-8px -4px; }
.region-halo.active button,.region-halo button:hover,.region-halo button:focus-visible { background:#0a1722; }
.scene-loading #region-halos,.scene-fallback #region-halos,.scene-fallback #labels { visibility:hidden; }

#solar-map-guide { display: none; pointer-events: none; }
#chapter-detail { position: fixed; z-index: 3; left: 52%; right: var(--gutter); top: calc(var(--header-height) + 32px); bottom: var(--dock-clearance);
  display: flex; flex-direction: column; padding: clamp(15px,2.1vw,32px); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateX(24px); transition: transform .42s ease, opacity .32s, visibility 0s .42s;
  border-radius: 22px; background-color: var(--sheet-fill);
  background-image:
    var(--frost-grain),
    radial-gradient(ellipse 77% 230px at 99% -40px, rgba(var(--accent-rgb),.23), transparent 82%),
    radial-gradient(ellipse 98% 270px at -15% -70px, #accdde66, transparent 85%),
    linear-gradient(150deg, #81949615 6%, transparent 46%, #767da512);
  background-size: 128px 128px, auto, auto, auto; }
/* The engraving fades out behind the resource count. */
#chapter-detail::after {
  content: ''; position: absolute; z-index: -1; top: 0; right: 0; pointer-events: none;
  width: clamp(148px,19vw,228px); height: clamp(82px,12vw,124px);
  background: radial-gradient(ellipse 100% 100% at calc(100% + 8px) -12px,
    transparent 47%, rgba(var(--accent-rgb),.22) 47.6%, transparent 48.5%,
    transparent 69%, rgba(var(--accent-rgb),.16) 69.6%, transparent 70.4%,
    transparent 91%, rgba(var(--accent-rgb),.12) 91.6%, transparent 92.4%);
  mask-image: radial-gradient(ellipse 112px 65px at 100% 27%, transparent 58%, #000 100%);
}
.detail-open #chapter-detail { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.detail-heading { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center; padding-bottom: 16px; }
#detail-book { margin: 0; color: var(--accent); font-size: 13px; font-weight: 550; letter-spacing: .11em; }
#detail-count { grid-column: 2; grid-row: 1; color: #d6e1e5; font-size: 12px; white-space: nowrap; }
#detail-count:empty { display: none; }
#detail-title { grid-row: 2; grid-column: 1/-1; margin: 0; font-size: clamp(23px,2.2vw,34px); letter-spacing: -.025em; line-height: 1.3; font-weight: 620; text-wrap: balance; }
#detail-list, #panel-content { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #587083 transparent; }
#detail-list { border-top: 1px solid var(--hairline); flex: 1; }
.resource { position: relative; display: grid; grid-template-columns: minmax(42px,auto) minmax(0,1fr); align-items: center; column-gap: 14px;
  min-height: 55px; padding: 12px 24px 12px 3px; border-bottom: 1px solid #a6c5d123; transition: background-color .18s,color .18s; }
.resource .num { min-width: 40px; justify-self: start; color: var(--accent); font: 500 13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; }
.resource h3 { margin: 0; font-size: 16px; font-weight: 520; line-height: 1.52; overflow-wrap: anywhere; }
.resource::after { content: ''; position: absolute; right: 7px; top: 50%; width: 7px; height: 7px;
  border-top: 1.5px solid #98acb6; border-right: 1.5px solid #98acb6; transform: translateY(-50%) rotate(45deg); }
.resource:hover { background: linear-gradient(97deg,rgba(var(--accent-rgb),.12),rgba(var(--accent-rgb),.025)); color: var(--accent); }
.resource:focus-visible { outline-offset: -3px; }
.resource:has(h3:only-child) { display: flex; }
.resource p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: #bbcad1; grid-column: 2; }
.empty { margin: 12px 0; color: #adbec8; padding: 18px; border: 1px dashed var(--hairline); border-radius: 11px; font-size: 15px; }

#panel { position: fixed; z-index: 8; inset: calc(var(--header-height) + 10px) var(--gutter) auto auto;
  margin: 0; width: min(495px,calc(100% - 32px)); height:auto; max-height:min(620px,calc(100dvh - var(--header-height) - var(--dock-clearance)));
  padding: 19px 22px; color: var(--ink); border-radius: 20px; background-color: var(--index-fill);
  background-image:
    var(--frost-grain),
    radial-gradient(ellipse 85% 170px at 6% -42px, #b0d1e14f, transparent 92%),
    linear-gradient(153deg,rgba(var(--accent-rgb),.09),transparent 54%);
  background-size: 128px 128px, auto, auto; }
#panel[open] { display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 25px; margin: 0; letter-spacing: -.035em; }
#close { flex: none; width: 44px; height: 44px; }
.search-field { display: flex; flex: none; gap: 10px; align-items: center; padding: 0 13px; margin: 8px 0;
  min-height: 46px; color: #d3e0e6; border: 1px solid #8199a870; border-bottom-color: #afc6d490; border-radius: 10px;
  background: linear-gradient(180deg,#071019f5,#101e29ed);
  box-shadow: inset 0 2px 4px #0009, 0 1px 0 #e3f2fb18; }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-field svg { flex: none; }.search-field input { min-width: 0; width: 100%; border: 0; background: transparent; height: 42px; outline: none; font-size: 16px; }
.search-field input::placeholder { color: #93a7b3; }
#panel-tabs { display: flex; gap: 5px; border-bottom: 1px solid var(--hairline); margin-bottom: 3px; }
#panel-tabs button { flex: 1; min-height: 44px; font-size: 14px; border-radius: 6px 6px 0 0; color: #b6c6ce; border-bottom: 2px solid transparent; }
#panel-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); background: rgba(var(--accent-rgb),.065); }
#panel-content { flex:0 1 auto; }
body.detail-open:has(#panel[open]) #chapter-detail { visibility:hidden; transition:none; }
@media(min-width:701px) { body.detail-open #panel { left:52%; width:auto; } }
.credits { flex:none; color: #99aeb9; font-size: 10px; line-height: 1.55; padding-top: 9px; }.credits a:hover { text-decoration: underline; }
#fallback { position: fixed; z-index: 2; inset: 44% 20px auto; text-align: center; font-size: 16px; color: #d2dfe5; }
.site-filing { position: fixed; z-index: 3; bottom: max(6px,env(safe-area-inset-bottom)); left: 12px; right: 12px;
  display: flex; justify-content: center; gap: 15px; pointer-events: none; font-size: 10px; color: #9aadb9; }
.site-filing a { display: inline-flex; align-items: center; min-height: 20px; gap: 4px; pointer-events: auto; }.site-filing img { width: 12px; height: 12px; }
.scene-loading #space canvas { opacity: 0; }.scene-loading #labels { visibility: hidden; }
.scene-loading #space::after { content: ''; position: absolute; z-index: 2; left: calc(50% - 12px); top: calc(50% - 12px);
  width: 24px; height: 24px; border: 2px solid #758e9c55; border-top-color: #d4e4ea; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media(min-width:600px) and (min-aspect-ratio:4/3) {
  .solar-map-open #solar-map-guide { display: block; position: fixed; z-index: 2; left: 0; right: 0; top: var(--solar-map-top); height: var(--solar-map-height); }
  .solar-map-book { position: absolute; color: var(--accent); font-size: 14px; letter-spacing: .08em; font-weight: 550; }
  .solar-map-book { left: 27%; right: 6%; display: flex; align-items: center; gap: 12px; }
  .solar-map-book::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg,#e6c89254,transparent); }
  .solar-map-book small { color: #9fb1bd; font-size: 12px; font-weight: 400; letter-spacing: .03em; }
  .solar-map-one { top: -3%; }.solar-map-two { top: 48%; }
  .solar-map-label.line-label { transform: translate(-50%,0); text-align: center; width: 16.2vw; min-width: 0; max-width: 255px; padding: 4px; }
  .solar-map-label.line-label::before { display: none; }
}
@media(max-width:850px) { :root { --header-height:76px; --gutter:20px; --dock-clearance:136px; }.destinations button { gap: 10px; } }
@media(max-width:700px) and (orientation:portrait) {
  :root { --gutter:16px; --header-height:68px; --dock-clearance:130px; --glass-blur:9px; }
  .brand { gap: 8px; }.brand-mark { width: 34px; height: 34px; font-size: 27px; }.brand-copy strong { font-size: 15px; }#scene-location { font-size: 11px; }
  .header-controls,.top-actions { gap: 3px; }.catalog-link { padding: 0 7px; font-size: 12px; }#directory { padding: 0 11px; gap: 5px; font-size: 13px; }
  .view-tools { position: fixed; right: 15px; top: calc(var(--header-height) + 9px); }.view-tools button { width: 44px; height: 44px; }
  body.detail-open .view-tools { display: none; }
  .galactic-sky { inset: -12% -46%; transform: rotate(-26deg); }
  .destinations { bottom: max(35px,calc(env(safe-area-inset-bottom) + 22px)); width: calc(100% - 20px); padding: 4px; gap: 1px; border-radius: 17px; }
  .destinations button { min-height: 72px; gap: 2px; padding: 4px 2px; border-radius: 12px; flex-direction: column; justify-content: center; text-align: center; }
  .destination-icon { width: 26px; height: 26px; padding: 1.5px; }.nav-copy { gap: 1px; }.nav-copy>span { font-size: 14px; }.nav-copy small { font-size: 11px; }
  .line-label { max-width: 67vw; padding: 3px 7px; }.line-label span { font-size: 11px; }.line-label small { font-size: 14px; }
  .chapter-back { top: calc(var(--header-height) + 6px); min-height: 40px; padding: 0 12px; font-size: 13px; }
  #chapter-detail { left: 12px; right: 12px; top: var(--detail-top,230px); bottom: var(--dock-clearance); padding: 16px; border-radius: 17px; transform: translateY(15px); }
  .detail-heading { gap: 5px; padding-bottom: 10px; }#detail-title { font-size: 22px; }#detail-book,#detail-count { font-size: 12px; }
  .resource { min-height: 49px; gap: 9px; padding: 10px 18px 10px 0; }.resource h3 { font-size: 15px; }
  #body-caption { left: 50%; font-size: 12px; top: calc(var(--detail-top) - 23px); padding: 0; }
  .neighbor-label { min-height:44px; padding: 2px 4px; }.neighbor-label span,.neighbor-label small { font-size: 11px; }
  #panel { inset: calc(var(--header-height) + 5px) 10px auto; width: auto; padding: 11px 15px; max-height:calc(100dvh - var(--header-height) - var(--dock-clearance) - 10px); border-radius:16px; }
  .panel-head h2 { font-size: 21px; }.site-filing { gap: 8px; font-size: 9px; }.site-filing img { width: 10px; height: 10px; }
}
@media(max-height:600px) and (orientation:landscape) {
  :root { --header-height:49px; --gutter:16px; --dock-clearance:82px; }
  .brand-mark { width: 30px; height: 30px; font-size: 25px; }.brand-copy { flex-direction: row; align-items: center; gap: 9px; }.brand-copy strong { font-size: 14px; }
  .view-tools button { width: 40px; height: 40px; }.view-tools { padding-block:0; }.catalog-link,#directory { min-height: 36px; }
  .chapter-back { min-height: 34px; top: 55px; font-size: 12px; }.destinations { bottom: 22px; width: min(580px,calc(100% - 60px)); padding: 3px; border-radius: 14px; }
  .destinations button { min-height: 40px; padding: 3px 12px; gap: 8px; border-radius: 9px; }.destination-icon { width: 30px; height: 30px; padding: 2px; }
  .nav-copy { gap: 0; }.nav-copy>span { font-size: 14px; }.nav-copy small { font-size: 10px; }
  .site-filing { bottom: 1px; font-size: 9px; }#chapter-detail { top: 59px; padding: 12px 15px; border-radius: 13px; }#detail-title { font-size: 20px; }.detail-heading { gap: 2px; padding-bottom: 6px; }
  #detail-book,#detail-count { font-size: 11px; }.resource { min-height: 39px; padding-block: 6px; }.resource h3 { font-size: 14px; }
  .line-label { min-width: 0; padding: 2px 6px; display: flex; align-items: center; gap: 7px; }.line-label span { font-size: 10px; }.line-label small { font-size: 12px; margin: 0; }
  .solar-map-label.line-label { display:block; padding:2px; }
  .solar-map-label.line-label small { margin-top:1px; }
  .solar-map-book { left:19.5%; right:auto; align-items:flex-start; flex-direction:column; gap:2px; font-size:12px; }
  .solar-map-book::after { display:none; }.solar-map-book small { font-size:10px; }
  .solar-map-one { top:calc(19% - 13px); }.solar-map-two { top:calc(73% - 13px); }
  #panel { top: 54px; max-height:calc(100dvh - 135px); padding: 8px 15px; }.panel-head h2 { font-size: 18px; }#close { height: 32px; }#panel-tabs button { min-height: 33px; }.search-field { margin: 2px 0; min-height: 35px; }.search-field input { height: 33px; }.credits { font-size: 9px; }
}
@media(max-width:370px) and (orientation:portrait) {
  .top-actions .catalog-link { display:none; }
  .credits .compact-catalog { display:inline-block; margin-right:9px; color:var(--ink); font-size:12px; }
}
@media(max-width:700px) and (max-height:630px) and (orientation:portrait) {
  .solar-map-open .line-label { min-width:0; padding:1px 5px; }
  .solar-map-open .solar-map-label.line-label { width:49vw; max-width:none; transform:translate(-50%,0); text-align:center; min-height:42px; }
  .solar-map-open .line-label::before { display:none; }
  .solar-map-open .line-label span { font-size:11px; }
  .solar-map-open .line-label small { font-size:13px; margin-top:0; }
}
@media(max-width:720px) and (max-height:560px) and (orientation:landscape) { .solar-map-two { top:calc(68% - 13px); } }
@media(max-width:700px) and (max-height:550px) and (orientation:portrait) {
  #panel { top:8px; max-height:calc(100dvh - 16px); }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
  :root { --dock-fill:#16212c; --sheet-fill:#101a26; --index-fill:#101a26; }
  .destinations, #chapter-detail, #panel { backdrop-filter:none; background-image:none; }
  #chapter-detail::after { display:none; }
  .view-tools, #directory, .chapter-back { background-color:#182632; }
}
@media (forced-colors:active) {
  :is(#chapter-detail,#panel,.destinations,.view-tools,#directory,.chapter-back,.search-field,.destination-icon) {
    background:Canvas; border-color:CanvasText; box-shadow:none; backdrop-filter:none;
  }
  :where(.destinations,#chapter-detail,#panel)::before, #chapter-detail::after { display:none; }
  .destinations button[aria-current="true"], #panel-tabs button.active { border-color:Highlight; }
  .destination-icon { stroke:ButtonText; }.destination-icon .icon-core,.destination-icon .icon-point { fill:ButtonText; }
}
