/* Skate Bud web demo: base styles. Tokens, the page around the device, the device frames, the app's bars,
   what core.js builds (sheets, cards, popovers, menus, the toast, page changes), the shared parts and the first run's walk.

   SHARED CLASSES (copy these as they are, never restyle an sb- class from another file)

   Tokens: every colour, radius and size is a variable on :root (see the first rule below), for example var(--sb-accent).

   Type
     <p class="sb-t-large">Games</p>          34 bold          <p class="sb-t-title2">22 bold</p>
     <p class="sb-t-title3">20</p>             <p class="sb-t-headline">17 semibold</p>   <p class="sb-t-body">17</p>
     <p class="sb-t-sub">15</p>                <p class="sb-t-foot">13</p>   <p class="sb-t-cap">12</p>   <p class="sb-t-cap2">11</p>
     <span class="sb-muted">grey words</span>  <span class="sb-tnum">12:01</span> (tabular digits)
     <span class="sb-vh">read by screen readers only</span>

   Keys
     <button type="button" class="sb-key is-filled">Next</button>       the walk's big key, 52 high, radius 14, 17 semibold
       .is-filled accent with white words, .is-quiet grey fill with dark words (the first run's quiet key),
       .is-tinted soft blue fill with accent words, .is-plain accent words only, .is-danger red,
       .is-small 44 high radius 12, .is-fixed 120 wide, .is-auto as wide as its words. disabled greys it out.
     <button type="button" class="sb-glass">Follow</button>             glass capsule key. .is-on accent, .is-small, .is-tall
     <button type="button" class="sb-glass is-icon" aria-label="Undo">ICON</button>   round 44 icon key (.is-small: 34)
     <button type="button" class="sb-oldkey" aria-label="Share">ICON</button>          flat 44 x 44 key, radius 11. .is-on
     <span class="sb-badge">3</span> (.is-amber)        <span class="sb-chip">Saved</span>
     <button type="button" class="sb-chip is-big">North Arena</button>  the first run's 44-high rink chip

   Cards and rows
     <div class="sb-card">...</div>   white, radius 14. .is-open: the sel fill and a 4-wide accent left edge.
       (core's dialog card is the same class inside .sb-over-card, where it is centred: see SHEETS below.)
     <div class="sb-row"><span class="sb-row-thumb"></span><span class="sb-row-main"><span class="sb-row-title">12:01</span>
       <span class="sb-row-sub">Shift 3</span></span><span class="sb-row-end">ICON</span></div>      60 high list row
     <div class="sb-group">
       <div class="sb-list-head">This game</div>
       <div class="sb-list has-tiles">
         <button type="button" class="sb-list-row"><span class="sb-tile" style="--tile:#34c759">ICON</span>
           <span class="sb-list-title">Notes</span><span class="sb-list-value">On</span><span class="sb-list-chev">ICON</span></button>
       </div>
       <div class="sb-list-foot">Grey words under the list.</div>
     </div>                                   grouped list like iOS Settings (.has-tiles moves the hairlines past the tile)
     <label class="sb-field"><span class="sb-field-label">Number</span><input class="sb-field-input" type="text"></label>
     <label class="sb-switch"><input type="checkbox" checked><span class="sb-switch-ui"></span></label>   (.is-small)
     <span class="sb-switch-ui is-on"></span>  the same switch look with no checkbox
     <span class="sb-radio is-on"></span>  or  <input type="radio" class="sb-radio" name="whose">
     <div class="sb-hint">ICON<span>Amber hint words.</span></div>
     <div class="sb-problem">Red problem words.</div>
     <div class="sb-how">ICON<span>A how-to line on a white card.</span></div>
     <span class="sb-notice">A small dark pill</span>
     <div class="sb-bar"><i style="width:42%"></i></div>        progress bar (.is-thin 3 high)
     <span class="sb-spin"></span>                              a small spinner
     <div class="sb-dots"><i class="is-on"></i><i></i><i></i></div>
     <div class="sb-empty"><span class="sb-empty-icon">ICON 48</span><p class="sb-empty-title">No shifts here</p>
       <p class="sb-empty-text">Shifts come from games.</p><button type="button" class="sb-key is-tinted is-small is-auto">Game settings</button></div>
     <div class="sb-status-line">To review · 1 of 9 · by time</div>   (.is-filtered, .is-dim)
     <div class="sb-sep"></div>                                  a hairline

   Sheets (open them with SB.sheet.open, core builds the wrappers)
     Put a head in a sheet: <div class="sb-sheet-head"><span></span><b class="sb-sheet-title">Working</b>
       <button type="button" class="sb-sheet-done">Done</button></div>  then <div class="sb-sheet-body">...</div>
     Menus come from SB.menu. A popover is white glass, at most the screen less 16, its content is yours.

   The walk (SB.walk in js/shell.js writes this HTML)
     .sb-walk (column) > .sb-walk-top, .sb-keep, .sb-walk-body > .sb-walk-col, .sb-walk-bar
     Inside a body: <h2 class="sb-step-title">Is this the ice?</h2> 26 bold, <p class="sb-step-line">17</p>,
     <p class="sb-small">14 grey</p>. In a bar: <p class="sb-walk-small">a small line</p>.

   The screen element #sb-screen has "k-phone" | "k-cover" | "k-inner" | "k-turned" and "is-tab" | "is-full", so a file
   can write ".k-inner .rv-page". The page element is #sb-page. "k-turned" is the iPhone on its side (874 x 402).
   The shell's own: .sb-upright (the "turn upright" card), .sb-glow, .sb-nudge and .sb-try (the nudges outside the phone),
   .sb-state (the Rotate, Open and Close key beside the device) and .sb-unfold (the Duo's fold, drawn while it plays). */

:root {
  color-scheme: light;
  --sb-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  --sb-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* the app's colours (spec 01) */
  --sb-bg: #f3f4f6;
  --sb-panel: #ffffff;
  --sb-panel2: #f8f9fb;
  --sb-text: #1b2130;
  --sb-muted: #5f6878;
  --sb-border: #dadde3;
  --sb-border2: #c7ccd5;
  --sb-accent: #2563eb;
  --sb-sel: #e6eefc;
  --sb-me: #1f8a4c;
  --sb-not: #b42318;
  --sb-partly: #b7791f;
  --sb-probe: #6d28d9;
  --sb-box: #ff2bd6;
  --sb-others: #eab308;
  --sb-online: #16a34a;
  --sb-away: #eab308;
  --sb-count: #d97706;
  --sb-badge: #2563eb;
  --sb-stage: #2b2f36;
  --sb-fill: rgba(120, 120, 128, 0.20);
  --sb-fill2: rgba(120, 120, 128, 0.16);
  --sb-fill3: rgba(120, 120, 128, 0.12);
  --sb-label2: rgba(60, 60, 67, 0.60);
  --sb-label3: rgba(60, 60, 67, 0.30);
  --sb-blue: #007aff;
  --sb-blue-soft: rgba(0, 122, 255, 0.15);
  --sb-red-soft: rgba(255, 59, 48, 0.14);
  --sb-green-soft: rgba(52, 199, 89, 0.16);
  --sb-sys-red: #ff3b30;
  --sb-sys-green: #34c759;
  --sb-sys-orange: #ff9500;
  --sb-grouped: #f2f2f7;
  --sb-tab-off: #7c7c82;

  /* the first run's own colours (spec 02) */
  --sb-step-done: #a9c2f3;
  --sb-notice: rgba(27, 33, 48, 0.94);
  --sb-problem-bg: #fde8e6;
  --sb-problem: #d92d20;
  --sb-hint-bg: #fff4dc;
  --sb-hint: #5f3d05;
  --sb-quiet: #e3e5ea;
  --sb-ice-line: #34c759;
  --sb-jersey: #12333f;
  --sb-jersey-edge: #0b2129;
  --sb-bar-shadow: rgba(27, 33, 48, 0.06);

  /* glass */
  --sb-glass-bg: rgba(255, 255, 255, 0.64);
  --sb-glass-blur: blur(20px) saturate(1.8);
  --sb-glass-edge: inset 0 0 0 0.5px rgba(255, 255, 255, 0.75);
  --sb-glass-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 6px 20px rgba(17, 24, 39, 0.10);

  /* the page around the device */
  --sb-page: #eef0f3;
  --sb-bezel: #15171b;
  --sb-bezel-edge: #3c4048;
  --sb-bezel-metal: #b9bdc5;
  --sb-err-bg: #fdecea;
  --sb-err-line: #f3c1bb;
  --sb-err-text: #7a1a12;

  /* sizes (spec 01) */
  --sb-hit: 44px;
  --sb-old-topline: 44px;
  --sb-clipbar: 40px;
  --sb-old-keys: 48px;
  --sb-row: 60px;
  --sb-answers: 68px;
  --sb-nu-foot-row: 60px;
  --sb-nu-facts-row: 38px;
  --sb-status-line: 26px;
  --sb-tabbar: 49px;
  --sb-rail-own: 84px;
  --sb-strip: 84px;
  --sb-old-rail: 66px;
  --sb-old-column: 182px;
  --sb-inner-list: 300px;
  --sb-games-box-w: 340px;
  --sb-games-box-h: 520px;
  --sb-radius-card: 14px;
  --sb-radius-item: 12px;
  --sb-radius-key: 11px;
  --sb-radius-turned-bar: 22px;
  --sb-walk-top: 44px;
  --sb-walk-bar: 68px;
  --sb-walk-bar-short: 52px;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }

