﻿:root {
  --bg: #11120f;
  --panel: #191a16;
  --panel-2: #21221d;
  --ink: #f1f0e8;
  --muted: #999b8f;
  --line: #35372f;
  --acid: #c8ff36;
  --orange: #ff6b35;
  --cream: #ded8c8;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
}
button { font: inherit; }
.upload-privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.upload-privacy a, .consent-check a { color: var(--acid); }
.upload-limit-highlight {
  color: var(--acid);
  font-weight: 800;
}
.upload-declarations {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  background: #11120f;
}
.upload-declarations label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  color: #b8baaf;
  font-size: 11px;
  line-height: 1.55;
}
.upload-declarations input { margin-top: 3px; }
.upload-declarations a { color: var(--acid); }
.compliance-warning {
  padding: 10px;
  border: 1px solid var(--orange);
  color: #ffd1bf;
  background: rgba(255, 107, 53, .08);
}
.consent-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.consent-check input { margin-top: 4px; }
.legal-action {
  padding: 10px 13px;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  cursor: pointer;
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.topbar {
  height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand-mark {
  width: 37px;
  height: 37px;
  background: var(--acid);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 20px;
  transform: rotate(-3deg);
}
.top-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 12px var(--mono);
  color: var(--muted);
}
.top-meta a, footer a { color: inherit; text-decoration: none; }
.top-meta a:hover, footer a:hover { color: var(--acid); }
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--acid);
}
.slash { color: var(--line); }
main { overflow: hidden; }
.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  padding: 80px 7vw 70px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  font: 12px var(--mono);
  letter-spacing: .1em;
  color: var(--acid);
  text-transform: uppercase;
}
h1 {
  margin: 26px 0;
  font-size: clamp(64px, 7.2vw, 116px);
  line-height: .95;
  letter-spacing: -.065em;
  max-width: 900px;
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
}
.hero-sub {
  max-width: 600px;
  color: #bebfb5;
  font-size: 17px;
  line-height: 1.85;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}
