:root{--bg: #FBFAF7;--ink: #1C1C1A;--ink-2: #4A4945;--muted: #6B6A66;--faint: #A3A29D;--line: #E6E3DC;--line-2: #EEEBE4;--track: #EFECE6;--dim: #E7E3DB;--dim-ink: #B9B4AA;--highlight: #F6ECC9;--highlight-ink: #5C5646;--danger: #B5382C;--behind: #B4542E;--pearl: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #E9DDF2 45%, #B9A6D9 100%);--pearl-edge: #CDBFE4;--pearl-glow: rgba(185, 166, 217, .8);--raised-shadow: 0 4px 14px rgba(28, 28, 26, .08);--font: "Nunito Sans", ui-rounded, -apple-system, "Segoe UI", system-ui, sans-serif;--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px);color-scheme:light}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font)}body{min-height:100dvh;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;background:none;border:none;padding:0;cursor:pointer}input,textarea,select{font:inherit;color:inherit}:focus-visible{outline:2px solid #85A9F3;outline-offset:2px;border-radius:8px}.app{max-width:430px;margin:0 auto;min-height:100dvh;position:relative;background:var(--bg)}.screen{padding:calc(20px + var(--safe-t)) 0 calc(120px + var(--safe-b));min-height:100dvh}.pad{padding-left:24px;padding-right:24px}.stack{display:flex;flex-direction:column}.row{display:flex;align-items:center}.between{justify-content:space-between}.grow{flex:1;min-width:0}.center{text-align:center}.kicker{font-size:14px;color:var(--muted)}.title{margin:0;font-size:44px;font-weight:800;line-height:1;letter-spacing:-.03em}.title-md{margin:0;font-size:36px;font-weight:800;line-height:1.05;letter-spacing:-.03em}.lbl{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.hint{font-size:12px;color:var(--muted);line-height:1.45}.muted{color:var(--muted)}.b{font-weight:800}.hdr{padding:32px 24px 14px;display:flex;flex-direction:column;gap:14px}.hdr-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.pills{display:flex;align-items:center;height:44px;border-radius:22px;background:#fff;border:1px solid var(--line-2);box-shadow:0 2px 10px #1c1c1a0d;flex:none}.pills button,.pills a{width:46px;height:42px;display:flex;align-items:center;justify-content:center}.pills .sep{width:1px;height:20px;background:var(--line-2)}.back{font-size:15px;font-weight:600;min-height:44px;display:inline-flex;align-items:center}.seg{display:flex;gap:2px;font-size:14px;background:var(--track);border-radius:999px;padding:3px;width:fit-content}.seg>*{padding:7px 15px;border-radius:999px;color:var(--muted);min-height:34px;display:flex;align-items:center;justify-content:center;gap:8px}.seg>.on{background:#fff;color:var(--ink);font-weight:800;box-shadow:0 1px 4px #1c1c1a1f}.life-bar>.seg{flex:none}.life-bar>.seg>*{padding:7px 13px}.seg.full{width:100%;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:4px}.seg.full>*{min-height:44px;font-weight:600}.card{background:#fff;border:1px solid var(--line);border-radius:24px}.raised{background:#fff;border:1px solid var(--line-2);box-shadow:var(--raised-shadow)}.btn{min-height:44px;padding:0 18px;border-radius:999px;background:#fff;border:1px solid var(--line-2);box-shadow:var(--raised-shadow);font-size:15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.lg{min-height:56px;font-size:16px;width:100%}.btn.sm{min-height:32px;padding:0 12px;font-size:12px;box-shadow:0 3px 10px #1c1c1a14}.btn.md{min-height:40px;padding:0 16px;font-size:14px}.btn.danger{color:#fff;background:var(--danger);border-color:var(--danger)}.btn[disabled]{opacity:.45;box-shadow:none}.link{font-size:14px;color:var(--muted);min-height:44px;display:inline-flex;align-items:center}.dot{display:inline-block;border-radius:50%;flex:none}.pearl{background:var(--pearl)}@keyframes breathe{0%,to{transform:scale(.85);opacity:.7}50%{transform:scale(1.25);opacity:1}}.breathe{animation:breathe 3s ease-in-out infinite}@keyframes glow{0%,to{box-shadow:0 0 6px 1px #b9a6d999}50%{box-shadow:0 0 14px 4px #b9a6d9f2}}.glow{animation:glow 3s ease-in-out infinite}.days{padding:0 16px;display:flex;flex-direction:column;gap:8px}.day{display:grid;grid-template-columns:74px 1fr;align-items:center;column-gap:12px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:18px;text-align:left;width:100%;min-height:64px}.day.quiet{background:transparent;border-color:var(--line-2);min-height:52px;padding:8px 14px}.day.ghost{background:transparent;border:1px dashed var(--line);min-height:48px;padding:8px 14px}.day.today{background:var(--highlight);border-color:var(--highlight)}.dn{font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--muted);line-height:1.2}.dn .big{display:block;font-size:24px;font-weight:800;color:var(--ink);letter-spacing:-.02em}.it{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;min-height:24px}.q{font-size:12px;font-weight:400;color:var(--muted)}.tabbar{position:fixed;left:50%;transform:translate(-50%);bottom:calc(18px + var(--safe-b));width:min(398px,calc(100% - 32px));height:64px;border-radius:32px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:space-around;padding:0 8px;z-index:20}.tab{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;color:var(--muted);min-width:64px;min-height:44px;justify-content:center}.tab.on{color:var(--ink);font-weight:800}.backdrop{position:fixed;inset:0;background:#1c1c1a2e;z-index:40;animation:fade .2s ease-out}.sheet{position:fixed;left:50%;transform:translate(-50%);bottom:0;width:100%;max-width:430px;max-height:92dvh;overflow:auto;background:var(--bg);border-radius:28px 28px 0 0;padding:12px 24px calc(28px + var(--safe-b));z-index:41;display:flex;flex-direction:column;gap:14px;animation:up .28s cubic-bezier(.2,.8,.3,1)}.grab{width:40px;height:4px;border-radius:2px;background:#d6d2c9;align-self:center;flex:none}.sheet-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:-4px -8px 0}.sheet-bar>:first-child{justify-self:start}.sheet-bar>:last-child{justify-self:end}.sheet-bar .t{font-size:17px;font-weight:800}.sheet-bar a,.sheet-bar button{min-height:44px;padding:0 8px;display:flex;align-items:center;font-size:15px}.menu{position:fixed;z-index:41;top:calc(96px + var(--safe-t));right:max(16px,calc(50% - 199px));width:286px;background:#fff;border:1px solid var(--line-2);border-radius:24px;box-shadow:0 18px 50px #1c1c1a29;padding:8px;display:flex;flex-direction:column;animation:pop .18s ease-out}.menu-item{display:flex;align-items:center;gap:14px;min-height:58px;padding:8px 14px;border-radius:16px;text-align:left;width:100%}.menu-item:active{background:#f6f4ef}.menu-ic{width:36px;height:36px;border-radius:18px;background:var(--bg);border:1px solid var(--line-2);display:flex;align-items:center;justify-content:center;flex:none}@keyframes up{0%{transform:translate(-50%,40px);opacity:0}to{transform:translate(-50%);opacity:1}}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes pop{0%{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}.fld{display:flex;flex-direction:column;gap:8px}.inp{font-size:16px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;min-height:50px;width:100%}.inp:focus{outline:none;border-color:#b9b4aa}.inp::placeholder{color:#c4c0b7;font-weight:400}textarea.inp{resize:none;line-height:1.4}fieldset{border:none;padding:0;margin:0;min-width:0}legend{padding:0;margin-bottom:8px}.step{width:44px;height:44px;border-radius:22px;border:1px solid var(--line);background:#fff;font-size:20px;flex:none}.chip{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--muted);background:#fff;border:1px solid var(--line-2);border-radius:999px;padding:5px 11px 5px 8px}.opt{width:100%;min-height:48px;padding:6px 14px;border-radius:16px;display:flex;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid var(--line)}.goal-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:16px 16px 14px 18px;display:flex;flex-direction:column;gap:12px}.rec{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);min-height:32px}.year-grid{padding:0 16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.mini{padding:8px 6px 10px;border-radius:16px;display:flex;flex-direction:column;gap:8px;text-align:left}.mini.now{background:var(--highlight)}.key{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--ink-2);white-space:nowrap}.toast{position:fixed;left:50%;transform:translate(-50%);top:calc(14px + var(--safe-t));z-index:60;background:#fff;border:1px solid var(--line-2);box-shadow:0 6px 20px #1c1c1a1a;border-radius:18px;padding:10px 16px;font-size:14px;font-weight:700;max-width:360px;animation:pop .2s ease-out}.banner{margin:0 16px 10px;background:var(--highlight);color:var(--highlight-ink);border-radius:16px;padding:10px 14px;font-size:13px;line-height:1.4}@keyframes sparkle-in{0%{transform:scale(.2) rotate(-40deg);opacity:0}70%{transform:scale(1.25) rotate(8deg);opacity:1}to{transform:none;opacity:1}}.sparkle-in{display:inline-flex;animation:sparkle-in .9s .25s cubic-bezier(.3,.7,.3,1) both}.welcome{min-height:100dvh;padding:calc(12px + var(--safe-t, 0px)) 24px calc(36px + var(--safe-b));display:flex;flex-direction:column;text-align:center}.welcome-mid{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:0 8px}.welcome-foot{display:flex;flex-direction:column;align-items:center;gap:10px}@keyframes ob-pop{0%{transform:scale(0);opacity:0}70%{transform:scale(1.15);opacity:1}to{transform:none;opacity:1}}@keyframes ob-rise{0%{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}@keyframes ob-draw{0%{stroke-dashoffset:120;opacity:0}to{stroke-dashoffset:0;opacity:1}}.ob-pop{transform-box:fill-box;transform-origin:center;animation:ob-pop .45s cubic-bezier(.3,.7,.3,1) both}.ob-rise{animation:ob-rise .6s ease-out both}.ob-draw{animation:ob-draw 1s .2s ease-out both}@media(prefers-reduced-motion:reduce){.ob-pop,.ob-rise,.ob-draw,.sparkle-in,.breathe,.glow,.sheet,.backdrop,.menu,.toast{animation:none!important}}.sheet>*{flex-shrink:0}@keyframes from-left{0%{transform:translate(-28px);opacity:0}to{transform:none;opacity:1}}@keyframes from-right{0%{transform:translate(28px);opacity:0}to{transform:none;opacity:1}}.slide-from-left{animation:from-left .22s ease-out}.slide-from-right{animation:from-right .22s ease-out}@media(prefers-reduced-motion:reduce){.slide-from-left,.slide-from-right{animation:none!important}}@keyframes peek{0%{transform:none}35%{transform:translate(26px)}60%{transform:translate(-4px)}to{transform:none}}.peek{animation:peek .9s cubic-bezier(.3,.7,.3,1)}@media(prefers-reduced-motion:reduce){.peek{animation:none!important}}
