:root{color-scheme:dark;--ink:#091012;--panel:#10191b;--paper:#efeee7;--muted:#9aa5a5;--red:#e82424;--green:#a6e51a;--line:#2b393b;font-family:Arial,Helvetica,sans-serif}
*{box-sizing:border-box}
html{min-height:100%;background:var(--ink)}
body{min-height:100vh;min-height:100dvh;margin:0;color:var(--paper);background:var(--ink);-webkit-tap-highlight-color:transparent}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);background-size:42px 42px;opacity:.025}
button,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:3px}
a{color:inherit}
[hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.app-shell{position:relative;width:min(100%,520px);min-height:100vh;min-height:100dvh;margin:auto;display:flex;flex-direction:column;background:linear-gradient(180deg,#10191b 0%,var(--ink) 30%);box-shadow:0 0 90px #0005}
.app-header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:90px;padding:calc(14px + env(safe-area-inset-top)) 20px 14px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:16px;font-weight:900;line-height:1.04;letter-spacing:-.4px}
.brand img{flex:none;width:46px;height:46px;border:1px solid #ffffff55;border-radius:6px}
.brand span{display:flex;flex-direction:column}.brand strong{color:var(--red)}
.unit-status{flex:none;text-align:right;font:700 9px/1.5 'Courier New',monospace;letter-spacing:1px;color:var(--muted)}
.unit-status b{display:block;color:var(--green)}.unit-status i{display:inline-block;width:7px;height:7px;margin-right:3px;background:var(--green);border-radius:50%;box-shadow:0 0 8px var(--green)}
main{flex:1;display:flex;flex-direction:column}.screen{width:100%;padding:25px 22px 36px;animation:appear .3s ease-out}.eyebrow,.input-meta,.result-topline,.category,.sources h3,.research-steps,.fine-print,.app-footer,.secondary-button,.alarm-button{font-family:'Courier New',monospace;letter-spacing:.7px}
.eyebrow{margin:0 0 13px;color:var(--red);font-size:10px;font-weight:800}.eyebrow span{color:var(--muted)}
h1,h2,h3,p,blockquote{margin-top:0}h1,h2{font-stretch:condensed;letter-spacing:-1.4px;font-weight:900}
.entry-screen h1{font-size:clamp(40px,12vw,58px);line-height:.91;margin-bottom:16px}.intro{max-width:360px;margin-bottom:24px;color:var(--muted);font:13px/1.6 'Courier New',monospace}
.input-wrap{position:relative;border:1px solid #47585a;background:#ffffff08}.input-wrap:focus-within{border-color:#9da9a4}
textarea{display:block;width:100%;min-height:210px;padding:16px 16px 77px;resize:vertical;border:0;outline:0;background:transparent;color:var(--paper);font:17px/1.45 'Courier New',monospace}
textarea::placeholder{color:#6f7b7c;opacity:1}
.record-button{position:absolute;right:12px;bottom:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:58px;height:58px;border:0;background:var(--paper);color:var(--ink);font:900 9px 'Courier New',monospace}
.record-button .record-symbol{font-size:17px;line-height:1}.record-button.recording{background:var(--red);color:#fff;animation:record-pulse 1.2s infinite}.record-button:disabled{opacity:.4}
.input-meta{display:flex;justify-content:space-between;gap:10px;min-height:45px;padding-top:10px;color:var(--muted);font-size:10px;font-weight:700}.input-meta .active{color:var(--red)}
.primary-button,.secondary-button,.alarm-button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:60px;padding:0 18px;font-size:14px;font-weight:900;letter-spacing:.7px}
.primary-button{border:0;background:var(--red);color:#fff}.primary-button:disabled{background:#2c393b;color:#839092}.primary-button span:last-child{font-size:24px}
.fine-print{margin:17px 0 0;text-align:center;color:#889294;font-size:9px;line-height:1.6}
.app-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:18px 22px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--line);color:#829092;font-size:9px;font-weight:700}.app-footer a{color:var(--green);text-decoration:none}
.research-screen,.error-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:460px}
.radar{position:relative;width:200px;height:200px;margin-bottom:29px;border:1px solid #a6e51a99;border-radius:50%;background:radial-gradient(circle,transparent 0 31%,#a6e51a33 31.5%,transparent 32%,transparent 63%,#a6e51a33 63.5%,transparent 64%),linear-gradient(90deg,transparent calc(50% - .5px),#a6e51a44 50%,transparent calc(50% + .5px)),linear-gradient(transparent calc(50% - .5px),#a6e51a44 50%,transparent calc(50% + .5px));overflow:hidden}
.radar-sweep{position:absolute;left:50%;top:50%;width:46%;height:3px;background:linear-gradient(90deg,var(--green),transparent);transform-origin:left center;animation:sweep 1.5s linear infinite;box-shadow:0 0 15px var(--green)}.radar-dot{position:absolute;left:calc(50% - 5px);top:calc(50% - 5px);width:10px;height:10px;background:var(--green);border-radius:50%;box-shadow:0 0 14px var(--green)}
.research-screen .eyebrow{color:var(--green)}.research-screen h2{font-size:31px;line-height:.95;margin-bottom:12px}.research-steps{max-width:350px;color:var(--green);font-size:10px;line-height:1.6}.research-screen blockquote{max-width:340px;margin:20px 0 0;color:var(--muted);font:13px/1.6 'Courier New',monospace;overflow-wrap:anywhere}
.result-topline{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px;color:var(--muted);font-size:10px;font-weight:800}.verdict-box{display:flex;align-items:center;justify-content:center;min-height:145px;border:3px solid var(--red);background:#e8242414}.verdict-box h2{margin:0;color:var(--red);font-size:clamp(66px,19vw,90px);line-height:1}.result-screen.true .verdict-box{border-color:var(--green);background:#a6e51a14}.result-screen.true .verdict-box h2,.result-screen.true .category{color:var(--green)}
.result-screen blockquote{margin:22px 0 0;font:700 17px/1.45 'Courier New',monospace;overflow-wrap:anywhere}.category{margin:15px 0 0;color:var(--red);font-size:10px;font-weight:800}.explanation{margin:20px 0 0;font:14px/1.6 'Courier New',monospace}.punchline{margin:20px 0 0;padding-left:13px;border-left:4px solid var(--red);font:700 15px/1.5 'Courier New',monospace}.result-screen.true .punchline{border-color:var(--green)}
.alarm-button{justify-content:center;min-height:46px;margin-top:22px;border:1px solid var(--red);background:#e8242414;color:var(--paper)}.sources{margin-top:26px}.sources h3{margin-bottom:10px;color:var(--muted);font-size:10px}.sources ul{list-style:none;padding:0;margin:0}.sources li{margin:8px 0;border:1px solid var(--line);background:#ffffff08}.sources a{display:flex;justify-content:space-between;gap:14px;min-height:48px;padding:12px;font:12px/1.4 'Courier New',monospace;text-decoration:none;overflow-wrap:anywhere}.sources a span:last-child{flex:none;color:var(--green);font-size:18px}
.secondary-button{justify-content:center;min-height:55px;margin-top:28px;border:1px solid var(--paper);background:transparent;color:var(--paper)}
.error-icon{width:65px;height:65px;margin-bottom:18px;border:4px solid var(--red);border-radius:50%;color:var(--red);font-size:43px;font-weight:900;line-height:56px}.error-screen h2{font-size:32px;line-height:.95;margin-bottom:14px}.error-screen p{max-width:350px;margin-bottom:25px;color:var(--muted);font:13px/1.6 'Courier New',monospace}.error-screen .primary-button{max-width:340px}
@keyframes sweep{to{transform:rotate(360deg)}}@keyframes record-pulse{50%{box-shadow:0 0 0 7px #e8242444}}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:600px){body{padding:28px}.app-shell{min-height:calc(100vh - 56px);min-height:calc(100dvh - 56px);border:1px solid var(--line);border-radius:12px;overflow:hidden}.app-header{padding-top:14px}.app-footer{padding-bottom:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
