:root {
  --bg: #0b0d10;
  --panel: #111419;
  --line: #292e35;
  --muted: #8b929d;
  --text: #f1f2ed;
  --acid: #d8ff3e;
  --orange: #ff6b2c;
  --display: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .04; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.topbar { height: 74px; padding: 0 4.5vw; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 19px; letter-spacing: 1.5px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--acid); color: var(--bg); transform: rotate(-3deg); }
.muted { color: #59606a; }
.system-status { font-size: 12px; color: #aab0b8; letter-spacing: .08em; }
.system-status i { display: inline-block; width: 7px; height: 7px; background: var(--acid); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 10px rgba(216,255,62,.7); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.admin-entry { min-height: 34px; padding: 0 11px; border: 1px solid #3a414b; background: transparent; color: #bfc4ca; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-entry:hover { border-color: var(--acid); color: var(--acid); }
.admin-entry.danger:hover { border-color: var(--orange); color: var(--orange); }
.admin-entry[hidden] { display: none; }
.admin-mode .system-status { color: var(--acid); }
main { overflow: hidden; }
.hero { min-height: 660px; padding: 86px 8vw 62px; position: relative; background: radial-gradient(circle at 82% 30%, rgba(216,255,62,.07), transparent 27%), linear-gradient(125deg, transparent 64%, rgba(255,255,255,.025) 64%); border-bottom: 1px solid var(--line); }
.hero::after { content: 'REPORT / WEIGHT / FIX'; position: absolute; right: -90px; top: 285px; transform: rotate(90deg); color: #262b31; font-size: 13px; letter-spacing: .5em; }
.eyebrow, .section-label, .modal-kicker { color: var(--acid); letter-spacing: .18em; font: 12px/1 var(--sans); font-weight: 800; }
.hero h1 { margin: 25px 0 22px; font: clamp(70px, 10vw, 150px)/.82 var(--display); letter-spacing: -.025em; text-transform: uppercase; max-width: 1100px; }
.hero h1 em { font-style: normal; color: var(--acid); }
.hero > p { color: #aeb4bd; font-size: 17px; line-height: 1.8; max-width: 520px; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; }
.primary, .ghost { border: 0; min-height: 52px; padding: 0 24px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .18s, background .18s, color .18s; }
.primary { background: var(--acid); color: #111408; }
.primary:hover { transform: translateY(-2px); background: #e5ff7b; }
.ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.01); }
.ghost:hover { border-color: #59616c; }
.version-reminder { margin: 0 0 10px; padding: 12px 16px; border: 1px solid rgba(216,255,62,.7); border-left: 4px solid var(--acid); background: rgba(216,255,62,.1); color: var(--text); font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: .04em; }
.scope-switcher { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.scope-switcher > p { margin: 0 0 2px; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.scope-tabs { width: min(650px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: #0d1014; }
.scope-tab { min-width: 0; min-height: 70px; padding: 13px 18px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; }
.scope-tab:last-child { border-right: 0; }
.scope-tab strong, .scope-tab small { display: block; }
.scope-tab strong { color: var(--text); font-size: 15px; line-height: 1.35; }
.scope-tab small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.scope-tab:hover { background: rgba(255,255,255,.035); }
.scope-tab.active { color: var(--acid); background: rgba(216,255,62,.09); box-shadow: inset 0 -4px 0 var(--acid); }
.scope-tab.active strong { color: var(--acid); }
.scope-tab:focus-visible { outline: 2px solid var(--acid); outline-offset: -3px; }
.online-scope-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; margin: 0 0 32px; padding: 18px 20px; border: 1px solid var(--orange); border-left: 6px solid var(--orange); background: rgba(255,107,44,.1); }
.online-scope-alert[hidden] { display: none; }
.online-scope-alert strong { color: var(--orange); font-size: 12px; letter-spacing: .1em; white-space: nowrap; }
.online-scope-alert span { color: #fff0e9; font-size: 17px; font-weight: 850; line-height: 1.45; }
.compact-alert { grid-template-columns: 1fr; gap: 6px; margin: -10px 0 22px; padding: 14px 16px; }
.compact-alert span { font-size: 15px; }
.stats { width: min(480px, 42vw); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.stats div { min-width: 0; padding: 14px 12px 12px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats strong { display: block; font: 39px/1 var(--display); }
.stats span { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.stats small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.2; letter-spacing: .04em; white-space: nowrap; }
.stats .resolved-stat strong, .stats .resolved-stat span, .stats .resolved-stat small { color: #83e28e; }
.rules { display: grid; grid-template-columns: minmax(180px, .5fr) 2fr; padding: 100px 8vw; border-bottom: 1px solid var(--line); }
.rules-content { display: grid; grid-template-columns: 1fr 1.45fr; gap: 7vw; }
.rules h2, .queue h2 { margin: 0; font: 45px/1.05 var(--display); letter-spacing: -.01em; }
.rules ol { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li { counter-increment: rule; position: relative; padding: 0 0 24px 48px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.rules li::before { content: '0' counter(rule); position: absolute; left: 0; top: 2px; color: var(--acid); font: 14px var(--display); }
.rules li b, .rules li span { display: block; }
.rules li b { margin-bottom: 7px; }
.rules li span { color: var(--muted); font-size: 13px; line-height: 1.65; }
.queue { padding: 100px 8vw 130px; min-height: 800px; }
.queue-head { display: grid; grid-template-columns: auto minmax(360px, 1fr) auto; gap: 28px; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.queue-head .section-label { margin-bottom: 14px; }
.queue-summary { min-width: 0; }
.queue-tools { display: flex; gap: 10px; }
.search { height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 0 14px; color: var(--muted); }
.search input { border: 0; outline: 0; color: var(--text); background: transparent; width: 190px; }
.compact { min-height: 44px; padding: 0 18px; }
.bug-list { border-top: 1px solid var(--line); }
.bug-card { display: grid; grid-template-columns: 74px minmax(0, 1fr) 165px; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.bug-card:hover { background: rgba(255,255,255,.012); }
.bug-card.resolved { opacity: .68; }
.bug-card.resolved .bug-title, .bug-card.resolved .bug-detail { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
.bug-card.resolved .chip.status { color: var(--acid); border-color: rgba(216,255,62,.25); background: rgba(216,255,62,.05); }
.rank { color: #4c535d; font: 27px var(--display); padding-left: 10px; }
.rank.top { color: var(--acid); }
.bug-meta { display: flex; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; padding: 5px 8px; background: #1b2026; color: #aeb4bd; font-size: 10px; letter-spacing: .08em; }
.chip.status { color: var(--orange); border: 1px solid rgba(255,107,44,.25); background: rgba(255,107,44,.05); }
.chip.version { color: var(--acid); border: 1px solid rgba(216,255,62,.25); background: rgba(216,255,62,.05); }
.bug-title { margin: 0 0 10px; font-size: 21px; letter-spacing: -.01em; }
.bug-detail { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; max-width: 760px; }
.supporters { margin-top: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.support-label { color: #5e6671; font-size: 11px; margin-right: 3px; }
.supporter { border: 1px solid #333942; color: #bfc4ca; font-size: 11px; padding: 4px 7px; }
.empty-support { color: #555d67; font-size: 11px; }
.weight-box { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.weight { font: 42px/1 var(--display); color: var(--text); }
.weight small { color: #626a75; font: 10px var(--sans); letter-spacing: .12em; margin-left: 4px; }
.support-btn { margin-top: 15px; border: 1px solid #3a414b; background: transparent; color: var(--text); padding: 9px 12px; cursor: pointer; font-size: 12px; font-weight: 700; transition: .18s; }
.support-btn:hover { color: var(--bg); border-color: var(--acid); background: var(--acid); }
.manage-btn { margin-top: 8px; border: 1px solid var(--orange); background: rgba(255,107,44,.06); color: var(--orange); padding: 9px 12px; cursor: pointer; font-size: 12px; font-weight: 800; }
.manage-btn:hover { background: var(--orange); color: #160b06; }
.admin-note { margin-top: 17px; padding: 13px 15px; border-left: 4px solid var(--orange); background: rgba(255,107,44,.07); }
.admin-note strong { display: block; color: var(--orange); font-size: 10px; letter-spacing: .12em; }
.admin-note p { margin: 6px 0 0; color: #e4c4b7; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.loading, .empty { padding: 70px 10px; text-align: center; color: var(--muted); }
footer { border-top: 1px solid var(--line); min-height: 90px; padding: 0 8vw; display: flex; align-items: center; justify-content: space-between; color: #555d67; font-size: 11px; letter-spacing: .12em; }
footer span:first-child { font-family: var(--display); color: #8b929d; font-size: 16px; }
dialog { color: var(--text); background: #111419; border: 1px solid #343a43; width: min(600px, calc(100vw - 30px)); padding: 0; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(2,3,5,.82); backdrop-filter: blur(5px); }
dialog form { padding: 40px; position: relative; }
.close { position: absolute; right: 18px; top: 14px; background: transparent; color: #7c838d; border: 0; font-size: 28px; cursor: pointer; }
dialog h2 { font: 39px/1 var(--display); margin: 13px 0 8px; }
.modal-intro { color: var(--muted); line-height: 1.6; font-size: 13px; margin: 0 0 28px; }
.version-alert { display: grid; gap: 5px; padding: 14px 16px; margin: -10px 0 22px; border: 1px solid var(--orange); border-left: 5px solid var(--orange); background: rgba(255,107,44,.09); }
.version-alert strong { color: var(--orange); font-size: 12px; letter-spacing: .08em; }
.version-alert span { color: #f2d6ca; font-size: 13px; line-height: 1.5; }
dialog label { display: block; color: #c4c8cd; font-size: 12px; font-weight: 700; margin-top: 17px; }
.version-field { color: var(--acid); }
.version-field b { display: inline-flex; margin-left: 7px; padding: 2px 6px; color: #111408; background: var(--acid); font-size: 9px; letter-spacing: .08em; }
.version-field input { border-color: rgba(216,255,62,.6); box-shadow: inset 4px 0 0 var(--acid); }
.resolved-toggle { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid rgba(255,107,44,.5); background: rgba(255,107,44,.06); color: #f2d6ca; }
.resolved-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.resolved-toggle span { font-size: 13px; }
dialog input, dialog textarea, dialog select { width: 100%; background: #0b0d10; color: var(--text); border: 1px solid #303640; outline: 0; padding: 13px 14px; margin-top: 8px; border-radius: 0; }
dialog textarea { min-height: 105px; resize: vertical; }
dialog input:focus, dialog textarea:focus, dialog select:focus { border-color: var(--acid); }
.submit { width: 100%; margin-top: 24px; justify-content: space-between; }
.form-message { min-height: 18px; color: #ff7b59; font-size: 12px; padding-top: 9px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); padding: 13px 20px; background: var(--acid); color: #111408; font-size: 13px; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 850px) {
  .hero { min-height: 690px; padding: 75px 6vw 50px; }
  .hero h1 { font-size: clamp(61px, 16vw, 100px); }
  .queue-head { grid-template-columns: 1fr; align-items: stretch; }
  .stats { width: 100%; }
  .stats div { min-width: 0; }
  .rules { grid-template-columns: 1fr; gap: 35px; padding: 75px 6vw; }
  .rules-content { grid-template-columns: 1fr; gap: 45px; }
  .queue { padding: 75px 6vw 100px; }
  .scope-switcher { align-items: stretch; flex-direction: column; gap: 10px; }
  .scope-switcher > p { text-align: left; }
  .bug-card { grid-template-columns: 52px minmax(0,1fr); }
  .weight-box { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 5vw; height: 64px; }
  .system-status { font-size: 0; }
  .system-status i { margin: 0; }
  .topbar-actions { gap: 6px; }
  .admin-entry { padding: 0 8px; font-size: 10px; }
  .hero { min-height: 0; padding-bottom: 36px; }
  .hero h1 { margin-top: 20px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 300px; }
  .version-reminder { margin: 0 0 10px; padding: 14px 16px; font-size: 16px; }
  .scope-switcher { margin-bottom: 18px; }
  .scope-tabs { width: 100%; }
  .scope-tab { min-height: 78px; padding: 13px 12px; }
  .scope-tab strong { font-size: 14px; }
  .scope-tab small { font-size: 10px; }
  .online-scope-alert { grid-template-columns: 1fr; gap: 7px; margin-bottom: 25px; padding: 16px; }
  .online-scope-alert strong { white-space: normal; }
  .online-scope-alert span { font-size: 16px; }
  .stats { width: 100%; margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
  .stats div { min-width: 0; min-height: 88px; padding: 15px 14px 12px; border-left: 0; border-top: 1px solid var(--line); }
  .stats div:nth-child(-n+2) { border-top: 0; }
  .stats div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats strong { font-size: 32px; }
  .stats small { margin-top: 5px; font-size: 10px; }
  .queue-head { align-items: stretch; flex-direction: column; gap: 25px; }
  .queue-tools { flex-direction: column; }
  .search input { width: 100%; }
  .bug-card { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .rank { font-size: 20px; padding-left: 0; }
  .bug-title { font-size: 18px; }
  dialog form { padding: 34px 22px 25px; }
}
