:root {
  --brand: #1F3B2E; --accent: #F6821F; --accent-hover: #E0700F;
  --bg: #fff; --panel: #fff; --panel-2: #FAFAFA;
  --line: #E5E5E5; --line-strong: #D4D4D4;
  --text: #313131; --muted: #6B6B6B; --head: #1F1F1F;
  --ok-bg: #E8F5EC; --ok-fg: #17663A;
  --r: 8px; --r-sm: 6px;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-family: var(--sans); color: var(--head); }
h1 { font-size: 28px; font-weight: 600; letter-spacing: -.5px; line-height: 1.15; }
h2 { font-size: 15px; font-weight: 600; }

.main { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 22px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.hero {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--r);
  overflow: hidden; background: var(--panel-2); border: 1px solid var(--line);
}
.hero .placeholder, .hero .full {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero .full { opacity: 0; transition: opacity .4s; }
.hero.loaded .full { opacity: 1; }
.hero.loaded .placeholder { display: none; }
.no-preview {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.panel-empty { padding: 20px 18px; margin: 0; font-size: 14px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 20px;
  font: 500 11px/1.4 var(--mono); letter-spacing: .04em; white-space: nowrap;
}
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); }
.exports { width: 100%; border-collapse: collapse; font-size: 14px; }
.exports tr { border-top: 1px solid var(--line); }
.exports tr:first-child { border-top: 0; }
.exports td { padding: 12px 18px; vertical-align: middle; }
.exports .file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exports .icon { width: 16px; height: 16px; flex: none; color: var(--muted); }
.exports .filename { font-weight: 500; }
.exports .desc { font-size: 12.5px; }
.num { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.act { width: 1%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font: 500 13px/1.2 var(--sans);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); }
.btn-quiet { background: transparent; border-color: var(--line-strong); color: var(--head); }
.btn-quiet:hover { background: var(--panel-2); border-color: var(--muted); }

.about { padding: 14px 18px; font-size: 13px; line-height: 1.7; }
.about p { margin: 0; }

.empty { text-align: center; padding: 80px 24px; }
.empty h1 { margin-bottom: 8px; }
.empty p { margin: 0; }

@media (max-width: 600px) {
  .main { padding: 24px 16px 48px; gap: 18px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .panel-head { padding: 13px 16px; }

  /* A table is compact on desktop; each export becomes a touch-friendly item here. */
  .exports, .exports tbody, .exports tr, .exports td { display: block; width: 100%; }
  .exports tr { padding: 16px; }
  .exports td { padding: 0; }
  .exports .file {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 3px;
  }
  .exports .icon { grid-row: span 2; margin-top: 2px; }
  .exports .filename, .exports .desc { overflow-wrap: anywhere; }
  .exports .desc { grid-column: 2; }
  .exports .num { display: block; margin: 12px 0; padding-left: 26px; }
  .exports .act { display: block; }
  .exports .act .btn { width: 100%; min-height: 44px; }
}
