@font-face {
  font-family: Unbounded;
  src: url("unbounded-latin.woff2") format("woff2");
  font-style: normal; font-weight: 200 900; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("dm-sans-latin.woff2") format("woff2");
  font-style: normal; font-weight: 100 1000; font-display: swap;
}
:root {
  --bg: #18191c; --surface: #222428; --raised: #2d3035; --border: #3d4046;
  --ink: #f2f3f1; --muted: #b4b7bd; --lime: #c6f432; --pink: #ff5ca8;
  --display: Unbounded, system-ui, sans-serif;
  color-scheme: dark; color: var(--ink); background: var(--bg);
  font: 16px/1.5 "DM Sans", system-ui, sans-serif;
}
body { background: var(--bg); width: calc(100% - 32px); max-width: 1152px; margin: auto; padding: 0 0 36px; }
astrolib-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .65rem 2rem; padding: 19px 0; border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .65rem; font: 800 1.42rem/1 var(--display);
  letter-spacing: -.06em; text-decoration: none; color: var(--ink);
}
.wordmark::before {
  content: ""; width: 29px; height: 33px; background: var(--lime);
  border-radius: 8px; transform: rotate(-8deg);
  background-image: linear-gradient(transparent 42%,var(--bg) 42% 49%,transparent 49%),
                    linear-gradient(transparent 58%,var(--bg) 58% 65%,transparent 65%);
  background-size: 55% 100%; background-repeat: no-repeat; background-position: center;
}
astrolib-nav nav { margin: 0; gap: .3rem; padding: .25rem; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
astrolib-nav nav a {
  padding: .4rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 650;
  text-decoration: none; white-space: nowrap; color: var(--muted);
}
astrolib-nav nav a:hover { background: var(--raised); color: var(--ink); }
astrolib-nav nav a[aria-current="page"] { background: var(--lime); color: var(--bg); }
h1,h2,h3 { font-family: var(--display); letter-spacing: -.038em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 3.5vw, 3.25rem); line-height: 1.14; }
h2 { font-size: clamp(1.12rem,2vw,1.5rem); line-height: 1.35; }
h3 { font-size: 1.03rem; line-height: 1.4; }
.page-title { margin: 32px 0 20px; padding: 0; border: 0; gap: 14px; }
.page-title h1 { margin: 0; }
a { color: var(--lime); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--lime); outline-offset: 3px;
}
button,input,select { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--ink); }
button { font-weight: 650; }
button:hover:not(:disabled),button.active { background: var(--raised); border-color: var(--lime); }
input[type="checkbox"] { accent-color: var(--lime); }
.muted, th, td small { color: var(--muted); }
table { font-variant-numeric: tabular-nums; }
th,td { border-bottom-color: var(--border); }
th { background: var(--surface); }
tbody tr:hover { background: var(--surface); }
.scroll { border: 1px solid var(--border); border-radius: 14px; }
.note,.notice { background: var(--surface); color: var(--muted); border-left: 3px solid var(--pink); padding: 12px 18px; border-radius: 0 12px 12px 0; }
.note b,.notice strong { color: var(--ink); }
.card,.cards > div,.cards > a,.summary article,.summary-card,.month,.chart,aside,.activity-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.cards strong,.summary strong,.summary-card strong { color: var(--lime); font-family: var(--display); }
.summary-card.calibration strong { color: var(--pink); }
.badge,.tags span { background: var(--raised); border-color: var(--border); color: var(--ink); }
#actions a { border-radius: 999px; color: var(--lime); background: var(--surface); border: 1px solid var(--border); }
#search button:first-of-type,#decision button,#new,.hero-actions .primary {
  background: var(--lime); color: #161813; border: 1px solid var(--lime);
}
#search button:first-of-type:hover,#decision button:hover,#new:hover,.hero-actions .primary:hover { background: #d9ff6a; }
.guide { max-width: 78ch; }
.guide section { padding-top: 10px; border-top: 1px solid var(--border); }
.inventory-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); align-items: center;
  margin: 24px 0 30px; padding: clamp(24px,3.5vw,52px); gap: 2rem;
  background: radial-gradient(ellipse at 89% 82%,#393d29,transparent 48%),var(--surface);
  border: 1px solid var(--border); border-radius: 24px;
}
.hero-copy { container-type: inline-size; }
.hero-copy h1 { margin: 0; font-size: clamp(1.35rem,3.8vw,3.75rem); font-size: min(3.75rem,10cqi); line-height: 1.08; font-weight: 800; overflow-wrap: normal; }
.hero-copy h1 em { font-style: normal; color: var(--lime); white-space: nowrap; }
.hero-copy p { max-width: 44ch; color: var(--muted); margin: 16px 0 23px; }
.hero-actions { display: flex; gap: 10px 20px; align-items: center; flex-wrap: wrap; }
.hero-actions a { font-weight: 700; font-size: .95rem; }
.hero-actions .primary { display: inline-flex; gap: 1rem; align-items: center; padding: .6rem 1rem; border-radius: 16px; text-decoration: none; }
.sky-card {
  position: relative; width: min(100%,420px); justify-self: center; margin: 0; aspect-ratio: 1.85;
  background: var(--bg); border: 2px solid var(--lime); border-radius: 20px;
  box-shadow: 7px 7px 0 #2d3035,8px 8px 0 #777c64,14px 14px 0 #222428;
}
.sky-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; border-radius: 18px; }
.sky-card figcaption {
  position: absolute; inset: 0; display: grid; padding: 15px; align-content: end; justify-items: start;
  background: linear-gradient(transparent 38%,rgba(10,11,13,.87)); border-radius: inherit;
}
.sky-card span { font: 700 1.05rem var(--display); }
.sky-card b { font-size: .87rem; }
.sky-card a { position: absolute; right: 12px; bottom: 12px; color: white; font-size: .7rem; }
.inventory-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.inventory-toolbar h2 { margin: 0; }
#status { overflow-wrap: anywhere; color: var(--muted); font-size: .88rem; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 16px 0 22px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px; font-size: .9rem; color: var(--muted); }
.stat strong { display: block; font: 650 clamp(1.4rem,2.5vw,2.25rem)/1.4 var(--display); letter-spacing: -.05em; color: var(--ink); }
.stat:first-child strong { color: var(--lime); }
.inventory #search { display: flex; gap: 10px; }
.inventory #query { flex: 1; min-width: 0; }
.inventory td { overflow-wrap: anywhere; }
.inventory main > h2 { margin: 32px 0 12px; }
@media (max-width: 800px) {
  astrolib-nav { gap: .7rem; }
  astrolib-nav nav { max-width: 100%; }
  astrolib-nav nav a { padding: .35rem .55rem; }
  .inventory-hero { grid-template-columns: 1fr; gap: 32px; }
  .inventory-hero .sky-card { width: min(100%, 420px); }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .inventory-hero { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .sky-card { width: 100%; aspect-ratio: 2.45; }
  .hero-copy h1 { margin: 0; }
  .page-title { margin: 20px 0 14px; }
  .stat { padding: 12px; }
}

.reserve-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: start; }
.reserve-grid article { min-width: 0; width: 100%; aspect-ratio: 5 / 7; min-height: 260px; display: grid; grid-template-rows: 42% minmax(0,1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.reserve-grid h3 { margin: 0; position: relative; isolation: isolate; display: flex; align-items: end; padding: 12px 16px; }
.reserve-grid h3 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; filter: grayscale(1); }
.reserve-grid h3.illustrated img { opacity: 1; }
.reserve-grid h3.illustrated::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent,#101114d9); }
.reserve-grid article > div { border-top: 1px solid var(--border); padding: clamp(10px,1.5vw,18px); gap: 8px; display: flex; flex-direction: column; align-items: start; min-width: 0; }
.reserve-metrics { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; }
.reserve-metrics dt { font-size: .78rem; color: var(--muted); }
.reserve-metrics dd { margin: 0; font-size: clamp(.95rem,1.6vw,1.4rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.reserve-order { display: flex; align-items: center; gap: .6em; margin: 0; }
.reserve-order select { width: auto; margin: 0; }
#reserve-unknown { margin: 16px 0; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; }
#reserve-unknown summary { cursor: pointer; font-weight: 650; }
#unknown-volume { display: inline-block; margin-inline-start: .6em; color: var(--muted); font-weight: 400; }
#reserve-unknown .scroll { margin-top: 12px; }
@media (max-width: 950px) { .reserve-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 710px) { .reserve-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } }
@media (max-width: 480px) {
  .reserve-grid article { grid-template-rows: 34% minmax(0,1fr); min-height: 282px; }
  .reserve-grid article > div { gap: 4px; }
  .reserve-grid h3 { padding: 10px; }
  .reserve-metrics { gap: 0 10px; }
  .reserve-grid small { font-size: .72rem; }
}
@media (max-width: 359px) { .reserve-grid { grid-template-columns: minmax(0,280px); justify-content: center; } }
.reserve-grid h3 span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.reserve-grid article a { margin-top: auto; font-size: .9rem; }
.card-filters { display: grid; gap: 4px; width: 100%; }
.filter-row {
  display: grid; grid-template-columns: repeat(5,minmax(0,27px)); align-content: center; gap: 4px;
  height: 35px; padding: 2px 5px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg);
}
.filter-dot { display: grid; place-items: center; align-self: center; width: 100%; aspect-ratio: 1;
  border-radius: 50%; background: var(--channel); font-size: 10px; font-weight: 800; line-height: 1;
  color: #18191c; white-space: nowrap; overflow: hidden; }
.filter-dot:focus-visible { outline: 2px solid white; outline-offset: -2px; }
.reserve-grid small { display: block; color: var(--muted); }
.survey-credit { font-size: .85rem; }
a.stat { text-decoration: none; }
a.stat:hover { border-color: var(--lime); }
.inventory-charts { display: grid; grid-template-columns: minmax(260px,1fr) minmax(0,2fr); gap: 16px; }
.chart-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(16px,2.2vw,30px); min-width: 0; }
.chart-panel h2 { margin: 0 0 12px; }
.chart-panel p { margin: 0 0 12px; }
#pie { width: min(68%,188px); aspect-ratio: 1; margin: 22px auto; border-radius: 50%; background: var(--raised); }
#pie-legend { list-style: none; padding: 0; }
#pie-legend li { display: grid; grid-template-columns: 10px 1fr auto 4em; align-items: center; gap: 8px; padding: 4px 0; }
#pie-legend i { width: 9px; height: 9px; border-radius: 50%; }
#pie-legend strong, #pie-legend small { font-variant-numeric: tabular-nums; text-align: right; }
#pie-legend small { color: var(--muted); }
#tree-crumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; margin: 12px 0; overflow-wrap: anywhere; }
#tree-crumbs button { color: var(--lime); border: 0; background: none; padding: 0; }
#treemap { position: relative; height: clamp(260px,36vh,400px); overflow: hidden; border-radius: 8px; background: var(--bg); }
#treemap p { padding: 16px; }
#treemap .directory-tile { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: start; min-width: 0; min-height: 0; overflow: hidden; padding: 0; border-radius: 0; border: none; box-shadow: inset 0 0 0 1px var(--surface);
  color: #f5fbef; background: hsl(calc(84 + var(--tile-tone)*12) 24% calc(26% + var(--tile-tone)*1%)); }
.directory-tile span, .directory-tile b { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; }
.directory-tile b { font: 650 1.05rem var(--display); }
#treemap .directory-tile:is(:hover,:focus-visible) { box-shadow: inset 0 0 0 2px var(--lime); z-index: 1; }
#directory-choice { margin: 12px 0 0; width: 100%; }
#explorer-files { margin: 20px 0; }
#explorer-files > summary { cursor: pointer; font-weight: 650; }
@media(max-width:760px) { .inventory-charts { grid-template-columns: 1fr; } }

.project-trail {
  display: flex; flex-wrap: nowrap; gap: .65rem; align-items: center;
  justify-content: flex-start; white-space: nowrap; margin: 0 0 1rem; padding: .4rem .25rem;
}
.project-trail .project-trail-identity {
  color: var(--lime); font-weight: 750; max-width: min(40%,19rem); overflow: hidden; text-overflow: ellipsis;
}
.project-trail .project-trail-clear {
  flex: none; color: var(--ink); border: 1px solid var(--border); border-radius: 8px;
  padding: .3rem .55rem; font-size: .8rem; text-decoration: none;
}
.project-trail .project-trail-clear:hover { border-color: var(--lime); }
.project-trail-steps { display: flex; min-width: 0; gap: .65rem; overflow-x: auto; padding: .25rem; }
.project-trail-steps a { flex: none; color: var(--muted); }
.project-trail-steps a[aria-current="step"] { color: var(--lime); font-weight: 750; }
.project-trail-steps a + a::before { content: "›"; margin-right: .65rem; color: var(--muted); }
.reserve-grid article > div:has(.reserve-project-links) { overflow-y: auto; }
.reserve-project-links { display: grid; gap: .15rem; font-size: .78rem; }
.reserve-detail { display: grid; gap: .25rem; width: 100%; }
.integration-bands { display: grid; grid-template-columns: repeat(auto-fit,minmax(8rem,1fr)); gap: .35rem; }
.integration-bands > div { display: flex; align-items: center; justify-content: space-between;
  padding: .25rem .45rem; gap: .5rem; border: 1px solid var(--border); border-radius: 9px; }
.project-pick-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(12rem,1fr)); gap: .6rem; margin-bottom: 1rem; }
.project-pick-cards a { display: grid; padding: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }

