/* Fire EMS Countdown - shared iOS-style tokens and controls */
:root{--bg:#f2f2f7;--card:#fff;--ink:#000;--sec:rgba(60,60,67,.6);--ter:rgba(60,60,67,.3);--sep:rgba(60,60,67,.18);--blue:#007aff;--green:#34c759;--orange:#ff9500;--red:#ff3b30;--fill:rgba(120,120,128,.12)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Inter,system-ui,"Helvetica Neue",sans-serif;background:var(--bg);color:var(--ink);font-size:17px;line-height:1.3;-webkit-font-smoothing:antialiased;letter-spacing:-.01em}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.app{max-width:430px;margin:0 auto;min-height:100vh;position:relative}
.btn{display:block;width:100%;background:var(--blue);color:#fff;font-weight:600;font-size:17px;border-radius:14px;min-height:50px;margin-top:12px}
.btn.gray{background:var(--fill);color:var(--blue)}
.btn:disabled{opacity:.35}
.field{width:100%;font:inherit;font-size:17px;border:0;background:var(--fill);border-radius:12px;padding:13px 14px;margin-top:6px;color:var(--ink)}
.fine{font-size:13px;color:var(--sec);line-height:1.4}
.ibtn{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--blue);color:var(--blue);font:italic 600 13px/19px Georgia,serif;text-align:center;flex:none;position:relative}
.ibtn::after{content:"";position:absolute;inset:-11px}
/* stepper */
.stepper{display:flex;align-items:center;background:var(--fill);border-radius:9px;height:34px;flex:none}
.stepper button{width:42px;height:34px;font-size:22px;line-height:34px;color:var(--ink)}
.stepper input{width:40px;border:0;background:none;text-align:center;font:inherit;font-weight:600;font-variant-numeric:tabular-nums;border-left:1px solid var(--sep);border-right:1px solid var(--sep);height:20px;padding:0}
/* switch */
.switch{position:relative;width:51px;height:31px;flex:none;display:inline-block}
.switch input{opacity:0;width:0;height:0;position:absolute}
.switch span{position:absolute;inset:0;background:#e9e9ea;border-radius:31px;transition:.2s}
.switch span::before{content:"";position:absolute;width:27px;height:27px;left:2px;top:2px;background:#fff;border-radius:50%;box-shadow:0 3px 8px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.16);transition:.2s}
.switch input:checked+span{background:var(--green)}
.switch input:checked+span::before{transform:translateX(20px)}
/* segmented */
.seg{display:flex;background:var(--fill);border-radius:9px;padding:2px;gap:2px}
.seg button{flex:1;font-size:13px;font-weight:500;padding:7px 4px;border-radius:7px;white-space:nowrap}
.seg button.on{background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04);font-weight:600}
/* bottom sheet */
#sheet{position:fixed;inset:0;pointer-events:none;z-index:50}
#sheet .scrim{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;transition:.25s}
#sheet .panel{position:absolute;left:0;right:0;bottom:0;max-width:430px;margin:0 auto;background:#fff;border-radius:14px 14px 0 0;padding:6px 20px 34px;transform:translateY(100%);transition:.3s cubic-bezier(.2,.8,.2,1);max-height:85vh;overflow:auto}
#sheet.open{pointer-events:auto}#sheet.open .scrim{opacity:1}#sheet.open .panel{transform:none}
#sheet .grab{width:36px;height:5px;border-radius:3px;background:#c7c7cc;margin:0 auto 8px}
#sheet .sh-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
#sheet h3{margin:0;font-size:20px;font-weight:700}
#sheet .done{color:var(--blue);font-weight:600}
#sheet .sh-body{font-size:15px;line-height:1.45}#sheet ol,#sheet ul{padding-left:20px}#sheet li{margin:6px 0}
.lnk{color:var(--blue);font-size:inherit;text-align:left}.fine .lnk{color:inherit;text-decoration:underline;text-decoration-color:var(--ter);text-underline-offset:2px}#sheet .lnk{color:var(--blue);text-decoration:none}#sheet ol.steps{padding-left:20px;margin:4px 0 6px}#sheet .gh{font-size:13px;color:var(--sec);text-transform:uppercase;letter-spacing:.02em}
.wm{white-space:nowrap}.wm2{font-weight:500;color:var(--sec)}
.disclaimer{font-size:12px;color:var(--sec);text-align:center;padding:18px 24px 30px;line-height:1.4}
/* ---------- desktop website chrome ---------- */
.topnav,.sitefoot{display:none}
@media (min-width:900px){
  body{background:var(--bg)}
  .topnav{display:block;position:sticky;top:0;z-index:20;background:rgba(255,255,255,.8);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:.5px solid var(--sep)}
  .topnav .in,.sitefoot .in{max-width:1080px;margin:0 auto;padding:0 32px}
  .topnav .in{height:56px;display:flex;align-items:center;justify-content:space-between}
  .brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px;color:var(--ink);text-decoration:none;letter-spacing:-.02em}
  .brand .logomark{flex:none;display:block;border-radius:7px;box-shadow:0 1px 2px rgba(0,0,0,.12)}
  .topnav nav{display:flex;gap:28px}.topnav nav button{font-size:14px;color:var(--sec)}.topnav nav button:hover{color:var(--ink)}
  .sitefoot{display:block;border-top:.5px solid var(--sep);margin-top:48px}
  .sitefoot .in{padding:22px 32px 40px;font-size:12px;color:var(--sec);line-height:1.6;display:flex;gap:40px}.sitefoot .in div:first-child{white-space:nowrap}
  .disclaimer{display:none}
  .app{min-height:0}
  #sheet .panel{max-width:520px;bottom:auto;top:50%;transform:translateY(-40%) scale(.96);opacity:0;border-radius:16px;padding:18px 24px 26px;transition:.25s}
  #sheet.open .panel{transform:translateY(-50%);opacity:1}#sheet .grab{display:none}
}