/* ---------- the page around the device ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sb-page);
  color: var(--sb-text);
  font: 16px/1.45 var(--sb-font);
  -webkit-font-smoothing: antialiased;
  padding-block: 20px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
.sb-root {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-x: clip;
}
.sb-root > * { min-width: 0; }
.sb-stage { order: -1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sb-side { display: flex; flex-direction: column; gap: 14px; max-width: 560px; width: 100%; margin: 0 auto; }
@media (min-width: 900px) {
  .sb-root { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
  .sb-stage { order: 0; }
  .sb-side { margin: 0; padding-top: 52px; }
}
.sb-root[data-mode="widget"] { grid-template-columns: minmax(0, 1fr); }
.sb-root[data-mode="widget"] .sb-side { display: none; }
.sb-root[data-mode="widget"] .sb-stage { order: 0; }

.sb-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sb-accent); letter-spacing: 0.01em; }
.sb-brand::before {
  content: ""; width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(160deg, #3b82f6, var(--sb-accent));
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.sb-h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.sb-lede { margin: 0; font-size: 16px; color: var(--sb-muted); }
.sb-now {
  background: var(--sb-panel);
  border: 0.5px solid var(--sb-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.sb-now b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sb-now p { margin: 0; font-size: 15px; line-height: 1.45; }
.sb-coach-more { display: none; }   /* demo-page.css shows it: the words past the first line, behind a tap */
.sb-coach-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sb-coach-btn { font: 600 14px/1.2 var(--sb-font); color: #fff; background: var(--sb-accent); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.sb-coach-btn:hover { filter: brightness(1.08); }
.sb-coach-btn:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
.sb-now .sb-coach-demo { margin-top: 10px; padding-top: 10px; border-top: 0.5px solid var(--sb-border); font-size: 13px; color: var(--sb-muted); }
.sb-now .sb-coach-demo::before {
  content: "Demo"; display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px;
  background: var(--sb-fill3); color: var(--sb-muted); font-size: 11px; font-weight: 600; line-height: 18px;
}
.sb-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-tools button {
  font: 500 15px/1 var(--sb-font); color: var(--sb-accent); background: var(--sb-panel);
  border: 0.5px solid var(--sb-border2); border-radius: 10px; padding: 10px 14px; cursor: pointer;
}
.sb-tools button:hover { background: var(--sb-sel); }
.sb-tools button:focus-visible, .sb-seg-btn:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
.sb-fine { margin: 0; font-size: 13px; color: var(--sb-muted); }
.sb-errors {
  background: var(--sb-err-bg); border: 1px solid var(--sb-err-line); color: var(--sb-err-text);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere;
}
.sb-errors b { display: block; margin-bottom: 4px; }
.sb-errors p { margin: 4px 0 0; }
.sb-selftest {
  margin: 0; background: var(--sb-panel); border: 0.5px solid var(--sb-border); border-radius: 10px;
  padding: 10px 12px; font: 12px/1.45 var(--sb-mono); color: var(--sb-text);
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto;
}

/* the device picker: one segmented row */
.sb-devices { max-width: 100%; }
.sb-seg {
  display: inline-flex; flex-wrap: wrap; justify-content: center; max-width: 100%;
  padding: 2px; border-radius: 10px; background: rgba(120, 120, 128, 0.14);
}
.sb-seg-btn {
  flex: 0 1 auto; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 500 13px/1 var(--sb-font); color: var(--sb-text); padding: 8px 12px; border-radius: 8px;
}
.sb-seg-btn.is-on { background: var(--sb-panel); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); font-weight: 600; }
.sb-seg-btn:disabled { color: var(--sb-label3); cursor: default; }
.sb-seg-btn small { font-size: 11px; font-weight: 500; }

/* the stage: the scaler holds the scaled size, the device is scaled from its top left corner */
.sb-fit { width: 100%; display: flex; justify-content: center; }
.sb-scaler { position: relative; flex: none; }
.sb-device { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ---------- the device frames ---------- */
.sb-bezel {
  position: relative; width: max-content;
  background: var(--sb-bezel);
  border-radius: 60px; padding: 12px;
  box-shadow: inset 0 0 0 1px var(--sb-bezel-edge), 0 0 0 2px var(--sb-bezel-metal), 0 0 0 2.5px rgba(0, 0, 0, 0.18),
    0 28px 56px -24px rgba(17, 24, 39, 0.38), 0 10px 22px -12px rgba(17, 24, 39, 0.22);
}
/* the iPhone's side keys */
.sb-device[data-device="iphone"] .sb-bezel::before {
  content: ""; position: absolute; left: -4px; top: 190px; width: 3px; height: 128px; border-radius: 2px 0 0 2px;
  background: linear-gradient(var(--sb-bezel-metal) 0 46%, transparent 46% 54%, var(--sb-bezel-metal) 54% 100%);
}
.sb-device[data-device="iphone"] .sb-bezel::after {
  content: ""; position: absolute; right: -4px; top: 230px; width: 3px; height: 96px; border-radius: 0 2px 2px 0;
  background: var(--sb-bezel-metal);
}
/* the Duo closed: a slimmer body with its hinge at the left */
.sb-device[data-device="duo-cover"] .sb-bezel { border-radius: 36px; padding: 9px 9px 9px 17px; }
.sb-device[data-device="duo-cover"] .sb-bezel::before {
  content: ""; position: absolute; left: 3px; top: 26px; bottom: 26px; width: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #2a2d33, #555a63 50%, #2a2d33);
}
/* the Duo open: one wide body */
.sb-device[data-device="duo-inner"] .sb-bezel { border-radius: 32px; padding: 10px; }
/* the iPhone sideways: the upright keys turned a quarter to the left (volume on the bottom edge, the side key on the top) */
.sb-device[data-device="iphone-turned"] .sb-bezel::before {
  content: ""; position: absolute; bottom: -4px; left: 190px; width: 128px; height: 3px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--sb-bezel-metal) 0 46%, transparent 46% 54%, var(--sb-bezel-metal) 54% 100%);
}
.sb-device[data-device="iphone-turned"] .sb-bezel::after {
  content: ""; position: absolute; top: -4px; left: 230px; width: 96px; height: 3px; border-radius: 2px 2px 0 0;
  background: var(--sb-bezel-metal);
}
/* the quarter turn between the iPhone and the iPhone sideways: the new bezel starts where the old one stood */
.sb-bezel.sb-turn-side { animation: sbTurnSide 0.45s cubic-bezier(0.3, 0.8, 0.3, 1); }
.sb-bezel.sb-turn-up { animation: sbTurnUp 0.45s cubic-bezier(0.3, 0.8, 0.3, 1); }
@keyframes sbTurnSide { from { transform: rotate(90deg) scale(var(--sb-turn-k, 1)); } to { transform: none; } }
@keyframes sbTurnUp { from { transform: rotate(-90deg) scale(var(--sb-turn-k, 1)); } to { transform: none; } }