.nav-short-label { display: none; }
.layout-disclosure > summary { display: none; }
@media (max-width: 720px), (pointer: coarse) and (max-height: 500px) {
  html {
    --dock-height: calc(4rem + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(var(--dock-height) + 1rem);
  }
  body {
    width: auto;
    margin-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(var(--dock-height) + 1.5rem);
    overflow-wrap: anywhere;
  }
  astrolib-nav { padding: max(.65rem, env(safe-area-inset-top, 0px)) 0 .65rem; }
  .wordmark { font-size: 1.15rem; min-height: 44px; }
  .wordmark::before { width: 23px; height: 26px; }
  astrolib-nav .main-navigation {
    position: fixed; z-index: 20; inset: auto 0 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .2rem; min-height: var(--dock-height);
    margin: 0; border-radius: 0; border-width: 1px 0 0;
    padding: .3rem max(.35rem, env(safe-area-inset-right, 0px))
      calc(.3rem + env(safe-area-inset-bottom, 0px)) max(.35rem, env(safe-area-inset-left, 0px));
  }
  astrolib-nav .nav-full-label { display: none; }
  astrolib-nav .nav-short-label, astrolib-nav nav .nav-more {
    display: grid; justify-items: center; align-content: center; gap: .2rem;
    font: 700 .72rem/1.1 "DM Sans", system-ui, sans-serif;
  }
  astrolib-nav nav > a, astrolib-nav nav .nav-more {
    display: grid; place-items: center; text-align: center; min-width: 0; min-height: 48px;
    margin: 0; padding: .2rem .1rem; border-radius: 10px;
  }
  astrolib-nav nav svg {
    width: 21px; height: 21px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  astrolib-nav nav .nav-more { border-color: transparent; color: var(--muted); }
  astrolib-nav nav .nav-more:is(.current,[aria-expanded="true"]) { color: var(--lime); background: var(--raised); }
  astrolib-nav .nav-extra {
    position: absolute; inset: auto max(.5rem, env(safe-area-inset-right, 0px)) calc(100% + .4rem) auto;
    display: grid; gap: .25rem; min-width: min(15rem, 90vw); max-height: calc(100dvh - var(--dock-height) - 1rem);
    overflow: auto; padding: .4rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 .45rem 1.5rem #0008;
  }
  astrolib-nav .nav-extra a { display: flex; align-items: center; min-height: 44px; border-radius: 8px; }
  main, section, aside, form, fieldset, input, select, textarea, .columns > * { min-width: 0; }
  input, select, textarea { max-width: 100%; font-size: 16px; }
  button, input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: 44px; }
  button { max-width: 100%; }
  .columns { gap: 12px; grid-template-columns: minmax(0, 1fr); }
  .toolbar, .bar { display: flex; gap: .5rem .75rem; align-items: center; }
  .pager { gap: .45rem .7rem; }
  .pager button { flex: 1; padding-inline: .55rem; }
  .pager span { font-size: .84rem; text-align: center; }
  .scroll { max-width: 100%; overscroll-behavior-inline: contain; }
  .scroll > table:not(.frame-list):has(thead th:nth-child(4)) { min-width: 34rem; }
  td, th { padding: .55rem .45rem; }
  details:not(.layout-disclosure) > summary { padding-block: .6rem; }
  .layout-disclosure > summary { display: list-item; padding: .7rem .8rem; cursor: pointer; font-weight: 700; }
  .layout-disclosure { border: 1px solid var(--border); border-radius: 10px; }
  .project-trail { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 .4rem; margin-bottom: .5rem; }
  .project-trail .project-trail-identity { max-width: none; }
  .project-trail .project-trail-clear, .project-trail-steps a { display: flex; align-items: center; min-height: 44px; }
  .project-trail-steps { grid-column: 1/-1; padding: .1rem; }
  .inventory .inventory-hero { margin-top: 1rem; }
  .inventory .inventory-toolbar { gap: .5rem; }
  .inventory .inventory-toolbar label { min-width: 0; }
  .inventory .inventory-toolbar select { min-width: 0; }
  .inventory #search { display: flex; flex-wrap: wrap; gap: .5rem; }
  .inventory #search input { flex: 1 1 10rem; }
  .inventory #search button { margin: 0; }
  .atlas-page .workspace { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .atlas-page #search { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: .75rem 0; gap: .4rem; }
  .atlas-page #search :is(label,input) { grid-column: 1/-1; margin: 0; width: 100%; }
  .atlas-page #search button { margin: 0; }
  .atlas-page :is(.chart-head,.chart-foot,.layers,.legend) { padding-inline: .65rem; gap: .45rem .65rem; }
  .atlas-page .controls [id^="zoom-"] { min-width: 44px; }
  .atlas-page .map-label-full { display: none; }
  .atlas-page .map-label-short { display: inline; }
  .atlas-page .sky { height: clamp(190px, 48svh, 380px); }
  .atlas-page aside { padding: .75rem; }
  .atlas-page #message { bottom: calc(var(--dock-height) + .5rem); }
  .atlas-page #offset-histogram div { grid-template-columns: minmax(0,7em) minmax(0,1fr) auto; }
  .atlas-page .map-options { border-width: 0; border-radius: 0; }
  .history-page .calendar-filters form { margin: 0; padding: 0 .75rem .75rem; }
  .history-page .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem .75rem; }
  .history-page .filter-grid label { margin: 0; }
  .history-page #calendar { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .history-page .month { padding: .7rem; }
  .history-page .summary-cards { gap: .6rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-page .review-tabs {
    flex-wrap: nowrap; justify-content: start; gap: .4rem; margin: 1rem 0 .5rem;
    padding: .3rem .25rem .5rem; overflow-x: auto; overscroll-behavior-inline: contain;
  }
  .review-page .review-tabs button { flex: none; white-space: nowrap; }
  .review-page .quality-chart-controls label { flex: 1 1 100%; margin: 0; }
  .review-page .quality-plots figure { padding: .6rem .45rem; }
  .review-page .quality-plots figcaption { display: grid; }
  .review-page .quality-plots svg text { font-size: 17px; }
  .projects-page #summary > div { flex: 1 1 8rem; min-width: 0; }
  .projects-page #project-frames .bar label { min-width: 0; }
  .preparation-page :is(.target-grid,.panel-grid) { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .preparation-page :is(.summary,.calibration-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
  .preparation-page .summary article, .preparation-page .calibration-grid div { padding: .75rem; }
  .preparation-page .channel-row { grid-template-columns: auto minmax(0,1fr) auto; gap: .45rem; }
  .preparation-page #search-form label { flex-basis: 100%; min-width: 0; margin: 0; }
  .preparation-page #search-form button { margin: 0; }
  .settings-page #indexes { padding-inline-start: 1rem; }
  .settings-page #indexes li { padding: .4rem 0; }
  .settings-page #indexes button { margin-inline-start: .4rem; }
  .guide-page .guide ol { padding-inline-start: 1.5rem; }
}

.frame-list { table-layout: fixed; }
.frame-list .frame-check { width: 3rem; text-align: center; }
.frame-check input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin: .15rem 0; }
.frame-filename {
  display: block; max-width: 100%; overflow: hidden; white-space: nowrap;
  direction: rtl; text-align: left; text-overflow: ellipsis;
}
.frame-compact { display: none; }
.inventory-files th:nth-child(2), .inventory-files th:nth-child(3) { width: 7.5rem; }
@media (max-width: 720px), (pointer: coarse) and (max-height: 500px) {
  .frame-list .frame-wide { display: none; }
  .frame-compact { display: grid; gap: .25rem; margin-top: .4rem; }
  .frame-list tbody tr + tr td { padding-top: .65rem; }
  .inventory-files th:nth-child(2) { width: 4.1rem; }
  .inventory-files th:nth-child(3) { width: 6.2rem; }
  .inventory-files details { font-size: .8rem; }
}
