:root {
  color-scheme: light;
  --bg: #f4efe5;
  --surface: #fffdf7;
  --surface-strong: #ffffff;
  --ink: #1f2924;
  --muted: #687169;
  --line: #d9d0c1;
  --moss: #526958;
  --moss-dark: #34483a;
  --clay: #a96842;
  --gold: #d8b766;
  --danger: #9f3f35;
  --shadow: 0 18px 48px rgba(50, 45, 36, 0.09);
  --radius: 28px;
  --reading-scale: 1;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #18201c;
  --surface: #202a25;
  --surface-strong: #27322c;
  --ink: #f4efe5;
  --muted: #b7beb8;
  --line: #3b4740;
  --moss: #a9b99f;
  --moss-dark: #d9e1d4;
  --clay: #d69b72;
  --gold: #e5c97f;
  --danger: #ef9a8f;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% 8%, rgba(216, 183, 102, .12), transparent 25rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button, [role="button"], input[type="range"] { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .file-button:focus-within {
  outline: 3px solid color-mix(in srgb, var(--gold) 85%, white);
  outline-offset: 3px;
}
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: var(--bg); border-radius: 999px; }
.skip-link:focus { top: 1rem; }
.app-shell { max-width: 1180px; margin: 0 auto; padding: 0 32px 120px; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.spark-balance { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; }
.spark-balance svg, .balance-card svg { width: 19px; height: 19px; fill: color-mix(in srgb, var(--gold) 78%, var(--clay)); stroke: var(--clay); stroke-width: .7; }
.account-button { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; text-align: left; }
.account-button strong, .account-button small { display: block; line-height: 1.25; }
.account-button small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.account-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--moss-dark); color: var(--bg); font-weight: 900; }
.brand { min-height: 56px; display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; padding: 6px; border-radius: 14px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; }
.brand-mark svg { width: 29px; fill: none; stroke: var(--moss-dark); stroke-width: 2; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Noto Serif TC", "Songti TC", serif; letter-spacing: .08em; }
.brand strong { white-space: nowrap; }
.brand small { color: var(--muted); font-size: .75rem; }
.icon-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.view { animation: view-in .28s ease-out; }
.view[hidden] { display: none; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.journey-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 52px; align-items: center; padding: 28px 0 52px; }
.eyebrow { margin: 0 0 10px; color: var(--clay); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: "Noto Serif TC", "Songti TC", serif; line-height: 1.25; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4.8rem); letter-spacing: -.035em; }
h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.25rem); }
.hero-lead { max-width: 36rem; color: var(--muted); font-size: 1.05rem; }
.journey-art { width: 100%; filter: drop-shadow(0 24px 24px rgba(48, 45, 37, .12)); }
.progress-row { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.progress-row strong { white-space: nowrap; font-size: .84rem; }
.progress-track { flex: 1; max-width: 320px; height: 7px; background: color-mix(in srgb, var(--line) 72%, transparent); border-radius: 999px; overflow: hidden; }
.progress-track span { display: block; width: 14%; height: 100%; background: var(--moss); border-radius: inherit; transition: width .35s ease; }
.step-strip { position: sticky; top: 12px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 720px; margin: 0 auto 24px; padding: 8px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(40, 37, 31, .07); backdrop-filter: blur(16px); }
.step-strip button { min-height: 46px; border: 0; background: transparent; border-radius: 999px; color: var(--muted); font-weight: 700; }
.step-strip button:hover { background: var(--surface-strong); color: var(--ink); }
.step-strip span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; border: 1px solid var(--line); border-radius: 50%; font-size: .7rem; }
.paper-card { position: relative; max-width: 820px; margin: 0 auto 24px; padding: clamp(24px, 5vw, 52px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.paper-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
.card-kicker { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 24px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.scripture-reference { color: var(--clay); font-weight: 800; letter-spacing: .08em; }
.scripture-text { font-family: "Noto Serif TC", "Songti TC", serif; font-size: calc(1.12rem * var(--reading-scale)); line-height: 2.05; letter-spacing: .025em; }
.scripture-text p { margin: 1.2em 0; }
.scripture-text sup { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; margin-right: .5em; border: 1px solid var(--line); border-radius: 50%; color: var(--clay); font: 700 .62em/1 system-ui; vertical-align: .2em; }
.context-note { display: flex; gap: 14px; margin-top: 32px; padding: 18px; background: color-mix(in srgb, var(--moss) 8%, var(--surface)); border-left: 4px solid var(--moss); border-radius: 12px; }
.context-note svg { flex: 0 0 auto; width: 22px; fill: none; stroke: var(--moss-dark); stroke-width: 1.7; }
.context-note p { margin: 4px 0 0; color: var(--muted); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.quiet-card > p { color: var(--muted); }
.timer { min-width: 88px; color: var(--moss-dark); font: 700 2rem/1 "Noto Serif TC", serif; text-align: right; }
.timer-actions, .setting-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.primary-button, .secondary-button, .complete-button, .danger-button, .file-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.primary-button, .complete-button { border: 1px solid var(--moss-dark); background: var(--moss-dark); color: var(--bg); }
.primary-button:hover, .complete-button:hover { filter: brightness(1.08); }
.secondary-button, .file-button { border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink); }
.primary-button, .secondary-button, .complete-button, .danger-button, .file-button, button { touch-action: manipulation; }
.primary-button:active, .secondary-button:active, .complete-button:active, .danger-button:active, .file-button:active, button:active { opacity: .78; }
.text-button { min-height: 46px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-weight: 700; }
.save-status { color: var(--muted); font-size: .8rem; }
.prompt-list { display: grid; gap: 28px; }
.prompt-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.prompt-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--gold) 24%, transparent); color: var(--moss-dark); font-weight: 900; }
.prompt-item label { display: block; margin-bottom: 9px; font-weight: 800; }
textarea, input[type="text"] { width: 100%; border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink); border-radius: 14px; }
textarea { min-height: 104px; padding: 14px 16px; resize: vertical; line-height: 1.7; }
textarea, .journal-entry { overflow-wrap: anywhere; }
input[type="text"] { min-height: 50px; padding: 0 16px; }
input[type="email"], select { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink); border-radius: 14px; }
textarea::placeholder, input::placeholder { color: color-mix(in srgb, var(--muted) 74%, transparent); }
.field-label { display: block; margin: 22px 0 8px; font-weight: 800; }
.complete-button { width: 100%; margin-top: 30px; gap: 9px; }
.complete-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.3; }
.complete-button.is-complete { background: transparent; color: var(--moss-dark); }
.page-heading { max-width: 760px; padding: 56px 0 40px; }
.page-heading h1 { font-size: clamp(2rem, 5vw, 4rem); }
.page-heading > p:last-child { max-width: 40rem; color: var(--muted); }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.day-card { min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; text-align: left; box-shadow: 0 8px 24px rgba(40, 37, 31, .05); }
.day-card:hover { transform: translateY(-2px); border-color: var(--moss); }
.day-card.is-complete { background: color-mix(in srgb, var(--moss) 10%, var(--surface)); }
.day-card .day-meta { width: 100%; display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.day-card h2 { margin-top: 22px; font-size: 1.25rem; }
.day-card p { margin: 6px 0 0; color: var(--clay); font-weight: 800; }
.day-status { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: .78rem; }
.journal-list { display: grid; gap: 16px; }
.journal-entry { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.journal-entry header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.journal-entry h2 { font-size: 1.25rem; }
.journal-entry .reference { color: var(--clay); font-weight: 800; }
.journal-entry dl { display: grid; grid-template-columns: 8rem 1fr; gap: 10px 18px; margin: 0; }
.journal-entry dt { color: var(--muted); font-size: .82rem; font-weight: 800; }
.journal-entry dd { margin: 0; white-space: pre-wrap; }
.empty-state { padding: 48px; border: 1px dashed var(--line); border-radius: 24px; color: var(--muted); text-align: center; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.setting-card { width: 100%; margin: 0; }
.setting-card h2 { font-size: 1.35rem; }
.setting-card p, .setting-card label { color: var(--muted); }
.setting-card input[type="range"] { width: 100%; margin-top: 18px; accent-color: var(--moss); }
.danger-zone { grid-column: 1 / -1; }
.danger-button { border: 1px solid color-mix(in srgb, var(--danger) 50%, var(--line)); background: transparent; color: var(--danger); }
.bottom-nav { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); width: min(620px, calc(100% - 28px)); padding: 7px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 48px rgba(30, 28, 24, .16); backdrop-filter: blur(18px); }
.bottom-nav button { min-height: 54px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; background: transparent; border-radius: 18px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.bottom-nav button.is-active { background: var(--moss-dark); color: var(--bg); }
.bottom-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.toast { position: fixed; left: 50%; bottom: 104px; z-index: 80; transform: translate(-50%, 20px); padding: 11px 18px; background: var(--ink); color: var(--bg); border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.auth-screen { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: minmax(320px, 1.15fr) minmax(360px, .85fr); min-height: 100dvh; background: var(--bg); overflow: auto; }
.auth-screen[hidden] { display: none; }
.auth-scene { position: relative; min-height: 100%; overflow: hidden; background: linear-gradient(155deg, #d9cdb8 0%, #f4efe5 54%, #e5d7bc 100%); }
.auth-sun { position: absolute; top: 12%; right: 18%; width: clamp(80px, 12vw, 160px); aspect-ratio: 1; border-radius: 50%; background: #f1d787; box-shadow: 0 0 80px rgba(241, 215, 135, .5); animation: breathe 5s ease-in-out infinite; }
.auth-hill { position: absolute; left: -10%; width: 120%; border-radius: 50% 50% 0 0; transform-origin: center bottom; }
.auth-hill-back { bottom: 13%; height: 54%; background: #80907b; transform: rotate(-4deg); }
.auth-hill-front { bottom: -12%; height: 52%; background: #526958; transform: rotate(5deg); }
.auth-path { position: absolute; left: 47%; bottom: -4%; width: 24%; height: 72%; background: linear-gradient(#f4ddb1, #bd8055); clip-path: polygon(48% 0, 59% 0, 100% 100%, 0 100%); transform: rotate(8deg); opacity: .92; }
.auth-card { align-self: center; width: min(520px, calc(100% - 48px)); margin: 40px auto; padding: clamp(28px, 5vw, 56px); }
.auth-card h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
.auth-card > p:not(.eyebrow) { color: var(--muted); }
.auth-brand { width: 58px; height: 58px; margin-bottom: 30px; }
.demo-accounts { display: grid; gap: 10px; margin-top: 30px; }
.cloud-login { margin-top: 26px; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; }
.cloud-login .field-label { margin-top: 0; }
.cloud-login .primary-button { width: 100%; margin-top: 12px; }
.demo-account { min-height: 72px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; text-align: left; }
.demo-account:hover { border-color: var(--moss); transform: translateY(-1px); }
.demo-account strong, .demo-account small { display: block; }
.demo-account small { color: var(--muted); }
.demo-account .role-badge { color: var(--clay); font-size: .74rem; font-weight: 900; }
.privacy-note { padding: 14px 16px; border-left: 3px solid var(--moss); background: color-mix(in srgb, var(--moss) 7%, transparent); border-radius: 10px; font-size: .82rem; }
@keyframes breathe { 50% { transform: scale(1.05); opacity: .86; } }

.shop-heading, .admin-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.shop-heading > div:first-child, .admin-heading > div:first-child { max-width: 760px; }
.balance-card { flex: 0 0 auto; min-width: 180px; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.balance-card > span { display: block; color: var(--muted); font-size: .78rem; }
.balance-card strong { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 800 2rem/1.2 "Noto Serif TC", serif; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.shop-filters button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-weight: 800; }
.shop-filters button[aria-pressed="true"] { background: var(--moss-dark); color: var(--bg); border-color: var(--moss-dark); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.shop-item { overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: 24px; box-shadow: 0 8px 24px rgba(40, 37, 31, .05); }
.item-preview { position: relative; min-height: 180px; overflow: hidden; background: var(--item-sky, #d9cdb8); }
.item-preview::before, .item-preview::after { content: ""; position: absolute; border-radius: 50% 50% 0 0; }
.item-preview::before { left: -12%; right: 18%; bottom: -20%; height: 72%; background: var(--item-back, #80907b); transform: rotate(5deg); }
.item-preview::after { left: 22%; right: -15%; bottom: -28%; height: 76%; background: var(--item-front, #526958); transform: rotate(-7deg); }
.item-symbol { position: absolute; left: 50%; top: 48%; z-index: 2; width: 58px; height: 58px; transform: translate(-50%, -50%); fill: none; stroke: #fff9ed; stroke-width: 1.6; filter: drop-shadow(0 3px 7px rgba(0,0,0,.2)); }
.item-copy { padding: 20px; }
.item-copy h2 { font-size: 1.25rem; }
.item-copy p { min-height: 3.4em; color: var(--muted); font-size: .88rem; }
.item-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.item-price { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; }
.item-price svg { width: 18px; fill: var(--gold); stroke: var(--clay); }
.item-action { min-height: 44px; padding: 0 15px; border: 1px solid var(--moss-dark); background: var(--moss-dark); color: var(--bg); border-radius: 999px; font-weight: 900; }
.item-action[disabled] { border-color: var(--line); background: transparent; color: var(--muted); cursor: default; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; }
.stat-card span { color: var(--muted); font-size: .78rem; }
.stat-card strong { display: block; margin-top: 6px; font: 800 2rem/1.2 "Noto Serif TC", serif; }
.admin-panel { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.privacy-lock { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.privacy-lock svg { width: 18px; fill: none; stroke: var(--moss); stroke-width: 1.8; }
.member-list { display: grid; gap: 10px; }
.member-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(160px, .8fr) minmax(180px, 1fr) auto; align-items: center; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; }
.member-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.member-identity strong, .member-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-identity small, .member-meta small { color: var(--muted); }
.member-meta strong, .member-meta small { display: block; }
.member-progress { display: flex; align-items: center; gap: 10px; }
.mini-track { flex: 1; min-width: 80px; height: 7px; overflow: hidden; background: var(--line); border-radius: 999px; }
.mini-track span { display: block; height: 100%; background: var(--moss); }
.member-actions { display: flex; gap: 6px; }
.member-actions button { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); background: transparent; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.member-row.is-disabled { opacity: .58; }

dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 26px; box-shadow: 0 28px 100px rgba(20, 23, 20, .28); }
dialog::backdrop { background: rgba(20, 26, 22, .52); backdrop-filter: blur(5px); }
.account-menu, .invite-dialog { padding: 24px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 1.55rem; }
.account-summary { display: flex; align-items: center; gap: 12px; padding: 16px; margin-bottom: 12px; background: color-mix(in srgb, var(--moss) 8%, var(--surface)); border-radius: 16px; }
.account-summary strong, .account-summary small { display: block; }
.account-summary small { color: var(--muted); }
.menu-action { width: 100%; min-height: 64px; display: block; padding: 11px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.menu-action span, .menu-action small { display: block; }
.menu-action span { font-weight: 900; }
.menu-action small { color: var(--muted); }
.form-help { color: var(--muted); font-size: .82rem; }
.dialog-submit { width: 100%; margin-top: 18px; }
.admin-only[hidden] { display: none !important; }

@media (max-width: 760px) {
  .app-shell { padding: 0 16px 112px; }
  .topbar { min-height: 76px; }
  .brand small { display: none; }
  .spark-balance { padding: 0 10px; }
  .account-button > span:last-child { display: none; }
  .account-button { padding-right: 5px; }
  .journey-hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 34px; }
  .journey-art { order: -1; max-height: 220px; }
  .step-strip { top: 8px; border-radius: 20px; }
  .step-strip button { min-width: 0; font-size: .72rem; }
  .step-strip span { display: none; }
  .paper-card { padding: 26px 20px; border-radius: 22px; }
  .section-heading { display: block; }
  .section-heading .timer { margin-top: 14px; text-align: left; }
  .prompt-item { grid-template-columns: 1fr; gap: 7px; }
  .prompt-number { width: 30px; height: 30px; }
  .settings-grid { grid-template-columns: 1fr; }
  .danger-zone { grid-column: auto; }
  .journal-entry dl { grid-template-columns: 1fr; gap: 3px; }
  .journal-entry dd { margin-bottom: 12px; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-scene { min-height: 220px; }
  .auth-card { margin: 0 auto 28px; padding: 28px 4px; }
  .auth-brand { display: none; }
  .shop-heading, .admin-heading { display: block; }
  .balance-card { margin-top: 22px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .member-row { grid-template-columns: 1fr; gap: 10px; }
  .member-actions { justify-content: flex-start; }
  .panel-heading { display: block; }
  .privacy-lock { margin-top: 14px; }
  .bottom-nav button { min-width: 0; }
}

@media (max-width: 460px) {
  .topbar { gap: 8px; }
  .brand > span:last-child { display: none; }
  .brand { padding: 2px; }
  .header-actions { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