/* ---------- the nudges (demo only, outside the phone's screen) ---------- */
/* the glow round the bezel: an accent pulse every 2 s while the turn is offered */
.sb-glow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 60px; pointer-events: none; opacity: 0; transition: opacity 0.4s ease-out; }
.sb-glow.is-on { opacity: 1; animation: sbGlow 2s ease-in-out infinite; }
@keyframes sbGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35), 0 0 22px 4px rgba(37, 99, 235, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.62), 0 0 50px 14px rgba(37, 99, 235, 0.42); }
}
.sb-glow.is-on + .sb-bezel { cursor: pointer; }
/* the pill under the device */
.sb-nudge {
  position: absolute; z-index: 5; left: 50%; top: 100%; margin-top: 10px; transform: translate(-50%, 4px);
  display: flex; align-items: center; gap: 2px; max-width: calc(100vw - 32px); height: 38px; padding: 0 4px 0 0;
  border-radius: 19px; background: var(--sb-panel); white-space: nowrap;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(17, 24, 39, 0.14);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s linear 0.3s;
}
.sb-nudge.is-up { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s; }
.sb-nudge.no-x { padding-right: 0; }
.sb-nudge-key {
  display: flex; align-items: center; gap: 8px; min-width: 0; height: 38px; padding: 0 10px 0 14px; margin: 0;
  border: 0; border-radius: 19px; background: none; cursor: pointer;
  font: 600 14px/1 var(--sb-font); color: var(--sb-accent);
}
.sb-nudge.no-x .sb-nudge-key { padding-right: 16px; }
.sb-nudge-key span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-nudge-key svg { flex: none; display: block; }
.sb-nudge-key:hover { background: var(--sb-sel); }
.sb-nudge-x {
  flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: var(--sb-fill3); color: var(--sb-muted); cursor: pointer;
}
.sb-nudge-x svg { display: block; }
.sb-nudge-key:focus-visible, .sb-nudge-x:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
/* the pill pulses for the Duo where there is no picker (the homepage hero), quieter than the bezel */
.sb-nudge.is-glow.is-up { animation: sbGlowSoft 2.4s ease-in-out infinite; }
@keyframes sbGlowSoft {
  0%, 100% { box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(17, 24, 39, 0.14), 0 0 0 1.5px rgba(37, 99, 235, 0.25); }
  50% { box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(17, 24, 39, 0.14), 0 0 0 3px rgba(37, 99, 235, 0.45), 0 0 14px rgba(37, 99, 235, 0.3); }
}
/* the picker's Duo open key while the Duo is offered: a "Try it" badge and a quiet pulse */
/* the badge floats over the key's top right corner, so it never widens the picker or wraps the head (QC 2026-11-28) */
.sb-seg-btn { position: relative; }
.sb-try {
  display: none; position: absolute; z-index: 1; top: -9px; right: -4px; padding: 2px 6px; border-radius: 6px;
  background: var(--sb-accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 12px; pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.sb-seg-btn.is-try .sb-try { display: inline-block; }
.sb-seg-btn.is-try { animation: sbTry 2.4s ease-in-out infinite; }
@keyframes sbTry {
  0%, 100% { box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25); }
  50% { box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.5), 0 0 12px rgba(37, 99, 235, 0.3); }
}
#sb-root[data-fit="phone"] .sb-nudge, #sb-root[data-fit="phone"] .sb-glow { display: none; }

