/* ============ 设计令牌：小清新 ============ */
:root {
  --bg: #f3faf6;
  --bg-grad:
    radial-gradient(900px 600px at -10% -10%, rgba(126, 214, 182, 0.32), transparent 60%),
    radial-gradient(800px 520px at 110% 0%, rgba(150, 196, 250, 0.3), transparent 58%),
    radial-gradient(700px 600px at 60% 115%, rgba(255, 200, 170, 0.28), transparent 60%);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-2: rgba(240, 247, 243, 0.9);
  --glass: rgba(248, 253, 250, 0.72);
  --text: #1f2d29;
  --text-2: #4b5c57;
  --muted: #84948f;
  --border: rgba(30, 80, 60, 0.08);
  --accent: #3fae86;
  --accent-2: #5b9ee6;
  --art-w: #ffffff;
  --shadow: 0 1px 2px rgba(30, 70, 60, 0.04), 0 12px 32px -14px rgba(40, 110, 90, 0.2);
  --shadow-lg: 0 2px 4px rgba(30, 70, 60, 0.04), 0 30px 60px -24px rgba(40, 110, 90, 0.3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r: 18px;
  --r-lg: 26px;
  --top-h: 60px;
  --tab-h: 64px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1716;
  --bg-grad:
    radial-gradient(900px 600px at -10% -10%, rgba(63, 174, 134, 0.18), transparent 60%),
    radial-gradient(800px 520px at 110% 0%, rgba(91, 158, 230, 0.14), transparent 58%),
    radial-gradient(700px 600px at 60% 115%, rgba(239, 154, 114, 0.1), transparent 60%);
  --surface: rgba(26, 36, 34, 0.78);
  --surface-solid: #18211f;
  --surface-2: rgba(36, 48, 45, 0.9);
  --glass: rgba(15, 23, 22, 0.72);
  --text: #e5efec;
  --text-2: #b3c3be;
  --muted: #80918c;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #5fcfa5;
  --accent-2: #7fb5f0;
  --art-w: rgba(255, 255, 255, 0.82);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--bg-grad), var(--bg); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--surface-solid); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* 插画 */
svg.art { width: 100%; height: auto; display: block; stroke: none; fill: none; aspect-ratio: 16 / 10; }
svg.art .w { fill: var(--art-w); }

/* ============ 顶栏 / 导航 ============ */
.topbar {
  position: sticky; top: 0; z-index: 20; height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; letter-spacing: 0.04em; }
.brand img { border-radius: 9px; }
.tabs { margin-left: auto; display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.tab { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14px; transition: all 0.2s var(--ease); }
.tab svg { width: 18px; height: 18px; }
.tab[aria-current="page"] { background: var(--surface-solid); color: var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--text-2); transition: background 0.2s, transform 0.15s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(0.92); }
#themeBtn .moon { display: none; }
[data-theme="dark"] #themeBtn .sun { display: none; }
[data-theme="dark"] #themeBtn .moon { display: block; }
@media (max-width: 720px) {
  /* backdrop-filter 会让内部 fixed 元素相对顶栏定位，手机上去掉它，底部导航才能贴底 */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-solid); }
  #themeBtn { margin-left: auto; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 6px 12px env(safe-area-inset-bottom);
    border-radius: 0; justify-content: space-around;
    background: var(--glass); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
    border-top: 1px solid var(--border);
  }
  .tab { flex: 1; flex-direction: column; gap: 2px; padding: 6px 0; font-size: 11px; background: none !important; box-shadow: none !important; }
  .tab svg { width: 22px; height: 22px; }
}

