
:root{--theme-bg:#f3f5fa;--theme-surface:#fff;--theme-soft:#f7f8fc;--theme-hover:#edf1f9;--theme-text:#243149;--theme-muted:#65738a;--theme-border:#dce3ef;--theme-selected:#e6edff;--theme-accent:#465bc3}
:root[data-theme=dark]{--theme-bg:#0b1220;--theme-surface:#131e30;--theme-soft:#19263b;--theme-hover:#22334c;--theme-text:#e3eaf5;--theme-muted:#a1afc4;--theme-border:#304059;--theme-selected:#293e63;--theme-accent:#a8b8ff;--paper:#0b1220;--white:#131e30;--ink:#e3eaf5;--sub:#a1afc4;--line:#304059;--deep:#e3eaf5;--monday-bg:#19263b;--monday-text:#e3eaf5;--monday-subtext:#a1afc4;--monday-border:#304059;--aurora-ink:#e3eaf5;--aurora-muted:#a1afc4;--aurora-border:#304059;--aurora-paper:#0b1220;--shadow:0 14px 50px #0006}
body,#app-shell,#app-shell .main-wrap{background:var(--theme-bg);color:var(--theme-text)}
#app-shell .main-content{background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-text)}
#app-shell :is(.topbar,.brand,.sidebar){background:var(--theme-surface)!important;color:var(--theme-text);border-color:var(--theme-border)}
:root[data-theme=light] .aurora-shell-brand img{filter:brightness(.22) saturate(.5)}
#app-shell :is(.workspace-switch,.search-wrap,.workspace-monogram){background:var(--theme-soft);color:var(--theme-text);border-color:var(--theme-border)}
#app-shell :is(.side-link,.board-link,.side-heading,.switch-copy span,.topbar .breadcrumb,.topbar strong,.search-wrap input,.sidebar .nav-icon,.sidebar .board-symbol,.sidebar .board-dot){color:var(--theme-muted)}
#app-shell :is(.side-link.active,.board-link.active){background:var(--theme-selected);color:var(--theme-text);box-shadow:inset 2px 0 var(--theme-accent)}
#app-shell :is(.side-link:hover,.board-link:hover){background:var(--theme-hover);color:var(--theme-text)}
#app-shell .sidebar-footer{border-color:var(--theme-border)}
.theme-toggle{position:relative;isolation:isolate;width:66px;height:34px;flex:none;display:flex;align-items:center;justify-content:space-around;padding:0 4px;border:1px solid var(--theme-border);border-radius:20px;background:var(--theme-soft);color:var(--theme-muted)}
.theme-toggle svg{position:relative;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-thumb{position:absolute;left:3px;top:3px;width:26px;height:26px;border-radius:50%;background:var(--theme-surface);box-shadow:0 1px 4px #0002;transition:transform 180ms ease}
[data-theme=dark] .theme-thumb{transform:translateX(32px);background:#344967}
.theme-sun{color:#9d6b16}[data-theme=dark] .theme-moon{color:#d3ddff}
.theme-toggle:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}
@media(max-width:570px){.top-right{gap:6px}.theme-toggle{width:60px}.theme-toggle .theme-thumb{width:24px;height:24px;top:4px}[data-theme=dark] .theme-thumb{transform:translateX(28px)}.topbar .search-wrap{width:110px}}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}}

[data-theme=dark] :is(.stat-card,.project-card,.activity-panel,.tool-search,.segmented,.table-shell,.task-table,.task-table tr,.task-table th,.kanban-card,.empty-state,.modal,.drawer,.label-popover,.board-tool-panel,.board-pinned-columns,.board-pinned-columns .configurable-table th,.bulk-floating,.calendar-mini,.calendar-cell,.notification-row,.deadline-row,.detail-fields,.custom-field,.camera-card){background:var(--theme-surface)!important;color:var(--theme-text);border-color:var(--theme-border)!important}

[data-theme=dark] :is(.configurable-table td,.configurable-table th,.task-table td,.table-shell,.user-row,.modal-header,.drawer-header){border-color:var(--theme-border)!important}
[data-theme=dark] :is(.configurable-table th[data-column="title"],.configurable-table td[data-column="title"]){background:var(--theme-surface)!important}
[data-theme=dark] :is(.btn:not(.primary):not(.danger),.icon-button,.add-inline,.group-name-input,.search-wrap kbd,.board-tools select,.field input,.field select,#modal .stacked-form input,#modal .stacked-form select,#modal .stacked-form textarea,.custom-field input,.custom-field select,.advanced-tools select,.board-tool-panel select,.kanban-card select){background:var(--theme-soft)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
[data-theme=dark] :is(.page-head h1,.stat-value,.project-card h3,.task-name,.task-title,.group-name,.drawer h2,.modal h2,.field label,.column-command,.calendar-day-number){color:var(--theme-text)}
[data-theme=dark] :is(.muted,.eyebrow,.stat-label,.project-card p,.table-foot,.field-label,.calendar-weekday){color:var(--theme-muted)}
[data-theme=dark] :is(.task-table tr:hover td,.label-popover button:hover,.column-command:hover,.calendar-cell:hover){background-color:var(--theme-hover)}
[data-theme=dark] :is(.task-table tr.selected td,.segmented button.active){background-color:var(--theme-selected)}
[data-theme=dark] :is(#main-content,#modal,#drawer,#label-popover) input:not([type=color]):not([type=checkbox]),[data-theme=dark] :is(#main-content,#modal,#drawer,#label-popover) textarea{color:var(--theme-text);background-color:var(--theme-soft);border-color:var(--theme-border)}
[data-theme=dark] :is(#main-content,#modal,#drawer,#label-popover) input::placeholder{color:var(--theme-muted)}
[data-theme=dark] :is(.modal,.drawer,.label-popover,.board-tool-panel){box-shadow:0 16px 48px #0006}
[data-theme=dark] .aurora-auth{color-scheme:dark}
[data-theme=dark] #app-shell :is(h1,h2,h3,h4,.stat-value,.task-name,.task-title){color:var(--theme-text)!important}
[data-theme=dark] #app-shell :is(.eyebrow,.task-table th,.stat-label){color:var(--theme-muted)!important}
[data-theme=dark] #app-shell :is(.task-table td,.configurable-table td):not([style*="background"]){background-color:var(--theme-surface)!important;color:var(--theme-text)}
[data-theme=dark] #app-shell :is(.side-link.active,.board-link.active){background:var(--theme-selected)!important;color:var(--theme-text)!important}
@media(max-width:850px){#app-shell .sidebar:not(.open){transform:translateX(-110%)}#app-shell .sidebar.open{transform:translateX(0)}}

/* 4.9.2 — board controls and row contrast in both palettes. */
#app-shell .topbar{border-top-left-radius:16px;overflow:visible}
#app-shell .board-tabs{background:var(--theme-soft)!important;border:1px solid var(--theme-border);border-radius:12px;padding:4px;gap:4px;box-shadow:none;max-width:100%;overflow-x:auto}
#app-shell .board-tabs button{background:transparent!important;color:var(--theme-muted)!important;border:0;border-radius:9px;padding:10px 16px;white-space:nowrap;font-weight:500;box-shadow:none!important}
#app-shell .board-tabs button.selected{background:var(--theme-selected)!important;color:var(--theme-accent)!important;font-weight:600}
#app-shell .board-tabs button:hover{background:var(--theme-hover)!important;color:var(--theme-text)!important}
#app-shell .task-label .title,#app-shell .assignee-button,#app-shell .assignee-name,#app-shell .card-title{color:var(--theme-text)!important}
#app-shell .assignee-button{background:transparent!important}
#app-shell .assignee-chevron,#app-shell .child-marker,#app-shell .row-grip{color:var(--theme-muted)!important}
#app-shell .sub-count.subtask-fold{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:34px;height:27px;padding:0 7px;background:var(--theme-soft)!important;color:var(--theme-muted)!important;border:1px solid var(--theme-border);border-radius:7px;font-size:12px;font-weight:500;box-shadow:none}
#app-shell .sub-count.subtask-fold:hover{background:var(--theme-hover)!important;color:var(--theme-text)!important}
#app-shell .priority-select[style=""],#app-shell .priority-select:not([style]){background:var(--theme-soft)!important;color:var(--theme-muted)!important;color-scheme:inherit}
#app-shell .board-tools .tool-search{background:var(--theme-soft)!important;border-color:var(--theme-border)!important}
#app-shell #board-search{background:transparent!important;color:var(--theme-text)!important;border:0!important;box-shadow:none!important}
#app-shell #board-search::placeholder{color:var(--theme-muted)!important}
#app-shell .configurable-table th{border-color:var(--theme-border)!important;color:var(--theme-muted)!important}
#app-shell .theme-toggle{width:68px;height:36px;padding:0 5px;border:1px solid var(--theme-border);background:var(--theme-soft);box-shadow:none;gap:0}
#app-shell .theme-toggle .theme-thumb{left:4px;top:4px;width:26px;height:26px;box-shadow:0 1px 3px #0002;transform:translateX(0)}
[data-theme=dark] #app-shell .theme-toggle .theme-thumb{transform:translateX(32px);background:#354967}
#app-shell .theme-toggle svg{width:17px;height:17px;flex:none;stroke-width:1.7;color:var(--theme-muted)}
[data-theme=light] #app-shell .theme-toggle .theme-sun{color:#94651a}
[data-theme=dark] #app-shell .theme-toggle .theme-moon{color:#e4ecff}
@media(max-width:850px){#app-shell .topbar{border-top-left-radius:0}}
@media(max-width:570px){#app-shell .board-tabs button{padding:9px 12px}#app-shell .theme-toggle{width:64px;min-width:64px}[data-theme=dark] #app-shell .theme-toggle .theme-thumb{transform:translateX(28px)}}

/* 4.9.3 — continuous shell spacing, quiet column grips and adaptive label tones. */
#app-shell .topbar{border-radius:0;box-shadow:none}
#app-shell .topbar:after{background:var(--theme-border);opacity:.65}
#app-shell .main-content{margin:12px 12px 0;min-width:0;border-radius:14px 14px 0 0;border-color:var(--theme-border)}
#app-shell .topbar .search-wrap{background:var(--theme-soft)!important;border-color:var(--theme-border)!important;color:var(--theme-muted)}
#app-shell .topbar .search-wrap input{color:var(--theme-text)!important;background:transparent!important}
#app-shell .topbar .search-wrap input::placeholder{color:var(--theme-muted)!important}
#app-shell .topbar .search-wrap kbd{background:var(--theme-surface)!important;border-color:var(--theme-border)!important;color:var(--theme-muted)!important}
#app-shell .sidebar-footer{background:var(--theme-surface)!important;border-color:var(--theme-border)!important}
#app-shell .sidebar-footer :is(.profile-copy strong,.profile-name,.account-trigger){color:var(--theme-text)!important}
#app-shell .sidebar-footer :is(.profile-copy span,.profile-role){color:var(--theme-muted)!important}
:is(#app-shell,.board-pinned-columns) .column-resize{border:0!important;background:transparent!important;color:transparent!important;box-shadow:none!important;width:18px;height:100%;top:0;right:0;z-index:4}
:is(#app-shell,.board-pinned-columns) .column-resize:after{content:'';position:absolute;right:-1px;top:50%;height:20px;width:1px;transform:translateY(-50%);background:var(--theme-border);border-radius:2px}
:is(#app-shell,.board-pinned-columns) .column-resize:hover:after,:is(#app-shell,.board-pinned-columns) .column-resize:focus-visible:after{width:2px;background:var(--theme-accent)}
:is(#app-shell,.board-pinned-columns) .configurable-table th[data-column="title"]{box-shadow:none!important;border-right:0!important;border-bottom:0!important}
:is(#app-shell,.board-pinned-columns) .configurable-table th[data-column="title"]:after{content:'';position:absolute;bottom:0;left:8px;right:0;height:1px;background:var(--theme-border);pointer-events:none}
[style*="--label-color"]:not(.task-status){background:color-mix(in srgb,var(--label-color) 23%,#f7f9fc)!important;color:color-mix(in srgb,var(--label-color) 24%,#17253d)!important}
[data-theme=dark] [style*="--label-color"]{background:color-mix(in srgb,var(--label-color) 29%,#19263b)!important;color:color-mix(in srgb,var(--label-color) 18%,#f1f5fc)!important}
#app-shell .theme-toggle{background:var(--theme-soft);border-color:var(--theme-border);border-radius:10px}
#app-shell .theme-toggle .theme-thumb{border-radius:7px;box-shadow:none}
[data-theme=light] #app-shell .theme-toggle .theme-thumb{background:var(--theme-selected)}
@media(max-width:850px){#app-shell .main-content{margin:8px 8px 0;border-radius:12px 12px 0 0}}

/* 4.9.4 — consistent avatar circles, restrained theme-aware separation. */
:root{--avatar-edge:#dce3ed;--avatar-gap:#f7f8fc}
:root[data-theme=dark]{--avatar-edge:#0c1524;--avatar-gap:#131e30}
#app-shell :is(.assignee-photos,.person-avatars){align-items:center;overflow:visible}
#app-shell :is(.assignee-photos,.person-avatars) :is(.person-avatar,.person-more){width:28px!important;height:28px!important;min-width:28px;max-width:28px;min-height:28px;max-height:28px;flex:0 0 28px!important;box-sizing:border-box!important;border:2px solid var(--avatar-edge)!important;border-radius:50%!important;object-fit:cover;object-position:center;outline:0;box-shadow:0 0 0 1px var(--avatar-gap);padding:0;vertical-align:middle;overflow:hidden}
#app-shell :is(.assignee-photos,.person-avatars) .person-more{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:500;line-height:1;background:var(--theme-soft);color:var(--theme-text)}
#app-shell .assignee-photos :is(.person-avatar+.person-avatar,.person-more){margin-left:-9px}
#app-shell .person-avatars .avatar{margin-left:-9px}
#app-shell .person-avatars .avatar:first-child{margin-left:0}

/* 4.9.6 — larger, crisp group disclosure arrows. */
#app-shell .group-header .group-collapse{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;font-size:0;line-height:1;padding:0;border-radius:7px}
#app-shell .group-header .group-collapse:before{content:'';display:block;width:10px;height:10px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(-45deg);flex:none}
#app-shell .group-header .group-collapse[aria-expanded=true]:before{transform:translateY(-2px) rotate(45deg)}
#app-shell .group-header .group-collapse:hover{background:var(--theme-hover)}

/* 4.9.7 — overview components follow the shared Aurora component rules. */
:root{--control-radius:9px;--card-radius:12px;--space-unit:4px;--action-bg:#465bc3;--action-hover:#3b4fae;--action-text:#fff}
[data-theme=dark]{--action-bg:#5368cd;--action-hover:#6378dc}
#app-shell :is(.btn.primary,.topbar .top-add){background:var(--action-bg)!important;color:var(--action-text)!important;border:1px solid transparent!important;border-radius:var(--control-radius);box-shadow:none!important;font-weight:600}
#app-shell :is(.btn.primary,.topbar .top-add):hover{background:var(--action-hover)!important}
#app-shell .stat-grid{gap:16px;margin-bottom:32px}
#app-shell .stat-card{border:1px solid var(--theme-border);border-radius:var(--card-radius);padding:20px;min-height:132px;box-shadow:none}
#app-shell .stat-label{font-size:13px;font-weight:500;color:var(--theme-muted)!important;padding-right:40px}
#app-shell .stat-value{font-size:34px;line-height:1.2;font-weight:600;letter-spacing:-.6px;margin:10px 0 6px;font-variant-numeric:tabular-nums}
#app-shell .stat-foot{font-size:12px;line-height:1.4;color:var(--theme-muted)}
#app-shell .stat-icon{width:34px;height:34px;right:18px;top:18px;background:var(--theme-soft);color:var(--theme-accent);border:1px solid var(--theme-border);border-radius:9px}
#app-shell .stat-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#app-shell .stat-icon.green{color:#33846b}#app-shell .stat-icon.orange{color:#987135}#app-shell .stat-icon.pink{color:#b85b70}
[data-theme=dark] #app-shell .stat-icon.green{color:#82c9af}[data-theme=dark] #app-shell .stat-icon.orange{color:#d6b279}[data-theme=dark] #app-shell .stat-icon.pink{color:#db9aa9}
#app-shell .section-title{margin:28px 0 16px;gap:16px}
#app-shell .section-title h2{font-size:18px;font-weight:600;color:var(--theme-text);margin:0}
#app-shell .section-title a{color:var(--theme-accent);font-size:13px;font-weight:500}
#app-shell .project-grid{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
#app-shell .project-card{display:flex;flex-direction:column;gap:18px;padding:20px;min-height:176px;border:1px solid var(--theme-border);border-radius:var(--card-radius);background:var(--theme-surface)!important;text-align:left;box-shadow:none!important;transform:none!important;transition:border-color 140ms ease,background-color 140ms ease}
#app-shell .project-card:hover{border-color:var(--theme-accent)!important;background:var(--theme-soft)!important}
#app-shell .project-title{color:var(--theme-text)!important;font-size:15px;font-weight:600;line-height:1.4;letter-spacing:0}
#app-shell .project-desc{color:var(--theme-muted);font-size:12px;line-height:1.5;margin-top:3px}
#app-shell .project-top{margin:0;align-items:center}
#app-shell .project-icon{background:transparent!important;color:var(--theme-muted)!important;width:28px;height:28px;padding:0}
#app-shell .project-icon svg{width:24px;height:24px}
#app-shell .ellipsis{color:var(--theme-muted)}
#app-shell .project-bottom{gap:14px;margin-top:auto;width:100%}
#app-shell .mini-progress{height:5px;width:auto;flex:1;min-width:32px;border-radius:4px;background:var(--theme-border)}
#app-shell .mini-progress span{border-radius:4px;opacity:.85}
#app-shell .project-bottom>span{flex:none;color:var(--theme-muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
#app-shell .quick-welcome{background:var(--theme-soft);border:1px solid var(--theme-border);border-radius:var(--card-radius);padding:18px 22px;margin-bottom:24px;box-shadow:none}
#app-shell .quick-welcome strong{font-size:15px;font-weight:500;color:var(--theme-text)}
#app-shell .quick-welcome p{font-size:13px;color:var(--theme-muted);margin-top:7px}
#app-shell .welcome-glow{font-size:30px;color:var(--theme-accent);opacity:.4}
#app-shell .activity-title{color:var(--theme-text);font-weight:500}
#app-shell :is(.activity-sub,.activity-date){color:var(--theme-muted)}
#app-shell .activity-row{border-color:var(--theme-border)}
@media(max-width:1200px){#app-shell .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#app-shell .project-grid{grid-template-columns:1fr}#app-shell .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#app-shell .stat-card{padding:14px;min-height:130px}#app-shell .stat-icon{width:28px;height:28px;right:10px;top:12px}#app-shell .stat-label{font-size:12px;padding-right:28px}#app-shell .stat-value{font-size:28px}#app-shell .project-card{padding:18px}#app-shell .section-title{align-items:center}#app-shell .quick-welcome{padding:16px}}
@media(prefers-reduced-motion:reduce){#app-shell .project-card{transition:none}}

/* Activity interaction uses the same surface tokens in both themes. */
#app-shell .activity-row:hover,#app-shell .activity-row:focus-visible{background:var(--theme-hover)!important;color:var(--theme-text)!important}
#app-shell .activity-row:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px}
.camera-grid{align-items:start}

/* 4.9.10 — camera controls and shared dialog surfaces. */
#app-shell .camera-location-filter select{background:var(--theme-soft)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
#app-shell .camera-kind-tabs button{color:var(--theme-muted);background:transparent}
#app-shell .camera-kind-tabs button:hover{background:var(--theme-hover);color:var(--theme-text)}
#app-shell .camera-kind-tabs button[aria-pressed=true]{background:var(--theme-selected)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important}
#modal .camera-form-actions{background:var(--theme-surface)!important;border-color:var(--theme-border)!important;gap:12px}
#modal .close-button{background:var(--theme-soft)!important;color:var(--theme-muted)!important;border:1px solid var(--theme-border)!important;border-radius:9px;width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;padding:0;line-height:1}
#modal .close-button:hover{background:var(--theme-hover)!important;color:var(--theme-text)!important}
#modal .close-button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
#modal .stacked-form :is(label,.small-note){color:var(--theme-muted)!important}
#modal .rec-advanced{border-color:var(--theme-border)!important;color:var(--theme-text)}
#modal .camera-form-actions .btn.danger{background:var(--theme-soft)!important;border-color:var(--theme-border)!important;color:#ba3f59!important}
[data-theme=dark] #modal .camera-form-actions .btn.danger{color:#f39aaa!important}
@media(max-width:500px){#modal .camera-form-actions .btn{white-space:normal;flex:1 1 180px;margin-right:0}}
/* 4.9.11: shared board views, inputs and account menu. */
#app-shell :is(.view-summary,.small-note,.timeline-head span,.subtask-toggle){color:var(--theme-muted)}
#app-shell .kanban{gap:16px;padding:2px 2px 16px;scrollbar-color:var(--theme-border) transparent}
#app-shell .kanban-col{flex:0 0 288px;padding:12px;border:1px solid var(--theme-border)!important;border-radius:12px;background:var(--theme-soft)!important;color:var(--theme-text)}
#app-shell .kanban-head{align-items:center;gap:8px;min-height:40px;padding:10px 2px 8px;margin:0 2px 12px;font-size:13px;font-weight:600;color:var(--theme-text);border-top:0!important}
#app-shell .kanban-head:before{content:'';width:9px;height:9px;border-radius:3px;background:var(--kanban-color);flex:none}
#app-shell .kanban-head span{margin-left:auto;min-width:24px;height:24px;padding:0 6px;display:grid;place-items:center;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:7px;font-size:12px;color:var(--theme-muted);font-variant-numeric:tabular-nums}
#app-shell .kanban-card{background:var(--theme-surface)!important;color:var(--theme-text);border:1px solid var(--theme-border)!important;border-radius:10px;padding:16px;margin-bottom:10px;box-shadow:none}
#app-shell .kanban-card:last-child{margin-bottom:0}
#app-shell .kanban-card:hover{border-color:var(--theme-accent)!important}
#app-shell .kanban-card:focus-within{outline:2px solid var(--theme-accent);outline-offset:2px}
#app-shell .kanban-card .card-title{font-size:14px;font-weight:500!important;line-height:1.5;max-height:63px;margin-bottom:12px;color:var(--theme-text)!important}
#app-shell .kanban-bottom{font-size:11px;color:var(--theme-muted);align-items:start;flex-wrap:nowrap;gap:8px}
#app-shell .kanban-bottom>span:first-child{min-width:0;overflow-wrap:anywhere;flex:1}
#app-shell .kanban-bottom>span:last-child{white-space:nowrap;flex:none}
#app-shell .kanban-card .small-note{font-size:11px;margin:8px 0;overflow-wrap:anywhere;color:var(--theme-muted)}
#app-shell .kanban-card select{height:34px;min-height:34px;border-radius:8px;padding:5px 30px 5px 10px;font-size:12px;background-color:var(--theme-soft)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
#app-shell .kanban-col.drag-over{outline:2px dashed var(--theme-accent);outline-offset:-2px}
[data-theme=dark] #app-shell .kanban-head:before{background:color-mix(in srgb,var(--kanban-color) 65%,var(--theme-muted))}
#app-shell .timeline-row{border-color:var(--theme-border);color:var(--theme-text)}
#app-shell .timeline-row>button:first-child{color:var(--theme-text)}
#app-shell .timeline-track{height:28px;background:var(--theme-soft);border:1px solid var(--theme-border);border-radius:7px;overflow:hidden}
#app-shell .timeline-bar{top:5px;height:16px;border-radius:4px}
[data-theme=dark] #app-shell .timeline-bar{background:color-mix(in srgb,var(--timeline-color) 50%,var(--theme-soft))!important}
#app-shell .calendar-modes{background:var(--theme-soft)!important;border-color:var(--theme-border)!important;border-radius:10px}
#app-shell .calendar-modes button{color:var(--theme-muted);border-radius:7px}
#app-shell .calendar-modes button:hover{background:var(--theme-hover);color:var(--theme-text)}
#app-shell .calendar-modes button[aria-pressed=true]{background:var(--theme-selected)!important;color:var(--theme-accent)!important}
#app-shell :is(.calendar-grid,.calendar-weekday,.calendar-cell,.calendar-mini){border-color:var(--theme-border)!important}
#app-shell .calendar-weekday{background:var(--theme-soft)!important;color:var(--theme-muted);font-weight:500}
#app-shell .calendar-cell{background:var(--theme-surface)!important;border-radius:0}
#app-shell .calendar-cell.outside-month{background:var(--theme-soft)!important}
#app-shell .calendar-date-link{color:var(--theme-text)!important;border-radius:7px}
#app-shell .outside-month .calendar-date-link{color:var(--theme-muted)!important}
#app-shell .calendar-day button{color:var(--theme-accent)}
#app-shell .calendar-cell.today{box-shadow:inset 0 0 0 2px var(--theme-accent)}
#app-shell .calendar-cell.today .calendar-date-link,#app-shell .calendar-mini-grid>button.today{background:var(--action-bg);color:var(--action-text)!important;border-radius:7px}
#app-shell .calendar-task{background:var(--theme-soft);color:var(--theme-text);border-color:var(--theme-border);border-radius:7px}
#app-shell .calendar-task:hover{background:var(--theme-hover);border-color:var(--theme-accent)}
#app-shell :is(.calendar-month-title,.calendar-mini-grid>button){color:var(--theme-text)}
#app-shell :is(.calendar-month-title span,.calendar-mini-grid>span){color:var(--theme-muted)}
#app-shell .calendar-mini-grid>button:hover{background:var(--theme-hover)}
[data-theme=dark] #app-shell .overdue{color:#f3a2ae!important}
#app-shell .column-menu-trigger{background:transparent!important;color:var(--theme-muted)!important;border-radius:6px}
#app-shell .column-menu-trigger:hover,#app-shell .column-menu-trigger:focus-visible{background:var(--theme-hover)!important;color:var(--theme-text)!important}
#app-shell .task-table input[type=date]{box-sizing:border-box!important;width:calc(100% - 12px)!important;min-width:0!important;height:30px!important;min-height:30px!important;max-height:30px!important;margin:0 6px!important;padding:3px 8px!important;border:1px solid var(--theme-border)!important;border-radius:7px!important;background:var(--theme-soft)!important;color:var(--theme-text)!important;font-size:12px!important;text-align:left;line-height:22px}
#app-shell .task-table input[type=date]::-webkit-calendar-picker-indicator{opacity:.65;cursor:pointer;padding:2px;margin:0;filter:none}
#app-shell .task-table input[type=date]:hover{border-color:var(--theme-muted)!important}
#app-shell .task-table input[type=date]:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-1px}
:is(#app-shell,#modal,#drawer) input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;flex:0 0 18px!important;box-sizing:border-box!important;border:1.5px solid var(--theme-muted)!important;border-radius:5px!important;background:var(--theme-soft)!important;padding:0!important;vertical-align:middle;cursor:pointer;box-shadow:none!important}
:is(#app-shell,#modal,#drawer) input[type=checkbox]:checked{border-color:var(--action-bg)!important;background:var(--action-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat!important}
:is(#app-shell,#modal,#drawer) input[type=checkbox]:indeterminate{border-color:var(--action-bg)!important;background:var(--action-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9h10' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat!important}
:is(#app-shell,#modal,#drawer) input[type=checkbox]:focus-visible{outline:2px solid var(--theme-accent)!important;outline-offset:3px}
:is(#app-shell,#modal,#drawer) input[type=checkbox]:disabled{opacity:.45;cursor:not-allowed}
.account-menu{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
.account-menu-header,.account-menu-logout{border-color:var(--theme-border)!important}
.account-menu-header strong,.account-menu-item{color:var(--theme-text)!important}
.account-menu-header span,.account-menu-version,.account-menu-item svg{color:var(--theme-muted)}
.account-menu-header small{background:var(--theme-selected);color:var(--theme-accent);border:1px solid var(--theme-border);border-radius:6px}
.account-menu-item:hover,.account-menu-item:focus-visible{background:var(--theme-hover)!important;color:var(--theme-text)!important}
.account-menu-item:focus-visible{box-shadow:inset 0 0 0 2px var(--theme-accent)}
.account-menu-logout,.account-menu-logout svg{color:#ba3f59!important}
[data-theme=dark] .account-menu-logout,[data-theme=dark] .account-menu-logout svg{color:#f39aaa!important}
@media(max-width:600px){#app-shell .kanban-col{flex-basis:min(288px,82vw)}#app-shell .kanban-card select{min-height:40px;height:40px}}
@media(forced-colors:active){:is(#app-shell,#modal,#drawer) input[type=checkbox]{appearance:auto!important;-webkit-appearance:auto!important;background:revert!important;border:revert!important}}

#app-shell .camera-state[data-state=stale]{color:var(--theme-muted)}

/* Workspace picker, including recent entries and the full-space browser. */
.workspace-popover,.all-workspaces-list{color:var(--theme-text)}
.workspace-search{background:var(--theme-soft);color:var(--theme-text);border-color:var(--theme-border)}
.workspace-search::placeholder{color:var(--theme-muted);opacity:1}
.workspace-section-label,.workspace-choice-copy small,.workspace-empty{color:var(--theme-muted)}
.workspace-choice{color:var(--theme-text)}
.workspace-choice:hover{background:var(--theme-hover)}
.workspace-choice.selected{background:var(--theme-selected);color:var(--theme-text)}
.workspace-choice-icon{background:var(--theme-selected);color:var(--theme-accent)}
.workspace-choice-check{color:var(--theme-accent)}
.workspace-menu-footer{border-color:var(--theme-border)}
.workspace-menu-footer button{color:var(--theme-text)}
.workspace-menu-footer button:hover{background:var(--theme-hover)}
.workspace-choice:focus-visible,.workspace-menu-footer button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px}

/* Frozen-column edge uses the table separator instead of a light-theme shadow. */
#app-shell .configurable-table td.task-title-cell{box-shadow:1px 0 0 var(--theme-border)}
/* Selected-task actions stay legible against both floating panel surfaces. */
.bulk-floating{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-border)}
.bulk-floating .bulk-caption{color:var(--theme-muted)}
.bulk-floating .bulk-actions button{color:var(--theme-text);border-radius:8px}
.bulk-floating .bulk-actions button:hover{background:var(--theme-hover);color:var(--theme-text)}
.bulk-floating .bulk-actions button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px;background:var(--theme-selected)}

/* A wider task drawer, with the original full-screen mobile behavior. */
.drawer{width:clamp(640px,70vw,960px);max-width:100vw}
.drawer .drawer-header>div{min-width:0}.drawer h2{overflow-wrap:anywhere}
.drawer .task-header-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}.drawer .task-header-actions .btn{margin:0}
.drawer .assignee-button{color:var(--theme-text)}
#app-shell .configurable-table td.task-title-cell{cursor:pointer}
@media(max-width:850px){.drawer{width:100vw;max-width:100vw}}

/* Shared column catalog and popover headings follow the active palette. */
.label-popover-head{color:var(--theme-text)}
.label-popover-head button{color:var(--theme-muted)}
.label-popover-head button:hover{background:var(--theme-hover);color:var(--theme-text)}
.column-type[data-new-kind] .column-kind-copy{color:var(--theme-text)}
.column-kind-copy small,.column-catalog-popover .small-note,.column-catalog-popover .column-planned{color:var(--theme-muted)}
.column-type[data-new-kind]:hover{background:var(--theme-hover)}
.column-type[data-new-kind]:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px;background:var(--theme-selected)}

/* Task details: shared colors and spacing, including comments and mention choices. */
#drawer .detail-pill{display:inline-flex;max-width:100%;overflow-wrap:anywhere;background:var(--theme-selected);color:var(--theme-accent);border:1px solid var(--theme-border);border-radius:6px}
#drawer .close-button{background:var(--theme-soft);color:var(--theme-muted);border:1px solid var(--theme-border);width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;padding:0;line-height:1;border-radius:9px}
#drawer .close-button:hover{background:var(--theme-hover);color:var(--theme-text)}
#drawer .close-button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
#drawer .btn.danger{background:var(--theme-soft);border-color:var(--theme-border);color:#b73450}
[data-theme=dark] #drawer .btn.danger{color:#f3a4b6}
#drawer .btn.danger:hover{background:var(--theme-hover)}
#drawer .task-description-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
#drawer .detail-comment{border-color:var(--theme-border);padding:16px 0}
#drawer .detail-comment-body{color:var(--theme-text);line-height:1.55;overflow-wrap:anywhere;margin:8px 0 12px}
#drawer .detail-comment-top{color:var(--theme-text)}
#drawer .detail-comment-top span,#drawer .small-note,#drawer #comment-form label{color:var(--theme-muted)}
#drawer .reply-context{color:var(--theme-muted);border-left:2px solid var(--theme-border);padding:4px 12px;margin:12px 0;overflow-wrap:anywhere}
#drawer .mention-list,#drawer #comment-reply-hint{color:var(--theme-accent)}
#drawer .activity-row,#drawer .file-item{border-color:var(--theme-border)}
#drawer .chip{background:var(--theme-selected);color:var(--theme-accent)}
#drawer #comment-mentions{display:block;width:100%;min-height:96px;max-height:160px;padding:6px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-soft);background-image:none;color:var(--theme-text);color-scheme:light;line-height:1.5}
[data-theme=dark] #drawer #comment-mentions{color-scheme:dark}
#drawer #comment-mentions option{padding:6px 8px;border-radius:4px;color:var(--theme-text);background:var(--theme-soft)}
#drawer #comment-mentions option:checked{background:var(--theme-selected);color:var(--theme-text)}
#drawer #comment-mentions:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
/* Personal sidebar order: full board link plus a dedicated drag/menu handle. */
.board-nav-row{position:relative;display:flex;align-items:center;min-width:0;gap:2px;border-radius:9px}
#app-shell .board-nav-row .board-link{flex:1;min-width:0;width:auto;padding-right:8px}
#app-shell .board-nav-row .board-link>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.board-order-trigger{display:grid;place-items:center;flex:0 0 28px;width:28px;height:36px;border:1px solid transparent;border-radius:7px;padding:4px;background:transparent;color:var(--theme-muted);cursor:grab;opacity:0}
.board-order-trigger svg{width:18px;height:18px}
.board-nav-row:hover .board-order-trigger,.board-nav-row:focus-within .board-order-trigger,.board-order-trigger[aria-expanded=true]{opacity:1}
.board-order-trigger:hover{background:var(--theme-hover);color:var(--theme-text)}
.board-order-trigger:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px}
.board-nav-row.board-dragging{opacity:.45}
.board-nav-row[data-board-drop]:after{content:'';position:absolute;left:8px;right:8px;height:2px;background:var(--theme-accent);pointer-events:none;border-radius:2px}
.board-nav-row[data-board-drop=before]:after{top:-3px}.board-nav-row[data-board-drop=after]:after{bottom:-3px}
.board-order-menu{padding:6px;color:var(--theme-text);background:var(--theme-surface);border-color:var(--theme-border)}
.board-order-note{font-size:12px;color:var(--theme-muted);margin:6px 12px 8px}
.board-order-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;border:0;border-radius:8px;padding:10px 12px;background:transparent;color:var(--theme-text);font:inherit;font-size:14px;text-align:left}
.board-order-menu button svg{width:18px;height:18px}
.board-order-menu button:hover:not(:disabled){background:var(--theme-hover)}
.board-order-menu button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px;background:var(--theme-selected)}
.board-order-menu button:disabled{opacity:.4;cursor:default}
@media(hover:none),(max-width:850px){.board-order-trigger{opacity:1;width:32px;flex-basis:32px;height:40px}}
@media(max-width:600px){#drawer .close-button{width:40px;height:40px;flex-basis:40px}#drawer #comment-mentions{font-size:16px}}

/* 4.9.16 — discussion first; task metadata stays in dedicated tabs. */
#drawer.task-drawer{padding:0;overflow:hidden}
.task-drawer-layout{display:flex;flex-direction:column;height:100%;min-height:0;color:var(--theme-text)}
.task-drawer-head{flex:none;padding:24px 28px 0;background:var(--theme-surface);border-bottom:1px solid var(--theme-border)}
.task-heading-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
#drawer .task-heading-top .detail-pill{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 100px);font-size:12px;font-weight:500;letter-spacing:0}
#drawer .task-header-actions{display:flex;flex:none;gap:8px;margin:0}
#drawer .task-header-actions svg{width:18px;height:18px}
#drawer .task-header-actions .close-button{display:grid;place-items:center;width:36px;height:36px;padding:0;flex-basis:36px}
#drawer .task-drawer-head h2{font-size:24px;letter-spacing:-.35px;font-weight:600;line-height:1.35;margin:16px 0 20px;overflow-wrap:anywhere;max-height:130px;overflow-y:auto}
.task-view-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:13px;color:var(--theme-muted)}
.task-detail-tabs{display:flex;align-items:stretch;gap:20px;overflow-x:auto;scrollbar-width:thin}
.task-detail-tabs [role=tab]{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:48px;padding:0 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--theme-muted);font:inherit;font-size:14px;font-weight:500;white-space:nowrap;cursor:pointer}
.task-detail-tabs [role=tab][aria-selected=true]{border-bottom-color:var(--theme-accent);color:var(--theme-text)}
.task-detail-tabs [role=tab]:hover{color:var(--theme-text);background:var(--theme-hover)}
.task-detail-tabs [role=tab]:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-3px;border-radius:4px}
.task-tab-count{padding:1px 6px;border-radius:6px;font-size:11px;font-weight:500;line-height:18px;background:var(--theme-soft);color:var(--theme-muted);font-variant-numeric:tabular-nums}
.task-drawer-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 28px 32px;scrollbar-gutter:stable}
.task-drawer-content [role=tabpanel][hidden]{display:none!important}
.task-drawer-content [role=tabpanel]{min-width:0}
#drawer .task-drawer-content [role=tabpanel]>h3{font-size:16px;margin:0 0 20px;font-weight:600}
#drawer .task-drawer-content .drawer-section{margin-top:24px}
#drawer .task-drawer-content .drawer-section:first-child{margin-top:0}
#drawer .task-drawer-content .drawer-section h3{font-size:14px;font-weight:600;margin:0 0 12px}
#drawer .task-comment-composer{padding:16px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);margin:0 0 24px}
.task-composer-top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
#drawer .task-composer-top label{font-size:14px;font-weight:500;color:var(--theme-text)}
#drawer .task-comment-composer .avatar,#drawer .task-comment-head .avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;border:2px solid var(--theme-surface);font-size:11px}
#drawer #comment-body{display:block;width:100%;min-height:96px;max-height:320px;resize:vertical;border:0;border-radius:6px;padding:8px;background:var(--theme-soft);color:var(--theme-text);font:inherit;font-size:14px;line-height:1.6}
#drawer #comment-body::placeholder{color:var(--theme-muted)}
#drawer #comment-body:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
.task-composer-actions{display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:12px;margin-top:12px}
.task-composer-actions>details{min-width:0;flex:1}
.task-composer-actions>details[open]{flex-basis:100%}
.task-composer-actions>details[open]+button{margin-left:auto}
#drawer .task-composer-actions>.btn{margin:0;min-height:36px}
#drawer .task-composer-actions summary{display:inline-flex;align-items:center;min-height:36px;border:1px solid var(--theme-border);border-radius:8px;padding:6px 12px;background:var(--theme-soft);color:var(--theme-muted);font-size:13px;font-weight:500;cursor:pointer;list-style:none}
.task-composer-actions summary::-webkit-details-marker{display:none}
.task-composer-actions summary:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
.comment-mention-picker{display:flex;flex-direction:column;gap:8px;padding-top:12px}
#drawer #comment-reply-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:0 0 12px;overflow-wrap:anywhere}
#drawer #comment-reply-hint[hidden]{display:none}
.task-discussion{display:flex;flex-direction:column;gap:16px}
.task-comment-thread{min-width:0;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);overflow:hidden}
.task-comment{padding:20px}
.task-comment-head{display:flex;align-items:center;gap:12px}
.task-comment-author{display:flex;flex:1;min-width:0;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.task-comment-author strong{font-size:14px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}
.task-comment-author time{flex:none;color:var(--theme-muted);font-size:12px;font-weight:400}
#drawer .task-comment .detail-comment-body{font-size:14px;line-height:1.65;margin:16px 0 12px}
#drawer .task-comment .mention-list{font-size:12px;overflow-wrap:anywhere;margin:8px 0}
#drawer .task-comment .reply-context{font-size:12px;margin:12px 0 0}
.comment-reply-action{display:inline-flex;align-items:center;gap:8px;min-height:32px;border:0;border-radius:6px;padding:4px 8px;margin-left:-8px;background:transparent;color:var(--theme-muted);font:inherit;font-size:13px;cursor:pointer}
.comment-reply-action svg{width:16px;height:16px}
.comment-reply-action:hover{background:var(--theme-hover);color:var(--theme-text)}
.comment-reply-action:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
.task-comment-replies{margin:0 16px 16px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-soft)}
.task-comment-reply{padding:16px}
.task-comment-reply+.task-comment-reply{border-top:1px solid var(--theme-border)}
.task-discussion-empty{padding:32px 16px;text-align:center;color:var(--theme-muted);font-size:14px;line-height:1.6}
.task-discussion-empty strong{font-size:15px;font-weight:500;color:var(--theme-text)}
.task-discussion-empty p{margin:8px 0 0}
#drawer .detail-fields{margin:0;border-color:var(--theme-border);padding:16px;gap:16px}
#drawer .detail-fields .field{min-width:0}
#drawer .detail-fields label{font-size:12px;font-weight:500;color:var(--theme-muted)}
#drawer .task-description-actions{justify-content:flex-end}
.task-description-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.task-readonly-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:16px;border:1px solid var(--theme-border);border-radius:12px}
.task-readonly-fields dt{color:var(--theme-muted);font-size:12px;margin-bottom:8px}.task-readonly-fields dd{margin:0;font-size:14px;overflow-wrap:anywhere}
.task-subtasks{margin-bottom:12px}
.task-subtask{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-bottom:1px solid var(--theme-border);padding:12px 0;background:transparent;color:var(--theme-text);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.task-subtask>span:first-child{min-width:0;overflow-wrap:anywhere}.task-subtask>.chip{flex-shrink:0;max-width:40%;overflow:hidden;text-overflow:ellipsis}
.task-subtask:hover{background:var(--theme-hover)}.task-subtask:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
#drawer .task-source{margin-top:24px}
#drawer .file-size{flex:none;color:var(--theme-muted);font-size:12px}
#drawer .upload-wrap{margin-bottom:12px;gap:12px}#drawer .upload-wrap input{min-width:0;color:var(--theme-text);font-size:13px}
#drawer .file-item{padding:12px;background:var(--theme-soft);gap:12px;margin-top:12px;border:1px solid var(--theme-border)}
#drawer .history-event{border-color:var(--theme-border);overflow-wrap:anywhere;padding:16px 0}
#drawer .history-event strong{font-size:14px;font-weight:500}#drawer .history-event p{font-size:13px;color:var(--theme-text);line-height:1.5}
.task-actions-menu [data-action=archive-task]{color:#b73450}.task-actions-menu [data-action=archive-task]:before{content:none}[data-theme=dark] .task-actions-menu [data-action=archive-task]{color:#f3a4b6}
@media(max-width:600px){
 .task-drawer-head{padding:16px 16px 0}#drawer .task-drawer-head h2{font-size:20px;margin:12px 0 16px;max-height:108px}
 .task-detail-tabs{gap:12px}.task-detail-tabs [role=tab]{font-size:13px;min-height:44px}.task-tab-count{font-size:10px;padding:0 4px}
 .task-drawer-content{padding:20px 16px 24px;scrollbar-gutter:auto}.task-comment{padding:16px}.task-comment-replies{margin:0 12px 12px}.task-comment-reply{padding:12px}
 #drawer .task-comment-composer{padding:12px}#drawer #comment-body{font-size:16px}.task-comment-author{display:block}.task-comment-author time{display:block;margin-top:4px}
 #drawer .task-header-actions .close-button{width:40px;height:40px;flex-basis:40px}#drawer .detail-fields{grid-template-columns:minmax(0,1fr)}
 .task-readonly-fields{grid-template-columns:minmax(0,1fr)}#drawer .file-item{flex-wrap:wrap}#drawer .file-item>a{flex-basis:100%}
}
/* Full-width table footer travels with every column, including custom fields. */
#app-shell .configurable-table tfoot{display:table-footer-group}
#app-shell .configurable-table tfoot tr{display:table-row}
#app-shell .configurable-table tfoot td{display:table-cell;padding:0;border:0;border-radius:0;background:var(--theme-soft)!important;height:40px}
#app-shell .configurable-table tfoot .add-inline{display:block;width:100%;height:40px;margin:0;padding:0;text-align:left;border:1px solid var(--theme-border);border-top:0;border-radius:0 0 var(--frame-radius) var(--frame-radius);background:var(--theme-soft)!important;color:var(--theme-muted);font-size:13px}
#app-shell .configurable-table tfoot .add-inline span{display:inline-block;position:sticky;left:16px;margin:0 16px;padding:8px 0}
#app-shell .configurable-table tfoot .add-inline:hover{background:var(--theme-hover)!important;color:var(--theme-text)}
#app-shell .configurable-table tfoot .add-inline:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-3px}
/* Chevron belongs inside the cell; keep a 12px inset independently of OS select styling. */
#app-shell .configurable-table td.priority-cell select,#app-shell .configurable-table td.label-cell select{appearance:none;-webkit-appearance:none;background-image:none!important;padding-left:32px;padding-right:32px}
#app-shell .configurable-table td.priority-cell:after,#app-shell .configurable-table td.label-cell:after{content:'';position:absolute;pointer-events:none;right:13px;top:calc(50% - 5px);width:7px;height:7px;border-right:1.5px solid var(--theme-text);border-bottom:1.5px solid var(--theme-text);transform:rotate(45deg);opacity:.65}
#drawer input[type=date]{color-scheme:light}
[data-theme=dark] #drawer input[type=date]{color-scheme:dark}
#drawer input[type=file]::file-selector-button{margin-right:12px;padding:8px 12px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-soft);color:var(--theme-text);font:inherit;cursor:pointer}
/* Compact discussion column: same row height as every other cell. */
.comments-cell{text-align:center;padding:0!important}
.task-comments-button{display:inline-grid;grid-template-columns:20px 20px;align-items:center;justify-content:center;gap:4px;width:50px;height:32px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--theme-muted);cursor:pointer;vertical-align:middle}
.task-comments-button>svg{display:block;width:20px;height:20px;overflow:visible}.task-comments-button:hover{background:var(--theme-hover);color:var(--theme-accent)}
.task-comments-button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:0}
.comment-count{display:block;min-width:0;width:20px;text-align:center;font-size:11px;font-weight:500;line-height:16px;font-variant-numeric:tabular-nums}
:is(#app-shell,.board-pinned-columns) .configurable-table th[data-column=comments]{padding-left:8px;padding-right:8px}
.configurable-table th[data-column=comments] .column-menu-trigger{justify-content:flex-start;gap:6px;width:50px;max-width:100%;margin:0 auto;padding:4px 3px}.configurable-table th[data-column=comments] svg{width:20px;height:20px;flex:none}


/* Language controls are personal; translation is a display-only enhancement. */
.language-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 9px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface);color:var(--theme-text);font:inherit;font-size:12px;font-weight:500;cursor:pointer;flex:none}
.language-trigger svg{width:18px;height:18px;flex:none}.language-trigger:hover{background:var(--theme-hover)}.language-trigger:focus-visible{outline:2px solid var(--theme-accent);outline-offset:2px}
.auth-language-trigger{position:absolute;top:24px;right:24px;z-index:4;background:#132239;color:#e3eaf5;border-color:#34455f}.auth-language-trigger:hover{background:#20334d}
.language-menu{padding:16px;width:min(320px,calc(100vw - 24px));background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-text)}
.language-menu-title{font-size:14px;font-weight:600;margin-bottom:12px}.language-options{display:grid;gap:4px}.language-options button{display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;border-radius:8px;min-height:40px;padding:8px 12px;background:transparent;color:var(--theme-text);font:inherit;font-size:14px;cursor:pointer}.language-options small{font-size:11px;color:var(--theme-muted)}.language-options button:hover{background:var(--theme-hover)}.language-options button[aria-pressed=true]{background:var(--theme-selected)}.language-options button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px}
.language-translation-setting{border-top:1px solid var(--theme-border);margin-top:12px;padding-top:16px}.language-translation-setting label{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;font-weight:500}.language-translation-setting p{font-size:12px;line-height:1.6;color:var(--theme-muted);margin:8px 0 12px}.language-service-state{padding-top:8px}.language-translation-setting input{width:18px;height:18px;accent-color:var(--theme-accent);flex:none}
.task-translation-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--theme-muted);margin:8px 0 12px}.task-translation-notice[hidden]{display:none}.task-translation-notice button{font:inherit;color:var(--theme-accent);border:0;background:transparent;padding:4px;cursor:pointer}.task-translation-notice button:focus-visible{outline:2px solid var(--theme-accent);border-radius:4px}
.translated-description{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--theme-soft);border:1px solid var(--theme-border);border-radius:8px;margin-bottom:12px;font-size:14px;line-height:1.6}.translated-description small{display:block;margin-top:8px;color:var(--theme-muted);font-size:12px}.translation-enabled{display:flex!important;align-items:center;gap:8px}.translation-enabled input{width:18px!important;min-height:18px!important;height:18px}
#translation-service-form .camera-form-actions{position:static}.top-right{min-width:0}
@media(max-width:700px){.language-trigger{height:36px;padding:0 7px}.language-trigger svg{display:none}.topbar .top-right{gap:8px}.language-options button{min-height:44px}.auth-language-trigger{top:16px;right:16px}.task-translation-notice{flex-wrap:wrap}.topbar .search-wrap{min-width:0;width:90px}.topbar .search-wrap input{min-width:0;width:100%}}

.translated-field-control{display:block;position:relative;min-width:0;width:100%}.translated-field-view{display:none;position:absolute;inset:0;padding:0 8px;align-items:center;overflow:hidden;pointer-events:none;background:var(--theme-surface);color:var(--theme-text);font-size:13px;border-radius:4px}.translated-field-view>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.translated-field-control.has-translation:not(:focus-within) .translated-field-view{display:flex}.translated-field-control.has-translation:not(:focus-within) input{color:transparent!important}

/* Keep language controls and translated headings inside intermediate viewports. */
#app-shell .top-left{min-width:0;flex:1;overflow:hidden}
#app-shell .top-left :is(.breadcrumb,strong){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app-shell .top-left .breadcrumb{flex:0 1 auto}
#app-shell .top-left strong{flex:1 1 auto}
#app-shell .top-right{flex:0 0 auto}
#app-shell .page-head{flex-wrap:wrap}
#app-shell :is(.board-title-row,.page-actions){min-width:0;max-width:100%}
#app-shell .board-title-row>div:last-child{min-width:0}
#app-shell .board-heading-icon{flex-shrink:0}
#app-shell .board-title-row h1{overflow-wrap:anywhere}
#app-shell .page-actions{flex-wrap:wrap}