.sb-bezel.sb-fade-out { animation: sbFadeOut 0.1s ease-in forwards; }
.sb-bezel.sb-fade-in { animation: sbFadeIn 0.12s ease-out; }
@keyframes sbFadeOut { to { opacity: 0; } }
@keyframes sbFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- the state key: Rotate, Open or Close, beside the device (js/shell.js, THE PICKER AND THE STATE KEY) ---------- */
.sb-state {
  position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0;
  padding: 0 17px 0 13px; border: 0; border-radius: 20px; cursor: pointer; white-space: nowrap;
  font: 600 14px/1 var(--sb-font); color: var(--sb-text); background: var(--sb-panel);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(17, 24, 39, 0.14);
  transition: opacity 0.2s ease-out, background-color 0.15s;
}
.sb-state[hidden] { display: none; }
.sb-state svg { flex: none; display: block; }
.sb-state:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
/* while the device changes under it: out of sight, then back at its new place */
.sb-state.is-busy { opacity: 0; pointer-events: none; transition: none; }
/* right of the device: centred on an upright one, at the top of a wide one */
.sb-state[data-place="side"] { left: calc(100% + 22px); top: 50%; margin-top: -20px; }
.sb-state[data-place="side"][data-wide] { top: 0; margin-top: 0; }
/* in the row under the device, at its right end, or centred under a narrow one (the pill steps aside for it) */
.sb-state[data-place="under"] { right: 0; top: 100%; margin-top: 9px; }
.sb-state[data-place="under-mid"] { left: 50%; top: 100%; margin-top: 9px; transform: translateX(-50%); }
.sb-scaler[data-key="under-mid"] .sb-nudge { display: none; }
/* in a widget, in the picker's row right of the toggle */
.sb-devices:has(.sb-state:not([hidden])) { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sb-state[data-place="head"] { position: relative; height: 34px; padding: 0 14px 0 11px; border-radius: 17px; font-size: 13.5px; }
.sb-state .sb-try { display: none; }
.sb-state.is-try .sb-try { display: inline-block; }
.sb-state.is-try { animation: sbTry 2.4s ease-in-out infinite; }
#sb-root[data-fit="phone"] .sb-state { display: none; }

/* ---------- the Duo's fold: two panels about the hinge, behind #sb-device while it plays ---------- */
.sb-unfold { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; pointer-events: none; }
.sb-unfold-set { position: absolute; left: 0; top: 0; transform-origin: 0 0; perspective: 1700px; will-change: transform; }
.sb-unfold-half {
  position: absolute; top: 0; left: 0; background: var(--sb-bezel); will-change: transform;
  box-shadow: inset 0 0 0 1px var(--sb-bezel-edge), 0 0 0 2px var(--sb-bezel-metal), 0 28px 50px -26px rgba(0, 0, 0, 0.7);
}
.sb-unfold-half.is-left { border-radius: 32px 0 0 32px; transform-origin: 100% 50%; }
.sb-unfold-half.is-right { border-radius: 0 32px 32px 0; }
/* the screens, dark until the open one lights */
.sb-unfold-half > i { position: absolute; top: 10px; bottom: 10px; }
.sb-unfold-half.is-left > i {
  left: 10px; right: 0; border-radius: 22px 0 0 22px;
  background: linear-gradient(115deg, #262a31, #0c0d10 46%, #15171b);
}
.sb-unfold-half.is-right > i {
  left: 0; right: 10px; border-radius: 0 22px 22px 0;
  background: linear-gradient(115deg, #1b1e23, #0b0c0e 52%, #1a1c21);
}
/* the swinging half is in shadow while it stands at an angle to the light */
.sb-unfold-shade { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: inherit; background: #000; opacity: 0; }
.sb-unfold-snap { will-change: opacity; }

/* ---------- the screen ---------- */
.sb-screen {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--sb-bg); color: var(--sb-text);
  font: 17px/1.3 var(--sb-font); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sb-screen input, .sb-screen textarea { -webkit-user-select: text; user-select: text; }
.d-iphone { width: 402px; height: 874px; border-radius: 48px; }
.d-duo-cover { width: 466px; height: 678px; border-radius: 27px; }
.d-duo-inner { width: 951px; height: 669px; border-radius: 22px; }
.d-iphone-turned { width: 874px; height: 402px; border-radius: 48px; }

/* plain defaults inside the screen, kept at the lowest weight so any class wins */
:where(.sb-screen) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
:where(.sb-screen) h1, :where(.sb-screen) h2, :where(.sb-screen) h3, :where(.sb-screen) p { margin: 0; }
:where(.sb-screen) :focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
:where(.sb-screen) svg { display: block; flex: none; }
.sb-screen * { scrollbar-width: none; }
.sb-screen *::-webkit-scrollbar { display: none; }

/* the page area, per device and mode */
.sb-page { position: absolute; z-index: 1; left: 0; right: 0; top: 0; bottom: 0; overflow-x: hidden; overflow-y: auto; }
.k-phone.is-full .sb-page { top: 62px; bottom: 34px; }
.k-phone.is-tab .sb-page { top: 106px; bottom: 90px; }
.k-cover .sb-page { right: auto; width: 382px; }
.k-inner .sb-page { right: 84px; bottom: 34px; }
/* the iPhone sideways: tab screens take the whole screen (the video goes edge to edge), full ones keep off the
   62 safe areas at the sides and the 21 home inset at the foot */
.k-turned.is-full .sb-page { left: 62px; right: 62px; bottom: 21px; }

/* page changes: core puts one of these on #sb-page */
.sb-in-fwd { animation: sbInFwd 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sb-in-back { animation: sbInBack 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sb-in-none { animation: none; }
@keyframes sbInFwd { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes sbInBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }

/* the iPhone's status bar */
.sb-status { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: 62px; pointer-events: none; color: #000; }
.sb-status .sb-time { position: absolute; left: 0; top: 17px; width: 138px; text-align: center; font: 600 17px/22px var(--sb-font); letter-spacing: -0.02em; }
.sb-island { position: absolute; top: 11px; left: 138px; width: 126px; height: 37px; border-radius: 19px; background: #000; }
.sb-status .sb-glyphs { position: absolute; right: 0; top: 17px; width: 138px; height: 22px; justify-content: center; }
/* on its side the island stands at the left edge, over the page */
.k-turned .sb-island { z-index: 30; top: 138px; left: 11px; width: 37px; height: 126px; pointer-events: none; }
.k-turned .sb-homebar { bottom: 7px; }
.sb-glyphs { display: flex; align-items: center; gap: 5px; }

/* the Duo's strip: the status column on top, then the keys and the tabs */
.sb-strip {
  position: absolute; z-index: 25; top: 0; right: 0; bottom: 0; width: 84px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--sb-panel2); box-shadow: inset 0.5px 0 0 var(--sb-border);
}
.sb-statuscol { flex: none; width: 84px; height: 174px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; color: #000; pointer-events: none; }
.d-duo-inner .sb-statuscol { padding-top: 22px; }
.sb-cam { width: 37px; height: 37px; border-radius: 50%; margin-left: -11px; background: radial-gradient(circle at 50% 50%, #1d2633 0 22%, #07080a 24% 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.sb-statuscol .sb-time { font: 600 15px/20px var(--sb-font); letter-spacing: -0.02em; }
.sb-statuscol .sb-glyphs { gap: 3px; }
.sb-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.sb-railtabs { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.sb-railtabs .sb-tab {
  width: 72px; min-height: 58px; border-radius: 12px; padding: 6px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--sb-tab-off);
}
.sb-railtabs .sb-tab.is-lit { color: var(--sb-accent); background: var(--sb-sel); }

/* the iPhone's top bar and floating glass tab bar */
.sb-topbar { position: absolute; z-index: 20; top: 62px; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; pointer-events: none; }
.sb-topbar > * { pointer-events: auto; }
.sb-topbar .sb-glass.sb-barkey { width: 40px; height: 40px; }
.sb-barkey { color: var(--sb-text); }
.sb-tabbar {
  position: absolute; z-index: 20; left: 16px; right: 16px; bottom: 22px; height: 62px; padding: 4px;
  display: flex; border-radius: 31px;
  background: var(--sb-glass-bg); -webkit-backdrop-filter: var(--sb-glass-blur); backdrop-filter: var(--sb-glass-blur);
  box-shadow: var(--sb-glass-edge), var(--sb-glass-shadow);
}
.sb-tabbar .sb-tab {
  flex: 1 1 0; min-width: 0; border-radius: 27px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--sb-tab-off);
  transition: background-color 0.2s, color 0.2s;
}
.sb-tabbar .sb-tab.is-lit { color: var(--sb-accent); background: rgba(120, 120, 128, 0.13); }
.sb-tab:active { transform: scale(0.96); }
.sb-tab-icon { height: 30px; display: flex; align-items: center; justify-content: center; }
.sb-tab-label { font-size: 10px; font-weight: 600; line-height: 12px; letter-spacing: 0; white-space: nowrap; }
.sb-gear-ring { position: relative; width: 30px; height: 30px; display: block; }
.sb-gear-ring .sb-ring { position: absolute; left: 0; top: 0; }
.sb-gear-ring-icon { position: absolute; left: 8px; top: 8px; width: 14px; height: 14px; }
.is-full .sb-topbar, .is-full .sb-tabbar, .is-full .sb-rail { display: none; }

/* the home indicator */
.sb-homebar { position: absolute; z-index: 45; bottom: 8px; left: 50%; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: rgba(0, 0, 0, 0.86); pointer-events: none; }
.k-cover .sb-homebar { left: 191px; width: 120px; margin-left: -60px; bottom: 6px; }
.k-inner .sb-homebar { left: 433.5px; bottom: 10px; }

/* ---------- the Working bar ---------- */
.sb-pop {
  position: absolute; z-index: 22; left: 16px; right: 16px; bottom: 92px; height: 54px; padding: 0 8px 0 14px;
  display: flex; align-items: center; gap: 6px; border-radius: 27px;
  background: var(--sb-glass-bg); -webkit-backdrop-filter: var(--sb-glass-blur); backdrop-filter: var(--sb-glass-blur);
  box-shadow: var(--sb-glass-edge), var(--sb-glass-shadow);
  opacity: 0; transform: translateY(14px) scale(0.96); pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 1, 1), opacity 0.35s ease-in;
}
.sb-pop.is-up { opacity: 1; transform: none; pointer-events: auto; transition: transform 0.45s cubic-bezier(0.34, 1.5, 0.64, 1), opacity 0.2s ease-out; }
.k-cover .sb-pop { left: 10px; right: auto; width: 362px; bottom: 14px; }
.k-inner .sb-pop { left: 223.5px; right: auto; width: 420px; bottom: 42px; }
.is-full .sb-pop { display: none; }
.sb-pop:empty { display: none; }
.sb-pop-main { flex: 1 1 auto; min-width: 0; height: 100%; display: flex; align-items: center; gap: 10px; text-align: left; }
.sb-pop-lead { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--sb-text); }
.sb-pop-lead.is-done { color: var(--sb-sys-green); }
.sb-pop-lead.is-stopped { color: var(--sb-sys-orange); }
.sb-pop-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sb-pop-title { font-size: 15px; font-weight: 600; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-pop.is-stopped .sb-pop-title { color: var(--sb-sys-orange); }
.sb-pop-sub { font-size: 12px; line-height: 16px; color: var(--sb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-pop-chev { flex: none; color: var(--sb-label3); padding-right: 6px; }
.sb-pop-toggle { flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 16px; color: var(--sb-text); }
.sb-pop-toggle:active { background: var(--sb-fill3); }

/* ---------- layers: sheets and the toast sit over the whole screen ---------- */
.sb-layer { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.sb-layer-toast { z-index: 60; }
.k-cover .sb-layer-toast, .k-inner .sb-layer-toast { right: 84px; }
.sb-over { position: absolute; inset: 0; pointer-events: auto; }
.sb-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background-color 0.25s ease-out; }
.sb-over-sheet.sb-shown .sb-scrim { background: rgba(0, 0, 0, 0.18); }
.sb-over-card.sb-shown .sb-scrim { background: rgba(0, 0, 0, 0.35); }
.sb-over.sb-out .sb-scrim { background: rgba(0, 0, 0, 0); transition-duration: 0.2s; }
.sb-over.sb-out { pointer-events: none; }

/* sheets slide up from the bottom of the screen */
.sb-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 56px);
  background: var(--sb-panel); border-radius: 14px 14px 0 0; padding-top: 18px;
  overflow-x: hidden; overflow-y: auto;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.04), 0 -8px 30px rgba(17, 24, 39, 0.12);
  transform: translateY(100%); transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.sb-sheet::before { content: ""; position: absolute; top: 5px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(60, 60, 67, 0.3); }
.sb-over.sb-shown .sb-sheet { transform: none; }
.sb-over.sb-out .sb-sheet { transform: translateY(100%); transition: transform 0.2s ease-in; }
.sb-detent-half { height: 50%; }
.sb-detent-full { height: calc(100% - 56px); }
.sb-detent-auto { max-height: 85%; }
.k-phone .sb-sheet { padding-bottom: 34px; }
.k-cover .sb-sheet { right: 84px; }
.k-inner .sb-sheet { left: calc((100% - 84px - 540px) / 2); right: auto; width: 540px; padding-bottom: 34px; }
.k-cover .sb-sheet, .k-inner .sb-sheet { max-height: calc(100% - 20px); }
.k-cover .sb-detent-full, .k-inner .sb-detent-full { height: calc(100% - 20px); }
.k-cover .sb-detent-auto, .k-inner .sb-detent-auto { max-height: 85%; }
/* the iPhone sideways: a 540 wide sheet in the middle, over the home inset */
.k-turned .sb-sheet { left: calc(50% - 270px); right: auto; width: 540px; max-height: calc(100% - 12px); padding-bottom: 21px; }
.k-turned .sb-detent-full { height: calc(100% - 12px); }
.k-turned .sb-detent-half { height: 70%; }
.k-turned .sb-detent-auto { max-height: 90%; }
.sb-sheet-head { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; min-height: 44px; padding: 0 16px; }
.sb-sheet-title { text-align: center; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-sheet-done { justify-self: end; font-size: 17px; font-weight: 600; color: var(--sb-blue); min-height: 44px; }
.sb-sheet-body { padding: 8px 16px 16px; }

/* core's dialog card: centred, at most 460 wide */
.sb-over-card > .sb-card {
  position: absolute; left: 50%; top: 50%; width: calc(100% - 32px); max-width: 460px; max-height: calc(100% - 32px);
  overflow-y: auto; border-radius: 16px; padding: 20px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.22);
  transform: translate(-50%, -50%) scale(0.94); opacity: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.15), opacity 0.2s ease-out;
}
.k-cover .sb-over-card > .sb-card, .k-inner .sb-over-card > .sb-card { left: calc((100% - 84px) / 2); }
.sb-over-card.sb-shown > .sb-card { transform: translate(-50%, -50%); opacity: 1; }
.sb-over-card.sb-out > .sb-card { transform: translate(-50%, -50%) scale(0.96); opacity: 0; transition: transform 0.2s ease-in, opacity 0.2s ease-in; }

/* popovers and menus: core sets left and top */
.sb-popover, .sb-menu {
  position: absolute; max-width: calc(100% - 16px); max-height: calc(100% - 16px); overflow-x: hidden; overflow-y: auto;
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 12px 36px rgba(17, 24, 39, 0.18);
  opacity: 0; transform: scale(0.9);
  transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.12), opacity 0.18s ease-out;
}
.sb-popover { border-radius: 14px; }
.sb-menu { border-radius: 12px; min-width: 200px; padding: 0; }
.sb-over.sb-shown .sb-popover, .sb-over.sb-shown .sb-menu { opacity: 1; transform: none; }
.sb-over.sb-out .sb-popover, .sb-over.sb-out .sb-menu { opacity: 0; transform: scale(0.94); transition: transform 0.2s ease-in, opacity 0.2s ease-in; }
.sb-menu-item {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 16px 0 0;
  font-size: 17px; line-height: 22px; text-align: left; color: var(--sb-text); white-space: nowrap;
}
.sb-menu-item + .sb-menu-item { box-shadow: inset 0 0.5px 0 rgba(60, 60, 67, 0.2); }
.sb-menu-item:active, .sb-menu-item:hover { background: rgba(120, 120, 128, 0.12); }
.sb-menu-item.is-danger { color: var(--sb-sys-red); }
.sb-menu-item:disabled { color: var(--sb-label3); cursor: default; background: none; }
.sb-menu-tick { flex: none; width: 36px; text-align: center; font-size: 15px; font-weight: 600; }
.sb-menu-sep { height: 8px; background: rgba(60, 60, 67, 0.08); }

/* the toast: a glass capsule over the foot of the page */
.sb-toast {
  position: absolute; left: 50%; bottom: 96px; width: max-content; max-width: calc(100% - 16px); min-height: 38px;
  display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-radius: 20px;
  font-size: 15px; line-height: 20px; color: var(--sb-text); pointer-events: auto;
  background: var(--sb-glass-bg); -webkit-backdrop-filter: var(--sb-glass-blur); backdrop-filter: var(--sb-glass-blur);
  box-shadow: var(--sb-glass-edge), var(--sb-glass-shadow);
  opacity: 0; transform: translate(-50%, 14px);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease-out;
}
.sb-toast.sb-shown { opacity: 1; transform: translate(-50%, 0); }
.k-phone.is-full .sb-toast { bottom: 110px; }
.k-cover.is-tab .sb-toast { bottom: 14px; }
.k-cover.is-full .sb-toast { bottom: 76px; }
.k-inner.is-tab .sb-toast { bottom: 42px; }
.k-inner.is-full .sb-toast { bottom: 110px; }
.k-turned .sb-toast { bottom: 30px; }
/* the card the iPhone sideways shows in place of a screen it can't be used on */
.sb-upright { height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sb-upright-card {
  max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 22px 20px; text-align: center;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(17, 24, 39, 0.06);
}
.sb-upright-icon { color: var(--sb-accent); }
/* a screen's own place for the toast: <div data-sb-toast></div> inside a position: relative box (the video). core puts the toast there */
[data-sb-toast] { position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 6; pointer-events: none; }
[data-sb-toast] .sb-toast { bottom: 8px !important; pointer-events: auto; }
.sb-toast-text { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.sb-toast-btn { flex: none; font-weight: 700; color: var(--sb-accent); min-height: 30px; white-space: nowrap; }

/* ---------- type ---------- */
.sb-t-large { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.01em; }
.sb-t-title2 { font-size: 22px; line-height: 28px; font-weight: 700; }
.sb-t-title3 { font-size: 20px; line-height: 25px; }
.sb-t-headline { font-size: 17px; line-height: 22px; font-weight: 600; }
.sb-t-body { font-size: 17px; line-height: 22px; }
.sb-t-sub { font-size: 15px; line-height: 20px; }
.sb-t-foot { font-size: 13px; line-height: 18px; }
.sb-t-cap { font-size: 12px; line-height: 16px; }
.sb-t-cap2 { font-size: 11px; line-height: 13px; }
.sb-muted { color: var(--sb-muted); }
.sb-tnum { font-variant-numeric: tabular-nums; }
.sb-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- keys ---------- */
.sb-key {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 0 0 auto; min-width: 0; height: 52px; padding: 0 12px; border-radius: 14px;
  font-size: 17px; font-weight: 600; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--sb-quiet); color: var(--sb-text);
  transition: opacity 0.12s, background-color 0.2s;
}
.sb-key:active { opacity: 0.75; }
.sb-key.is-filled { background: var(--sb-accent); color: #fff; }
.sb-key.is-quiet { background: var(--sb-quiet); color: var(--sb-text); }
.sb-key.is-tinted { background: var(--sb-sel); color: var(--sb-accent); }
.sb-key.is-plain { background: none; color: var(--sb-accent); }
.sb-key.is-danger { background: var(--sb-red-soft); color: var(--sb-sys-red); }
.sb-key.is-filled.is-danger { background: var(--sb-sys-red); color: #fff; }
.sb-key.is-small { height: 44px; border-radius: 12px; }
.sb-key.is-fixed { flex: 0 0 120px; width: 120px; }
.sb-key.is-auto { flex: 0 0 auto; padding: 0 18px; }
.sb-key:disabled { cursor: default; opacity: 1; background: var(--sb-quiet); color: rgba(95, 104, 120, 0.6); }
.sb-key.is-filled:disabled { background: var(--sb-border2); color: #fff; }
.sb-key.is-plain:disabled { background: none; color: var(--sb-label3); }

.sb-glass {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font-size: 17px; line-height: 22px; white-space: nowrap; color: var(--sb-text);
  background: var(--sb-glass-bg); -webkit-backdrop-filter: var(--sb-glass-blur); backdrop-filter: var(--sb-glass-blur);
  box-shadow: var(--sb-glass-edge), var(--sb-glass-shadow);
  transition: background-color 0.25s, color 0.25s, transform 0.12s, filter 0.12s, opacity 0.25s;
}
.sb-glass:active { transform: scale(0.95); filter: brightness(1.05); }
.sb-glass.is-on { background: rgba(37, 99, 235, 0.92); color: #fff; box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.3), var(--sb-glass-shadow); }
.sb-glass.is-small { padding: 6px 8px; font-size: 15px; line-height: 20px; }
.sb-glass.is-tall { padding: 13px 12px; font-weight: 500; }
.sb-glass.is-icon { width: 44px; height: 44px; padding: 0; }
.sb-glass.is-icon.is-small { width: 34px; height: 34px; }
.sb-glass:disabled { opacity: 0.35; cursor: default; transform: none; filter: none; }

.sb-oldkey {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 11px;
  background: var(--sb-fill3); color: var(--sb-blue); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.sb-oldkey.is-on { background: var(--sb-blue-soft); }
.sb-oldkey:active { opacity: 0.7; }
.sb-oldkey:disabled { color: var(--sb-label3); cursor: default; opacity: 1; }

.sb-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--sb-badge); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.sb-badge.is-amber { background: var(--sb-count); }
.sb-chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; white-space: nowrap;
  background: var(--sb-fill3); color: var(--sb-muted); font-size: 12px; font-weight: 600;
}
.sb-chip.is-big { height: 44px; padding: 0 16px; border-radius: 22px; background: var(--sb-sel); color: var(--sb-accent); font-size: 16px; }
button.sb-chip:active { opacity: 0.7; }

/* ---------- cards, rows and lists ---------- */
.sb-card { display: block; position: relative; background: var(--sb-panel); border-radius: 14px; padding: 12px 14px; }
.sb-card.is-open { background: var(--sb-sel); box-shadow: inset 4px 0 0 var(--sb-accent); }
.sb-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; width: 100%; text-align: left; }
.sb-row-thumb { flex: none; width: 72px; height: 44px; border-radius: 6px; background: var(--sb-stage); overflow: hidden; }
.sb-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-row-title { font-size: 17px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row-sub { font-size: 13px; line-height: 18px; color: var(--sb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row-end { flex: none; display: flex; align-items: center; gap: 8px; color: var(--sb-muted); }

.sb-group { margin: 0 16px 24px; }
.sb-list-head { padding: 0 16px 6px; font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.sb-list { background: var(--sb-panel); border-radius: 12px; overflow: hidden; }
.sb-list-foot { padding: 6px 16px 0; font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.sb-list-row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px;
  font-size: 17px; line-height: 22px; text-align: left; color: var(--sb-text); background: none;
}
.sb-list-row + .sb-list-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--sb-border2); }
.sb-list.has-tiles .sb-list-row + .sb-list-row::before { left: 58px; }
button.sb-list-row:active { background: var(--sb-fill3); }
button.sb-list-row:disabled { color: var(--sb-label3); cursor: default; background: none; }
.sb-tile { flex: none; width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--tile, var(--sb-accent)); }
.sb-list-title { flex: 1 1 auto; min-width: 0; padding: 11px 0; overflow: hidden; text-overflow: ellipsis; }
.sb-list-value { flex: none; color: var(--sb-label2); white-space: nowrap; }
.sb-list-chev { flex: none; color: var(--sb-label3); margin-right: -4px; }

.sb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-field-label { font-size: 13px; line-height: 18px; color: var(--sb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-field-input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sb-border2);
  background: var(--sb-panel); color: var(--sb-text); font: 600 20px/1 var(--sb-font); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sb-field-input::placeholder { color: var(--sb-label3); font-weight: 500; }
.sb-field-input:focus { border-color: var(--sb-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16); }

.sb-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.sb-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sb-switch-ui { position: relative; display: inline-block; flex: none; width: 51px; height: 31px; border-radius: 16px; background: rgba(120, 120, 128, 0.16); transition: background-color 0.2s; }
.sb-switch-ui::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.06); transition: transform 0.22s cubic-bezier(0.3, 0.9, 0.4, 1);
}
.sb-switch input:checked + .sb-switch-ui, .sb-switch-ui.is-on { background: var(--sb-accent); }
.sb-switch input:checked + .sb-switch-ui::after, .sb-switch-ui.is-on::after { transform: translateX(20px); }
.sb-switch input:focus-visible + .sb-switch-ui { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
.sb-switch input:disabled + .sb-switch-ui { opacity: 0.5; }
.sb-switch.is-small .sb-switch-ui { transform: scale(0.8); }

.sb-radio {
  -webkit-appearance: none; appearance: none; position: relative; display: inline-block; flex: none; margin: 0;
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sb-border2); background: var(--sb-panel);
}
.sb-radio.is-on, .sb-radio:checked { border-color: var(--sb-accent); }
.sb-radio.is-on::after, .sb-radio:checked::after { content: ""; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--sb-accent); }

.sb-hint { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sb-hint-bg); color: var(--sb-hint); font-size: 15px; line-height: 20px; }
.sb-hint > svg { margin-top: 2px; }
.sb-problem { padding: 10px 12px; border-radius: 12px; background: var(--sb-problem-bg); color: var(--sb-problem); font-size: 15px; line-height: 20px; }
.sb-how { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sb-panel); border: 1px solid var(--sb-border); font-size: 15px; line-height: 20px; }
.sb-how > svg { color: var(--sb-accent); margin-top: 1px; }
.sb-notice { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--sb-notice); color: #fff; font-size: 14px; font-weight: 500; }
.sb-bar { position: relative; height: 4px; border-radius: 2px; background: var(--sb-fill2); overflow: hidden; }
.sb-bar.is-thin { height: 3px; }
.sb-bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sb-accent); transition: width 0.3s ease-out; }
.sb-spin { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--sb-fill); border-top-color: var(--sb-muted); animation: sbSpin 0.8s linear infinite; }
@keyframes sbSpin { to { transform: rotate(360deg); } }
.sb-dots { display: flex; justify-content: center; gap: 8px; }
.sb-dots > i { display: block; width: 7px; height: 7px; border-radius: 50%; background: rgba(27, 33, 48, 0.25); }
.sb-dots > i.is-on { background: var(--sb-text); }
.sb-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 24px; text-align: center; }
.sb-empty-icon { color: var(--sb-label3); margin-bottom: 6px; }
.sb-empty-title { font-size: 22px; line-height: 28px; font-weight: 700; }
.sb-empty-text { font-size: 15px; line-height: 20px; color: var(--sb-muted); max-width: 320px; }
.sb-empty .sb-key { margin-top: 10px; }
.sb-status-line {
  display: flex; align-items: center; min-height: 26px; padding: 0 6px 0 12px; gap: 6px;
  font-size: 13px; line-height: 18px; color: var(--sb-muted); white-space: nowrap; overflow: hidden;
  box-shadow: inset 0 -0.5px 0 var(--sb-border);
}
.sb-status-line.is-filtered { color: var(--sb-accent); background: rgba(0, 122, 255, 0.075); }
.sb-status-line.is-dim { opacity: 0.35; pointer-events: none; }
.sb-sep { height: 0; border-top: 0.5px solid var(--sb-border); }
.sb-ring { display: block; }

/* ---------- the first run's walk ---------- */
.sb-walk { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--sb-bg); }
.sb-walk-top { position: relative; flex: none; height: 44px; box-shadow: inset 0 -1px 0 var(--sb-border); }
.k-cover .sb-walk-top, .k-inner .sb-walk-top { height: 52px; padding-top: 8px; }
.sb-walk-line { display: flex; align-items: center; height: 44px; transition: opacity 0.2s ease-in-out; }
.sb-walk-left, .sb-walk-right { flex: none; width: 86px; height: 44px; display: flex; align-items: center; }
.sb-walk-right { justify-content: flex-end; }
.sb-walk-right.is-narrow { width: 16px; }
.sb-walk-mid { flex: 1 1 auto; min-width: 0; text-align: center; }
.sb-walk-name { display: block; font-size: 16px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sb-walk-name b { font-weight: 600; color: var(--sb-text); }
.sb-walk-of { color: var(--sb-muted); }
.sb-walk-back { display: flex; align-items: center; gap: 2px; height: 44px; width: 100%; padding-left: 8px; color: var(--sb-accent); font-size: 17px; white-space: nowrap; }
.sb-walk-back svg { stroke-width: 2.4; }
.sb-walk-close { height: 44px; width: 100%; padding-right: 16px; text-align: right; color: var(--sb-accent); font-size: 16px; }
.sb-walk-back:active, .sb-walk-close:active { opacity: 0.5; }
.sb-walk-steps { position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; display: flex; gap: 3px; transition: opacity 0.2s ease-in-out; }
.sb-walk-steps > i { flex: 1 1 0; display: block; height: 3px; border-radius: 2px; background: transparent; }
.sb-walk-steps > i.is-done { background: var(--sb-step-done); }
.sb-walk-steps > i.is-now { background: var(--sb-accent); }
.sb-walk-notice {
  position: absolute; left: 12px; right: 12px; bottom: 4px; min-height: 36px; padding: 0 14px;
  display: flex; align-items: center; border-radius: 18px; background: var(--sb-notice); color: #fff;
  font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease-in-out;
}
.sb-walk-notice-text { overflow: hidden; text-overflow: ellipsis; }
.sb-walk-top.has-notice { box-shadow: none; }
.sb-walk-top.has-notice .sb-walk-line, .sb-walk-top.has-notice .sb-walk-steps { opacity: 0; pointer-events: none; }
.sb-walk-top.has-notice .sb-walk-notice { opacity: 1; }

.sb-keep {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  height: 36px; padding: 0 16px; font-size: 13px; color: var(--sb-muted); text-align: left;
  box-shadow: inset 0 -1px 0 var(--sb-border);
}
.sb-keep .sb-switch-ui { transform: scale(0.8); transform-origin: right center; }
.sb-keep.is-slim { height: 30px; }
.sb-keep.is-slim .sb-switch-ui { transform: scale(0.7); }

.sb-walk-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 18px 16px 16px; }
.sb-walk-body.is-flush { padding: 0; }
.sb-walk-col { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 440px; margin: 0 auto; }
.sb-step-title { font-size: 26px; line-height: 31px; font-weight: 700; letter-spacing: -0.01em; }
.sb-step-line { font-size: 17px; line-height: 22px; }
.sb-small { font-size: 14px; line-height: 19px; color: var(--sb-muted); }

.sb-walk-bar {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 68px; padding: 0 16px; background: var(--sb-bg);
  box-shadow: inset 0 1px 0 var(--sb-border2), 0 -4px 5px var(--sb-bar-shadow);
}
.sb-walk-bar > .sb-key { flex: 1 1 0; }
.sb-walk-bar > .sb-key.is-fixed { flex: 0 0 120px; }
.sb-walk-bar > .sb-key.is-auto { flex: 0 0 auto; }
.sb-walk-bar > .sb-key:only-child { max-width: 440px; }
.sb-walk-bar.is-short { height: 52px; box-shadow: inset 0 1px 0 var(--sb-border2); }
.sb-walk-bar.is-short .sb-key { height: 44px; border-radius: 12px; }
.sb-walk-small { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 19px; color: var(--sb-muted); }

/* ---------- phone mode: on a real phone the app's screen is the page ----------
   js/shell.js sets data-fit="phone" on #sb-root and data-sb-fit="phone" on <html> when the window is at most 520 wide
   (never in widget mode). Every rule here hangs off those, so wider windows are untouched.
   The drawn status bar (62) and home inset (34) give way to the phone's own safe areas. */
#sb-root[data-fit="phone"] {
  --sb-top: max(env(safe-area-inset-top, 0px), 10px);
  --sb-bot: max(env(safe-area-inset-bottom, 0px), 8px);
  --sb-tabbar-bot: max(calc(env(safe-area-inset-bottom, 0px) - 12px), 8px);
}
html[data-sb-fit="phone"], html[data-sb-fit="phone"] body {
  height: 100%; overflow: hidden; overscroll-behavior: none;
}
html[data-sb-fit="phone"] body { padding: 0; background: var(--sb-bg); }
html[data-sb-fit="phone"] #sb-testbar, html[data-sb-fit="phone"] #sb-debug { display: none !important; }
#sb-root[data-fit="phone"] .sb-devices, #sb-root[data-fit="phone"] .sb-fine { display: none; }

