/* Family Jobs. One design system: tokens on :root, components below.
   --accent follows each member's chosen colour. */
:root {
  --accent: #2289e9;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, #fff);
  --bg: #f4f7fb; --card: #ffffff; --line: #e1e4e8; --ink: #1a1a1a; --sub: #8a99ae; --text: #334155;
  --green: #16a34a; --amber: #d97706; --amber-soft: #fef3c7; --red: #dc2626; --gold: #eab308; --sk: #e5eaf1;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.s { width: 16px; height: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shell ---------- */
.app { min-height: 100%; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; background: var(--accent); color: #fff; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); min-height: 56px; }
.top h1 { margin: 0; font-size: 19px; font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back { background: none; border: 0; color: #fff; width: 26px; height: 32px; margin: 0 -6px 0 -6px; display: grid; place-items: center; cursor: pointer; }
.icon-btn { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.me-btn { width: 38px; height: 38px; border-radius: 50%; padding: 0; border: 2px solid rgba(255,255,255,.75); background: none; cursor: pointer; flex-shrink: 0; }
.me-btn .avw, .me-btn .av { width: 100%; height: 100%; }
.tsearch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.2); border-radius: 10px; padding: 0 4px 0 10px; height: 38px; }
.tsearch input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; outline: none; }
.tsearch input::placeholder { color: rgba(255,255,255,.8); }
.tsearch input::-webkit-search-cancel-button { display: none; }
.tsearch button { background: none; border: 0; color: #fff; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; }
.alert { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 9; display: flex; align-items: center; gap: 10px; width: 100%; border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, #fff); background: color-mix(in srgb, var(--accent) 12%, #fff); font-size: 14.5px; font-weight: 800;
  padding: 9px max(14px, env(safe-area-inset-right)) 9px max(16px, env(safe-area-inset-left)); text-align: left; cursor: pointer; }
.alert span:last-child { margin-left: auto; background: var(--accent); color: #fff; border-radius: 8px; padding: 5px 12px; font-size: 13px; }
.body { flex: 1; padding: 14px max(14px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); width: 100%; max-width: 760px; margin: 0 auto; }
.boot { text-align: center; color: var(--sub); padding: 60px 0; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding: 6px max(4px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); }
.tabs button { flex: 1; background: none; border: 0; color: var(--sub); font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; cursor: pointer; position: relative; }
.tabs button.sel { color: var(--accent); }
.badge-n { position: absolute; top: 0; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* ---------- avatars ---------- */
.avw { position: relative; display: inline-flex; flex-shrink: 0; }
.av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: block; background: var(--c, var(--accent)); }
.av img { width: 100%; height: 100%; display: block; transform: translateY(6%) scale(1.08); }
.av.sm { width: 22px; height: 22px; } .av.lg { width: 64px; height: 64px; } .av.xl { width: 92px; height: 92px; border: 3px solid rgba(255,255,255,.75); }
.crown { position: absolute; top: -9px; left: 50%; width: 22px; height: 15px; transform: translateX(-50%) rotate(-12deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.w-sm .crown { width: 13px; height: 9px; top: -6px; } .w-lg .crown { width: 30px; height: 20px; top: -13px; } .w-xl .crown { width: 36px; height: 24px; top: -16px; }
.bolt { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; background: #111827; display: grid; place-items: center; border: 2px solid var(--card); }
.bolt svg { width: 10px; height: 10px; } .w-sm .bolt { display: none; } .w-xl .bolt { width: 24px; height: 24px; }

/* ---------- jobs ---------- */
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.seg button { flex: 1; border: 0; background: none; color: var(--text); font-weight: 700; font-size: 13.5px; padding: 8px; border-radius: 8px; cursor: pointer; }
.seg button.sel { background: var(--accent); color: #fff; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex-shrink: 0; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 13px; font-weight: 700; border-radius: 20px; padding: 7px 12px; cursor: pointer; }
.chips button.sel { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.group { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); margin: 16px 2px 8px; display: flex; gap: 6px; align-items: center; }
.group .n { background: var(--line); color: var(--text); border-radius: 6px; padding: 0 6px; font-size: 11px; }
.group.over { color: var(--red); }
button.group { background: none; border: 0; cursor: pointer; padding: 0; width: 100%; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; margin-bottom: 9px; display: flex; align-items: center; gap: 12px; cursor: pointer; width: 100%; text-align: left;
  transition: transform .1s, opacity .3s, max-height .3s, margin .3s, padding .3s; max-height: 140px; }
.tile:active { transform: scale(.985); }
.tile.out { opacity: 0; max-height: 0; margin: 0; padding-block: 0; border-width: 0; overflow: hidden; }
.tile.wait { background: var(--bg); border-style: dashed; cursor: default; }
.tile.mine { border-color: var(--accent); }
.tile.locked { opacity: .6; }
.pts { background: var(--accent); color: #fff; font-weight: 800; min-width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; font-variant-numeric: tabular-nums; padding: 0 4px; }
.tile.wait .pts { background: var(--amber); }
.pts.hh { background: linear-gradient(135deg, #f59e0b, #f97316); position: relative; }
.pts.hh::after { content: attr(data-x); position: absolute; top: -6px; right: -7px; background: #111827; color: #fde68a; font-size: 9.5px; font-weight: 900; border-radius: 6px; padding: 1px 4px; }
.t-info { flex: 1; min-width: 0; }
.t-title { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.t-due { font-size: 11px; color: var(--sub); text-transform: uppercase; font-weight: 700; margin-top: 3px; letter-spacing: .02em; }
.t-due.mine { color: var(--accent); } .t-due.wait { color: var(--amber); }
.bag { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--sub); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.bag.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.empty { text-align: center; color: var(--sub); padding: 30px 10px; font-size: 14px; }
.hh-banner { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; border-radius: var(--radius); padding: 11px 12px; margin-bottom: 12px; }
.hh-banner b { display: block; font-size: 15px; } .hh-banner .sub { font-size: 12.5px; opacity: .95; }
.hh-banner .clock { margin-left: auto; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.22); border-radius: 9px; padding: 4px 8px; }
.offline { display: flex; gap: 8px; align-items: center; background: #1f2937; color: #f9fafb; font-size: 13px; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }

/* score strip */
.strip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; width: 100%; text-align: left; cursor: pointer; display: block; }
.strip-row { display: flex; gap: 8px; align-items: flex-end; }
.strip-p { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; position: relative; }
.strip-p .av { width: 40px; height: 40px; border: 2px solid transparent; }
.strip-p.me .av { border-color: var(--accent); } .strip-p.first .av { border-color: var(--gold); width: 46px; height: 46px; }
.strip-p .rk { position: absolute; top: -4px; left: calc(50% + 12px); background: var(--ink); color: var(--card); font-size: 10px; border-radius: 8px; padding: 0 5px; }
.strip-line { font-size: 13px; margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; color: var(--text); }
.strip-line b { color: var(--ink); } .strip-line span:last-child { color: var(--accent); font-weight: 800; white-space: nowrap; }

/* check, scores, cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-h b { font-size: 15.5px; }
.ap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 9px; display: flex; flex-direction: column; gap: 10px; }
.ap-row { display: flex; gap: 10px; align-items: center; }
.meta { font-size: 12px; color: var(--sub); margin-top: 2px; }
.btns { display: flex; gap: 8px; }
.btn { flex: 1; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 14px; padding: 11px; border-radius: 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ok { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); }
.btn.solid-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
.hint { font-size: 12.5px; color: var(--sub); line-height: 1.45; padding: 4px 2px 10px; }
.sc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 9px; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; }
button.sc { cursor: pointer; }
.sc.lead { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.sc-main { flex: 1; min-width: 0; }
.sc-name { font-weight: 800; font-size: 15.5px; display: flex; justify-content: space-between; gap: 8px; }
.sc-name span:last-child { font-variant-numeric: tabular-nums; }
.bar { height: 7px; background: var(--line); border-radius: 4px; margin: 7px 0 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.sc-sub { font-size: 11.5px; color: var(--sub); font-weight: 600; }
.sc-week { font-size: 12px; color: var(--green); font-weight: 800; text-align: right; }
.sc-week.hot { color: #b45309; }
.sc-week small { display: block; color: var(--sub); font-weight: 600; font-size: 10.5px; }
.sc-adj { font-size: 11.5px; font-weight: 800; color: var(--accent); margin-top: 4px; }
.log { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 12px; }
.log div { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.log div:first-child { border-top: 0; }
.log .when { margin-left: auto; color: var(--sub); font-size: 12px; white-space: nowrap; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* me */
.hero { background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #0b1220)); color: #fff; border-radius: 20px; padding: 20px 16px 14px; text-align: center; margin-bottom: 14px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-av { display: flex; justify-content: center; margin-bottom: 6px; }
.hero-name { font-size: 22px; font-weight: 900; }
.hero-lv { font-size: 13.5px; opacity: .92; font-weight: 700; margin-top: 2px; }
.hero-bar { height: 8px; background: rgba(255,255,255,.25); border-radius: 4px; margin: 10px 20px 4px; overflow: hidden; }
.hero-bar i { display: block; height: 100%; background: #facc15; border-radius: 4px; }
.hero-sub { font-size: 12px; opacity: .85; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; position: relative; }
.hero-stats span { background: rgba(255,255,255,.14); border-radius: 12px; padding: 8px 4px; font-size: 11.5px; display: flex; flex-direction: column; }
.hero-stats b { font-size: 18px; font-weight: 900; }
.ftiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ftile { border: 1px solid var(--line); background: var(--bg); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; cursor: pointer; text-align: left; }
.ftile svg { color: var(--accent); margin-bottom: 4px; } .ftile b { font-size: 14.5px; } .ftile > span { font-size: 12px; color: var(--sub); }
.ftile.hh-t { background: linear-gradient(135deg, #f59e0b, #f97316); border-color: transparent; color: #fff; } .ftile.hh-t svg, .ftile.hh-t > span { color: #fff; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.list h4 { margin: 0; padding: 10px 12px 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); }
.row { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); font-size: 15px; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.list h4 + .row { border-top: 0; }
button.row { cursor: pointer; }
.row .grow { flex: 1; min-width: 0; } .row .sub { font-size: 12px; color: var(--sub); margin-top: 1px; }
.row select, .field select { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 30px 7px 10px; background: var(--card); color: var(--ink); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--line); border: 0; position: relative; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.sw.on { background: var(--green); } .sw.on::after { left: 21px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; padding: 2px 0 0; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button.sel { box-shadow: 0 0 0 2px var(--ink); }
.settings-row { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; font-size: 15px; font-weight: 700; cursor: pointer; margin-bottom: 14px; }
.settings-row span { flex: 1; text-align: left; }

/* avatar builder */
.ab-preview { display: flex; justify-content: center; margin-bottom: 12px; }
.ab-preview svg { width: min(260px, 70vw); height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.ab-colours { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.ab-colours button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.ab-colours button.sel { box-shadow: 0 0 0 2px var(--ink); }
.ab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.ab-grid button { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 12px; background: var(--card); display: grid; place-items: center; cursor: pointer; padding: 4px; }
.ab-grid button.sel { border-color: var(--accent); }
.ab-grid svg { width: 90%; height: 90%; }

/* ---------- sheets, forms, toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 20px 20px 0 0; z-index: 41; max-height: 88%; overflow-y: auto;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); animation: up .22s ease; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.sheet p { margin: 0 0 12px; color: var(--text); font-size: 14px; line-height: 1.45; }
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 14px; }
.who button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; cursor: pointer; }
.who button.sel { border-color: var(--accent); background: var(--accent-soft); }
.who .av { width: 64px; height: 64px; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.more button { border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.more button svg { color: var(--accent); }
.label { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sub); margin: 12px 0 6px; }
.field { display: block; margin-bottom: 10px; }
.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 16px; background: var(--card); color: var(--ink); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-bottom: 8px; }
.opts button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 4px; font-weight: 800; font-size: 14px; cursor: pointer; }
.opts button.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.amt { text-align: center; font-size: 34px; font-weight: 800; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.conv { text-align: center; font-size: 12.5px; color: var(--sub); min-height: 16px; margin-bottom: 10px; }
.err { color: var(--red); font-size: 13.5px; font-weight: 700; min-height: 18px; margin: 4px 0; }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; background: #111827; color: #f9fafb; border-radius: 14px; padding: 10px 12px; z-index: 60;
  display: flex; gap: 10px; align-items: center; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.toast .msg { flex: 1; min-width: 0; line-height: 1.3; }
.toast button { background: none; border: 0; color: #7cc0ff; font-weight: 800; cursor: pointer; padding: 4px 2px; }
.toast .bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; margin: 0; background: rgba(255,255,255,.15); }
.toast .bar i { background: #7cc0ff; animation: drain 5s linear forwards; }
@keyframes drain { from { width: 100%; } to { width: 0; } }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* ---------- sign in ---------- */
.signin { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); text-align: center; gap: 14px; }
.signin h2 { margin: 0; font-size: 24px; font-weight: 900; }
.signin p { margin: 0; color: var(--text); max-width: 34ch; line-height: 1.45; }
.signin .input { max-width: 300px; text-align: center; font-size: 18px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; width: 100%; max-width: 480px; }
.pick button { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; cursor: pointer; }
.pick .av { width: 72px; height: 72px; }
.dots { display: flex; gap: 14px; justify-content: center; margin: 6px 0; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.dots i.on { background: var(--accent); }
.pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; justify-content: center; }
.pad button { height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 24px; font-weight: 700; cursor: pointer; }
.pad button.ghost { border: 0; background: none; font-size: 14px; color: var(--sub); }
.linkish { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; font-size: 14px; }

/* ---------- iPad and wider: side rail, two columns ---------- */
@media (min-width: 768px) {
  .app { padding-left: 96px; }
  .tabs { top: 0; bottom: 0; right: auto; width: 96px; flex-direction: column; justify-content: flex-start; gap: 6px; border-top: 0; border-right: 1px solid var(--line); padding: calc(24px + env(safe-area-inset-top)) 6px 24px max(6px, env(safe-area-inset-left)); }
  .tabs button { flex: none; padding: 10px 0; font-size: 12px; }
  .body { max-width: 1100px; padding: 18px 22px 40px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
  .side { position: sticky; top: 76px; }
  .side .strip-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .side .strip-p { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 14px; }
  .side .strip-p .rk { position: static; order: -1; }
  .sc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 8%; width: 520px; margin-left: -260px; border-radius: 20px; max-height: 84%; padding-bottom: 22px; }
  .sheet .grab { display: none; }
  .toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
