        :root {
            --bg-page: #f8fafc;
            --surface: #ffffff;
            --border-color: #e2e8f0;
            --text-dark: #0f172a;
            --text-muted: #64748b;
            --accent: #2563eb;
            --accent-hover: #1d4ed8;
            --sidebar-bg: #0f172a;
            --sidebar-text: #94a3b8;
            --sidebar-hover: #1e293b;
            --dot-b: #2563eb;
            --dot-m: #f59e0b;
        }

        body.dark-mode {
            --bg-page: #0b1120;
            --surface: #1e293b;
            --border-color: #334155;
            --text-dark: #f8fafc;
            --text-muted: #94a3b8;
            --sidebar-bg: #0f172a;
            --sidebar-text: #94a3b8;
            --sidebar-hover: #1e293b;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
        html { height: 100%; background: var(--bg-page); }
        html:has(body.dark-mode) { background: #0b1120; }
        /* Pinned to the layout viewport so iOS cannot scroll or rubber-band the app away from the screen edges. */
        body { 
            position: fixed;
            top: 0; right: 0; bottom: 0; left: 0;
            height: var(--fill-h, auto); /* set from the real screen height when the standalone viewport reports short */
            background-color: var(--bg-page); 
            color: var(--text-dark); 
            display: flex; 
            overflow: hidden; 
            transition: background-color 0.2s, color 0.2s; 
        }
        /* Solid band behind the translucent iOS status bar (its text is always white), identical on every view and theme. */
        body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: #0f172a; z-index: 1000; pointer-events: none; }

        .auth-wrapper { 
            display: none; /* revealed by showView('auth') once session state is known */
            margin: auto; 
            width: 100%; 
            max-width: 440px; 
            padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px; 
            overflow-y: auto;
            max-height: var(--app-h, var(--fill-h, 100%));
        }
        .auth-card { background: var(--surface); padding: 32px 28px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }
        .auth-card h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; text-align: center; }
        .auth-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; text-align: center; }
        .form-group { margin-bottom: 15px; }
        label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
        
        input[type="email"], input[type="password"], input[type="text"] { 
            width: 100%; 
            padding: 12px 14px; 
            font-size: 16px !important; 
            border-radius: 6px; 
            border: 1px solid var(--border-color); 
            outline: none; 
            background: var(--surface); 
            color: var(--text-dark); 
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        input:focus { border-color: var(--accent); }
        .btn-auth { width: 100%; padding: 12px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 6px; }
        .btn-auth:hover { background: var(--accent-hover); }
        .auth-toggle { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
        .auth-toggle span { color: var(--accent); font-weight: 600; }
        .alert { padding: 9px 12px; font-size: 12px; border-radius: 6px; margin-bottom: 14px; display: none; line-height: 1.4; }
        .alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
        .alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; word-break: break-all; }
        .alert-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
        .btn-auth:disabled { opacity: 0.6; cursor: default; }

        .totp-reveal-card { display: none; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 16px; margin-top: 14px; text-align: center; }
        .qr-image-wrapper { display: flex; justify-content: center; align-items: center; background: #ffffff; padding: 10px; border-radius: 8px; border: 1px solid #86efac; width: fit-content; margin: 10px auto; }
        .totp-secret-display { background: #ffffff; border: 1px dashed #22c55e; padding: 10px; font-family: monospace; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-align: center; color: #15803d; border-radius: 6px; margin: 10px 0; user-select: all; word-break: break-all; }

        .workspace { display: none; width: 100%; height: var(--app-h, 100%); min-height: 0; flex-direction: row; position: relative; }
        .sidebar { 
            width: 260px; 
            background: var(--sidebar-bg); 
            color: var(--sidebar-text); 
            display: flex; 
            flex-direction: column; 
            transition: transform 0.25s ease, width 0.25s ease; 
            z-index: 100; 
            flex-shrink: 0; 
            padding-bottom: env(safe-area-inset-bottom, 20px);
        }
        .sidebar-header { padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 18px 20px; font-size: 13px; font-weight: 700; color: #f8fafc; border-bottom: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; }
        .sidebar-nav { 
            list-style: none; 
            padding: 14px 10px 40px 10px; 
            flex: 1; 
            overflow-y: auto; 
            -webkit-overflow-scrolling: touch;
        }
        .nav-category { font-size: 11px; text-transform: uppercase; font-weight: 700; padding: 14px 12px 6px 12px; color: #64748b; letter-spacing: 0.5px; }
        .nav-item { padding: 10px 14px; font-size: 13px; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; margin-bottom: 3px; color: #94a3b8; transition: background 0.15s, color 0.15s; }
        .nav-item-left { display: flex; align-items: center; gap: 12px; }
        .nav-item:hover { background: rgba(255,255,255,0.04); color: #f8fafc; }
        .nav-item.active { background: var(--sidebar-hover); color: #f8fafc; font-weight: 600; }
        .sidebar-footer { padding: 14px 18px; border-top: 1px solid #1e293b; font-size: 11px; color: #475569; display: flex; flex-direction: column; gap: 4px; }
        .sidebar-backdrop { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.5); z-index: 90; }

        .main-panel { flex: 1; display: flex; flex-direction: column; background: var(--surface); height: 100%; min-width: 0; }
        
        .top-navbar { 
            height: calc(54px + env(safe-area-inset-top, 0px)); 
            padding: env(safe-area-inset-top, 0px) calc(18px + env(safe-area-inset-right, 0px)) 0 calc(18px + env(safe-area-inset-left, 0px)); 
            border-bottom: 1px solid var(--border-color); 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            background: var(--surface); 
            flex-shrink: 0; 
            cursor: pointer;
            user-select: none;
        }
        .nav-left { display: flex; align-items: center; gap: 12px; }
        .btn-hamburger { background: none; border: 1px solid var(--border-color); border-radius: 6px; padding: 6px 10px; font-size: 16px; cursor: pointer; color: var(--text-dark); display: flex; align-items: center; }
        .btn-hamburger:hover { background: rgba(0,0,0,0.05); }
        .top-navbar h1 { font-size: 15px; font-weight: 600; pointer-events: none; }

        .nav-right { display: flex; align-items: center; gap: 12px; }
        .hdr-marks { display: flex; align-items: center; gap: 8px; pointer-events: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
        .hdr-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #94a3b8; background: transparent; border: 2px solid #cbd5e1; box-sizing: border-box; transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s; user-select: none; }
        .hdr-dot:not(.lit) { font-size: 0; }
        .hdr-dot.lit { color: #ffffff; font-size: 13px; }
        .hdr-dot[data-k="B"].lit { background: var(--dot-b); border-color: var(--dot-b); box-shadow: 0 0 7px rgba(37, 99, 235, 0.55); }
        .hdr-dot[data-k="M"].lit { background: var(--dot-m); border-color: var(--dot-m); box-shadow: 0 0 7px rgba(245, 158, 11, 0.55); }
        body.dark-mode .hdr-dot:not(.lit) { border-color: #475569; }
        .hdr-dot.pk { animation: hdrPulse 1.1s ease-in-out infinite; }
        .top-navbar { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
        @keyframes hdrPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); filter: brightness(1.25); } }

        .btn-close { background: var(--surface); border: 1px solid var(--border-color); color: var(--text-dark); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; }
        .btn-close:hover { background: rgba(0,0,0,0.05); }
        .btn-bell { position: relative; background: var(--surface); border: 1px solid var(--border-color); color: var(--text-dark); width: 34px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
        .btn-bell:hover { background: rgba(0,0,0,0.05); }
        .bell-count { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
        .bell-count[hidden], .bell-panel[hidden] { display: none; }
        .nav-slot:not(:empty) + .nav-right .btn-bell { display: none; }
        .bell-panel { position: fixed; z-index: 60; top: calc(58px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); width: min(340px, calc(100vw - 20px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
        .bell-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border-color); font-size: 13px; }
        .bell-link, .link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
        .bell-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border-color); padding: 10px 14px 10px 24px; font-family: inherit; font-size: 12.5px; color: var(--text-dark); cursor: pointer; position: relative; }
        .bell-item:last-child { border-bottom: 0; }
        .bell-item:hover { background: rgba(0,0,0,0.04); }
        .bell-item small { display: block; margin-top: 3px; font-size: 11px; color: var(--text-muted); }
        .bell-item.unread { font-weight: 600; }
        .bell-item.unread::before { content: ""; position: absolute; left: 10px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
        .sync-actions { display: inline-flex; gap: 8px; flex-shrink: 0; }
        .cal-row > div:first-child { display: flex; gap: 10px; align-items: flex-start; }
        .cal-row .badge { flex: none; min-width: 76px; text-align: center; }
        .cal-row .file-meta-col { text-align: right; }
        @media (max-width: 520px) { .file-item-row.cal-row { flex-direction: column; align-items: stretch; gap: 4px; } .cal-row .file-meta-col { text-align: left; padding-left: 86px; } }

        .view-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: none; flex-direction: column; }
        .view-content.active { display: flex; }
        .view-padding { padding: 24px calc(24px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) calc(24px + env(safe-area-inset-left, 0px)); background: var(--bg-page); gap: 20px; }

        .content-card { background: var(--surface); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 16px; }
        .content-card h2 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
        .content-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
        .roadmap-track { display: flex; flex-direction: column; gap: 14px; }
        .phase-card { background: var(--surface); border: 1px solid var(--border-color); border-radius: 8px; padding: 18px; }
        .phase-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .phase-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
        .badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; display: inline-block; cursor: pointer; }
        .badge-green { background: #dcfce7; color: #15803d; }
        .badge-blue { background: #e0f2fe; color: #0369a1; }
        .badge-orange { background: #fef3c7; color: #b45309; }
        .badge-red { background: #fee2e2; color: #b91c1c; }
        .progress-bar-bg { background: rgba(0,0,0,0.08); border-radius: 6px; height: 8px; width: 100%; overflow: hidden; margin: 10px 0; }
        .progress-bar-fill { height: 100%; background: var(--accent); border-radius: 6px; }
        .milestone-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-dark); margin-top: 10px; }
        .milestone-list li { display: flex; align-items: center; gap: 8px; }

        .file-table-card { background: var(--surface); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; margin-top: 14px; }
        .file-table-header { padding: 12px 16px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,0.03); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
        .file-item-row { padding: 12px 16px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; font-size: 13px; cursor: default; }
        .file-item-row:last-child { border-bottom: none; }
        .file-meta-col { font-size: 12px; color: var(--text-muted); }
        .file-link { color: inherit; text-decoration: none; flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 4px 0; }
        .file-link:hover, .file-link:focus-visible { text-decoration: underline; color: var(--primary, inherit); }

        .filter-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
        .filter-search-input { flex: 1; min-width: 200px; padding: 8px 12px; font-size: 13px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--surface); color: var(--text-dark); outline: none; }
        .filter-pills-row { display: flex; gap: 6px; align-items: center; }
        .filter-pill { font-size: 11px; padding: 4px 10px; border-radius: 12px; background: rgba(0,0,0,0.04); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; user-select: none; }
        .filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

        .toast-host { position: fixed; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 700; pointer-events: none; }
        .toast { background: #1f2937; color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 8px; max-width: 86vw; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
        .update-banner { display: none; position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; background: #2563eb; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; z-index: 800; cursor: pointer; }
        .update-banner.active { display: block; }
        .iso-row { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; transition: background 0.12s; }
        .iso-row:hover { background: rgba(30,58,95,0.05); }
        .iso-row:active { background: rgba(30,58,95,0.11); }
        .iso-row:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
        .view-content > * { flex-shrink: 0; }
        .ctl-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; align-items: flex-end; justify-content: center; }
        .ctl-overlay.active { display: flex; }
        .ctl-overlay.settling { pointer-events: none; }
        .ctl-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,0.45); }
        .ctl-sheet { position: relative; background: var(--surface); width: 100%; max-width: 560px; max-height: 82vh; max-height: 82dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 14px 14px 0 0; border: 1px solid var(--border-color); padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)) 20px; box-shadow: 0 -6px 24px rgba(0,0,0,0.18); }
        .ctl-head { display: flex; justify-content: flex-start; margin-bottom: 12px; }
        .ctl-id { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.4px; }
        .ctl-sheet h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin: 2px 0 12px; line-height: 1.35; }
        .ctl-grid { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 13px; margin: 0; }
        .ctl-grid dt { color: var(--text-muted); font-weight: 600; }
        .ctl-grid dd { margin: 0; color: var(--text-dark); line-height: 1.45; overflow-wrap: anywhere; }
        .ctl-grid a { color: #2563eb; text-decoration: none; display: block; padding: 2px 0; }
        .ctl-grid a:hover, .ctl-grid a:focus-visible { text-decoration: underline; }
        @media (min-width: 700px) { .ctl-overlay { align-items: center; } .ctl-sheet { border-radius: 14px; } }


        .lockscreen-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; height: var(--app-h, var(--fill-h, 100%));
            background: var(--bg-page);
            z-index: 500;
            align-items: center;
            justify-content: center;
            padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)) 20px;
        }



        @media (max-width: 768px) {
            .sidebar { position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-100%); }
            .sidebar.mobile-open { transform: translateX(0); }
            .sidebar-backdrop.active { display: block; }
        }
        .sidebar.collapsed-desktop { width: 0; overflow: hidden; padding: 0; border: none; }

:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

        /* Branding */
        .brand-mark { width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px; }
        .sidebar-header { gap: 10px; justify-content: flex-start; }
        .brand-lockup { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
        .brand-lockup .brand-mark { width: 34px; height: 34px; }
        .brand-company { font-size: 20px; font-weight: 700; color: #3f7d20; letter-spacing: 0.3px; }
        body.dark-mode .brand-company { color: #5eead4; }
        .badge-gray { background: #e2e8f0; color: #475569; }
        body.dark-mode .badge-gray { background: #334155; color: #cbd5e1; }

        /* Dashboard overview */
        .sync-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-muted); }
        .sync-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 4px; }
        .btn-ghost { background: var(--surface); border: 1px solid var(--border-color); color: var(--text-dark); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; }
        .btn-ghost:hover { background: rgba(0,0,0,0.05); }
        .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
        .kpi-tile { background: var(--surface); border: 1px solid var(--border-color); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
        .kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
        .kpi-value { font-size: 26px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
        .kpi-sub { font-size: 11px; color: var(--text-muted); }
        .spark { width: 100%; height: 28px; margin-top: 8px; overflow: visible; }
        .spark-line { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
        .spark-good .spark-line { stroke: #16a34a; }
        .spark-good .spark-area { fill: rgba(22, 163, 74, 0.10); }
        .spark-good .spark-dot { fill: #16a34a; }
        .spark-warn .spark-line { stroke: #d97706; }
        .spark-warn .spark-area { fill: rgba(217, 119, 6, 0.10); }
        .spark-warn .spark-dot { fill: #d97706; }
        .activity-card { margin-top: 0; }
        .activity-row { gap: 12px; align-items: flex-start; }
        .activity-row .file-meta-col { white-space: nowrap; }
        .header-link { font-size: 12px; font-weight: 500; color: var(--accent); text-decoration: none; }
        .header-count { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-left: 8px; }
        .empty-state { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--text-muted); }
        .set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
        .set-row:last-child { border-bottom: none; }
        .set-row label { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
        .set-name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
        .set-note { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
        .set-row select { font-size: 13px; padding: 7px 8px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--surface); color: var(--text-dark); max-width: 44%; }
        .set-form { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 14px; border-bottom: 1px solid var(--border-color); }
        .set-form[hidden] { display: none; }
        .set-form input { font-size: 16px; padding: 9px 10px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--surface); color: var(--text-dark); }
        .set-form-actions { display: flex; gap: 8px; }

        /* Audit log + tasks */
        .audit-row { gap: 12px; align-items: flex-start; }
        .audit-row .file-meta-col { white-space: nowrap; }
        .task-row { gap: 12px; cursor: pointer; }
        .task-main { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
        .task-main input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); }
        .task-done .task-main span { text-decoration: line-through; color: var(--text-muted); }
        .task-overdue { color: #b91c1c; font-weight: 600; }

        /* Header layout */
        .nav-slot { flex: 1; min-width: 0; display: flex; align-items: center; margin: 0 10px; }
        .nav-slot + .nav-right .btn-close { white-space: nowrap; }
        @media (max-width: 520px) {
            .top-navbar { padding-left: calc(10px + env(safe-area-inset-left, 0px)); padding-right: calc(10px + env(safe-area-inset-right, 0px)); }
            .nav-slot { margin: 0 6px; }
            .nav-left { gap: 8px; }
            .hdr-marks { gap: 5px; }
        }

        @media (max-width: 600px) {
            .activity-row, .audit-row { flex-direction: column; gap: 4px; }
            .activity-row .file-meta-col, .audit-row .file-meta-col { white-space: normal; }
        }