:root {
  color-scheme: dark;
  --bg: #080d0b; --panel: #0d1511; --panel2: #0a110e;
  --line: #1b3327; --green: #61f59a; --green2: #22c66b;
  --muted: #82988a; --text: #e7f1e9; --red: #f2bd65;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 50% -15%, #153222 0, transparent 48%), var(--bg); }
button, input, textarea { font: inherit; }
button, input, textarea { -webkit-tap-highlight-color: transparent; }
.scanlines { pointer-events: none; position: fixed; inset: 0; z-index: 5; opacity: .12; background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0,0,0,.22) 4px); }
.app-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(97,245,154,.15); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); font-weight: 900; font-size: 19px; box-shadow: 0 0 18px #61f59a20; }
.brand-mark span, h1 span { color: var(--green); }
.brand-copy { display: grid; gap: 3px; letter-spacing: .13em; }
.brand-copy strong { font-size: 13px; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.status { color: #9bb3a2; font: 10px ui-monospace, monospace; letter-spacing: .12em; }
.status-dot, .live-tag { color: var(--green); }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.status-divider { color: #385542; padding: 0 8px; }
.hero { padding: 65px 0 30px; max-width: 720px; }
.eyebrow, .section-index { color: var(--green); font: 10px ui-monospace, SFMono-Regular, monospace; letter-spacing: .18em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span:first-child { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 10px var(--green); }
.eyebrow-line { width: 42px; height: 1px; background: #31533d; }
h1 { margin: 18px 0 13px; font-size: clamp(42px, 7vw, 72px); line-height: .99; letter-spacing: -.055em; font-weight: 800; }
.mobile-break { display: none; }
.hero-copy { max-width: 570px; color: #9aafa1; line-height: 1.7; font-size: 14px; margin: 0; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #5d4827; background: #1a160e; color: #d8c49d; margin: 0 0 22px; font-size: 12px; line-height: 1.55; }
.notice p { margin: 0; }.notice strong { color: #f2d49c; }.notice b { color: #ffe0a4; }
.notice-icon { flex: 0 0 19px; height: 19px; display: grid; place-items: center; border: 1px solid #c79c4e; border-radius: 50%; font: 12px Georgia; }
.workspace { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; align-items: stretch; }
.panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(15,25,19,.97), rgba(9,15,12,.98)); padding: 24px; min-width: 0; box-shadow: 0 15px 45px #0003; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 25px; }
h2 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.025em; }
.live-tag, .count-badge { font: 9px ui-monospace, monospace; letter-spacing: .12em; padding: 6px 8px; border: 1px solid #28543a; background: #102419; white-space: nowrap; }
.field-label { display: block; margin: 19px 0 8px; color: #b8c9bd; font: 10px ui-monospace, monospace; letter-spacing: .12em; }
.optional { color: #607a68; font-size: 9px; margin-left: 5px; }
input[type="number"], input[type="text"] { width: 100%; min-height: 46px; border: 1px solid #294334; border-radius: 3px; background: #080f0b; color: var(--green); padding: 0 13px; outline: none; font-size: 16px; }
input:focus { border-color: var(--green2); box-shadow: 0 0 0 2px #22c66b18; }
.field-hint { color: #708678; font-size: 10px; margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-grid { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 39px; border: 1px solid #1d3427; padding: 0 11px; color: #b5c6ba; font-size: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: #3a8856; background: #102016; color: #e1f5e7; }
.choice input { accent-color: var(--green); width: 14px; height: 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; position: relative; margin: 20px 0; padding: 14px 0; border-top: 1px solid #1b3024; border-bottom: 1px solid #1b3024; cursor: pointer; }
.toggle-row strong, .toggle-row small { display: block; }.toggle-row strong { font-size: 12px; font-weight: 600; }.toggle-row small { color: #748b7b; font-size: 10px; margin-top: 4px; }
.toggle-row input { position: absolute; opacity: 0; }.toggle-ui { width: 36px; height: 20px; border-radius: 20px; background: #26372c; position: relative; transition: .2s; }
.toggle-ui:after { content: ""; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; border-radius: 50%; background: #91a397; transition: .2s; }
.toggle-row input:checked + .toggle-ui { background: #1b7842; }.toggle-row input:checked + .toggle-ui:after { transform: translateX(16px); background: white; }
.primary-button, .download-button, .secondary-button { min-height: 46px; padding: 0 15px; border-radius: 3px; font: 11px ui-monospace, monospace; letter-spacing: .1em; cursor: pointer; transition: .2s; }
.primary-button { width: 100%; border: 1px solid var(--green); background: var(--green); color: #07120b; font-weight: 800; box-shadow: 0 0 22px #61f59a20; }
.primary-button:hover { background: #8affb4; }.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button span { margin-right: 8px; }
.privacy-note { color: #748c7b; font-size: 10px; text-align: center; margin: 13px 0 0; }.privacy-note span { color: var(--green); }
.results-panel { display: flex; flex-direction: column; }
.count-badge { color: #b7c9bd; border-color: #294334; background: #0b130e; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #1d3427; margin-bottom: 15px; }
.stat { padding: 12px 14px; }.stat + .stat { border-left: 1px solid #1d3427; }
.stat span { display: block; color: #728a79; font: 9px ui-monospace, monospace; letter-spacing: .13em; }
.stat strong { display: block; color: var(--green); font: 22px ui-monospace, monospace; margin-top: 6px; }.stat .stat-status { font-size: 13px; }
.progress-track { height: 3px; background: #1a2a20; margin-bottom: 18px; overflow: hidden; }.progress-track div { width: 0; height: 100%; background: var(--green); box-shadow: 0 0 9px var(--green); transition: width .15s; }
.terminal-bar { display: flex; justify-content: space-between; gap: 8px; padding: 10px 11px; background: #101c14; border: 1px solid #203a2a; color: #a5b9aa; font: 9px ui-monospace, monospace; letter-spacing: .1em; }
.terminal-bar i { display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-right: 6px; }
#terminalStatus { color: #6e8977; text-align: right; }
.output-wrap { flex: 1; min-height: 270px; }
textarea { width: 100%; min-height: 270px; height: 100%; resize: vertical; display: block; border: 1px solid #203a2a; border-top: 0; background: #070d09; color: #9beab5; padding: 13px; outline: none; font: 12px/1.8 ui-monospace, SFMono-Regular, monospace; overflow-wrap: anywhere; }
textarea::placeholder { color: #4e6857; }
.output-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: 14px; }
.secondary-button { border: 1px solid #355441; background: transparent; color: #b9cbbf; }.download-button { border: 1px solid var(--green); background: #13311f; color: var(--green); font-weight: 700; }
.secondary-button:hover, .download-button:hover { filter: brightness(1.25); }
button:disabled { opacity: .35; cursor: not-allowed; }
.text-button { align-self: center; margin: 12px 0 0; padding: 5px 10px; border: 0; background: none; color: #718778; font: 9px ui-monospace, monospace; letter-spacing: .15em; cursor: pointer; }
.text-button:hover { color: var(--green); }
.result-note { color: #627869; font-size: 10px; line-height: 1.5; text-align: center; margin: 8px 0 0; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 27px 0 32px; margin-top: 25px; border-top: 1px solid #1b3024; color: #74897a; font: 9px ui-monospace, monospace; letter-spacing: .12em; }
.footer-brand strong { color: var(--green); }.footer-meta span { color: var(--green); padding: 0 5px; }
@media (max-width: 760px) {
  .app-shell { width: min(100% - 30px, 560px); }
  .topbar { height: 68px; }.status { font-size: 8px; letter-spacing: .07em; }.status-divider { padding: 0 4px; }
  .hero { padding: 43px 0 22px; }.mobile-break { display: block; } h1 { font-size: clamp(43px, 12vw, 62px); }
  .hero-copy { font-size: 13px; }.workspace { grid-template-columns: 1fr; gap: 13px; }
  .panel { padding: 19px; }.panel-heading { margin-bottom: 20px; }
  .output-wrap, textarea { min-height: 240px; }
  footer { flex-direction: column; padding-bottom: 25px; }
}
@media (max-width: 380px) {
  .app-shell { width: calc(100% - 22px); }.brand-copy small { font-size: 8px; }
  .status { font-size: 7px; }.panel { padding: 15px; }.two-col { gap: 8px; }
  .output-actions { grid-template-columns: 1fr; }.output-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
