@font-face {
  font-family: 'Barlow Condensed';
  src: url('media/barlow-condensed-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #131416;
  --paper: #202124;
  --ink: #0c0d0e;
  --text: #f5f2ea;
  --muted: #bbb9b2;
  --line: #38393c;
  --control-line: #747477;
  --price: #74df96;
  --signal: #ffd126;
  --signal-hover: #ffe478;
  --signal-wash: #332d19;
  --signal-edge: #8d7526;
  accent-color: var(--signal);
  --radius: .55rem;
  --sidebar: 13.25rem;
  --header: 4.5rem;
  --body: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--text); font: 1rem/1.55 var(--body); }
a { color: var(--signal); text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
h1, h2 { font-family: var(--display); letter-spacing: -.025em; }
h3 { font-size: 1.06rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 3; transform: translateY(-200%); padding: .65rem 1rem; color: var(--ink); background: var(--signal); }
.skip-link:focus { transform: none; }

.topbar { position: sticky; top: 0; z-index: 2; background: var(--ink); border-bottom: 1px solid var(--line); }
.topbar-inner { display: grid; grid-template-columns: calc(var(--sidebar) - 1.5rem) minmax(12rem, 34rem) auto; align-items: center; gap: 1.5rem; min-height: var(--header); padding: .7rem 1.5rem; }
.wordmark { display: inline-flex; width: max-content; align-items: center; gap: .65rem; color: var(--text); font: 700 1.22rem/1 var(--display); text-decoration: none; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .27rem; background: var(--signal); color: var(--ink); font: 700 1.15rem/1 var(--display); }
.wordmark strong { font-size: 1.55rem; letter-spacing: -.025em; }
.preferences { display: flex; align-items: center; justify-self: end; gap: .9rem; }
.mode { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .86rem; }
.mode select { padding-block: .4rem; color: var(--text); }
select, button, textarea { background: var(--paper); border: 1px solid var(--control-line); border-radius: .5rem; padding: .55rem .8rem; }
select { max-width: 100%; }
button:hover { border-color: var(--signal); }
#search-form { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .3rem .6rem .3rem .8rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); }
#search-form:focus-within { outline: 2px solid var(--signal); outline-offset: 1px; }
#search { width: 100%; min-width: 0; padding: .32rem 0; border: 0; background: transparent; outline: 0; caret-color: var(--signal); }
#search::-webkit-search-cancel-button { display: none; }
#search::placeholder { color: var(--muted); opacity: 1; }
.search-icon { position: relative; display: block; width: .87rem; height: .87rem; flex: none; border: 1.6px solid var(--muted); border-radius: 50%; }
.search-icon::after { position: absolute; right: -.26rem; bottom: -.14rem; width: .35rem; height: 1.6px; background: var(--muted); transform: rotate(45deg); content: ''; }
.search-shortcut { min-width: 1.35rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--paper); color: var(--muted); text-align: center; }
.clear-search { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; padding: 0; border-color: transparent; background: transparent; font-size: 1.22rem; line-height: 1; }
#search-form:has(.clear-search:not([hidden])) .search-shortcut { display: none; }

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: calc(100dvh - var(--header)); }
.sidebar { position: sticky; top: var(--header); display: flex; flex-direction: column; align-self: start; min-height: calc(100dvh - var(--header)); padding: 1.2rem .9rem .9rem; background: var(--paper); border-right: 1px solid var(--line); }
#sections { display: grid; gap: .3rem; }
.nav-group { display: grid; gap: .25rem; margin-top: .6rem; }
.nav-group p { padding: .3rem .7rem .18rem; color: var(--muted); font-size: .8rem; font-weight: 650; }
#sections a { display: flex; align-items: center; gap: .65rem; min-height: 2.55rem; padding: .52rem .7rem; border: 1px solid transparent; border-radius: .52rem; color: var(--muted); font-size: .94rem; text-decoration: none; }
#sections a:hover { background: var(--page); color: var(--text); }
#sections a[aria-current] { border-color: var(--signal); background: var(--signal); color: var(--ink); font-weight: 700; }
.source { margin-top: auto; padding: .95rem .7rem 0; color: var(--muted); font-size: .8rem; }
.workspace { width: min(100%, 80rem); min-width: 0; justify-self: center; padding: clamp(1.15rem, 3.2vw, 3.2rem); }
#content { min-height: 10rem; scroll-margin-top: calc(var(--header) + 1.1rem); }
#content [tabindex='-1'] { scroll-margin-top: calc(var(--header) + 1.1rem); }
.page-title { margin: 0 0 .65rem; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; }

