:root{color-scheme:light;--ink:#2c3440;--ink-soft:#506775;--muted:#6e8997;--sky:#d7effa;--sky-strong:#91cde8;--blue:#5fabc9;--blue-dark:#366b86;--line:#c6dde7;--danger:#a04d5b;--card:rgba(255,255,255,.94);--shadow:0 8px 28px rgba(83,135,159,.09);--radius:18px;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;min-height:100vh;color:var(--ink);background:#e6f5fb;font-size:16px;line-height:1.55}button,input,textarea{font-family:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.46}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #4195be;outline-offset:2px}button,input,textarea{font-size:16px}input,textarea{color:var(--ink)}input[type="checkbox"],input[type="radio"]{accent-color:#67a9c8}
.site-bg{position:fixed;inset:0;background-image:linear-gradient(rgba(255,255,255,.16),rgba(255,255,255,.15)),url('./assets/background.png');background-position:center;background-size:cover;z-index:-1;pointer-events:none}.app-shell{width:100%;max-width:540px;min-height:100vh;margin:0 auto;background:rgba(249,253,254,.50);box-shadow:0 0 60px rgba(44,92,120,.06)}[hidden]{display:none!important}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.36rem,4.7vw,1.75rem);line-height:1.38;letter-spacing:-.04em}h2{font-size:1.02rem;letter-spacing:-.02em}h3{font-size:.96rem}p{margin-bottom:12px}.help{font-size:.86rem;color:var(--ink-soft);line-height:1.7}.small,.micro{font-size:.75rem;color:var(--muted);line-height:1.65}.hint{font-size:.77rem;color:var(--muted);font-weight:400}.eyebrow,.mini-brand{font-size:.7rem;letter-spacing:.09em;color:#6295ae;font-weight:700}.mini-brand{font-size:.6rem;letter-spacing:.12em}.label-muted{display:block;color:var(--muted);font-size:.74rem;line-height:1.8}
label{display:block;font-size:.88rem;font-weight:650;color:var(--ink-soft);margin-bottom:7px}input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea{width:100%;max-width:100%;border:1px solid #c7d9e4;border-radius:12px;padding:12px 13px;background:rgba(255,255,255,.98);min-height:48px;outline:none;appearance:none;-webkit-appearance:none}input:focus,textarea:focus{border-color:#74b8d3;box-shadow:0 0 0 3px rgba(116,184,211,.17)}textarea{resize:vertical;line-height:1.6;min-height:74px}input[type="file"]{display:block;width:100%;font-size:.85rem;padding:10px 0;color:var(--ink-soft)}form>label:not(:first-child),.settings-section>label:not(:first-child){margin-top:14px}form>button{margin-top:18px}
.primary,.secondary,.danger-outline,.mode-btn,.icon-button,.text-btn{border-radius:12px;border:1px solid transparent;min-height:44px;padding:11px 14px;font-weight:700;transition:background .18s ease,transform .18s ease}.primary{background:#87c3db;color:#234d61;box-shadow:0 4px 13px rgba(71,150,186,.18)}.primary:hover{background:#6bb1d0}.secondary{background:#f1f9fc;color:#386a80;border-color:#bbdbe9}.secondary:hover{background:#e0f1f8}.danger-outline{background:#fffafa;color:var(--danger);border-color:#edd0d4}.danger-outline:hover{background:#fff1f4}.text-btn{padding:7px 9px;background:transparent;border:0;color:#487c95;font-size:.83rem;text-decoration:underline;text-underline-offset:3px}.full{width:100%}.compact{padding:8px 11px;min-height:40px;font-size:.81rem}.large{padding:16px;font-size:1.02rem}.icon-button{border:1px solid #d6e7ed;background:rgba(255,255,255,.8);color:#5e8195;display:inline-flex;align-items:center;justify-content:center;width:43px;height:43px;padding:0;font-size:1.4rem;line-height:1}
.auth-view{margin:clamp(30px,8vh,100px) 18px 40px;max-width:520px;min-height:460px;padding:26px 23px 22px;text-align:center}.auth-logo{margin-bottom:12px}.auth-logo img{border-radius:22px;box-shadow:0 6px 15px rgba(96,168,199,.13)}.auth-view h1{margin:0 0 7px}.auth-subtitle{font-size:.9rem;color:#688b9e;line-height:1.6;margin-bottom:24px}.auth-view h2{text-align:left}.auth-view form,.auth-view .help,.auth-view label{text-align:left}.auth-view label{margin-top:13px}.auth-view button.full{margin-top:17px}.auth-foot{margin:28px 4px 0}.notice{background:#fff4ef;border:1px solid #f5d0bb;color:#925635;padding:11px;border-radius:10px;margin-bottom:15px;font-size:.85rem;text-align:left}.consent{display:flex!important;align-items:center;gap:10px;text-align:left;margin-top:16px!important;line-height:1.5;font-weight:500;font-size:.86rem}.consent input{width:20px;height:20px;flex:none}.recovery-code{background:#eff8fa;padding:19px 12px;border:1px dashed #8ebdd0;border-radius:14px;color:#275c72;font-size:clamp(.92rem,3.3vw,1.12rem);font-weight:700;line-height:2.1;letter-spacing:.04em;overflow-wrap:anywhere;user-select:all}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:15px 19px 12px;padding-top:calc(14px + env(safe-area-inset-top,0px));background:rgba(244,251,254,.94);border-bottom:1px solid rgba(184,215,229,.85);position:sticky;top:0;z-index:20;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.topbar strong{font-size:.96rem;line-height:1.4}.top-actions{display:flex;gap:9px}.page{padding:21px 17px 46px;min-height:70vh}.page-intro{padding:4px 6px 8px}.page-intro .eyebrow{margin-bottom:6px}.page-intro h1{margin-bottom:9px}.page-intro>p:last-child{font-size:.86rem;line-height:1.7;color:#647f90;max-width:420px}.page>.panel{margin-bottom:15px}
.affirmations{display:grid;gap:15px;margin:20px 0 28px}.affirmation{display:flex;align-items:center;gap:13px;min-height:85px;background:rgba(247,252,255,.94);border:1px solid #b8dbea;border-radius:19px;padding:18px 17px;box-shadow:0 5px 16px rgba(104,165,191,.065);opacity:0;transform:translateX(-28px);transition:opacity 1.45s ease,transform 1.45s cubic-bezier(.2,.78,.28,1)}.affirmation.in-view{opacity:1;transform:translateX(0)}.affirm-num{flex:none;width:37px;height:37px;border-radius:50%;display:grid;place-items:center;background:#91cde8;color:#fff;font-weight:700;font-size:.93rem}.affirmation p{font-weight:650;font-size:clamp(.92rem,3.7vw,1.03rem);line-height:1.65;margin:0;letter-spacing:-.025em}.watermark{margin:28px 0 0 5px;height:104px;width:112px;opacity:.26;pointer-events:none}.watermark img{width:100%;height:100%;object-fit:contain;object-position:left top}.page-home>.primary{margin-top:20px}
.bottomnav{position:sticky;bottom:0;z-index:25;display:grid;grid-template-columns:repeat(3,1fr);background:rgba(255,255,255,.96);border-top:1px solid #d6e7ef;padding:6px 8px calc(5px + env(safe-area-inset-bottom,0px));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.nav-item{border:0;background:transparent;color:#7491a0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:56px;border-radius:13px;font-weight:650}.nav-item span{font-size:1.45rem;line-height:1.2}.nav-item small{font-size:.73rem}.nav-item.is-active{background:#e8f6fb;color:#327a9e}
.date-panel{padding:16px}.date-panel label{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.date-wrap{display:flex;align-items:center;gap:9px}.date-wrap input{flex:1;min-width:0;font-weight:700;color:#3d6880}.graph-panel,.zoom-panel,.notes-panel{padding:17px 14px}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.section-heading h2,.zoom-panel h2{margin:0 0 4px}.section-heading .hint{margin:0}.pill{display:inline-block;border-radius:99px;background:#e3f5fa;color:#4c8199;font-size:.72rem;font-weight:700;padding:5px 10px;white-space:nowrap}.chart{width:100%;height:auto;display:block;overflow:visible}.overview-chart{margin-top:14px;touch-action:pan-y}.zoom-chart{margin:5px auto 0;touch-action:pan-y}.zoom-chart.is-editing{touch-action:none;cursor:crosshair}.chart text{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif}.range-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:13px 0 15px}.range-tab{min-height:43px;font-size:.78rem;background:#f3fafd;border:1px solid #d1e3ed;color:#5d8195;border-radius:10px;padding:6px 3px;font-weight:700}.range-tab.active{background:#bfe3f1;border-color:#8ec6dc;color:#2f647d}.edit-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.82rem;font-weight:700;color:#477388}.switch-actions{display:flex;border:1px solid #c9e1ec;border-radius:11px;overflow:hidden;background:#eff8fc}.mode-btn{border-radius:0;background:transparent;min-height:38px;border:0;font-size:.8rem;color:#688d9f;padding:6px 14px}.mode-btn.is-active{background:#a6d5e8;color:#20566d}.selected-score{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e0edf3;padding:15px 4px 10px;margin-top:2px}.selected-score strong{display:block;font-size:1.12rem;color:#3b718a}.selected-score>div:last-child{text-align:right}.score-buttons{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.score-button{background:#f5fafc;border:1px solid #bdd8e7;border-radius:12px;height:48px;font-weight:700;color:#5c889b;font-size:1rem}.score-button.is-active{background:#8dc8e0;color:#21495f;border-color:#6cb1ce}.zoom-panel>.text-btn{display:block;margin:7px 0 0 auto}
.hour-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 18px}.hour-chip{background:#f3fafd;border:1px solid #d0e2eb;color:#53788c;min-height:56px;border-radius:11px;padding:6px 7px;display:flex;flex-direction:column;gap:1px;align-items:center;justify-content:center}.hour-chip strong{font-size:.86rem}.hour-chip small{font-size:.66rem;color:#8b9eaa}.hour-chip.is-active{background:#d4edf7;border-color:#83c0dc;color:#2c6682}.hour-chip.has-note small{color:#417e9b}.hour-editor{overflow:hidden;border:1px solid #c2ddea;border-radius:15px;background:rgba(255,255,255,.96)}.hour-editor-head{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px 14px;background:#d7effa}.hour-editor-head h3{margin:0;color:#31576b}.hour-editor>label{margin:15px 14px 6px}.hour-editor>textarea{display:block;width:calc(100% - 28px);margin:0 14px}.editor-actions{padding:14px;display:flex;justify-content:flex-end}.editor-actions .danger-outline{font-size:.8rem;min-height:39px}
.period-panel{background:#eff8fc}.period-panel h2{font-size:1.08rem;margin:1px 0 5px;color:#42768f}.checklists{display:grid;gap:14px;margin-bottom:15px}.check-panel{padding:0;overflow:hidden}.check-panel summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px;cursor:pointer;list-style:none;min-height:76px}.check-panel summary::-webkit-details-marker{display:none}.check-panel summary strong{display:block;font-size:.97rem}.check-panel summary small{display:block;font-size:.75rem;color:var(--muted);margin-top:4px}.chevron{font-size:1.5rem;color:#89b8ce;transition:transform .2s}.check-panel[open] .chevron{transform:rotate(180deg)}.questions{border-top:1px solid #dae7ec;padding:0 13px 10px}.question{padding:17px 2px;border-bottom:1px solid #e0ebf0}.question:last-child{border-bottom:0}.question-title{font-weight:600;font-size:.87rem;line-height:1.65;margin-bottom:10px}.question-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.question-options.four{grid-template-columns:repeat(2,minmax(0,1fr))}.choice{display:flex;align-items:center;gap:7px;border:1px solid #d1e4ed;background:#f8fcfe;border-radius:10px;min-height:42px;padding:8px;font-size:.8rem;cursor:pointer}.choice.selected{background:#e3f5fc;border-color:#94c9e0;color:#2e728f}.choice input{width:18px;height:18px;flex:none;margin:0}.question-clear{display:block;margin:5px 0 0 auto}.info-note{font-size:.83rem;color:#527789;line-height:1.7}.page>.danger-outline.full{margin-top:17px}
.modal-backdrop{position:fixed;inset:0;z-index:50;background:rgba(25,51,65,.43);display:flex;justify-content:center;align-items:center;padding:20px 12px;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.modal{background:#f9fdff;border:1px solid #d1e2ea;border-radius:20px;width:100%;max-width:520px;max-height:90dvh;box-shadow:0 18px 60px rgba(26,68,91,.21);display:flex;flex-direction:column;overflow:hidden}.modal-title{display:flex;justify-content:space-between;align-items:center;padding:14px 19px 12px;border-bottom:1px solid #dde9ee}.modal-title h2{margin:0}.modal-scroll{overflow-y:auto;-webkit-overflow-scrolling:touch;padding:5px 19px 22px}.settings-section{padding:18px 0;border-bottom:1px solid #e0ebef}.settings-section:last-child{border-bottom:0}.settings-section h3{margin:0 0 6px}.settings-section .help{margin-bottom:14px}.settings-section label{margin-top:12px}.settings-section form button,.settings-section button.full{margin-top:13px}.toast{position:fixed;bottom:calc(86px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:60;width:min(440px,calc(100% - 28px));display:flex;align-items:center;gap:12px;justify-content:space-between;border:1px solid #9dc8db;background:#ecf8fc;border-radius:14px;padding:12px 14px;box-shadow:0 9px 35px rgba(43,83,109,.2);font-size:.84rem;color:#2d5d74}.toast button{white-space:nowrap;background:#a4d7eb;border:0;border-radius:10px;color:#245970;font-weight:700;min-height:36px;padding:5px 10px}.save-status{position:fixed;z-index:30;bottom:calc(90px + env(safe-area-inset-bottom,0px));right:max(12px,calc((100vw - 540px)/2 + 12px));padding:5px 10px;background:#f3fbfe;border:1px solid #cee4ee;border-radius:9px;color:#507d91;font-size:.69rem;box-shadow:0 2px 12px rgba(74,130,153,.10)}.privacy-shield{display:none;position:fixed;z-index:100;inset:0;background:#e9f7fc;align-items:center;justify-content:center;flex-direction:column;color:#55889c;font-weight:700;font-size:1.1rem}.privacy-shield div{font-size:2.5rem}.privacy-cover .privacy-shield{display:flex}
@media(min-width:560px){.app-shell{border-left:1px solid #d5e7ed;border-right:1px solid #d5e7ed}.auth-view{margin-left:auto;margin-right:auto}.site-bg{background-position:center}}
@media(max-width:350px){.page{padding:17px 11px 35px}.panel{padding:15px}.graph-panel,.zoom-panel,.notes-panel{padding:14px 10px}.affirmation{padding:14px 10px;gap:9px}.affirm-num{width:32px;height:32px}.topbar{padding-left:12px;padding-right:12px}.range-tabs{gap:4px}.range-tab{font-size:.73rem}.hour-list{gap:5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}.affirmation{opacity:1;transform:none}}
