:root {
  --p1: #0f766e; --p2: #4338ca; --gold: #f59e0b; --ok: #10b981; --danger: #e11d48;
  --bg: #f3f5fb; --card: #ffffff; --ink: #141c33; --muted: #69738c; --line: #e3e7f1; --soft: #eef1f8;
  --shadow: 0 1px 2px rgba(20,28,51,.05), 0 6px 20px rgba(20,28,51,.07);
  --ar: 28px; --c: #0f766e;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --hero: linear-gradient(135deg, #0f766e, #4338ca);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1020; --card: #151b2f; --ink: #e8ecf6; --muted: #9aa4bd; --line: #252d46; --soft: #1b2238;
  --shadow: 0 1px 2px rgba(0,0,0,.5); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --card: #151b2f; --ink: #e8ecf6; --muted: #9aa4bd; --line: #252d46; --soft: #1b2238;
    --shadow: 0 1px 2px rgba(0,0,0,.5); color-scheme: dark;
  }
}
body[data-time="dawn"] { --hero: linear-gradient(135deg, #f59e0b, #ef4444); }
body[data-time="day"] { --hero: linear-gradient(135deg, #0ea5e9, #0f766e); }
body[data-time="dusk"] { --hero: linear-gradient(135deg, #7c3aed, #db2777); }
body[data-time="night"] { --hero: linear-gradient(135deg, #1e1b4b, #4338ca); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: 'Tajawal', system-ui, sans-serif; font-size: 16.5px; background: var(--bg); color: var(--ink); min-height: 100vh; overscroll-behavior-y: contain; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.hidden { display: none !important; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
i[data-icon] { display: inline-grid; place-items: center; font-style: normal; }

/* App bar */
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; padding: calc(8px + var(--safe-t)) 8px 8px; background: var(--hero); color: #fff; }
.appbar h1 { flex: 1; margin: 0; text-align: center; font-family: 'Amiri', serif; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.icon-btn:active { background: rgba(255,255,255,.18); }
.icon-btn.ghost { visibility: hidden; }
main { padding: 14px 14px calc(100px + var(--safe-b)); max-width: 760px; margin: 0 auto; outline: none; }
body.has-player main { padding-bottom: calc(180px + var(--safe-b)); }

/* Tab bar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; color: var(--muted); }
.tabbar a.active { color: var(--p1); font-weight: 700; }
:root[data-theme="dark"] .tabbar a.active { color: #5eead4; }
.tabbar a.tab-main i { width: 50px; height: 50px; margin-top: -22px; border-radius: 50%; background: var(--hero); color: #fff; box-shadow: 0 6px 16px rgba(67,56,202,.35); border: 3px solid var(--card); }

/* Generic */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.h-sec { display: flex; justify-content: space-between; align-items: center; margin: 22px 4px 10px; font-size: 16px; font-weight: 700; }
.h-sec a { color: var(--p1); font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 14px; background: var(--hero); color: #fff; font-weight: 700; font-size: 15.5px; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.btn.block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.empty { text-align: center; color: var(--muted); padding: 50px 16px; line-height: 1.9; }
.empty svg { width: 52px; height: 52px; opacity: .45; margin-bottom: 8px; }
:is(.tile, .row, .wcard, .dcard .dc-top a):active { transform: scale(.985); }

/* Home */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px 18px; color: #fff; background: var(--hero); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 30px solid rgba(255,255,255,.08); }
.hero::before { width: 220px; height: 220px; left: -70px; top: -90px; }
.hero::after { width: 140px; height: 140px; left: 40px; bottom: -80px; }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; opacity: .95; }
.streak { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 99px; font-weight: 700; }
.streak svg { width: 16px; height: 16px; }
.hero h2 { font-family: 'Amiri', serif; font-size: 27px; margin: 10px 0 4px; }
.hero p { margin: 0 0 14px; opacity: .9; font-size: 14.5px; }
.now { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.14); border-radius: 18px; padding: 12px; }
.now .meta { flex: 1; }
.now b { font-size: 17px; display: block; }
.now small { opacity: .85; }
.now .btn { background: #fff; color: #1e1b4b; padding: 10px 16px; }

.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wcard { padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.wcard b { font-size: 13.5px; }
.ring { position: relative; width: 62px; height: 62px; display: grid; place-items: center; }
.ring svg.r { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring svg.r circle { fill: none; stroke-width: 6; }
.ring .bgc { stroke: var(--soft); }
.ring .fgc { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring .in { color: var(--c); }
.ring .in svg { width: 24px; height: 24px; }
.ring.done .in { color: var(--ok); }
.wcard small { font-size: 12px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; overflow: hidden; padding: 14px; min-height: 118px; display: flex; flex-direction: column; gap: 8px; border: 0; color: #fff; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 62%, #000)); }
.tile::after { content: ""; position: absolute; left: -26px; bottom: -26px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.1); }
.tile .ti { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.tile b { font-size: 16.5px; line-height: 1.4; }
.tile small { margin-top: auto; opacity: .85; font-size: 12.5px; }

/* Lists */
.list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.row .ri { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); flex: none; font-weight: 700; }
.row .rm { flex: 1; min-width: 0; }
.row .rm b { display: block; font-size: 16px; line-height: 1.5; }
.row .rm small { color: var(--muted); font-size: 13px; }
.row .chev { color: var(--muted); transform: scaleX(-1); }
.row .chev svg { width: 18px; height: 18px; }
.cat-head { border-radius: 22px; padding: 18px; color: #fff; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cat-head .ti { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.cat-head .ti svg { width: 30px; height: 30px; }
.cat-head b { font-size: 21px; display: block; }
.cat-head small { opacity: .9; }

/* Chapter reader */
.reader-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.reader-actions .btn { padding: 13px 10px; }
.reader-meta { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 10px; color: var(--muted); font-size: 14px; }
.reader-meta .fz { display: flex; gap: 4px; }
.reader-meta .fz button { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-weight: 700; }
.dcard { margin-bottom: 14px; overflow: hidden; border-top: 4px solid var(--c); scroll-margin-top: 80px; }
.dcard.done { border-top-color: var(--ok); }
.dc-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; }
.dc-idx { width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.dcard.done .dc-idx { background: var(--ok); color: #fff; }
.dc-top .sp { flex: 1; }
.dc-top button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.dc-top button svg { width: 20px; height: 20px; }
.dc-top button.on { color: var(--danger); }
.dc-top button.on svg { fill: currentColor; }
.dc-text { font-family: 'Amiri', serif; font-size: var(--ar); line-height: 2.05; padding: 6px 16px 10px; white-space: pre-line; cursor: pointer; user-select: none; -webkit-user-select: none; }
.dc-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; background: var(--soft); cursor: pointer; }
.dc-foot .src { flex: 1; font-size: 12.5px; color: var(--muted); }
.mini { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .08s; }
.mini:active { transform: scale(.92); }
.mini svg.r { position: absolute; inset: -5px; width: 66px; height: 66px; transform: rotate(-90deg); }
.mini svg.r circle { fill: none; stroke-width: 4; }
.mini .bgc { stroke: var(--line); }
.mini .fgc { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .2s; }
.dcard.done .mini { background: var(--ok); }
.playb { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--c); border: 1px solid var(--line); flex: none; }
.playb.on { background: var(--c); color: #fff; }
.dcard.playing { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent), var(--shadow); }
.bump { animation: bump .18s; }
@keyframes bump { 50% { transform: scale(1.12); } }

/* Focus mode — the professional counter */
.focus { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg); padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
.f-top { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--hero); color: #fff; }
.f-top .ft { flex: 1; text-align: center; min-width: 0; }
.f-top .ft b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-top .ft small { opacity: .85; font-size: 12.5px; }
.f-seg { display: flex; gap: 3px; padding: 8px 12px 0; }
.f-seg span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; }
.f-seg span.d { background: var(--ok); }
.f-seg span.c { background: var(--c); }
.f-text { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; }
.f-text .t { margin-top: auto; }
.f-text .meta { margin-bottom: auto; }
.f-text .t { font-family: 'Amiri', serif; font-size: var(--ar); line-height: 2.1; text-align: center; white-space: pre-line; }
.f-text .meta { text-align: center; margin-top: 10px; }
.f-zone { position: relative; padding: 10px 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.f-zone::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--c) 10%, transparent), transparent); pointer-events: none; }
.f-counter { position: relative; width: min(58vw, 230px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 65%, #000)); box-shadow: 0 14px 34px color-mix(in srgb, var(--c) 40%, transparent), inset 0 -8px 18px rgba(0,0,0,.18); transition: transform .06s, background .3s; }
.f-counter:active { transform: scale(.965); }
.f-counter svg.r { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); transform: rotate(-90deg); }
.f-counter svg.r circle { fill: none; stroke-width: 5; }
.f-counter .bgc { stroke: var(--line); }
.f-counter .fgc { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .18s; }
.f-counter .num { font-size: 64px; font-weight: 700; line-height: 1; }
.f-counter .of { font-size: 14px; opacity: .85; margin-top: 4px; text-align: center; }
.f-counter.complete { background: radial-gradient(circle at 32% 28%, #6ee7b7, #10b981 55%, #047857); }
.f-counter.complete .num { font-size: 58px; }
.f-ctrl { display: flex; gap: 12px; align-items: center; justify-content: center; }
.f-ctrl button { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.f-ctrl button.play { width: 58px; height: 58px; background: var(--c); color: #fff; border: 0; }
.f-ctrl button:disabled { opacity: .35; }
.f-hint { font-size: 12.5px; color: var(--muted); }
.f-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; }
.f-done .big { font-size: 64px; }
.f-done h3 { font-family: 'Amiri', serif; font-size: 30px; margin: 0; color: var(--ok); }
.f-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 420px; margin: 14px 0; }
.f-stats div { padding: 12px 6px; }
.f-stats b { display: block; font-size: 22px; }
.f-stats span { font-size: 12.5px; color: var(--muted); }
.burst { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: burst .7s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }

/* Tasbih */
.tb { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tb-phr { display: flex; gap: 8px; overflow-x: auto; width: 100%; padding: 2px 2px 10px; scrollbar-width: none; }
.tb-phr::-webkit-scrollbar { display: none; }
.tb-phr button { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-family: 'Amiri', serif; font-size: 16px; }
.tb-phr button.on { background: var(--hero); color: #fff; border-color: transparent; }
.tb-phr button.add { font-family: inherit; color: var(--p1); font-weight: 700; }
.tb-name { font-family: 'Amiri', serif; font-size: 32px; font-weight: 700; margin: 10px 0 0; line-height: 1.6; min-height: 52px; }
.tb-zone { width: 100%; padding: 22px 0 14px; display: flex; flex-direction: column; align-items: center; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.tb .f-counter { width: min(66vw, 260px); }
.tb-targets { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 4px 0 14px; }
.tb-targets button { padding: 7px 14px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.tb-targets button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.tb-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tb-tools button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.tb-tools button.on { color: var(--p1); border-color: var(--p1); }
.tb-tools svg { width: 18px; height: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 18px; }
.stats .card { padding: 12px 6px; }
.stats b { display: block; font-size: 21px; color: var(--p1); }
.stats span { font-size: 12.5px; color: var(--muted); }
.week { width: 100%; margin-top: 12px; padding: 14px; }
.week h4 { margin: 0 0 10px; font-size: 14.5px; text-align: right; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11px; color: var(--muted); }
.bars span { width: 100%; max-width: 30px; border-radius: 8px 8px 3px 3px; background: var(--hero); min-height: 3px; }
.bars div.today { color: var(--ink); font-weight: 700; }

/* Search / settings / install */
.search-box { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; margin-bottom: 14px; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; padding: 10px 0; color: var(--ink); }
.res { display: block; padding: 12px 14px; margin-bottom: 10px; border-right: 4px solid var(--c); }
.res small { color: var(--c); font-weight: 700; font-size: 12.5px; }
.res p { margin: 4px 0 0; font-family: 'Amiri', serif; font-size: 18px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set { overflow: hidden; margin-bottom: 14px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); min-height: 58px; width: 100%; text-align: right; }
.set-row:last-child { border-bottom: 0; }
.set-row .l { flex: 1; }
.set-row .l small { display: block; color: var(--muted); font-size: 12.5px; }
.set-row > i { color: var(--p1); }
.seg { display: flex; background: var(--soft); border-radius: 11px; padding: 3px; }
.seg button { padding: 6px 10px; border-radius: 9px; font-size: 13px; }
.seg button.on { background: var(--card); color: var(--p1); font-weight: 700; box-shadow: var(--shadow); }
.switch { width: 48px; height: 28px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--p1); }
.switch.on::after { transform: translateX(-20px); }
input[type=range] { width: 130px; accent-color: var(--p1); }
.about { padding: 14px; font-size: 14px; color: var(--muted); line-height: 1.9; }
.inst-hero { text-align: center; padding: 6px 10px 16px; }
.inst-hero img { border-radius: 20px; box-shadow: var(--shadow); }
.inst-hero h2 { font-family: 'Amiri', serif; font-size: 28px; margin: 10px 0 4px; }
.inst-hero p { color: var(--muted); margin: 0; line-height: 1.8; }
.inst { padding: 16px; margin-bottom: 14px; }
.inst.mine { border: 2px solid var(--p1); }
.inst-h { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 10px; font-size: 15px; line-height: 1.8; }
.steps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--p1); font-weight: 700; display: grid; place-items: center; flex: none; font-size: 13px; margin-top: 2px; }
.inst.qr { text-align: center; }
.inst.qr img { display: block; margin: 8px auto 14px; border-radius: 12px; border: 1px solid var(--line); }
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 14px; position: relative; }
.install-banner img { border-radius: 12px; }
.install-banner .m { flex: 1; }
.install-banner b { display: block; font-size: 15px; }
.install-banner small { color: var(--muted); font-size: 12.5px; }
.install-banner .x { position: absolute; top: 2px; left: 6px; width: 28px; height: 28px; color: var(--muted); font-size: 20px; }

/* Player */
.player { position: fixed; left: 8px; right: 8px; bottom: calc(72px + var(--safe-b)); z-index: 45; background: #111633; color: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
body.in-focus .player { bottom: calc(10px + var(--safe-b)); z-index: 60; }
.pl-bar { height: 3px; background: rgba(255,255,255,.15); }
.pl-bar span { display: block; height: 100%; width: 0; background: var(--gold); }
.pl-row { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.pl-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pl-btn svg { width: 20px; height: 20px; }
.pl-btn.main { width: 46px; height: 46px; background: var(--gold); color: #111633; }
.pl-meta { flex: 1; min-width: 0; }
.pl-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { font-size: 12px; opacity: .8; }
.pl-speed { font-size: 13px; font-weight: 700; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.12); flex: none; }

/* Sheet + toast */
.sheet-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 70; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); max-width: 640px; margin: 0 auto; }
.sheet h3 { margin: 0 0 12px; font-size: 18px; }
.sheet input { width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); margin-bottom: 12px; }
.sheet .acts { display: flex; gap: 10px; }
.sheet .acts .btn { flex: 1; }
.toast { position: fixed; bottom: calc(96px + var(--safe-b)); left: 50%; transform: translate(-50%, 20px); background: #111633; color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 90; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
