:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #111713; color: #edf4ea; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; background: radial-gradient(circle at 75% 10%, #285342 0, transparent 31rem), #111713; }
.app-shell { width: min(100%, 700px); padding: 3rem 1.5rem; }
header { margin-bottom: 2rem; }
.eyebrow { color: #a5d86a; font-size: .72rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 .7rem; }
h1 { font-size: clamp(2.3rem, 7vw, 4.5rem); letter-spacing: -.06em; line-height: .95; margin: 0; }
.intro { color: #b7c4b9; line-height: 1.5; max-width: 34rem; }
.monitor, .settings { background: #1a241d; border: 1px solid #314438; border-radius: 1rem; padding: 1.4rem; }
.status-row { align-items: center; color: #b7c4b9; display: flex; gap: .6rem; font-size: .9rem; }
.status-dot { background: #778178; border-radius: 50%; height: .65rem; width: .65rem; }
.status-dot.live { background: #a5d86a; box-shadow: 0 0 0 .35rem #a5d86a22; }
.status-dot.alert { background: #ff7359; box-shadow: 0 0 0 .35rem #ff735922; }
.meter-wrap { margin: 2.2rem 0; }
.meter-labels { color: #b7c4b9; display: flex; font-size: .7rem; font-weight: 800; justify-content: space-between; letter-spacing: .1em; }
.meter { background: #0e1510; border-radius: 99px; height: .7rem; margin-top: .7rem; overflow: hidden; }
#level-bar { background: linear-gradient(90deg, #8ac95d, #e4d15d, #ff7359); height: 100%; transition: width 80ms linear; width: 0; }
.meter-wrap small { display: block; margin-top: .65rem; }
.event-count { align-items: end; display: flex; gap: 1rem; }
.event-count strong { color: #a5d86a; font-size: 4.3rem; letter-spacing: -.08em; line-height: .8; }
.event-count span { color: #b7c4b9; font-size: .82rem; line-height: 1.25; }
.controls { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 2rem; }
button { background: #a5d86a; border: 0; border-radius: .5rem; color: #14200f; cursor: pointer; font: inherit; font-weight: 800; padding: .85rem 1.1rem; }
button:disabled { cursor: not-allowed; opacity: .45; }
button.secondary { background: transparent; border: 1px solid #526657; color: #edf4ea; }
.settings { display: grid; gap: 1.1rem; }
h2 { font-size: 1rem; margin: 0 0 .2rem; }
label { color: #d8e3d7; display: grid; font-size: .86rem; gap: .5rem; }
label output { color: #a5d86a; float: right; font-weight: 800; }
input[type="range"] { accent-color: #a5d86a; width: 100%; }
.file-label { border-top: 1px solid #314438; margin-top: .3rem; padding-top: 1rem; }
input[type="file"] { color: #b7c4b9; max-width: 100%; }
small { color: #94a596; }
.privacy { color: #94a596; font-size: .76rem; margin: 1.2rem 0 0; text-align: center; }
@media (max-width: 430px) { .app-shell { padding: 2rem 1rem; } .controls button { flex: 1; } }
