:root{--bg: #0e151c;--panel: #17212b;--line: #2a3847;--text: #eef3f8;--muted: #8fa0b3;--accent: #2aabee;--fire: #ff7a45;--font: "Segoe UI", "IBM Plex Sans", sans-serif}*{box-sizing:border-box}body{margin:0;font-family:var(--font);background:radial-gradient(900px 420px at 0% -10%,#1d3a52,transparent),var(--bg);color:var(--text);min-height:100vh}.app{max-width:720px;margin:0 auto;padding:.85rem .85rem 1.5rem}.hero-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.hero h1{margin:.15rem 0;font-size:1.4rem}.filter-icon-btn{position:relative;flex-shrink:0;width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.filter-icon-btn.open{border-color:var(--accent);color:var(--accent)}.filter-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--accent);color:#041018;font-size:.7rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.eyebrow{margin:0;color:var(--accent);font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:.72rem}.sub,.muted{color:var(--muted)}.sub{margin:0;font-size:.85rem}.error{color:#ff6b6b}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.55rem;margin:.75rem 0 1.15rem;padding-bottom:.35rem}.stat{border:1px solid #35566f;background:linear-gradient(160deg,#1b3348,#152833);color:var(--text);border-radius:12px;padding:.7rem .75rem;text-align:left;cursor:pointer;box-shadow:inset 0 1px #5aaadc1f}.stat strong{display:block;font-size:1.35rem;line-height:1.15}.stat-unit{font-size:.78rem;font-weight:600;color:var(--muted)}.stat>span{display:block;margin-top:.2rem;color:var(--muted);font-size:.82rem}.stat.active{border-color:var(--accent);background:linear-gradient(160deg,#214860,#183647);box-shadow:inset 0 0 0 1px var(--accent),inset 0 1px #5aaadc2e}.list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;margin:0 0 .55rem}.list-heading h2{margin:0;font-size:1rem;font-weight:700;line-height:1.3}.list-count{color:var(--muted);font-size:.8rem;font-weight:600;white-space:nowrap}.notify-row{display:flex;flex-direction:row;align-items:flex-start;gap:.55rem;margin:0 0 .85rem;padding:.7rem .8rem;border:1px solid var(--line);border-radius:12px;background:#14202cb8;color:var(--text);font-size:.88rem;line-height:1.35}.notify-row input{margin-top:.15rem}.filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}label{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem;color:var(--muted)}label.check{flex-direction:row;align-items:center;gap:.5rem;margin-top:1.2rem;grid-column:1 / -1}select{border:1px solid var(--line);background:#111820;color:var(--text);border-radius:10px;padding:.5rem .6rem;font:inherit}.list{display:flex;flex-direction:column;gap:.5rem;scroll-margin-top:.75rem;border-top:1px solid rgba(42,56,71,.85);padding-top:.85rem}.card{background:#141c24;border:1px solid #243140;border-radius:12px;padding:.65rem .75rem .7rem}.card-top{display:flex;justify-content:space-between;gap:.45rem;align-items:flex-start;margin-bottom:.2rem}.card-top-right{display:inline-flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.35rem;flex-shrink:0}.car-name,.badge.fire,.detail-line{display:inline-flex;align-items:center;gap:.3rem}.car-name{font-size:.95rem;line-height:1.2}.icon{display:inline-flex;line-height:0;color:var(--muted);flex-shrink:0}.badge.fire .icon{color:var(--fire)}.badge.fire{color:var(--fire);font-size:.75rem;font-weight:700;white-space:nowrap}.updated-badge{color:var(--muted);font-size:.72rem;white-space:nowrap}.route-line{margin:.15rem 0 .25rem;font-size:.9rem;line-height:1.3}.detail-lines{display:flex;flex-direction:column;gap:.12rem}.detail-line{margin:0;color:var(--muted);font-size:.82rem;line-height:1.3}.detail-line .icon{color:var(--accent)}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.4rem}.flags{display:flex;flex-wrap:wrap;gap:.3rem;color:var(--muted);font-size:.75rem}.flags span{border:1px solid var(--line);border-radius:6px;padding:.08rem .35rem}.call-btn{flex-shrink:0;width:40px;height:40px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#041018;text-decoration:none}.call-btn:active{filter:brightness(.95)}.sheet-root{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;align-items:flex-end;justify-content:center}.sheet-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;border:none;background:#0000008c;cursor:pointer}.sheet-panel{position:relative;width:min(720px,100%);max-height:min(88vh,720px);overflow:auto;background:var(--panel);border:1px solid var(--line);border-bottom:none;border-radius:16px 16px 0 0;padding:.4rem .9rem calc(.9rem + env(safe-area-inset-bottom,0px));animation:sheet-up .22s ease-out}@keyframes sheet-up{0%{transform:translateY(24px);opacity:.7}to{transform:translateY(0);opacity:1}}.sheet-handle{width:36px;height:4px;border-radius:999px;background:#3d5163;margin:.15rem auto .55rem}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.sheet-head h2{margin:0;font-size:1.05rem}.sheet-close{border:none;background:transparent;color:var(--muted);cursor:pointer;font:inherit;font-size:.88rem;font-weight:600}.sheet-apply{width:100%;margin-top:.9rem;border:none;border-radius:11px;padding:.75rem .9rem;background:var(--accent);color:#041018;font:inherit;font-weight:700;cursor:pointer}@media (max-width: 560px){.filters{grid-template-columns:1fr}}@media (min-width: 720px){.sheet-root{align-items:center;padding:1rem}.sheet-panel{border-radius:16px;border-bottom:1px solid var(--line);max-height:80vh}}