.glyph { position: relative; display: inline-block; flex: none; width: 1.15rem; height: 1.15rem; color: inherit; }
.glyph::before, .glyph::after { position: absolute; content: ''; }
.glyph::before { inset: .13rem .19rem; border: 1.5px solid currentColor; border-radius: .18rem; }
.glyph::after { inset: .43rem .37rem auto; height: .26rem; border-block: 1.5px solid currentColor; }
.glyph-all::before { inset: .37rem .23rem .13rem; border-radius: .08rem; }
.glyph-all::after { inset: .17rem .31rem auto; width: .53rem; height: .53rem; border: 1.5px solid currentColor; border-right: 0; border-bottom: 0; transform: rotate(45deg); }
.glyph-items::before { inset: .21rem .13rem .14rem; }
.glyph-items::after { inset: .39rem .18rem auto; height: 0; border-bottom: 0; }
.glyph-maps::before { inset: .17rem .09rem; transform: skewY(-10deg); }
.glyph-maps::after { inset: .22rem .43rem; width: .29rem; height: auto; border: 0; border-inline: 1.4px solid currentColor; }
.glyph-hideout::before { inset: .37rem .13rem .14rem; border-radius: .13rem; }
.glyph-hideout::after { inset: .18rem .28rem auto; width: .56rem; height: .27rem; border: 1.5px solid currentColor; border-bottom: 0; border-radius: .16rem .16rem 0 0; }
.glyph-crafts::before { inset: .17rem; border-radius: 50%; }
.glyph-crafts::after { inset: .46rem; width: .22rem; height: .22rem; border: 1.4px solid currentColor; border-radius: 50%; }
.glyph-saved::before { inset: .13rem .23rem .22rem; border-bottom: 0; border-radius: .16rem .16rem 0 0; }
.glyph-saved::after { inset: .69rem .31rem auto; width: .53rem; height: .53rem; transform: rotate(45deg); border: 1.5px solid currentColor; border-right: 0; border-bottom: 0; }
.glyph-raid::before { inset: .15rem; border-radius: 50%; }
.glyph-raid::after { inset: .42rem; width: .31rem; height: .31rem; border: 1.5px solid currentColor; border-radius: 50%; }

