:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; background:#f4f3ef; color:#171816; }
* { box-sizing:border-box; }
html { background:#f4f3ef; }
body { margin:0; min-height:100svh; background:radial-gradient(circle at 90% 0%, #fff 0, transparent 34%), #f4f3ef; -webkit-font-smoothing:antialiased; }
button,input { font:inherit; }
button { -webkit-tap-highlight-color:transparent; }
.app-shell { width:min(100%, 460px); min-height:100svh; margin:auto; padding:calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 28px); }
.topbar { display:grid; grid-template-columns:46px 1fr 44px; align-items:center; gap:12px; margin-bottom:18px; }
.brand-mark { width:46px; height:46px; display:grid; place-items:center; border-radius:15px; background:#e82127; box-shadow:0 8px 24px #e8212733; overflow:hidden; }
.brand-mark img { width:100%; height:100%; display:block; }
.eyebrow { margin:0 0 3px; color:#6f716b; font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
h1 { margin:0; font-size:25px; letter-spacing:-.045em; line-height:1; }
.settings-button { border:0; border-radius:14px; width:44px; height:44px; display:grid; place-items:center; background:#fff; box-shadow:0 6px 24px #24251f0b; color:#50524d; }
.settings-button svg { width:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.settings-panel { margin:-8px 0 14px; padding:14px 16px; border-radius:18px; background:#fff; box-shadow:0 7px 25px #24251f0b; display:grid; gap:12px; font-size:14px; font-weight:650; }
.settings-panel[hidden] { display:none; }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.battery-card { display:flex; align-items:center; gap:22px; min-height:142px; padding:22px; border-radius:28px; background:#181917; color:white; box-shadow:0 16px 38px #1a1a1730; }
.battery-visual { display:flex; align-items:center; flex:1; min-width:0; }
.battery-body { position:relative; width:100%; height:72px; border:3px solid #f7f7f3; border-radius:17px; padding:5px; overflow:hidden; }
.battery-cap { width:5px; height:27px; background:#f7f7f3; border-radius:0 5px 5px 0; opacity:.8; }
.battery-fill { position:absolute; inset:5px auto 5px 5px; width:30%; border-radius:10px; background:linear-gradient(90deg,#48c96f,#91e36b); transition:width .25s ease; }
.target-marker { position:absolute; z-index:2; top:4px; bottom:4px; left:80%; width:2px; border-radius:99px; background:#fff; box-shadow:0 0 0 2px #18191766, 0 0 8px #fff9; transition:left .25s ease; }
.target-marker::before { content:""; position:absolute; top:-2px; left:-4px; width:10px; height:5px; border-radius:99px; background:#fff; }
.battery-body > span { position:absolute; inset:0; display:grid; place-items:center; font-size:19px; font-weight:800; text-shadow:0 1px 6px #0006; }
.battery-copy { min-width:92px; }
.battery-copy span,.battery-copy small { display:block; color:#a9aca4; font-size:12px; }
.battery-copy strong { display:block; margin:2px 0 9px; font-size:34px; letter-spacing:-.05em; }
.battery-copy small b { color:white; }
.control-card { margin-top:14px; padding:20px; border-radius:25px; background:#fff; box-shadow:0 10px 32px #24251f0b; }
.control-heading { display:flex; align-items:center; justify-content:space-between; font-size:15px; font-weight:700; }
.control-heading output { color:#e82127; font-size:20px; }
.range { --value:30%; display:block; appearance:none; width:100%; height:5px; margin:22px 0 11px; border-radius:999px; outline:none; background:linear-gradient(90deg,#e82127 var(--value),#e8e8e4 var(--value)); }
.range::-webkit-slider-thumb { appearance:none; width:29px; height:29px; border-radius:50%; border:5px solid white; background:#e82127; box-shadow:0 2px 10px #0003; }
.target-range { --value:80%; }
.range-labels { display:flex; justify-content:space-between; color:#9a9c96; font-size:11px; }
.divider { height:1px; background:#eeeee9; margin:18px 0; }
.locked-setting { margin:9px 0 0; color:#9a9c96; font-size:11px; }
.locked-setting button { padding:0; border:0; background:transparent; color:#e82127; font-size:11px; font-weight:700; }
.quick-targets { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:18px; }
.quick-targets button { min-height:38px; border:1px solid #e5e5df; border-radius:12px; background:#fafaf8; color:#73756e; font-size:13px; font-weight:700; }
.quick-targets button.active { border-color:#191a17; background:#191a17; color:white; }
.inputs-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.input-card { min-width:0; padding:17px 16px 15px; border-radius:21px; background:#fff; box-shadow:0 8px 27px #24251f0a; }
.input-card > span { color:#777a73; font-size:12px; font-weight:700; }
.input-card small { color:#aaa; font-size:10px; }
.number-field { display:flex; align-items:baseline; margin:4px 0 1px; }
.number-field input { width:100%; min-width:0; border:0; outline:none; background:transparent; color:#171816; font-size:27px; font-weight:750; letter-spacing:-.04em; }
.number-field b,.number-field span { flex:none; color:#6f716b; font-size:12px; }
.number-field.compact { width:110px; margin:0; padding:8px 11px; border:1px solid #e7e7e2; border-radius:12px; }
.number-field.compact input { font-size:18px; }
.result-card { margin-top:14px; padding:23px; border-radius:28px; background:linear-gradient(135deg,#e82127,#c41118); color:#fff; box-shadow:0 18px 36px #e8212730; }
.result-kicker { margin:0; color:#ffd7d8; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.time { margin:5px 0 4px; font-size:42px; font-weight:800; line-height:1; letter-spacing:-.055em; }
.arrival { display:flex; align-items:center; gap:7px; color:#ffe4e4; font-size:13px; }
.pulse { width:7px; height:7px; border-radius:50%; background:#fff; box-shadow:0 0 0 4px #ffffff2e; }
.arrival strong { color:#fff; }
.result-stats { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:21px; padding-top:17px; border-top:1px solid #ffffff36; }
.result-stats div { display:flex; flex-direction:column; gap:2px; }
.result-stats span { color:#ffd7d8; font-size:11px; }
.result-stats strong { font-size:18px; }
.note { margin:14px 15px 0; color:#868981; font-size:11px; line-height:1.45; text-align:center; }
.result-card.invalid { background:linear-gradient(135deg,#777a73,#5e615a); box-shadow:none; }
@media (min-width:700px) { .app-shell { padding-top:36px; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
