/* Flex & Count — full-screen camera with floating "liquid glass" controls, like the iOS Camera app.
   Real Liquid Glass (refraction) isn't possible on the web; this is blur + tint + a lit edge,
   plus a light that follows your finger or cursor. */

:root {
  --accent: #FF453A;
  --good: #30D158;
  --warn: #FF9F0A;
  --page: #000;
  --glass-bg: rgba(30, 30, 32, .42);
  --glass-ink: #fff;
  --glass-soft: rgba(255, 255, 255, .68);
  --glass-edge: rgba(255, 255, 255, .26);
  --glass-hi: rgba(255, 255, 255, .55);
  --glass-light: rgba(255, 255, 255, .42);
  --hover: rgba(255, 255, 255, .12);
  --thumb: rgba(255, 255, 255, .92);
  --thumb-ink: #000;
  --group: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .16);
  --scrim: rgba(0, 0, 0, .28);
  --blob1: #3a1d6e; --blob2: #6e1d2c; --blob3: #1d4a6e;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --accent: #FF3B30; --good: #248A3D; --warn: #C93400; --page: #E9E9EE;
    --glass-bg: rgba(250, 250, 252, .58); --glass-ink: #000; --glass-soft: rgba(0, 0, 0, .55);
    --glass-edge: rgba(255, 255, 255, .75); --glass-hi: rgba(255, 255, 255, .95); --glass-light: rgba(255, 255, 255, .7);
    --hover: rgba(0, 0, 0, .06); --thumb: #fff; --thumb-ink: #000; --group: rgba(255, 255, 255, .55); --line: rgba(0, 0, 0, .1);
    --scrim: rgba(0, 0, 0, .15); --blob1: #c9b8ff; --blob2: #ffc2b8; --blob3: #b8e2ff; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --accent: #FF3B30; --good: #248A3D; --warn: #C93400; --page: #E9E9EE;
  --glass-bg: rgba(250, 250, 252, .58); --glass-ink: #000; --glass-soft: rgba(0, 0, 0, .55);
  --glass-edge: rgba(255, 255, 255, .75); --glass-hi: rgba(255, 255, 255, .95); --glass-light: rgba(255, 255, 255, .7);
  --hover: rgba(0, 0, 0, .06); --thumb: #fff; --thumb-ink: #000; --group: rgba(255, 255, 255, .55); --line: rgba(0, 0, 0, .1);
  --scrim: rgba(0, 0, 0, .15); --blob1: #c9b8ff; --blob2: #ffc2b8; --blob3: #b8e2ff; color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Like Time Log: the page is a hair taller than the screen, so iPhone Safari floats its bars
   over the camera instead of giving them their own strip. */
html, body { margin: 0; background: var(--page); overscroll-behavior: none; }
body { position: relative; min-height: calc(100vh + 1px); min-height: calc(100lvh + 1px); overflow-x: hidden; }
body { font: 16px/1.3 var(--font); color: var(--glass-ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, label { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }

/* ---------- glass ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  color: var(--glass-ink);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),          /* lit top edge */
    inset 0 0 0 .5px var(--glass-edge),     /* rim */
    inset 0 -1px 1px rgba(255, 255, 255, .08),
    0 10px 30px -12px rgba(0, 0, 0, .45);
}
/* soft diagonal sheen */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .08));
}

/* Interactive glass: a light that follows the pointer, grows on hover, squishes on press. */
.lg { transition: transform .45s var(--spring), box-shadow .3s ease; will-change: transform; touch-action: manipulation; overflow: hidden; }
.lg::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(140px circle at var(--x, 50%) var(--y, 50%), var(--glass-light), transparent 65%);
}
@media (hover: hover) {
  .lg:hover { transform: scale(1.06); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 .5px var(--glass-edge), 0 16px 34px -12px rgba(0, 0, 0, .5); }
  .lg:hover::after { opacity: 1; }
}
.lg.pressing { transform: scale(.93) !important; transition-duration: .18s; }
.lg.pressing::after { opacity: 1; }
.lg:focus-visible, .seg button:focus-visible, .toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:disabled { opacity: .45; pointer-events: none; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; min-height: 46px; padding: 0 22px; font-weight: 600; font-size: 16px; cursor: pointer; }
.pill.small { min-height: 34px; padding: 0 14px; font-size: 14px; }
.pill svg { width: 18px; height: 18px; }
.pill.primary { background: color-mix(in srgb, var(--accent) 88%, transparent); color: #fff; }
.round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.round.big { width: 56px; height: 56px; }
.round.big svg { width: 25px; height: 25px; }

/* ---------- logo ---------- */
.logo { font: 800 21px/1 "Barlow Condensed", var(--display); letter-spacing: .06em; white-space: nowrap; }
.logo span { color: var(--accent); }
.logo-pill { border-radius: 999px; padding: 12px 18px; }
.big-logo { font-size: 38px; margin: 0 0 4px; }

/* ---------- stage ---------- */
/* In the page flow (not fixed), like Time Log's content, so iPhone Safari lets it run under its bars;
   a fixed layer stops at the toolbar. The controls stay fixed above it. */
.stage { position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background:
    radial-gradient(40% 30% at 20% 25%, var(--blob1), transparent 70%),
    radial-gradient(45% 35% at 85% 60%, var(--blob2), transparent 70%),
    radial-gradient(40% 30% at 30% 90%, var(--blob3), transparent 70%),
    var(--page); }
.stage video, .stage #canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.mirror video, .stage.mirror #canvas { transform: scaleX(-1); }
/* Fit: the whole camera frame always shows, between the top bar and the controls,
   with a soft blurred copy of the camera filling the space around it. */
.stage.fit video, .stage.fit #canvas { top: calc(env(safe-area-inset-top) + 62px); bottom: auto; height: calc(100% - env(safe-area-inset-top) - 62px - var(--controls-h, 250px)); object-fit: contain; }
#backdrop { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; display: none;
  filter: blur(36px) saturate(1.4) brightness(.75); }
