/* Reclaim for Android. Same visual language as the Mac guided screen, laid out for a phone first. */
:root {
  --bg: #f3f5f9; --card: #ffffff; --ink: #15191f; --muted: #5d6875; --line: #e4e8ee; --soft: #eef1f6;
  --accent: #2f6fed; --accent-ink: #ffffff; --accent-soft: #dce7fd;
  --green: #14804a; --green-soft: #e3f6ec; --amber: #b56405; --amber-soft: #fdf0dc; --violet: #6a48e0; --violet-soft: #ece6fc;
  --red: #c93434; --red-soft: #fde8e8; --shadow: 0 10px 30px rgba(24, 39, 75, .08), 0 1px 2px rgba(24, 39, 75, .06);
  --radius: 18px; --tabs: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116; --card: #171b22; --ink: #e9edf2; --muted: #98a4b3; --line: #262d37; --soft: #1e242d;
    --accent: #6c9eff; --accent-ink: #0b1220; --accent-soft: #1b2b4a;
    --green: #4ed08b; --green-soft: #12301f; --amber: #f0b454; --amber-soft: #33260c; --violet: #b19cff; --violet-soft: #241c42;
    --red: #ff7676; --red-soft: #3a1717; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116; --card: #171b22; --ink: #e9edf2; --muted: #98a4b3; --line: #262d37; --soft: #1e242d;
  --accent: #6c9eff; --accent-ink: #0b1220; --accent-soft: #1b2b4a;
  --green: #4ed08b; --green-soft: #12301f; --amber: #f0b454; --amber-soft: #33260c; --violet: #b19cff; --violet-soft: #241c42;
  --red: #ff7676; --red-soft: #3a1717; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
html { overflow-x: hidden; }
body { padding: 0 16px calc(var(--tabs) + var(--safe-b) + 108px); max-width: 760px; margin: 0 auto; overscroll-behavior-y: none; }
h1 { font-size: clamp(22px, 5.6vw, 28px); line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 0; }
p { margin: 0; }
.sub { color: var(--muted); }
button, input { font: inherit; color: inherit; }
.ic { flex: none; vertical-align: middle; }
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 16px; min-height: 44px; cursor: pointer; font-weight: 600; transition: transform .08s ease, background .15s, border-color .15s, opacity .15s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.link { background: transparent; border-color: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn.bigBtn { padding: 13px 20px; font-size: 17px; border-radius: 14px; }
.btn.danger { background: var(--red); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .btn.danger { color: #1a0808; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger { color: #1a0808; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.brand span { color: var(--ink); }
.topRight { display: flex; gap: 8px; }

/* hero */
.hero { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; padding: 22px 18px; margin-bottom: 14px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: var(--soft); }
.ring .fill { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1), stroke .6s; }
.ring.busy svg { animation: turn 1.6s linear infinite; }
.ring.busy .fill { stroke: var(--accent); stroke-dashoffset: 245 !important; transition: none; }
@keyframes turn { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.ringText { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ringText b { font-size: 32px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ringText span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.heroText { flex: 1; min-width: 0; width: 100%; }
.heroText .sub { font-size: 16px; }
.hint { margin-top: 10px; color: var(--muted); font-size: 15px; }
.heroActions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.heroActions:empty { display: none; }
.progress { margin-top: 14px; }
.progressBar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; position: relative; }
.progressBar i { position: absolute; top: 0; bottom: 0; width: 35%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--violet)); animation: slide 1.4s ease-in-out infinite; }
.progressBar.exact i { animation: none; left: 0; width: var(--pct, 0%); transition: width .3s; }
@keyframes slide { 0% { left: -35%; } 100% { left: 100%; } }
.progressText { color: var(--muted); font-size: 14px; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* where Reclaim looks */
.places { padding: 16px; margin-bottom: 14px; }
.placesHead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.placesHead .sub { font-size: 14px; }
.placeList:empty { display: none; }
.place { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.place .pIcon { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.place.warn .pIcon { background: var(--amber-soft); color: var(--amber); }
.place .pName { flex: 1; min-width: 0; }
.place .pName b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place .pName span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place .x { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; display: grid; place-items: center; cursor: pointer; flex: none; }
.placeActions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.which { margin-top: 12px; font-size: 14px; color: var(--muted); }
.which summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 6px 0; }
.which ul { padding-left: 20px; margin: 6px 0; }
.which b { color: var(--ink); }

/* tier cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
.tier { padding: 20px; display: flex; flex-direction: column; gap: 6px; border-top: 5px solid var(--tone); --tone: var(--green); --tone-soft: var(--green-soft); }
.tier.t2 { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.tier.t3 { --tone: var(--violet); --tone-soft: var(--violet-soft); }
.tierHead { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 5px var(--tone-soft); flex: none; }
.big { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--tone); font-variant-numeric: tabular-nums; }
.big.counting { color: var(--muted); font-weight: 600; font-size: 24px; }
.meta { color: var(--muted); font-size: 14px; }
.tagline { color: var(--muted); flex: 1; font-size: 15px; }
.tierActions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tier .btn.primary { background: var(--tone); color: #fff; }
:root[data-theme="dark"] .tier .btn.primary { color: #0b1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tier .btn.primary { color: #0b1220; } }

/* more ways */
.moreWays { margin: 4px 0 22px; }
.moreWays h2, .checkup h2 { margin-bottom: 4px; }
.hintGrid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.hintCard { padding: 14px 16px; }
.hintCard summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hintCard summary::-webkit-details-marker { display: none; }
.hintCard summary::after { content: "⌄"; color: var(--muted); transition: transform .2s; }
.hintCard[open] summary::after { transform: rotate(180deg); }
.hintCard .steps { margin-top: 8px; background: var(--soft); padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.hintCard .note { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* how + footer */
.how { padding: 14px 18px; margin-bottom: 18px; }
.how summary { cursor: pointer; font-weight: 700; }
.howBody { color: var(--muted); padding-top: 8px; font-size: 15px; }
.howBody p + p { margin-top: 8px; }
.howBody b { color: var(--ink); }
.howBody ul { padding-left: 20px; margin: 8px 0; }
.foot { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding: 6px 4px; }
.foot a { color: var(--accent); }

/* tier view */
.back { margin: 0 0 6px -6px; }
.tierIntro { margin-bottom: 14px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1 1 100%; padding: 11px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.toolRight { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chk { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; min-height: 36px; }
.groups { display: flex; flex-direction: column; gap: 10px; }
.group { overflow: hidden; }
.groupHead { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; user-select: none; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 17px; }
.gName { flex: 1; min-width: 0; }
.gName b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gName span { color: var(--muted); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gSize { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chev { color: var(--muted); transition: transform .2s; width: 18px; text-align: center; flex: none; }
.group.open .chev { transform: rotate(180deg); }
.items { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 55%, var(--card)); }
.item { padding: 12px; border-bottom: 1px solid var(--line); }
.iRow { display: flex; gap: 10px; align-items: center; }
.iMore { margin-top: 8px; }
.iName { display: block; font-size: 15px; word-break: break-all; line-height: 1.3; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.item:last-child { border-bottom: 0; }
.item.off { opacity: .55; }
.thumb { width: 46px; height: 46px; border-radius: 10px; background: var(--soft); color: var(--muted); display: grid; place-items: center; flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iBody { flex: 1; min-width: 0; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.ro { background: var(--amber-soft); color: var(--amber); }
.iWhat { color: var(--muted); font-size: 14px; margin-top: 6px; }
.iPath { color: var(--muted); font: 12px/1.4 ui-monospace, "Roboto Mono", Menlo, Consolas, monospace; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; unicode-bidi: plaintext; text-align: left; }
.iActions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.iSize { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.iAge { color: var(--muted); font-size: 12px; }
.err { color: var(--red); font-size: 13px; margin-top: 4px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.moreItems { padding: 12px; text-align: center; }

/* switch */
.switch { position: relative; width: 46px; height: 28px; flex: none; display: inline-block; }
.switch.sm { width: 40px; height: 24px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.switch.sm i::after { width: 18px; height: 18px; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch.sm input:checked + i::after { transform: translateX(16px); }
.switch input:indeterminate + i { background: var(--accent); opacity: .55; }
.switch input:indeterminate + i::after { transform: translateX(9px); }
.switch input:disabled + i { opacity: .35; }
.switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }

/* care */
.toolGrid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
.tool { padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.tool .tIcon { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.tool .tBody { flex: 1; min-width: 0; }
.tool .tBody b { display: block; font-size: 16px; }
.tool .tBody p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tool .tActions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.checkup { margin-bottom: 20px; }
.rows { margin-top: 12px; padding: 4px 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .rIcon { color: var(--muted); flex: none; width: 24px; display: grid; place-items: center; }
.row .rBody { flex: 1; min-width: 0; }
.row .rBody b { display: block; font-size: 15px; }
.row .rBody span { display: block; color: var(--muted); font-size: 13px; }
.row.na .rBody b, .row.na .rIcon { opacity: .55; }

/* access */
.allowAll, .install { padding: 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.allowAll > div, .install > div { flex: 1; min-width: 0; }
.allowAll b, .install b { display: block; }
.allowAll .sub, .install .sub { display: block; font-size: 14px; }
.capGroup { margin-bottom: 18px; }
.capGroup h2 { margin-bottom: 2px; }
.capGroup > .sub { font-size: 14px; }
.cap { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cap:last-child { border-bottom: 0; }
.cap .cIcon { width: 38px; height: 38px; border-radius: 11px; background: var(--soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.cap .cBody { flex: 1; min-width: 0; }
.cap .cTop { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.cap .cBody p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.cap .cDetail { color: var(--ink); font-size: 13px; margin-top: 4px; }
.cap .btn { margin-top: 8px; }
.cap.na { opacity: .6; }
.state { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.state.granted, .state.ready { background: var(--green-soft); color: var(--green); }
.state.denied { background: var(--red-soft); color: var(--red); }
.state.prompt, .state.each { background: var(--accent-soft); color: var(--accent); }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabs) + var(--safe-b)); padding-bottom: var(--safe-b); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; justify-content: center; z-index: 15; }
.tabs button { flex: 1; max-width: 220px; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-size: 12px; }
.tabs button b { font-weight: 600; }
.tabs button.on { color: var(--accent); }
.tabs button.on span { background: var(--accent-soft); }
.tabs button span { width: 56px; height: 28px; border-radius: 999px; display: grid; place-items: center; transition: background .2s; }

/* what you picked */
.bar { position: fixed; left: 50%; bottom: calc(var(--tabs) + var(--safe-b) + 10px); transform: translateX(-50%); width: min(720px, calc(100% - 24px)); background: var(--card); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 10px; z-index: 20; animation: rise .25s ease; border: 1px solid var(--line); }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.barText { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.barText b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barText span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .btn.ghost { padding-left: 10px; padding-right: 10px; }

/* sheet */
.sheet { position: fixed; inset: 0; background: rgba(10, 14, 20, .5); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; z-index: 30; }
.sheetCard { background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); width: min(600px, 100%); box-shadow: 0 -10px 60px rgba(0, 0, 0, .35); animation: up .24s ease; max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheetCard h2 { font-size: 22px; margin-bottom: 6px; line-height: 1.25; }
.sheetCard h3 { font-size: 15px; margin: 16px 0 6px; }
.choices { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.choice:has(input:disabled) { opacity: .5; cursor: default; }
.choice input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choice b { display: block; }
.choice span { color: var(--muted); font-size: 14px; }
.warn { background: var(--amber-soft); color: var(--amber); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-top: 8px; }
.warn label { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-weight: 600; cursor: pointer; }
.warn input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amber); flex: none; }
.info { background: var(--soft); color: var(--muted); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-top: 8px; }
.sheetActions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sheetActions.center { justify-content: center; }
.sheetActions .btn.bigBtn { flex: 1; }
.center { text-align: center; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--soft); border-top-color: var(--accent); animation: spin .9s linear infinite; margin: 10px auto 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkMark { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 6px auto 16px; animation: up .3s ease; }
.pre { text-align: left; background: var(--soft); padding: 10px 12px; border-radius: 12px; font: 12px/1.5 ui-monospace, "Roboto Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; margin-top: 12px; }
.pvMedia { display: block; width: 100%; max-height: 46vh; object-fit: contain; border-radius: 14px; background: var(--soft); margin: 12px 0; }
.facts { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.meter { height: 14px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 14px 0 6px; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--amber)); transition: width .1s linear; }
.count { font-size: 44px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: center; margin: 8px 0; }
.camBox { position: relative; border-radius: 14px; overflow: hidden; background: #000; margin: 12px 0; }
.camBox video { display: block; width: 100%; max-height: 50vh; object-fit: cover; }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: center; }
.readout div { background: var(--soft); border-radius: 12px; padding: 10px 4px; }
.readout b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.readout span { color: var(--muted); font-size: 12px; }
.dupGroup { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.dupGroup .why { font-size: 12px; font-weight: 700; color: var(--accent); }
.dupGroup .who { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.dupGroup .who span { color: var(--muted); text-align: right; }
.stepDots { display: flex; gap: 5px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.stepDots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.stepDots i.done { background: var(--green); }
.stepDots i.no { background: var(--red); }
.stepDots i.now { background: var(--accent); transform: scale(1.3); }
.stepIcon { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 14px; }

/* full-screen stage */
.stage { position: fixed; inset: 0; z-index: 50; background: #000; touch-action: none; user-select: none; display: grid; place-items: center; }
.stageNote { color: #8a8f98; font-size: 15px; text-align: center; padding: 24px; max-width: 320px; transition: opacity .6s; pointer-events: none; }
.stage.light .stageNote { color: #6b7280; }
.stageNote.fade { opacity: 0; }
.holdRing { position: fixed; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 6px solid rgba(127, 127, 127, .35); border-top-color: var(--accent); pointer-events: none; animation: spin .7s linear infinite; }
.touchGrid { position: absolute; inset: 0; display: grid; }
.touchGrid i { border: 1px solid rgba(255, 255, 255, .08); }
.touchGrid i.hit { background: #1f9d5f; }
.stagePill { position: absolute; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); background: rgba(255, 255, 255, .92); color: #111; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; z-index: 2; min-height: 44px; }
.stageCount { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; z-index: 2; pointer-events: none; text-shadow: 0 1px 3px #000; }

.toast.top { bottom: auto; top: calc(14px + env(safe-area-inset-top, 0px)); }
.toast { position: fixed; bottom: calc(var(--tabs) + var(--safe-b) + 84px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow); z-index: 60; width: max-content; max-width: min(560px, 92vw); font-size: 15px; text-align: center; }

@media (min-width: 700px) {
  .hero { flex-direction: row; text-align: left; padding: 26px 28px; gap: 28px; }
  .heroActions { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hintGrid, .toolGrid { grid-template-columns: repeat(2, 1fr); }
  .toolbar input[type=search] { flex: 1 1 260px; }
  .sheet { align-items: center; padding: 16px; }
  .sheetCard { border-radius: 22px; padding: 26px; }
  body { max-width: 980px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ring.busy svg { animation: none; }
}
