:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#eff8ec;background:#0c211a;font-synthesis:none}
*{box-sizing:border-box}
body{min-width:320px;margin:0;background:radial-gradient(circle at 50% 0,#1a4634 0,#0c211a 52%);color:#eff8ec}
button,input,textarea{font:inherit}
button{cursor:pointer}
.app{position:relative;container-type:inline-size;width:min(100%,390px);height:100dvh;margin:auto;overflow:hidden;background:#14352b;box-shadow:0 18px 44px #03100b99}
.screen{height:calc(100dvh - 64px - env(safe-area-inset-bottom));overflow-y:auto;padding:calc(22px + env(safe-area-inset-top)) 20px 22px;scrollbar-width:none}
.screen::-webkit-scrollbar{display:none}
.screen.auth{display:grid;align-content:center;padding-bottom:40px}
.brand{color:#b6f24a;font-size:12px;font-weight:600;letter-spacing:.14em}
h1,h2,p{margin:0}
h1{margin-top:15px;color:#c9ded0;font-size:25px;font-weight:500;letter-spacing:-.03em}
h2{color:#eff8ec;font-size:18px;font-weight:500}
.lead{margin-top:11px;color:#b8cbbd;font-size:14px;line-height:1.5}
.card{margin-top:20px;padding:16px;border:1px solid #456c57;border-radius:14px;background:#102c22}
.card.compact{margin-top:12px}
.field{display:block;margin-top:14px;color:#c9ded0;font-size:13px}
.field input,.field textarea{display:block;width:100%;margin-top:7px;padding:13px;border:1px solid #456c57;border-radius:12px;outline:0;background:#0d291f;color:#eff8ec}
.field textarea{min-height:112px;resize:vertical;line-height:1.45}
.field input:focus,.field textarea:focus{border-color:#b6f24a}
.primary,.secondary,.practice{width:100%;min-height:47px;border-radius:12px}
.primary{margin-top:18px;border:0;background:#b6f24a;color:#17351f;font-weight:600}
.primary:disabled{background:#567362;color:#b9cabd;cursor:default}
.secondary{margin-top:11px;border:1px solid #6e9079;background:transparent;color:#eff8ec}
.danger{border-color:#a75d58;color:#ffc2bd}
.error{margin-top:13px;color:#ffc2bd;font-size:13px;line-height:1.45}
.muted{color:#9db5a4;font-size:13px;line-height:1.45}
.statusline{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:22px;padding-bottom:13px;border-bottom:1px solid #38624f}
.day{color:#b6f24a;font-size:14px;font-weight:500}
.progress{color:#eff8ec;font-size:22px;font-weight:500;font-variant-numeric:tabular-nums}
.today-screen h1,.diary-screen h1,.profile-screen h1{margin-top:13px;font-size:27px;line-height:1.1}
.today-date{margin-top:8px;color:#b6f24a;font-size:13px;font-weight:500}
.today-deadline{margin-top:17px;color:#a8c0ae;font-size:13px}
.today-progress{margin-top:24px}
.today-progress-figures{display:flex;justify-content:space-between;color:#c9ded0;font-size:13px}
.today-progress-figures strong{color:#b6f24a;font-weight:500}
.today-progress-track{height:7px;margin-top:10px;overflow:hidden;border-radius:6px;background:#315d4a}
.today-progress-track span{display:block;height:100%;border-radius:6px;background:#b6f24a}
.practice-frame{position:relative;margin-top:11px}
.practice-list{display:flex;flex-direction:column;gap:8px;height:252px;overflow-y:auto;overscroll-behavior-y:contain;scroll-snap-type:y mandatory;scrollbar-width:none}
.practice-list::-webkit-scrollbar{display:none}
.practice-frame.has-overflow .practice-list{padding-right:12px}
.practice-rail{position:absolute;right:0;top:0;bottom:0;width:9px;touch-action:none;cursor:pointer;background:#14352b}
.practice-rail-track{position:absolute;left:3px;top:0;bottom:0;width:3px;border-radius:3px;background:#102c22}
.practice-rail-thumb{position:absolute;top:0;left:0;width:3px;min-height:30px;border-radius:3px;background:#6f967c}
.practice-rail:focus-visible{outline:1px solid #b6f24a;outline-offset:2px}
.practice-list::-webkit-scrollbar,.table-wrap::-webkit-scrollbar{width:4px;height:4px}
.practice-list::-webkit-scrollbar-button,.table-wrap::-webkit-scrollbar-button{display:none;width:0;height:0}
.practice-list::-webkit-scrollbar-track,.table-wrap::-webkit-scrollbar-track{background:transparent}
.practice-list::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb{border-radius:4px;background:#91b29a}
.practice{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex:0 0 57px;height:57px;min-height:57px;margin:0;padding:8px 4px;border:0;border-bottom:1px solid #38624f;border-radius:0;background:transparent;color:#eff8ec;text-align:left;font-size:14px;line-height:1.28;scroll-snap-align:start;transition:background-color .18s ease}
.practice::before{content:"";flex:0 0 23px;width:23px;height:23px;border:1px solid #759f83;border-radius:6px;background:#12352b}
.practice.done{border-bottom-color:#38624f;background:#183e2e;color:#d4e6d9}
.practice.done::before{border-color:#b6f24a;background:#b6f24a}
.practice:disabled{cursor:default;opacity:.7}
.complete{margin-top:15px;padding:14px;border:1px solid #b6f24a;border-radius:12px;background:#214d38;text-align:center}
.complete strong{display:block;color:#b6f24a;font-size:15px}
.complete span{display:block;margin-top:5px;color:#d9e9dc;font-size:13px}
.gratitude-button{height:76px;min-height:76px;margin-top:12px;padding:12px;background:#19412f;line-height:1.4;scroll-margin-block:16px}
.gratitude-button.is-celebrating{background:#214d38;border-color:#729b77;cursor:default}
.gratitude-button strong{display:block;margin-bottom:5px;color:#b6f24a;font-size:16px;font-weight:500}
.gratitude-button span{display:block;color:#d4e6d9;font-size:13px}
.nav{position:absolute;z-index:5;left:0;right:0;bottom:0;display:flex;justify-content:space-around;padding:11px 8px calc(13px + env(safe-area-inset-bottom));border-top:1px solid #38624f;background:#102c22}
.nav button{min-width:55px;padding:0;border:0;background:transparent;color:#91aa99;font-size:11px;line-height:1.2;text-align:center}
.nav button svg{display:block;width:17px;height:17px;margin:0 auto 4px;fill:none;stroke:currentColor;stroke-width:1.55}
.nav button.active{color:#b6f24a;font-weight:500}
.group-screen h1{margin-top:13px;font-size:27px;line-height:1.1}
.group-picker{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:47px;margin-top:24px;padding:13px 14px;border:1px solid #456c57;border-radius:12px;background:#102c22;color:#eff8ec;font-size:clamp(10px,3cqw,12px);letter-spacing:-.02em;white-space:nowrap}
.group-picker .group-id{min-width:0;white-space:nowrap}
.group-picker .group-quote{color:#b6f24a}
.group-meta{display:flex;justify-content:space-between;margin-top:16px;color:#a8c0ae;font-size:13px}
.group-meta strong{color:#b6f24a;font-weight:500}
.group-table{--group-cell:32px;position:relative;display:grid;grid-template-columns:135px minmax(0,1fr);grid-template-rows:40px 231px 14px;height:289px;margin:10px -20px 0;overflow:hidden;border-top:1px solid #396551;border-bottom:1px solid #396551;background:#14352b;color:#dcecdf;font-family:Inter,Arial,sans-serif}
.group-fixed-head,.group-fixed-body{display:grid;grid-template-columns:64px 51px;padding-left:20px;background:#14352b;z-index:2;min-width:0}
.group-fixed-head{grid-row:1;grid-column:1;align-items:center;font-size:11px;color:#b8d0bd}
.group-fixed-body{grid-row:2;grid-column:1;grid-auto-rows:var(--group-cell);row-gap:7px;align-content:start;overflow:auto;scrollbar-width:none}
.group-fixed-grid{display:contents}
.group-cell{display:flex;align-items:center;height:var(--group-cell);overflow:hidden;color:#eff8ec;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.group-cell.head{font-size:11px;color:#b8d0bd}
.group-cell.count{justify-content:center;transform:translateX(-3px);color:#c4dbc9}
.group-cell.you{color:#b6f24a}
.group-days-head,.group-days-body{grid-column:2;min-width:0;margin-right:9px;overflow:auto;scrollbar-width:none;overscroll-behavior:contain}
.group-days-head{grid-row:1}
.group-days-body{grid-row:2}
.group-days-grid{display:grid;grid-auto-flow:column;grid-auto-columns:var(--group-cell);column-gap:3px;width:max-content;padding-left:4px}
.group-days-head .group-days-grid{grid-auto-rows:40px}
.group-day{display:grid;place-content:center;justify-items:center;color:#cfe2d3;font-size:10px;line-height:1.2}
.group-day span:first-child{color:#91b69c}
.group-column{display:grid;grid-auto-rows:var(--group-cell);row-gap:7px}
.group-mark{display:grid;place-items:center;height:var(--group-cell);border-radius:7px;background:#1d4937;color:#14352b;font-size:14px;font-weight:500}
.group-mark.done{background:#b6f24a}
.group-mark.missed{background:#bf655c}
.group-table::before{content:"";position:absolute;z-index:3;left:135px;top:0;bottom:14px;width:4px;background:#14352b;pointer-events:none}
.group-table::after{content:"";position:absolute;z-index:2;right:0;top:40px;bottom:14px;width:9px;background:#14352b;pointer-events:none}
.group-rail{position:relative;grid-row:3;grid-column:2;margin-right:9px;overflow:hidden;touch-action:none}
.group-rail-track{position:absolute;left:4px;right:4px;top:5px;height:3px;border-radius:3px;background:#102c22}
.group-rail-thumb{position:absolute;height:3px;border-radius:3px;background:#6f967c}
.group-vertical-rail{position:absolute;z-index:3;top:40px;bottom:14px;right:3px;width:3px;border-radius:3px;background:#102c22}
.group-vertical-thumb{position:absolute;width:3px;min-height:30px;border-radius:3px;background:#6f967c}
.group-table ::-webkit-scrollbar{display:none}
.group-note{margin-top:14px;color:#b6f24a;font-size:13px;line-height:1.4}
.diary-date{margin-top:8px;color:#b6f24a;font-size:13px;font-weight:500}
.diary-form{margin-top:22px}
.diary-question{margin-bottom:13px;font-size:15px;line-height:1.35}
.diary-label{margin-top:18px}
.diary-label textarea{height:92px;min-height:92px;resize:none;font-size:13px;line-height:1.38}
.diary-clear{margin-top:9px;padding:0;border:0;background:transparent;color:#a8c0ae;font-size:12px;text-decoration:underline}
.diary-section-title{margin:21px 0 9px;padding-top:14px;border-top:1px solid #38624f;color:#c9ded0;font-size:13px;font-weight:400}
.record{display:grid;grid-template-columns:8px 58px minmax(0,1fr);gap:9px;align-items:start;width:100%;padding:10px 0;border:0;border-bottom:1px solid #315d4a;background:transparent;color:#eff8ec;text-align:left}
.record:focus-visible{outline:2px solid #b6f24a;outline-offset:2px}
.record .entry-dot{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#b6f24a}
.record strong{color:#c9ded0;font-size:12px;font-weight:400;line-height:1.35}
.record .entry-text{overflow:hidden;color:#c9ded0;font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.diary-record-date{margin-top:25px;color:#b6f24a;font-size:13px;font-weight:500}
.diary-record-score{margin-top:5px;color:#c9ded0;font-size:14px}
.diary-record-text{margin-top:23px;color:#eff8ec;font-size:15px;line-height:1.52;white-space:pre-wrap}
.diary-edit{margin-top:28px}
.rating{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:9px}
.rating button{height:39px;padding:0;border:1px solid #527461;border-radius:10px;background:#183c2b;color:#eff8ec;font-size:14px}
.rating button.active{border-color:#b6f24a;background:#b6f24a;color:#17351f}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}
.fact{padding:13px;border:1px solid #38624f;border-radius:12px;background:#102c22}
.fact strong{display:block;color:#b6f24a;font-size:21px;font-weight:500}
.fact span{display:block;margin-top:4px;color:#a8c0ae;font-size:12px}
.principle{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:20px;color:#b8cbbd;font-size:11px;white-space:nowrap}
.principle strong{color:#b6f24a;font-weight:500}
.principle-caption{margin:8px 0 0;color:#c9ded0;font-size:13px;line-height:1.4;text-align:center}
.profile-screen{padding-bottom:115px}
.profile-cycle{margin-top:26px;padding:13px 14px;border-radius:12px}
.profile-cycle h2{font-size:14px;font-weight:600}
.profile-group-name,.profile-group-detail{margin-top:3px;color:#c9ded0;font-size:12px;line-height:1.35}
.profile-group-name{margin-top:6px}
.profile-open-group{margin-top:12px}
.chronology{margin-top:20px}
.chronology h2{padding:0;border:0;color:#c9ded0;font-size:13px;font-weight:400}
.chronology-list{max-height:240px;overflow-y:auto;padding-right:8px}
.chronology-list::-webkit-scrollbar{width:4px}
.chronology-list::-webkit-scrollbar-button{display:none;width:0;height:0}
.chronology-list::-webkit-scrollbar-thumb{border-radius:4px;background:#91b29a}
.chronology-entry{display:block;width:100%;margin-top:12px;padding:14px;border:1px solid #456c57;border-radius:12px;background:#102c22;color:#eff8ec;text-align:left}
.chronology-entry strong{display:block;font-size:14px;font-weight:600}
.chronology-entry span{display:block;margin-top:6px;overflow:hidden;color:#a8c0ae;font-size:12px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.profile-note-action{position:absolute;z-index:4;right:20px;bottom:78px;left:20px;width:auto;margin:0}
.profile-settings{margin-top:18px;color:#a8c0ae;font-size:12px}
.profile-settings summary{cursor:pointer}
.account-actions{margin-top:10px;padding-top:13px;border-top:1px solid #38624f}
.back-arrow{display:block;width:44px;height:44px;padding:0;border:0;background:transparent;color:#b6f24a;font-size:25px;text-align:left}
.loading{display:grid;place-items:center;min-height:100dvh;color:#b6f24a}
.setup code{display:block;margin-top:12px;padding:12px;overflow:auto;border-radius:10px;background:#081b14;color:#d7eadb;font-size:12px}
@container(max-width:350px){.group-table{--group-cell:calc((100cqw - 154px)/7);grid-template-rows:40px calc(100cqw - 110px) 14px;height:calc(100cqw - 56px)}.group-days-grid{column-gap:1px}.group-day{font-size:9px}.group-picker .group-prefix{display:none}}
@media(max-width:350px){.screen{padding-left:16px;padding-right:16px}.group-table{margin-left:-16px;margin-right:-16px}.rating{gap:2px}.rating button{font-size:11px}}
