:root {
  --bg: #0c0d0f;
  --panel: #141518;
  --panel-2: #17191c;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --ink: #e9e8e4;
  --ink-2: #c9c8c4;
  --muted: #8a8c90;
  --dim: #6d6f73;
  --red: oklch(0.6 0.22 25);
  --red-tint: oklch(0.6 0.22 25 / .1);
  --cond: 'Barlow Condensed', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Barlow, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a2c30; border-radius: 4px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); }
.brand-name { font: 700 22px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.brand-sub, .stats { font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 51px); }
.sidebar { border-right: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; }
.main { min-width: 0; padding: 24px 28px 64px; display: flex; flex-direction: column; gap: 26px; }

.label { display: flex; align-items: center; gap: 8px; font: 500 10px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.label .n { color: var(--red); }

.search { width: 100%; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink); font: 400 14px Barlow, sans-serif; outline: none; }
.search:focus { border-color: var(--red); }
.search::placeholder { color: var(--dim); }

.maps { display: flex; flex-direction: column; gap: 2px; overflow: auto; flex: 1; padding-right: 2px; }
.map-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 0; border-left: 2px solid transparent; background: transparent; text-align: left; color: var(--ink-2); opacity: .6; }
.map-btn .name { font: 600 17px/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.map-btn .count { font: 500 10px/1 var(--mono); color: var(--red); }
.map-btn.has { opacity: 1; }
.map-btn:hover { background: var(--panel); opacity: 1; }
.map-btn.on { background: var(--panel-2); border-left-color: var(--red); color: #fff; opacity: 1; }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.crumb { font: 500 11px/1.3 var(--mono); color: var(--muted); letter-spacing: .1em; margin-bottom: 8px; }
h1 { margin: 0; font: 700 clamp(40px, 6vw, 76px)/.9 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
.ghost { padding: 8px 12px; background: transparent; border: 1px solid var(--line-2); border-radius: 3px; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); }
.ghost:hover { border-color: var(--red); color: #fff; }

.block { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.site-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); text-align: left; color: var(--ink-2); }
.site-btn .meta { display: flex; width: 100%; justify-content: space-between; font: 500 10px/1 var(--mono); letter-spacing: .1em; color: #7a7c80; }
.site-btn .name { font: 600 19px/1.05 var(--cond); letter-spacing: .03em; text-transform: uppercase; }
.site-btn:hover { border-color: var(--line-2); }
.site-btn.on { background: var(--red-tint); border-color: var(--red); color: #fff; }
.site-btn.on .meta { color: var(--red); }

.check { display: flex; align-items: center; gap: 7px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: #a9aaad; cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 12px; height: 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 2px; }
.check input:checked + .box { background: var(--red); border-color: var(--red); }
.check input:focus-visible + .box { outline: 2px solid #fff; outline-offset: 2px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.seg button { padding: 7px 16px; border: 0; background: transparent; color: var(--muted); font: 600 14px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.seg button.on { background: var(--ink); color: var(--bg); }

.ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 4px; }
.op-btn { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); text-align: left; opacity: .4; }
.op-btn .name { font: 600 15px/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.op-btn .count { font: 500 10px/1 var(--mono); color: var(--red); }
.op-btn.has { opacity: 1; }
.op-btn:hover { border-color: var(--line-2); opacity: 1; }
.op-btn.on { background: var(--red); border-color: var(--red); color: #fff; opacity: 1; }
.op-btn.on .count { color: #fff; }
.note { padding: 14px 0; font-size: 14px; color: var(--muted); }

.rule { height: 1px; background: var(--line); }

.gallery-head { font: 500 10px/1 var(--mono); color: var(--muted); letter-spacing: .1em; margin-bottom: 18px; }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan + .plan { margin-top: 36px; }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-tag { padding: 6px 10px; background: var(--red); color: #fff; font: 700 15px/1 var(--cond); letter-spacing: .12em; border-radius: 2px; }
.plan-line { flex: 1; height: 1px; background: var(--line-2); }
.plan-count { font: 500 10px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.shot { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; padding: 0; display: block; width: 100%; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.shot:hover img { transform: scale(1.02); }
.shot:hover { border-color: var(--red); }
.shot .num { position: absolute; left: 10px; top: 10px; padding: 5px 7px; background: rgba(12,13,15,.85); border-radius: 2px; font: 500 11px/1 var(--mono); color: var(--red); }
.shot.missing { cursor: default; background: repeating-linear-gradient(135deg, #131417 0 10px, #16181b 10px 20px); }
.shot.missing:hover { border-color: var(--line); }
.shot .miss { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font: 400 11px/1.5 var(--mono); color: var(--dim); word-break: break-all; }

.empty { padding: 44px 24px; border: 1px dashed var(--line-2); border-radius: 3px; display: flex; flex-direction: column; gap: 8px; }
.empty h2 { margin: 0; font: 600 22px/1 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
.empty p { margin: 0; font-size: 15px; line-height: 1.5; color: #9a9ca0; max-width: 60ch; }
.empty code { font: 400 12px var(--mono); color: var(--ink-2); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(6,6,8,.94); display: flex; align-items: center; justify-content: center; padding: 48px 72px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--line); }
.lb-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; background: transparent; border: 0; font-size: 32px; color: var(--ink); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; background: transparent; border: 0; font-size: 44px; color: var(--ink-2); }
.lb-nav:hover, .lb-close:hover { color: var(--red); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: .1em; }

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .maps { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .map-btn { flex: none; border-left: 0; border-bottom: 2px solid transparent; }
  .map-btn.on { border-bottom-color: var(--red); }
  .main { padding: 20px 16px 48px; }
  .brand-sub { display: none; }
  .lightbox { padding: 56px 8px; }
}
