/* Compact, source-bound planning matrix. Existing app controls remain intact. */
.planning-sheet{color:#30342f;min-width:0}.sheet-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px}.sheet-heading h2{font-size:29px;letter-spacing:-.035em;line-height:1.15;color:#69262d;margin:0}.sheet-heading p{font-size:13px;color:#716a61;margin:6px 0 0}.sheet-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sheet-heading-actions span{font-size:12px;color:#716a61}.sheet-status{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:11px 14px;background:#eee8dd;border:1px solid #dfd7cb;border-radius:8px;color:#6c6257;font-size:11px}.sheet-status strong{font-size:11px;color:#245e45}.sheet-status button{margin-left:auto;padding:0;border:0;background:none;color:#176c67;font:inherit;font-weight:750;cursor:pointer}.sheet-sync-note{font-size:11px;color:#716a61;margin:6px 0 14px;line-height:1.4}.sheet-controls{display:flex;align-items:end;justify-content:space-between;gap:12px}.sheet-year{display:flex;align-items:center;gap:3px;background:#e8e2d8;border-radius:8px;padding:4px}.sheet-year button{border:0;background:transparent;border-radius:5px;padding:7px 11px;color:#4e5049;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.sheet-year button:hover{background:#fffefa}.sheet-year strong{min-width:48px;text-align:center;font-size:17px;color:#69262d}.sheet-search{display:grid;gap:4px;color:#716a61;font-size:10px;font-weight:700}.sheet-search input{width:min(300px,38vw);min-height:37px;border:1px solid #bfb5a6;border-radius:7px;padding:7px 10px;font:inherit;font-size:13px;background:#fffefa;color:#30342f}.sheet-assets{display:flex;gap:5px;overflow:auto;margin:13px 0 10px;padding-bottom:3px}.sheet-assets button{flex:none;border:1px solid #d9d0c3;background:#fffefa;color:#5e5a52;border-radius:6px;padding:7px 12px;font:inherit;font-weight:700;font-size:12px;cursor:pointer}.sheet-assets button.is-active{color:#fff;background:#176c67;border-color:#176c67}.sheet-overview{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0}.sheet-overview p,.sheet-legend,.sheet-footnote{font-size:11px;line-height:1.4;color:#716a61;margin:0}.sheet-legend{display:flex;gap:13px;flex-wrap:wrap}.sheet-legend span{display:flex;align-items:center;gap:5px}.sheet-legend i{display:block;width:13px;height:7px;border-radius:2px}.sheet-key-plan{background:#70a98a}.sheet-key-issue{background:#e6bb6d}.sheet-review-warning{border-left:3px solid #c49243;background:#fff5e3;padding:9px 12px;color:#71542b;font-size:12px}.sheet-scroll{overflow:auto;max-height:620px;border:1px solid #d7d0c6;border-radius:8px;background:#fffefa;overscroll-behavior:contain}.sheet-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1000px;font-size:12px}.sheet-table th,.sheet-table td{border-right:1px solid #e7e1d8;border-bottom:1px solid #e7e1d8;padding:0;vertical-align:middle}.sheet-table thead th{position:sticky;top:0;z-index:3;background:#f2eee6;color:#665f56;font-size:11px;text-align:center;padding:11px 6px;width:auto}.sheet-table thead th:first-child{left:0;z-index:5;text-align:left;width:210px}.sheet-table tbody th.sheet-project{position:sticky;left:0;z-index:2;background:#fffefa;width:210px;text-align:left}.sheet-project button{display:grid;gap:3px;width:100%;min-height:52px;text-align:left;padding:8px 11px;border:0;background:transparent;color:#303b31;font:inherit;cursor:pointer}.sheet-project strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.sheet-project small{font-size:10px;color:#85786a}.sheet-table tr.is-selected .sheet-project{background:#e7f1ea}.sheet-group th{text-align:left;padding:8px 11px;background:#e9e3d9;color:#69262d;font-size:11px;letter-spacing:.04em}.sheet-group small{font-weight:500;color:#776f65;letter-spacing:0;margin-left:5px}.sheet-month-cell{position:relative;display:flex;align-items:center;text-align:left;width:100%;min-height:52px;overflow:hidden;border:0;padding:8px 6px 13px;background:#fffefa;color:#756f66;font:inherit;font-size:11px;line-height:1.3;cursor:pointer}.sheet-month-cell:hover,.sheet-project button:hover{background:#f2f8f2}.sheet-month-cell span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-month-cell b{position:absolute;right:4px;top:4px;display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#f1d293;color:#704a1d;font-size:10px}.sheet-month-cell.is-uncertain{background:#fff8ed;padding-right:17px}.sheet-plan-bar{position:absolute;bottom:4px;height:5px;border-radius:3px;background:#70a98a}.sheet-no-results{padding:24px!important;color:#716a61}.sheet-footnote{margin:9px 0 16px}.sheet-detail{padding:18px;border:1px solid #dfd7cb;border-radius:10px;background:#fffefa}.sheet-detail-head{display:flex;align-items:start;justify-content:space-between;gap:15px}.sheet-detail-head span{font-size:10px;font-weight:750;color:#6a8272}.sheet-detail-head h3{font-size:18px;color:#45312f;margin:5px 0}.sheet-detail-head p,.sheet-detail-hint{font-size:12px;color:#716a61;line-height:1.45}.sheet-detail-hint{margin:10px 0 14px}.sheet-detail-empty{display:flex;gap:5px;flex-direction:column;color:#716a61;font-size:12px}.sheet-detail-empty strong{font-size:15px;color:#45312f}.sheet-detail-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px}.sheet-field{min-width:0}.sheet-field label{display:flex;justify-content:space-between;gap:8px;margin-bottom:5px;color:#5f635b;font-size:11px}.sheet-field small{font-size:10px;font-weight:400;color:#847b6d}.sheet-field textarea{box-sizing:border-box;width:100%;min-height:76px;padding:9px;border:1px solid #bfb5a6;border-radius:6px;background:#fff;color:#30342f;font:inherit;font-size:12px;line-height:1.5;resize:vertical}.sheet-field p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.45;background:#f5f2ec;padding:9px;border-radius:6px}.sheet-history{margin-top:15px;border-top:1px solid #e6ded1;padding-top:11px}.sheet-history summary{cursor:pointer;color:#176c67;font-size:12px;font-weight:700}.sheet-history .sheet-detail-fields{margin-top:12px}.sheet-detail-issues{margin:10px 0;padding:10px 12px;border-left:3px solid #c49243;background:#fff5e3;color:#71542b;font-size:12px;line-height:1.4}.sheet-detail-issues p{margin:5px 0}.sheet-save{position:relative;margin-top:16px}.planning-sheet button:focus-visible,.planning-sheet a:focus-visible,.planning-sheet input:focus-visible,.planning-sheet textarea:focus-visible,.sheet-scroll:focus-visible{outline:3px solid #8dbca0;outline-offset:2px}
@media(max-width:700px){.sheet-heading{display:block}.sheet-heading h2{font-size:25px}.sheet-heading-actions{margin-top:12px}.sheet-status{gap:8px 13px}.sheet-controls{flex-wrap:wrap;align-items:start}.sheet-search{flex:1;min-width:170px}.sheet-search input{width:100%}.sheet-overview{display:block}.sheet-legend{margin-top:8px}.sheet-scroll{max-height:570px}.sheet-detail{padding:14px}.sheet-detail-head{flex-wrap:wrap}}
.sheet-draft-note{margin:8px 0;padding:8px 10px;border-left:3px solid #c49243;background:#fff5e3;color:#71542b;font-size:11px}.sheet-draft-note[hidden]{display:none}
.sheet-filter-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 8px;font-size:11px;color:#5e655b}.sheet-filter-line label{display:flex;align-items:center;gap:6px;font-weight:700}.sheet-filter-line input{accent-color:#176c67}.sheet-filter-line button{border:0;background:none;padding:2px;color:#176c67;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.sheet-filter-line small{font-size:11px;color:#716a61}.sheet-project button,.sheet-month-cell{min-height:44px}.sheet-month-cell{align-items:flex-start;padding:5px 6px 22px}.sheet-month-cell.has-plan{background:#f2f8f1}.sheet-month-cell.has-plan:hover{background:#e9f4e9}.sheet-month-cell.has-plan.is-uncertain{background:#fff8ed}.sheet-plan-bar{bottom:3px;height:18px;background:#c4e2ca;display:flex;align-items:center;justify-content:center;overflow:hidden}.sheet-plan-bar em{font-size:9px;font-style:normal;color:#275e3c;font-weight:750;white-space:nowrap}
@media(max-width:700px){.sheet-table thead th:first-child,.sheet-table tbody th.sheet-project{width:150px;min-width:150px;max-width:150px}}
@media(max-width:700px){.sheet-heading>div:first-child{display:none}.sheet-heading{margin-bottom:8px}.sheet-heading-actions{margin-top:0}.sheet-status{padding:8px;gap:6px 10px}.sheet-status>span:first-child{display:none}.sheet-sync-note:not(.is-warning){display:none}.sheet-year button{padding:6px 8px;min-height:34px}.sheet-search{min-width:125px}.sheet-search input{font-size:12px;min-height:34px}.sheet-assets{gap:3px;overflow:visible}.sheet-assets button{flex:1 1 0;min-width:0;padding:6px 3px;font-size:11px;text-align:center}}
/* Separate maintenance overlay: deadlines are indications, not bookings. */
.sheet-maintenance-status,.sheet-maintenance-open{margin:8px 0;color:#5e655b;font-size:11px;line-height:1.45}.sheet-maintenance-status.is-warning{padding:8px 10px;background:#fff5e3;color:#71542b;border-left:3px solid #c49243}.sheet-maintenance-status button,.sheet-maintenance-open button{border:0;padding:0;background:transparent;color:#176c67;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.sheet-maintenance-open summary{color:#785623;font-weight:700;cursor:pointer}.sheet-maintenance-open ul{margin:8px 0;padding-left:20px}.sheet-maintenance-open li{padding:3px 0;overflow-wrap:anywhere}.sheet-table .sheet-maintenance-row th.sheet-project{padding:7px 10px;background:#f4f1e9;color:#5b5a4d}.sheet-maintenance-row th span,.sheet-maintenance-row th small{display:block;line-height:1.25}.sheet-maintenance-row th span{font-size:11px;font-weight:700}.sheet-maintenance-row th small{margin-top:3px;font-size:10px;color:#7d766b;font-weight:400}.sheet-maintenance-row td{background:#f8f6f1;text-align:center}.sheet-maintenance-empty{font-size:11px;color:#aaa297}.sheet-maintenance-chip{width:100%;min-height:38px;padding:4px 2px;border:0;background:#f2ead9;color:#6e542b;font:inherit;font-size:10px;font-weight:700;line-height:1.2;overflow-wrap:anywhere;cursor:pointer}.sheet-maintenance-chip:hover{background:#eaddc0}.sheet-maintenance-chip.has-conflict{background:#f4ddb4;color:#744216}.sheet-maintenance-detail{padding:16px;margin:0 0 16px;border:1px solid #dfd7cb;border-radius:9px;background:#fffefa;color:#514b42}.sheet-maintenance-detail[hidden]{display:none}.sheet-maintenance-detail-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.sheet-maintenance-detail-head span,.sheet-maintenance-detail-item small{font-size:11px;color:#716a61}.sheet-maintenance-detail-head h3{margin:4px 0;font-size:17px;color:#45312f}.sheet-maintenance-detail-head button{padding:5px 8px;background:transparent;border:1px solid #d7d0c6;border-radius:5px;color:#514b42;font:inherit;font-size:11px;cursor:pointer}.sheet-maintenance-detail>p,.sheet-maintenance-detail-item{font-size:12px;line-height:1.45}.sheet-maintenance-detail-item{display:grid;gap:5px;padding:10px 0;border-top:1px solid #e7e1d8}.sheet-maintenance-detail-item p{margin:2px 0;color:#716a61}.sheet-maintenance-detail-item p.has-conflict{color:#87501a;font-weight:700}.sheet-maintenance-detail-item a{color:#176c67;font-weight:700;justify-self:start}.sheet-maintenance-detail-item small,.sheet-maintenance-detail-item p{overflow-wrap:anywhere}
.sheet-maintenance-chip span,.sheet-maintenance-chip small{display:block}.sheet-maintenance-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-maintenance-chip small{font-size:9px;font-weight:500}.sheet-maintenance-row th.sheet-project .sheet-maintenance-notice{display:inline-block;width:auto;min-height:0;margin:4px 4px 0 0;padding:2px 5px;border:0;border-radius:4px;background:#f5e1bb;color:#76501b;font:inherit;font-size:10px;font-weight:700;line-height:1.2;text-align:left;cursor:pointer}
.sheet-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.sheet-group-head button{padding:4px 9px;border:1px solid #b9cabb;border-radius:5px;background:#f8fbf7;color:#176c67;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.sheet-group-head button:hover{background:#e6f1e8}.sheet-create{margin:0 0 16px;padding:16px;border:1px solid #cbd9cb;border-radius:9px;background:#f8fbf6;color:#453b35}.sheet-create h3{margin:4px 0 10px;font-size:17px}.sheet-create-fields{display:grid;grid-template-columns:minmax(160px,2fr) repeat(2,minmax(130px,1fr));gap:10px;margin:8px 0}.sheet-create-fields label{display:grid;gap:5px;font-size:11px;font-weight:700;color:#5e655b}.sheet-create-fields input{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px;border:1px solid #bfb5a6;border-radius:6px;background:white;color:#30342f;font:inherit;font-size:13px}.sheet-create-warnings{padding:1px 10px;border-left:3px solid #c49243;background:#fff8ec;color:#71542b;font-size:11px;line-height:1.45}.sheet-create-warnings p{margin:7px 0}.sheet-create>p{font-size:12px;line-height:1.45}.sheet-create [data-sheet-create-feedback]:empty{display:none}@media(max-width:700px){.sheet-create-fields{grid-template-columns:1fr 1fr}.sheet-create-fields label:first-child{grid-column:1/-1}.sheet-create-fields input{font-size:16px}.sheet-group-head button{min-height:36px}}
