/* Week shares the workspace's type, module borders, controls and dialog rhythm. */
.week-page{max-width:1500px;margin:auto;padding:0 0 32px}.week-page>header.week-heading{height:auto;min-height:0;padding:0 0 20px;border:0;display:flex;align-items:center;justify-content:space-between;gap:18px}.week-heading h1{font-size:24px;font-weight:550;letter-spacing:-.5px;margin:0 0 8px}.week-heading p{color:var(--muted);font-size:12px;line-height:1.5;margin:5px 0}.week-heading .eyebrow{display:none}.week-heading-actions{display:flex;gap:8px;flex-wrap:wrap}.week-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:4px 0 18px}.week-toolbar label{font-size:11px;margin:0;display:grid;gap:6px}.week-toolbar input,.week-toolbar select{width:auto;min-height:35px}.week-connection{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px 16px;background:var(--soft);border:1px solid var(--line);margin-bottom:18px;font-size:11px}.week-connection span{flex:1;min-width:180px}.week-connection strong{font-weight:550}.week-connection small{display:block;line-height:1.6;color:var(--muted);margin-top:5px}.week-connection [data-guide-mobile]{display:none}.week-grid{display:block}.week-main{min-width:0}.week-budget,.week-inventory,.week-side section{border:1px solid var(--line);border-radius:0;background:#fff;margin:0 0 18px;padding:16px}.week-budget{background:var(--soft)}.week-budget>.week-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.week-budget h2{font-size:22px;font-weight:550;letter-spacing:-.4px;margin:0}.week-budget .week-heading p{font-size:11px;margin:7px 0 14px}.week-bar{display:flex;height:12px;overflow:hidden;background:var(--line);gap:1px}.week-legend{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px 16px;font-size:10px;margin:14px 0}.week-legend i{display:inline-block;width:8px;height:8px;border-radius:1px;margin-right:5px}.week-bar .sleep,.week-legend .sleep{background:#929cae}.week-bar .work,.week-legend .work{background:#a9b7c5}.week-bar .life,.week-legend .life{background:#d1c5b8}.week-bar .priorities,.week-legend .priorities{background:var(--accent)}.week-bar .routine,.week-legend .routine{background:#bcb4c5}.week-bar .buffer,.week-legend .buffer{background:#d5c3cd}.week-bar .unassigned,.week-legend .unassigned{background:#e5e7ec}.week-inventory{padding:0}.week-inventory-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}.week-inventory h2,.week-side h2{font-size:13px;font-weight:550;margin:0}.week-inventory h2 small{color:var(--muted);font-size:10px;font-weight:400}.week-inventory>p{padding:0 16px;color:var(--muted);font-size:11px;line-height:1.6}.week-list{list-style:none;padding:0;margin:0}.week-row{display:grid;grid-template-columns:minmax(180px,1fr) 68px 146px 86px 132px;gap:12px;align-items:center;border-top:1px solid var(--line);padding:14px 16px;font-size:11px;min-width:0}.week-task{min-width:0}.week-task>button:first-child{font-size:12px;font-weight:500;line-height:1.5;text-align:left;color:inherit}.week-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px;line-height:1.5}.week-task .week-source{font-size:10px;min-height:24px;padding:3px 0}.week-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}.week-icon{width:30px;height:30px;min-height:30px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;padding:7px}.week-icon:hover{background:var(--soft)}.week-icon img{width:15px;height:15px}.week-row-actions [data-direction="-1"] img{transform:rotate(180deg)}.week-priority select{font-size:11px;padding:6px;width:100%}.week-row.conflict{border-left:3px solid #b77738;padding-left:13px}.week-inventory>[data-add-bottom]{margin:12px 16px}.week-delete-plan{display:block;margin:8px 16px 16px;color:#92374b;font-size:11px}.week-warning{color:#8a4e17!important;background:#fff5e9;padding:10px;font-size:11px}.week-side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.week-side section{margin:0}.week-side p{font-size:11px;line-height:1.6;color:var(--muted)}.week-side strong{font-size:12px;color:var(--accent)}.week-day{display:grid;grid-template-columns:28px 1fr 55px;gap:8px;align-items:center;font-size:11px;margin:12px 0}.week-day progress{width:100%;height:7px;accent-color:var(--accent)}.week-day strong{text-align:right;font-size:11px}.week-day small{grid-column:2/4;color:var(--muted);font-size:10px;margin-top:-4px}.week-page .muted{font-size:11px;line-height:1.6}.week-empty{padding:24px 16px;color:var(--muted);font-size:12px}
.week-dialog{width:min(650px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:0}.week-dialog form{display:grid;gap:14px;padding:22px 24px}.week-dialog .dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0}.week-dialog .dialog-heading h2{font-size:16px;font-weight:550}.week-dialog .dialog-heading button{border:0;background:transparent}.week-dialog fieldset{border:1px solid var(--line);padding:14px;display:grid;gap:12px;min-width:0}.week-dialog label{display:flex;flex-direction:column;gap:7px;font-size:12px;margin:0}.week-dialog label small{font-size:11px;color:var(--muted);line-height:1.5}.week-dialog label.checkbox-label,.week-days label{flex-direction:row;align-items:center}.week-dialog .week-days{display:flex;flex-wrap:wrap;gap:12px}.week-dialog .week-days input{width:auto}.week-dialog input,.week-dialog select{min-width:0}.week-dialog .dialog-actions{border-top:1px solid var(--line);padding-top:14px;position:sticky;bottom:-22px;background:#fff;margin:0;z-index:2}.week-remove-check{padding:12px;background:var(--soft)}.week-dialog .muted{font-size:11px;line-height:1.6;color:var(--muted)}
.week-guide form{padding:0;gap:0}.week-guide .dialog-heading{padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:3}.week-guide .dialog-heading small{font-size:9px;color:var(--muted);letter-spacing:.06em}.week-guide .dialog-heading h2{margin:8px 0 0}.week-guide .record-form-body{padding:18px 24px}.week-guide .record-form-body>p{font-size:12px;line-height:1.7}.week-guide-progress{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;padding:0;margin:0 0 20px;font-size:10px;color:var(--muted)}.week-guide-progress [aria-current]{color:var(--accent);font-weight:600}.week-guide label.week-question{display:grid;grid-template-columns:minmax(0,1fr) 95px;gap:16px;align-items:center;border-top:1px solid var(--line);padding:16px 0;line-height:1.6}.week-question small{display:block}.week-guide .dialog-actions{padding:14px 24px;bottom:0}.week-guide .week-day-picker{margin-top:18px}.week-review-list{list-style:none;padding:0;font-size:11px}.week-review-list li{display:flex;justify-content:space-between;gap:15px;line-height:1.6;padding:8px 0;border-bottom:1px solid var(--line)}.week-review-list strong{font-weight:500}.week-guide h3{font-size:12px;margin-top:24px}.week-goal-links{border:1px solid var(--line);padding:12px 16px;margin:12px 0;font-size:11px}.week-goal-links summary{cursor:pointer;color:var(--accent)}.week-goal-links p{color:var(--muted);line-height:1.6}.week-reference-list{list-style:none;padding:0}.week-reference-list li{border-bottom:1px solid var(--line);padding:8px 0}.week-reference-list button{text-align:left;font-size:11px}
@media(max-width:1200px){.week-columns{display:none!important}.week-row{grid-template-columns:minmax(0,1fr) auto}.week-task{grid-column:1/-1}.week-cell-label{display:block!important}.week-side{grid-template-columns:1fr}}
@media(max-width:650px){.week-page{display:flex;flex-direction:column;position:relative}.week-page>header.week-heading{position:absolute;clip:rect(0,0,0,0);clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.week-page>header.week-heading button{display:none}.week-toolbar{order:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 14px;align-items:end}.week-toolbar>[data-prev]{grid-column:1;width:44px}.week-toolbar>label:first-of-type{grid-column:2/4}.week-toolbar>[data-next]{grid-column:4;justify-self:end;width:44px}.week-toolbar>[data-today]{grid-column:1/3}.week-toolbar>label:last-of-type{grid-column:3/5}.week-toolbar label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.week-toolbar input,.week-toolbar select{width:100%;min-width:0;max-width:100%;font-size:16px;min-height:44px}.week-connection{order:2;padding:12px;gap:10px}.week-connection span{min-width:100%}.week-connection [data-guide-mobile]{display:inline-block}.week-connection button{flex:1;font-size:11px;min-height:44px}.week-page>[data-status]{order:5;margin:0}.week-grid,.week-main{display:contents}.week-budget{order:3;margin-bottom:12px}.week-budget h2{font-size:22px}.week-budget .week-heading{gap:0}.week-inventory{order:6}.week-side{order:7;display:block}.week-side section{margin-bottom:16px}.week-row{grid-template-columns:1fr auto;padding:12px 16px;gap:10px}.week-task{grid-column:1/-1}.week-task>button:first-child{font-size:14px}.week-row small{font-size:11px}.week-row .week-source{font-size:12px;min-height:36px}.week-duration,.week-due{font-size:12px}.week-priority{max-width:110px}.week-priority select{font-size:16px;min-height:44px}.week-row-actions{justify-content:flex-end;gap:8px}.week-icon{width:44px;height:44px}.week-legend{gap:10px 14px}.week-legend li{min-width:75px}.week-dialog input,.week-dialog select{font-size:16px;min-height:44px}.week-dialog .week-days input{min-height:24px}.week-dialog .form-row,.week-dialog .record-form-pair{display:grid;grid-template-columns:1fr;gap:14px}.week-dialog form{padding:18px}.week-dialog .dialog-actions{bottom:-18px}.week-guide form{padding:0}.week-guide .dialog-heading,.week-guide .record-form-body{padding:18px}.week-guide .dialog-actions{padding:12px 18px;bottom:0}.week-guide .dialog-actions button{min-height:44px}.week-guide label.week-question{grid-template-columns:minmax(0,1fr) 85px;gap:12px}.week-review-list li{flex-wrap:wrap;gap:4px}.week-day-picker{padding:10px!important}.week-goal-links{margin:10px 0}}

.week-columns{display:grid;grid-template-columns:minmax(180px,1fr) 68px 146px 86px 132px;gap:12px;padding:10px 16px;background:var(--soft);border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.week-columns>span:last-child{text-align:right}.week-row .week-title{border:0;background:transparent;padding:0;min-height:24px;text-decoration:none;font-weight:550}.week-title:hover{text-decoration:underline}.week-task .week-source{display:inline-flex;gap:5px;align-items:center;text-decoration:none;padding:3px 0;min-height:24px}.week-source:hover{text-decoration:underline}.week-cell-label{display:none!important}.week-when{display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:11px;line-height:1.5}.week-schedule{display:inline-flex;gap:5px;align-items:center;min-height:28px;padding:4px 7px;font-size:10px;color:var(--accent);border-color:var(--line);background:#fff}.week-schedule img{width:12px;height:12px}.week-priority{margin:0!important;gap:4px}.week-reorder,.week-record-actions{display:flex;gap:1px}.week-record-actions{border-left:1px solid var(--line);padding-left:7px}.week-row .week-icon{width:28px;height:30px;min-height:30px;padding:6px}.week-row.is-done .week-title{color:var(--muted)}.week-capacity-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.week-capacity-head button{display:inline-flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}.week-capacity-head img{width:14px;height:14px}.week-average-note{grid-column:1/-1;margin:0!important;padding:0 2px}.week-next-list{list-style:none;padding:0;margin:16px 0}.week-next-list li+li{border-top:1px solid var(--line)}.week-next-list button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;border:0;border-radius:0;padding:13px 0}.week-next-list button:hover{background:var(--soft)}.week-next-list strong{display:block;font-size:12px;font-weight:550;color:inherit;line-height:1.5}.week-next-list small{display:block;color:var(--muted);margin-top:5px;font-size:10px}.week-next-rank{display:grid;place-items:center;flex-shrink:0;width:25px;height:25px;border:1px solid var(--line);background:var(--soft);color:var(--accent);font-size:11px;border-radius:50%}.week-row:focus-within{background:#fcf7fa}
@media(max-width:1200px){.week-row .week-cell-label{display:block!important;font-size:10px;color:var(--muted);font-weight:400;margin:0 0 5px}.week-when{align-items:flex-end}.week-priority{max-width:105px}}
@media(max-width:650px){.week-row .week-icon{width:40px;height:44px;min-height:44px;padding:11px}.week-row-actions{gap:6px}.week-record-actions{padding-left:5px}.week-when{max-width:185px;font-size:12px}.week-schedule{min-height:38px;padding:6px 9px;font-size:12px}.week-source{min-height:36px!important}.week-capacity-head button{min-height:44px}.week-next-list button{min-height:64px}.week-next-list small{font-size:11px}.week-row .week-title{min-height:32px}.week-capacity-head{gap:8px}}