.stage.fit #backdrop { display: block; }
.stage.fit.mirror #backdrop { transform: scaleX(-1); }
.top-right { display: flex; gap: 8px; align-items: center; }
#fitBtn { min-width: 52px; }

/* The start card sits in the space between the top readout and the controls, so it never covers them
   (on shorter iPhones it used to overlap the hint). */
.empty { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 160px); bottom: var(--controls-h, 250px); display: grid; place-items: center; padding: 8px 20px; z-index: 5; pointer-events: none; }
body.idle .hint { display: none; }
.empty .card-empty { pointer-events: auto; }
.card-empty { width: min(340px, 100%); max-height: 100%; overflow: auto; border-radius: 36px; padding: 24px 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.card-empty p { margin: 0; color: var(--glass-soft); }
.card-empty .pill { width: 100%; }
.card-empty .fine { font-size: 12px; margin-top: 4px; }

.topbar { position: fixed; z-index: 3; top: calc(env(safe-area-inset-top) + 10px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }

.readout { position: fixed; z-index: 2; top: calc(env(safe-area-inset-top) + 70px); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.count { border-radius: 28px; padding: 8px 20px 12px; font-family: var(--display); font-variant-numeric: tabular-nums; line-height: 1; transition: transform .45s var(--spring); }
.count b { font-size: 60px; font-weight: 700; letter-spacing: -.04em; }
.count small { font-size: 21px; font-weight: 600; color: var(--glass-soft); margin-left: 3px; }
.count i { font-style: normal; font-size: 15px; font-weight: 600; color: var(--glass-soft); margin-right: 3px; }
.count i.gap { margin-left: 14px; }
.count.bump { animation: bump .45s var(--spring); }
.count.bump b { color: var(--accent); }
@keyframes bump { 40% { transform: scale(1.1); } }
.chip { border-radius: 999px; padding: 10px 15px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glass-soft); }
.chip.up .dot { background: var(--good); box-shadow: 0 0 8px var(--good); }
.chip.down .dot { background: #FFD60A; box-shadow: 0 0 8px #FFD60A; }

.cue { position: fixed; z-index: 4; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 168px); width: min(420px, calc(100% - 24px)); border-radius: 22px; padding: 12px 16px; font-size: 15px; font-weight: 500; text-align: center; animation: drop .35s var(--spring); }
@keyframes drop { from { transform: translate(-50%, -10px); opacity: 0; } }

/* ---------- bottom controls ---------- */
.controls { position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 14px); width: min(520px, calc(100% - 24px)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hint { margin: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; text-align: center; max-width: 100%; }
.hint:empty { display: none; }

.seg { position: relative; display: inline-flex; border-radius: 999px; padding: 4px; isolation: isolate; }
.seg .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--thumb);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: left .5s var(--spring), width .5s var(--spring), transform .3s var(--spring); }
.seg { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Holding swells the thumb. Dragging lifts it into a clear lens that follows the finger,
   with a rim that splits light into faint color, like the Time Log tab bar. */
.seg.holding .thumb { transform: scale(1.08, 1.14); }
.seg.dragging .thumb {
  transform: scale(1.16, 1.24);
  transition: left .06s linear, width .25s var(--spring), transform .3s var(--spring), background-color .2s ease;
  background: color-mix(in srgb, var(--thumb) 30%, transparent);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.5) brightness(1.1); backdrop-filter: blur(1.5px) saturate(1.5) brightness(1.1);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .7), inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -1px 2px rgba(0, 0, 0, .1), 0 8px 20px -6px rgba(0, 0, 0, .35);
}
.seg .thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; opacity: 0; transition: opacity .2s ease; pointer-events: none;
  background: conic-gradient(from 210deg, rgba(90,200,250,.6), rgba(255,255,255,.3) 18%, rgba(255,214,90,.55) 34%, rgba(255,255,255,.3) 50%, rgba(255,120,220,.55) 66%, rgba(255,255,255,.3) 82%, rgba(90,200,250,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.seg.dragging .thumb::after { opacity: 1; }
.seg.dragging button, .seg.dragging button.on { color: var(--glass-soft); transform: none !important; background: none !important; }
.seg.dragging button.peek, .seg.dragging button.on.peek { color: var(--glass-ink); transform: scale(1.12) !important; }
.seg .thumb.squish { animation: squish .45s ease-out; }
@keyframes squish { 0% { transform: scale(1, 1); } 35% { transform: scale(1.18, .86); } 70% { transform: scale(.97, 1.04); } 100% { transform: scale(1, 1); } }
.seg button { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--glass-soft); transition: color .25s ease, background-color .2s ease, transform .4s var(--spring); }
.seg button.on { color: var(--thumb-ink); }
@media (hover: hover) {
  .seg button:not(.on):hover { background: var(--hover); color: var(--glass-ink); transform: scale(1.05); }
}
.seg button:active { transform: scale(.94); }
.seg.mini { padding: 3px; background: var(--group); box-shadow: none; }
.seg.mini::before { display: none; }
.seg.mini .thumb { top: 3px; bottom: 3px; }
.seg.mini button { padding: 7px 12px; font-size: 14px; }

.shutter-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 0; }
.shutter { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.shutter span { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 6px rgba(0, 0, 0, .15), 0 6px 18px -4px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: border-radius .4s var(--spring), width .4s var(--spring), height .4s var(--spring); }
.shutter.running span { width: 52px; height: 52px; border-radius: 16px; }
.shutter.long span { font-size: 13px; line-height: 1.1; text-align: center; padding: 0 6px; }

/* ---------- trim ---------- */
.trimbar { width: 100%; border-radius: 26px; padding: 12px 16px 8px; }
.trim-head { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.soft { color: var(--glass-soft); font-size: 13px; font-weight: 500; }
.trim { position: relative; height: 34px; margin-top: 6px; }
.trim-track { position: absolute; left: 0; right: 0; top: 12px; height: 10px; border-radius: 5px; background: var(--group); }
.trim-sel { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 5px; }
.trim input { position: absolute; left: 0; top: 0; width: 100%; height: 34px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.trim input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .25), inset 0 -1px 2px rgba(0, 0, 0, .08); cursor: grab; transition: transform .3s var(--spring); }
.trim input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.trim input:active::-webkit-slider-thumb { transform: scale(1.35, 1.2); background: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(1.5px) saturate(1.5); backdrop-filter: blur(1.5px) saturate(1.5);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85), inset 0 1px 2px rgba(255, 255, 255, .9), 0 0 0 1px rgba(255, 120, 220, .35), 0 0 0 2px rgba(90, 200, 250, .25), 0 8px 18px -4px rgba(0, 0, 0, .35); }
.trim input:active::-moz-range-thumb { transform: scale(1.35, 1.2); background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85), 0 8px 18px -4px rgba(0, 0, 0, .35); }
.trim input::-moz-range-thumb { pointer-events: auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); cursor: grab; }
.trim input::-webkit-slider-runnable-track { background: none; }
.trim-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--glass-soft); font-variant-numeric: tabular-nums; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 9; background: var(--scrim); animation: fade .25s ease; }
.sheet { position: fixed; z-index: 10; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 8px); transform: translateX(-50%); width: min(520px, calc(100% - 16px)); max-height: calc(100% - env(safe-area-inset-top) - 40px); overflow: auto;
  border-radius: 40px; padding: 10px 18px 20px; animation: rise .5s var(--spring); }
