/* V1 planner. One component stylesheet; panes retain their own scroll and source actions. */
.pl-shell{display:grid;grid-template-columns:210px minmax(0,1fr);height:var(--pl-height,calc(100dvh - 200px));min-height:0;overflow:hidden;border:1px solid #e7e7ee80;border-radius:10px;background:#fff;transition:grid-template-columns .18s ease}
.pl-shell.pl-has-detail{grid-template-columns:210px minmax(0,1fr) 300px}
.pl-sidebar,.pl-detail{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.pl-sidebar{background:#fafafb;border-right:1px solid #e7e7ee80;padding:16px 12px}
.pl-sidebar h2{display:flex;align-items:center;gap:8px;font-size:16px;line-height:24px;margin:0 8px 4px}
.pl-sidebar h2 .icon{width:18px;height:18px}
.pl-private{display:block;color:#888897;font-size:12px;line-height:18px;margin:0 8px 16px}
.pl-sidebar nav{display:grid;gap:2px;padding-bottom:12px}
.pl-sidebar nav button{min-height:34px;padding:7px 10px;text-align:left;border:0;border-radius:6px;background:transparent;color:#656574;font:inherit;font-size:13px;line-height:20px;cursor:pointer;overflow-wrap:anywhere}
.pl-sidebar nav button:hover{background:#f0f0f5;color:#1c1c24}
.pl-sidebar nav button.active{background:#edf3ff;color:#0147fd;font-weight:600}
.pl-sidebar h3{font-size:11px;line-height:16px;font-weight:600;color:#888897;margin:18px 10px 6px;letter-spacing:.02em}
.pl-sidebar nav small{color:#888897;padding:0 10px;font-size:12px;line-height:18px}
.pl-main{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;padding:20px}
.pl-header{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;flex-shrink:0}
.pl-header>div:first-child{flex:1;min-width:160px}
.pl-header h1{font-size:24px;line-height:32px;margin:0 0 4px;letter-spacing:-.5px}
.pl-header small,.pl-footer{font-size:12px;line-height:18px;color:#888897}
.pl-header>.button{min-height:36px;padding:8px 10px;font-size:12px}
.pl-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0 12px;flex-shrink:0}
.pl-search{flex:1;min-width:160px;font-size:12px;line-height:18px;color:#656574}
.pl-search input{display:block;width:100%;min-width:0;margin-top:6px;min-height:38px}
.pl-layout{display:flex;gap:2px;flex-wrap:wrap;padding:3px;background:#f6f6f9;border-radius:6px}
.pl-layout button{min-height:32px;border:0;padding:6px 9px;border-radius:4px;background:transparent;color:#656574;font-size:12px;line-height:20px;cursor:pointer}
.pl-layout button.active{background:#fff;color:#0147fd;box-shadow:0 1px 3px #1c1c2408}
.pl-quick{display:flex;gap:8px;border-bottom:1px solid #e7e7ee80;padding-bottom:12px;flex-shrink:0}
.pl-quick input{flex:1;min-width:0;background:#fafafb;min-height:38px}
.pl-quick>.button{min-height:38px}
.pl-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:8px 0 12px}
.pl-row{display:grid;grid-template-columns:18px minmax(0,1fr) 88px;gap:12px;align-items:center;min-height:60px;padding:10px 4px;border-bottom:1px solid #e7e7ee80}
.pl-content:not(:has(.pl-board,.pl-calendar,.pl-matrix))>.pl-row{max-width:960px}
.pl-row.selected{background:#edf3ff}
.pl-check{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;min-width:18px;min-height:18px;border:1.5px solid #b9bfcd;background:#fff;border-radius:50%;padding:0;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.pl-check svg{width:12px;height:12px}.pl-check:disabled{opacity:.5;cursor:default}
.pl-check.p3{border-color:#db5867}.pl-check.p2{border-color:#c89537}.pl-check.p1{border-color:#4778ff}
.pl-check:not(:disabled):hover{background:#edf3ff;border-color:#0147fd;transform:scale(1.06)}
.pl-check:not(:disabled):active{transform:scale(.95)}
.pl-check[aria-pressed=true]{background:#0147fd;color:#fff;border-color:#0147fd}.pl-check-saving{opacity:.55;cursor:progress}
.pl-row-main{display:block;min-width:0;padding:0;border:0;background:none;text-align:left;cursor:pointer}
.pl-row-main strong{display:block;font-size:14px;line-height:20px;font-weight:500;color:#1c1c24;overflow-wrap:anywhere}
.pl-row-main small{display:block;margin-top:4px;font-size:12px;line-height:18px;color:#888897;overflow-wrap:anywhere}
.pl-date{font-size:12px;line-height:18px;color:#656574;font-variant-numeric:tabular-nums;text-align:right;white-space:normal}
.pl-date.overdue{color:#db5867}
.pl-detail{border-left:1px solid #e7e7ee80;padding:20px;background:#fff}
.pl-shell:not(.pl-has-detail)>.pl-detail{display:none}
.pl-detail-head{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#656574;font-size:12px;margin-bottom:20px}
.pl-detail .field{display:grid;gap:6px;margin:16px 0;font-size:12px;line-height:18px}
.pl-detail textarea,.pl-detail input,.pl-detail select{width:100%;min-width:0}
.pl-detail textarea{min-height:104px;padding:12px;line-height:20px;resize:vertical}
.pl-detail form{padding-bottom:12px}.pl-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pl-empty{max-width:380px;margin:0 auto;padding:40px 16px;text-align:center;color:#888897;font-size:13px;line-height:20px}
.pl-empty h2,.pl-empty h3{font-size:16px;line-height:24px;color:#1c1c24;margin:0 0 8px}
.pl-checklist{border:0;padding:0;margin:20px 0;font-size:12px}
.pl-checklist label{display:flex;gap:8px;align-items:center;margin:9px 0;flex-wrap:wrap}
.pl-checklist input[type=checkbox]{width:16px}.pl-checklist input:not([type=checkbox]){flex:1;min-width:0}
/* Board cards: title owns the width; status and date form a quiet footer. */
.pl-content:has(.pl-board){display:flex;flex-direction:column;overflow:hidden;scrollbar-gutter:auto}
.pl-board-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-shrink:0;margin-bottom:12px}
.pl-board-toolbar>.button{white-space:nowrap;font-size:12px;padding:8px;flex-shrink:0}
.pl-board-hint{font-size:12px;color:#888897;line-height:18px;margin:0;flex:1}
.pl-board{display:flex;gap:12px;flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;align-items:stretch;overscroll-behavior:contain}
.pl-board>section{display:flex;flex-direction:column;flex:0 0 268px;min-width:268px;min-height:0;background:#fafafb;border-radius:8px;padding:12px}
.pl-board-column{transition:background .12s,box-shadow .12s}
.pl-column-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-shrink:0}
.pl-column-heading h3{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:14px;line-height:20px;font-weight:600;overflow-wrap:anywhere;margin:4px 0 12px}
.pl-column-heading h3 small{font-size:12px;font-weight:400;color:#888897}
.pl-column-rename{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;padding:6px;border:0;border-radius:6px;background:transparent;color:#888897;cursor:pointer;flex-shrink:0}
.pl-column-rename:hover{background:#f0f0f5;color:#1c1c24}.pl-column-rename svg{width:16px;height:16px}
.pl-board-cards{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 2px 40px 0}
.pl-board .pl-row,.pl-drag-ghost{position:relative;display:grid;grid-template-columns:14px 16px minmax(0,1fr);column-gap:7px;row-gap:10px;align-items:start;background:#fff;padding:14px;margin:8px 0;border:1px solid #e7e7ee80;border-radius:8px;min-height:0}
.pl-board .pl-row-main,.pl-drag-ghost .pl-row-main{grid-column:3;min-width:0;cursor:grab;user-select:none;-webkit-user-select:none}
.pl-board .pl-row-main strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:20px}
.pl-board .pl-row-main small{font-size:12px;line-height:18px}
.pl-board .pl-check{width:16px;height:16px;min-width:16px;min-height:16px;margin-top:2px}
.pl-row-status{grid-column:1/-1;grid-row:2;justify-self:start;max-width:calc(100% - 66px);padding:3px 5px;border-radius:4px;background:#f6f6f9;color:#656574;font-size:11px;line-height:16px;overflow-wrap:anywhere}
.pl-board .pl-date,.pl-drag-ghost .pl-date{grid-column:3;grid-row:2;padding-left:0;align-self:center}
.pl-drag-handle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 14px;width:14px;height:20px;padding:0;border:0;background:transparent;color:#b5b5c1;cursor:grab;touch-action:none;user-select:none}
.pl-drag-handle:hover,.pl-drag-handle:focus-visible{color:#656574}.pl-drag-handle svg{width:14px;height:14px}
.pl-dragging,.pl-dragging *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
.pl-board .pl-row.pl-drag-source{display:none}
.pl-drag-ghost{position:fixed;left:0;top:0;margin:0!important;pointer-events:none!important;z-index:10000;box-sizing:border-box;border-color:#b4c9ff;box-shadow:0 14px 32px #183b752c;opacity:.94;will-change:transform;max-width:380px}
.pl-drop-placeholder{box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin:8px 0;border:2px dashed #4778ff;background:#edf3ff;border-radius:8px;color:#0147fd;font-size:12px;padding:12px;text-align:center;pointer-events:none}
.pl-board>section.pl-drop-active{background:#edf3ff;box-shadow:inset 0 0 0 2px #b5ccff}.pl-drop-active .pl-column-empty{display:none}
.pl-column-empty{font-size:12px;text-align:center;padding:24px 8px;color:#888897;border:1px dashed #e7e7ee;border-radius:6px}
.pl-column-add{display:flex;align-items:center;justify-content:center;gap:8px;min-width:168px;align-self:flex-start;margin-top:4px;padding:12px;border:1px dashed #e7e7ee;border-radius:8px;background:#fafafb;color:#656574;font:inherit;font-size:12px;cursor:pointer}
.pl-column-add:hover{border-color:#4778ff;color:#0147fd}.pl-column-add svg{width:16px;height:16px}
.pl-matrix{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pl-matrix>section{background:#fafafb;border:1px solid #e7e7ee80;padding:14px;border-radius:8px;min-height:160px}.pl-matrix h3{font-size:14px}
/* Calendar: a bounded cell plus explicit access to every item. */
.pl-month-head{display:flex;justify-content:center;align-items:center;gap:12px;margin:0 0 12px}
.pl-month-head h2{min-width:160px;font-size:16px;line-height:24px;font-weight:600;text-align:center;margin:0}
.pl-month-head>.button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:7px;border:0;background:#f6f6f9}
.pl-month-head .icon{width:16px;height:16px}
.pl-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#e7e7ee80;border:1px solid #e7e7ee80;border-radius:8px;overflow:hidden}
.pl-calendar>b{font-size:11px;line-height:16px;font-weight:500;color:#888897;background:#fff;text-align:center;padding:8px}
.pl-day{background:#fff;min-height:108px;max-height:120px;overflow:hidden;padding:6px;min-width:0}
.pl-calendar[data-weeks="6"] .pl-day{min-height:96px;max-height:108px}
.pl-day>strong{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:12px;line-height:18px;font-weight:500;margin-bottom:4px}
.pl-day.today>strong{background:#0147fd;color:#fff;border-radius:50%}
.pl-day.blank{background:#fafafb}
.pl-day button{display:block;width:100%;font-size:12px;line-height:18px;background:#edf3ff;color:#2754bd;border:0;margin:3px 0;padding:2px 5px;min-height:22px;border-radius:4px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.pl-day button.pl-day-more{background:none;color:#656574;font-size:11px;margin:0;padding-top:0;padding-bottom:0}
.pl-day-dialog{width:min(560px,calc(100vw - 32px));max-width:100%;max-height:calc(100dvh - 48px);overflow:auto}
.pl-day-task{display:grid;gap:4px;text-align:left;padding:12px 0;border:0;border-bottom:1px solid #e7e7ee;background:none;width:100%;cursor:pointer}
.pl-day-task strong{font-size:14px;line-height:20px;font-weight:500;overflow-wrap:anywhere}.pl-day-task span{font-size:12px;line-height:18px;color:#888897}
.pl-footer{flex-shrink:0;line-height:18px}
.pl-shell :is(button,input,textarea,select):focus-visible,.pl-day-dialog button:focus-visible{outline:2px solid #0147fd;outline-offset:2px;box-shadow:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
/* Page fixed; only its panes scroll. */
.shell:has(#planner-root){height:100dvh;min-height:0;overflow:hidden;margin-top:0;margin-bottom:0}
.shell:has(#planner-root)>.main{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden;padding-bottom:16px}
.shell:has(#planner-root)>.main>:not(#page){flex-shrink:0}.shell:has(#planner-root) .workspace-signature{display:none}
.shell:has(#planner-root) #page{flex:1;min-height:0}.shell #planner-root,.shell #planner-root .pl-shell{height:100%;min-height:0}
html:has(#planner-root),body:has(#planner-root){height:100dvh;min-height:0;overflow:hidden}body:has(#planner-root){display:flow-root}
.pl-settings{width:min(680px,calc(100vw - 32px));max-width:100%;box-sizing:border-box}
.pl-settings fieldset{border:1px solid #e7e7ee;border-radius:8px;padding:16px;margin:18px 0}.pl-settings legend{font-weight:600;padding:0 6px}
.pl-settings-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pl-settings-nav label{display:flex;align-items:center;gap:9px;font-size:14px}
.pl-settings input[type=checkbox]{accent-color:#0147fd;width:17px;height:17px}.pl-setting-list{display:flex;align-items:center;gap:8px;margin-bottom:8px}.pl-setting-list[hidden]{display:none}.pl-setting-list input{min-width:0;flex:1}.pl-settings .modal-actions{flex-wrap:wrap}
@media(min-width:1500px){.pl-shell{grid-template-columns:220px minmax(0,1fr)}.pl-shell.pl-has-detail{grid-template-columns:220px minmax(0,1fr) 330px}}
@media(min-width:701px) and (max-width:1200px){.pl-shell{grid-template-columns:200px minmax(0,1fr)}.pl-shell.pl-has-detail{grid-template-columns:200px minmax(0,1fr) 250px}.pl-main,.pl-detail{padding:16px}.pl-header h1{font-size:22px;line-height:30px}}
@media(max-width:700px){
 .pl-shell,.pl-shell.pl-has-detail{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);position:relative}
 .pl-sidebar{border-right:0;border-bottom:1px solid #e7e7ee80;padding:10px 12px;max-height:148px;overflow:auto}
 .pl-sidebar h2{font-size:14px;line-height:20px;margin:0 0 6px}.pl-private{display:none}.pl-sidebar nav{display:flex;gap:4px;overflow:auto;align-items:center;padding-bottom:4px}
 .pl-sidebar nav button{white-space:nowrap;min-height:44px;flex:none;padding:10px;font-size:12px}.pl-sidebar h3{margin:0 4px;min-width:max-content}.pl-sidebar nav small{min-width:130px}
 .pl-main{padding:12px}.pl-header{gap:8px}.pl-header h1{font-size:21px;line-height:28px}.pl-header>.button{min-height:44px}
 .pl-tools{margin:12px 0;gap:8px}.pl-search{min-width:100%;font-size:12px}.pl-search input{min-height:44px}.pl-layout{width:100%;justify-content:space-between}.pl-layout button{min-height:38px;flex:1;padding:7px 5px}
 .pl-quick input,.pl-quick>.button{min-height:44px}.pl-quick>.button{font-size:12px;padding:8px}.pl-row{grid-template-columns:22px minmax(0,1fr) 68px;gap:8px}.pl-check{width:22px;height:22px;min-width:22px;min-height:22px}
 .pl-shell.pl-has-detail>.pl-detail{display:block;position:absolute;inset:0;z-index:3;background:#fff;border:0;padding:16px}.pl-detail .pl-detail-head{position:sticky;top:-16px;z-index:2;background:#fff;padding:8px 0}
 .pl-board>section{flex-basis:248px;min-width:248px}.pl-board-toolbar{gap:8px}.pl-board-toolbar .pl-board-hint{display:none}.pl-board .pl-check{width:20px;height:20px;min-width:20px;min-height:20px}.pl-board .pl-row{grid-template-columns:18px 20px minmax(0,1fr);gap:8px;padding:12px}.pl-board .pl-drag-handle{width:18px;height:24px}
 .pl-column-rename{width:44px;height:44px;min-height:44px}.pl-matrix{grid-template-columns:1fr}.pl-footer{font-size:11px;line-height:16px}
 .pl-month-head{gap:4px}.pl-month-head h2{min-width:140px;font-size:14px}.pl-month-head>.button{width:44px;height:44px;min-height:44px}
 .pl-day,.pl-calendar[data-weeks="6"] .pl-day{min-height:102px;max-height:112px;padding:3px}.pl-day>strong{width:22px;height:22px}.pl-day button{font-size:10px;padding:2px;min-height:22px}.pl-day button.pl-day-more{font-size:10px}
 .pl-settings-nav{grid-template-columns:1fr}.pl-settings .pl-fields{grid-template-columns:1fr}.pl-settings fieldset{padding:12px}
}
@media(prefers-reduced-motion:reduce){.pl-shell,.pl-board-column,.pl-check{transition:none}.pl-check:not(:disabled):hover,.pl-check:not(:disabled):active{transform:none}}