.hero-tags span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  font: 12px var(--mono);
  color: var(--muted);
}
.hero-visual {
  min-height: 500px;
  position: relative;
}
.film-card {
  position: absolute;
  width: 62%;
  padding: 12px 12px 32px;
  background: #e9e4d6;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.film-card span {
  position: absolute;
  bottom: 9px;
  left: 13px;
  color: #161713;
  font: 10px var(--mono);
}
.card-one {
  top: 7%;
  left: 2%;
  transform: rotate(-7deg);
  z-index: 1;
}
.card-two {
  right: -1%;
  bottom: 2%;
  transform: rotate(5deg);
  z-index: 2;
}
.fake-photo { aspect-ratio: 4/3; overflow: hidden; }
.city {
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,34,115,.8) 49% 52%, transparent 53%),
    radial-gradient(circle at 72% 35%, #1bf4ff 0 3%, transparent 4%),
    linear-gradient(145deg, #071e28 0%, #102f39 46%, #d13b62 47%, #081319 56%, #151712 100%);
  filter: contrast(1.15) saturate(1.25);
}
.city::after, .sunset::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(100deg, transparent 0 8%, rgba(255,255,255,.08) 8.4%);
}
.sunset {
  background:
    radial-gradient(circle at 58% 50%, #fff4b5 0 2%, #ff9d3b 3% 13%, transparent 14%),
    linear-gradient(180deg, #6d87b9 0%, #d67a6a 48%, #321d24 49%, #11120f 100%);
}
.focus-frame {
  position: absolute;
  width: 66%;
  height: 48%;
  top: 23%;
  left: 20%;
  z-index: 4;
  border: 1px solid rgba(200,255,54,.45);
  background:
    linear-gradient(var(--acid),var(--acid)) 0 0/26px 2px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 0 0/2px 26px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 100% 100%/26px 2px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 100% 100%/2px 26px no-repeat;
}
.sticker {
  position: absolute;
  z-index: 5;
  right: 2%;
  top: 8%;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  color: var(--bg);
  display: grid;
  place-items: center;
  text-align: center;
  font: 800 13px/1.1 var(--mono);
  transform: rotate(12deg);
}
.studio, .results, .history-section {
  padding: 85px 7vw;
  border-bottom: 1px solid var(--line);
}
.section-heading, .results-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
h2 {
  margin: 6px 0 0;
  font-size: clamp(38px, 5vw, 70px);
  letter-spacing: -.05em;
}
.section-heading > p {
  font: 11px var(--mono);
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  border: 1px solid var(--line);
  min-height: 540px;
}
.upload-panel {
  position: relative;
  min-height: 540px;
  background-color: #141510;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.upload-panel.dragging { outline: 2px solid var(--acid); outline-offset: -10px; }
.empty-state { text-align: center; padding: 35px; }
.empty-state h3 { font-size: 26px; margin: 22px 0 8px; }
.empty-state p { color: var(--muted); margin-bottom: 26px; }
.aperture-icon {
  width: 90px;
  height: 90px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  margin: auto;
  position: relative;
  animation: rotate 16s linear infinite;
}
.aperture-icon::after {
  content: "";
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 30px rgba(200,255,54,.25);
}
.aperture-icon span {
  position: absolute;
  left: 43px;
  top: 4px;
  height: 34px;
  border-left: 1px solid var(--acid);
  transform-origin: 2px 41px;
}
.aperture-icon span:nth-child(2) { transform: rotate(60deg); }
.aperture-icon span:nth-child(3) { transform: rotate(120deg); }
.aperture-icon span:nth-child(4) { transform: rotate(180deg); }
.aperture-icon span:nth-child(5) { transform: rotate(240deg); }
.aperture-icon span:nth-child(6) { transform: rotate(300deg); }
@keyframes rotate { to { transform: rotate(360deg); } }
.primary-btn, .analyse-btn, .ghost-btn {
  border: 0;
  cursor: pointer;
  transition: .2s ease;
}
.primary-btn {
  padding: 15px 22px;
  background: var(--acid);
  color: #151610;
  font-weight: 800;
}
.primary-btn span { margin-left: 18px; }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #596e20; }
.preview-state {
  width: 100%;
  height: 100%;
  min-height: 540px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #090a08;
}
.preview-state img {
  width: 100%;
  height: 484px;
  object-fit: contain;
}
.photo-overlay {
  position: absolute;
  z-index: 3;
  left: 58px;
  right: 58px;
  bottom: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  font: 11px var(--mono);
}
.photo-overlay span,
.photo-overlay button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  background: rgba(11, 12, 9, .88);
  border: 1px solid rgba(199, 255, 32, .35);
  padding: 7px 10px;
  line-height: 1.2;
  backdrop-filter: blur(4px);
}
.photo-overlay span {
  max-width: calc(100% - 92px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-overlay button {
  flex: 0 0 auto;
  color: var(--acid);
  cursor: pointer;
  pointer-events: auto;
}
.focus-corners {
  position: absolute;
  inset: 48px;
  pointer-events: none;
  background:
    linear-gradient(var(--acid),var(--acid)) 0 0/34px 2px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 0 0/2px 34px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 100% 0/34px 2px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 100% 0/2px 34px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 0 100%/34px 2px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 0 100%/2px 34px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 100% 100%/34px 2px no-repeat,
    linear-gradient(var(--acid),var(--acid)) 100% 100%/2px 34px no-repeat;
}
.agent-panel {
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.agent-head {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
}
.agent-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--acid);
  border: 1px solid var(--acid);
  font-weight: 900;
}
.agent-head strong { display: block; font-size: 14px; }
.agent-head span { display: block; margin-top: 4px; color: var(--muted); font: 9px var(--mono); }
.status-pill {
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 9px var(--mono);
}
.agent-chat { padding: 25px; flex: 1; overflow: auto; }
.chat-line {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
}
.chat-line p { margin: 0; }
.terminal-prefix { color: var(--acid); font: 16px var(--mono); }
.chat-line.muted { color: var(--muted); }
.analyse-btn {
  margin: 24px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bg);
  background: var(--acid);
  font-weight: 900;
}
.analyse-btn:disabled {
  background: var(--line);
  color: #707268;
  cursor: not-allowed;
}
.analyse-btn:not(:disabled):hover { filter: brightness(1.12); }
.btn-icon { font: 25px var(--mono); }
.hidden { display: none !important; }
.results { background: #151610; }
.ghost-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 12px 17px;
}
.ghost-btn:hover { border-color: var(--acid); color: var(--acid); }
.result-grid {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  border: 1px solid var(--line);
}
.score-card {
  padding: 40px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}
.score-ring { width: 180px; height: 180px; position: relative; }
.score-ring svg { width: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--line); }
.ring-progress {
  stroke: var(--acid);
  stroke-linecap: square;
  stroke-dasharray: 427;
  stroke-dashoffset: 427;
  transition: stroke-dashoffset 1.2s cubic-bezier(.22,.8,.25,1);
}
.score-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.score-number strong { font: 500 58px var(--mono); }
.score-number span { color: var(--muted); font: 10px var(--mono); }
.score-label { color: var(--acid); font-weight: 800; margin: 20px 0 5px; }
.camera-meta { color: var(--muted); font: 10px var(--mono); }
.verdict-card {
  padding: 58px 7vw;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.quote-mark {
  position: absolute;
  top: 22px;
  left: 35px;
  font: 100px Georgia, serif;
  color: var(--line);
}
.verdict-card p {
  position: relative;
  margin: 0;
  font-size: clamp(25px, 3vw, 45px);
  line-height: 1.5;
  letter-spacing: -.035em;
  font-weight: 700;
}
.verdict-sign { color: var(--muted); font: 11px var(--mono); margin-top: 30px; }
.verdict-card .analysis-note {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px/1.7 var(--mono);
  letter-spacing: 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--line);
  margin-top: 22px;
}
.metric {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-left: 0;
}
.metric-head {
  display: flex;
  justify-content: space-between;
  font: 11px var(--mono);
  margin-bottom: 17px;
}
.metric-head span:last-child { color: var(--acid); }
.metric-bar { height: 3px; background: var(--line); }
.metric-fill { height: 100%; background: var(--acid); width: 0; transition: width 1s ease .2s; }
.metric small { display: block; color: var(--muted); line-height: 1.5; margin-top: 14px; }
.deep-review {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-left: 1px solid var(--line);
}
.history-section { background: var(--bg); }
.history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.history-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.history-score {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--bg);
  font: 500 20px var(--mono);
}
.history-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-card p, .history-card time, .history-empty {
  margin: 5px 0 0;
  color: var(--muted);
  font: 10px var(--mono);
}
.history-empty { grid-column: 1 / -1; padding: 30px; border: 1px solid var(--line); }
.review-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-left: 0;
}
.card-kicker { color: var(--acid); font: 10px var(--mono); }
.warning .card-kicker { color: var(--orange); }
.review-card h3 { font-size: 19px; margin: 14px 0 22px; }
.review-card ul { margin: 0; padding: 0; list-style: none; }
.review-card li {
  color: #b8baaf;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 13px;
  line-height: 1.65;
}
.review-card li::before { content: "↳ "; color: var(--acid); }
.warning li::before { color: var(--orange); }
.recipe-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font: 12px var(--mono);
}
.recipe-row span:last-child { color: var(--acid); }
.manifesto {
  min-height: 430px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 60px 7vw;
}
.manifesto > p:last-child {
  margin: 12px 0 0;
  font-size: clamp(27px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.04em;
}
footer {
  border-top: 1px solid var(--line);
  min-height: 95px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 10px var(--mono);
}
.legal-page {
  width: min(820px, 88vw);
  margin: 0 auto;
  padding: 70px 0 110px;
  line-height: 1.9;
}
.legal-page h1 { font-size: clamp(48px, 8vw, 88px); margin-bottom: 40px; }
.legal-page h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -.03em; }
.legal-page p { color: #b8baaf; }
.legal-page a { color: var(--acid); }
.legal-back { display: inline-block; margin-bottom: 50px; font: 12px var(--mono); text-decoration: none; }
.legal-list { color: #b8baaf; line-height: 1.9; }
.legal-status {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.legal-status.warning { border-color: var(--orange); }
.legal-status strong { color: var(--orange); }
.legal-status p { margin-bottom: 0; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 35px 0;
}
.contact-cards a, .contact-cards button {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.contact-cards span, .contact-cards small { display: block; color: var(--muted); font: 10px var(--mono); }
.contact-cards strong { display: block; margin: 10px 0; color: var(--acid); font-size: 17px; }
.feedback-form { display: grid; gap: 18px; padding: 25px; border: 1px solid var(--line); background: var(--panel); }
.feedback-form label { display: grid; gap: 8px; }
.feedback-form label > span { color: var(--muted); font: 10px var(--mono); }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: #11120f;
  color: var(--ink);
  font: inherit;
}
.feedback-form textarea { min-height: 160px; resize: vertical; }
.feedback-form > button { padding: 14px; border: 0; background: var(--acid); color: var(--bg); font-weight: 800; cursor: pointer; }
.feedback-form #feedbackStatus { margin: 0; color: var(--acid); font: 11px var(--mono); }
.honeypot { position: absolute !important; left: -9999px !important; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-visual { min-height: 480px; margin-top: 25px; }
  .workspace { grid-template-columns: 1fr; }
  .upload-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-panel { min-height: 420px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .deep-review { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .score-card { border-right: 0; border-bottom: 1px solid var(--line); }
}
.wiki-page { overflow: visible; }
.wiki-hero {
  padding: 90px 7vw 70px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 20%, rgba(200,255,54,.08), transparent 24%),
    linear-gradient(120deg, #11120f 62%, #181a13);
}
.wiki-hero h1 { max-width: 1000px; margin-bottom: 30px; }
.wiki-hero > p:not(.eyebrow) { color: var(--muted); max-width: 650px; line-height: 1.8; }
.wiki-search-wrap {
  margin-top: 45px;
  width: min(900px, 100%);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  background: #171813;
}
.wiki-search-wrap > span { color: var(--acid); font: 30px var(--mono); }
.wiki-search-wrap input {
  min-width: 0;
  padding: 22px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: 15px var(--sans);
}
.wiki-search-wrap kbd {
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 8px;
  font: 11px var(--mono);
}
.wiki-stats {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-top: 25px;
  font: 11px var(--mono);
  color: var(--muted);
}
.wiki-stats strong { color: var(--acid); font-size: 30px; }
.wiki-stats button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--acid);
  cursor: pointer;
  font: 11px var(--mono);
}
.wiki-content { padding: 60px 7vw 90px; }
.wiki-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tabs button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 11px var(--mono);
}
.category-tabs button.active { color: var(--bg); background: var(--acid); border-color: var(--acid); }
.category-tabs sup { opacity: .65; }
.wiki-toolbar > span { color: var(--muted); font: 10px var(--mono); white-space: nowrap; }
.filter-panel {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(200,255,54,.035), transparent 38%),
    #151610;
}
.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.filter-panel-head strong { display: block; margin-top: 5px; font-size: 15px; }
.filter-kicker { color: var(--acid); font: 9px var(--mono); letter-spacing: .12em; }
.filter-panel-head > button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 10px var(--mono);
}
.filter-panel-head > button:hover { border-color: var(--acid); color: var(--acid); }
.quick-filter-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 16px;
  padding-top: 18px;
}
.quick-filter-block > span { padding-top: 9px; color: var(--muted); font: 9px var(--mono); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-chips button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: #b8baaf;
  cursor: pointer;
  font-size: 11px;
}
.quick-chips button:hover { border-color: #6a6d5f; color: var(--ink); }
.quick-chips button.active {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bg);
}
.quick-chips sup { margin-left: 4px; opacity: .65; font: 8px var(--mono); }
.advanced-filters {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.advanced-filters summary {
  padding: 16px 0 0;
  color: var(--ink);
  cursor: pointer;
  font: 11px var(--mono);
  list-style: none;
}
.advanced-filters summary::-webkit-details-marker { display: none; }
.advanced-filters summary::before { content: "＋ "; color: var(--acid); }
.advanced-filters[open] summary::before { content: "－ "; }
.advanced-filters summary span { margin-left: 8px; color: var(--muted); }
.wiki-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr);
  gap: 10px;
  padding-top: 15px;
}
.wiki-filters label { display: grid; gap: 7px; }
.wiki-filters label > span { color: var(--muted); font: 9px var(--mono); }
.wiki-filters select {
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  outline: none;
}
.active-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.active-filter-bar > span { flex: 0 0 auto; color: var(--muted); font: 9px var(--mono); }
.active-filter-bar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.active-filter-bar button {
  padding: 7px 9px;
  border: 1px solid #596e20;
  background: rgba(200,255,54,.06);
  color: var(--acid);
  cursor: pointer;
  font: 10px var(--mono);
}
.active-filter-bar button span { margin-left: 5px; }
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.wiki-card {
  min-height: 320px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.wiki-card:hover, .wiki-card:focus { background: #23251e; outline: 0; }
.wiki-card:hover h2 { color: var(--acid); }
.wiki-card-top { display: flex; justify-content: space-between; font: 9px var(--mono); }
.term-index { color: var(--acid); }
.term-kind { color: var(--muted); }
.wiki-card h2 { margin: 35px 0 14px; font-size: 30px; letter-spacing: -.04em; transition: color .2s; }
.wiki-card mark { color: var(--bg); background: var(--acid); }
.wiki-card > p { color: #aaaca1; font-size: 13px; line-height: 1.7; flex: 1; }
.term-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.term-tags span { color: var(--muted); border: 1px solid var(--line); padding: 5px 7px; font: 9px var(--mono); }
.term-tags .hot-tag { color: var(--bg); background: var(--acid); border-color: var(--acid); }
.wiki-card > button {
  margin-top: 20px;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--acid);
  text-align: left;
  cursor: pointer;
  font: 10px var(--mono);
}
.wiki-empty { text-align: center; padding: 80px 20px; border: 1px solid var(--line); }
.wiki-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 35px;
}
.wiki-pagination button {
  min-width: 38px;
  padding: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 10px var(--mono);
}
.wiki-pagination button.active { color: var(--bg); background: var(--acid); border-color: var(--acid); }
.wiki-pagination button:disabled { opacity: .3; cursor: not-allowed; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }
.page-jump { margin-left: 8px; color: var(--muted); font: 10px var(--mono); }
.page-jump input {
  width: 62px;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
.wiki-grid.loading { opacity: .45; pointer-events: none; }
.wiki-empty strong { font-size: 25px; }
.wiki-empty p { color: var(--muted); }
.wiki-note { padding: 100px 7vw; border-top: 1px solid var(--line); text-align: center; }
.wiki-note h2 { font-size: clamp(40px, 5vw, 70px); }
.wiki-note > p:last-child { color: var(--muted); max-width: 720px; margin: 25px auto 0; line-height: 1.9; }
.term-dialog {
  width: min(720px, 90vw);
  max-height: 88vh;
  padding: 45px;
  border: 1px solid var(--line);
  background: #1b1c17;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.75);
}
.term-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.dialog-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 27px;
  cursor: pointer;
}
.term-dialog h2 { margin: 8px 0; font-size: clamp(40px, 7vw, 70px); }
.term-dialog h3 { margin: 30px 0 8px; font-size: 16px; }
.term-dialog p { color: #b8baaf; line-height: 1.85; }
.term-aliases { font: 10px var(--mono); }
.review-badge {
  display: inline-block;
  margin: 8px 0 4px;
  padding: 6px 9px;
  border: 1px solid var(--acid);
  color: var(--acid);
  font: 9px var(--mono);
}
.review-badge.imported { color: #ffb56b; border-color: #765337; }
.translation-box { margin: 30px 0; padding: 22px; background: var(--acid); color: var(--bg); }
.translation-box span { display: block; font: 9px var(--mono); margin-bottom: 9px; }
.translation-box strong { font-size: 18px; line-height: 1.6; }
.term-dialog blockquote { margin: 0; padding: 20px; border-left: 3px solid var(--acid); background: #141510; line-height: 1.8; }
.detail-list { margin: 0; padding: 0; list-style: none; }
.detail-list li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: #b8baaf;
  font-size: 13px;
  line-height: 1.7;
}
.detail-list li::before { content: "↳ "; color: var(--acid); }
.warning-list li::before { color: #ff9c5b; }
.data-notice {
  margin-top: 26px;
  padding: 14px;
  border: 1px dashed #765337;
  color: #c49a76 !important;
  font: 10px/1.7 var(--mono) !important;
}
.source-license {
  margin-top: 10px;
  color: var(--muted) !important;
  font: 10px/1.7 var(--mono) !important;
}
.term-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.term-specs > div { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.term-specs span { display: block; color: var(--muted); font: 9px var(--mono); }
.term-specs strong { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; }
.source-link { display: inline-block; margin-top: 25px; color: var(--acid); font: 11px var(--mono); }
.related-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.related-terms button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 9px 11px;
  cursor: pointer;
  font: 10px var(--mono);
}
.related-terms button:hover { color: var(--acid); border-color: var(--acid); }
@media (max-width: 980px) {
  .wiki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .topbar {
    height: auto;
    min-height: 112px;
    padding: 12px 14px 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: rgba(17, 18, 15, .97);
  }
  .brand { gap: 10px; font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .top-meta {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .top-meta::-webkit-scrollbar { display: none; }
  .top-meta > span { display: none; }
  .top-meta a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 11px 14px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    font: 13px var(--sans);
  }
  .top-meta a[href="/wiki"] {
    order: -2;
    border-color: var(--acid);
    color: var(--acid);
    font-weight: 800;
  }
  .top-meta a[href="/"] { order: -1; }
  .hero, .studio, .results { padding-left: 14px; padding-right: 14px; }
  .hero { min-height: auto; padding-top: 46px; padding-bottom: 46px; }
  h1 { margin: 18px 0; font-size: clamp(44px, 14vw, 58px); line-height: 1; }
  .hero-sub { font-size: 15px; line-height: 1.7; }
  .hero-tags { margin-top: 24px; }
  .hero-visual { min-height: 320px; }
  .film-card { width: 76%; }
  .studio, .results { padding-top: 52px; padding-bottom: 62px; }
  .section-heading, .results-top { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading h2, .results-top h2 { font-size: 36px; }
  .section-heading > p { font-size: 12px; line-height: 1.7; }
  .workspace { margin-top: 28px; }
  .preview-state { min-height: 390px; padding: 14px; }
  .preview-state img { height: 350px; }
  .focus-corners { inset: 24px; }
  .photo-overlay { left: 34px; right: 34px; bottom: 38px; }
  .photo-overlay span, .photo-overlay button { min-height: 38px; font-size: 12px; }
  .agent-head { padding: 18px; }
  .agent-chat { padding: 20px 18px; min-height: 180px; }
  .upload-declarations { margin: 0 18px; padding: 14px; }
  .upload-declarations label { font-size: 12px; line-height: 1.65; }
  .upload-declarations input { width: 18px; height: 18px; }
  .analyse-btn { margin: 18px; min-height: 54px; }
  .upload-privacy { margin: 0 18px 18px; font-size: 12px; }
  .verdict-card {
    min-height: 0;
    padding: 72px 22px 30px;
    justify-content: flex-start;
    overflow: hidden;
  }
  .quote-mark {
    top: 8px;
    right: 18px;
    left: auto;
    font-size: 58px;
    line-height: 1;
    opacity: .7;
    pointer-events: none;
  }
  .verdict-card > p:not(.analysis-note) {
    z-index: 1;
    font-size: clamp(23px, 7vw, 30px);
    line-height: 1.58;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
  }
  .verdict-sign { margin-top: 24px; }
  .verdict-card .analysis-note { font-size: 11px; line-height: 1.75; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { border-left: 1px solid var(--line); }
  .deep-review { border-left: 0; }
  .review-card { border-left: 1px solid var(--line); }
  footer { padding: 24px 14px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; line-height: 1.7; }
  .wiki-hero, .wiki-content, .wiki-note { padding-left: 14px; padding-right: 14px; }
  .wiki-hero { padding-top: 52px; padding-bottom: 44px; }
  .wiki-hero h1 { font-size: clamp(42px, 13vw, 56px); }
  .wiki-search-wrap { margin-top: 30px; padding: 0 13px; gap: 9px; }
  .wiki-search-wrap input { padding: 18px 0; font-size: 14px; }
  .wiki-search-wrap kbd { display: none; }
  .wiki-content { padding-top: 36px; }
  .wiki-grid { grid-template-columns: 1fr; }
  .wiki-toolbar { align-items: flex-start; flex-direction: column; }
  .wiki-filters { grid-template-columns: 1fr; }
  .filter-panel { padding: 17px; }
  .filter-panel-head { align-items: flex-start; }
  .quick-filter-block { grid-template-columns: 1fr; gap: 7px; }
  .quick-filter-block > span { padding-top: 0; }
  .active-filter-bar { align-items: flex-start; flex-direction: column; }
  .wiki-stats { align-items: flex-start; flex-wrap: wrap; }
  .wiki-stats button { width: 100%; min-height: 46px; margin: 8px 0 0; text-align: left; }
  .wiki-card { min-height: 0; padding: 22px; }
  .wiki-card h2 { margin: 24px 0 12px; font-size: 27px; }
  .term-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); padding: 38px 20px; }
  .term-specs { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}




