.habit-planner-modal{max-width:1160px!important;padding:26px;width:100%}
.habit-planner-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px;padding-right:18px}.habit-planner-heading .modal-symbol{margin:0;flex-shrink:0;background:#edf2e6;color:#85956c}.habit-planner-heading .modal-subtitle{margin:6px 0 0;color:#9686a1;max-width:650px}
.habit-planner-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}
#habit-form{background:#f8f5fc;border:1px solid #eae1f1;border-radius:16px;padding:20px}#habit-form label{margin-bottom:17px;color:#786388}#habit-form input{background:white}#habit-form .habit-editor-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}#habit-form h3{font-size:14px;color:#76608c}
#habit-form fieldset{border:0;padding:0;margin:0 0 18px;min-width:0}#habit-form legend{font-size:11px;color:#786388;margin-bottom:9px}.habit-frequency-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}#habit-form .habit-frequency-options label,#habit-form .habit-day-chips label{position:relative;margin:0;display:block;cursor:pointer}.habit-frequency-options input,.habit-day-chips input{position:absolute;opacity:0;inset:0;width:100%!important;height:100%!important;padding:0!important;min-height:0!important;margin:0;cursor:pointer}.habit-frequency-options span{display:block;border:1px solid #e5dced;border-radius:10px;background:white;padding:12px 6px;text-align:center;font-size:11px;color:#937da5;transition:background .2s,border-color .2s}.habit-frequency-options input:checked+span{background:#8b74b4;color:white;border-color:#8b74b4;box-shadow:0 3px 8px #8b74b423}.habit-frequency-options input:focus-visible+span,.habit-day-chips input:focus-visible+span{outline:3px solid #b7a1ce;outline-offset:2px}
.habit-day-chips{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.habit-day-chips span{display:grid;place-items:center;border:1px solid #e2d8ed;background:white;border-radius:8px;min-height:36px;font-size:10px;color:#937da5}.habit-day-chips input:checked+span{background:#ece3f6;border-color:#b8a1ce;color:#73588e}.habit-day-shortcuts{display:flex;justify-content:space-between;gap:6px;margin-top:9px}.habit-day-shortcuts button{font-size:10px;color:#8a729c;background:none;border:0;padding:5px 0;text-decoration:underline;text-underline-offset:3px}.habit-schedule-preview{padding:13px;border-radius:11px;background:#eef2e7;margin-bottom:18px}.habit-schedule-preview strong{font-size:10px;color:#7e8b69}.habit-schedule-preview [data-habit-target]{font-size:11px;line-height:1.7;color:#7d896a;margin-top:6px}.habit-editor-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.habit-editor-actions .primary-button{width:100%;min-height:42px}.habit-editor-delete{margin-left:auto}.habit-day-options[hidden]{display:none!important}
.habit-overview{min-width:0}.habit-week-nav{margin:0 0 10px;font-size:12px}.habit-board-hint{font-size:10px;line-height:1.7;color:#9a88a6;margin:0 0 14px}#habit-week-board{grid-template-columns:repeat(7,minmax(88px,1fr));border:0;border-radius:0;gap:6px;align-items:stretch;padding:0 0 8px;scroll-snap-type:x proximity}.habit-week-day{border:1px solid #eee7f4;border-radius:12px;min-height:225px;padding:6px;background:#faf8fd;scroll-snap-align:start}.habit-week-day:last-child{border-right:1px solid #eee7f4}.habit-week-day.selected{background:#f3edf9;border-color:#d6c5e7}.habit-week-day.drop-hover{background:#e6efd9;border-color:#99b078;box-shadow:inset 0 0 0 1px #99b078}.habit-day-select{padding:6px 2px 12px;font-size:11px;align-items:center}.habit-day-select small{font-size:13px;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;background:#fff}.habit-week-card{position:relative;padding:0;margin:6px 0;border:1px solid #e7dfed;border-radius:9px;box-shadow:0 2px 5px #64447706;display:flex;flex-direction:column;background:white;overflow:hidden}.habit-week-card:hover{border-color:#bda8d1}.habit-week-card [data-habit-grip]{text-align:center;font-size:14px;color:#bba8c9;line-height:23px;letter-spacing:-3px;cursor:grab;touch-action:none;user-select:none;background:#fcfaff}.habit-card-main{width:100%;border:0;background:none;padding:7px 7px 10px;text-align:left;min-height:52px}.habit-card-main strong{display:block;color:#887097;font-size:10px;font-weight:550;line-height:1.55;overflow-wrap:anywhere}.habit-card-main small{display:block;font-size:8px;color:#b09abd;margin-top:6px}.habit-drag-active{opacity:.6;outline:2px dashed #a58cbf}.habit-day-empty{font-size:9px;color:#b9abc2;line-height:1.8;text-align:center;padding:15px 4px}.habit-day-add{display:flex;align-items:center;justify-content:center;width:100%;border:1px dashed #dfd3e9;background:none;border-radius:8px;margin-top:8px;color:#ad98be;min-height:32px}.habit-day-add .icon{width:14px;height:14px}.habit-move-note{font-size:9px;color:#a997b4;line-height:1.7;margin:7px 0 15px}.habit-all{border-top:1px solid #eee6f4;padding-top:14px;color:#937ca4;font-size:11px}.habit-all summary{cursor:pointer}.habit-all summary span{background:#eee7f5;border-radius:20px;padding:2px 7px;margin-left:4px}.habit-all [data-habit-library]{display:flex;flex-wrap:wrap;gap:7px;padding-top:12px}.habit-all button{display:flex;align-items:center;gap:7px;border:1px solid #e8dfef;border-radius:9px;background:white;padding:9px 11px;font-size:10px;color:#8d739e}.habit-all small{color:#b09cbc;font-size:9px}.habit-all .icon{width:12px;height:12px}
@media(max-width:900px){.habit-planner-layout{grid-template-columns:245px minmax(0,1fr)}#habit-form{padding:16px}}
@media(max-width:650px){.habit-planner-modal{padding:22px 16px}.habit-planner-heading{align-items:flex-start;gap:12px;margin-bottom:18px}.habit-planner-heading h2{font-size:18px}.habit-planner-layout{grid-template-columns:minmax(0,1fr);gap:22px}#habit-form{padding:17px}.habit-frequency-options{grid-template-columns:repeat(4,minmax(0,1fr))}.habit-frequency-options span{font-size:10px;padding:12px 2px}.habit-day-chips span{min-height:40px;font-size:11px}.habit-editor-actions .primary-button{flex:1;width:auto}.habit-week-day{min-width:0}#habit-week-board{grid-template-columns:repeat(7,115px)}.habit-card-main{min-height:56px}.habit-card-main strong{font-size:11px}.habit-week-card [data-habit-grip]{line-height:30px}}

.habit-editor-delete.confirm-delete{width:auto;min-height:38px;padding:7px 10px;gap:6px;color:#b77889;background:#fff0f3;font-size:10px}

@media(min-width:651px){.habit-planner-modal{padding:22px}.habit-planner-heading{margin-bottom:18px}#habit-form{padding:16px}#habit-form .habit-editor-heading{margin-bottom:12px}#habit-form label{gap:6px;margin-bottom:12px}#habit-form fieldset{margin-bottom:12px}.habit-frequency-options span{padding:9px 5px}.habit-day-shortcuts{margin-top:5px}.habit-schedule-preview{padding:10px;margin-bottom:12px}.habit-schedule-preview [data-habit-target]{line-height:1.5}.habit-card-main{padding-bottom:8px}.habit-week-card [data-habit-grip]{line-height:20px}}
