.task-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.task-heading h1{margin:4px 0;font-size:clamp(32px,4vw,48px);letter-spacing:-.04em}.task-heading .eyebrow{margin:0}.task-capacity{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 18px;scrollbar-width:thin}.task-person{display:flex;align-items:center;gap:12px;border:1px solid #e0e5ee;border-radius:20px;padding:16px 20px;flex:0 0 auto;background:#fff}.task-person .avatar{width:40px;height:40px;flex:0 0 40px;font-size:14px}.task-person div{display:grid;gap:5px}.task-person strong{font-size:15px}.task-person div>span{font-size:13px;color:#58647b}.task-filters{display:flex;gap:20px;align-items:end;flex-wrap:wrap;margin:10px 0 6px}.task-filters label{display:grid;gap:7px;font-size:14px;font-weight:600}.task-search{flex:1 1 230px}.task-filters input[type=search]{width:100%}.task-filters .task-archive-toggle{display:flex;align-items:center;min-height:48px;gap:10px}.task-archive-toggle input{width:20px;height:20px}.task-tabs{display:none}.task-board{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:14px;overflow-x:auto;align-items:start;padding:8px 2px 20px;max-width:100%;scroll-snap-type:x proximity}.task-column{background:#f6f7fa;border:1px solid #e7eaf0;border-radius:22px;padding:14px 10px;min-height:280px;scroll-snap-align:start;transition:background .15s}.task-column h2{display:flex;align-items:center;justify-content:space-between;font-size:16px;margin:4px 6px 18px;gap:8px}.task-column-count{font-size:12px;background:white;border-radius:20px;padding:5px 9px;font-weight:600;color:#5b6780}.task-card-list{display:grid;gap:12px;min-height:12px}.task-column-empty{padding:28px 10px;text-align:center;font-size:14px;color:#657086}.task-card{border:1px solid transparent;border-radius:16px;padding:15px;min-width:0;box-shadow:0 2px 5px #17213a06;transition:transform .18s,box-shadow .18s}.task-card:hover{box-shadow:0 4px 14px #17213a10}.task-card.neutral,.task-state.neutral{background:#eaeef3;color:#35425a}.task-card.active,.task-state.active{background:#e2f5e9;color:#194a34}.task-card.blocked,.task-state.blocked{background:#ffe6ed;color:#822c4c}.task-card.soon,.task-state.soon{background:#fff1b8;color:#634906}.task-card.overdue,.task-state.overdue{background:#ffe1df;color:#8f241e}.task-card-open{display:block;padding:10px 0 6px;min-height:44px;width:100%;text-align:left;background:none;border:0;font:inherit;font-size:17px;font-weight:650;line-height:1.35;color:inherit;overflow-wrap:anywhere;border-radius:3px}.task-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.task-points{font-size:12px;font-weight:650;white-space:nowrap}.task-card-top select{min-height:44px;max-width:132px;width:auto;font-size:12px;padding:8px 25px 8px 8px;border-color:#17213a24;background-color:#ffffff80;border-radius:10px;color:inherit}.task-due{font-size:12px;font-weight:600;margin:8px 0}.task-card-assignees{font-size:12px;line-height:1.5;margin:8px 0}.task-card progress{width:100%;height:5px;border:0;accent-color:#002fa7}.task-progress-label{font-size:12px;display:block;margin-bottom:5px}.task-state{display:inline-flex;border-radius:8px;padding:6px 10px;font-size:13px;font-weight:600}.task-card.dragging{opacity:.5;transform:rotate(-2deg)}.task-column.drag-over{background:#dce6ff;outline:2px solid #002fa7;outline-offset:-2px}.task-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;overflow:auto;border:0;border-radius:28px;box-shadow:0 24px 100px #07173540;background:white;color:#17213a}.task-dialog .detail-header{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e5e9f0;padding:16px 28px}.task-dialog .detail-header h2{font-size:21px;margin:0}.task-detail-body{padding:28px;display:grid;gap:20px}.task-detail-body>h2{font-size:clamp(26px,4vw,36px);line-height:1.15;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}.task-badges{display:flex;align-items:center;gap:15px}.task-facts{display:flex;flex-wrap:wrap;gap:8px 24px;color:#59657b;font-size:14px}.task-facts p{margin:0}.task-detail-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-bottom:16px;border-bottom:1px solid #e7eaf0}.task-detail-actions select{width:auto;max-width:100%;min-height:44px}.task-translation{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#59657b;flex-wrap:wrap}.task-description{line-height:1.65;overflow-wrap:anywhere}.task-description img{display:block;max-width:100%;height:auto;border-radius:12px}.task-description:empty{display:none}.task-detail-body h3{font-size:18px;margin:12px 0 18px}.task-file{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #e7eaf0;min-width:0}.task-file a{flex:1;overflow-wrap:anywhere;color:#002fa7}.task-file small{white-space:nowrap;color:#657086}.task-file button{flex-shrink:0}.task-upload{position:relative;display:inline-flex;margin-top:14px;cursor:pointer;align-items:center;justify-content:center;min-height:44px}.task-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.task-upload:focus-within{outline:3px solid #002fa7;outline-offset:3px}.task-checklist{list-style:none;margin:0;padding:0;max-height:420px;overflow-y:auto;overscroll-behavior:contain}.task-check-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #e7eaf0;font-size:15px}.task-check-row>span,.task-check-row>input:not([type=checkbox]){flex:1;min-width:0;overflow-wrap:anywhere}.task-check-row>input[type=checkbox]{width:22px;height:22px;min-width:22px;outline-offset:4px;cursor:pointer;margin:11px}.task-check-row .checked{text-decoration:line-through;color:#68748a}.task-check-menu{position:relative;flex-shrink:0}.task-check-menu>summary{min-height:44px;display:flex;align-items:center;font-size:13px;color:#002fa7;cursor:pointer}.task-check-actions{display:flex;flex-wrap:wrap;gap:5px}.task-check-menu[open]{max-width:150px}.task-inline-form{display:flex;gap:10px;align-items:center;margin:16px 0}.task-inline-form input{flex:1;min-width:0}.task-comments{list-style:none;padding:0;margin:0 0 22px;max-height:400px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.task-comment{background:#f5f7fb;padding:18px;border-radius:16px;margin:10px 0}.task-comment strong{font-size:14px}.task-comment time{display:block;font-size:12px;color:#657086;margin-top:5px}.task-comment p{font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}#task-comment-form{display:grid;gap:12px}#task-comment-form button{justify-self:start}.task-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.task-field-pair label{display:grid;gap:8px;font-weight:600;font-size:14px}.task-field-pair input,.task-field-pair select{min-width:0;width:100%}.task-assignees{padding:0;border:0;margin:0}.task-assignees legend{font-size:14px;font-weight:600;margin-bottom:10px}#task-assignees{display:flex;flex-wrap:wrap;gap:8px}#task-assignees label{display:flex;align-items:center;gap:10px;border:1px solid #dce1eb;border-radius:12px;padding:8px 12px;min-height:48px;font-size:14px}#task-assignees input{width:20px;height:20px}.task-edit-dialog .rich-email{min-width:0}.task-edit-dialog .email-editor{min-height:180px}#task-form>label{margin-bottom:-10px;font-size:14px;font-weight:600}#task-form input,#task-form select,#task-form textarea,#task-comment-form textarea,.task-inline-form input{font-size:16px}.task-edit-dialog .composer-file{flex-wrap:wrap}.task-edit-dialog .composer-file input{min-width:0;max-width:100%}.team-task-list{list-style:none;padding:0;max-height:340px;overflow-y:auto}.team-task-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e7eaf0}.team-task-row button{text-align:left;flex:1 1 170px;overflow-wrap:anywhere}.team-task-row>span:last-child{font-size:12px;color:#657086}.task-celebration{position:fixed;inset:0;pointer-events:none;z-index:10000;overflow:hidden}.task-cheer{position:absolute;bottom:12%;left:50%;transform:translateX(-50%);display:grid;justify-items:center;gap:8px;padding:20px 30px;background:#fff;border:1px solid #dbe2f0;border-radius:24px;box-shadow:0 8px 50px #002fa730;white-space:nowrap}.task-duck{font-size:50px;animation:duck-dance .4s alternate 7}.task-cheer strong{color:#002fa7}.task-confetti{position:absolute;left:var(--x);top:-20px;width:8px;height:14px;animation:task-fall 2.6s var(--delay) ease-in forwards}.task-tabs button:focus-visible,.task-card button:focus-visible{outline:3px solid #002fa7;outline-offset:3px}@keyframes duck-dance{from{transform:rotate(-14deg) translateY(0)}to{transform:rotate(14deg) translateY(-9px)}}@keyframes task-fall{to{transform:translateY(100vh) rotate(var(--rotation));opacity:0}}
@media(max-width:760px){.task-heading{gap:12px;align-items:center}.task-heading .eyebrow{font-size:11px}.task-heading h1{font-size:30px}.task-heading .primary{padding:12px 16px;white-space:nowrap}.task-person{padding:12px 14px}.task-filters{gap:14px}.task-filters .task-search{flex-basis:100%}.task-filters label:not(.task-search){flex:1}.task-filters select{width:100%}.task-tabs{display:flex;overflow-x:auto;gap:5px;padding:6px 0 12px;scrollbar-width:none;position:sticky;top:0;z-index:1;background:#fff}.task-tab{white-space:nowrap;border:0;background:#f0f3f8;border-radius:12px;min-height:44px;padding:10px 16px;color:#536078;font-size:14px}.task-tab[aria-selected=true]{background:#002fa7;color:#fff}.task-board{display:block;overflow:visible}.task-column{display:none;min-height:200px}.task-column.mobile-selected{display:block}.task-column h2{display:none}.task-card-list{gap:14px}.task-card{padding:18px}.task-card-top select{max-width:150px;font-size:14px}.task-card-open{font-size:19px}.task-due,.task-card-assignees{font-size:14px}.task-dialog{width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - 12px);margin:auto 0 0;border-radius:24px 24px 0 0}.task-dialog .detail-header{padding:14px 20px}.task-detail-body{padding:22px 20px calc(28px + env(safe-area-inset-bottom));gap:18px}.task-field-pair{gap:12px}.task-file{flex-wrap:wrap}.task-file a{flex-basis:65%}.task-cheer{bottom:18%}.team-task-row{gap:8px}}
@media(prefers-reduced-motion:reduce){.task-card,.task-column{transition:none}.task-duck{animation:none}.task-confetti{display:none}}

@media(max-width:760px){.sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar nav .nav-item{font-size:11px;min-height:48px}}

.task-card-top select{font-size:14px;flex:1;min-width:0;max-width:145px}
@media(max-width:1100px),(pointer:coarse){.task-card-top select{font-size:16px}}
.task-card progress::-webkit-progress-bar{background:#cbd4e2;border-radius:4px}.task-card progress::-webkit-progress-value{background:#002fa7;border-radius:4px}

.task-check-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 44px;min-height:44px;cursor:pointer}.task-check-toggle input{width:22px;height:22px;margin:0;cursor:pointer}

.task-drag-handle{display:block;min-width:44px;min-height:44px;margin:0 -8px -8px auto;padding:4px;border:0;background:transparent;color:inherit;font-size:25px;cursor:grab;touch-action:none;border-radius:8px}.task-drag-handle:active{cursor:grabbing}.task-drag-handle:hover{background:#ffffff70}@media(max-width:760px){.task-drag-handle{display:none}}

@media(max-width:760px){.task-heading{margin-bottom:12px}.task-capacity{padding-bottom:8px}.task-filters{margin-top:4px}.task-search>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.task-filters .task-archive-toggle{flex:0 1 125px;font-size:13px;line-height:1.3}}
.task-filters select{padding:12px 32px 12px 12px;font-size:16px;font-weight:500}

/* Task details keep actions compact while retaining 44-pixel touch targets. */
body:has(#tasks-view:not([hidden])) .topbar{border-bottom:0}
.task-detail-actions{border-bottom:0;padding-bottom:0;gap:10px 12px}
.task-detail-actions label{display:flex;margin:0;align-items:center}
.task-detail-actions select{margin:0;min-height:44px;padding:10px 32px 10px 14px;font-size:16px}
.task-small-button{border:0;border-radius:12px;padding:10px 14px;min-height:44px;font:inherit;font-size:14px;font-weight:600;margin:0}
.task-archive-button{background:#fff0af;color:#654b00}.task-archive-button:hover{background:#ffe477}
.task-delete-button{background:#ffe2e0;color:#a12823}.task-delete-button:hover{background:#ffd0cd}
.task-search{flex:0 1 320px;max-width:360px}.task-filters{margin-bottom:18px}
.task-field-pair{align-items:start}.task-field-pair label{grid-template-rows:auto 52px;align-content:start;margin:0;min-width:0}
.task-field-pair input,.task-field-pair select{height:52px;min-height:52px;margin:0;box-sizing:border-box;padding:12px 14px;font:inherit;font-size:16px;line-height:1.3}
.task-field-pair select{padding-right:32px}
.task-assignee-labels{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:13px;margin:8px 0}
.task-person-label{display:inline-flex;gap:8px;align-items:center;min-width:0}.task-person-label>span:last-child{overflow-wrap:anywhere}
.task-avatar.avatar{width:28px;height:28px;min-width:28px;flex:0 0 28px;font-size:10px;border-radius:9px}
.task-facts{align-items:center}.task-facts .task-assignee-labels{margin:0}
.task-comment-author{display:flex;align-items:center;gap:10px}.task-comment-author .task-avatar{width:36px;height:36px;flex-basis:36px;font-size:12px;border-radius:12px}
.task-card-top{flex-wrap:wrap}.task-card-top select{flex:1 1 110px;max-width:150px}
.task-card[aria-busy=true]{outline:1px solid #002fa744}.task-card[aria-busy=true] .task-drag-handle{visibility:hidden}
.task-file{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px 16px;border:1px solid #e4e8f0;border-radius:16px;padding:14px;margin:10px 0;background:#fafbfe}
.task-file-thumb{display:flex;align-items:center;justify-content:center;width:64px;height:64px;background:#edf1fa;border:0;border-radius:12px;font:inherit;font-size:12px;font-weight:700;color:#526383;overflow:hidden;padding:0}
.task-file-thumb img{width:100%;height:100%;object-fit:cover}.task-file-info{display:grid;gap:2px;min-width:0}
.task-file-info .text-button{padding:0;text-align:left;line-height:1.35;overflow-wrap:anywhere;min-height:44px;font-weight:600;white-space:normal}
.task-file-actions{grid-column:2;display:flex;gap:16px;flex-wrap:wrap}.task-file-actions .text-button{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0;font-size:14px}
.task-file-drop{outline:4px solid #002fa7;outline-offset:-5px}.task-file-drop .task-attachments{background:#eef3ff;border-radius:16px}
#task-upload-progress{width:100%;accent-color:#002fa7;height:6px}#task-upload-status{overflow-wrap:anywhere}
.task-file-viewer{width:min(1000px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:24px;background:#fff;color:#17213a;overflow:auto}
.task-file-viewer header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.task-file-viewer h2{font-size:18px;overflow-wrap:anywhere;margin:0}
.task-file-viewer footer{padding:16px 20px;display:flex;justify-content:flex-end}.task-file-viewer footer a{display:inline-flex;min-height:44px;align-items:center;text-decoration:none}
#task-file-preview{background:#f2f4f8;display:flex;justify-content:center;min-height:120px}#task-file-preview img{max-width:100%;max-height:70dvh;object-fit:contain}#task-file-preview iframe{border:0;width:100%;height:65dvh;background:white}
.task-description a,.task-comment a,.task-check-row a{text-decoration:underline;text-underline-offset:3px;color:#002fa7;overflow-wrap:anywhere}
.task-translation[hidden],.task-inline-form[hidden]{display:none}
.task-cheer{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%)}
.task-confetti{position:fixed;animation:task-burst 1.5s cubic-bezier(.12,.64,.3,1) var(--delay) both;left:auto;top:auto;width:9px;height:14px}
@keyframes task-burst{0%{transform:translate(0,0) rotate(0);opacity:1}70%{opacity:1}100%{transform:translate(var(--dx),calc(var(--dy) + 150px)) rotate(var(--rotation));opacity:0}}
@media(max-width:760px){.task-filters .task-search{flex:0 1 320px;width:100%;max-width:360px}.task-cheer{top:50%;bottom:auto}.task-file-actions{grid-column:1/-1;justify-content:flex-end}.task-file{grid-template-columns:56px minmax(0,1fr);gap:8px 12px}.task-file-thumb{width:56px;height:56px}.task-detail-actions{gap:10px}.task-file-viewer{width:calc(100vw - 16px)}.task-card-top select{max-width:160px}}
@media(prefers-reduced-motion:reduce){.task-confetti{display:none}.task-cheer,.task-duck{animation:none}}
#task-file-preview{display:flex;flex-direction:column;align-items:center;padding:16px;gap:16px;max-height:72dvh;overflow:auto;overscroll-behavior:contain}
.task-pdf-controls{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;position:sticky;top:-16px;background:#f2f4f8;padding:8px;z-index:1;font-size:14px}.task-pdf-controls button{min-width:44px;min-height:44px;padding:8px 14px}.task-pdf-text{width:100%;font-size:14px}.task-pdf-text summary{min-height:44px;cursor:pointer;display:flex;align-items:center;color:#002fa7}.task-pdf-text p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.task-text-preview{white-space:pre-wrap;overflow-wrap:anywhere;width:100%;font:inherit;font-size:15px;line-height:1.6;background:white;padding:16px;border-radius:12px;box-sizing:border-box}
@media(max-width:760px){.task-dialog{max-width:100%;width:100%}.task-field-pair label{grid-template-rows:minmax(36px,auto) 52px}}
