.task-detail-dialog { width: min(1180px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 24px; background: #f6f1e7; color: #102b2d; box-shadow: 0 26px 90px rgba(16,43,45,.3); }
.task-detail-dialog::backdrop { background: rgba(16,43,45,.72); backdrop-filter: blur(6px); }
.task-detail-shell { min-height: 70vh; }
.task-detail-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.7rem 1.8rem 1.1rem; background: #fff; border-bottom: 1px solid rgba(16,43,45,.12); }
.task-detail-head span { color: #d8523f; font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.task-detail-head h2 { margin: .35rem 0 .25rem; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; }
.task-detail-head p { margin: 0; color: #687677; }
.task-detail-close { border: 0; background: transparent; color: #687677; font-size: 2rem; line-height: 1; cursor: pointer; }
.task-detail-badges { display: flex; flex-wrap: wrap; gap: .55rem; padding: 1rem 1.8rem; background: #fff; }
.task-detail-badges b { padding: .45rem .72rem; border-radius: 999px; background: #e8efeb; font-size: .72rem; }
.task-detail-badges .overdue { background: #ffe0da; color: #a32f20; }
.task-detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 1rem; padding: 1rem; }
.task-detail-grid main { display: grid; gap: 1rem; }
.task-detail-section, .task-timeline { padding: 1.2rem; border: 1px solid rgba(16,43,45,.11); border-radius: 18px; background: #fff; }
.task-detail-section h3, .task-timeline h3 { margin: 0 0 1rem; font-size: 1rem; }
.task-description { white-space: pre-wrap; line-height: 1.6; }
.task-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: 1rem; }
.task-people div { padding: .8rem; border-radius: 12px; background: #f4f0e7; }
.task-people span { display: block; margin-bottom: .3rem; color: #687677; font-size: .7rem; }
.task-management { border-color: rgba(216,82,63,.35); }
.task-management-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.task-management-grid label { display: grid; gap: .4rem; color: #687677; font-size: .72rem; font-weight: 800; }
.task-management-grid .wide { grid-column: 1 / -1; }
.task-management-grid input, .task-management-grid select, .task-management-grid textarea { width: 100%; border: 1px solid rgba(16,43,45,.18); border-radius: 10px; padding: .75rem; background: #fff; color: #102b2d; font: inherit; }
.task-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1rem; }
.task-detail-actions small { color: #687677; }
.task-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.task-check { display: flex; gap: .6rem; align-items: start; padding: .65rem; border-radius: 10px; background: #f5f2eb; }
.task-check span { color: #9aa3a0; font-weight: 900; }
.task-check.complete span { color: #24775b; }
.task-check p { margin: 0; font-size: .78rem; line-height: 1.4; }
.task-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.task-media { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #edf0eb; color: #687677; font-size: .72rem; position: relative; cursor: zoom-in; }
.task-media img, .task-media video { width: 100%; height: 100%; object-fit: cover; }
.task-media video { object-fit: contain; background: #111; }
.task-media-expand { position: absolute; right: .55rem; bottom: .55rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #102b2d; font-weight: 900; cursor: zoom-in; }
.task-video-empty { margin: .8rem 0 0; padding: .85rem 1rem; border: 1px dashed rgba(16,43,45,.18); border-radius: 12px; color: #687677; font-size: .78rem; }
.task-access { border-color: rgba(216,82,63,.34); background: #fff9f2; }
.task-access-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.task-access-grid div { padding: .9rem; border-radius: 12px; background: #fff; border: 1px solid rgba(16,43,45,.1); }
.task-access-grid span,.task-access small { display: block; color: #687677; font-size: .7rem; }
.task-access-grid strong { display: block; margin-top: .35rem; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.task-access small { margin-top: .8rem; }
.hostion-media-viewer { width: min(1100px,96vw); height: min(88vh,900px); padding: 0; border: 0; border-radius: 18px; background: #0b1716; overflow: hidden; }
.hostion-media-viewer::backdrop { background: rgba(4,12,11,.9); backdrop-filter: blur(8px); }
.hostion-media-viewer img,.hostion-media-viewer video { width: 100%; height: 100%; object-fit: contain; display: block; }
.hostion-media-viewer img { cursor: zoom-out; }
.hostion-media-viewer button { position: absolute; z-index: 2; top: .7rem; right: .7rem; width: 2.7rem; height: 2.7rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #102b2d; font-size: 1.7rem; cursor: pointer; }
.task-timeline { align-self: start; position: sticky; top: 1rem; max-height: calc(100vh - 13rem); overflow: auto; }
.task-event { display: grid; grid-template-columns: 12px 1fr; gap: .7rem; padding-bottom: 1rem; position: relative; }
.task-event::before { content: ""; position: absolute; top: 12px; bottom: 0; left: 5px; width: 2px; background: #dfe5df; }
.task-event:last-child::before { display: none; }
.task-event i { width: 12px; height: 12px; margin-top: .2rem; border-radius: 50%; background: #d8523f; position: relative; z-index: 1; }
.task-event strong { font-size: .78rem; }
.task-event p { margin: .25rem 0; color: #687677; font-size: .72rem; }
.task-event small { color: #8a9593; font-size: .65rem; }
.task-detail-footer { display: flex; justify-content: flex-end; gap: .7rem; padding: 1rem 1.8rem 1.5rem; }
.task-detail-loading { display: grid; place-items: center; gap: .8rem; min-height: 320px; padding: 2rem; text-align: center; }
.task-empty { color: #687677; }
body.task-detail-open { overflow: hidden; }
.status-overdue { background: #ffe0da !important; color: #a32f20 !important; }
@media (max-width: 850px) { .task-detail-grid { grid-template-columns: 1fr; } .task-timeline { position: static; max-height: none; } .task-management-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .task-detail-dialog { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; } .task-detail-grid { padding: .65rem; } .task-detail-head { padding: 1.2rem; } .task-detail-badges { padding: .8rem 1.2rem; } .task-people, .task-checklist, .task-management-grid, .task-media-grid,.task-access-grid { grid-template-columns: 1fr; } .task-detail-footer { position: sticky; bottom: 0; background: #fff; padding: .8rem; } }