/* no bezel, no scaling: the screen is fixed to the window */
#sb-root[data-fit="phone"] .sb-bezel { padding: 0; background: none; box-shadow: none; border-radius: 0; animation: none; }
#sb-root[data-fit="phone"] .sb-bezel::before, #sb-root[data-fit="phone"] .sb-bezel::after { content: none; display: none; }
#sb-root[data-fit="phone"] .sb-device { position: static; transform: none; }
#sb-root[data-fit="phone"] .sb-screen {
  position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100vh; height: 100dvh;
  border-radius: 0; box-shadow: none;
}
#sb-root[data-fit="phone"] .sb-page,
#sb-root[data-fit="phone"] .sb-walk-body,
#sb-root[data-fit="phone"] .sb-sheet { overscroll-behavior: contain; }

/* the phone draws its own status bar and home indicator */
#sb-root[data-fit="phone"] .sb-status, #sb-root[data-fit="phone"] .sb-homebar { display: none; }

/* everything that sat under the 62 status bar or over the 34 home inset */
#sb-root[data-fit="phone"] .k-phone.is-full .sb-page { top: var(--sb-top); bottom: var(--sb-bot); }
#sb-root[data-fit="phone"] .k-phone.is-tab .sb-page { top: calc(var(--sb-top) + 44px); bottom: calc(var(--sb-tabbar-bot) + 68px); }
#sb-root[data-fit="phone"] .sb-topbar { top: var(--sb-top); }
#sb-root[data-fit="phone"] .sb-tabbar { bottom: var(--sb-tabbar-bot); }
#sb-root[data-fit="phone"] .sb-pop { bottom: calc(var(--sb-tabbar-bot) + 70px); }
#sb-root[data-fit="phone"] .sb-toast { bottom: calc(var(--sb-tabbar-bot) + 74px); }
#sb-root[data-fit="phone"] .k-phone.is-full .sb-toast { bottom: calc(var(--sb-bot) + 76px); }
#sb-root[data-fit="phone"] .k-phone .sb-sheet { padding-bottom: var(--sb-bot); max-height: calc(100% - var(--sb-top) - 12px); }
#sb-root[data-fit="phone"] .k-phone .sb-detent-full { height: calc(100% - var(--sb-top) - 12px); }
#sb-root[data-fit="phone"] .k-phone .sb-detent-auto { max-height: 85%; }
/* the walk's top line keeps its right slot when it has no Close, so the "?" key never covers the step name */
#sb-root[data-fit="phone"] .sb-walk-right.is-narrow { width: 86px; }

