html{background:#f5f7f5}body{-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;min-width:320px;min-height:100vh;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans TC,Microsoft JhengHei,sans-serif}button,input{font-family:inherit}button:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #d9a9288c}::selection{color:#fff;background:#0d5549}:root{--forest:#073d36;--forest-2:#0b5147;--forest-3:#dfeae6;--ink:#172421;--muted:#6e7b77;--line:#cfd9d5;--line-light:#e4eae7;--canvas:#edf1ef;--paper:#fff;--gold:#e5bd43;--shadow:0 12px 34px #0d2e281a}*{box-sizing:border-box}button,input{font:inherit}button{color:inherit}.app-shell{min-height:100vh;color:var(--ink);background:var(--canvas)}.workbook-toolbar{z-index:50;color:#fff;background:linear-gradient(90deg,#063b35,#0a5046);align-items:center;gap:16px;min-height:50px;padding:6px 12px;display:flex;position:sticky;top:0;box-shadow:0 5px 20px #052c272e}.sheet-brand{color:#fff;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:0;display:flex}.sheet-brand>span{width:29px;height:29px;color:var(--forest);background:#fff;border-radius:7px;place-items:center;display:grid}.sheet-brand strong{letter-spacing:.1em;white-space:nowrap;font-size:15px}.sheet-tabs{background:#ffffff14;border-radius:8px;align-self:stretch;gap:3px;padding:3px;display:flex}.sheet-tabs button{color:#ffffffad;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:6px;padding:0 13px;font-size:11px;font-weight:700;display:inline-flex}.sheet-tabs button:hover{color:#fff;background:#ffffff14}.sheet-tabs button.active{color:var(--forest);background:#fff;box-shadow:0 4px 12px #00000024}.toolbar-actions{align-items:center;gap:5px;margin-left:auto;display:flex}.toolbar-button{color:#ffffffc7;cursor:pointer;background:#ffffff12;border:1px solid #ffffff2e;border-radius:7px;align-items:center;gap:5px;min-height:32px;padding:0 9px;font-size:10px;font-weight:700;display:inline-flex}.toolbar-button:hover{color:#fff;background:#ffffff21}.toolbar-button.primary{color:var(--forest);background:#fff;border-color:#fff}.main-content{padding:9px}.workbook-sheet{width:min(1600px,100%);min-height:calc(100vh - 68px);box-shadow:var(--shadow);background:#fff;border:1px solid #c9d4d0;margin:0 auto;padding:8px}.cell-heading{color:#fff;background:var(--forest);letter-spacing:.03em;text-align:center;place-items:center;min-height:24px;padding:4px 7px;font-size:10px;font-weight:800;display:grid}.sheet-title{color:#fff;background:var(--forest);text-align:center;align-content:center;place-items:center;min-height:54px;display:grid}.sheet-title strong{letter-spacing:.05em;font-size:14px}.sheet-title span{opacity:.72;margin-top:4px;font-size:10px}.annual-overview-grid{grid-template-columns:188px minmax(340px,1.35fr) minmax(230px,.82fr) 236px;gap:7px;min-height:188px;display:grid}.sheet-settings{border:1px solid var(--line);overflow:hidden}.sheet-settings .cell-heading{min-height:25px;margin-top:4px}.setting-row{border-top:1px solid var(--line-light);grid-template-columns:1fr 1fr;min-height:26px;font-size:9px;display:grid}.setting-row span,.setting-row strong{place-items:center;display:grid}.setting-row span{color:#fff;background:var(--forest)}.setting-row strong{background:#f5f7f6}.setting-stepper{border-top:1px solid var(--line-light);background:#fff;grid-template-columns:30px 1fr 30px;min-height:25px;display:grid}.setting-stepper button{cursor:pointer;background:#f3f6f4;border:0;place-items:center;display:grid}.setting-stepper button:hover{color:#fff;background:var(--forest-2)}.setting-stepper span{color:var(--muted);place-items:center;font-size:8px;display:grid}.sheet-chart{border:1px solid var(--line);background:#fff;min-width:0;overflow:hidden}.sheet-chart-body{height:157px;padding:4px 4px 1px}.annual-stats-panel{grid-template-columns:88px 1fr;gap:6px;min-width:0;display:grid}.stats-numbers{grid-template-rows:repeat(3,1fr);gap:4px;display:grid}.stat-cell{border:1px solid var(--line);text-align:center;background:#f7f9f8;flex-direction:column;align-items:center;display:flex}.stat-cell span{color:#fff;background:var(--forest);width:100%;padding:2px 3px;font-size:7px;font-weight:700}.stat-cell strong{margin:auto 0;font-size:14px}.overall-stat{border:1px solid var(--line);flex-direction:column;display:flex}.overall-stat .progress-ring{margin:auto}.progress-ring{--progress:0deg;background:conic-gradient(var(--forest) var(--progress), #dfe5e2 0);border-radius:50%;flex:none;place-items:center;width:94px;height:94px;display:grid;position:relative}.progress-ring:before{content:"";background:#fff;border-radius:50%;width:66px;height:66px;position:absolute}.progress-ring>span{z-index:1;text-align:center;place-items:center;display:grid;position:relative}.progress-ring strong{letter-spacing:-.04em;font-size:18px}.progress-ring small{color:var(--muted);font-size:7px}.annual-matrix-scroll{border:1px solid var(--line);margin-top:7px;overflow-x:auto}.annual-matrix{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1180px;font-size:8px}.annual-matrix th,.annual-matrix td{border:1px solid var(--line);text-align:center;height:29px;padding:0}.annual-matrix thead th{color:#fff;background:var(--forest);font-size:7px}.annual-matrix thead tr:first-child th{letter-spacing:.03em;height:23px;font-size:8px}.annual-matrix .habit-column{width:166px;font-size:10px}.annual-matrix .analysis-title{background:#0c4c43}.annual-matrix thead tr:nth-child(2) th:not(.progress-column){width:24px}.annual-matrix thead th span,.annual-matrix thead th b{display:block}.annual-matrix thead th span{opacity:.68;font-size:6px}.annual-matrix thead th b{font-size:8px}.annual-matrix thead th.today{color:var(--forest);background:var(--gold)}.annual-matrix .habit-label{background:var(--forest);text-align:left;width:166px}.annual-matrix .habit-label button{color:#fff;cursor:pointer;text-align:left;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;align-items:center;gap:6px;width:100%;height:100%;padding:0 9px;font-size:9px;font-weight:650;display:flex;overflow:hidden}.annual-matrix .habit-label button:hover{background:var(--forest-2)}.annual-matrix tbody td{background:#fff}.annual-matrix tbody td.today{background:#fff8dd}.matrix-check{color:#fff;cursor:pointer;background:#fff;border:1px solid #aebbb6;border-radius:2px;place-items:center;width:16px;height:16px;margin:auto;padding:0;display:grid}.matrix-check:hover{border-color:var(--forest);background:#eaf2ef}.matrix-check.checked{border-color:var(--forest);background:var(--forest)}.annual-matrix tbody td:nth-last-child(6),.annual-matrix tbody td:nth-last-child(5),.annual-matrix tbody td:nth-last-child(4){background:#f5f7f6;width:42px;font-weight:700}.annual-matrix .progress-column,.annual-matrix .table-progress{width:112px}.table-progress{padding:0 8px!important}.table-progress i,.compact-progress i{background:#dfe5e2;border-radius:0;height:7px;display:block;overflow:hidden}.table-progress b,.compact-progress b{background:var(--forest);height:100%;display:block}.table-rate{width:38px;font-weight:800}.table-edit{width:24px;height:24px;color:var(--muted);cursor:pointer;background:0 0;border:0;place-items:center;margin:auto;padding:0;display:grid}.table-edit:hover{color:var(--forest);background:var(--forest-3)}.annual-bottom-grid{grid-template-columns:minmax(0,1fr) 290px;gap:7px;margin-top:7px;display:grid}.annual-trend-chart .sheet-chart-body{height:143px}.rank-panel{border:1px solid var(--line)}.rank-panel ol{gap:0;margin:0;padding:3px 8px 3px 28px;list-style-position:outside;display:grid}.rank-panel li{border-bottom:1px solid var(--line-light);min-height:19px;padding:3px 4px;font-size:8px}.rank-panel li:last-child{border-bottom:0}.rank-panel li span{text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;width:calc(100% - 34px);display:inline-block;overflow:hidden}.rank-panel li strong{float:right;color:var(--forest)}.month-tabs{border-top:1px solid var(--line);background:#f3f5f4;grid-template-columns:repeat(12,1fr);gap:1px;margin-top:7px;padding:3px;display:grid}.month-tabs button{min-height:25px;color:var(--muted);cursor:pointer;background:#fff;border:0;border-radius:2px;font-size:8px;font-weight:700}.month-tabs button:hover,.month-tabs button.active{color:#fff;background:var(--forest)}.weekly-sheet{flex-direction:column;display:flex}.weekly-overview-grid{grid-template-columns:220px minmax(330px,1fr) minmax(420px,1.05fr);gap:7px;min-height:232px;display:grid}.weekly-settings{grid-template-rows:auto auto auto 1fr 1fr;gap:5px;min-width:0;display:grid}.weekly-setting-pair{grid-template-columns:1fr 1fr;gap:5px;display:grid}.weekly-setting-pair>div,.weekly-copy-cell{border:1px solid var(--line);text-align:center;display:grid}.weekly-setting-pair span,.weekly-copy-cell span{color:#fff;background:var(--forest);padding:4px;font-size:8px;font-weight:800}.weekly-setting-pair strong,.weekly-copy-cell strong{background:#f6f8f7;place-items:center;min-height:30px;padding:4px;font-size:9px;display:grid}.weekly-stepper{border:1px solid var(--line);grid-template-columns:28px 1fr 28px;display:grid}.weekly-stepper button{cursor:pointer;background:#f2f5f3;border:0;place-items:center;display:grid}.weekly-stepper button:hover{color:#fff;background:var(--forest)}.weekly-stepper>div{border-inline:1px solid var(--line);text-align:center;place-items:center;padding:4px;display:grid}.weekly-stepper span{color:var(--muted);font-size:7px}.weekly-stepper strong{font-size:10px}.save-week-button{color:#fff;background:var(--forest);cursor:pointer;border:0;min-height:28px;font-size:9px;font-weight:800}.save-week-button:hover{background:var(--forest-2)}.weekly-copy-cell{grid-template-columns:88px 1fr}.weekly-copy-cell span{place-items:center;display:grid}.weekly-copy-cell strong{min-height:0}.weekly-progress-panel,.weekly-habit-panel{border:1px solid var(--line);min-width:0}.weekly-progress-panel{flex-direction:column;display:flex}.weekly-progress-content{flex:1;grid-template-columns:minmax(0,1.5fr) 118px;gap:6px;min-height:0;padding:7px;display:grid}.weekly-bar-chart{min-width:0;height:185px}.weekly-overall-ring{border-left:1px solid var(--line-light);place-items:center;display:grid}.weekly-habit-panel{overflow:hidden}.weekly-compact-table{border-collapse:collapse;table-layout:fixed;width:100%}.weekly-compact-table th,.weekly-compact-table td{border:1px solid var(--line-light);text-align:center;height:25px;padding:0 2px;font-size:7px}.weekly-compact-table thead th{color:#fff;background:var(--forest);height:23px}.weekly-compact-table thead th:first-child{width:142px}.weekly-compact-table thead th:last-child{width:92px}.weekly-compact-table tbody th{text-align:left;padding:0;overflow:hidden}.weekly-compact-table tbody th button{text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:#fff;border:0;width:100%;height:100%;padding:0 6px;font-size:8px;overflow:hidden}.weekly-compact-table tbody th button:hover{background:#edf4f1}.tiny-check{color:#fff;cursor:pointer;background:#fff;border:1px solid #aebbb6;border-radius:2px;place-items:center;width:13px;height:13px;margin:auto;padding:0;display:grid}.tiny-check.checked{border-color:var(--forest);background:var(--forest)}.compact-progress{padding:0 7px!important}.daily-planner-grid{flex:1;grid-template-columns:repeat(7,minmax(128px,1fr));gap:6px;margin-top:7px;display:grid}.day-planner{border:1px solid var(--line);background:#fff;flex-direction:column;min-width:0;display:flex;overflow:hidden}.day-title{color:#fff;background:var(--forest);text-align:center;justify-content:center;align-items:center;gap:3px;min-height:30px;padding:4px;font-size:10px;font-weight:800;display:flex}.day-title span{font-size:10px}.day-date{border-bottom:1px solid var(--line-light);min-height:24px;color:var(--muted);background:#f5f7f6;place-items:center;font-size:8px;display:grid}.day-planner .progress-ring{width:76px;height:76px;margin:8px auto}.day-planner .progress-ring:before{width:54px;height:54px}.day-planner .progress-ring strong{font-size:15px}.tasks-heading{color:#fff;background:var(--forest);place-items:center;min-height:22px;font-size:8px;font-weight:800;display:grid}.day-task-list{flex:1;align-content:start;display:grid}.day-task-list label{border-bottom:1px solid var(--line-light);cursor:pointer;grid-template-columns:minmax(0,1fr) 17px;align-items:center;gap:3px;min-height:27px;padding:3px 5px;font-size:7px;display:grid}.day-task-list label>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.day-task-list label.done>span{color:#7b8884;text-decoration:line-through}.day-check{color:#fff;cursor:pointer;background:#fff;border:1px solid #aebbb6;border-radius:2px;place-items:center;width:14px;height:14px;padding:0;display:grid}.day-check.checked{border-color:var(--forest);background:var(--forest)}.day-totals{color:#fff;background:var(--forest);grid-template-columns:1fr 1fr;font-size:7px;display:grid}.day-totals span{border-right:1px solid #ffffff2e;justify-content:center;align-items:center;gap:3px;min-height:22px;padding:3px;display:flex}.day-totals span:last-child{border-right:0}.day-totals b{font-size:9px}.icon-button{width:34px;height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid}.icon-button:hover{color:var(--forest);background:var(--forest-3)}.primary-button,.ghost-button,.danger-button{cursor:pointer;border-radius:9px;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:0 14px;font-size:12px;font-weight:750;display:inline-flex}.primary-button{border:1px solid var(--forest);color:#fff;background:var(--forest)}.ghost-button{border:1px solid var(--line);background:#fff}.danger-button{color:#a23831;background:#fff7f6;border:1px solid #efd1cf}.modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#051f1b94;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:16px;width:min(560px,100%);max-height:90vh;padding:24px;overflow:auto;box-shadow:0 30px 90px #00000047}.modal-head{justify-content:space-between;align-items:flex-start;margin-bottom:20px;display:flex}.modal-head p{color:var(--forest-2);letter-spacing:.16em;margin:0 0 4px;font-size:9px;font-weight:800}.modal-head h2{margin:0;font-size:23px}.modal form{grid-template-columns:82px 1fr 1fr;gap:13px;display:grid}.modal label{gap:6px;display:grid}.modal label span{color:var(--muted);font-size:10px;font-weight:700}.modal input{border:1px solid var(--line);min-width:0;height:42px;color:var(--ink);background:#fff;border-radius:9px;outline:none;padding:0 11px}.modal input:focus{border-color:var(--forest-2);box-shadow:0 0 0 3px #0d55491a}.emoji-field input{text-align:center;padding:0;font-size:22px}.wide-field{grid-column:span 2}.modal-actions{border-top:1px solid var(--line);grid-column:1/-1;grid-template-columns:auto 1fr auto auto;gap:8px;margin-top:8px;padding-top:16px;display:grid}.toast{z-index:120;color:#fff;background:var(--forest);box-shadow:var(--shadow);border-radius:9px;align-items:center;gap:7px;padding:11px 14px;font-size:11px;display:flex;position:fixed;bottom:22px;right:22px}.mobile-nav{display:none}@media (width<=1180px){.annual-overview-grid{grid-template-columns:188px minmax(320px,1fr) 230px}.annual-week-chart{grid-column:1/-1}.weekly-overview-grid{grid-template-columns:220px minmax(320px,1fr)}.weekly-habit-panel{grid-column:1/-1}.weekly-overview-grid{min-height:0}.daily-planner-grid{grid-template-columns:repeat(4,minmax(140px,1fr))}}@media (width<=820px){.workbook-toolbar{gap:7px}.sheet-brand strong{display:none}.sheet-tabs button{padding-inline:9px}.toolbar-button span{display:none}.toolbar-button{justify-content:center;width:32px;padding:0}.main-content,.workbook-sheet{padding:6px}.annual-overview-grid{grid-template-columns:170px minmax(290px,1fr)}.annual-stats-panel{grid-column:1/-1;grid-template-columns:1fr 150px;min-height:132px}.stats-numbers{grid-template-rows:1fr;grid-template-columns:repeat(3,1fr)}.annual-bottom-grid{grid-template-columns:1fr}.rank-panel{display:none}.month-tabs{grid-template-columns:repeat(12,minmax(54px,1fr));overflow-x:auto}.weekly-overview-grid{grid-template-columns:1fr}.weekly-habit-panel{grid-column:auto}.daily-planner-grid{grid-template-columns:repeat(2,minmax(145px,1fr))}}@media (width<=560px){.workbook-toolbar{min-height:47px;padding-inline:7px}.sheet-brand{display:none}.sheet-tabs{margin-right:auto}.sheet-tabs button{padding-inline:8px;font-size:10px}.toolbar-actions .toolbar-button:not(.primary){display:none}.annual-overview-grid{grid-template-columns:1fr}.sheet-settings{grid-template-columns:1fr 1fr;display:grid}.sheet-settings .sheet-title,.sheet-settings .cell-heading{grid-column:1/-1}.setting-stepper{border-left:1px solid var(--line-light)}.annual-stats-panel{grid-column:auto;grid-template-columns:1fr 116px}.annual-matrix-scroll{margin-inline:-6px}.daily-planner-grid{grid-template-columns:1fr}.day-planner .progress-ring{width:84px;height:84px}.day-planner .progress-ring:before{width:60px;height:60px}.day-task-list label{min-height:34px;font-size:9px}.weekly-progress-content{grid-template-columns:minmax(0,1fr) 108px}.weekly-habit-panel{overflow-x:auto}.weekly-compact-table{min-width:520px}.modal form{grid-template-columns:72px 1fr}.wide-field{grid-column:2}.modal form>label:not(.emoji-field):not(.wide-field){grid-column:1/-1}.modal-actions{grid-template-columns:1fr 1fr}.modal-actions span{display:none}.modal-actions .danger-button{order:3;grid-column:1/-1}.mobile-nav{z-index:60;color:#ffffffa6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#052f2bf5;border-radius:14px;grid-template-columns:repeat(3,1fr);padding:6px;display:grid;position:fixed;bottom:10px;left:10px;right:10px;box-shadow:0 14px 36px #0000003d}.mobile-nav button{color:inherit;background:0 0;border:0;border-radius:8px;place-items:center;gap:2px;padding:5px 0;font-size:8px;display:grid}.mobile-nav button.active{color:var(--forest);background:#fff}.workbook-sheet{margin-bottom:76px}.toast{white-space:nowrap;bottom:80px;left:50%;right:auto;transform:translate(-50%)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}
