:root {
  --bg: #070b16;
  --panel: #0f1730;
  --panel-2: #0b1020;
  --chrome: #1a2550;
  --line: #24305a;
  --line-2: #2a3a66;
  --text: #cfe3ff;
  --dim: #7f95c9;
  --dimmer: #5a6ea8;
  --green: #6dffb0;
  --green-glow: rgba(109, 255, 176, 0.55);
  --amber: #ffb347;
  --fire: #ff7a3d;
  --red: #ff5f57;
  --yellow: #febc2e;
  --ok: #28c840;
  --mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  --sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
/* One fixed screen, no scrolling: hero sizes to the viewport height and the
   inbox soaks up whatever space is left (clipping rows it can't fit). */
html, body { height: 100%; }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% -10%, #142047 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--mono);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
.green { color: var(--green); }
.amber { color: var(--amber); }
.dim { color: var(--dimmer); }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.scanlines::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---------- top bar ---------- */
.topbar {
  position: relative; z-index: 5; flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(26, 37, 80, .85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-2);
  font-size: 12px; color: #8fb0ff;
}
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: block; }
.lights i:nth-child(2) { background: var(--yellow); }
.lights i:nth-child(3) { background: var(--ok); }
.topbar .app { font-weight: 600; }
.topbar .clock { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
.sound {
  background: transparent; border: 1px solid var(--line-2); border-radius: 6px;
  padding: 6px 10px; min-height: 32px; font-size: 11px; color: var(--dim);
}
.sound[aria-pressed="true"] { color: var(--green); border-color: var(--green); }

main {
  position: relative; z-index: 2; flex: 1; min-height: 0; width: 100%; max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) max(clamp(12px, 2.5vh, 28px), env(safe-area-inset-bottom));
}

/* ---------- hero ---------- */
.hero { flex: none; text-align: center; padding: clamp(12px, 5vh, 70px) 0 clamp(12px, 3.5vh, 40px); position: relative; }
.kicker { font-size: clamp(11px, 2.8vw, 13px); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.weekend {
  display: inline-block; margin-top: clamp(8px, 1.6vh, 16px); padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 179, 71, .1); border: 1px solid rgba(255, 179, 71, .45);
  color: var(--amber); font-size: clamp(12px, 3.2vw, 14px);
  animation: pulse 2.4s ease-in-out infinite;
}
.weekend span:first-child { font-weight: 800; }
@keyframes pulse { 50% { box-shadow: 0 0 24px rgba(255,179,71,.35); } }

.number-wrap {
  margin: clamp(6px, 2vh, 24px) 0 0; font-weight: 800; line-height: .95;
  font-size: clamp(64px, min(27vw, 25vh), 260px); letter-spacing: -.04em;
  color: var(--green); white-space: nowrap;
}
.number {
  position: relative; display: inline-block; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px var(--green-glow), 0 0 60px rgba(109,255,176,.25);
  animation: flicker 7s infinite;
}
.number::before, .number::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.number.glitch::before { opacity: .8; color: #ff3d7f; transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); animation: gl1 .35s steps(2) 2; }
.number.glitch::after { opacity: .8; color: #3dc8ff; transform: translate(4px, -1px); clip-path: inset(55% 0 8% 0); animation: gl2 .35s steps(2) 2; }
@keyframes gl1 { 50% { transform: translate(5px, -2px); clip-path: inset(40% 0 30% 0); } }
@keyframes gl2 { 50% { transform: translate(-5px, 2px); clip-path: inset(5% 0 70% 0); } }
@keyframes flicker { 0%, 95%, 100% { opacity: 1; } 96% { opacity: .75; } 97% { opacity: 1; } 98% { opacity: .85; } }
.cursor { font-weight: 400; opacity: .7; animation: blink 1s steps(1) infinite; margin-left: .02em; }
@keyframes blink { 50% { opacity: 0; } }
.label { margin: clamp(6px, 1.4vh, 14px) 0 0; font-size: clamp(12px, 3.4vw, 16px); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

.meta { max-width: 640px; margin: clamp(12px, 3.5vh, 44px) auto 0; display: grid; gap: clamp(8px, 1.8vh, 18px); }
.tick { font-size: 13px; color: var(--dimmer); }
.tick span { color: var(--text); font-variant-numeric: tabular-nums; }
.progress .bar { height: 10px; background: var(--chrome); border-radius: 99px; overflow: hidden; border: 1px solid var(--line-2); }
.progress .bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #2bd98a, var(--green));
  box-shadow: 0 0 14px var(--green-glow);
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
  position: relative; min-width: 6px;
}
.progress .bar i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: sheen 2.6s ease-in-out infinite;
}
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(200%); } }
.pmeta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--dimmer); flex-wrap: wrap; }
.next {
  font-size: clamp(12px, 3.3vw, 14px); color: var(--dim);
  padding: clamp(8px, 1.4vh, 12px) 16px; border: 1px dashed var(--line-2); border-radius: 10px; background: rgba(15,23,48,.6);
}
.next b { color: var(--text); }
.next .redact { background: var(--text); color: transparent; border-radius: 2px; user-select: none; }