/* the phone on its side (data-turned): the sideways layout fills the window. The phone draws its own island,
   and the safe areas come from the phone, not the drawn 62 and 21 */
#sb-root[data-fit="phone"] .sb-island { display: none; }
#sb-root[data-fit="phone"] .k-turned.is-full .sb-page {
  top: max(env(safe-area-inset-top, 0px), 8px); bottom: var(--sb-bot);
  left: max(env(safe-area-inset-left, 0px), 16px); right: max(env(safe-area-inset-right, 0px), 16px);
}
#sb-root[data-fit="phone"] .k-turned .sb-toast { bottom: calc(var(--sb-bot) + 22px); }
#sb-root[data-fit="phone"] .k-turned .sb-sheet { padding-bottom: var(--sb-bot); }
/* the "?" tab keeps clear of the island, which sits in the middle of a side edge when the phone is on its side */
#sb-root[data-fit="phone"][data-turned] .sb-coach-key { right: env(safe-area-inset-right, 0px); }
/* .sb-card (later in this file) sets display: block, which undid the card's column: put it back */
.sb-card.sb-upright-card { display: flex; }
.sb-upright-sub { margin: 0; max-width: 340px; font-size: 15px; line-height: 20px; color: var(--sb-muted); }

/* the rotate nudge in phone mode: "Turn your phone sideways", in the middle of the top bar (Games left, Undo right) */
#sb-root[data-fit="phone"] .sb-nudge[data-nkey="phone-rotate"] {
  display: flex; position: fixed; z-index: 900; top: calc(var(--sb-top) + 3px); margin-top: 0; max-width: calc(100vw - 120px);
}
#sb-root[data-fit="phone"] .sb-nudge[data-nkey="phone-rotate"] .sb-nudge-key { font-size: 13px; padding-left: 12px; }

