/* Phone app mode — loaded ONLY by the app copies (2-performance-app/, coach-app/).
   Everything here is scoped to html.app (set by appmode.js on phones ≤860px), so laptops
   see the normal layout. Goal: each screen fits without scrolling; detail opens in sheets. */

:root {
  --app-bg: var(--a-bg, var(--bg, #0b0b0b));
  --app-surface: var(--a-surface, var(--surface, #1a1a19));
  --app-text: var(--a-text, var(--text, #ece8e1));
  --app-muted: var(--a-muted, var(--muted, #9a958c));
  --app-line: var(--a-line, var(--line, #2e2c2a));
  --app-accent: var(--a-highlight, var(--tan, #b07a52));
  --app-accent-ink: var(--a-accent-ink, var(--tan-ink, #0b0b0b));
  --app-radius: var(--a-radius, 10px);
  --app-display: var(--a-display, var(--display, inherit));
  --app-body: var(--a-body, var(--sans, inherit));
}
.a-app-next { display: none; }

/* ── Chrome ───────────────────────────────────────────────────────────────── */
html.app .proto-bar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; padding: 6px 12px; }
html.app .header-in { height: 56px; }
html.app .marquee, html.app body > footer, html.app .footer { display: none; }
html.app-sheet-open, html.app-sheet-open body { overflow: hidden; }

/* ── Sheets ───────────────────────────────────────────────────────────────── */
.app-sheet { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: var(--app-bg); color: var(--app-text);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2, .7, .2, 1); font-family: var(--app-body); }
.app-sheet.is-in { transform: none; }
.app-sheet-bar { flex: none; display: flex; align-items: center; gap: 6px; min-height: 52px; padding: env(safe-area-inset-top) 8px 0; border-bottom: 1px solid var(--app-line); background: var(--app-bg); }
.app-back { flex: none; min-height: 44px; min-width: 72px; padding: 0 8px; border: 0; background: none; color: var(--app-accent); font: 600 1rem/1 var(--app-body); text-align: left; cursor: pointer; }
.app-back span { font-size: 1.4rem; vertical-align: -2px; margin-right: 2px; }
.app-back:focus-visible { outline: 2px solid var(--app-accent); outline-offset: -2px; }
.app-sheet-title { flex: 1; min-width: 0; margin: 0; padding-right: 80px; text-align: center; font: 700 1rem/1.2 var(--app-body) !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
.app-sheet [hidden] { display: none !important; }
/* Page sections inside sheets: drop page spacing, keep their own styling */
.app-sheet-body > section, .app-sheet-body > footer, .app-sheet-body > div { padding-block: 0 !important; margin-block: 0 !important; min-height: 0 !important; background: none !important; border: 0 !important; }
.app-sheet-body .wrap, .app-sheet-body .book-in { width: auto !important; max-width: none !important; padding-inline: 0 !important; margin-inline: 0 !important; }
.app-sheet-body .reveal { opacity: 1 !important; transform: none !important; }
.app-sheet-body h2 { font-size: clamp(1.5rem, 7vw, 2rem) !important; margin-bottom: 8px; }
.app-sheet-body .sec-head { margin-bottom: 14px !important; }
.app-sheet .a-card { padding: 16px; }
.app-sheet.is-book .sec-head, .app-sheet.is-book .book-in > header, .app-sheet.is-book .book-head { display: none; }
@media (prefers-reduced-motion: reduce) { .app-sheet { transition: none; } }

/* Segmented switch (sheets with several parts) */
.app-seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--app-line); border-radius: calc(var(--app-radius) + 4px); background: var(--app-surface); overflow-x: auto; scrollbar-width: none; }
.app-seg::-webkit-scrollbar { display: none; }
.app-seg button { flex: 1 0 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: var(--app-radius); background: none; color: var(--app-muted); font: 600 .84rem/1 var(--app-body); white-space: nowrap; cursor: pointer; }
.app-seg button[aria-selected="true"] { background: var(--app-accent); color: var(--app-accent-ink); }

/* ── Pagers (swipe one card at a time) ────────────────────────────────────── */
html.app .app-pager { display: flex !important; flex-wrap: nowrap !important; grid-template-columns: none !important; gap: 10px !important; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 16px 4px !important; margin-inline: -16px !important; scroll-padding-inline: 16px; list-style: none; }
html.app .app-pager::-webkit-scrollbar { display: none; }
html.app .app-pager > * { flex: 0 0 calc(100% - 30px) !important; width: auto !important; max-width: none !important; scroll-snap-align: start; margin: 0 !important; }
.app-dots { display: flex; justify-content: center; align-items: center; gap: 2px; margin: 8px 0 0; min-height: 28px; }
.app-dots[hidden] { display: none; }
.app-dots button:not(.app-next) { width: 24px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.app-dots button:not(.app-next)::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--app-line); transition: width .2s, background .2s; }
.app-dots button[aria-current]::before { width: 18px; background: var(--app-accent); }
.app-next { margin-left: 10px; min-height: 32px; padding: 0 12px; border: 1px solid var(--app-line); border-radius: 999px; background: none; color: var(--app-text); font: 600 .8rem/1 var(--app-body); cursor: pointer; }

/* ── Tiles ────────────────────────────────────────────────────────────────── */
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-content: center; align-items: center;
  min-height: 70px; padding: 10px 12px; border: 1px solid var(--app-line); border-radius: var(--app-radius); background: var(--app-surface); color: var(--app-text);
  text-align: left; text-decoration: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-tile:active { transform: scale(.98); }
.app-tile:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.app-tile-ico { grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: calc(var(--app-radius) + 2px); background: color-mix(in srgb, var(--app-accent) 16%, transparent); color: var(--app-accent); }
.app-tile-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-tile strong { font: 700 .92rem/1.2 var(--app-body); letter-spacing: 0; text-transform: none; align-self: end; }
.app-tile small { color: var(--app-muted); font-size: .74rem; line-height: 1.25; align-self: start; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-tile.is-wide { grid-column: 1 / -1; }
.app-tile.is-primary { background: var(--app-accent); border-color: var(--app-accent); color: var(--app-accent-ink); min-height: 62px; }
.app-tile.is-primary small { color: inherit; opacity: .8; }
.app-tile.is-primary .app-tile-ico { background: rgb(0 0 0 / .12); color: inherit; }
.app-link { display: block; margin: 12px 0 0; padding: 8px 0; text-align: center; color: var(--app-muted); font-size: .86rem; text-decoration: none; }
.app-link strong { color: var(--app-accent); }
.app-info { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; margin: 0 0 8px; border: 0; background: none; color: var(--app-muted); font: 500 .82rem var(--app-body); cursor: pointer; }
.app-info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ── Client site: home ────────────────────────────────────────────────────── */
html.app .hero { min-height: 0 !important; align-content: start; }
html.app .hero-in { padding: 22px 0 10px !important; }
html.app .hero .actions, html.app .hero .stats, html.app .hero .hero-cta, html.app .hero .hero-badges { display: none !important; }
html.app .hero h1 { font-size: clamp(2.4rem, 12.5vw, 3.4rem) !important; line-height: .92; margin-bottom: 6px; }
html.app .hero .lead { font-size: .95rem; margin: 6px 0 0; max-width: 34ch; }
html.app .hero .kicker { font-size: .62rem; margin-bottom: 10px; }
.app-home { padding: 12px var(--gut, 16px) 4px; }
.app-q { margin: 0 0 10px !important; font: 700 .68rem/1.2 var(--app-body) !important; letter-spacing: .16em !important; text-transform: uppercase; color: var(--app-muted); }

/* ── Client site: inner pages ─────────────────────────────────────────────── */
html.app .a-hero { padding-top: 14px !important; padding-bottom: 4px !important; }
html.app .a-hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem) !important; margin: 0; }
html.app .a-hero .a-lead, html.app .a-band { display: none; }
html.app .a-section { padding-top: 8px !important; padding-bottom: 12px !important; }
html.app .a-choose { margin: 0 0 8px; font-size: .86rem; }
html.app .a-chips, html.app .a-billing { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; margin-bottom: 10px; }
html.app .a-chips::-webkit-scrollbar { display: none; }
html.app .a-chip { flex: none; }
/* programmes / membership cards */
html.app .a-prog .a-muted { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.app .a-tier .a-feats li:nth-child(n+4) { display: none; }
html.app .a-tier { padding: 18px; }
html.app .a-center { margin-top: 6px; font-size: .78rem; }
/* kitchen */
html.app .a-tabs { margin-bottom: 10px; }
html.app .a-tabs button { font-size: .72rem; padding-inline: 4px; }
.a-recipe-page .a-h4 { margin: 0 0 6px; }
.a-rrows { list-style: none; margin: 0; padding: 0; }
.a-rrows li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--app-line); }
.a-rrow { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 10px 0; border: 0; background: none; color: var(--app-text); text-align: left; font: inherit; cursor: pointer; }
.a-rrow strong { font-size: .95rem; line-height: 1.25; }
.a-rrow small { color: var(--app-muted); font-size: .78rem; }
.a-rrow-add { flex: none; width: 40px; height: 40px; padding: 0 !important; font-size: 1.2rem !important; }
.a-daypick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
.a-daypick button { display: grid; justify-items: center; gap: 4px; min-height: 48px; padding: 6px 0; border: 1px solid var(--app-line); border-radius: var(--app-radius); background: var(--app-surface); color: var(--app-text); font: 700 .74rem/1 var(--app-body); cursor: pointer; }
.a-daypick button[aria-pressed="true"] { background: var(--app-accent); border-color: var(--app-accent); color: var(--app-accent-ink); }
.a-daypick i { width: 5px; height: 5px; border-radius: 50%; background: var(--app-line); }
.a-daypick i.is-full { background: currentColor; }
.a-plan-one { padding: 14px !important; }
.a-plan-tools { display: flex; align-items: end; gap: 8px; margin: 10px 0; }
.a-plan-preset { flex: 1; display: grid; gap: 4px; font-size: .72rem; color: var(--app-muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.a-plan-preset select { font: 16px var(--app-body); padding: 8px; border: 1px solid var(--app-line); border-radius: var(--app-radius); background: var(--app-bg); color: var(--app-text); }
html.app .a-shop-head .a-stat:nth-child(n+2), html.app .a-details, html.app .a-shop-head + .a-figure figcaption .a-muted { display: none; }
html.app .a-shop-head { margin-bottom: 8px; }
html.app .a-shoplist { max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; border-block: 1px solid var(--app-line); }
html.app .a-sl-links { display: none; }
html.app .a-note { font-size: .74rem; }
/* client area */
html.app .a-portal-wrap { padding-top: 10px !important; }
html.app .a-portal-banner { margin-bottom: 10px; padding: 6px 10px; font-size: .74rem; }
html.app .a-portal-hello { margin-bottom: 10px; }
html.app .a-portal-h { font-size: clamp(1.6rem, 8vw, 2.2rem) !important; }
html.app .a-portal-hello .a-muted { font-size: .82rem; margin: 0; }
html.app .a-progress-ring { width: 64px; height: 64px; }
html.app .a-app-next { display: block; margin-bottom: 10px; padding: 16px; border-color: var(--app-accent); }
html.app .a-app-next h3 { margin: 0 0 4px; font-size: 1.5rem; }
html.app .a-app-next .a-muted { font-size: .82rem; margin: 0 0 12px; }
html.app [data-app-dash] { display: block !important; }

/* ── Coach app copy ───────────────────────────────────────────────────────── */
html.app #view { padding-top: 12px; }
.ap-hello .eyebrow { margin-bottom: 4px; }
.ap-hello h2 { font-size: 1.9rem; margin: 0 0 10px; }
.ap-next { margin-bottom: 10px; border-left: 3px solid var(--k, var(--app-accent)); }
.ap-next h3 { font-size: 1.7rem; margin: 6px 0 2px; }
.ap-next .muted { margin: 0; font-size: .88rem; }
.ap-next .dlg-actions { margin-top: 12px; }
html.app #view .kpis.section-sm { display: none; }
html.app #view > .kpis { grid-template-columns: 1fr 1fr; }
html.app #view > .kpis .kpi:nth-child(n+3) { display: none; }
html.app #view > .kpis + .grid { margin-top: 10px; }
html.app .rota-bar { margin-bottom: 10px; }
html.app .rota-bar h2 { font-size: 1.05rem; flex-basis: 100%; }
html.app .cal-wrap + [data-app-dash], html.app .grid + [data-app-dash] { margin-top: 10px; }
html.app .profile-h { margin-bottom: 12px; gap: 10px 12px; }
html.app .profile-h .avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
html.app .profile-h h2 { font-size: 1.7rem; }
html.app #view .grid[data-app-dash] { display: block; }
html.app .back { margin-bottom: 4px; padding: 2px 0; }
/* Plan builder: one exercise open at a time; client info, volume and logs in a sheet */
html.app .pb .back, html.app .pb .pb-side, html.app .pb [data-tpl-save] { display: none; }
html.app .pb-head { gap: 8px; margin-bottom: 8px; }
html.app input.pb-name { font-size: 1.3rem; }
html.app .pb-head .eyebrow { display: none; }
html.app .pb-wk { width: calc(50% - 46px); }
html.app .pb-wk select { padding: 8px; }
html.app .pb-day { padding: 12px; }
html.app .pb-day-h { margin-bottom: 8px; }
html.app .pb-day-h .btn { min-height: 34px; }
html.app .pb-items { gap: 6px; }
html.app .pb-it.is-ss { margin-bottom: -6px; }
html.app .pb-it:not(.is-open) { padding: 8px 10px; }
html.app .pb-it:not(.is-open) :is(.pb-sets, .pb-it-f, .pb-tools, .pb-move, .pb-it-t .st) { display: none; }
html.app .pb-it.is-open { border-color: var(--app-accent); }
html.app .pb-it.is-open .pb-thumb { display: grid !important; }
html.app .pb-ex { width: 100%; }
html.app .pb-ex::after { content: "›"; float: right; color: var(--app-muted); transition: transform .2s; }
html.app .pb-ex[aria-expanded="true"]::after { transform: rotate(90deg); }
html.app .pb-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
html.app .pb-tools .chip { flex: none; }
html.app .pb-bar { margin-top: 10px; padding: 8px 0; }
html.app .pb-bar-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html.app .pb-bar-in .btn { padding: 0 6px; font-size: .7rem; }
html.app .app-sheet .pb-side { display: grid; gap: 12px; }

/* ── Fit pass 2 ───────────────────────────────────────────────────────────── */
html.app .a-hero .a-eyebrow { display: none; }
html.app .a-hero h1 { font-size: clamp(1.5rem, 7vw, 1.9rem) !important; }
html.app .a-portal-banner { display: none; }
html.app .a-portal-hello .a-eyebrow { display: none; }
html.app .a-progress-ring { width: 54px; height: 54px; }
html.app .a-app-next { padding: 14px; }
html.app .a-app-next h3 { font-size: 1.35rem; }
html.app .a-app-next .a-muted { margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
html.app .a-prog .a-muted { -webkit-line-clamp: 2; }
html.app .a-prog h3 { font-size: 1.5rem; }
html.app .a-tier > .a-muted { display: none; }
html.app .a-tier .a-tier-price { margin: 4px 0 8px; }
html.app .a-bars .a-bar-row { padding-block: 4px !important; min-height: 0 !important; }
html.app .a-bars .a-bar-label small, html.app .a-bars .a-bar-val em { display: none; }
html.app .a-figure { margin: 6px 0; }
html.app .a-figure figcaption { font-size: .8rem; margin-bottom: 4px; }
html.app .a-stat { padding: 10px 12px !important; }
html.app .a-stat-big { font-size: 1.7rem !important; }
html.app .a-check { font-size: .8rem; margin: 6px 0; }
html.app .a-shoplist { max-height: 26vh; }
html.app .a-list-head { margin-top: 6px; }
html.app .a-plan-slot select { padding-block: 8px; }
html.app .a-plan-one { padding: 10px 12px !important; }
html.app .a-plan-one .a-plan-dayname { display: none; }
html.app .ob-map { display: none; }
html.app .ob-lead { font-size: 1rem; }
html.app .home .app-tile, .app-home .app-tile { min-height: 64px; }
/* coach */
.ap-compact .app-tiles { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.ap-compact .app-tile { min-height: 46px; padding: 6px 10px; grid-template-rows: auto; }
.ap-compact .app-tile small { display: none; }
.ap-compact .app-tile strong { align-self: center; font-size: .82rem; }
.ap-compact .app-tile-ico { grid-row: auto; width: 28px; height: 28px; }
html.app .cal-wrap .agenda { padding: 12px; }
html.app #view > [data-app-dash].ap-compact { margin: 0 0 10px; }
html.app .msg summary .row-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.app .msg summary { padding: 9px 0; }
html.app .c-row { padding: 8px 12px; }
html.app #view .c-tools + .card + .fine { display: none; }
html.app .lib-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--app-line); border-radius: var(--app-radius); overflow: hidden; }
html.app .lib-card { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; border: 0; border-bottom: 1px solid var(--app-line); border-radius: 0; padding: 8px 10px; align-items: center; }
html.app .lib-thumb { grid-row: 1 / span 2; aspect-ratio: auto; height: 38px; margin: 0; }
html.app .lib-thumb small { display: none; }
html.app #view .sub > .note, html.app .lib-bar .fine { font-size: .74rem; }
html.app .pb-head { flex-wrap: nowrap; align-items: center; }
html.app .pb-head .grow { flex: 1 1 100%; }
html.app .pb-head { flex-wrap: wrap; }
html.app .pb-wk { font-size: 0; width: auto; flex: 1 1 0; }
html.app .pb-wk select { font-size: 15px; padding: 6px 8px; }
html.app .pb-day-h { flex-wrap: nowrap; }
html.app input.pb-dname { padding: 8px 10px; min-width: 0; }
html.app .pb-day-h .btn { padding: 0 8px; font-size: .64rem; }
html.app .pb-day-h .fine { display: none; }
html.app .a-plan-one .a-plan-slot { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 6px; }
html.app .a-plan-one .a-plan-slot span { font-size: .66rem; }
html.app .a-plan-one .a-plan-total { margin: 8px 0 0; font-size: .82rem; }
html.app .a-plan-tools { margin: 8px 0; }
html.app .a-bars .a-bar-row { padding-block: 2px !important; }
html.app .a-shoplist { max-height: 22vh; }
html.app .a-shoplist li { padding-block: 6px !important; }
html.app .a-tabpanel > .a-note { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; padding-block: 6px; }
html.app #view > .kpis .kpi { padding: 12px; }
html.app #view > .kpis .kpi-v { font-size: 1.8rem; }
.app-sheet-body > .app-seg { position: relative; z-index: 2; margin-bottom: 22px; }
.app-sheet .kicker, .app-sheet .eyebrow:not(.app-keep), .app-sheet .sec-head .kicker { display: none !important; }
.app-sheet-body img { max-height: 170px; width: 100%; object-fit: cover; }
.app-sheet-body :is(.split, .band, .about):not([hidden]) { display: block !important; }
.app-sheet-body .split > * { padding: 0 !important; min-height: 0 !important; }
.app-sheet-body .split > *, .app-sheet-body .about > * { margin-bottom: 14px; }
.app-sheet-body > .app-seg ~ section, .app-sheet-body > .app-seg ~ footer { padding-top: 10px !important; }
.app-sheet-body .sec-head, .app-sheet-body .method .wrap > header { margin-top: 0 !important; }

/* ── Quick plan editing (app copy) ────────────────────────────────────────── */
.a-upd { margin-bottom: 12px; border-color: var(--app-accent); padding: 14px 16px; }
.a-upd .a-eyebrow { margin-bottom: 6px; }
.a-upd-note { margin: 0 0 6px; font-weight: 600; }
.a-upd-list { margin: 0 0 6px; padding-left: 18px; font-size: .86rem; color: var(--app-muted); }
.a-upd-list li { margin: 2px 0; }
.chg { margin: 6px 0 14px; padding-left: 18px; }
.chg li { margin: 4px 0; }
.sp-h { font-size: 1.3rem !important; margin: 0 0 10px; }
.sp-day { font-size: .95rem; margin: 14px 0 6px; }
.prog-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--app-line); }
.prog-list label, .prog-wk { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--app-line); cursor: pointer; }
.prog-list input, .prog-wk input { width: 20px; height: 20px; accent-color: var(--app-accent); flex: none; }
.prog-list span { display: grid; gap: 1px; }
.prog-list small { color: var(--app-muted); font-size: .82rem; }
.prog-list b { color: var(--app-text); }
.prog-wk { border: 0; margin-top: 8px; font-size: .9rem; }
.sp-head { display: grid; gap: 8px; margin-bottom: 10px; }
.sp-name { all: unset; cursor: pointer; font: 800 1.35rem/1.1 var(--app-display); font-stretch: 70%; text-transform: uppercase; }
.sp-name span { font-size: .9rem; color: var(--app-muted); margin-left: 4px; }
.sp-name:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.sp-meta { display: flex; align-items: center; gap: 8px; }
.sp-meta select { width: auto; flex: 1; padding: 8px 10px; }
.sp-i { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--app-line); background: var(--app-surface); color: var(--app-text); font: 700 1rem/1 Georgia, serif; font-style: italic; cursor: pointer; }
.sp-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.sp-it { border: 1px solid var(--app-line); border-radius: var(--app-radius); background: var(--app-surface); padding: 10px 10px 8px; }
.sp-it.is-ss { box-shadow: inset 3px 0 0 var(--app-accent); }
.sp-top { display: flex; align-items: center; gap: 10px; }
.sp-ex { all: unset; cursor: pointer; flex: 1; min-width: 0; display: grid; gap: 1px; }
.sp-ex strong { font-size: 1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ex small { font-size: .74rem; color: var(--app-muted); }
.sp-ex:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.sp-care { color: var(--warn, #d9a441); font-weight: 700; }
.sp-dots { flex: none; width: 40px; height: 36px; border: 1px solid var(--app-line); border-radius: 8px; background: none; color: var(--app-text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.sp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.sp-step > span { display: block; font: 700 .58rem/1.2 var(--app-body); letter-spacing: .12em; text-transform: uppercase; color: var(--app-muted); margin: 0 0 3px 2px; }
.sp-step > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; border: 1px solid var(--app-line); border-radius: 8px; background: var(--app-bg); overflow: hidden; }
.sp-step button { height: 38px; border: 0; background: none; color: var(--app-accent); font: 700 1.25rem/1 var(--app-body); cursor: pointer; }
.sp-step button:active { background: color-mix(in srgb, var(--app-accent) 18%, transparent); }
.sp-step output { text-align: center; font: 700 .9rem/1 var(--app-body); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-note { margin: 6px 0 0; font-size: .78rem; color: var(--app-muted); font-style: italic; }
.sp-add { width: 100%; }
.sp-bar { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 30; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 10px; padding: 8px 0; background: rgb(11 11 11 / .92); border-top: 1px solid var(--app-line); }
.sp-swaps, .sp-actions { display: grid; gap: 8px; }
.sp-swaps .btn, .sp-actions .btn { width: 100%; justify-content: flex-start; text-transform: none; letter-spacing: 0; font: 600 .95rem/1.2 var(--app-body); }
.sp-bad { color: var(--bad, #e0675a) !important; }
.sp-sets { margin-top: 12px; }
.sp-sets summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