/* boot sequence */
.boot {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  max-width: 520px; margin: 0 auto; text-align: left; font-size: clamp(12px, 3.4vw, 15px); color: var(--green);
  pointer-events: none;
}
.boot div { white-space: pre; }
.boot .d { color: var(--dim); }
.hero.booting > :not(.boot) { visibility: hidden; }

/* ---------- panels ---------- */
.panels { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.inbox { display: flex; flex-direction: column; min-height: 0; }
.window { background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.titlebar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--chrome); color: #8fb0ff; font-size: 12px; }
.titlebar s { color: var(--dimmer); }
.mails { list-style: none; margin: 0; padding: 4px 14px; flex: 1; min-height: 0; overflow: hidden; }
.mails li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline;
  padding: clamp(5px, 1vh, 9px) 0; border-bottom: 1px dashed var(--line); font-size: 13px; position: relative;
}
.mails li .from { grid-column: 1; color: var(--dim); font-size: 11px; }
.mails li .subj { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mails li .when { grid-column: 2; grid-row: 1 / span 2; color: var(--dimmer); font-size: 11px; }
.mails li.in { animation: mailIn .5s ease-out; }
@keyframes mailIn { from { opacity: 0; transform: translateY(-10px); } }
.mails li.burn { animation: burn 1.6s ease-in forwards; }
@keyframes burn {
  0% { color: var(--text); }
  30% { color: var(--fire); text-shadow: 0 0 10px #ff5a1a, 0 0 20px #ff2a00; }
  60% { color: #ffd27a; opacity: .9; filter: blur(.4px); }
  100% { opacity: 0; transform: translateY(-18px) skewX(-12deg) scale(.96); filter: blur(3px); }
}
.inbox-foot { flex: none; padding: 8px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: var(--dimmer); border-top: 1px solid var(--line); background: var(--panel-2); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; min-height: 0; max-height: 240px; }
.stat {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: clamp(8px, 1.5vh, 14px) 12px;
  position: relative; overflow: hidden; min-height: 0; display: flex; flex-direction: column; justify-content: center; transition: transform .2s ease, border-color .2s ease;
}
.stat:hover { transform: translateY(-2px); border-color: var(--green); }
.stat .v { font-size: clamp(18px, min(5vw, 3.6vh), 30px); font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.stat .k { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.stat .s { font-family: var(--sans); font-size: 12px; color: var(--dimmer); margin-top: 6px; }
.stat .ico { position: absolute; right: 10px; top: 8px; font-size: 20px; opacity: .55; }

/* ---------- retired state ---------- */
body.retired .number { color: var(--amber); text-shadow: 0 0 18px rgba(255,179,71,.6), 0 0 60px rgba(255,179,71,.3); }
body.retired .number-wrap { color: var(--amber); }

/* ---------- takeover ---------- */
.takeover {
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(16,26,60,.985), rgba(3,5,12,.995));
  backdrop-filter: blur(6px);
}
.takeover[hidden] { display: none; }
.takeover.enter { animation: tvOn .55s cubic-bezier(.2,.9,.2,1); }
@keyframes tvOn {
  0% { clip-path: inset(50% 0 50% 0); filter: brightness(3); }
  50% { clip-path: inset(49.5% 0 49.5% 0); }
  100% { clip-path: inset(0 0 0 0); filter: brightness(1); }
}
.takeover.leave { animation: tvOff .4s ease-in forwards; }
@keyframes tvOff {
  60% { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(2); }
  100% { clip-path: inset(50% 50% 50% 50%); opacity: 0; }
}
#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.stage { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.skip {
  position: absolute; z-index: 6; right: 14px; top: max(14px, env(safe-area-inset-top));
  background: rgba(15,23,48,.8); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--dim); padding: 10px 14px; font-size: 12px; min-height: 44px;
}
.card {
  position: absolute; z-index: 5; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 32px)); transform: translate(-50%, 140%);
  background: rgba(15,23,48,.92); border: 1px solid var(--green); border-radius: 16px;
  padding: 20px 22px; text-align: center;
  box-shadow: 0 0 40px rgba(109,255,176,.25), 0 30px 80px rgba(0,0,0,.6);
  transition: transform .7s cubic-bezier(.2,1.3,.3,1);
}
.card.show { transform: translate(-50%, 0); }
.card-kicker { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--green); }
.card-days { font-size: clamp(40px, 12vw, 64px); font-weight: 800; color: var(--green); text-shadow: 0 0 20px var(--green-glow); line-height: 1.1; margin-top: 6px; }
.card-name { font-size: clamp(18px, 5vw, 24px); font-weight: 800; }
.card-tag { font-family: var(--sans); color: var(--dim); margin: 8px 0 16px; font-size: 15px; }
.card-actions { display: flex; gap: 10px; justify-content: center; }
.card-actions button {
  min-height: 44px; padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--green); color: #07130d; border: 0;
}
.card-actions button.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }

/* ---------- scene building blocks ---------- */
.sc-center { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); }
.sc-title {
  position: absolute; left: 0; right: 0; top: max(70px, 9vh); text-align: center; z-index: 4;
  font-size: clamp(12px, 3.4vw, 15px); letter-spacing: .25em; text-transform: uppercase; color: var(--dim);
}
.sc-title b { color: var(--green); }
.sc-win {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); font-size: clamp(11px, 3vw, 14px);
}
.sc-win .tb { background: var(--chrome); padding: 8px 12px; color: #8fb0ff; font-size: 12px; display: flex; gap: 10px; align-items: center; }
.sc-big { font-weight: 800; color: var(--green); text-shadow: 0 0 24px var(--green-glow); line-height: 1; white-space: nowrap; }

/* shredder */
.shredder { position: absolute; left: 50%; top: 52%; width: min(340px, 80vw); height: 90px; transform: translateX(-50%); z-index: 3;
  background: linear-gradient(#2a3a66, #1a2550); border-radius: 14px; border: 1px solid #3b4f8a; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.shredder::before { content: ''; position: absolute; left: 10%; right: 10%; top: 12px; height: 8px; border-radius: 4px; background: #05070f; box-shadow: inset 0 2px 4px #000; }
.shredder .led { position: absolute; right: 16px; bottom: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.shredder .brand { position: absolute; left: 16px; bottom: 12px; font-size: 11px; color: var(--dim); letter-spacing: .15em; }
.paper { position: absolute; left: 50%; width: min(260px, 64vw); padding: 14px; border-radius: 6px; z-index: 2;
  background: #f4f1e8; color: #283048; font-family: var(--sans); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.paper small { display: block; color: #7a8099; font-size: 11px; margin-bottom: 4px; }
.paper .lines { margin-top: 8px; height: 30px; background: repeating-linear-gradient(#c9ccd6 0 3px, transparent 3px 9px); }
.strip { position: absolute; width: 6px; height: 46px; background: #f4f1e8; border-radius: 1px; z-index: 1; }

/* shatter */
.shard { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: grid; place-items: center; will-change: transform, opacity; }
.cracks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* walkies */
.desk-cursor { position: absolute; width: 34px; height: 46px; z-index: 3; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.dog { position: absolute; font-size: clamp(56px, 14vw, 96px); z-index: 4; line-height: 1; }
.paw { position: absolute; font-size: 18px; opacity: .8; z-index: 1; }
.bubble { position: absolute; background: #fff; color: #111; font-weight: 800; border-radius: 12px; padding: 6px 10px; font-size: 18px; z-index: 5; }
.leash { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* equaliser */
.eq { position: absolute; left: 0; right: 0; bottom: 0; height: 75%; display: flex; align-items: flex-end; gap: 4px; padding: 0 4px; z-index: 3; }
.eq i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(to top, #2bd98a, var(--green) 45%, var(--amber) 80%, var(--fire)); box-shadow: 0 0 18px rgba(109,255,176,.35); height: 0; }
.note { position: absolute; font-size: 28px; color: var(--green); z-index: 4; text-shadow: 0 0 12px var(--green-glow); }

/* notifications */
.toasts { position: absolute; right: 16px; top: 80px; width: min(320px, calc(100% - 32px)); display: grid; gap: 10px; z-index: 3; }
.toast { background: #1a2550; border: 1px solid #3b4f8a; border-radius: 10px; padding: 10px 12px; font-size: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast b { display: block; color: #8fb0ff; font-size: 11px; margin-bottom: 2px; }
.player { width: min(360px, 86vw); padding: 18px; }
.player .pbar { height: 6px; background: var(--chrome); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.player .pbar i { display: block; height: 100%; width: 0; background: var(--green); }
.switch { display: inline-block; width: 52px; height: 28px; border-radius: 14px; background: #3b4f8a; position: relative; vertical-align: middle; transition: background .4s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(24px); }

/* meetings */
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(640px, 92vw); padding: 12px; }
.cal .day { font-size: 11px; color: var(--dim); text-align: center; padding-bottom: 4px; }
.cal .col { display: grid; gap: 6px; align-content: start; }
.mtg { border-radius: 6px; padding: 6px; font-size: clamp(9px, 2.4vw, 12px); color: #0b1020; font-weight: 600; position: relative; min-height: 38px; overflow: hidden; }
.stamp { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(220, 40, 40, .85); font-weight: 800; letter-spacing: .1em; font-size: clamp(8px, 2.2vw, 11px); transform: scale(2); opacity: 0; }

/* reply-all */
.shield { position: absolute; left: 50%; top: 50%; width: min(220px, 46vw); height: min(220px, 46vw); transform: translate(-50%, -50%); z-index: 2; }
.env { position: absolute; font-size: 26px; z-index: 3; will-change: transform; }

/* away */
.avatar { width: min(200px, 44vw); height: min(200px, 44vw); border-radius: 50%; background: linear-gradient(135deg, #2a3a66, #1a2550); border: 3px solid #3b4f8a; position: relative; display: grid; place-items: center; font-size: min(90px, 20vw); }
.status-dot { position: absolute; right: 6%; bottom: 6%; width: 26%; height: 26%; border-radius: 50%; background: var(--ok); border: 5px solid var(--bg); box-shadow: 0 0 20px var(--ok); transition: background .6s, box-shadow .6s; }
.status-dot.away { background: var(--amber); box-shadow: 0 0 30px var(--amber); }
.ripple { position: absolute; border-radius: 50%; border: 3px solid var(--amber); pointer-events: none; }
.status-text { margin-top: 22px; text-align: center; font-size: clamp(18px, 5vw, 26px); font-weight: 800; min-height: 1.4em; }

/* keyboard */
.kb { display: grid; gap: 6px; padding: 14px; background: #121a36; border-radius: 14px; border: 1px solid var(--line-2); width: min(700px, 94vw); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.kb .row { display: flex; gap: 6px; justify-content: center; }
.key { flex: 1; min-width: 0; height: clamp(26px, 7vw, 46px); border-radius: 6px; background: linear-gradient(#2e3d6e, #222e57); border: 1px solid #3b4f8a; border-bottom-width: 3px; color: var(--text); font-size: clamp(8px, 2.2vw, 13px); display: grid; place-items: center; }
.key.ghost { visibility: hidden; }
.flykey { position: fixed; z-index: 4; border-radius: 6px; background: linear-gradient(#2e3d6e, #222e57); border: 1px solid #3b4f8a; border-bottom-width: 3px; color: var(--text); display: grid; place-items: center; pointer-events: none; }

/* task manager */
.tm { width: min(560px, 94vw); }
.tm table { width: 100%; border-collapse: collapse; }
.tm th, .tm td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tm th { color: var(--dim); font-weight: 600; font-size: 11px; }
.tm td:nth-child(n+2), .tm th:nth-child(n+2) { text-align: right; }
.tm tr.sel td { background: rgba(109,255,176,.12); }
.tm tr.hot td:nth-child(2) { color: var(--fire); }
.tm .bad { color: var(--red); }
.tm .good { color: var(--green); }
.tm .foot { display: flex; justify-content: flex-end; padding: 10px 12px; }
.btn { background: #2a3a66; border: 1px solid #3b4f8a; border-radius: 6px; padding: 6px 14px; font-size: 12px; }
.btn.press { background: var(--green); color: #07130d; }
.dialog { position: absolute; z-index: 5; width: min(320px, 86vw); }
.dialog .body { padding: 16px; font-size: 13px; }
.dialog .row { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 14px; }

/* inferno */
.grid100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(3px, 1vw, 6px); width: min(520px, 90vw); }
.tile { aspect-ratio: 4 / 3; border-radius: 4px; background: #1a2550; border: 1px solid #3b4f8a; display: grid; place-items: center; font-size: clamp(9px, 2.6vw, 16px); }
.fireglow { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; background: radial-gradient(ellipse at center bottom, rgba(255,110,40,.6), transparent 70%); opacity: 0; z-index: 1; }

/* finale */
.err { width: min(420px, 92vw); }
.err .body { display: flex; gap: 14px; padding: 18px; align-items: flex-start; font-family: var(--sans); font-size: 14px; }
.err .x { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }
.err .bar { height: 6px; background: var(--chrome); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.err .bar i { display: block; height: 100%; width: 0; background: #3dc8ff; }
.ooo { text-align: center; }
.ooo .big-switch { width: min(220px, 50vw); height: min(110px, 25vw); border-radius: 999px; background: #3b4f8a; position: relative; margin: 18px auto; transition: background .5s, box-shadow .5s; }
.ooo .big-switch::after { content: ''; position: absolute; top: 8%; left: 4%; width: 42%; height: 84%; border-radius: 50%; background: #fff; transition: left .6s cubic-bezier(.3,1.6,.5,1); }
.ooo .big-switch.on { background: var(--green); box-shadow: 0 0 60px var(--green-glow); }
.ooo .big-switch.on::after { left: 54%; }
.ooo .lbl { font-size: clamp(14px, 4vw, 20px); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.ooo .state { font-size: clamp(40px, 13vw, 96px); font-weight: 800; color: var(--green); text-shadow: 0 0 30px var(--green-glow); }

.sc-flash { position: absolute; inset: 0; background: #fff; z-index: 6; pointer-events: none; opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .topbar .app { display: none; }
  /* phones: countdown fills the screen, stats underneath; the inbox only
     appears when there's room for a few rows of it */
  .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .panels { flex: none; grid-template-columns: 1fr; gap: 10px; }
  .inbox { display: none; }
  .stats { gap: 8px; max-height: none; }
  .stat { padding: 8px 8px; border-radius: 10px; }
  .stat .k { font-size: 9px; letter-spacing: .04em; }
  .stat .s, .stat .ico { display: none; }
  .mails li { font-size: 12px; }
  .inbox-foot { display: none; }
}
@media (max-height: 640px) {
  .stat .s { display: none; }
  .tick { display: none; }
}
@media (max-width: 760px) and (min-height: 760px) {
  .hero { flex: none; }
  .panels { flex: 1; grid-template-rows: minmax(0, 1fr) auto; }
  .inbox { display: flex; }
}
@media (max-height: 520px) {
  .panels { display: none; }
  .hero { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card { transition: none; }
}
@media (max-height: 400px) {
  .kicker { display: none; }
  .hero { padding: 6px 0; }
}
