/* Setup wizard (/setup): the guided way in for people who aren't solar pros.
   Same Voratide tokens as style.css (dark, warm neutrals, gold accent, cream
   primary button); one column that fills a phone and sits centred on a
   desktop. */
:root {
  --bg: #0f1116;
  --panel-bg: #14171d;
  --card-bg: #1a1d24;
  --input-bg: #1f232b;
  --surface-3: #282c35;
  --border: #2a2e37;
  --border-soft: #21242b;
  --text: #ede9e0;
  --text-dim: #a29e96;
  --text-faint: #6f6b64;
  --gold: #d4af37;
  --gold-text: #e5c158;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-line: rgba(212, 175, 55, 0.45);
  --cream: #fafaf7;
  --navy: #1a1d23;
  --c-solar: #d4a94a;
  --c-battery: #3e9e96;
  --c-grid: #8e98aa;
  --c-load: #7a9cc9;
  --ok: #5da880;
  --warn: #d08a3e;
  --bad: #d65f5a;
  --font-h: "Playfair Display", Georgia, serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #090a0d;
  color: var(--text);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; }
a { color: var(--gold-text); }
.loading { padding: 40px; color: var(--text-dim); }

/* the wizard column */
.wiz {
  max-width: 520px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 600px) {
  body { padding: 24px 0; }
  .wiz { height: calc(100dvh - 48px); border: 1px solid var(--border-soft); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
}

/* --- chrome: brand, step count, progress --- */
.top { padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.brandrow { display: flex; align-items: center; gap: 10px; }
.wm { font-size: 11px; letter-spacing: 0.22em; font-weight: 600; text-decoration: none; color: var(--text); }
.wm b { color: var(--gold); font-weight: 600; }
.rule { width: 1px; height: 14px; background: var(--border); }
.appname { font-family: var(--font-h); font-size: 17px; font-weight: 600; }
.tag { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 99px; padding: 2px 8px; }
.stepno { margin-left: auto; font-size: 12px; color: var(--text-dim); }
.segs { display: flex; gap: 4px; }
.seg { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background 0.4s, box-shadow 0.4s; }
.seg.done { background: #b8962e; }
.seg.now { background: var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.7); }

.body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; }
.screen { padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.screen.anim { animation: slideIn 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
.screen.anim.back { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.q { font-family: var(--font-h); font-size: 27px; line-height: 1.18; font-weight: 600; margin: 0; }
.lead { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-dim); }
.label { font-size: 12.5px; color: var(--text-dim); font-weight: 500; letter-spacing: 0.02em; }

/* choice cards */
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px; text-align: left; cursor: pointer;
  display: flex; gap: 14px; align-items: center; width: 100%; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.card:hover { border-color: #3a3f4a; }
.card:active { transform: scale(0.985); }
.card.on { border-color: var(--gold); background: #1f1d17; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--input-bg); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.card.on .ic { background: rgba(212, 175, 55, 0.16); }
.card .txt { display: flex; flex-direction: column; min-width: 0; }
.ct { font-weight: 600; font-size: 16px; }
.cs { font-size: 13px; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }
.cs.gold { color: var(--gold); margin-top: 2px; }
.radio { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a3f4a; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.card.on .radio { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.kva { font-family: var(--font-h); font-size: 24px; font-weight: 600; min-width: 64px; }
.kva small { font-size: 13px; font-family: var(--font-b); color: var(--text-dim); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--input-bg); border: 1px solid var(--border); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all 0.18s; }
.chip.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-text); }

.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 10px; }
.sbtn { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-3); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sbtn:active { background: #343945; }
.big { font-family: var(--font-h); font-size: 44px; font-weight: 600; line-height: 1; text-align: center; }
.bigsub { font-size: 12.5px; color: var(--text-dim); text-align: center; margin-top: 4px; }

.feedback { display: flex; gap: 10px; align-items: center; background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--gold-text); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; line-height: 1.4; }
.feedback.warn { background: rgba(208, 138, 62, 0.1); border-color: rgba(208, 138, 62, 0.4); color: #e2a868; }
.feedback svg { flex-shrink: 0; }
.hint { display: flex; gap: 10px; background: var(--card-bg); border: 1px dashed #3a3f4a; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--text-dim); line-height: 1.45; }
.hint b { color: var(--text); font-weight: 600; }
.linkbtn { align-self: flex-start; background: none; border: none; color: var(--gold-text); font-size: 14px; font-weight: 500; cursor: pointer; padding: 8px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.toggle { display: flex; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.toggle button { flex: 1; min-height: 40px; border: none; border-radius: 9px; background: none; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-dim); }
.toggle button.on { background: var(--surface-3); color: var(--text); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tilebtn { min-height: 56px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border); cursor: pointer; text-align: left; padding: 10px 14px; }
.tilebtn.on { border-color: var(--gold); background: #1f1d17; }
.tilebtn .n { font-weight: 600; font-size: 15px; }
.tilebtn .l { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

/* appliances */
.total { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 6px 0 8px; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-dim); }
.total b { color: var(--gold-text); }
.arow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; transition: border-color 0.2s; }
.arow.on { border-color: rgba(212, 175, 55, 0.55); }
.aic { width: 38px; height: 38px; border-radius: 10px; background: var(--input-bg); display: flex; align-items: center; justify-content: center; color: var(--c-load); flex-shrink: 0; }
.arow.on .aic { color: var(--gold); background: var(--gold-soft); }
.an { font-size: 14.5px; font-weight: 600; }
.aw { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.qty { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.qb { width: 38px; height: 38px; border-radius: 10px; border: none; background: var(--surface-3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qn { min-width: 22px; text-align: center; font-weight: 700; font-size: 15px; }

/* the 24-hour outage bar */
.daybar { position: relative; height: 34px; border-radius: 10px; background: var(--input-bg); overflow: hidden; border: 1px solid var(--border); }
.dayout { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(214, 95, 90, 0.55) 0 6px, rgba(214, 95, 90, 0.3) 6px 12px); transition: left 0.35s, width 0.35s; }
.daylbls { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); margin-top: 4px; }

/* footer: back + next */
.foot { display: flex; gap: 10px; padding: 14px 20px 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border-soft); background: var(--bg); flex-shrink: 0; }
.btn { min-height: 52px; border-radius: 99px; font-size: 15.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; padding: 0 22px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { flex: 1; background: var(--cream); color: var(--navy); }
.btn.primary:hover { background: #fff; }
.btn.primary:disabled { opacity: 0.3; cursor: default; }
.btn.ghost { background: none; border-color: var(--border); color: var(--text); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.block { flex: none; width: 100%; }
.btn.glow { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(250, 250, 247, 0.5); } 50% { box-shadow: 0 0 0 8px rgba(250, 250, 247, 0); } }
.btn:focus-visible, .card:focus-visible, .chip:focus-visible, .linkbtn:focus-visible, .qb:focus-visible, .sbtn:focus-visible, .tilebtn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- live preview while answering --- */
.hero { height: 168px; margin: 0 20px 6px; border-radius: 18px; position: relative; overflow: hidden; flex-shrink: 0; background: linear-gradient(180deg, #1b2a44 0%, #35506e 62%, #4a5a5c 100%); border: 1px solid var(--border); }
.hero.night { background: linear-gradient(180deg, #0b1020 0%, #16213a 70%, #1f2a33 100%); }
.hsun { position: absolute; right: 30px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: #f4cf62; box-shadow: 0 0 28px 8px rgba(244, 207, 98, 0.45); animation: float 5s ease-in-out infinite; }
.hero.night .hsun { background: #e8e4d8; box-shadow: 0 0 18px 4px rgba(232, 228, 216, 0.3); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: #232a26; }
.house { position: absolute; left: 50%; margin-left: -75px; bottom: 26px; width: 150px; }
.roof { height: 52px; background: #3b3531; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); display: flex; align-items: center; justify-content: center; padding: 6px 26px 4px; }
.tiles { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; max-width: 104px; }
.tile { width: 11px; height: 8px; background: #23405f; border: 1px solid #6d8fb5; border-radius: 1px; animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.tile.lit { background: #3d6d9c; border-color: #f4d98a; box-shadow: 0 0 6px rgba(244, 217, 138, 0.7); }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.walls { height: 58px; background: #d9d2c3; margin: 0 10px; position: relative; transition: filter 0.3s; }
.walls.dark { filter: brightness(0.45); }
.door { position: absolute; left: 58px; bottom: 0; width: 18px; height: 30px; background: #6d5a48; }
.win { position: absolute; top: 14px; width: 22px; height: 18px; background: #f4d98a; box-shadow: 0 0 12px rgba(244, 217, 138, 0.6); transition: background 0.3s, box-shadow 0.3s; }
.win.off { background: #4b5563; box-shadow: none; }
.invbox { position: absolute; right: 8px; top: 12px; width: 26px; height: 30px; border-radius: 3px; background: var(--input-bg); border: 1px solid #b9c0cb; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pylon { position: absolute; left: 22px; bottom: 24px; color: var(--c-grid); transition: opacity 0.3s; }
.pylon.off { opacity: 0.25; }
.batt { position: absolute; right: 26px; bottom: 30px; width: 38px; height: 54px; border: 2px solid var(--c-battery); border-radius: 6px; padding: 3px; display: flex; align-items: flex-end; }
.batt::before { content: ""; position: absolute; top: -6px; left: 12px; width: 10px; height: 4px; background: var(--c-battery); border-radius: 2px 2px 0 0; }
.battfill { width: 100%; background: var(--c-battery); border-radius: 2px; transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.battlbl { position: absolute; right: 14px; bottom: 6px; width: 62px; text-align: center; font-size: 10px; font-weight: 600; color: #cfe9e6; }
.appbadge { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 600; background: rgba(15, 17, 22, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 99px; padding: 4px 10px; }
.specbar { display: flex; margin: 0 20px 4px; gap: 6px; flex-shrink: 0; }
.spec { flex: 1; background: var(--panel-bg); border: 1px solid var(--border-soft); border-radius: 10px; padding: 6px 8px; }
.spec .k { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.spec .v { font-size: 13px; font-weight: 600; margin-top: 1px; }

/* --- welcome --- */
.welcome { height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; animation: dawn 3.2s ease forwards; background: #0b1020; }
@keyframes dawn { from { background: #0b1020; } to { background: #2a3350; } }
.wsun { position: absolute; left: 50%; margin-left: -60px; top: 30%; width: 120px; height: 120px; border-radius: 50%; background: #f4cf62; box-shadow: 0 0 90px 30px rgba(244, 207, 98, 0.35); animation: rise 3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes rise { from { transform: translateY(200px); opacity: 0.3; } to { transform: none; opacity: 1; } }
.whill { position: absolute; left: -40px; right: -40px; top: calc(30% + 90px); height: 900px; border-radius: 50% 50% 0 0; background: #141a18; }
.whouse { position: absolute; left: 50%; margin-left: -70px; top: calc(30% + 28px); width: 140px; }
.wroof { height: 44px; background: #2b2724; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); display: flex; gap: 3px; justify-content: center; align-items: center; }
.wtile { width: 16px; height: 14px; background: #23405f; border: 1px solid #6d8fb5; animation: pop 0.5s ease both; }
.wwall { height: 46px; background: #c9c1b2; margin: 0 10px; position: relative; }
.wwin { position: absolute; top: 12px; width: 20px; height: 16px; background: #f4d98a; box-shadow: 0 0 14px rgba(244, 217, 138, 0.8); }
.whead { position: relative; padding: 22px 24px 0; display: flex; align-items: center; gap: 10px; }
.wcopy { position: relative; margin-top: auto; padding: 0 24px 30px; display: flex; flex-direction: column; gap: 14px; animation: up 0.8s 0.9s ease both; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.wtitle { font-family: var(--font-h); font-size: 36px; line-height: 1.1; font-weight: 600; margin: 0; }
.wtitle i { color: var(--gold-text); }

/* --- ready to run --- */
.sumcard { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.sumrow { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--border-soft); }
.sumrow:last-child { border-bottom: none; }
.sumk { font-size: 12px; color: var(--text-dim); width: 86px; flex-shrink: 0; }
.sumv { font-size: 14px; font-weight: 500; flex: 1; line-height: 1.35; }
.edit { background: none; border: none; color: var(--gold-text); font-size: 13px; font-weight: 600; cursor: pointer; min-height: 44px; padding: 0 8px; }

/* --- running --- */
.busy { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 28px; text-align: center; }
.spinsun { width: 64px; height: 64px; border-radius: 50%; background: #f4cf62; box-shadow: 0 0 40px 12px rgba(244, 207, 98, 0.4); animation: float 1.6s ease-in-out infinite; }

/* --- live simulation --- */
.sim { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.simhead { display: flex; align-items: center; gap: 10px; }
.live { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--navy); background: var(--gold); border-radius: 99px; padding: 3px 9px; display: flex; align-items: center; gap: 5px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--navy); animation: blink 1s steps(2) infinite; }
.live.done i { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.dayinfo { margin-left: auto; font-size: 12.5px; color: var(--text-dim); text-align: right; line-height: 1.35; }
.scene { height: 236px; border-radius: 18px; position: relative; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; }
.stars { position: absolute; inset: 0; transition: opacity 0.4s;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 80px 60px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 150px 22px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 210px 70px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 270px 36px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 320px 88px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 120px 100px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 400px 50px, #fff 50%, transparent 51%); }
.clouds { position: absolute; inset: 0 0 auto 0; height: 110px; transition: opacity 0.6s; background: radial-gradient(60px 22px at 25% 40%, rgba(200, 205, 215, 0.35), transparent 70%), radial-gradient(80px 26px at 65% 30%, rgba(200, 205, 215, 0.3), transparent 70%), radial-gradient(50px 18px at 85% 55%, rgba(200, 205, 215, 0.25), transparent 70%); }
.ssun { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #f4cf62; box-shadow: 0 0 30px 10px rgba(244, 207, 98, 0.45); transition: left 0.12s linear, top 0.12s linear, opacity 0.3s; }
.sground { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #1d241f; }
.scene .house { bottom: 34px; }
.scene .roof { height: 54px; }
.scene .walls { height: 64px; }
.spylon { position: absolute; left: 18px; bottom: 32px; color: var(--c-grid); transition: opacity 0.3s; }
.spylon.off { opacity: 0.3; }
.offtag { position: absolute; left: 14px; bottom: 98px; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: #fff; background: var(--bad); border-radius: 4px; padding: 2px 5px; }
.sbatt { position: absolute; right: 22px; bottom: 38px; width: 40px; height: 62px; border: 2px solid var(--c-battery); border-radius: 6px; padding: 3px; display: flex; align-items: flex-end; }
.sbatt::before { content: ""; position: absolute; top: -6px; left: 13px; width: 10px; height: 4px; background: var(--c-battery); border-radius: 2px 2px 0 0; }
.sbfill { width: 100%; border-radius: 2px; background: var(--c-battery); transition: height 0.15s linear, background 0.3s; }
.sbfill.low { background: var(--warn); }
.sbfill.flat { background: var(--bad); }
.sblbl { position: absolute; right: 12px; bottom: 14px; width: 62px; text-align: center; font-size: 11px; font-weight: 700; }
.wire { position: absolute; height: 3px; border-radius: 2px; background: var(--border); background-size: 22px 3px; }
.wire.on { animation: flow 0.8s linear infinite; }
.wire.rev { animation-direction: reverse; }
.wire.grid.on { background-image: repeating-linear-gradient(90deg, #b9c0cb 0 7px, transparent 7px 11px); background-color: transparent; }
.wire.batt.on { background-image: repeating-linear-gradient(90deg, var(--c-battery) 0 7px, transparent 7px 11px); background-color: transparent; }
@keyframes flow { from { background-position: 0 0; } to { background-position: 22px 0; } }
.cuttag { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #fff; background: rgba(214, 95, 90, 0.92); border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.clockrow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sclock { font-family: var(--font-h); font-size: 38px; font-weight: 600; line-height: 1; }
.sstatus { font-size: 13px; color: var(--text-dim); }
.reads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rd { background: var(--panel-bg); border: 1px solid var(--border-soft); border-radius: 12px; padding: 8px; }
.rd .k { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.rd .v { font-size: 15px; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.rd.sol .v { color: var(--c-solar); }
.rd.bat .v { color: #5cb8ae; }
.rd.grd .v { color: #b9c0cb; }
.feed { flex: 1; min-height: 60px; overflow: hidden; background: var(--panel-bg); border: 1px solid var(--border-soft); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.ev { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.35; }
.ev .t { color: var(--gold); font-weight: 600; white-space: nowrap; flex-shrink: 0; min-width: 44px; font-variant-numeric: tabular-nums; }
.ev.bad .x { color: #e58a85; }
.daysbar { display: flex; gap: 4px; }
.dayseg { flex: 1; min-height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--card-bg); font-size: 11.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; position: relative; overflow: hidden; padding: 0; }
.dayseg.now { border-color: var(--gold); color: var(--gold-text); }
.dayseg .fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(212, 175, 55, 0.18); }
.dayseg span { position: relative; }
.controls { display: flex; gap: 8px; align-items: center; }
.pbtn { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--cream); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spd { min-height: 40px; min-width: 44px; border-radius: 99px; border: 1px solid var(--border); background: var(--card-bg); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-dim); }
.spd.on { border-color: var(--gold); color: var(--gold-text); }
.controls .btn { min-height: 44px; padding: 0 14px; font-size: 14px; margin-left: auto; }

/* --- results --- */
.verdict { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 22px 16px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--border); animation: pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1); }
.vring { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.vring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.35; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.9); opacity: 0.5; } to { transform: scale(1.25); opacity: 0; } }
.vring.yes { background: rgba(93, 168, 128, 0.16); color: var(--ok); }
.vring.partial, .vring.none { background: rgba(208, 138, 62, 0.16); color: var(--warn); }
.vring.no { background: rgba(214, 95, 90, 0.16); color: var(--bad); }
.vt { font-family: var(--font-h); font-size: 23px; line-height: 1.2; font-weight: 600; }
.tiles4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sys3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sys3 .st { text-align: center; }
.st { background: var(--panel-bg); border: 1px solid var(--border-soft); border-radius: 14px; padding: 12px; }
.st .k { font-size: 11.5px; color: var(--text-dim); }
.st .v { font-family: var(--font-h); font-size: 26px; font-weight: 600; margin-top: 4px; }
.st .u { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.h3 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin: 6px 0 -6px; }
.vcard { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-bg); border: 1px solid var(--border); animation: up 0.45s ease both; }
.dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.dot.ok { background: rgba(93, 168, 128, 0.18); color: var(--ok); }
.dot.warn { background: rgba(208, 138, 62, 0.18); color: var(--warn); }
.dot.bad { background: rgba(214, 95, 90, 0.18); color: var(--bad); }
.dot.idle { background: var(--input-bg); color: var(--text-faint); }
.vname { font-weight: 600; font-size: 14.5px; }
.vtext { font-size: 13px; color: var(--text-dim); line-height: 1.45; margin-top: 2px; }
.insight { font-size: 13px; line-height: 1.5; color: #cfcac0; padding: 12px 14px; border-radius: 12px; background: var(--panel-bg); border: 1px solid var(--border-soft); }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.small { font-size: 12px; color: var(--text-faint); text-align: center; line-height: 1.5; margin: 0; }
.error { color: #e58a85; }

.app-version { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
