/* Gear & Grit prototype: dark trail theme. */
:root {
  --bg: #0D1411; --hero: #111B16; --s1: #151F1A; --s2: #1C2822; --line: #2A3832; --line2: #24332C;
  --text: #EEF3EF; --muted: #9DAEA5; --soft: #C2CFC8;
  --accent: #FF7A3D; --accent-ink: #1A0E07; --accent-soft: #FF9A68; --accent-bg: #2B1A10; --accent-line: #7A3B1A;
  --std: #6FD3E0; --std-bg: #10262B; --std-line: #2B5A62;
  --emtb: #B9A3FF; --emtb-bg: #1E1A2E; --emtb-line: #3B3360;
  --ok: #7EE0A1; --watch: #F7C04A; --bad: #FF7A7A;
  --ai: #B8E986; --ai-bg: #1B2614; --ai-line: #3F5A2A;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #070B09; color: var(--text); font-family: var(--body); font-size: 15px; }
a { color: var(--accent); }
a:hover { color: var(--accent-soft); }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
/* iPhones zoom the page when a text field has text under 16px, so fields never go smaller. */
input, select, textarea, .field { font-size: max(16px, 1em) !important; }
button { cursor: pointer; }
[x-cloak] { display: none !important; }

/* Phone shell: full screen on a phone, a centered device-sized frame on a desktop. */
.stage { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; gap: 32px; padding: 24px 16px; }
.phone { width: 100%; max-width: 390px; height: min(844px, calc(100vh - 48px)); background: var(--bg); border-radius: 40px;
  border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; position: relative; }
@media (max-width: 480px) { .stage { padding: 0; } .phone { max-width: none; height: 100vh; height: 100dvh; border-radius: 0; border: none; } }
.side { max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.5; padding-top: 40px; }
.side h2 { font-family: var(--display); color: var(--text); text-transform: uppercase; font-size: 26px; margin: 0 0 8px; }
.side a { display: block; margin: 6px 0; }
@media (max-width: 900px) { .side { display: none; } }

.screen { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.pad { padding: 48px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .xs { font-size: 11px; } .s13 { font-size: 13px; }
.b { font-weight: 700; } .sb { font-weight: 600; }

h1.title { margin: 0; font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; text-transform: uppercase; }
h2.sect { margin: 4px 0 0; font-family: var(--display); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.num { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; }
.num.lg { font-size: 34px; } .num.md { font-size: 24px; }
.disp { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.wordmark { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wordmark span { color: var(--accent); }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; border: 1px solid; }
.badge.pro { background: var(--accent-bg); color: var(--accent-soft); border-color: var(--accent); }
.badge.exp { background: var(--ai-bg); color: var(--ai); border-color: #7FB24A; }
.chip { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; border: 1px solid currentColor; }

.card { background: var(--s1); border-radius: 20px; padding: 16px; }
.card.line { border: 1px solid var(--line); }
.card.tight { padding: 4px 14px; }
.card.ai { background: var(--ai-bg); border: 1px solid var(--ai-line); }
.card.std { background: var(--std-bg); border: 1px solid var(--std-line); }
.card.hot { background: var(--accent-bg); border: 1px solid var(--accent-line); }
.list-row { padding: 11px 0; border-bottom: 1px solid var(--line2); }
.list-row:last-child { border-bottom: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }

.hero { position: relative; overflow: hidden; background: var(--hero); padding: 52px 20px 22px; }
.hero .topo { position: absolute; left: 0; top: 0; pointer-events: none; }
.hero > .in { position: relative; display: flex; flex-direction: column; gap: 14px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--ok); display: inline-block; }

.btn { min-height: 48px; border: none; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700;
  font-size: 15px; display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 0 16px; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent-soft); min-height: 40px; border-radius: 20px; }
.btn.small { min-height: 40px; font-size: 13px; align-self: flex-start; }
.back { align-self: flex-start; border: none; background: rgba(255,255,255,.08); color: var(--text); border-radius: 20px; min-height: 40px;
  padding: 0 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.back:hover { color: var(--text); background: rgba(255,255,255,.14); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 3px; }
.seg button { min-height: 40px; border: none; border-radius: 11px; font-weight: 700; font-size: 13px; background: transparent; color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pill { flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 20px; font-size: 13px; font-weight: 700; border: 1px solid var(--line);
  background: var(--s1); color: var(--text); }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile-btn { min-height: 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--s1); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; }
.tile-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.bike { width: 100%; text-align: left; color: var(--text); background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  display: flex; gap: 14px; align-items: center; }
.bike:hover { border-color: #3A4C43; }
.ring { position: relative; width: 62px; height: 62px; flex-shrink: 0; }
.ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; font-weight: 700; }
.alert { text-decoration: none; color: var(--accent-ink); background: var(--accent); border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.alert:hover { color: var(--accent-ink); }

.bar { height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.bar > div { height: 100%; border-radius: 4px; }
.bar.thin { height: 6px; }

.field { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); color: var(--text); padding: 0 12px; width: 100%; }
textarea.field { padding: 10px 12px; resize: none; }
.lbl { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.check { display: flex; gap: 12px; align-items: center; background: var(--s1); border-radius: 14px; padding: 12px 14px; font-size: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex-shrink: 0; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.toggle-row:last-child { border-bottom: none; }
.toggle-row input { width: 22px; height: 22px; accent-color: var(--accent); }

.pack-item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 0; border: none;
  border-top: 1px solid var(--line2); background: none; color: var(--text); text-align: left; }

.tabbar { flex-shrink: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--hero); border-top: 1px solid var(--line2); padding: 4px 4px 22px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; text-decoration: none;
  font-size: 11px; font-weight: 600; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { color: var(--accent); }

.lb-row { display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 20px; color: #0D1411; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.profile { position: relative; height: 90px; }
.camp { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--accent); }
.camp span { position: absolute; top: 0; left: 3px; font-size: 10px; font-weight: 700; color: var(--accent-soft); }

/* Web dashboard */
.web { min-height: 100vh; background: var(--bg); display: flex; flex-wrap: wrap; }
.web nav { flex: 1 1 220px; max-width: 250px; min-width: 200px; background: var(--hero); border-right: 1px solid var(--line2); padding: 26px 14px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) { .web nav { max-width: none; flex-basis: 100%; border-right: none; border-bottom: 1px solid var(--line2); } }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--soft); text-decoration: none; font-size: 14px; }
.nav:hover { background: var(--s2); color: var(--text); }
.nav.on { background: var(--accent-bg); color: var(--accent-soft); font-weight: 700; }
.web main { flex: 999 1 560px; min-width: 0; padding: 30px 36px 48px; display: flex; flex-direction: column; gap: 22px; max-width: 1240px; }
@media (max-width: 760px) { .web main { padding: 20px 16px 40px; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.bikes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.split > .wide { flex: 999 1 480px; min-width: 0; } .split > .narrow { flex: 1 1 300px; min-width: 0; }
.scroll-x { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { padding: 10px 10px 10px 0; text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.t td { padding: 12px 10px 12px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.mix { display: flex; height: 10px; width: 120px; border-radius: 5px; overflow: hidden; background: var(--line2); }
footer.ver { color: var(--muted); font-size: 11px; text-align: center; padding: 8px; }

/* Settings, photos, toast and confirm sheet */
.icon-btn { width: 40px; height: 40px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: var(--text); text-decoration: none; overflow: hidden; flex-shrink: 0; border: none; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.14); }
.icon-btn img { width: 100%; height: 100%; object-fit: cover; }
.photo-hero { position: relative; height: 220px; background: var(--hero); flex-shrink: 0; }
.photo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--hero)); pointer-events: none; }
.photo-hero .bar-top { position: absolute; top: 44px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 2; }
.photo-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; background: rgba(13,20,17,.72); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,.14); text-decoration: none; }
.photo-btn:hover { color: var(--text); background: rgba(13,20,17,.9); }
.photo-btn input, .file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-label { position: relative; cursor: pointer; }
.thumb { width: 64px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--hero); }
.set-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 0; border-bottom: 1px solid var(--line2); text-decoration: none; color: var(--text); width: 100%; background: none; border-left: none; border-right: none; border-top: none; text-align: left; }
.set-row:last-child { border-bottom: none; }
.set-row:hover { color: var(--text); }
.set-row .chev { color: var(--muted); margin-left: auto; padding-left: 8px; }
.set-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 13px; }
.avatar-lg { width: 96px; height: 96px; border-radius: 48px; display: grid; place-items: center; font-family: var(--display); font-size: 36px; font-weight: 700; background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 96px; z-index: 20; background: #EEF3EF; color: #0D1411; border-radius: 14px; padding: 13px 16px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.sheet-bg { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; }
.sheet { width: 100%; background: var(--s1); border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 22px 18px 30px; display: flex; flex-direction: column; gap: 12px; }
.btn.danger { background: var(--bad); color: #2A0A0A; }
.btn.plain { background: var(--s2); color: var(--text); }
.oauth { background: #F4F6F5; color: #16201B; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.oauth .url { font-size: 12px; color: #55615B; background: #E3E8E5; border-radius: 8px; padding: 6px 10px; }
.oauth li { margin: 4px 0; }
.route-map { position: relative; height: 200px; border-radius: 18px; overflow: hidden; background: var(--hero); border: 1px solid var(--line2); }

/* Home: today's pick and the switchboard */
.pick-card { padding: 0; overflow: hidden; border: 1px solid var(--line); }
.pick-card.warn { border-color: #5A2A2A; }
.pick-img { display: block; height: 170px; background: var(--hero); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.switchboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sw { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sw:hover { color: var(--text); border-color: var(--c); }
.sw-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--b); color: var(--c); margin-bottom: 4px; }
/* Garage card: photo, details, small health ring */
.bike-pic { width: 92px; height: 62px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--hero); }
.bike { padding: 12px; gap: 12px; }
.ring.sm { width: 44px; height: 44px; }
.ring.sm span { font-size: 15px; }
.tab { font-size: 10.5px; }

/* Mark for anything written by the model: a small sparkle before the label. */
.gen::before, .card.ai > .kicker:first-child::before { content: ''; display: inline-block; width: 1.05em; height: 1.05em; margin-right: .4em; vertical-align: -.15em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2l1.9 5.6a3 3 0 0 0 1.9 1.9L19.4 11.4l-5.6 1.9a3 3 0 0 0-1.9 1.9L10 20.8l-1.9-5.6a3 3 0 0 0-1.9-1.9L.6 11.4l5.6-1.9a3 3 0 0 0 1.9-1.9z'/%3E%3Cpath d='M19 1l.8 2.2a1.5 1.5 0 0 0 1 1L23 5l-2.2.8a1.5 1.5 0 0 0-1 1L19 9l-.8-2.2a1.5 1.5 0 0 0-1-1L15 5l2.2-.8a1.5 1.5 0 0 0 1-1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2l1.9 5.6a3 3 0 0 0 1.9 1.9L19.4 11.4l-5.6 1.9a3 3 0 0 0-1.9 1.9L10 20.8l-1.9-5.6a3 3 0 0 0-1.9-1.9L.6 11.4l5.6-1.9a3 3 0 0 0 1.9-1.9z'/%3E%3Cpath d='M19 1l.8 2.2a1.5 1.5 0 0 0 1 1L23 5l-2.2.8a1.5 1.5 0 0 0-1 1L19 9l-.8-2.2a1.5 1.5 0 0 0-1-1L15 5l2.2-.8a1.5 1.5 0 0 0 1-1z'/%3E%3C/svg%3E") center / contain no-repeat; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
label.btn { display: inline-flex; align-items: center; justify-content: center; position: relative; }
label.btn:focus-within { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

/* Garage card: small health ring in the lower right, labelled */
.health { display: flex; flex-direction: column; align-items: center; gap: 3px; align-self: flex-end; flex-shrink: 0; }
.ring.xs { width: 34px; height: 34px; }
.ring.xs span { font-size: 12px; }
/* The small bike card reused at the top of the other bike pages */
.bike.mini { display: flex; align-items: center; padding: 10px; gap: 12px; border-radius: 16px; }
.bike.mini .bike-pic { width: 72px; height: 48px; border-radius: 10px; }
.photo-hero.short { height: 150px; }
.stats-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,.02); }
.stats-link .grid3 > span { display: flex; flex-direction: column; }
/* Generated advice and wizards: only the title shows until it is tapped */
.fold > .kicker:first-child { display: flex; align-items: center; min-height: 28px; cursor: pointer; }
.fold > .kicker:first-child::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.fold.open > .kicker:first-child::after { transform: rotate(-135deg); }
.fold:not(.open) > :not(:first-child) { display: none !important; }
.fold > .kicker:first-child:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
.health > .xs { font-size: 10px; letter-spacing: .02em; }

/* Hold and drag to reorder the garage */
a.bike[data-bike] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .16s ease, box-shadow .16s ease; }
a.bike.dragging { transition: none; position: relative; z-index: 5; border-color: var(--accent); box-shadow: 0 14px 30px rgba(0,0,0,.5); cursor: grabbing; }

/* Bike page panels: one open at a time, so the open one gets the screen */
.panel-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 16px; background: none; border: none; color: var(--text); text-align: left; }
.panel-h .chev { width: 8px; height: 8px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg); transition: transform .15s; flex-shrink: 0; margin-top: -4px; }
.panel.open .panel-h .chev { transform: rotate(-135deg); margin-top: 4px; }
.panel-b { display: none; padding: 4px 16px 16px; }
.panel.open .panel-b { display: block; }
.panel.open .panel-b.stack { display: flex; }
a.bike.mini { text-decoration: none; }

/* Kit selector, rider kit and supplies */
a.card.kind { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.kind-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--s2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kind-ico.sm { width: 38px; height: 38px; border-radius: 10px; }
.link-btn { background: none; border: 1px solid var(--line); color: var(--accent-soft); border-radius: 16px; min-height: 34px; padding: 0 12px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
[data-supply] .panel-h { padding: 10px 16px; }

/* Delegated bikes, plan-ordered menu */
a.bike.care { border-style: dashed; }
.tab-ico { display: flex; }
.link-btn:disabled { opacity: .3; }
[data-menu-order] .link-btn { min-width: 40px; margin-left: 6px; }

/* Hold and drag to reorder the bike page panels */
.panel[data-panel] { transition: transform .16s ease, box-shadow .16s ease; }
.panel[data-panel] .panel-h { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.panel.dragging { transition: none; position: relative; z-index: 5; outline: 1px solid var(--accent); box-shadow: 0 14px 30px rgba(0,0,0,.5); cursor: grabbing; }

/* Hold and drag to reorder the kinds of kit */
[data-screen="kits"] a.kind { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .16s ease, box-shadow .16s ease; }
a.kind.dragging { transition: none; position: relative; z-index: 5; outline: 1px solid var(--accent); box-shadow: 0 14px 30px rgba(0,0,0,.5); cursor: grabbing; }

/* Garage header: four numbers in one row */
.kpis4 { gap: 8px; }
.kpis4 .num.lg { font-size: 30px; white-space: nowrap; }
.kpis4 .small { font-size: 11.5px; white-space: nowrap; }

/* Module heading cards: the garage hero with artwork and numbers per module */
.hero-art { position: absolute; left: 0; top: 0; pointer-events: none; display: block; }
[data-hero] .title { margin: 0; }

/* Sign-in */
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; font-size: 15px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 4px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Swiping between menu pages: the new page slides in from the side it came from. */
@keyframes slide-left { from { transform: translateX(28%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes slide-right { from { transform: translateX(-28%); opacity: .4; } to { transform: none; opacity: 1; } }
.screen.slide-left > section { animation: slide-left .24s ease-out; }
.screen.slide-right > section { animation: slide-right .24s ease-out; }
@media (prefers-reduced-motion: reduce) { .screen.slide-left > section, .screen.slide-right > section { animation: none; } }

/* Sign-in methods not switched on yet, and the mark on modules that still run on sample data. */
.auth-btn:disabled { opacity: .5; cursor: default; filter: none; }
.auth-btn .soon { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 6px; padding: 2px 6px; margin-left: 4px; }
.chip.preview { background: transparent; color: var(--watch); cursor: pointer; }

/* Embedded in the real app (?embed=1): fill the frame and leave the menu, plan badge and settings to the real app. */
.embed .stage { padding: 0; gap: 0; }
.embed .phone { max-width: none; height: 100vh; height: 100dvh; border-radius: 0; border: none; box-shadow: none; }
/* The real app's bar sits above, so the heading card can start higher and sit tighter. */
.embed .hero { padding: 22px 20px 16px; }
.embed .hero > .in { gap: 10px; }
.embed .side, .embed .tabbar { display: none !important; }
.embed .hero .chip.preview, .embed .hero .badge, .embed .hero a.icon-btn[href="#settings"] { display: none; }

/* No scroll bar lines: a phone app does not show them, and neither should the previews inside device frames. Scrolling still works. */
.screen, .scroll-x, .pills { scrollbar-width: none; }
.screen::-webkit-scrollbar, .scroll-x::-webkit-scrollbar, .pills::-webkit-scrollbar { display: none; }
.framed, .framed * { scrollbar-width: none; }
.framed ::-webkit-scrollbar, .framed::-webkit-scrollbar { display: none; }
