:root {
  --ink: #111311;
  --panel: #181b18;
  --panel-soft: #20241f;
  --paper: #e7e3d8;
  --muted: #989b91;
  --line: #343a33;
  --acid: #c7f45b;
  --amber: #f0a334;
  --red: #ed6658;
  --teal: #61cbb6;
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--paper); background: radial-gradient(circle at 78% 2%, #243127 0, transparent 30rem), linear-gradient(135deg, #111311 0%, #151914 55%, #0d0f0d 100%); font-family: "Bahnschrift", "Aptos", sans-serif; letter-spacing: .01em; }
button, input { font: inherit; }
button { color: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .035; 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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E"); }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 70px); border-bottom: 1px solid var(--line); background: rgba(12, 14, 12, .78); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 8; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--paper); text-decoration: none; }
.brand b { font-size: 18px; letter-spacing: .09em; font-stretch: condensed; }
.brand em { color: var(--acid); font-style: normal; }
.brand-wave { width: 42px; height: 32px; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--line); transform: skew(-8deg); }
.brand-wave i { width: 2px; height: 8px; background: var(--acid); animation: bounce 1.3s ease-in-out infinite; }
.brand-wave i:nth-child(2), .brand-wave i:nth-child(4) { height: 18px; animation-delay: -.35s; }
.brand-wave i:nth-child(3) { height: 25px; animation-delay: -.65s; }
@keyframes bounce { 50% { transform: scaleY(.35); opacity: .5; } }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.system-pill { display: grid; grid-template-columns: 10px auto; align-items: center; column-gap: 8px; }
.system-pill strong { color: var(--acid); font-size: 11px; letter-spacing: .14em; }
.system-pill small { grid-column: 2; color: var(--muted); font-size: 9px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(199, 244, 91, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(199, 244, 91, 0); } }
.quiet-button { border: 1px solid var(--line); background: transparent; padding: 10px 14px; cursor: pointer; color: var(--muted); }
.quiet-button:hover { color: var(--paper); border-color: var(--muted); }
.workspace { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(35px, 7vw, 120px); align-items: end; padding-bottom: 55px; }
.eyebrow { color: var(--acid); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero-copy h1 { font-family: "Bahnschrift SemiCondensed", "Franklin Gothic Medium", sans-serif; margin: 18px 0; font-size: clamp(54px, 7.4vw, 116px); line-height: .85; letter-spacing: -.055em; text-transform: uppercase; }
.hero-copy h1 span { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.hero-copy > p:last-child { max-width: 690px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.meter-panel { background: var(--paper); color: var(--ink); min-height: 270px; padding: 28px; transform: rotate(-1.2deg); box-shadow: var(--shadow); }
.meter-head, .meter-foot { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.meter-head b { background: var(--ink); color: var(--acid); padding: 3px 8px; }
.loudness-number { font-family: Georgia, serif; font-size: clamp(85px, 10vw, 150px); line-height: 1; letter-spacing: -.07em; margin: 8px 0 0; }
.loudness-number small { font-family: "Bahnschrift", sans-serif; font-size: 13px; letter-spacing: .12em; margin-left: 12px; }
.meter-scale { height: 38px; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 5px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; margin-bottom: 12px; }
.meter-scale i { display: block; height: 25%; background: var(--ink); }
.meter-scale i:nth-child(2n) { height: 45%; }
.meter-scale i:nth-child(n+7) { height: 70%; background: var(--amber); }
.meter-scale i:nth-child(n+10) { height: 100%; background: var(--red); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 34px; }
.stat-card { padding: 25px 28px; position: relative; min-height: 146px; border-right: 1px solid var(--line); background: rgba(23, 26, 23, .72); }
.stat-card:last-child { border-right: 0; }
.stat-card > span { font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.stat-card strong { display: block; font-family: Georgia, serif; font-size: 57px; line-height: 1.05; margin-top: 8px; }
.stat-card small { color: var(--muted); }
.stat-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--line); transform: scaleX(.25); transform-origin: left; transition: transform .4s; }
.stat-card:hover::after { transform: scaleX(1); }
.stat-card.ready::after { background: var(--acid); }.stat-card.processing::after { background: var(--amber); }.stat-card.rejected::after { background: var(--red); }.stat-card.waiting::after { background: var(--teal); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.upload-panel, .ab-panel, .queue-section { background: var(--panel); border: 1px solid var(--line); padding: clamp(22px, 3vw, 38px); box-shadow: 0 20px 55px rgba(0, 0, 0, .13); }
.section-title { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.section-title > span { color: var(--acid); font-family: Georgia, serif; font-size: 15px; border-top: 1px solid var(--acid); padding-top: 4px; }
.section-title h2 { margin: 0; text-transform: uppercase; font-size: 19px; letter-spacing: .055em; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.dropzone { min-height: 210px; border: 1px dashed #53604f; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background: repeating-linear-gradient(-45deg, transparent 0, transparent 11px, rgba(255,255,255,.013) 11px, rgba(255,255,255,.013) 12px); transition: .25s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--acid); background-color: rgba(199,244,91,.035); }
.dropzone input { display: none; }
.upload-glyph { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--acid); color: var(--ink); font-size: 28px; margin-bottom: 8px; }
.dropzone b { text-transform: uppercase; letter-spacing: .08em; }.dropzone small { color: var(--muted); }
.upload-list { display: grid; gap: 8px; margin-top: 12px; }
.upload-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 12px; }.upload-item progress { grid-column: 1 / -1; width: 100%; accent-color: var(--acid); }
.local-note { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; color: var(--muted); font-size: 11px; }
.local-note span { color: var(--teal); font-weight: 700; letter-spacing: .12em; }.local-note code { color: var(--paper); }.local-note small { grid-column: 2; }
.ab-stage { min-height: 314px; display: flex; flex-direction: column; justify-content: space-between; background: #101310; border: 1px solid #2b302b; padding: 27px; overflow: hidden; position: relative; }
.ab-wave { height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 4px; opacity: .8; }
.ab-wave i { width: 3px; height: calc(12px + var(--h, 30) * 1px); background: var(--teal); transform-origin: center; animation: waveIdle 3.4s ease-in-out infinite; }
.ab-wave i:nth-child(3n) { --h: 70; }.ab-wave i:nth-child(4n) { --h: 45; }.ab-wave i:nth-child(5n) { --h: 85; }
@keyframes waveIdle { 50% { transform: scaleY(.65); opacity: .45; } }
.ab-switch { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.ab-switch button { height: 43px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.ab-switch button.active { background: var(--acid); color: var(--ink); }
#abAudio { width: 100%; height: 38px; margin: 15px 0; }
.ab-metrics { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }.ab-metrics b { color: var(--paper); margin-left: 5px; }
.queue-heading { display: flex; justify-content: space-between; align-items: start; }.queue-legend { color: var(--muted); font-size: 10px; display: flex; gap: 7px; align-items: center; }.queue-legend i { width: 6px; height: 6px; border-radius: 50%; margin-left: 8px; }.ready-dot { background: var(--acid); }.work-dot { background: var(--amber); }.wait-dot { background: var(--teal); }
.queue-table-wrap { overflow-x: auto; }.queue-table { width: 100%; border-collapse: collapse; min-width: 900px; }.queue-table th { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); }.queue-table td { padding: 16px 10px; border-bottom: 1px solid #292e29; font-size: 12px; }.queue-table tr { cursor: pointer; transition: background .2s; }.queue-table tbody tr:hover { background: #20251f; }.queue-table .filename { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }.status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .1em; }.status-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }.status-tag.READY::before { background: var(--acid); }.status-tag.PROCESSING::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(240,163,52,.12); }.status-tag.WAITING::before { background: var(--teal); }.status-tag.REJECTED::before { background: var(--red); }
.progress-cell { min-width: 150px; }.micro-progress { width: 100%; height: 2px; background: var(--line); margin-top: 7px; }.micro-progress i { display: block; height: 100%; background: var(--amber); }.action-link { border: 1px solid var(--line); background: transparent; padding: 7px 10px; cursor: pointer; font-size: 10px; text-decoration: none; color: var(--paper); }.action-link:hover { border-color: var(--acid); color: var(--acid); }
.empty-row td { color: var(--muted); text-align: center; padding: 50px; }
footer { min-height: 70px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 70px); color: #666c63; font-size: 9px; letter-spacing: .12em; }

.login-body { min-height: 100vh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 25% 40%, #263027, transparent 35rem), #0e100e; }
.login-shell { width: min(1120px, calc(100% - 40px)); display: grid; grid-template-columns: 1.2fr .8fr; align-items: stretch; min-height: 650px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-mark { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 75px); background: #151915; display: flex; flex-direction: column; justify-content: flex-end; }
.login-mark h1 { position: relative; z-index: 1; margin: 20px 0; font-size: clamp(62px, 8vw, 118px); line-height: .78; letter-spacing: -.06em; }.login-mark h1 span { color: var(--acid); }.login-copy { max-width: 490px; color: var(--muted); line-height: 1.6; }
.signal-orbit { position: absolute; left: 50%; top: 8%; width: 400px; height: 400px; border: 1px solid #30362f; border-radius: 50%; transform: translateX(-50%); }.signal-orbit::before, .signal-orbit::after { content: ""; position: absolute; border: 1px solid #2b302b; border-radius: 50%; inset: 60px; }.signal-orbit::after { inset: 130px; }.signal-orbit i { position: absolute; left: 50%; top: 50%; width: 3px; height: 130px; background: linear-gradient(var(--acid), transparent); transform-origin: 50% 0; }.signal-orbit i:nth-child(2) { transform: rotate(72deg); }.signal-orbit i:nth-child(3) { transform: rotate(144deg); }.signal-orbit i:nth-child(4) { transform: rotate(216deg); }.signal-orbit i:nth-child(5) { transform: rotate(288deg); }
.login-card { background: var(--paper); color: var(--ink); padding: clamp(35px, 5vw, 65px); display: flex; flex-direction: column; justify-content: center; }.login-card h2 { font-family: Georgia, serif; font-size: 43px; margin: 30px 0 8px; }.login-card > p { color: #6b6d65; margin: 0 0 30px; }.status-line { color: #4b5544; font-size: 10px; letter-spacing: .13em; }.status-line span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #789d31; margin-right: 8px; }.login-card form { display: grid; gap: 18px; }.login-card label { display: grid; gap: 7px; color: #66685f; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }.login-card input { color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #9d9d93; padding: 12px 2px; outline: 0; font-size: 17px; }.login-card input:focus { border-color: var(--ink); }.primary-button { margin-top: 10px; border: 0; background: var(--ink); color: var(--paper); height: 54px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; }.primary-button:hover { background: #2c3328; color: var(--acid); }.login-card small { margin-top: 35px; color: #8e8f86; font-size: 9px; letter-spacing: .1em; }.login-error { background: #ffd9d4; color: #7f2017; padding: 12px; margin-bottom: 18px; font-size: 12px; }

@media (max-width: 950px) { .hero-grid, .control-grid, .login-shell { grid-template-columns: 1fr; }.meter-panel { transform: none; }.stats { grid-template-columns: 1fr 1fr; }.stat-card:nth-child(2) { border-right: 0; }.login-mark { min-height: 480px; }.system-pill { display: none; } }
@media (max-width: 600px) { .workspace { width: min(100% - 22px, 1500px); padding-top: 38px; }.topbar { padding: 0 12px; }.brand b { font-size: 13px; }.quiet-button { padding: 8px; font-size: 10px; }.hero-copy h1 { font-size: 50px; }.stats { grid-template-columns: 1fr; }.stat-card { border-right: 0; border-bottom: 1px solid var(--line); }.queue-heading, footer { gap: 20px; align-items: flex-start; flex-direction: column; }.queue-legend { display: none; }.login-shell { width: 100%; border: 0; }.login-mark { min-height: 390px; }.login-card { min-height: 470px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