@keyframes rise { from { transform: translate(-50%, 40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--glass-soft); opacity: .6; margin: 0 auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet h2 { font: 700 24px var(--display); margin: 0; letter-spacing: -.01em; }
.sheet h3 { font: 600 17px var(--display); margin: 6px 4px 8px; }
.group { background: var(--group); border-radius: 22px; padding: 0 16px; margin-bottom: 12px; }
.r { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-top: .5px solid var(--line); }
.r:first-child { border-top: none; }
.r .v { color: var(--glass-soft); font-variant-numeric: tabular-nums; font-size: 15px; text-align: right; }
.r .ok { color: var(--good); font-weight: 600; }
.r .meh { color: var(--warn); font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper b { min-width: 24px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.stepper button { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--group); font-size: 20px; line-height: 1; }
.toggle { position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--group); transition: background-color .25s ease; }
.toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
  transition: left .45s var(--spring), width .3s var(--spring); }
.toggle:active::after { width: 34px; }
.toggle[aria-checked="true"] { background: var(--good); }
.toggle[aria-checked="true"]::after { left: 22px; }
.toggle[aria-checked="true"]:active::after { left: 15px; }
.fine { color: var(--glass-soft); font-size: 12px; text-align: center; margin: 6px 0 0; }

/* ---------- pop up ---------- */
.pop { position: fixed; z-index: 10; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, calc(100% - 32px)); border-radius: 36px; padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 6px; animation: popin .5s var(--spring); }
@keyframes popin { from { transform: translate(-50%, -50%) scale(.88); opacity: 0; } }
.pop h3 { font: 700 22px var(--display); margin: 0; }
.pop p { margin: 0 0 12px; color: var(--glass-soft); }