.intro, .section-cover { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.intro { display: grid; align-items: end; padding: clamp(1.6rem, 3.8vw, 3.4rem); min-height: clamp(21rem, 30vw, 28rem); margin-bottom: 1.65rem; border-radius: var(--radius); }
.hero-scene, .section-cover img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.hero-scene { object-position: 55% 52%; }
.intro::after, .section-cover::after { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(85deg, #090a0bf5 0%, #0d0e10e0 25%, #10111466 58%, transparent 85%), linear-gradient(0deg,#090a0c70,transparent 58%); }
.hero-context { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; color: var(--text); font: 700 .77rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .13em; }
.hero-context::before { width: 1.75rem; height: 2px; background: var(--signal); content: ''; }
.intro h1 { margin-bottom: .85rem; font-size: clamp(3.9rem, 6.1vw, 6.8rem); line-height: .83; text-transform: uppercase; letter-spacing: -.025em; }
.intro h1 em { display: block; color: var(--signal); font-style: normal; }
.hero-summary { max-width: 39ch; margin-bottom: 1.25rem; color: var(--text); line-height: 1.45; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.hero-secondary { color: white; font-size: .94rem; font-weight: 650; }
.hero-secondary:hover { color: var(--signal); }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; padding: .48rem .83rem; border: 1px solid var(--line); border-radius: .48rem; background: var(--paper); color: var(--text); font-size: .94rem; font-weight: 600; text-decoration: none; }
.action:hover { border-color: var(--signal); }
.action.primary { border-color: var(--signal); background: var(--signal); color: var(--ink); }
.action.primary:hover { background: var(--signal-hover); }
.action[aria-pressed='true'] { border-color: var(--signal-edge); background: var(--signal-wash); color: var(--signal); }
.action.quiet { min-height: 2.2rem; border-color: transparent; background: transparent; color: var(--muted); }
.action.quiet:hover { border-color: var(--line); background: var(--page); }
.action.hero-action { gap: .8rem; border-color: var(--signal); background: var(--signal); color: var(--ink); }
.action.hero-action::after, .cover-copy::after { content: '→'; font-family: system-ui, sans-serif; }
.action.hero-action:hover { background: var(--signal-hover); }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: .85rem 0; }

.home-index h2 { display: flex; align-items: center; gap: 1rem; margin-bottom: .85rem; font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.01em; }
.home-index h2::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.cover-grid, .index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.cover-card, .index-link { color: var(--text); text-decoration: none; }
.cover-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.cover-image { aspect-ratio: 2.65; overflow: hidden; background: var(--ink); }
.cover-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cover-copy { position: relative; padding: .8rem 2.3rem .9rem 1rem; }
.cover-copy h3 { font: 700 1.85rem/.99 var(--display); }
.cover-copy p, .index-link small { display: block; margin-top: .35rem; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.cover-copy::after { color: var(--signal); position: absolute; right: 1rem; top: .7rem; font-size: 1.3rem; }
.index-grid { margin-top: 1rem; }
.recent-panel { margin-top: 1.8rem; }
.recent-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-bottom: .6rem; }
.recent-head h2 { flex: 1; margin: 0; }
.recent-panel .index-link { height: 100%; overflow-wrap: anywhere; }
.index-link { display: flex; align-items: center; gap: .8rem; padding: .85rem .35rem; border-top: 1px solid var(--line); }
.index-link .glyph { margin: .36rem; color: var(--signal); background: var(--signal-wash); box-shadow: 0 0 0 .4rem var(--signal-wash); border-radius: .13rem; }
.index-link strong { font-size: 1rem; }
.index-link small { margin-top: .1rem; }
.cover-card:hover, .record:hover { border-color: var(--signal-edge); }
.index-link:hover strong { text-decoration: underline; }
.section-cover { display: grid; align-items: end; min-height: 9.8rem; margin-bottom: 1.15rem; padding: 1.3rem 1.6rem; border-radius: var(--radius); }
.section-cover img { object-position: center 44%; }
.section-cover .page-title { margin-bottom: .25rem; }
.section-cover p { max-width: 38ch; }
.map-record { display: grid; align-content: start; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; gap: 0; }
.map-record > span:last-child { padding: .7rem .8rem; }
.sheet-thumb { display: grid; place-items: center; aspect-ratio: 2.55; width: 100%; overflow: hidden; background: var(--ink); color: var(--muted); }
.map-record .sheet-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.map-sheet { display: block; max-width: 51rem; margin: 1.25rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; background: var(--page); }
.map-sheet img { display: block; width: 100%; height: clamp(12rem, 27vw, 22rem); object-fit: contain; background: var(--ink); }
.map-sheet > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .7rem 1rem; }
.map-sheet > span > span { color: var(--signal); text-decoration: underline; }
.group { margin-bottom: 1.65rem; }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem .8rem; margin: 0 0 .62rem; }
.group-head h2 { font-size: 1.38rem; }
.group-head a { margin-left: auto; font-size: .9rem; }
.result-count { color: var(--muted); font-size: .9rem; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin: .8rem 0 1.15rem; }
.filters label, .extract-filter { display: grid; gap: .3rem; color: var(--muted); font-size: .88rem; }
.filters select { width: 100%; max-width: 22rem; color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .6rem; }
.record:not(.map-record) { display: flex; align-items: center; gap: .65rem; min-height: 4.6rem; padding: .7rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.record img { width: 3.1rem; height: 3.1rem; flex: none; object-fit: contain; border-radius: .3rem; background: var(--page); }
.record strong { display: block; line-height: 1.25; }
.record small { display: block; margin-top: .15rem; color: var(--muted); font-size: .86rem; }
.record.item-record { flex-direction: column; align-items: stretch; justify-content: space-between; }
.item-heading { display: flex; gap: .65rem; align-items: center; }
.purchase-summary { display: grid; gap: .28rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.purchase-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .15rem .5rem; align-items: baseline; color: var(--muted); font-size: .82rem; }
.purchase-row b { margin-inline-start: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.more { margin-top: .85rem; color: var(--signal); }

.detail { max-width: 64rem; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow-wrap: anywhere; }
.detail-back { display: inline-block; margin-bottom: .7rem; font-size: .9rem; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .8rem; }
.detail-head .actions { margin: 0; }
.detail p, .detail li { max-width: 75ch; }
.detail p { margin-bottom: .35rem; }
.detail h2 { font-size: 1.17rem; margin-bottom: .38rem; }
.detail > section { margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.detail ul { padding-inline-start: 1.3rem; margin: .5rem 0; }
.detail li + li { margin-top: .25rem; }
.detail-image { display: block; width: auto; max-width: min(100%, 21rem); max-height: 11rem; margin: .65rem 0; object-fit: contain; border-radius: .38rem; background: var(--page); }
.disclosure { max-width: 48rem; margin: .65rem 0; padding: .72rem .9rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--page); }
.disclosure summary { cursor: pointer; color: var(--signal); font-weight: 650; }
.quest-table-wrap { overflow-x: auto; margin-block: .7rem; }
.quest-table { width: 100%; border-collapse: collapse; text-align: start; font-size: .94rem; }
.quest-table th, .quest-table td { padding: .55rem; border-bottom: 1px solid var(--line); text-align: start; }
.quest-table th, .quest-table small { color: var(--muted); }
.quest-table small { display: block; }
.quest-item { display: flex; align-items: center; gap: .6rem; }
.quest-item img { width: 2rem; height: 2rem; object-fit: contain; }
.objective-maps { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .88rem; }
.quest-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem; margin-block: .7rem; }
.quest-gallery figure { margin: 0; min-width: 0; }
.quest-gallery a { display: block; }
.quest-gallery img { width: 100%; height: 8rem; object-fit: contain; background: var(--ink); display: block; border-radius: .35rem; }
.quest-gallery span { display: block; padding-block: .35rem; font-size: .88rem; }
.disclosure[open] summary { margin-bottom: .65rem; }
.extract-filter { display: inline-grid; margin: .45rem 0 .15rem; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices caption { margin-bottom: .38rem; text-align: left; color: var(--muted); }
.prices th, .prices td { padding: .38rem .2rem; border-bottom: 1px solid var(--line); text-align: right; }
.prices th:first-child { text-align: left; }
.prices tbody th { font-weight: 400; }

.fieldbook { max-width: 64rem; }
.fieldbook > p.muted { margin-bottom: .8rem; }
.field-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .75rem; align-items: start; }
.field-panel { margin: .65rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow-wrap: anywhere; }
.field-panel h2, .field-panel h3 { margin-bottom: .38rem; font-size: 1.13rem; }
.field-panel textarea::placeholder { color: var(--muted); opacity: 1; }
.field-panel > p { margin-bottom: .55rem; }
.field-panel textarea { display: block; width: 100%; min-height: 8rem; margin: .5rem 0 .3rem; resize: vertical; background: var(--page); }
.field-panel progress { display: block; width: 100%; height: .55rem; margin: .55rem 0 .4rem; accent-color: var(--signal); }
.field-list { margin: 0; padding: 0; list-style: none; }
.field-panel.field-list { margin: .8rem 0; padding-inline: 1rem; }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .52rem 0; border-top: 1px solid var(--line); }
.field-row:first-child { border-top: 0; }
.field-row small { display: block; color: var(--muted); font-size: .86rem; }
.check-task { display: flex; align-items: flex-start; gap: .55rem; }
.check-task input { width: 1.12rem; height: 1.12rem; flex: none; margin-top: .24rem; accent-color: var(--signal); }
.check-task[data-done='true'] .task-name { text-decoration: line-through; color: var(--muted); }
.notice { margin: .75rem 0; padding: .75rem .9rem; border: 1px solid var(--signal-edge); border-radius: .5rem; background: var(--signal-wash); color: var(--text); }

