:root{--bg:#0b0c0d;--panel:#0f1112;--muted:#8f9599;--fg:#e6eaee;--glass:rgba(255,255,255,.04);
--mono: ui-monospace,SFMono-Regular,Menlo,Monaco,"Roboto Mono","Courier New",monospace;
--sans: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:linear-gradient(180deg,var(--bg),#070708);color:var(--fg);font-family:var(--sans)}
a{color:inherit;text-decoration:none}
.top{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;border-bottom:1px solid var(--glass)}
.brand{font-family:var(--mono);letter-spacing:6px}
.main-nav a{margin-right:18px;color:var(--muted)}
.selectors input{width:80px;background:transparent;border:1px solid var(--glass);color:var(--fg);padding:6px 8px;margin-right:6px;border-radius:6px;font-family:var(--mono);text-transform:uppercase}
.selectors button{background:transparent;border:1px solid var(--glass);color:var(--fg);padding:6px 10px;border-radius:6px}
.wrap{max-width:1100px;margin:0 auto;padding:24px}
.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card{background:rgba(255,255,255,.02);border:1px solid var(--glass);border-radius:6px;overflow:hidden}
.card img{width:100%;height:220px;object-fit:cover;filter:grayscale(1)}
.card .t{padding:8px 10px;font-family:var(--mono);font-size:12px;color:var(--muted)}
.viewer{display:flex;justify-content:center}
.photo-frame{width:760px;max-width:96vw;background:var(--panel);padding:18px;border:1px solid var(--glass);border-radius:8px;box-shadow:0 30px 60px rgba(0,0,0,.5)}
.photo-frame img{width:100%;height:auto;border-radius:6px;display:block;filter:grayscale(1)}
.term-line{margin-top:12px;font-family:var(--mono);color:var(--muted);letter-spacing:1px;font-size:13px}
.meta-grid{margin-top:10px;display:grid;grid-template-columns:repeat(2,1fr);gap:6px 18px}
.meta-grid dt{color:var(--muted)}
.meta-grid dd{margin:0;color:var(--fg)}
.actions{margin-top:14px;display:flex;gap:10px}
.btn{background:transparent;border:1px solid var(--glass);padding:8px 12px;border-radius:6px;font-family:var(--mono)}
.btn.secondary{border-style:dashed;color:var(--muted)}
.foot{padding:24px;border-top:1px solid var(--glass);color:var(--muted)}
@media (max-width:980px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.grid{grid-template-columns:1fr}}
.unit-wrap{max-width:1100px;margin-top:12px}
.unit-figure{margin:0;border:1px solid #23262a;border-radius:14px;overflow:hidden;background:#0f1113}
.unit-figure img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.unit-cap{display:flex;justify-content:space-between;gap:12px;padding:12px;color:#c7cbd1;font-size:12px}
.unit-nav{display:flex;gap:8px;margin-top:12px}
.unit-btn{display:inline-flex;align-items:center;gap:6px;background:#171a1e;border:1px solid #23262a;
  color:#fff;border-radius:10px;padding:8px 12px;font-weight:600;font-size:12px;text-decoration:none}
.unit-btn:disabled,.unit-btn[aria-disabled="true"]{opacity:.45;pointer-events:none}
