:root {
  --brand: #FF7410;
  --brand-deep: #FA4A00;
  --brand-soft: #FFA41C;
  --bg: #07090b;
  --card: #2A2E35;
  --surface: #101318;
  --ink: #f7f7f8;
  --muted: #9ca3af;
  --line: #333c44;
  --ok: #34d399;
  --sans: "Inter Tight", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--brand-soft); }
img { max-width: 100%; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand img { height: 32px; display: block; }
nav { display: flex; align-items: center; gap: 8px; }
nav a, #unit-toggle, .button, .button-quiet {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.button { background: var(--brand); color: #1a0d04; border-color: transparent; }
.button:hover, #unit-toggle:hover, nav a:hover { filter: brightness(1.08); }
.button:active, #unit-toggle:active, nav a:active { transform: scale(0.97); }
main { padding: 28px; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; }
h2 { font-size: 17px; font-weight: 600; margin: 28px 0 12px; }
.kicker, .meta, .hint, .status, .muted, .lede { color: var(--muted); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.cards { display: grid; gap: 16px; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  padding: 0;
}
.thumb { min-height: 120px; background: var(--surface); }
.thumb img, .placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder { display: grid; place-items: center; color: var(--muted); font-size: 13px; min-height: 120px; }
.card-body { padding: 16px 16px 16px 0; }
.card-body h2 { margin: 0 0 4px; font-size: 17px; }
.room-icon { margin-right: 6px; }
.card-body a { color: inherit; text-decoration: none; }
.card-body p a { color: var(--brand); }
.card-body p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 72px 1fr 40px; gap: 8px; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bar div { height: 6px; background: #1c2128; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.bar b { text-align: right; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: #000; display: block; }
figcaption { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.viewer, .viewer-wrap { width: 100%; }
.viewer { height: 420px; background: #000; border-radius: 10px; display: block; }
.contents { padding-left: 18px; }
.exports { display: flex; gap: 12px; }
.empty { border: 1px dashed var(--line); border-radius: 10px; padding: 28px; max-width: 640px; }
.legal { padding: 12px 28px 28px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .card { grid-template-columns: 1fr; }
  .card-body { padding: 0 16px 16px; }
  main, .topbar { padding-left: 16px; padding-right: 16px; }
}
