/* Task completion tools: shared shell stays full bleed; editing surfaces stay contextual. */
.tp-form{font-size:14px;min-width:0}.tp-form :is(input,textarea,select){font:inherit;min-width:0;max-width:100%}.tp-form textarea{min-height:100px}.tp-form h3{font-size:14px;font-weight:600;margin:10px 0 0}.tp-note{font-size:12px;color:var(--muted);line-height:1.65;margin:0}.tp-error{font-size:13px;color:#b33d4b;line-height:1.5;white-space:pre-wrap}.tp-error:empty{display:none}.tp-test{font-size:12px;color:var(--muted);padding-top:12px;border-top:1px solid var(--line)}
.tp-card-tools{display:inline-flex;position:relative;z-index:2;flex-shrink:0}.tb-card-top>span:first-child{flex:1;min-width:0}.tp-card-tools .icon-btn{width:28px;height:28px;min-width:28px;opacity:0;color:var(--muted)}.tb-card:hover .tp-card-tools .icon-btn,.tp-card-tools:focus-within .icon-btn,.tb-table tr:hover .tp-card-tools .icon-btn{opacity:1}.tb-table-title .tp-card-tools{float:right;margin-left:8px}.tp-select-hit{width:32px;height:32px;display:grid;place-items:center;cursor:pointer}.tp-select-hit input{width:17px;height:17px;accent-color:var(--ink)}.tb-card.tp-selected{outline:2px solid #315fca;outline-offset:-1px;background:color-mix(in srgb,#315fca 4%,var(--base))}
.tb-compact-toolbar.is-selecting{padding:0 16px}.tp-selection{height:55px;display:flex;align-items:center;gap:12px;width:100%;font-size:13px}.tp-select-all{display:flex;gap:10px;align-items:center;min-height:32px;cursor:pointer}.tp-select-all input{width:17px;height:17px;accent-color:var(--ink)}.tp-selected-names{max-height:140px;overflow:auto;display:flex;flex-direction:column;gap:6px;padding:12px;background:var(--surface);border-left:2px solid #315fca;font-size:12px;scrollbar-width:thin}
.tp-undo{position:fixed;z-index:160;bottom:72px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:var(--base);color:var(--ink);border:1px solid var(--line);box-shadow:0 8px 32px #0002;border-radius:10px;padding:7px 10px 7px 16px;font-size:13px;max-width:calc(100vw - 32px);width:max-content}.tp-undo>span{min-width:0;overflow-wrap:anywhere}.tp-undo .btn{white-space:nowrap}.tp-undo .icon-btn{width:32px;height:32px;min-width:32px}
.tp-quick-dialog{margin:0;padding:0;position:fixed;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:12px;background:var(--base);color:var(--ink);box-shadow:0 12px 48px #0002;overflow:auto}.tp-quick-dialog::backdrop{background:#0002}.tp-quick-dialog form{display:flex;flex-direction:column;gap:14px;padding:16px}.tp-quick-dialog header,.tp-quick-dialog footer{display:flex;align-items:center;gap:10px;justify-content:space-between}.tp-quick-dialog header strong{font-size:13px}.tp-quick-dialog textarea{min-height:90px;resize:vertical;line-height:1.5}.tp-quick-dialog .field{font-size:12px}.tp-quick-dialog .control{font-size:14px}.tp-quick-dialog footer a{font-size:12px;color:var(--muted)}
.tp-project-picker{display:flex;flex-direction:column;gap:10px;margin:20px 0}.tp-project-picker .btn{justify-content:flex-start}.tp-lane-state{font-size:12px;color:var(--muted);padding:0 16px 12px;min-height:26px;display:flex;flex-direction:column;gap:4px}.tp-lane-state strong,.tp-limit{color:#945a10!important}.tp-project-board .tb-column>header strong{overflow-wrap:anywhere}.tp-project-board .tb-column>header>button:first-child{min-width:0;gap:7px}.tp-project-board .tb-column>header .tb-count{margin-left:auto;white-space:nowrap}.tp-config-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.tp-config-heading h3{margin:0}.tp-lane-editor{display:grid;grid-template-columns:24px 1fr 1fr;gap:10px;align-items:end;padding:16px 0;border-bottom:1px solid var(--line)}.tp-lane-editor>label:first-of-type{grid-column:2/-1}.tp-lane-editor>div{display:flex;grid-column:2/-1;justify-content:flex-end}.tp-order{grid-row:1/4;align-self:start;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);border-radius:50%;width:24px;height:24px;font-size:12px;margin-top:24px}.tp-lane-editor>label:nth-of-type(2){grid-column:2}.tp-field-editor{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end;padding:16px 0;border-bottom:1px solid var(--line)}.tp-field-editor>label:nth-child(3){grid-column:1/-1}.tp-field-editor>.icon-btn{justify-self:end;grid-column:2}.tp-lane-editor :is(input,select),.tp-field-editor :is(input,select){width:100%}
.tp-start-grid{display:grid;gap:10px}.tp-start-grid>label{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:9px;padding:16px;cursor:pointer}.tp-start-grid>label:has(input:checked){background:color-mix(in srgb,#315fca 5%,var(--base));border-color:#315fca}.tp-start-grid>label>input{margin:4px 0 0;accent-color:#315fca}.tp-start-grid>label>span{display:grid;grid-template-columns:24px 1fr;gap:8px;min-width:0}.tp-start-grid svg{width:20px;height:20px;grid-row:1/4;color:#315fca}.tp-start-grid strong{font-size:14px;font-weight:600}.tp-start-grid small{font-size:12px;color:var(--muted);line-height:1.5}.tp-start-grid span>span{font-size:12px;color:var(--muted)}
.tp-import-summary{display:flex;align-items:baseline;gap:14px;padding:8px 0 16px;border-bottom:1px solid var(--line)}.tp-import-summary strong{font-size:36px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums;color:#315fca}.tp-import-summary span{font-size:13px;color:var(--muted)}.tp-import-map{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tp-import-preview{max-height:280px;overflow:auto;scrollbar-width:thin;border-block:1px solid var(--line)}.tp-import-preview>div,.tp-busy-list>div{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid var(--line);padding:12px 0}.tp-import-preview strong,.tp-busy-list strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.tp-import-preview small,.tp-busy-list small{font-size:12px;color:var(--muted)}.tp-form details{font-size:12px;line-height:1.6}.tp-form summary{cursor:pointer;min-height:32px}.tp-form li{overflow-wrap:anywhere}
.tp-date-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.tp-date-list time{padding:10px 14px;border:1px solid var(--line);border-radius:8px;font-size:13px;background:var(--surface);font-variant-numeric:tabular-nums}.tp-next-date{display:flex;align-items:center;gap:14px;font-size:26px;font-weight:500;color:#315fca;padding:18px 0}.tp-next-date svg{width:26px}.tp-people{display:flex;flex-direction:column;gap:4px}.tp-people label{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.tp-people input{width:17px;height:17px;accent-color:var(--ink)}.tp-local-guests small{font-size:12px;color:var(--muted)}.tp-notifications>article{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}.tp-notifications p{line-height:1.6;overflow-wrap:anywhere;margin:6px 0}.tp-notifications a{font-size:12px}.tp-mentions{display:flex;gap:4px;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:4px;flex-wrap:wrap}.tp-mentions[hidden]{display:none}.tp-mentions .btn{font-size:13px}#tp-detail-tools{display:flex;flex-direction:column;gap:6px;grid-column:1/-1}#tp-detail-tools .btn{white-space:normal;text-align:left;justify-content:flex-start}#tp-detail-tools h3{margin-top:16px}
#tp-planning-actions{display:flex;gap:4px}.tp-capacity{display:flex;flex-direction:column;gap:24px;margin:20px 0}.tp-capacity article{border-bottom:1px solid var(--line);padding-bottom:20px}.tp-capacity header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.tp-capacity strong{font-size:14px}.tp-capacity header>span{font-size:12px;color:var(--muted)}.tp-capacity progress{width:100%;height:7px;margin-top:12px;accent-color:#315fca}.tp-capacity progress.over{accent-color:#b33d4b}.tp-capacity-days{display:flex;gap:8px;margin-top:14px}.tp-capacity-days>span{flex:1;min-width:0}.tp-capacity-days small{font-size:12px;color:var(--muted);white-space:nowrap}.tp-capacity-days i{display:block;height:30px;margin-top:5px;border-radius:4px;background:linear-gradient(to top,#315fca var(--load),var(--surface) var(--load))}.tb-week .tp-busy{border-left-color:#945a10;background:repeating-linear-gradient(135deg,transparent,transparent 5px,#945a1007 5px,#945a1007 9px)}.tp-busy strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.tp-busy-list{max-height:220px;overflow:auto}.tp-quick-dialog .icon-btn{width:32px;height:32px;min-width:32px}
@media(prefers-reduced-motion:no-preference){.tp-undo{animation:tp-appear .18s ease-out}.tp-card-tools .icon-btn{transition:opacity .15s}.tp-start-grid>label{transition:background .15s,border-color .15s}@keyframes tp-appear{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}}
@media(max-width:768px){.tp-card-tools .icon-btn{opacity:1;width:44px;height:44px;min-width:44px}.tb-card-top .tp-card-tools{margin-right:8px}.tp-select-hit{width:44px;height:44px}.tp-select-hit input{width:20px;height:20px}.tp-selection{height:57px;gap:8px}.tp-selection .btn,.tp-selection .icon-btn{min-height:44px;min-width:44px}.tp-select-all{min-height:44px;gap:8px;font-size:12px}.tp-select-all input{width:20px;height:20px}.tp-undo{bottom:calc(80px + env(safe-area-inset-bottom,0px));width:calc(100vw - 24px);max-width:420px;padding:6px 8px;font-size:12px;gap:4px}.tp-undo>span{flex:1}.tp-undo .btn,.tp-undo .icon-btn{min-height:44px;min-width:44px}.tp-quick-dialog{left:8px!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:calc(100vw - 16px);max-width:none;max-height:85dvh}.tp-quick-dialog .btn,.tp-quick-dialog .icon-btn{min-height:44px;min-width:44px}.tp-quick-dialog .control{min-height:44px}.tp-form .btn,.tp-form .icon-btn{min-height:44px;min-width:44px}.tp-form .final-check{min-height:44px}.tp-form input[type=checkbox]{width:20px;height:20px}.tp-form :is(input:not([type=checkbox]),select){min-height:44px}.tp-form summary{min-height:44px}.tp-start-grid>label{padding:12px;gap:10px}.tp-import-map{grid-template-columns:1fr}.tp-lane-editor{grid-template-columns:20px 1fr 1fr;gap:8px}.tp-config-heading{flex-wrap:wrap}.tp-field-editor{grid-template-columns:1fr}.tp-field-editor>*{grid-column:1!important}.tp-capacity-days{gap:4px}.tp-capacity-days small{font-size:12px;white-space:normal}.tp-mentions .btn{min-height:44px}#tp-planning-actions .icon-btn{width:44px;min-width:44px;height:44px}.tb-page:has(#tp-planning-actions) .tf-calendar-head{flex-wrap:wrap}.tp-people label{min-height:44px}.tp-quick-dialog footer>a{min-height:44px;display:flex;align-items:center}.tp-project-picker .btn{min-height:44px;white-space:normal}.tb-project-detail .tp-card-tools{display:none}}
.tp-import-origin{font-size:12px;margin-top:20px;border-top:1px solid var(--line);padding-top:12px}.tp-import-origin summary{cursor:pointer;min-height:32px}.tp-import-origin dl{display:grid;grid-template-columns:140px 1fr;gap:10px;line-height:1.6;margin:12px 0}.tp-import-origin dt{color:var(--muted)}.tp-import-origin dd{margin:0;overflow-wrap:anywhere}.tp-import-origin .tp-note{margin-top:12px}@media(max-width:768px){.tp-import-origin summary{min-height:44px}.tp-import-origin dl{grid-template-columns:1fr}.tp-import-origin dd{margin-bottom:10px}}
#tp-inline-form{display:flex;align-items:center;gap:4px;flex-wrap:wrap;width:100%;margin:4px 0}#tp-inline-form>input{flex:1;min-width:150px;height:36px}#tp-inline-form>div{display:flex;gap:2px}#tp-inline-form .icon-btn{width:32px;height:32px;min-width:32px}#tp-inline-form .tp-error{flex-basis:100%}.tp-editing-title>a,.tp-editing-title>.tp-card-tools{display:none!important}.tb-table-title>.tp-editing-title{min-width:250px}@media(max-width:768px){#tp-inline-form>input,#tp-inline-form .icon-btn{min-height:44px}#tp-inline-form .icon-btn{min-width:44px}}
.tp-project-board .tb-column:not(.is-collapsed)>header>button:first-child{flex:1 1 0;min-width:0;overflow:hidden}.tp-project-board .tb-column:not(.is-collapsed)>header strong{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tp-project-board .tb-column>header :is(.tb-count,svg){flex-shrink:0}.tp-project-board .tb-column:not(.is-collapsed)>header>button:first-child>svg{margin-left:0}.tp-project-board .tb-column>header>.icon-btn{flex:0 0 28px}@media(max-width:768px){.tp-project-board .tb-column>header>.icon-btn{flex-basis:44px}}