.map-record { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--text); text-decoration: none; }
.page-title { letter-spacing: -.015em; }
.detail-back::before { content: '← '; }
.action[aria-pressed='true']::before { content: '✓'; margin-right: .4em; }
@media (min-width: 801px) {
  .sidebar { background: var(--ink); border-color: var(--line); }
  .nav-group p { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
  #sections a { color: var(--text); }
  #sections a:not([aria-current]):hover { background: var(--paper); color: var(--text); }
  .source { color: var(--muted); }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-content { animation: arrive .38s ease-out both; }
  .hero-scene { animation: settle .85s ease-out both; }
  .cover-image img, .cover-copy::after, .cover-card, .sheet-thumb img, .hero-action::after { transition: transform .24s ease-out, box-shadow .24s ease-out; }
  #sections a, .action { transition: background-color .16s, color .16s, border-color .16s; }
  .disclosure[open] > :not(summary) { animation: arrive .18s ease-out; }
  @media (hover: hover) {
    .cover-card:hover, .cover-card:focus-visible { transform: translateY(-3px); box-shadow: 0 6px 15px #0006; }
    .cover-card:hover img, .map-record:hover img { transform: scale(1.035); }
    .cover-card:hover .cover-copy::after, .hero-action:hover::after { transform: translateX(3px); }
  }
}
@keyframes arrive { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.035); } to { transform: none; } }