/* Short or small windows: tighter controls so the camera keeps its space. */
@media (max-height: 760px) {
  .count b { font-size: 46px; }
  .seg button { padding: 8px 14px; font-size: 14px; }
  .shutter { width: 74px; height: 74px; }
  .shutter span { width: 58px; height: 58px; }
  .round.big { width: 48px; height: 48px; }
  .controls { gap: 8px; }
  .hint { display: none; }
}
@media (max-height: 600px) {
  .controls { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .shutter-row { width: auto; gap: 14px; padding: 0; }
  .trimbar { order: -1; }
}

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

/* Logs */
#logsBtn { position: relative; overflow: visible; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.empty-note { text-align: center; padding: 18px 8px 22px; margin: 0; }

.trim-actions { display: flex; gap: 6px; }
#mirrorBtn.on { background: color-mix(in srgb, var(--thumb) 85%, transparent); color: var(--thumb-ink); }

/* Focus mode while counting: get the controls off your body. */
.hint, #exSeg, #armSeg, .trimbar, #logsBtn, #flipBtn, .top-right > :not(#settingsBtn) { transition: opacity .3s ease, transform .4s var(--spring); }
body.focus .hint, body.focus #exSeg, body.focus #armSeg, body.focus .trimbar { display: none; }
body.focus #logsBtn, body.focus #flipBtn, body.focus .top-right { opacity: 0; pointer-events: none; }

@media (max-height: 760px) {
  .empty { top: calc(env(safe-area-inset-top) + 130px); }
  .card-empty { gap: 10px; padding: 18px 18px 14px; }
  .big-logo { font-size: 30px; }
}

/* Logs */
.day-title { font: 600 15px var(--display); margin: 10px 4px 6px; color: var(--glass-soft); }
.actions-row { display: flex; gap: 10px; margin: 4px 0 6px; }
.actions-row .pill { flex: 1; }
.pill.danger { color: var(--accent); }
.pop-actions { display: flex; gap: 10px; }
.pop-actions .pill { flex: 1; }
#confirm { z-index: 12; }
#confirmScrim { z-index: 11; }

/* ---------- get the app ---------- */
.get-link { display: inline-flex; align-items: center; gap: 6px; color: var(--glass-soft); font-size: 13px; font-weight: 600; padding: 4px 8px; }
.get-link svg { width: 16px; height: 16px; }
.get-sub { margin: -4px 4px 12px; font-size: 14px; }
.get-opt { display: flex; align-items: center; gap: 14px; width: 100%; border-radius: 24px; padding: 14px 16px; margin-bottom: 10px; text-align: left; color: inherit; text-decoration: none; }
.get-opt > svg { width: 30px; height: 30px; flex: none; }
.get-opt span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.get-opt b { font: 600 17px var(--display); }
.get-opt small { color: var(--glass-soft); font-size: 13px; }
.get-opt .here { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--accent) 88%, transparent); border-radius: 99px; padding: 4px 9px; }
.steps { list-style: none; counter-reset: s; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 12px; background: var(--group); border-radius: 20px; padding: 10px 14px 10px 10px; font-size: 15px; line-height: 1.35; }
.steps li::before { content: counter(s); font: 700 13px var(--display); color: var(--glass-soft); width: 14px; text-align: center; flex: none; }
.steps .ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--group); }
.steps .ico svg { width: 20px; height: 20px; }
.steps .ico.ok { color: var(--good); font-weight: 800; }
.warn-note { border-radius: 18px; padding: 10px 14px; margin: 0 0 10px; font-size: 14px; line-height: 1.35; }
#getBack { width: 100%; margin-top: 10px; }
.get-row { width: 100%; margin-bottom: 4px; }
/* Narrow phones (most Androids are about 360 px): the top bar only fits three round buttons,
   so the download button moves out; it's still on the start card and in Settings. */
@media (max-width: 400px) {
  .top-right #getBtn { display: none; }
}