/* the coach: a "?" key over the app's top right, left of its Undo and Close keys, and .sb-side as a card */
.sb-coach-key, .sb-coach-scrim, .sb-coach-close { display: none; }
#sb-root[data-fit="phone"] .sb-coach-key {
  display: flex; align-items: center; justify-content: center;
  /* a slim tab on the right edge, halfway down: the one place no screen of the app puts a key or a title */
  position: fixed; z-index: 1000; top: 44%; right: 0; width: 22px; height: 46px;
  border: 0; border-radius: 12px 0 0 12px; padding: 0; margin: 0; cursor: pointer;
  font: 700 15px/1 var(--sb-font); color: #fff; background: rgba(27, 33, 48, 0.72);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(17, 24, 39, 0.22);
  -webkit-tap-highlight-color: transparent;
}
#sb-root[data-fit="phone"] .sb-coach-key:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
.sb-coach-dot {
  position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sb-sys-red); box-shadow: 0 0 0 1.5px #fff;
}
#sb-root[data-fit="phone"] .sb-coach-dot { right: auto; left: -3px; top: -3px; }
#sb-root[data-fit="phone"][data-coach="open"] .sb-coach-scrim {
  display: block; position: fixed; z-index: 1001; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.35);
}
#sb-root[data-fit="phone"] .sb-side { display: none; }
#sb-root[data-fit="phone"][data-coach="open"] .sb-side {
  display: flex; position: fixed; z-index: 1002; left: 12px; right: 12px; top: calc(var(--sb-top) + 8px);
  width: auto; max-width: 480px; margin: 0 auto; gap: 12px;
  max-height: calc(100vh - var(--sb-top) - var(--sb-bot) - 16px);
  max-height: calc(100dvh - var(--sb-top) - var(--sb-bot) - 16px);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px 18px; border-radius: 18px; background: var(--sb-page);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 20px 50px rgba(17, 24, 39, 0.28);
}
#sb-root[data-fit="phone"] .sb-side .sb-h1, #sb-root[data-fit="phone"] .sb-side .sb-lede { display: none; }
#sb-root[data-fit="phone"] .sb-side .sb-brand { min-height: 32px; padding-right: 40px; }
#sb-root[data-fit="phone"] .sb-coach-close {
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; padding: 0; margin: 0; cursor: pointer; color: var(--sb-text); background: var(--sb-fill3);
}
#sb-root[data-fit="phone"] .sb-coach-close:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 2px; }
#sb-root[data-fit="phone"] .sb-side .sb-coach-btn, #sb-root[data-fit="phone"] .sb-side .sb-tools button { min-height: 40px; }

