.detail-grid{grid-template-columns:minmax(280px,.85fr) minmax(0,1.25fr)}
.task-detail{max-height:78vh;overflow:auto}.whatsapp-chat{min-height:610px;height:78vh;max-height:78vh;background:#efeae2;color:#182923;position:relative}
.whatsapp-chat .chat-header{background:#f0f2f5;padding:16px 20px;gap:12px;flex:none}.chat-header>div{flex:1;min-width:0}.chat-header p{font-size:12px;margin:3px 0 0;color:#667781;overflow-wrap:anywhere}.chat-group-avatar{display:grid;place-items:center;background:#008069;color:#fff;width:43px;height:43px;border-radius:50%}.chat-group-avatar svg{width:23px;height:23px}
.chat-retention{font-size:10px;text-align:center;background:#fff4ce;padding:7px 12px;color:#675b39;flex:none}.whatsapp-chat .messages{display:flex;flex-direction:column;gap:7px;padding:20px 18px;background-image:radial-gradient(#b6ada333 .7px,transparent .7px);background-size:15px 15px;overscroll-behavior:contain}
.chat-day{align-self:center;margin:12px 0 8px;font-size:11px;background:#fffD;border-radius:8px;padding:4px 12px;color:#54656f;box-shadow:0 1px 2px #0001}.chat-bubble{background:white;border-radius:9px 0 9px 9px;box-shadow:0 1px 2px #0002;padding:7px 9px 4px;max-width:88%;align-self:flex-end;min-width:95px;overflow-wrap:anywhere;flex:none}.chat-bubble.mine{align-self:flex-start;background:#d9fdd3;border-radius:0 9px 9px 9px}.chat-sender{color:#008069;font-size:11px;display:block;margin-bottom:4px}.chat-bubble.mine .chat-sender{color:#407631}.chat-bubble p{margin:3px 0;font-size:14px;white-space:pre-wrap;line-height:1.65}.chat-bubble a{color:#0075ba;text-decoration:underline;overflow-wrap:anywhere}.chat-bubble footer{display:flex;justify-content:flex-end;gap:5px;font-size:10px;color:#667781;margin-top:3px;direction:ltr}.chat-welcome{margin:auto;padding:18px;text-align:center;border-radius:10px;background:#fff9;color:#667781;font-size:14px}.chat-welcome small{font-size:11px}
.whatsapp-chat .chat-form{background:#f0f2f5;border:0;padding:10px 12px;gap:9px;flex:none}.chat-form textarea{border:0;border-radius:12px;resize:none;min-height:45px;padding:10px 12px}.chat-attach{position:relative;flex:none;border:0}.chat-attach input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.chat-send{border:0;background:#008069;color:#fff;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;flex:none}.chat-send svg{height:22px;width:22px}.chat-send:disabled{opacity:.5}
.chat-file{border-radius:8px;overflow:hidden;background:#00000006;margin:4px 0}.chat-file video,.chat-file audio{display:block;max-width:100%;width:100%}.chat-file video{max-height:280px;background:#172721}.chat-image{display:block;max-width:100%;max-height:290px;object-fit:contain;margin:auto}.chat-file-info{display:flex;align-items:center;gap:8px;padding:9px}.chat-file-info>svg{flex:none;width:26px;height:26px;color:#60706a}.chat-file-info>a{color:#22322c;text-decoration:none;flex:1;font-size:12px;min-width:0}.chat-file-info small{display:block;color:#667781;font-size:10px;text-align:start}.delete-file{border:0;background:transparent;width:28px;height:28px;flex:none}.chat-file-deleted{font-size:12px;font-style:italic;color:#69776e;padding:10px;background:#00000005;border-radius:7px}.chat-file-deleted svg{width:17px;height:17px;vertical-align:middle}.chat-file-deleted small{display:block;margin-top:4px}.task-file-list{display:grid;gap:8px}
.chat-pending:empty{display:none}.chat-pending{background:#f0f2f5;max-height:140px;overflow:auto;padding:5px 12px;flex:none}.chat-pending>div{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:4px;gap:10px}.chat-pending svg{width:18px;height:18px;vertical-align:middle}.chat-pending small{color:#667781}.chat-upload-status{padding:8px 15px;background:#fff;flex:none;font-size:12px}.chat-upload-status progress{display:block;width:100%;height:7px;accent-color:#008069;margin:6px 0}.highlight-message{outline:3px solid #e9b82c;outline-offset:2px}
.inline-status{min-width:155px;max-width:210px;font-size:12px;padding:8px;background:#ffffffb8;border-color:#0002}.member-stack{gap:3px;flex-wrap:wrap}.member-stack .avatar{width:28px;height:28px;font-size:10px}.board{grid-template-columns:repeat(5,minmax(205px,1fr))}
.notification-anchor{position:relative}.notification-toggle{display:flex;gap:7px;align-items:center;justify-content:center;min-width:44px;height:42px;border:1px solid #e0e0e5;border-radius:14px;background:#fff;position:relative}.notification-toggle>svg{width:22px;height:22px}.notification-toggle .count:empty{display:none}.notification-toggle .count{background:#e44848;color:#fff;font-size:10px}.notification-popover{position:absolute;top:52px;left:0;width:min(410px,calc(100vw - 32px));background:#fff;border:1px solid #e6e6eb;box-shadow:0 16px 55px #0003;border-radius:18px;z-index:80;overflow:hidden;direction:rtl}.notification-popover header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #ececf0}.notification-popover h3{margin:0;font-size:16px}.notification-popover-list{max-height:440px;overflow:auto}.popover-notification{display:flex;align-items:flex-start;text-align:right;width:100%;gap:10px;border:0;background:#fff;padding:14px 16px;border-bottom:1px solid #f0f0f3;color:#232329}.popover-notification:hover{background:#f5f5f7}.popover-notification.unseen{background:#eef5ff}.popover-notification>svg{width:20px;height:20px;flex:none;color:#4974cc}.popover-notification span{min-width:0}.popover-notification strong{display:block;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.popover-notification time{font-size:10px;color:#73737b}.notification-popover>footer{padding:10px;text-align:center}.popover-empty{padding:35px;text-align:center;color:#777}.collaborators-field{border:1px solid #ddd;border-radius:12px;padding:14px;max-height:220px;overflow:auto}
@media(max-width:760px){.detail-grid{grid-template-columns:1fr}.task-detail{max-height:none}.whatsapp-chat{height:70vh;min-height:430px;max-height:700px}.chat-bubble{max-width:92%}.notification-popover{position:fixed;top:67px;left:16px;right:16px;width:auto}.board{grid-template-columns:repeat(5,240px)}}
@media(min-width:761px){dialog.wide{display:flex;flex-direction:column}dialog.wide:not([open]){display:none}dialog.wide .modal-header{flex:none}dialog.wide .detail-grid{height:min(660px,calc(90dvh - 86px));min-height:0}dialog.wide .task-detail{max-height:none;min-height:0}.whatsapp-chat{min-height:0;height:100%;max-height:100%}}

/* Full task pages retain the workspace navigation and an independent chat pane. */
.task-page{min-width:0}.task-page-header{display:flex;align-items:center;gap:16px;margin-bottom:20px;color:var(--muted);font-size:14px}.task-page-header svg{transform:rotate(180deg)}
.task-page .detail-grid{gap:24px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.task-page .task-detail{max-height:none;overflow:visible;border:1px solid #e5e5e9;background:#fff;border-radius:20px;padding:26px;min-width:0}
.task-page .detail-title{font-size:26px;line-height:1.6;overflow-wrap:anywhere;margin:18px 0}
.task-project-label{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:#515157;background:#f5f5f7;border-radius:12px;padding:12px 14px;margin:14px 0 24px}
.task-project-number{font-weight:600;color:#0071e3}.task-project-label small{color:#a33}
.task-description-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.task-description-heading h3{font-size:16px}.task-description-heading>span{font-size:12px;color:var(--muted)}
.task-description-text{font-size:14px;line-height:1.9;overflow-wrap:anywhere;margin-bottom:24px}.task-description-text p{white-space:pre-wrap;margin:0 0 6px}.task-description-text a{color:var(--accent)}
.task-check-item{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;margin:7px 0;background:#f8f9fb;border:1px solid #ececf0;border-radius:10px;font-weight:400;font-size:14px;cursor:pointer}.task-check-item input{width:19px;height:19px;flex:none;margin:4px 0 0;accent-color:#0071e3;cursor:pointer}.task-check-item.is-done{background:#f5f6f7}.task-check-item.is-done>span{text-decoration:line-through;color:#86868b}.task-check-item:has(input:focus-visible){outline:2px solid #0071e3;outline-offset:2px}
.checklist-editor{display:grid;gap:9px}.checklist-entry{display:flex;gap:10px}.checklist-entry input{flex:1;min-width:0}.checklist-editor p{font-size:12px;font-weight:400}
.task-page .whatsapp-chat{position:sticky;top:20px;border-radius:20px;border:1px solid #dadfdb;overflow:hidden;height:calc(100dvh - 150px);min-height:500px;max-height:900px}
.task-page .detail-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.task-page .detail-meta dd{overflow-wrap:anywhere}.task-page .inline-status{width:100%;max-width:100%;min-width:0}
@media(max-width:1000px){.task-page .detail-grid{grid-template-columns:1fr}.task-page .whatsapp-chat{position:relative;top:0;height:70dvh;min-height:450px;max-height:750px}.task-page .task-detail{padding:22px}}
@media(max-width:480px){.task-page .task-detail{padding:18px}.task-page .detail-title{font-size:23px}.task-page .detail-meta{grid-template-columns:1fr}.task-page .whatsapp-chat{border-radius:16px}.checklist-entry .btn{padding:8px 12px}}
/* Keep compact cards rectangular instead of squeezing their contents. */
.board{grid-template-columns:repeat(5,minmax(265px,1fr))}.compact-card-footer .member-stack .avatar{width:20px;height:20px;font-size:9px}.compact-card-footer .row{white-space:nowrap}.compact-card-footer .member-stack{flex-wrap:nowrap}.compact-card-footer small{padding-left:11px}@media(max-width:760px){.board{grid-template-columns:repeat(5,275px)}}

/* Numeric dates and task hierarchy. Mobile cards are scoped to task tables only. */
.task-due-value,.card-due bdi,.detail-due-date,.topbar .date{font-variant-numeric:tabular-nums;white-space:nowrap}
.task-table .task-due-value{font-size:20px;font-weight:600;line-height:1.4}
.mobile-due-label{display:none}
.compact-card-footer .card-due{font-size:18px;font-weight:600}
.detail-meta .detail-due-date{font-size:20px;font-weight:600}
.project-card-meta time,.project-card-meta dd[dir="ltr"],.audit-table td:nth-child(2),.af-private-table td:nth-child(2){font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap}
.notification time,.popover-notification time,.crm-events time{font-size:14px;font-variant-numeric:tabular-nums}
.topbar .date{font-size:17px;font-weight:600;direction:ltr}
@media(max-width:760px){
 .task-table-wrap{overflow:visible}
 .task-table{display:block;width:100%;min-width:0}
 .task-table thead{display:none}
 .task-table tbody{display:block}
 .task-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name name" "status due" "team delete";gap:12px 14px;padding:17px 16px 12px;border-bottom:1px solid #0000000d;min-width:0}
 .task-table tbody tr:last-child{border-bottom:0}
 .task-table tbody td{display:block;padding:0;border:0;min-width:0;width:auto}
 .task-table .task-name-cell{grid-area:name}
 .task-table .task-title{display:block;max-width:100%;font-size:21px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
 .task-table .task-sub{display:block;margin-top:1px;font-size:12px;line-height:1.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6e6e73}
 .task-table .task-status-cell{grid-area:status;align-self:center}
 .task-table .inline-status{width:150px;max-width:100%;min-width:0;height:38px;padding:5px 9px;font-size:12px;border-radius:10px}
 .task-table .task-status-cell .badge{font-size:12px;white-space:nowrap}
 .task-table .task-due-cell{grid-area:due;align-self:center;text-align:left}
 .task-table .mobile-due-label{display:block;font-size:10px;font-weight:400;color:#777780;line-height:1.4;margin-bottom:2px}
 .task-table .task-due-value{display:block;font-size:24px;line-height:1.25;font-weight:600}
 .task-table .task-team-cell{grid-area:team;align-self:center;color:#86868b;font-size:11px}
 .task-table .member-stack{gap:4px;flex-wrap:wrap}
 .task-table .member-stack .avatar{width:21px;height:21px;font-size:8px;border-width:1px}
 .task-table .task-delete-cell{grid-area:delete;justify-self:end;align-self:center}
 .task-table .task-delete{width:32px;height:32px;padding:9px}
 .task-table tbody tr:focus-visible{outline:2px solid #0071e3;outline-offset:-3px}
 .task-card h3{font-size:20px;line-height:1.6}
 .compact-card-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 8px;padding-left:22px}
 .compact-card-footer .card-due{font-size:23px}
 .compact-card-footer .member-stack{grid-row:2;grid-column:1;flex-wrap:wrap}
 .compact-card-footer small{grid-row:2;grid-column:2;padding-left:0}
 .notification time{display:block;font-size:15px;grid-column:2;white-space:nowrap}
 .notification{display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px 12px}
 .popover-notification time{display:block;font-size:14px;margin-top:4px}
}

/* Focused task cards and an ordered, conversation-first task page. */
.task-card{padding:0!important;min-height:0!important;border-radius:12px!important;overflow:hidden;box-shadow:none!important;background:#edf7f0!important;border:1px solid #b9ddc5!important}.task-card.priority-high{background:#fff7dc!important;border-color:#ead187!important}.task-card.priority-urgent{background:#fceceb!important;border-color:#e9b8b4!important}.task-card .task-card-open{display:block;width:100%;min-height:56px;padding:15px 18px!important;text-align:right}.task-card .task-card-open h3{margin:0!important;font-size:15px;line-height:1.65;overflow-wrap:anywhere}.task-card:hover{filter:brightness(.98)}.task-card-open:focus-visible{outline:3px solid #0071e3;outline-offset:-3px}.task-title-list{display:grid;gap:10px}.task-title-list .task-card{width:100%}
.task-page .detail-grid{display:flex;flex-direction:column;gap:22px}.task-page .detail-grid>.whatsapp-chat{order:-1;position:relative;top:auto;width:100%;height:clamp(390px,55dvh,620px);min-height:390px;max-height:620px;border:1px solid #dce3ef;background:#f4f7fc}.task-page .task-detail{width:100%;padding:26px 30px}.task-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.task-page .detail-title{margin:0 0 14px}.task-section{padding:24px 0;border-top:1px solid #edf0f5}.task-section h3{margin-bottom:14px;font-size:16px}.task-section .task-description-text{margin:0}.task-section .detail-meta{margin:0;gap:20px 32px}.task-section .detail-meta dt{font-size:12px;color:#737b8b}.task-section .detail-meta dd{margin:6px 0 0}.task-settings summary{cursor:pointer;font-weight:600}.task-settings-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.task-settings .task-delete{position:static!important;width:44px;height:44px;display:inline-grid;place-items:center}.task-settings .edit-action{width:44px;height:44px}.task-settings button:focus-visible,.chat-record:focus-visible{outline:2px solid #0071e3;outline-offset:3px}
.task-page .whatsapp-chat .chat-header{background:#fff;padding:17px 22px;border-bottom:1px solid #e4eaf3}.task-page .chat-group-avatar{background:#e8efff;color:#4266ab;border-radius:14px}.task-page .chat-retention{background:#eef3fb;color:#66748a}.task-page .whatsapp-chat .messages{background-image:none;padding:20px 24px;gap:12px}.task-page .chat-bubble{background:#fff;border:1px solid #e1e7f0;border-radius:16px 16px 4px 16px;box-shadow:none;padding:11px 15px}.task-page .chat-bubble.mine{background:#e8efff;border-color:#d7e3ff;border-radius:16px 16px 16px 4px}.task-page .chat-sender,.task-page .chat-bubble.mine .chat-sender{color:#42618f}.task-page .whatsapp-chat .chat-form{background:#fff;border-top:1px solid #e4eaf3;align-items:center}.task-page .chat-form textarea{background:#f4f6fa;border:1px solid #e4e8f0}.task-page .chat-send{background:#426bd1;border-radius:13px}.task-page .chat-pending{background:#f5f7fc}.chat-record{color:#526787;flex:none;font-size:21px}.chat-record.recording{background:#fff0ef;color:#b23e42;border-color:#e8b7b9}.task-page .task-file-list:empty::after{content:'لا توجد ملفات مرفقة بعد';font-size:14px;color:#7c8492}.task-page .files-header input{max-width:100%}
@media(max-width:760px){.task-page .task-detail{padding:18px}.task-detail-heading{align-items:flex-start}.task-page .detail-title{font-size:22px}.task-page .detail-grid>.whatsapp-chat{height:60dvh;min-height:360px}.task-page .whatsapp-chat .messages{padding:14px}.task-page .chat-form{gap:6px;padding:10px}.task-page .chat-attach,.task-page .chat-record{width:38px;height:44px}.task-page .chat-send{width:40px;height:44px}.task-section{padding:20px 0}.task-page .detail-meta{grid-template-columns:1fr}.task-page .chat-bubble{max-width:94%}}
.task-card .task-card-open h3{white-space:normal;overflow:visible;text-overflow:clip}.task-detail-heading .badge{flex:none}.task-page .task-section .task-description-heading h3{margin-bottom:0}

/* A single task toolbar, personal greeting, and compact draggable titles. */
.task-unified-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin:0 0 28px;min-width:0}.task-unified-toolbar .section-sharing{margin:0;padding:0;border:0;background:none;flex:none}.task-unified-toolbar .section-sharing>div{display:none}.task-unified-toolbar .section-sharing .btn,.task-unified-toolbar .task-trash-button{font-size:11px;padding:7px 10px;min-height:36px;white-space:nowrap}.task-unified-toolbar .search{flex:1;min-width:150px}.task-unified-toolbar>select{width:130px;min-width:95px;font-size:12px;padding:7px 9px}.task-unified-toolbar .search input{font-size:12px;padding:7px 32px 7px 10px}.task-unified-toolbar .segmented{flex:none}.task-greeting{display:flex;align-items:center;gap:18px;margin:18px 0 30px}.task-greeting h1{font-size:clamp(29px,3.2vw,46px);line-height:1.5;font-weight:600;letter-spacing:-.6px}.task-add-circle{width:48px;height:48px;border-radius:50%;background:#0071e3;color:white;display:grid;place-items:center;flex:none}.task-add-circle svg{width:27px;height:27px}.task-add-circle:focus-visible{outline:3px solid #a6cfff;outline-offset:4px}.task-card .task-card-open{min-height:40px;padding:8px 14px!important}.task-card .task-card-open h3{font-size:14px;line-height:1.6}.task-card[draggable=true]{cursor:grab}.task-card[draggable=true] .task-card-open{cursor:grab}.task-is-dragging{opacity:.5}.column.task-drop-active{background:#eaf2ff;border-radius:14px;outline:2px dashed #81a9e3;outline-offset:5px}.task-card{user-select:none;-webkit-user-select:none}.task-unified-toolbar .segmented button{padding:7px 9px}.task-unified-toolbar .segmented svg{width:17px;height:17px}
@media(max-width:1100px){.task-unified-toolbar{overflow-x:auto;padding-bottom:8px;justify-content:flex-start}.task-unified-toolbar>*{flex-shrink:0}.task-unified-toolbar .search{flex:0 0 190px}.task-unified-toolbar>select{width:115px}.task-greeting{margin:12px 0 24px}.task-add-circle{width:43px;height:43px}}

/* Task split view: details on the right and conversation on the left. */
@media(min-width:901px){
 .task-page .detail-grid{display:grid;direction:rtl;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:stretch;height:calc(100dvh - 170px);min-height:360px}
 .task-page .detail-grid>.task-detail{grid-column:1;grid-row:1;width:auto;height:100%;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px}
 .task-page .detail-grid>.whatsapp-chat{order:0;grid-column:2;grid-row:1;position:relative;top:auto;width:auto;height:100%;min-height:0;max-height:none;display:flex;flex-direction:column}
 .task-page .whatsapp-chat .messages{flex:1;min-height:0;overflow-y:auto;padding:16px}
 .task-page .whatsapp-chat .chat-header{padding:12px 16px}
 .task-page .whatsapp-chat .chat-form{padding:9px;gap:6px}
 .task-page .whatsapp-chat .chat-form textarea{min-height:44px;max-height:120px}
 .task-page .task-section{padding:17px 0}
 .task-page .task-description-text{font-size:14px;line-height:1.8}
 .task-page .detail-title{font-size:23px;margin-bottom:10px}
 .task-page .task-section .detail-meta{gap:14px 20px}
 .task-page-header{margin-bottom:14px}
}
@media(max-width:900px){
 .task-page .detail-grid{display:flex;flex-direction:column;gap:16px;height:auto;min-height:0}
 .task-page .detail-grid>.task-detail{order:0;width:100%;height:auto;overflow:visible;padding:18px}
 .task-page .detail-grid>.whatsapp-chat{order:1;width:100%;height:65dvh;min-height:340px;max-height:720px;position:relative;top:auto}
 .task-page .whatsapp-chat .messages{min-height:0;overflow-y:auto}
}

/* Task dates, direct member editing and unified evidence. */
.task-header-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:none}.task-header-tools .task-header-icon,.task-header-tools .edit-action,.task-header-tools .task-delete{position:static!important;display:inline-grid;place-items:center;width:34px;height:36px;padding:7px;border:0;background:transparent;border-radius:7px}.task-header-tools svg{width:18px;height:18px}.task-header-icon:focus-visible{outline:2px solid #0071e3;outline-offset:2px}.task-detail-heading{flex-wrap:wrap}.task-page .task-section .task-dates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.task-page .task-dates dd{font-size:13px;font-weight:500;line-height:1.8}.task-member-editor{display:grid;gap:10px}.task-member-editor label{font-size:12px;font-weight:500}.task-member-editor select{font-size:13px;padding:8px 10px}.task-member-picker{border:1px solid #dce2ec;border-radius:9px;background:#fff;font-size:13px}.task-member-picker summary{cursor:pointer;padding:8px 10px}.task-member-picker>div{padding:6px 10px;max-height:190px;overflow:auto;display:grid;gap:7px}.task-member-picker label{display:flex;align-items:center;gap:8px}.task-member-picker input{width:17px;height:17px;accent-color:#0071e3}.task-page .task-section .task-links{margin-bottom:12px}@media(max-width:480px){.task-page .task-section .task-dates{grid-template-columns:1fr}.task-header-tools .task-header-icon,.task-header-tools .edit-action,.task-header-tools .task-delete{width:40px;height:40px}}

/* Selected team names, project context beside the title, compact messages. */
.task-title-project{display:flex;align-items:baseline;gap:14px;flex:1;min-width:0;flex-wrap:wrap}.task-title-project .detail-title{margin:0!important}.task-inline-project{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#7b8290;margin-inline-start:auto;overflow-wrap:anywhere}.task-inline-project .task-project-number{font-size:12px}.task-detail-heading{margin-bottom:16px}.task-selected-members{color:#c63f46;font-size:13px;font-weight:500;margin-inline-start:8px;line-height:1.8}.task-member-picker{max-width:270px}.task-page .whatsapp-chat .messages{gap:6px}.task-page .chat-bubble{padding:5px 10px 3px;border-radius:11px 11px 3px 11px;min-width:65px}.task-page .chat-bubble.mine{border-radius:11px 11px 11px 3px}.task-page .chat-sender{font-size:10px;margin-bottom:1px;line-height:1.3}.task-page .chat-bubble p{font-size:13px;line-height:1.5;margin:1px 0}.task-page .chat-bubble footer{font-size:9px;line-height:1.2;margin-top:1px}.task-page .chat-day{margin:6px 0 4px;padding:2px 9px;font-size:10px}.task-page .chat-file-info{padding:5px 7px}.task-page .chat-file{margin:2px 0}

/* Align the status and team selectors, including when member names wrap. */
.task-page .detail-meta:has(#task-member-controls){align-items:start;grid-auto-rows:auto}
.task-page .detail-meta:has(#task-member-controls)>div{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:6px;min-width:0}
.task-page .detail-meta:has(#task-member-controls) dt{align-self:end;min-height:22px;line-height:1.6}
.task-page .detail-meta:has(#task-member-controls) dd{margin:0;min-width:0}
.task-page #task-member-controls:empty{display:none}
.task-page .task-member-picker{width:100%;max-width:none;border:0;background:transparent}
.task-page .task-member-picker summary,.task-page .inline-status{appearance:none;list-style:none;display:block;box-sizing:border-box;width:100%;height:40px;padding:0 12px 0 32px;border:1px solid #d2d2d7;border-radius:9px;background-color:#fff;background-image:linear-gradient(45deg,transparent 48%,#626674 49%,#626674 62%,transparent 63%),linear-gradient(135deg,transparent 48%,#626674 49%,#626674 62%,transparent 63%);background-position:left 13px center,left 17px center;background-size:5px 5px;background-repeat:no-repeat;color:#1d1d1f;font-family:inherit;font-size:13px;font-weight:400;line-height:38px;text-align:right}
.task-page .task-member-picker summary::-webkit-details-marker{display:none}
.task-page .task-member-picker summary:focus-visible,.task-page .inline-status:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.task-page .task-member-picker>div{margin-top:6px;border:1px solid #d2d2d7;border-radius:9px;background:#fff}
.task-page .task-selected-members{font-size:inherit;line-height:inherit}
.task-page .detail-meta select.inline-status{height:40px;min-height:40px;max-height:40px;padding-block:0;line-height:normal}
/* Match adjacent search, filter and view controls across dashboard toolbars. */
#content .filters{--filter-control-height:40px;align-items:center}
#content .filters .search input,#content .filters>select{height:var(--filter-control-height);min-height:var(--filter-control-height);padding-block:0;border-radius:9px;line-height:normal}
#content .filters .search svg{top:50%;transform:translateY(-50%)}
#content .filters .segmented{min-height:var(--filter-control-height);display:inline-flex;align-items:center}
#content .filters .segmented button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

/* File tiles show metadata only; content loads in the viewer on request. */
.task-page .task-file-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(118px,100%),1fr));gap:10px}
.task-file-tile{position:relative;min-width:0;border:1px solid #e0e6ee;border-radius:12px;background:#f8fafd;overflow:hidden}
.task-file-open{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;min-width:0;padding:12px 8px;font-size:12px;text-align:center}
.task-file-open:hover{background:#eef4ff}.task-file-open:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.task-file-symbol{width:40px;height:42px;display:grid;place-content:center;justify-items:center;gap:1px;background:#e9effb;color:#4566a3;border-radius:9px}
.task-file-symbol svg{width:19px;height:19px}.task-file-symbol small{font-size:8px;max-width:38px;overflow:hidden;text-overflow:ellipsis;color:inherit}.file-kind-pdf{color:#aa4149;background:#fbecef}.file-kind-audio,.file-kind-video{color:#6547a6;background:#f0ebfb}.file-kind-image{color:#30745e;background:#e8f3ee}
.task-file-name{max-width:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-file-open>small{font-size:10px}.task-file-tile .delete-file{position:absolute;inset-block-start:2px;inset-inline-end:2px}
.chat-bubble .task-file-tile{min-width:110px;margin:3px 0}.chat-bubble .task-file-open{padding:7px 18px;gap:3px}.chat-bubble .task-file-symbol{width:32px;height:34px}
.task-file-viewer{min-width:0}.task-file-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.task-file-viewer-header>div{min-width:0;overflow-wrap:anywhere}.task-file-viewer-header small{display:block;text-align:start}.task-file-preview-body{display:grid;place-items:center;min-height:100px;max-height:65dvh;overflow:auto;border-radius:12px;background:#f6f8fb;padding:12px;color:#596477}.task-file-preview-body :is(img,video){max-width:100%;max-height:61dvh;object-fit:contain}.task-file-preview-body audio{width:min(100%,520px)}.task-file-preview-body pre{width:100%;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#252932}
