/* ═══════════════════════════════════════════════════════════════
   Mobile Navigation — гамбургер, chip-bar, адаптивность
   Извлечено из checklist_operational.css строки 5150–5760
   ═══════════════════════════════════════════════════════════════ */

        /* ===== Мобильная навигация (вариант A+C): hamburger + chip bar ===== */
        /* Скрыто по умолчанию — показывается только на мобильных */
        .mobile-hamburger {
            display: none;
            width: 32px;
            height: 32px;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            font-size: var(--text-xl);
            line-height: 1;
            color: var(--color-text-strong);
            cursor: pointer;
            border-radius: var(--radius-md);
            padding: var(--space-0);
            flex-shrink: 0;
            font-family: inherit;
        }
        .mobile-hamburger:active { background: var(--color-border); }

        .mobile-chip-bar {
            display: none;
            gap: var(--space-1);
            padding: 6px calc(10px + env(safe-area-inset-right, 0px)) 6px calc(10px + env(safe-area-inset-left, 0px));
            overflow-x: auto;
            background: var(--color-surface);
            border-bottom: 1px solid #f0f0f0;
            flex-shrink: 0;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }
        .mobile-chip-bar::-webkit-scrollbar { display: none; }
        .mobile-chip {
            flex-shrink: 0;
            padding: 4px 12px;
            border-radius: var(--radius-pill);
            background: var(--color-gray-100);
            font-size: var(--text-xs);
            color: var(--color-text-secondary);
            font-weight: 600;
            white-space: nowrap;
            cursor: pointer;
            border: none;
            font-family: inherit;
            transition: background 0.15s, color 0.15s;
        }
        .mobile-chip:active { background: var(--color-border); }
        .mobile-chip.active {
            background: var(--color-primary);
            color: var(--color-surface);
        }

        .mobile-nav-backdrop { display: none; }
        .sidebar-logout-wrap { display: none; }

        /* ===== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ===== */
        @media (max-width: 768px) {

            /* ── Header: компактный,
52px ── */
            header {
                height: 52px;
                padding: 0 calc(12px + env(safe-area-inset-right, 0px)) 0 calc(12px + env(safe-area-inset-left, 0px));
                gap: var(--space-2);
                overflow: visible;
                width: 100%;
                /* 100vw на iOS Safari включает safe-area → шапка выходит
                   за видимую область, видится «сдвиг вправо» в Simulator.
                   В Chrome Responsive mode этого не происходит. Используем 100%. */
                max-width: 100%;
                box-shadow: 0 1px 4px rgba(15,23,42,0.06);
            }
            header > div:first-child {
                gap: 8px !important;
                min-width: 0;
                flex: 1;
            }
            header > div:last-child {
                flex-shrink: 0;
                gap: 10px !important;
            }
            /* Иконка страницы — скрыта,
навигация через чипы */
            #pageHeaderIcon { display: none !important; }
            header h1 {
                font-size: var(--text-md);
                white-space: normal;
                overflow: hidden;
            }
            /* Подзаголовок */
            #pageHeaderSubtitle { display: none !important; }
            #progressWrap { display: none; }
            #mobilePlanSelectorWrap { display: flex; }
            /* User info */
            .user-info .user-name { display: none; }
            .user-info { gap: var(--space-2); flex-shrink: 0; }
            .user-info .btn-logout { display: none; }
            #userLevelBadge { display: none; }
            .user-info .user-avatar {
                width: 30px;
                height: 30px;
                font-size: var(--text-xs);
            }
            /* Notifications bell */
            .notif-btn {
                width: 30px;
                height: 30px;
            }
            .notif-btn-icon-img {
                width: 20px;
                height: 20px;
            }

            /* ── Toolbar ── */
            .toolbar {
                padding: 8px 12px;
                gap: var(--space-2);
                flex-wrap: wrap;
                border-bottom: 1px solid #f0f0f0;
                box-shadow: none;
            }
            .toolbar button {
                padding: var(--space-2);
                font-size: var(--text-xs);
                border-radius: var(--radius-md);
            }
            .toolbar .btn-toolbar-add {
                width: 100%;
                order: -1;
                padding: var(--space-2);
                font-size: var(--text-sm);
                font-weight: 600;
                border-radius: var(--radius-lg);
                background: linear-gradient(135deg, var(--color-success), #43a047);
                color: var(--color-surface);
                box-shadow: 0 2px 6px rgba(46,125,50,0.2);
            }
            .toolbar .btn-add-phase {
                width: 100%;
                order: -1;
                padding: var(--space-2);
                border-radius: var(--radius-lg);
                font-size: var(--text-xs);
            }
            .toolbar .btn-expand,
.toolbar .btn-collapse {
                flex: 1;
                text-align: center;
                padding: 8px 4px;
                font-size: var(--text-xs);
            }
            .filter-group {
                margin-left: 0;
                width: 100%;
                gap: var(--space-1);
                order: 10;
            }
            .filter-group label { font-size: var(--text-xs); }
            .filter-group select {
                font-size: var(--text-xs);
                padding: var(--space-2);
                flex: 1;
                border-radius: var(--radius-md);
            }

            /* Tabs */
            .tabs {
                padding: 0 4px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                flex-wrap: nowrap;
                scrollbar-width: none;
            }
            .tabs::-webkit-scrollbar { display: none; }
            .tab { padding: 8px 12px; font-size: var(--text-xs); white-space: nowrap; }

            /* Tab content (mobile): уменьшаем щедрый desktop-padding */
            .tab-content { padding: 16px 12px; }

            /* Sidebar: drawer on mobile (вариант A+C) */
            .sidebar-nav {
                position: fixed;
                width: 280px;
                max-width: 85%;
                height: 100%;
                top: 0;
                bottom: 0;
                left: 0;
                flex-direction: column;
                overflow-y: auto;
                overflow-x: hidden;
                transform: translateX(-100%);
                transition: transform 0.25s ease;
                z-index: 200;
            }
            .sidebar-nav.open { transform: translateX(0); }
            .sidebar-nav:hover { width: 280px; }
            .sidebar-brand { display: flex; }
            .sidebar-brand-label,
.side-label { opacity: 1; }
            .sidebar-menu {
                flex-direction: column;
                align-items: stretch;
                padding: 12px 8px;
                width: 100%;
                overflow-y: auto;
                overflow-x: hidden;
            }
            .side-link {
                justify-content: flex-start;
                min-width: 0;
                padding: 8px 12px;
            }
            .side-label { display: inline; }
            .main-area {
                padding-left: 0;
                padding-bottom: 0;
            }

            /* Mobile hamburger / chip bar / backdrop */
            .mobile-hamburger { display: inline-flex; }
            .mobile-chip-bar { display: flex; }
            .mobile-nav-backdrop {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.4);
                z-index: 190;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.25s ease;
            }
            .mobile-nav-backdrop.open {
                opacity: 1;
                pointer-events: auto;
            }

            /* Logout в сайдбаре на мобильных */
            .sidebar-logout-wrap {
                display: block;
                margin-top: auto;
                padding: 8px 0;
                border-top: 1px solid rgba(255,255,255,0.08);
            }
            .sidebar-logout-btn {
                color: rgba(255,255,255,0.6) !important;
            }
            .sidebar-logout-btn:hover {
                color: var(--color-danger-500) !important;
                background: rgba(239,68,68,0.1) !important;
            }

            /* ===== ПЛАН: карточки на мобильных (вариант A+C) ===== */
            .plan-table-wrap {
                overflow-x: visible;
                border-radius: 0;
                background: none;
                box-shadow: none;
            }
            .plan-table {
                white-space: normal;
                background: transparent;
            }
            .plan-table thead { display: none; }
            .plan-table,
.plan-table tbody { display: block; width: 100%; }

            /* — Фаза — */
            .phase-row { display: block; margin: 8px 0 4px; }
            .phase-row td {
                display: block;
                border-radius: var(--radius-md);
                padding: 9px 12px !important;
                font-size: var(--text-xs);
            }
            .phase-row .plan-drag-handle { display: none; }
            .phase-progress { font-size: var(--text-xs); }

            /* — Этап — */
            .step-row { display: block; margin: 4px 0 3px; }
            .step-row td { display: none; }
            .step-row td[colspan] {
                display: block;
                padding: 7px 10px !important;
                background: #f0f2ff;
                border-radius: var(--radius-sm);
                font-size: var(--text-xs);
            }
            .step-row .plan-drag-handle { display: none; }

            /* — Задача (карточка) — */
            .task-row {
                display: block;
                position: relative;
                background: var(--color-surface);
                border: 1px solid #eff0f3;
                border-radius: var(--radius-lg);
                padding: 8px 12px;
                margin-bottom: 6px;
                box-shadow: 0 1px 3px rgba(0,0,0,0.03);
            }
            .task-row td {
                display: block;
                padding: 0 !important;
                border-bottom: none !important;
                background: transparent !important;
                width: 100%;
            }

            /* Checkbox — верхний правый угол */
            .task-row td:nth-child(1) {
                position: absolute;
                top: 10px;
                right: 30px;
                width: auto;
                padding-left: 0 !important;
            }

            /* Название задачи */
            .task-row td:nth-child(2) {
                font-weight: 600;
                font-size: var(--text-sm);
                color: var(--color-text);
                line-height: 1.35;
                padding-right: 56px !important;
                padding-bottom: 6px !important;
                min-width: 0;
                max-width: none;
                box-shadow: none;
            }

            /* Мета-строка: даты + ответственный */
            .task-row td:nth-child(3),
.task-row td:nth-child(4),
.task-row td:nth-child(5) {
                display: inline-block;
                width: auto;
                padding-right: 3px !important;
                padding-bottom: 3px !important;
            }
            .task-row td:nth-child(3) input,
.task-row td:nth-child(4) input {
                width: 115px !important;
                font-size: var(--text-xs) !important;
                padding: 5px 7px !important;
                border-radius: 6px !important;
                background: #f7f8fa;
                border-color: #e8e8eb !important;
            }
            .task-row td:nth-child(5) input {
                width: 120px !important;
                font-size: var(--text-xs) !important;
                padding: 5px 7px !important;
                border-radius: 6px !important;
                background: #f7f8fa;
                border-color: #e8e8eb !important;
            }

            /* Статус */
            .task-row td:nth-child(6) {
                padding-top: 4px !important;
                padding-bottom: 4px !important;
            }
            .task-row td:nth-child(6) select {
                width: 100%;
                padding: 6px 8px !important;
                font-size: var(--text-xs) !important;
                border-radius: 8px !important;
                background: #f7f8fa;
                border-color: #e8e8eb !important;
            }

            /* Примечание + кнопки */
            .task-row td:nth-child(7) {
                padding-top: 5px !important;
                border-top: 1px solid #f5f5f7 !important;
                margin-top: 3px;
            }
            .task-row td:nth-child(7) input {
                width: 100% !important;
                font-size: var(--text-xs) !important;
                padding: 5px 8px !important;
                border-radius: 6px !important;
                background: #f7f8fa;
                border-color: #e8e8eb !important;
                margin-bottom: 4px;
            }
            .task-row td:nth-child(7) > div {
                flex-wrap: wrap;
                gap: 4px !important;
            }
            .btn-attach,
.btn-comment {
                width: 28px !important;
                height: 28px !important;
                font-size: var(--text-base) !important;
            }

            /* Кнопка удаления — верхний правый угол */
            .task-row td:nth-child(8) {
                position: absolute;
                top: 8px;
                right: 6px;
                width: auto;
                text-align: center;
            }
            .btn-delete-task {
                width: 22px;
                height: 22px;
                font-size: var(--text-base);
                padding: var(--space-0);
                line-height: 1;
            }

            /* Убрать sticky / drag на мобильных */
            .plan-drag-handle { display: none; }

            /* Progress wrap */
            .progress-wrap { min-width: 70px; }
            .summary-card .num { font-size: var(--text-2xl); }

            /* Scrollable height */
            .scrollable {
                max-height: none;
                overflow-x: visible;
                overflow-y: visible;
            }

            /* Архив: sticky колонка "Задача" */
            #archiveTable { white-space: nowrap; }
            #archiveTable th:nth-child(5),
#archiveTable td:nth-child(5) {
                position: sticky; left: 0; z-index: 3;
                min-width: 140px; max-width: 180px;
                white-space: normal; word-break: break-word;
                box-shadow: 3px 0 6px -2px rgba(0,0,0,0.12);
            }
            #archiveTable th:nth-child(5) { background: var(--color-nav-bg); }
            #archiveTable td:nth-child(5) { background: white; }

            /* Modal — выезжает снизу */
            .modal-overlay { padding: var(--space-0); align-items: flex-end; }
            .modal {
                min-width: unset;
                width: 100%;
                max-width: 100%;
                border-radius: 20px 20px 0 0;
                padding: 20px 16px 32px;
                max-height: 85vh;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            /* 2-колоночная сетка → 1 колонка на мобильном */
            .modal-2col { grid-template-columns: 1fr; gap: var(--space-0); }
            /* Список задач из схемы — ограничиваем высоту */
            .task-convert-list { max-height: 35vh; }
            /* Кнопки модалки — на всю ширину */
            .modal-buttons { flex-direction: column; gap: var(--space-2); }
            .modal-buttons button { width: 100%; }

            /* Login box */
            .login-box {
                min-width: unset;
                width: calc(100% - 32px);
                max-width: 400px;
                padding: 32px 20px;
            }

            /* Files modal */
            .files-modal-list { max-height: 180px; }
        }

        @media (max-width: 480px) {
            header h1 { font-size: var(--text-base); }
            .status-badge { padding: 2px 8px; font-size: var(--text-xs); }
            .toolbar .btn-toolbar-add { padding: var(--space-2); font-size: var(--text-xs); }
            .toolbar button { font-size: var(--text-xs); padding: 4px 8px; }
            .mobile-chip { padding: 4px 8px; font-size: var(--text-xs); }
        }

        @media (max-width: 360px) {
            .task-row td:nth-child(2) { font-size: var(--text-xs); }
            .task-row td:nth-child(3) input,
.task-row td:nth-child(4) input { width: 100px !important; }
            .task-row td:nth-child(5) input { width: 100px !important; }
        }
        .chat-panel.open { display: flex; }
        .chat-msg { max-width: 75%; display: flex; flex-direction: column; gap: 1px; }
        .chat-msg.mine { align-self: flex-end; align-items: flex-end; }
        .chat-msg.theirs { align-self: flex-start; align-items: flex-start; }
        .chat-msg-name { font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); padding-left: 4px; margin-bottom: 2px; }
        .chat-msg-bubble { padding: 8px 12px; border-radius: var(--radius-2xl); font-size: var(--text-base); line-height: 1.45; word-break: break-word; }
        .chat-msg-bubble.img-only { padding: 3px; background: transparent !important; box-shadow: none !important; }
        .chat-msg.mine .chat-msg-bubble { background: var(--color-nav-bg); color: white; border-bottom-right-radius: 4px; }
        .chat-msg.theirs .chat-msg-bubble { background: white; color: var(--color-nav-bg); border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
        .chat-msg-time { font-size: var(--text-xs); color: #aaa; padding: 0 4px; }
        .chat-date-sep { align-self: center; font-size: var(--text-xs); color: #888; background: rgba(0,0,0,0.07); border-radius: var(--radius-lg); padding: 3px 12px; margin: 4px 0; }
        .chat-img-thumb { max-width: 260px; max-height: 280px; border-radius: 13px; display: block; cursor: pointer; object-fit: cover; }
        .chat-msg.mine .chat-img-thumb { border-bottom-right-radius: 3px; }
        .chat-msg.theirs .chat-img-thumb { border-bottom-left-radius: 3px; }
        .chat-img-caption { font-size: var(--text-sm); padding: 4px 4px 2px; }
        .chat-file-card { display: flex; align-items: center; gap: var(--space-3); padding: 8px 12px; text-decoration: none; color: inherit; min-width: 200px; max-width: 280px; }
        .chat-file-card:hover { opacity: 0.85; }
        .chat-file-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: var(--text-lg); flex-shrink: 0; }
        .chat-msg.theirs .chat-file-icon { background: #e8f0fe; }
        .chat-file-info { flex: 1; min-width: 0; }
        .chat-file-fname { font-size: var(--text-sm); font-weight: 500; overflow: hidden;  white-space: normal; max-width: 200px; }
        .chat-file-fsize { font-size: var(--text-xs); opacity: 0.65; margin-top: 2px; }
        .chat-scroll-down { position: absolute; bottom: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: white; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.2); cursor: pointer; font-size: var(--text-lg); display: none; align-items: center; justify-content: center; z-index: 5; }
        .chat-scroll-down.show { display: flex; }
        .chat-attach-preview { display: none; flex-direction: column; background: #f0f4ff; border-top: 1px solid #d6e0ff; }
        .chat-attach-preview.show { display: flex; }
        .chat-attach-list { display: flex; gap: var(--space-2); padding: 8px 16px 8px; overflow-x: auto; flex-wrap: wrap; }
        .chat-attach-item { display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; flex-shrink: 0; }
        .chat-attach-item-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-md); display: block; }
        .chat-attach-item-icon { width: 64px; height: 64px; border-radius: var(--radius-md); background: #e8f0fe; display: flex; align-items: center; justify-content: center; font-size: 26px; }
        .chat-attach-item-name { font-size: var(--text-xs); color: #555; max-width: 64px; overflow: hidden;  white-space: normal; }
        .chat-attach-item-remove { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-danger); color: white; border: none; cursor: pointer; font-size: var(--text-xs); display: flex; align-items: center; justify-content: center; line-height: 1; }
        .chat-attach-options { padding: 2px 16px 8px; display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: #555; }
        .messenger-input-wrap { flex-shrink: 0; border-top: 1px solid #eee; background: white; }
        .messenger-input-row { padding: 8px 16px; display: flex; gap: var(--space-2); align-items: center; }
        .messenger-input-row input { flex: 1; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 8px 12px; font-size: var(--text-base); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
        .messenger-input-row input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-25); }
        
        @media (max-width: 640px) {
            .notif-panel {
                position: fixed;
                top: 84px;
                right: 12px;
                left: 12px;
                width: auto;
                max-height: calc(100vh - 110px);
            }
            .notif-panel-head {
                flex-direction: column;
                align-items: stretch;
            }
            .notif-actions {
                flex-direction: column;
            }
        }
        /* ── МЕССЕНДЖЕР ─────────────────────────────── */
        .messenger { display: flex; height: calc(100vh - 220px); min-height: 420px; background: white; border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
        .messenger-sidebar { width: 280px; flex-shrink: 0; border-right: 1px solid #eee; display: flex; flex-direction: column; }
        .messenger-toolbar { padding: 8px 12px; border-bottom: 1px solid #eee; display: flex; gap: var(--space-2); }
        .messenger-toolbar button { flex: 1; padding: var(--space-2); border: 1px solid #ddd; border-radius: var(--radius-md); background: white; font-size: var(--text-xs); cursor: pointer; transition: all 0.2s; font-weight: 500; }
        .messenger-toolbar button:hover { background: var(--color-nav-bg); color: white; border-color: var(--color-nav-bg); }
        .messenger-rooms { flex: 1; overflow-y: auto; }
        .messenger-room-item { padding: var(--space-3); cursor: pointer; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: var(--space-2); transition: background 0.15s; }
        .messenger-room-item:hover { background: var(--color-primary-10); }
        .messenger-room-item.active { background: var(--color-primary-20); }
        .messenger-room-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-nav-bg); color: white; display: flex; align-items: center; justify-content: center; font-size: var(--text-lg); flex-shrink: 0; }
        .messenger-room-info { flex: 1; min-width: 0; }
        .messenger-room-name { font-weight: 600; font-size: var(--text-base); white-space: normal; overflow: hidden;  }
        .messenger-room-preview { font-size: var(--text-xs); color: #888; white-space: normal; overflow: hidden;  margin-top: 2px; }
        .messenger-room-meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); flex-shrink: 0; }
        .messenger-room-time { font-size: var(--text-xs); color: #bbb; }
        .messenger-room-badge { background: var(--color-danger); color: white; border-radius: var(--radius-lg); padding: 2px 8px; font-size: var(--text-xs); font-weight: 700; }
        .messenger-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
        .messenger-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #bbb; font-size: var(--text-base); gap: var(--space-2); }
        .messenger-conv-header { padding: 12px 16px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: var(--space-3); background: white; flex-shrink: 0; }
        .messenger-conv-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--color-nav-bg); color: white; display: flex; align-items: center; justify-content: center; font-size: var(--text-md); flex-shrink: 0; }
        .messenger-conv-name { font-weight: 600; font-size: var(--text-base); }
        .messenger-conv-subtitle { font-size: var(--text-xs); color: #888; margin-top: 1px; }
        .messenger-messages { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); background: #f5f6fa; }
        .messenger-send-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: white; border: none; font-size: var(--text-md); cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
        .messenger-send-btn:hover { background: var(--color-primary-hover); }
        .messenger-attach-btn { width: 42px; height: 42px; border-radius: 50%; background: var(--color-bg-chip); color: #555; border: none; font-size: var(--text-lg); cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
        .messenger-attach-btn:hover { background: #dde3f0; }
        @media (max-width: 600px) {
            .messenger { flex-direction: column; height: auto; min-height: unset; }
            .messenger-sidebar { width: 100%; max-height: 220px; border-right: none; border-bottom: 1px solid #eee; }
            .messenger-main { min-height: 350px; }
        }
        /* ── ПЕЧАТЬ ──────────────────────────────────────── */
        @media print {
            body { background: white !important; }
            header,
.toolbar,
.tabs,
.login-overlay,
.modal-overlay,
#tab-gantt,
#tab-risks,
#tab-history,
#tab-archive,
#tab-files,
#tab-chat,
.btn-attach,
[class*="btn-"],
th:last-child,
td:last-child { display: none !important; }
            #tab-plan { display: block !important; padding: 0 !important; }
            #print-header { display: block !important; }
            .scrollable { overflow: visible !important; max-height: none !important; }
            .plan-table-wrap { box-shadow: none !important; border-radius: 0 !important; }
            .plan-table { width: 100%; font-size: var(--text-xs); border-collapse: collapse; }
            .plan-table th,
.plan-table td { border: 1px solid #ccc !important; padding: 5px 8px !important; }
            .plan-table th { background: var(--color-primary) !important; color: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            .phase-row td { background: #e8eaf0 !important; font-weight: bold; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            .step-row td { background: #f5f5f5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
            .task-row { display: table-row !important; }
            .status-badge { border: 1px solid #999 !important; background: transparent !important; color: #333 !important; font-size: var(--text-xs); }
            * { box-shadow: none !important; }
        }
        #print-header { display: none; padding: 0 0 12px; }
        #print-header h2 { font-size: var(--text-md); margin: 0 0 2px; }
        #print-header p { font-size: var(--text-xs); color: #666; margin: var(--space-0); }