/* ---------- reduced motion: no slides, no springs ---------- */
@media (prefers-reduced-motion: reduce) {
  .sb-in-fwd, .sb-in-back, .sb-bezel.sb-fade-out, .sb-bezel.sb-fade-in,
  .sb-bezel.sb-turn-side, .sb-bezel.sb-turn-up { animation: none; }
  /* the nudges hold still: an outline, no pulse */
  .sb-glow.is-on { animation: none; box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.6); }
  .sb-nudge.is-glow.is-up { animation: none; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(17, 24, 39, 0.14), 0 0 0 2px rgba(37, 99, 235, 0.5); }
  .sb-seg-btn.is-try, .sb-state.is-try { animation: none; box-shadow: 0 0 0 1.5px rgba(37, 99, 235, 0.5); }
  .sb-nudge, .sb-nudge.is-up, .sb-glow, .sb-state { transition: none; }
  .sb-sheet, .sb-popover, .sb-menu, .sb-scrim, .sb-toast, .sb-pop, .sb-pop.is-up, .sb-over-card > .sb-card,
  .sb-walk-line, .sb-walk-steps, .sb-walk-notice, .sb-switch-ui, .sb-switch-ui::after, .sb-glass, .sb-key, .sb-bar > i { transition: none; }
  .sb-spin { animation-duration: 2.4s; }
}
