.splash{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px}
.splash img{width:220px}

.auth{max-width:440px;margin:0 auto;padding:calc(28px + env(safe-area-inset-top)) 22px 40px}
.auth .logo{width:190px;margin:0 auto 8px;background:var(--warm-white);border-radius:var(--radius);padding:8px}
.auth .tagline{text-align:center;font-family:var(--serif);font-size:1.15rem;color:var(--title);margin-bottom:20px}
.auth h1{font-size:1.15rem;margin-bottom:16px}
.auth .links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:12px}
.principles{text-align:center;color:var(--muted);font-size:.72rem;letter-spacing:.14em;margin-top:22px}

/* Home */
.hero{background:radial-gradient(120% 90% at 100% 0%,rgba(201,162,75,.38),transparent 55%),linear-gradient(160deg,var(--forest-deep),var(--forest-soft));color:#fff;border-radius:0 0 40px 40px;padding:calc(20px + env(safe-area-inset-top)) 20px 84px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-60px;top:30px;width:230px;height:230px;border:1px solid rgba(230,200,121,.28);transform:rotate(45deg);box-shadow:0 0 0 22px rgba(230,200,121,.06)}
.hero-row{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.avatar{width:54px;height:54px;border-radius:50%;border:2px solid var(--gold-soft);background:var(--cream);color:var(--forest);display:grid;place-items:center;font-weight:700;font-size:1.2rem;overflow:hidden;flex:none;text-decoration:none}
.avatar img{width:100%;height:100%;object-fit:cover}
.hello{flex:1;min-width:0}
.hello h1{font-size:1.15rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hello p{font-size:.74rem;opacity:.86}
.bell{position:relative;background:rgba(255,255,255,.14);color:var(--gold-soft)}
.bell b{position:absolute;top:-4px;right:-4px;background:#D2603F;color:#fff;font-size:.62rem;min-width:18px;height:18px;border-radius:99px;display:grid;place-items:center}
.theme-switch{display:flex;background:var(--cream);border-radius:99px;padding:2px;font-size:.64rem;font-weight:700;flex:none}
.theme-switch button{width:30px;height:28px;font-size:.9rem;border-radius:99px;color:var(--forest)}
.theme-switch button[aria-pressed="true"]{background:var(--forest);color:#fff}

.progress-card{margin:-64px 18px 0;position:relative;z-index:2;background:linear-gradient(145deg,#142A1D,#234531);color:#fff;border-radius:28px;padding:20px;box-shadow:0 14px 30px rgba(20,42,29,.32);border:1px solid rgba(230,200,121,.25)}
.progress-top{display:flex;gap:18px;align-items:center}
.ring{width:96px;height:96px;flex:none}
.ring text{fill:#fff;font-weight:700;font-size:22px;font-family:var(--font)}
.progress-card h2{font-size:.9rem;font-weight:500}
.progress-card strong{display:block;font-size:1.12rem;margin:2px 0 10px}
.progress-card strong em{font-style:normal;color:var(--gold-soft)}
.progress-card p.soft{font-size:.76rem;opacity:.82;margin-top:12px}
.progress-card .btn{margin-top:12px;width:100%}

.section{padding:0 20px;margin-top:24px}
.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.section-head h2{font-size:1.02rem;color:var(--title)}

.reminder{display:flex;gap:14px;align-items:center;background:var(--surface-2);border-radius:var(--radius);padding:16px;border-left:4px solid var(--gold)}
.reminder p{font-family:var(--serif);font-size:1.12rem;line-height:1.35}
.reminder small{display:block;color:var(--muted);margin-top:4px;font-size:.72rem}

.quick{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.quick button{white-space:nowrap;min-height:40px;padding:0 15px;border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:.8rem;font-weight:600;color:var(--title);box-shadow:var(--shadow)}

.pager{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.pager::-webkit-scrollbar,.carousel::-webkit-scrollbar,.quick::-webkit-scrollbar{display:none}
.menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-content:start}
.pager .menu-grid{flex:0 0 100%;scroll-snap-align:start;padding:2px 1px 8px}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:98px;padding:10px 3px;border-radius:18px;background:linear-gradient(160deg,var(--surface-2),var(--sage-light));color:var(--forest-deep);text-decoration:none;text-align:center;font-size:.68rem;font-weight:600;line-height:1.25;box-shadow:var(--shadow)}
.tile svg{width:38px;height:38px}
.tile.featured{background:linear-gradient(160deg,var(--forest),var(--forest-deep));color:#fff}
:root[data-theme="teduh"] .tile:not(.featured){background:var(--surface-2);color:var(--text)}
.dots{display:flex;justify-content:center;gap:6px;margin-top:6px}
.dots button{width:20px;height:8px;border-radius:99px;background:var(--beige)}
.dots button[aria-current="true"]{width:42px;background:var(--forest-soft)}
@media (min-width:1024px){.dots button{cursor:pointer}}

.carousel{display:flex;gap:12px;overflow-x:auto;padding:2px 20px 10px;margin:0 -20px;scrollbar-width:none;scroll-padding:0 20px;scroll-snap-type:x proximity}
.stat{flex:0 0 160px;scroll-snap-align:start;border-radius:20px;padding:15px;color:#fff;text-decoration:none;background:linear-gradient(135deg,#142A1D,#2F5A40);box-shadow:var(--shadow)}
.stat:nth-child(even){background:linear-gradient(135deg,#6F855F,#3F6048)}
.stat:nth-child(3n){background:linear-gradient(135deg,#2E312F,#6B5A30)}
.stat h3{font-size:.76rem;font-weight:600;min-height:2.4em}
.stat strong{font-size:1.55rem;display:block}
.stat small{font-size:.68rem;opacity:.85;display:block;min-height:2.6em}

.module-hero{text-align:center;padding:28px 18px}
.module-hero svg{width:74px;height:74px;margin:0 auto 14px}
.module-hero p{color:var(--muted);font-size:.9rem;margin-bottom:14px}
.module-row{display:flex;gap:14px;align-items:center;text-decoration:none;color:var(--text);padding:13px}
.module-row svg{width:40px;height:40px;flex:none}
.module-row strong{display:block;font-size:.9rem;color:var(--title)}
.module-row small{color:var(--muted);font-size:.75rem}
.profile-photo{display:flex;flex-direction:column;align-items:center;gap:10px}
.profile-photo .avatar{width:96px;height:96px;font-size:2rem}
.pref{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.pref label{flex:1;display:flex;align-items:center;gap:10px;font-size:.88rem}
.pref input[type=checkbox]{width:22px;height:22px;accent-color:var(--forest-soft)}
.pref .input{width:122px;min-height:40px;padding:6px 10px}
