:root{font-family:Nunito Sans,Inter,SF Pro Rounded,Aptos,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--text-primary);background:var(--background-app);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--background-app: #eef0ef;--surface-screen: #ffffff;--surface-card: #f8f8f6;--surface-white: #ffffff;--surface-soft-gray: #efefed;--primary-cyan: #bceaf2;--primary-cyan-light: #ddf6fa;--secondary-mint: #ddedbc;--secondary-mint-light: #eef7da;--accent-yellow: #ffe57a;--accent-yellow-light: #fff3b5;--room-section: #f7f7f2;--room-selected: #fbfbf7;--proactivity-section: #bceaf2;--proactivity-selected: #ddf6fa;--health-section: #ddedbc;--health-selected: #eef7da;--knowledge-section: #ffe57a;--knowledge-selected: #fff3b5;--accent-orange: #ff9e6e;--status-success: #88c76b;--status-warning: #f3a641;--status-error: #e87261;--text-primary: #181a1a;--text-secondary: #4c5252;--text-tertiary: #6f7774;--border-subtle: #e7e8e5;--shadow-soft: 0 8px 18px rgb(0 0 0 / .07);--shadow-floating: 0 14px 30px rgb(0 0 0 / .12);--top-height: 84px;--bottom-height: 82px}:root[data-theme=dark]{--background-app: #171b1b;--surface-screen: #202525;--surface-card: #2a3030;--surface-white: #252b2b;--surface-soft-gray: #343b3a;--primary-cyan: #265f69;--primary-cyan-light: #214a51;--secondary-mint: #445b35;--secondary-mint-light: #33472b;--accent-yellow: #c7a837;--accent-yellow-light: #4d4422;--room-section: #2a3030;--room-selected: #323737;--proactivity-section: #214a51;--proactivity-selected: #263f45;--health-section: #33472b;--health-selected: #2f3f2b;--knowledge-section: #4d4422;--knowledge-selected: #3d3826;--text-primary: #f7faf7;--text-secondary: #d4ddd9;--text-tertiary: #a9b5b0;--border-subtle: #3b4441;--shadow-soft: 0 8px 18px rgb(0 0 0 / .22);--shadow-floating: 0 14px 30px rgb(0 0 0 / .34)}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;min-width:320px}button,input,select{font:inherit}button{-webkit-tap-highlight-color:transparent}img{display:block;max-width:100%}.app-shell{position:relative;width:min(100%,480px);min-height:100dvh;margin:0 auto;background:var(--surface-screen);overflow-x:hidden}.screen{min-height:100dvh;padding:calc(var(--top-height) + 12px) 16px calc(var(--bottom-height) + 18px)}.top-bar{position:fixed;z-index:100;top:0;left:50%;transform:translate(-50%);width:min(100%,480px);height:var(--top-height);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:env(safe-area-inset-top) 16px 8px;background:var(--surface-screen);box-shadow:none;overflow:visible;isolation:isolate}.top-bar:before{content:"";position:absolute;z-index:-1;top:-32px;right:0;bottom:0;left:0;background:var(--surface-screen)}.top-logo{width:clamp(118px,34vw,150px);height:64px;object-fit:contain;object-position:left center}:root[data-theme=dark] .top-logo{filter:drop-shadow(0 0 4px rgb(255 255 255 / .12))}.top-actions{justify-self:end;display:inline-flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:0}.top-action-row{display:inline-flex;align-items:center;gap:8px;min-width:0}.top-date{padding:8px 12px;border-radius:999px;background:var(--surface-card);color:var(--text-secondary);font-size:13px;font-weight:800;white-space:nowrap}.icon-button{flex:0 0 auto;width:42px;height:42px;border:0;border-radius:999px;display:grid;place-items:center;color:var(--text-primary);background:var(--surface-card);cursor:pointer}.app-vnumber{margin-right:5px;color:var(--text-tertiary);font-size:9px;font-weight:800;line-height:1;letter-spacing:0;white-space:nowrap}.icon-button:focus-visible,.primary-button:focus-visible,.secondary-button:focus-visible,.score-button:focus-visible,.nav-item:focus-visible{outline:3px solid color-mix(in srgb,var(--primary-cyan) 60%,var(--text-primary));outline-offset:2px}.bottom-nav{position:fixed;z-index:100;left:50%;bottom:12px;transform:translate(-50%);width:min(calc(100% - 24px),448px);min-height:66px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px;border-radius:26px;background:var(--surface-white);box-shadow:var(--shadow-floating);isolation:isolate}.bottom-nav:before{content:"";position:absolute;z-index:-1;left:50%;bottom:-12px;width:min(100vw,480px);height:calc(var(--bottom-height) + 28px);background:var(--surface-screen);box-shadow:none;transform:translate(-50%)}.nav-item{min-width:0;min-height:50px;border:0;border-radius:18px;background:transparent;color:var(--text-secondary);display:grid;place-items:center;gap:2px;font-size:11px;font-weight:800;cursor:pointer}.nav-item:disabled{opacity:.4;cursor:not-allowed}.nav-item.active{color:#fff;background:var(--text-primary)}:root[data-theme=dark] .nav-item.active{color:#181a1a}.nav-icon{width:28px;height:28px;display:grid;place-items:center}.nav-avatar{width:28px;height:28px;border-radius:999px;object-fit:cover}.master-view-bar{position:sticky;z-index:90;top:calc(var(--top-height) - 2px);display:flex;gap:8px;overflow-x:auto;margin:-4px -4px 12px;padding:4px 4px 8px;background:color-mix(in srgb,var(--surface-screen) 94%,transparent)}.master-view-option{flex:0 0 auto;min-height:38px;border:0;border-radius:999px;display:inline-flex;align-items:center;gap:7px;padding:4px 11px 4px 4px;background:var(--surface-card);color:var(--text-secondary);cursor:pointer;font-size:12px;font-weight:900}.master-view-option.active{background:var(--accent-yellow);color:#181a1a}.master-view-option img{width:30px;height:30px;border-radius:999px;object-fit:cover;background:var(--surface-white)}.role-badge{flex:0 0 auto;display:inline-grid;min-height:22px;place-items:center;padding:3px 8px;border-radius:999px;background:var(--text-primary);color:var(--surface-white);font-size:10px;font-weight:950;line-height:1;text-transform:uppercase}.master-view-option .role-badge{min-height:18px;padding:2px 6px;font-size:9px}.loading-screen{min-height:100dvh;display:grid;place-items:center;gap:12px;color:var(--text-secondary)}.loading-screen img{width:min(220px,64vw);height:auto;object-fit:contain}.screen-heading,.section-title,.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.screen-heading{margin-bottom:16px}.screen-heading span,.user-strip span,.stat-card span,.section-title span,.soft-note{color:var(--text-secondary);font-size:13px;font-weight:700}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:32px;font-weight:850}h2{font-size:18px;line-height:23px;font-weight:850}h3{font-size:15px;line-height:20px;font-weight:850}.progress-hero{position:relative;display:grid;justify-items:center;min-height:226px;padding:14px 14px 20px;border-radius:26px;background:var(--primary-cyan)}.progress-hero.tone-green{background:var(--secondary-mint)}.progress-hero.tone-orange{background:var(--accent-yellow)}.progress-hero.tone-red{background:#ffd8d0}.compact-progress{position:fixed;z-index:99;top:calc(var(--top-height) + 10px);left:50%;width:min(calc(100% - 32px),448px);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:38px;margin:0;padding:6px 10px;border-radius:999px;background:var(--surface-white);box-shadow:0 4px 10px #0000000f;opacity:0;pointer-events:none;transform:translate(-50%,-8px);transition:opacity .16s ease,transform .16s ease}.compact-progress.visible{opacity:1;transform:translate(-50%)}.compact-progress-copy{display:inline-flex;align-items:baseline;gap:5px;min-width:58px}.compact-progress-copy strong{font-size:18px;line-height:18px;font-weight:950}.compact-progress-copy span,.compact-progress em{color:var(--text-secondary);font-size:12px;font-style:normal;font-weight:900}.compact-progress em,.streak-pill,.ranking-metrics small{display:inline-flex;align-items:center;gap:3px}.streak-icon{color:#ff7a1a;fill:#ffbf3d;stroke:#e85d04;stroke-width:2.6}.compact-progress-track{height:9px;overflow:hidden;border-radius:999px;background:var(--surface-soft-gray)}.compact-progress-track span{display:block;height:100%;border-radius:inherit;background:var(--status-success)}.compact-progress.tone-orange .compact-progress-track span{background:var(--status-warning)}.compact-progress.tone-red .compact-progress-track span{background:var(--status-error)}.compact-progress.tone-neutral .compact-progress-track span{background:var(--text-tertiary)}.streak-pill{position:absolute;top:14px;right:14px;border-radius:999px;background:var(--surface-white);padding:7px 10px;font-size:13px;font-weight:850}.rules-button{position:absolute;left:14px;top:14px;min-height:32px;padding:0 12px;border:0;border-radius:999px;background:linear-gradient(180deg,#8be200,#66be00);color:#fff;box-shadow:inset 0 2px #ffffff3d,0 4px 8px #5496002e;cursor:pointer;font-size:12px;font-weight:950;letter-spacing:0}.semi-progress{width:min(260px,82vw);height:138px;margin-top:12px}.semi-progress svg{width:100%;height:100%;overflow:visible}.semi-progress path{fill:none;stroke-linecap:round;stroke-width:16}.semi-progress .track{stroke:color-mix(in srgb,var(--surface-white) 70%,transparent)}.semi-progress .fill{stroke:var(--status-success);stroke-dasharray:calc(var(--progress) * 1) 100}.semi-progress[data-tone=orange] .fill{stroke:var(--status-warning)}.semi-progress[data-tone=red] .fill{stroke:var(--status-error)}.semi-progress[data-tone=neutral] .fill{stroke:var(--text-tertiary)}.score-copy{margin-top:-40px;text-align:center}.score-copy strong{display:inline-flex;align-items:baseline;justify-content:center;gap:3px;font-size:48px;line-height:48px;font-weight:900}.score-copy strong small{font-size:11px;line-height:1;font-weight:400}.score-copy span{display:block;margin-top:2px;font-size:13px;font-weight:850}.score-copy p{max-width:100%;margin-top:7px;color:var(--text-secondary);font-size:11px;line-height:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-strip{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;margin:14px 0 18px;padding:12px;border-radius:22px;background:var(--surface-card)}.user-strip img{width:46px;height:46px;border-radius:999px;object-fit:cover;background:var(--surface-white)}.user-strip strong{display:block;font-size:17px}.user-level{display:inline-grid;grid-template-columns:28px auto;align-items:center;gap:6px;min-height:36px;max-width:148px;padding:4px 8px 4px 4px;border-radius:999px;background:var(--surface-white)}.user-level img{width:28px;height:28px;border-radius:999px;object-fit:contain;background:var(--surface-screen)}.user-level span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-secondary);font-size:11px;font-weight:900}.habit-section,.settings-panel,.adjustment-log,.habit-comments-panel,.setup-card,.no-user{margin-top:12px;border-radius:24px;background:var(--surface-card);padding:10px}.habit-section.category-room{background:var(--room-section)}.habit-section.category-proactivity{background:var(--proactivity-section)}.habit-section.category-health{background:var(--health-section)}.habit-section.category-knowledge{background:var(--knowledge-section)}.habit-list{display:grid;gap:6px;margin-top:8px}.habit-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:7px;align-items:start;min-height:58px;padding:7px;border-radius:18px;background:var(--surface-white)}.habit-row.category-room.selected{background:var(--room-selected)}.habit-row.category-proactivity.selected{background:var(--proactivity-selected)}.habit-row.category-health.selected{background:var(--health-selected)}.habit-row.category-knowledge.selected{background:var(--knowledge-selected)}.habit-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.score-button{min-width:0;min-height:44px;border:0;border-radius:14px;background:var(--primary-cyan-light);color:var(--text-primary);display:grid;justify-items:center;align-content:center;gap:3px;cursor:pointer}.habit-row.category-room .score-button.full{background:var(--room-section)}.habit-row.category-proactivity .score-button.full{background:var(--proactivity-section)}.habit-row.category-health .score-button.full{background:var(--health-section)}.habit-row.category-knowledge .score-button.full{background:var(--knowledge-section)}.score-button.partial{background:var(--surface-soft-gray);color:var(--text-secondary)}.score-button.disabled{background:var(--surface-soft-gray);color:var(--text-tertiary);cursor:not-allowed;outline:1px dashed color-mix(in srgb,var(--text-tertiary) 60%,transparent);outline-offset:-5px}.score-button.active,.habit-row .score-button.active,.habit-row .score-button.full.active,.habit-row .score-button.partial.active{background:var(--text-primary);color:var(--surface-screen)}.radio-dot{width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:var(--surface-white);color:var(--text-primary)}.score-button small{font-size:10px;font-weight:900}.habit-main{min-width:0}.habit-heading{display:flex;align-items:center;gap:8px;justify-content:space-between}.info-toggle{flex:0 0 auto;min-width:38px;height:30px;border:0;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:1px;color:var(--text-primary);background:var(--surface-card);cursor:pointer}.rotated{transform:rotate(180deg)}.habit-info{margin:7px 0 0;padding:0;list-style:none;color:var(--text-secondary);font-size:12px;line-height:17px;font-weight:650}.habit-info li{position:relative;padding-left:11px}.habit-info li:before{content:"•";position:absolute;left:0;top:0}.segmented{display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--surface-card)}.segmented button{border:0;border-radius:999px;padding:8px 12px;background:transparent;color:var(--text-secondary);font-size:12px;font-weight:850}.segmented button.active{background:var(--text-primary);color:var(--surface-screen)}.progress-screen{margin-inline:-16px;padding-bottom:0}.progress-calendar-stage{position:relative;overflow:hidden;padding:14px 14px 30px;background:linear-gradient(180deg,var(--primary-cyan) 0%,var(--primary-cyan-light) 100%);color:var(--text-primary)}:root[data-theme=dark] .progress-calendar-stage{background:linear-gradient(180deg,var(--primary-cyan) 0%,#1c363a 100%)}.progress-heading{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;margin-bottom:12px}.progress-heading .segmented{background:color-mix(in srgb,var(--surface-white) 70%,transparent)}.today-jump-button{min-height:34px;padding:0 13px;border:0;border-radius:999px;background:var(--accent-yellow);color:var(--text-primary);cursor:pointer;font-size:12px;font-weight:900}.today-jump-button:disabled{background:color-mix(in srgb,var(--surface-white) 72%,transparent);color:var(--text-tertiary);cursor:not-allowed}.progress-calendar-stage .calendar-toolbar{min-height:44px;margin-bottom:12px;padding:4px;border-radius:999px;background:color-mix(in srgb,var(--surface-white) 70%,transparent)}.progress-calendar-stage .calendar-toolbar strong{font-size:15px;font-weight:950}.progress-calendar-stage .icon-button{width:36px;height:36px;background:var(--surface-white)}.progress-calendar-stage .icon-button:disabled{opacity:.42;cursor:not-allowed}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;padding:7px;border-radius:22px;background:color-mix(in srgb,var(--surface-white) 32%,transparent)}.weekday{text-align:center;color:color-mix(in srgb,var(--text-primary) 68%,transparent);font-size:10px;font-weight:950}.day-cell{aspect-ratio:1;width:100%;border:0;border-radius:13px;display:grid;align-content:center;justify-items:center;gap:3px;background:color-mix(in srgb,var(--surface-white) 72%,var(--primary-cyan));color:var(--text-secondary);box-shadow:inset 0 -1px #ffffff59;cursor:pointer;padding:0}.day-cell strong{font-size:12px;line-height:12px}.day-cell span{min-height:12px;font-size:10px;font-weight:950}.day-cell.outside-month{opacity:.46}.day-cell.tone-green{background:var(--secondary-mint);color:var(--text-primary)}.day-cell.tone-orange{background:var(--accent-yellow);color:var(--text-primary)}.day-cell.tone-red{background:#ffd0c5;color:var(--text-primary)}.year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:8px;border-radius:24px;background:color-mix(in srgb,var(--surface-white) 28%,transparent)}.year-month{min-width:0;padding:6px;border-radius:13px;background:color-mix(in srgb,var(--surface-white) 74%,var(--primary-cyan));cursor:pointer}.year-month:focus-visible{outline:3px solid var(--accent-yellow);outline-offset:2px}.year-month h3{margin-bottom:4px;font-size:10px;line-height:12px;font-weight:950}.year-month>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px}.day-cell.compact{border-radius:4px;cursor:default;font-size:6px;min-width:0;box-shadow:none}.day-cell.compact strong{font-size:6px;line-height:7px}.progress-insights-sheet{position:relative;z-index:1;display:grid;gap:10px;margin-top:-22px;padding:12px 16px calc(var(--bottom-height) + 10px);border-radius:28px 28px 0 0;background:var(--surface-screen)}.sheet-grabber{justify-self:center;width:46px;height:5px;border-radius:999px;background:var(--border-subtle)}.progress-insights-list{display:grid;grid-template-columns:1fr;gap:9px}.progress-metric-card{--bar-max-length: 82px;display:grid;grid-template-columns:minmax(0,1fr) minmax(148px,48%);gap:12px;align-items:center;min-height:112px;padding:12px;border-radius:18px;background:var(--surface-card)}.metric-week{padding-bottom:6px}.metric-tone-green{--metric-a: var(--secondary-mint-light);--metric-b: var(--status-success)}.metric-tone-orange{--metric-a: var(--accent-yellow-light);--metric-b: var(--status-warning)}.metric-tone-red{--metric-a: #ffc6b8;--metric-b: var(--status-error)}.metric-copy{min-width:0}.metric-copy span{display:block;color:var(--text-secondary);font-size:13px;font-weight:900}.metric-value{display:flex;align-items:baseline;gap:4px;margin-top:6px;color:var(--text-primary);font-size:28px;line-height:30px;font-weight:950}.metric-value small{color:var(--text-primary);font-size:7px;font-weight:400;line-height:1}.metric-copy small{display:block;margin-top:3px;color:var(--text-tertiary);font-size:12px;font-weight:850}.metric-copy .metric-value small{display:inline;margin-top:0;color:var(--text-primary);font-size:7px;font-weight:400}.metric-ring{position:relative;width:86px;height:86px;justify-self:end}.metric-ring svg{display:block;width:86px;height:86px;transform:rotate(-90deg)}.metric-ring-track,.metric-ring-fill{fill:none;stroke-width:10}.metric-ring-track{stroke:var(--surface-soft-gray)}.metric-ring-fill{stroke:url(#today-ring-gradient);stroke-linecap:round;stroke-dasharray:238.76;stroke-dashoffset:calc(238.76 - (238.76 * var(--metric) / 100));transition:stroke-dashoffset .18s ease}.metric-ring b{position:absolute;top:50%;left:50%;display:flex;transform:translate(-50%,-50%);flex-direction:column;align-items:center;justify-content:center;gap:1px;color:var(--text-primary);font-weight:950;line-height:1;text-align:center}.metric-ring b span{font-size:18px}.metric-ring b small{color:var(--text-primary);font-size:7px;font-weight:400;line-height:1}.week-bars,.year-bars{--bar-max-height: var(--bar-max-length);align-self:stretch;display:grid;align-items:end;gap:5px}.week-bars{grid-template-columns:repeat(7,minmax(0,1fr));min-height:calc(var(--bar-max-height) + 11px)}.week-bar,.year-bar{display:grid;grid-template-rows:var(--bar-max-height) auto;gap:2px;align-items:end;height:calc(var(--bar-max-height) + 11px);min-height:0}.week-bar i,.year-bar i{display:flex;align-items:flex-start;justify-content:center;width:100%;min-height:4px;padding-top:3px;border-radius:999px 999px 6px 6px;background:linear-gradient(180deg,var(--metric-a),var(--metric-b));height:calc(var(--bar) * var(--bar-max-height) / 100)}.week-bar i.empty,.year-bar i.empty{min-height:3px;padding-top:0}.week-bar i:not(.empty),.year-bar i:not(.empty){min-height:14px}.week-bar b,.year-bar b{color:var(--text-secondary);font-size:8px;font-style:normal;font-weight:900;line-height:1;text-shadow:none}.week-bar span,.year-bar span{color:var(--text-tertiary);font-size:9px;font-weight:950;line-height:1;text-align:center}.month-segments{display:grid;gap:8px}.month-segment-row{display:grid;grid-template-columns:56px minmax(0,1fr);gap:4px;align-items:center}.month-segment-label{display:inline-flex;gap:3px;align-items:baseline;color:var(--text-tertiary);font-size:10px;line-height:1;white-space:nowrap}.month-segment-label>span{font-weight:500}.month-segment-label>strong{font-weight:950}.month-segment{display:flex;align-items:center;justify-content:center;height:22px;width:calc(var(--segment) * var(--bar-max-length) / 100);max-width:var(--bar-max-length);min-width:0;padding:0 6px;border-radius:999px;background:linear-gradient(90deg,var(--metric-a),var(--metric-b));overflow:hidden;white-space:nowrap}.month-segment.empty{height:4px;min-width:10px;padding:0}.month-segment:not(.empty){min-width:18px}.month-segment b{color:var(--text-secondary);font-size:10px;font-style:normal;font-weight:900;line-height:1}.year-bars{grid-template-columns:repeat(12,minmax(0,1fr));min-height:calc(var(--bar-max-height) + 11px)}.metric-year{grid-template-columns:1fr}.metric-year .year-bars{width:100%}.history-summary{display:grid;gap:5px}.history-table{overflow:hidden;border:1px solid var(--text-primary);border-radius:7px;background:var(--surface-white)}.history-row{display:grid;grid-template-columns:54px 38px minmax(0,1fr);min-height:22px;border-top:1px solid var(--text-primary);color:var(--text-primary)}.history-row:first-child{border-top:0}.history-row>*{display:flex;align-items:center;min-width:0;padding:0 5px;border-left:1px solid var(--text-primary);font-size:9.5px;line-height:18px;font-weight:850}.history-row>*:first-child{border-left:0}.history-head{min-height:14px;background:var(--surface-screen)}.history-head>*{justify-content:center;font-size:8px;line-height:12px;font-weight:950}.history-row.category-room{background:var(--surface-card)}.history-row.category-proactivity{background:var(--primary-cyan)}.history-row.category-health{background:var(--secondary-mint)}.history-row.category-knowledge{background:var(--accent-yellow)}.history-points{gap:2px;justify-content:flex-start}.history-point{display:inline-grid;place-items:center;width:19px;height:19px;border:1px solid color-mix(in srgb,var(--text-primary) 38%,transparent);border-radius:999px;color:var(--text-tertiary);background:color-mix(in srgb,var(--surface-white) 54%,transparent);font-size:7px;line-height:1;font-weight:800}.history-point.active{border-color:var(--text-primary);color:var(--text-primary);background:var(--surface-white);font-weight:950;box-shadow:inset 0 0 0 1px var(--text-primary)}.history-running-total{justify-content:center}.history-habit-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-comments{display:grid;gap:8px;padding:14px 0 12px}.history-comments h3{font-size:14px}.history-comments>p,.history-comments article{margin:0;padding:9px 10px;border-radius:16px;background:var(--surface-card)}.history-comments article span{display:block;margin-bottom:4px;color:var(--text-secondary);font-size:11px;font-weight:900}.history-comments article p{color:var(--text-primary);font-size:12px;line-height:16px;font-weight:750}.history-empty{display:grid;justify-items:center;gap:10px;padding:36px 18px;border-radius:24px;background:var(--surface-card);text-align:center}.history-empty strong{font-size:56px;line-height:1}.history-empty p{color:var(--text-secondary);font-size:16px;font-weight:900}.adjustment-log summary{cursor:pointer;font-weight:850}.adjustment-log p{margin-top:10px;color:var(--text-secondary)}.log-row{display:grid;grid-template-columns:1fr auto auto;gap:4px 10px;align-items:center;padding:10px 0;border-top:1px solid var(--border-subtle)}.log-row small{grid-column:1 / -1;color:var(--text-tertiary);font-weight:700}.comment-log-row p{grid-column:1 / -1;margin:0;min-width:0;overflow:hidden;color:var(--text-primary);font-size:13px;line-height:18px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.comment-log-row{grid-template-columns:1fr;gap:4px;cursor:pointer}.comment-log-row.expanded p{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}.comment-log-meta{grid-column:1 / -1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0}.comment-log-meta span{color:var(--text-secondary);font-size:12px;font-weight:900;white-space:nowrap}.comment-log-meta small{grid-column:auto;min-width:0;overflow:hidden;color:var(--text-tertiary);font-size:12px;font-weight:850;text-align:right;text-overflow:ellipsis;white-space:nowrap}.comment-month-group{margin-top:8px;border-top:1px solid var(--border-subtle)}.comment-month-group summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px;color:var(--text-primary);cursor:pointer;font-size:13px;font-weight:900}.comment-month-group summary small{min-width:28px;border-radius:999px;padding:3px 8px;background:var(--surface-soft-gray);color:var(--text-secondary);text-align:center;font-size:11px;font-weight:950}.comment-month-group .comment-log-row:first-of-type{border-top:0}.log-delete-button{width:22px;height:22px;border:0;border-radius:999px;display:grid;place-items:center;background:var(--surface-soft-gray);color:var(--text-secondary);cursor:pointer;font-size:12px;font-weight:950;line-height:1}.positive{color:#3f8f4f}.negative{color:#bd4d40}.ranking-list{display:grid;gap:10px}.ranking-row{display:grid;grid-template-columns:28px 46px minmax(0,1fr) 74px;align-items:center;gap:10px;padding:12px;border-radius:24px;background:var(--surface-card)}.rank-number{width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:var(--accent-yellow);color:#181a1a;font-size:13px;font-weight:900}.ranking-avatar{width:46px;height:46px;border-radius:999px;object-fit:cover}.ranking-main{min-width:0}.ranking-main h2,.ranking-main span,.ranking-metrics small{overflow-wrap:anywhere}.ranking-main span{display:block;color:var(--text-secondary);font-size:12px;font-weight:800}.ranking-main .level-slogan{color:var(--text-tertiary);font-size:11px;font-weight:800}.ranking-metrics{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.ranking-metrics small{padding:4px 7px;border-radius:999px;background:var(--surface-white);color:var(--text-secondary);font-size:10px;font-weight:850}.level-badge{width:74px;height:74px;border-radius:20px;object-fit:contain;background:var(--surface-white)}.full-table-button{width:100%;margin-top:18px}.primary-button,.secondary-button,.danger-button{min-height:44px;border:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;font-weight:900;cursor:pointer}.primary-button{background:var(--accent-yellow);color:#181a1a}.secondary-button{background:var(--surface-white);color:var(--text-primary)}.danger-button{background:#ffd0c5;color:#69251d}.danger-icon{width:42px;height:42px;border:0;border-radius:999px;display:grid;place-items:center;color:#8c2f25;background:#ffd0c5}.protected-user-lock{width:42px;height:42px;border-radius:999px;display:grid;place-items:center;color:var(--text-secondary);background:var(--surface-white)}.setup-card,.no-user{min-height:320px;display:grid;place-items:center;align-content:center;gap:12px;text-align:center}.setup-card p,.no-user p{max-width:320px;color:var(--text-secondary);line-height:21px;font-weight:650}.stack-form,.user-form,.adjustment-controls{display:grid;gap:10px;width:100%}input,select{width:100%;min-height:46px;border:0;border-radius:18px;padding:0 14px;background:var(--surface-white);color:var(--text-primary);font-weight:750}input::placeholder{color:var(--text-tertiary)}.form-message{color:var(--text-secondary);font-size:13px;font-weight:800}.adjustment-popup{position:fixed;z-index:260;left:50%;bottom:calc(var(--bottom-height) + 34px);width:min(calc(100% - 44px),396px);transform:translate(-50%);pointer-events:none}.adjustment-popup p{margin:0;padding:14px 16px;border-radius:22px;background:var(--surface-white);color:var(--text-primary);font-size:15px;font-weight:950;text-align:center;box-shadow:0 12px 26px #181a1a2e}.notification-status{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;margin-bottom:10px;padding:0 12px;border-radius:16px;background:var(--surface-white)}.notification-status span{color:var(--text-secondary);font-size:13px;font-weight:800}.notification-status strong{text-transform:capitalize}.notification-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.advanced-settings-panel{padding:0;overflow:hidden}.advanced-settings-panel>summary{display:flex;min-height:58px;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;color:var(--text-primary);cursor:pointer;font-size:18px;font-weight:950;list-style:none}.advanced-settings-panel>summary::-webkit-details-marker{display:none}.advanced-settings-panel>summary svg{color:var(--text-secondary);transition:transform .16s ease}.advanced-settings-panel[open]>summary svg{transform:rotate(180deg)}.advanced-settings-content{display:grid;gap:12px;padding:0 12px 12px}.advanced-subpanel{display:grid;gap:12px;padding:12px;border-radius:20px;background:var(--surface-screen)}.cloud-sync-panel{gap:12px}.sync-status-grid{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:12px;border-radius:18px;background:var(--surface-white);font-size:12px;font-weight:900}.sync-status-grid span{color:var(--text-secondary)}.sync-status-grid strong{color:var(--text-primary)}.sync-key-row,.sync-endpoint-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}.sync-key-row svg{color:var(--text-secondary)}.sync-toggle{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 12px;border-radius:16px;background:var(--surface-white);color:var(--text-primary);font-size:13px;font-weight:900}.sync-toggle input{width:18px;min-height:18px;height:18px;padding:0;accent-color:var(--secondary-mint)}.sync-advanced{border-radius:16px;background:var(--surface-white);padding:10px}.sync-advanced summary{cursor:pointer;color:var(--text-secondary);font-size:12px;font-weight:950}.sync-endpoint-row{grid-template-columns:minmax(0,1fr) auto;margin-top:8px}.sync-now-button{width:100%}.user-form{grid-template-columns:112px minmax(0,1fr);align-items:start;column-gap:10px;row-gap:8px}.user-form>input,.user-form>button{grid-column:2}.user-form .avatar-picker{grid-row:1 / 4;width:98px;justify-self:start}.avatar-picker{display:grid;justify-items:center;gap:8px;position:relative;align-self:start}.avatar-preview{width:70px;height:70px;border-radius:20px;object-fit:cover;background:var(--surface-white)}.avatar-picker .secondary-button{min-height:30px;padding:0 9px;font-size:11px}.avatar-upload-error{width:100%;margin:-2px 0 0;color:var(--status-error);font-size:10px;font-weight:900;line-height:1.15;text-align:center}.avatar-picker-actions{display:grid;justify-items:center;gap:6px;position:relative;width:100%}.avatar-gallery-panel{position:relative}.avatar-gallery-panel summary{min-height:28px;padding:6px 11px;border-radius:999px;background:var(--surface-white);color:var(--text-primary);cursor:pointer;font-size:12px;font-weight:900;line-height:1;list-style:none;box-shadow:inset 0 0 0 1px var(--border-subtle)}.avatar-gallery-panel summary::-webkit-details-marker{display:none}.avatar-gallery-panel[open] summary{background:var(--accent-yellow)}.avatar-gallery{position:fixed;z-index:360;top:118px;left:50%;display:grid;grid-template-columns:repeat(5,1fr);gap:7px;width:min(330px,calc(100vw - 28px));max-height:min(420px,calc(100dvh - 164px));overflow-y:auto;padding:10px;border:1px solid var(--border-subtle);border-radius:22px;background:var(--surface-card);box-shadow:var(--shadow-soft);transform:translate(-50%)}.avatar-option{position:relative;width:52px;aspect-ratio:1;padding:0;border:2px solid transparent;border-radius:17px;background:var(--surface-white);cursor:pointer}.avatar-option.selected{border-color:var(--text-primary);background:var(--accent-yellow)}.avatar-option img{display:block;width:100%;height:100%;border-radius:15px;object-fit:cover}.avatar-selected-mark{position:absolute;right:-3px;bottom:-3px;display:grid;width:18px;height:18px;place-items:center;border-radius:999px;background:var(--text-primary);color:var(--surface-white)}.user-edit-row{display:grid;grid-template-columns:86px minmax(0,1fr) 42px;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--border-subtle)}.user-edit-fields{display:grid;gap:8px}.user-edit-name-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.user-edit-name-line input{min-width:0}.startup-pin-form{gap:12px}.pin-user-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border-radius:20px;background:var(--surface-screen)}.pin-user-card img{width:58px;height:58px;border-radius:18px;object-fit:cover;background:var(--surface-white)}.pin-user-card span{display:block;color:var(--text-secondary);font-size:11px;font-weight:900}.pin-user-card strong{display:block;min-width:0;overflow:hidden;color:var(--text-primary);font-size:17px;font-weight:950;text-overflow:ellipsis;white-space:nowrap}.inline-control,.backup-actions{display:grid;grid-template-columns:1fr auto;gap:8px}.backup-date{margin:0;color:var(--text-secondary);font-size:12px;font-weight:900}.backup-date-old{color:var(--status-error)}.restore-streak-button{width:100%}.restore-streak-button:disabled{opacity:.48;cursor:not-allowed}.comment-form{display:grid;gap:8px}.comment-bottom-spacer{height:140px;pointer-events:none}.comment-composer{width:100%;border-radius:16px;background:var(--surface-white);padding:8px}.comment-form textarea{width:100%;border:0;border-radius:10px;background:transparent;color:var(--text-primary);font:inherit;font-size:13px;font-weight:750}.comment-form textarea{min-height:76px;resize:vertical;padding:6px 4px;line-height:18px;outline:none}.habit-dropdown{position:relative}.habit-dropdown-trigger{width:100%;min-height:44px;border:0;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;background:var(--surface-white);color:var(--text-primary);cursor:pointer;font-size:13px;font-weight:850}.habit-dropdown-menu{position:absolute;z-index:35;top:calc(100% + 6px);left:0;right:0;display:grid;gap:4px;max-height:262px;overflow-y:auto;padding:8px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--surface-card);box-shadow:var(--shadow-floating)}.habit-checkbox-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center;min-height:36px;padding:7px 8px;border-radius:12px;background:var(--surface-white);color:var(--text-primary);cursor:pointer;font-size:13px;font-weight:800}.habit-checkbox-row input{width:18px;min-height:18px;height:18px;padding:0;accent-color:var(--secondary-mint)}.selected-habit-tags{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 6px}.habit-tag{min-height:28px;border:0;border-radius:999px;padding:0 10px;background:var(--accent-yellow-light);color:var(--text-primary);cursor:pointer;font-size:11px;font-weight:900}.rules-list{margin:0;padding-left:1.15rem;color:var(--text-primary);font-size:13px;line-height:18px;font-weight:760;text-align:left}.rules-list li{padding-left:.15rem;margin:0 0 8px}.rules-list ul{margin:7px 0 0;padding-left:1.1rem}.archived-row{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;padding:10px 0}.archived-row img{width:42px;height:42px;border-radius:999px;object-fit:cover}.archived-actions{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:8px}.archived-actions .secondary-button,.archived-actions .danger-button{min-height:40px;padding:0 12px}.empty-state{padding:24px;border-radius:24px;background:var(--surface-card);color:var(--text-secondary);font-weight:750;text-align:center}.modal-backdrop,.intro-overlay{position:fixed;z-index:300;top:0;right:0;bottom:0;left:0;display:grid;place-items:end center;padding:16px;background:#00000075}.modal-sheet{width:min(100%,480px);max-height:min(calc(100dvh - 32px),760px);overflow:auto;border-radius:30px 30px 24px 24px;background:var(--surface-screen);box-shadow:var(--shadow-floating);padding:18px}.modal-sheet.wide{max-height:88dvh}.modal-sheet.history-modal{max-height:calc(100dvh - 16px);padding:8px 12px 12px;border-radius:26px 26px 22px 22px}.modal-sheet.history-modal>header{top:-8px;margin:-8px -12px 1px;padding:6px 12px 3px}.modal-sheet.history-modal h2{font-size:13px;line-height:16px;font-weight:900}.modal-sheet.history-modal .icon-button{width:42px;height:42px}.modal-sheet>header{position:sticky;top:-18px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-18px -18px 14px;padding:18px;background:var(--surface-screen)}.modal-title-actions{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}.history-title-total{display:inline-flex;align-items:baseline;gap:2px;color:var(--text-primary);font-size:17px;line-height:1;font-weight:950}.history-title-total small{font-size:7px;font-weight:400}.history-header-controls{display:inline-flex;align-items:center;gap:18px}.history-date-nav{display:inline-flex;align-items:center;gap:3px;padding:2px;border-radius:999px;background:var(--surface-card)}.history-date-nav button{width:26px;height:24px;border:0;border-radius:999px;display:inline-grid;place-items:center;background:var(--surface-white);color:var(--text-primary);cursor:pointer}.history-date-nav button:disabled{color:var(--text-tertiary);opacity:.45;cursor:default}.switch-list{display:grid;gap:8px}.switch-user-panel{gap:12px}.switch-user{min-height:58px;border:0;border-radius:20px;display:flex;align-items:center;gap:10px;background:var(--surface-card);color:var(--text-primary);font-weight:850;text-align:left}.switch-user.active{background:var(--primary-cyan)}.switch-user img{width:42px;height:42px;border-radius:999px;object-fit:cover}.switch-user-name{flex:1 1 auto;min-width:0}.pin-pad-panel{position:sticky;bottom:-18px;display:grid;gap:8px;margin:2px -18px -18px;padding:10px 12px 12px;border-top:1px solid var(--border-subtle);background:var(--surface-screen)}.startup-pin-pad{position:static;margin:0;padding:10px;border:0;border-radius:18px;background:var(--surface-screen)}.pin-pad-status{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:24px;color:var(--text-secondary);font-size:12px;font-weight:900}.pin-pad-status span{display:inline-flex;gap:5px}.pin-pad-status i{width:8px;height:8px;border-radius:999px;background:var(--surface-soft-gray);box-shadow:inset 0 0 0 1px var(--border-subtle)}.pin-pad-status i.filled{background:var(--text-primary);box-shadow:none}.pin-keypad{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.pin-keypad button{min-width:0;min-height:44px;border:0;border-radius:15px;background:var(--accent-yellow);color:#181a1a;cursor:pointer;font-size:17px;font-weight:950}.level-table{display:grid;gap:8px}.level-row{display:grid;grid-template-columns:34px 52px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px;border-radius:18px;background:var(--surface-card)}.level-row>span{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:var(--accent-yellow-light);font-size:12px;font-weight:900}.level-row img{width:52px;height:52px;border-radius:16px;object-fit:contain;background:var(--surface-white)}.level-row small{display:block;color:var(--text-secondary);font-size:11px;font-weight:750}.level-row em{color:var(--text-secondary);font-style:normal;font-size:12px;font-weight:900}.intro-overlay{place-items:center;padding:20px}.intro-frame{width:min(100%,430px);display:grid;gap:12px;justify-items:center;padding:14px;border-radius:26px;background:var(--surface-screen);box-shadow:var(--shadow-floating)}.intro-frame video{width:100%;border-radius:20px;background:#000}.intro-frame p{color:var(--text-secondary);font-weight:850}.play-intro{width:100%}@media(max-width:370px){.screen{padding-left:12px;padding-right:12px}.habit-row{grid-template-columns:78px minmax(0,1fr)}.ranking-row{grid-template-columns:24px 40px minmax(0,1fr) 58px}.level-badge{width:58px;height:58px}}@media(min-width:700px){body{padding:22px 0}.app-shell{min-height:calc(100dvh - 44px);border-radius:36px;box-shadow:var(--shadow-floating)}.top-bar{top:22px;border-radius:36px 36px 0 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important}}
