.workspace.habits-active{grid-template-columns:var(--rail-width) minmax(0,1fr);--accent:#5274f5}
.workspace.habits-active .list-sidebar,.workspace.habits-active .pane-header,.workspace.habits-active #paneStatus,.workspace.habits-active .detail-pane{display:none}
.habits-active #moduleContent{padding:0;overflow:hidden;display:flex;min-height:0}
.habit-workspace{display:grid;grid-template-columns:minmax(420px,64%) minmax(320px,36%);width:100%;height:100%;min-height:0;color:var(--text,#333);font-size:14px;background:var(--paper,#fff)}
.habit-primary{min-width:0;min-height:0;display:flex;flex-direction:column}
.habit-secondary{min-width:0;min-height:0;overflow-y:auto;border-left:1px solid var(--line,#eee);padding:0 30px 36px;scrollbar-gutter:stable}
.habit-secondary:empty{padding:0}
.habit-header{height:68px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 26px}
.habit-heading{font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:inherit}
.habit-caret{font-size:14px;color:#888;font-weight:400}
.habit-tools{display:flex;gap:12px}.habit-tools .icon-button{font-size:23px;font-weight:300;width:26px;height:28px;line-height:1}
.habit-week{display:flex;justify-content:space-between;gap:4px;padding:10px 42px 22px}
.habit-week-day{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:none;position:relative;color:#555;min-width:40px;padding:0;font-variant-numeric:tabular-nums}
.habit-week-day .weekday{font-size:12px;color:#999;line-height:16px}.habit-week-day .date{font-size:12px;line-height:16px}.habit-week-day svg{width:24px;height:24px;margin-top:-3px;transform:rotate(-90deg)}
.habit-week-day circle{fill:none;stroke-width:2;stroke:#ededed}.habit-week-day .value{stroke:var(--accent);stroke-linecap:round}.habit-week-day.selected .date{color:var(--accent);font-weight:600}.habit-week-day.selected .track{stroke:#d6dffd;fill:#f6f8ff}.habit-week-day.today .weekday{color:var(--accent)}
.habit-week-day:hover .track{fill:#f5f7fb}.habit-week-day:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:8px}
.habit-primary-scroll{position:relative;overflow:auto;flex:1;min-height:0;padding:0 27px 40px;scrollbar-gutter:stable}
.habit-date-tools{display:flex;align-items:center;justify-content:center;gap:16px;min-height:31px;color:#999;margin-top:-4px;margin-bottom:7px}.habit-date-tools .text-button{font-size:12px;color:#888}.habit-date-tools .icon-button{height:24px;width:24px;font-size:20px}
.habit-empty{padding-top:94px;text-align:center;color:#aaa}.habit-empty h2{font-size:15px;font-weight:400;color:#777;margin:22px 0 9px}.habit-empty p{font-size:13px;margin:0}.habit-empty>.text-button{margin-top:15px}
.habit-empty-art{position:relative;width:170px;height:128px;margin:auto}.habit-empty-art svg{position:absolute;fill:none;stroke-width:1.1;stroke-linecap:round;stroke-linejoin:round}.habit-empty-art svg:nth-child(1){width:92px;height:92px;left:13px;top:26px;stroke:#b7d3c3}.habit-empty-art svg:nth-child(2){width:67px;height:67px;left:91px;top:1px;stroke:#e7d3a7}.habit-empty-art svg:nth-child(3){width:34px;height:34px;left:104px;top:88px;stroke:#d7c6cc}
.habit-group{margin-bottom:17px}.habit-group-title{display:flex;gap:8px;align-items:center;margin:16px 0 12px;font-size:13px;font-weight:500;color:#888}.habit-group-title span{font-size:11px;color:#b3b3b3}.habit-group.drag-over{background:#f5f8ff;border-radius:6px}
.habit-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}.habit-card{position:relative;display:flex;gap:13px;align-items:center;min-height:100px;padding:17px 15px;border:1px solid #ededed;border-radius:7px;background:#fff;min-width:0;transition:border-color .12s,background .12s;--habit-color:#4778e7}.habit-card:hover{background:#fafbfc}.habit-card.active{border-color:#d2dbf7;background:#f8faff}.habit-card.completed .habit-quote{color:#b2b2b2}.habit-card.skipped{opacity:.65}
.habit-emblem{width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,var(--habit-color) 10%,white);display:grid;place-items:center;flex:none;color:var(--habit-color)}.habit-emblem svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.habit-card-content{min-width:0;flex:1}.habit-name{text-align:left;background:none;border:0;padding:0;color:#444;font-size:14px;line-height:22px;max-width:100%;overflow-wrap:anywhere}.habit-quote{margin:3px 0 5px;color:#aaa;font-size:12px;line-height:17px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.habit-quantity{font-size:11px;color:#aaa}
.habit-card-actions{display:flex;align-items:center;gap:3px}.habit-check{position:relative;isolation:isolate;display:grid;place-items:center;width:40px;height:40px;border:0;background:none;color:var(--habit-color);font-size:20px;padding:0;flex:none}.habit-check>svg:not(:last-child){width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.habit-check>svg:last-child{width:40px;height:40px;position:absolute;inset:0;z-index:-1;transform:rotate(-90deg)}.habit-check circle{fill:none;stroke-width:1.5;stroke:#eee}.habit-check .value{stroke:var(--habit-color);stroke-linecap:round}.habit-check[aria-pressed=true]{color:#fff}.habit-check[aria-pressed=true] .track{fill:var(--habit-color);stroke:var(--habit-color)}.habit-check:disabled{cursor:default;opacity:.4}.habit-more{width:23px;height:28px;font-size:18px;color:#aaa;opacity:0}.habit-card:hover .habit-more,.habit-card:focus-within .habit-more{opacity:1}.habit-list{grid-template-columns:1fr}.habit-list .habit-card{min-height:76px;border-radius:0;border-width:0 0 1px;padding:12px 8px}.habit-list .habit-quote{-webkit-line-clamp:1}.habit-list .habit-more{opacity:1}
.habit-detail-header{height:68px;display:flex;align-items:center;gap:7px;position:sticky;top:0;background:#fff;z-index:2}.habit-detail-header h2{font-weight:500;font-size:16px;flex:1;min-width:0;overflow-wrap:anywhere;margin:0}.habit-detail-header .icon-button{font-size:20px;height:26px;width:26px}.habit-detail-quote{font-size:12px;color:#aaa;margin:0 0 20px;white-space:pre-wrap;overflow-wrap:anywhere}.habit-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:12px 0 25px;border-bottom:1px solid #f0f0f0}.habit-metrics>div{text-align:center}.habit-metrics strong{font-size:24px;font-weight:400;white-space:nowrap;color:#555;display:block}.habit-metrics span{display:block;font-size:11px;color:#aaa;margin-top:9px}.habit-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 16px}.habit-section-heading input{border:0;background:none;color:#555;font-size:14px;padding:0;max-width:145px}.habit-section-heading input[type=number]{max-width:74px;text-align:right}.habit-section-heading h3,.habit-selected-day h3,.habit-logs h3{font-size:14px;font-weight:500;margin:0}.habit-month-rate{font-size:12px;color:#999}.habit-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));justify-items:center;gap:7px 0}.habit-month-weekday{font-size:11px;color:#aaa;margin-bottom:6px}.habit-month-day{width:30px;height:30px;border:0;border-radius:50%;background:none;color:#aaa;font-size:12px;padding:0}.habit-month-day.scheduled{color:#666}.habit-month-day.completed{color:white;background:var(--accent)}.habit-month-day.selected{outline:1px solid var(--accent);outline-offset:3px}.habit-month-day.skipped{background:#eee;text-decoration:line-through;color:#aaa}.habit-month-day.today:not(.completed){color:var(--accent)}.habit-month-day:disabled{color:#d0d0d0}.habit-stats-caption{font-size:11px;line-height:18px;color:#aaa;margin:14px 0;overflow-wrap:anywhere}.habit-target-progress{font-size:12px;color:#888}.habit-selected-day{border-top:1px solid #eee;border-bottom:1px solid #eee;padding:18px 0;margin-top:18px}.habit-selected-day p{font-size:12px;color:#999}.habit-selected-day .text-button{margin-right:13px}.habit-year-heatmap{display:grid;grid-template-rows:repeat(7,10px);grid-auto-flow:column;grid-auto-columns:minmax(3px,1fr);gap:3px;max-width:100%;overflow:hidden}.habit-heat-day{border:0;background:#f0f1f2;border-radius:2px;min-width:0;padding:0;width:100%;height:10px}.habit-heat-day.completed{background:#6288dd}.habit-heat-day.partial{background:#c4d6f3}.habit-heat-day.skipped{background:#ddd}.habit-heat-day:focus-visible{outline:1px solid #333;outline-offset:1px}.habit-heat-day:disabled{opacity:.4}.habit-logs{padding-top:22px}.habit-log{position:relative;border-bottom:1px solid #f2f2f2;padding:17px 0;font-size:12px}.habit-log small{font-size:11px;color:#aaa;display:block;margin-bottom:8px}.habit-log-action{color:#777}.habit-log-mood{margin-left:10px;color:#888}.habit-log-text{white-space:pre-wrap;overflow-wrap:anywhere;color:#555;font-size:13px;line-height:21px;margin-bottom:4px}.habit-log-remove{font-size:11px;margin-top:8px;color:#aaa}
.habit-loading,.habit-empty-detail{padding:25px;color:#999;font-size:13px}.habit-pending{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff5df;padding:8px 25px;font-size:12px;color:#956c26}.habit-migration-note{font-size:11px;color:#999}.habit-draft-note{font-size:12px;color:#8c723d;background:#fff8e6;padding:10px;border-radius:4px}.habit-conflict pre{font-family:inherit;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f7f7;padding:12px;border-radius:5px}.habit-conflict h3{font-size:13px}
.habit-editor-dialog{width:560px;max-width:calc(100vw - 36px)}.habit-editor-dialog #modalContent{max-height:70vh;overflow:auto}.habit-editor-fields .modal-field{margin-bottom:17px}.habit-form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.habit-icon-grid{display:flex;flex-wrap:wrap;gap:8px;margin:3px 0 18px}.habit-icon-grid button{display:grid;place-items:center;width:35px;height:35px;background:#fafafa;border:1px solid transparent;border-radius:6px;color:#999}.habit-icon-grid button.active{border-color:var(--accent);color:var(--accent);background:#f4f7ff}.habit-icon-grid svg,.habit-library-card svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.habit-weekday-fields{border:0;display:flex;flex-wrap:wrap;gap:12px;padding:0;margin:0 0 18px}.habit-weekday-fields legend{font-size:12px;color:#888;margin-bottom:12px}.habit-weekday-fields label{font-size:12px;display:flex;gap:5px;align-items:center}.habit-weekday-fields input,.habit-auto-log input,.habit-settings-flags input{accent-color:var(--accent)}.habit-reminder-editor h3{font-size:13px;font-weight:500;color:#666}.habit-reminder-row{display:flex;align-items:center;gap:12px;margin-bottom:8px}.habit-reminder-row input{padding:7px 10px;border:1px solid #ddd;border-radius:5px;color:#555}.habit-reminder-row .icon-button{font-size:20px}.habit-auto-log{display:flex;gap:10px;font-size:13px;align-items:center;margin:20px 0}.habit-settings-flags label{display:flex;align-items:center;gap:10px;margin:14px 0 22px;font-size:13px}.habit-library-dialog{width:760px;max-width:calc(100vw - 30px)}.habit-library-tools{display:flex;align-items:center;justify-content:space-between;gap:12px}.habit-library-tools input{flex:1;min-width:80px;border:1px solid #e5e5e5;background:#fafafa;padding:10px 12px;border-radius:6px}.habit-library-tabs{display:flex;gap:16px;margin:20px 0}.habit-library-tabs button{border:0;background:none;font-size:13px;color:#999;padding:3px 6px}.habit-library-tabs button.active{color:var(--accent)}.habit-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:52vh;overflow-y:auto}.habit-library-card{display:flex;gap:10px;align-items:center;text-align:left;color:#666;border:1px solid #eee;background:#fff;padding:14px 10px;border-radius:7px;font-size:12px;min-width:0}.habit-library-card svg{color:var(--habit-color);flex:none}.habit-library-card:hover{background:#fafafa;border-color:#ddd}.habit-share-card{padding:30px 20px;text-align:center;background:#fafafa;border-radius:9px}.habit-share-card>svg{width:64px;height:64px;fill:none;stroke:var(--habit-color);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}.habit-share-card h2{font-size:20px;font-weight:500;overflow-wrap:anywhere}.habit-share-card p{font-size:12px;color:#999;white-space:pre-wrap;overflow-wrap:anywhere}.habit-share-card strong{display:block;margin:24px;font-size:40px;font-weight:400;color:var(--habit-color)}
.habit-smart-section{border-top:1px solid #eee;margin-top:20px;padding-top:8px}.habit-smart-section h2{font-weight:500;color:#888;font-size:12px}.habit-smart-row{display:flex;align-items:center;gap:10px;min-height:42px;border-bottom:1px solid #f5f5f5;padding:5px 13px}.habit-smart-check{width:17px;height:17px;border-radius:50%;border:1px solid var(--habit-color);color:var(--habit-color);background:none;padding:0;font-size:11px}.habit-smart-name{border:0;background:none;padding:0;text-align:left;color:#555;font-size:13px;flex:1;overflow-wrap:anywhere}.habit-smart-row small{font-size:11px;color:#aaa}.habit-smart-check:disabled{opacity:.3}
@media(max-width:1100px){.habit-workspace{grid-template-columns:minmax(360px,60%) minmax(290px,40%)}.habit-secondary{padding:0 18px 30px}.habit-metrics strong{font-size:21px}.habit-week{padding-left:25px;padding-right:25px}.habit-primary-scroll{padding-left:20px;padding-right:20px}}
@media(max-width:760px){.habit-workspace{display:block;position:relative}.habit-primary{height:100%}.habit-secondary:not(:empty){position:absolute;inset:0;background:#fff;z-index:5;border:0;padding:0 20px 30px}.habit-week{padding:10px 20px 15px}.habit-header{padding:0 20px}.habit-cards{grid-template-columns:1fr}.habit-more{opacity:1}.habit-primary-scroll{padding-left:18px;padding-right:18px}.habit-empty{padding-top:70px}.habit-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.habit-library-tools{align-items:stretch}.habit-form-row{gap:10px}.habit-smart-row small{max-width:110px}.habit-tools{gap:8px}}

.habit-week-day.no-habits .track{fill:none;stroke:#eee}.habit-week-day.no-habits:after{content:"";position:absolute;bottom:11px;left:10px;width:20px;border-top:1px solid #eee;transform:rotate(-45deg)}
.habit-workspace,.habit-detail-header{background:#fafafa}.habit-empty h2{color:#444}
.habit-empty{padding-top:101px}.habit-empty h2{font-size:14px}.habit-empty p{font-size:12px}.habit-empty-art:before{content:"";position:absolute;left:20px;top:17px;width:122px;height:104px;border-radius:24px 38px 20px 42px;background:#f4f4f4;transform:rotate(-13deg)}.habit-empty-art svg:nth-child(1){width:76px;height:76px;left:79px;top:42px;stroke:#6582ed;stroke-width:1.7}.habit-empty-art svg:nth-child(2){width:58px;height:44px;left:15px;top:27px;stroke:#6f83d6;stroke-width:1.4}.habit-empty-art svg:nth-child(3){width:13px;height:13px;left:92px;top:13px;stroke:#b0b9da;stroke-width:1.7}
.habit-group.empty{display:none}.is-dragging .habit-group.empty{display:block;min-height:68px;border:1px dashed #e0e4ed;border-radius:7px;padding:0 12px}.is-dragging .habit-group.empty .habit-group-title{margin:12px 0}
.habit-conflict-dialog{width:660px;max-width:calc(100vw - 30px);overflow:hidden}.habit-conflict-dialog #modalContent{max-height:calc(88dvh - 160px);overflow-y:auto}.habit-conflict-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.habit-conflict-columns section{min-width:0}.habit-conflict-columns pre{font-size:11px;line-height:18px}.habit-conflict-dialog footer{flex-wrap:wrap}.habit-conflict-dialog .habit-conflict>p{font-size:12px;color:#777;line-height:20px}
@media(max-width:560px){.habit-conflict-columns{grid-template-columns:1fr}.habit-conflict-dialog #modalContent{max-height:calc(88dvh - 200px)}}