@media (max-width: 1120px) {
  :root { --sidebar: 12rem; }
  .topbar-inner { grid-template-columns: calc(var(--sidebar) - 1.5rem) minmax(12rem, 1fr) auto; gap: .85rem; }
  .mode { display: grid; gap: .05rem; }
  .preferences { gap: .5rem; }
}

@media (max-width: 800px) {
  :root { --header: 0px; }
  .topbar, .sidebar { position: static; }
  .topbar-inner { grid-template-columns: minmax(0, 1fr) auto; padding: .65rem 1rem; }
  #search-form { grid-area: 2 / 1 / 3 / -1; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'navigation' 'workspace' 'source'; grid-template-rows: auto 1fr auto; min-height: 0; }
  .sidebar { display: contents; }
  #sections { grid-area: navigation; padding: .55rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  #sections, .nav-group { display: flex; gap: .12rem; margin: 0; }
  #sections { overflow-x: auto; scrollbar-width: thin; }
  #sections a { flex: none; white-space: nowrap; }
  .nav-group p { display: none; }
  #sections a { gap: .33rem; min-height: 2.25rem; padding: .33rem .45rem; font-size: .9rem; }
  .source { grid-area: source; margin: 0; padding: .75rem 1rem; border-top: 1px solid var(--line); }
  .workspace { grid-area: workspace; padding: 1.05rem 1rem 2rem; }
}