main { max-width: 920px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left)); outline: none; }
@media (max-width: 720px) { main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 28px); } }
.view { animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sec-title { font-size: 17px; font-weight: 750; margin: 28px 4px 12px; display: flex; align-items: baseline; gap: 8px; }
.sec-title small { font-size: 13px; font-weight: 500; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 14px; font-weight: 650; background: var(--surface-2); transition: transform 0.15s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px -10px var(--accent); }
[data-theme="dark"] .btn.primary { color: #0b1a16; }
.btn.ghost { background: transparent; border: 1px solid var(--border); }
.btn.danger { background: rgba(239, 100, 100, 0.12); color: #e25d5d; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.seg { display: inline-flex; padding: 4px; border-radius: 13px; background: var(--surface-2); gap: 2px; flex-wrap: wrap; }
.seg button { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: all 0.2s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 10px 6px 4px; border-radius: 10px; margin-bottom: 8px; }
.back:hover { color: var(--text); }
.back svg { width: 18px; height: 18px; }

/* ============ 首页 ============ */
.hello { margin: 4px 4px 16px; }
.hello .date { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.hello h1 { margin: 2px 0 0; font-size: 26px; font-weight: 750; line-height: 1.35; letter-spacing: 0.02em; }
.daily { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; padding: 0; }
.daily .art { height: 100%; aspect-ratio: auto; min-height: 200px; }
.daily .info { padding: 22px 22px 20px; display: flex; flex-direction: column; }
.daily .lbl { font-size: 12.5px; font-weight: 650; color: var(--c); letter-spacing: 0.08em; }
.daily h2 { margin: 6px 0 4px; font-size: 21px; line-height: 1.4; }
.daily p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.daily .row { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .daily { grid-template-columns: 1fr; } .daily .art { min-height: 0; aspect-ratio: 16 / 9; } }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qtile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; transition: transform 0.2s var(--ease); }
.qtile:active { transform: scale(0.98); }
.qtile .e { font-size: 26px; line-height: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: color-mix(in srgb, var(--c) 16%, transparent); }
.qtile b { font-size: 15px; }
.qtile span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 480px) { .qtile { padding: 12px; } .qtile span { display: none; } .qtile b { font-size: 14px; } }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .topics { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.topic { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; transition: transform 0.25s var(--ease), box-shadow 0.25s; display: flex; flex-direction: column; }
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.topic .art { aspect-ratio: 16 / 9; }
.topic .tx { padding: 12px 14px 14px; }
.topic b { display: block; font-size: 15.5px; }
.topic span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.prog { height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); margin-top: 10px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.foot-note { margin: 30px 6px 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.8; }
.foot-note a { color: var(--accent); font-weight: 600; }

/* ============ 主题页 ============ */
.topic-head { display: flex; align-items: center; gap: 14px; margin: 4px 4px 18px; }
.topic-head .e { font-size: 30px; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); }
.topic-head h1 { margin: 0; font-size: 24px; }
.topic-head p { margin: 0; color: var(--muted); font-size: 14px; }
.clist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .clist { grid-template-columns: 1fr; } }
.citem { display: grid; grid-template-columns: 120px 1fr; gap: 0; overflow: hidden; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; transition: transform 0.2s var(--ease); }
.citem:active { transform: scale(0.99); }
.citem .art { height: 100%; aspect-ratio: auto; }
.citem .tx { padding: 14px 16px; min-width: 0; }
.citem b { display: block; font-size: 15.5px; line-height: 1.45; }
.citem span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.citem .read { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 650; color: var(--c); }

/* ============ 卡片详情 ============ */
.card-view { max-width: 640px; margin: 0 auto; touch-action: pan-y; }
.card { overflow: hidden; padding: 0; border-radius: 28px; }
.card .art { aspect-ratio: 16 / 9; }
.card .inner { padding: 22px 24px 24px; }
.card .tagline { display: flex; align-items: center; gap: 8px; }
.card .tag { font-size: 12.5px; font-weight: 650; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); padding: 3px 10px; border-radius: 99px; }
.card .fav { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s; }
.card .fav svg { width: 22px; height: 22px; }
.card .fav[aria-pressed="true"] { color: #f07a8a; }
.card .fav[aria-pressed="true"] svg { fill: currentColor; }
.card .fav:active { transform: scale(0.85); }
.card h1 { margin: 12px 0 2px; font-size: 24px; line-height: 1.4; letter-spacing: 0.01em; }
.card .sub { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.card .body p { margin: 0 0 12px; color: var(--text-2); }
.card .body ul, .card .body ol { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.card .body li { position: relative; padding: 9px 14px 9px 38px; border-radius: 14px; background: color-mix(in srgb, var(--c) 8%, var(--surface-2)); color: var(--text-2); font-size: 15px; line-height: 1.55; }
.card .body ul li::before { content: ""; position: absolute; left: 17px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.card .body ol { counter-reset: s; }
.card .body ol li { counter-increment: s; }
.card .body ol li::before { content: counter(s); position: absolute; left: 10px; top: 9px; width: 21px; height: 21px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.try { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--c) 45%, transparent); }
.try b { display: block; font-size: 13px; color: var(--c); letter-spacing: 0.06em; margin-bottom: 2px; }
.try p { margin: 0; color: var(--text); font-size: 15px; }
.key { margin: 20px 0 0; text-align: center; font-size: 16.5px; font-weight: 650; line-height: 1.6; color: var(--text); }
.key::before, .key::after { content: "“"; color: var(--c); font-size: 26px; line-height: 0; vertical-align: -8px; margin-right: 4px; font-family: Georgia, serif; }
.key::after { content: "”"; margin: 0 0 0 4px; }
.tool-link { margin-top: 18px; display: flex; justify-content: center; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pager .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager .btn { min-width: 108px; }
.swipe-hint { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
@media (hover: hover) { .swipe-hint { display: none; } }
.slide-l { animation: slideL 0.35s var(--ease); }
.slide-r { animation: slideR 0.35s var(--ease); }
@keyframes slideL { from { opacity: 0; transform: translateX(28px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-28px); } }

/* ============ 练习 ============ */
.tools { display: grid; gap: 14px; }
.tool-tile { display: grid; grid-template-columns: 150px 1fr; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; }
.tool-tile .art { height: 100%; aspect-ratio: auto; }
.tool-tile .tx { padding: 18px 20px; }
.tool-tile b { font-size: 17px; }
.tool-tile p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
@media (max-width: 480px) { .tool-tile { grid-template-columns: 110px 1fr; } .tool-tile .tx { padding: 14px 16px; } }

.breathe { text-align: center; }
.b-stage { position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 18px auto 8px; display: grid; place-items: center; }
.b-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.b-ball {
  width: 100%; height: 100%; border-radius: 50%; transform: scale(0.42);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.7), transparent 45%), linear-gradient(135deg, #7fd8b7, #8ec2f5 60%, #f7c3a6);
  box-shadow: 0 30px 60px -20px rgba(63, 174, 134, 0.55), inset 0 -10px 30px rgba(255, 255, 255, 0.25);
  transition-property: transform; transition-timing-function: ease-in-out;
}
[data-theme="dark"] .b-ball { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%), linear-gradient(135deg, #2f9f7a, #4a83c4 60%, #c4806a); }
.b-text { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; pointer-events: none; }
.b-text b { font-size: 26px; font-weight: 750; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18); letter-spacing: 0.1em; }
.b-text span { font-size: 15px; color: rgba(255, 255, 255, 0.9); font-variant-numeric: tabular-nums; }
.b-meta { color: var(--muted); font-size: 14px; min-height: 24px; }
.b-ctrl { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; }

.ground { text-align: center; max-width: 520px; margin: 0 auto; }
.g-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.g-steps i { width: 28px; height: 6px; border-radius: 99px; background: var(--surface-2); transition: background 0.3s; }
.g-steps i.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.g-icon { font-size: 54px; line-height: 1; margin: 8px 0; }
.g-title { font-size: 24px; font-weight: 750; margin: 6px 0 4px; }
.g-hint { color: var(--text-2); font-size: 15px; margin: 0 auto; max-width: 380px; }
.g-dots { display: flex; justify-content: center; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.g-dots button { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent); font-weight: 700; color: var(--muted); transition: all 0.25s var(--ease); }
.g-dots button.on { border-style: solid; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; transform: scale(1.06); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 650; color: var(--text-2); }
.field > span small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.input { width: 100%; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; font-size: 16px; line-height: 1.6; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface-solid); }
textarea.input { min-height: 72px; }
.range { display: flex; align-items: center; gap: 12px; }
.range input { flex: 1; accent-color: var(--accent); }
.range b { min-width: 2.6em; text-align: right; font-variant-numeric: tabular-nums; color: var(--accent); }
.traps { display: flex; flex-wrap: wrap; gap: 8px; }
.traps button { padding: 5px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1.5px solid transparent; }
.traps button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rec { border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.rec + .rec { margin-top: 10px; }
.rec > button { width: 100%; text-align: left; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.rec .d { font-size: 12.5px; color: var(--muted); }
.rec .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec .mid { flex: 1; min-width: 0; }
.rec .delta { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.rec .detail { display: none; padding: 0 16px 16px; }
.rec.open .detail { display: block; }
.rec dl { margin: 0; display: grid; gap: 10px; }
.rec dt { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.rec dd { margin: 0; font-size: 15px; color: var(--text-2); white-space: pre-wrap; }
.empty { text-align: center; padding: 30px 12px; color: var(--muted); font-size: 14.5px; }
.empty .emo { font-size: 38px; display: block; margin-bottom: 6px; }

/* ============ 关于 ============ */
.about p { margin: 0 0 10px; color: var(--text-2); font-size: 15px; }
.hotline { display: grid; gap: 8px; margin-top: 10px; }
.hotline a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.hotline a b { font-size: 15px; }
.hotline a span { font-size: 12.5px; color: var(--muted); display: block; }
.hotline a em { font-style: normal; font-weight: 750; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.warn { border: 1.5px solid color-mix(in srgb, #f08a8a 45%, transparent); background: color-mix(in srgb, #f08a8a 8%, var(--surface)); }
.set-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; padding-bottom: 0; }
.set-row .lbl { flex: 1; min-width: 160px; }
.set-row .lbl b { display: block; font-weight: 650; }
.set-row .lbl span { font-size: 13px; color: var(--muted); }
.stack > * + * { margin-top: 14px; }
.panel h2 { margin: 0 0 10px; font-size: 17px; }

.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); transition: all 0.3s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .toast { bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); } }
@media (max-width: 480px) {
  main { padding-top: 14px; }
  .panel { padding: 16px; border-radius: 22px; }
  .card .inner { padding: 18px 18px 20px; }
  .card h1 { font-size: 22px; }
  .hello h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