@media (max-width: 560px) {
  .field-layout, .cover-grid, .index-grid { grid-template-columns: 1fr; }
  .cover-image { aspect-ratio: 3.1; }
  .intro { min-height: 20rem; margin-bottom: 1.35rem; padding: 1.35rem; }
  .intro::after { background: linear-gradient(90deg, #090a0bee, #0b0c0da8 72%, #0b0c0d40); }
  .hero-summary { max-width: 29ch; }
  .mode span { font-size: .75rem; }
  .wordmark { font-size: 1.07rem; gap: .4rem; }
  .mark { width: 1.8rem; height: 1.8rem; }
  .preferences { gap: .35rem; }
  .mode select { max-width: 8.5rem; padding: .22rem .28rem; }
  .detail { padding: .9rem; }
  .field-layout { gap: 0; }
  .search-shortcut { display: none; }
}

@media (max-width: 365px) { .topbar-inner { column-gap: .35rem; } .mark { display: none; } .index-grid { grid-template-columns: 1fr; } }

.station-detail .detail-head { align-items: center; justify-content: flex-start; gap: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--ink); border-left: 3px solid var(--signal); }
.station-detail .detail-head .detail-image { width: 5rem; height: 5rem; margin: 0; object-fit: contain; }
.station-detail .detail-head .actions { margin-inline-start: auto; }
.station-level { margin-top: .65rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.station-level summary { padding: .8rem 1rem; background: var(--page); cursor: pointer; }
.station-level summary::marker { color: var(--signal); }
.station-level summary:focus-visible { outline-offset: -3px; }
.station-level summary strong { margin-inline: .35rem .85rem; }
.station-level summary small, .station-material small { color: var(--muted); }
.station-body { padding: 1rem; }
.station-body h3 { margin-block: .65rem .35rem; }
.station-detail .station-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .5rem; padding: 0; list-style: none; }
.station-detail .station-material { display: flex; align-items: center; gap: .55rem; margin: 0; padding: .65rem; border-radius: .4rem; background: var(--page); }
.station-material img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.station-material small { display: block; }
.station-material b { margin-inline-start: auto; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }

.level-estimate { display: inline-block; margin-inline-start: .65rem; font-size: .85rem; }
.price-amount { color: var(--price); font-variant-numeric: tabular-nums; }

.item-quote { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.item-placeholder, .index-link > img { width: 2.5rem; height: 2.5rem; flex: none; object-fit: contain; }
.item-placeholder { display: inline-grid; place-items: center; background: var(--page); color: var(--muted); }

.hideout-nav { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.hideout-nav a { padding: .55rem .85rem; text-decoration: none; color: var(--muted); }
.hideout-nav a[aria-current] { color: var(--signal); box-shadow: inset 0 -2px var(--signal); }
.craft-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.craft-table { width: 100%; min-width: 62rem; border-collapse: collapse; font-size: .86rem; background: var(--paper); }
.craft-table th, .craft-table td { text-align: left; padding: .7rem .55rem; border-bottom: 1px solid var(--line); }
.craft-table thead th { background: var(--ink); color: var(--muted); }
.craft-table tbody th { min-width: 10rem; font-weight: 500; }
.craft-table .craft-inputs { min-width: 13rem; }
.craft-inputs > .quest-item + .quest-item { margin-top: .5rem; }
.craft-table th:nth-child(n+4), .craft-table .craft-money { text-align: right; }
.craft-money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.craft-loss { color: #ff8585; }
.craft-note { font-size: .85rem; color: var(--muted); margin: .6rem 0; }

.craft-table .craft-sort { padding: .3rem 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.craft-sort::after { content: '↕' / ''; margin-inline-start: .25em; }
.craft-table [aria-sort] .craft-sort { color: var(--signal); }
.craft-table [aria-sort="ascending"] .craft-sort::after { content: '↑' / ''; }
.craft-table [aria-sort="descending"] .craft-sort::after { content: '↓' / ''; }
