        /* ==========================================================================
       Apple Design System Tokens (Design.md)
       - Rule 1: One accent, ever: Action Blue (#0066cc)
       - Rule 2: Pill CTAs (radius.pill = 9999px)
       - Rule 3: Zero chrome shadows (elevation via surfaces & hairlines)
       - Rule 4: Weight ladder = 400 / 600 / 700 (500 is banned)
       - Rule 5: Hairlines (1px in #e5e5e7 / #f0f0f2)
       - Rule 6: Continuous corners scale (24px sheet / 20px card / 12px inner / 9999px pill)
       - Rule 7: Air is the pedestal (frosted nav, generous gutters, large title)
       - Rule 8: Apple-styled sheet modal dialog
       ========================================================================== */
        :root {
            /* Rule 1: Action Blue Accent */
            --color-primary: #0066cc;
            --color-primary-hover: #0055b3;
            --color-primary-active: #004499;
            --color-primary-subtle: rgba(0, 102, 204, 0.08);
            --color-primary-tint: rgba(0, 102, 204, 0.14);

            /* Rule 3 & Golden Rule: Surfaces & Canvas */
            --color-bg: #f5f5f7;
            --color-surface: #ffffff;
            --color-surface-secondary: #f5f5f7;
            --color-surface-tertiary: #ebebed;
            --color-nav-bg: rgba(255, 255, 255, 0.82);

            /* Typography Hierarchy */
            --color-text-primary: #1d1d1f;
            --color-text-secondary: #86868b;
            --color-text-tertiary: #a1a1a6;

            /* Rule 5: Hairlines */
            --color-hairline: #e5e5e7;
            --color-divider-soft: #f0f0f2;

            /* Status colors (semantic only, never for style!) */
            --color-status-error: #ff3b30;
            --color-status-error-bg: rgba(255, 59, 48, 0.08);
            --color-status-success: #34c759;

            /* Rule 6: Corner Radii Scale */
            --radius-sheet: 24px;
            --radius-card: 20px;
            --radius-inner: 12px;
            --radius-pill: 9999px;

            /* Typography: Google Sans for headings & important items, Roboto for plain text */
            --font-heading: "Google Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Roboto", sans-serif;
            --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
            --font-stack: var(--font-body);
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        .brand-title,
        .week-number,
        .btn-pill-action,
        .btn-theme-toggle,
        .btn-nav-about,
        .btn-week-trends,
        .stage-pill,
        .chip-btn,
        .modal-hero-title,
        .modal-hero-badge,
        .stat-pill-value,
        .week-metrics-pill,
        .about-profile-title,
        .about-profile-badge,
        .icard-name,
        .icard-role,
        .trends-modal-title {
            font-family: var(--font-heading);
        }

        /* Suggestion 4.5: True Apple OLED Dark Mode Tokens */
        [data-theme="dark"] {
            --color-primary: #0a84ff;
            --color-primary-hover: #0071e3;
            --color-primary-active: #409cff;
            --color-primary-subtle: rgba(10, 132, 255, 0.15);
            --color-primary-tint: rgba(10, 132, 255, 0.22);

            --color-bg: #000000;
            --color-surface: #1c1c1e;
            --color-surface-secondary: #2c2c2e;
            --color-surface-tertiary: #3a3a3c;
            --color-nav-bg: rgba(28, 28, 30, 0.82);

            --color-text-primary: #f5f5f7;
            --color-text-secondary: #98989d;
            --color-text-tertiary: #636366;

            --color-hairline: #38383a;
            --color-divider-soft: #2c2c2e;
            color-scheme: dark;
        }

        @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) {
                --color-primary: #0a84ff;
                --color-primary-hover: #0071e3;
                --color-primary-active: #409cff;
                --color-primary-subtle: rgba(10, 132, 255, 0.15);
                --color-primary-tint: rgba(10, 132, 255, 0.22);

                --color-bg: #000000;
                --color-surface: #1c1c1e;
                --color-surface-secondary: #2c2c2e;
                --color-surface-tertiary: #3a3a3c;
                --color-nav-bg: rgba(28, 28, 30, 0.82);

                --color-text-primary: #f5f5f7;
                --color-text-secondary: #98989d;
                --color-text-tertiary: #636366;

                --color-hairline: #38383a;
                --color-divider-soft: #2c2c2e;
                color-scheme: dark;
            }
        }

        /* Reset & Base */
        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-stack);
            background-color: var(--color-bg);
            color: var(--color-text-primary);
            line-height: 1.5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Rule 7: Navigation Bar (Air is the pedestal + Frosted Glass) */
        .app-header {
            background-color: var(--color-nav-bg);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border-bottom: 1px solid var(--color-hairline);
            padding: 12px 28px;
            position: sticky;
            top: 0;
            z-index: 1000;
            isolation: isolate;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            /* Rule 3: strictly no chrome shadow */
            box-shadow: none;
        }

        .brand-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 18px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            letter-spacing: -0.015em;
            white-space: nowrap;
            user-select: none;
        }

        .brand-title .brand-logo {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            object-fit: contain;
            display: block;
            flex-shrink: 0;
        }

        .brand-title .brand-icon {
            color: var(--color-primary);
            font-size: 24px;
        }

        /* Rule 2: Search Bar Pill */
        .nav-search {
            display: flex;
            align-items: center;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 6px 16px;
            flex: 1 1 320px;
            min-width: 160px;
            max-width: 440px;
            width: 100%;
            transition: border-color 0.18s ease-out, background-color 0.18s ease-out;
            /* Rule 3: strictly no chrome shadow */
            box-shadow: none;
        }

        .nav-search:focus-within {
            border-color: var(--color-primary);
            background: var(--color-surface);
        }

        .nav-search .search-icon {
            color: var(--color-text-secondary);
            font-size: 18px;
            flex-shrink: 0;
        }

        .nav-search input {
            border: none;
            outline: none;
            background: transparent;
            width: 100%;
            margin-left: 8px;
            font-family: var(--font-stack);
            font-size: 13px;
            font-weight: 400;
            /* Rule 4: 400 regular */
            color: var(--color-text-primary);
        }

        .nav-search input::placeholder {
            color: var(--color-text-secondary);
        }

        .search-kbd-badge {
            padding: 2px 6px;
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-tertiary);
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            border-radius: 6px;
            user-select: none;
            margin-left: 6px;
            pointer-events: none;
            font-family: var(--font-stack);
        }

        /* Nav Right Controls */
        .nav-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Help / Tour Button (Apple Circle Pill) */
        .btn-help {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            color: var(--color-text-secondary);
            width: 34px;
            height: 34px;
            border-radius: var(--radius-pill);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-family: var(--font-stack);
            transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, transform 0.12s ease-out;
            box-shadow: none;
        }

        .btn-help .material-symbols-outlined {
            font-size: 18px;
        }

        .btn-help:hover {
            background: var(--color-primary-subtle);
            color: var(--color-primary);
            border-color: var(--color-primary);
        }

        .btn-help:active {
            transform: scale(0.95);
        }

        /* Theme Toggle Button (Apple Circle Pill - Suggestion 4.5) */
        .btn-theme-toggle {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            color: var(--color-text-secondary);
            width: 34px;
            height: 34px;
            border-radius: var(--radius-pill);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-family: var(--font-stack);
            transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, transform 0.12s ease-out;
            box-shadow: none;
        }

        .btn-theme-toggle .material-symbols-outlined {
            font-size: 18px;
        }

        .btn-theme-toggle:hover {
            background: var(--color-primary-subtle);
            color: var(--color-primary);
            border-color: var(--color-primary);
        }

        .btn-theme-toggle:active {
            transform: scale(0.95);
        }

        /* Rule 2 & 5: Compact Apple Date Trigger & Popover Anchor */
        .date-popover-anchor {
            position: relative;
            display: flex;
            align-items: center;
            gap: 6px;
            z-index: 1050;
        }

        /* Transparent Click-Away Backdrop (Prevents week details overlap) */
        .date-popover-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1040;
            background: transparent;
            display: none;
            cursor: default;
        }

        .date-popover-backdrop.active {
            display: block;
        }

        .btn-date-trigger {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            color: var(--color-text-primary);
            font-family: var(--font-stack);
            font-size: 13px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 6px 14px;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            cursor: pointer;
            transition: border-color 0.18s ease-out, background-color 0.18s ease-out, color 0.18s ease-out;
            box-shadow: none;
            /* Rule 3 */
            user-select: none;
            white-space: nowrap;
        }

        .btn-date-trigger:hover,
        .btn-date-trigger.active {
            border-color: var(--color-primary);
            color: var(--color-primary);
            background: var(--color-primary-subtle);
        }

        .btn-date-trigger .trigger-icon {
            font-size: 16px;
            color: var(--color-primary);
        }

        .btn-date-trigger .trigger-chevron {
            font-size: 18px;
            color: var(--color-text-secondary);
            transition: transform 0.2s ease-out;
        }

        .btn-date-trigger.active .trigger-chevron {
            transform: rotate(180deg);
        }

        .btn-clear-date {
            background: none;
            border: none;
            color: var(--color-text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            border-radius: var(--radius-pill);
            padding: 2px;
            transition: color 0.18s ease-out;
        }

        .btn-clear-date .material-symbols-outlined {
            font-size: 15px;
        }

        .btn-clear-date:hover {
            color: var(--color-status-error);
        }

        /* Apple Popover Card (Rule 3: zero chrome shadows, z-index elevated above all page content) */
        .date-popover-card {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 320px;
            max-width: calc(100vw - 28px);
            box-sizing: border-box;
            background: var(--color-surface);
            border: 1px solid #c7c7cc;
            border-radius: 18px;
            padding: 16px;
            box-shadow: none;
            /* Rule 3: strictly no chrome shadow */
            display: none;
            flex-direction: column;
            gap: 14px;
            z-index: 1100;
        }

        .date-popover-card.open {
            display: flex;
            animation: popoverFadeIn 0.18s ease-out;
        }

        @keyframes popoverFadeIn {
            from {
                opacity: 0;
                transform: translateY(-4px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .popover-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .popover-title {
            font-size: 13px;
            font-weight: 700;
            /* Rule 4: 700 bold */
            color: var(--color-text-primary);
            letter-spacing: -0.01em;
        }

        .popover-eyebrow {
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .preset-chips-row {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .chip-btn {
            background: var(--color-surface-secondary);
            border: 1px solid transparent;
            color: var(--color-text-primary);
            font-family: var(--font-stack);
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 5px 10px;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.15s ease-out;
            box-shadow: none;
        }

        .chip-btn:hover {
            background: var(--color-surface-tertiary);
        }

        .chip-btn.active {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        .popover-custom-range {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            background: var(--color-surface-secondary);
            border-radius: var(--radius-inner);
            padding: 10px;
        }

        .date-input-block label {
            display: block;
            font-size: 10px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 2px;
        }

        .date-input-block input[type="date"] {
            width: 100%;
            border: 1px solid var(--color-hairline);
            background: var(--color-surface);
            border-radius: 8px;
            padding: 5px 6px;
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 400;
            /* Rule 4: 400 regular */
            color: var(--color-text-primary);
            outline: none;
        }

        .date-input-block input[type="date"]:focus {
            border-color: var(--color-primary);
        }

        .popover-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 4px;
            border-top: 1px solid var(--color-divider-soft);
        }

        .btn-popover-reset {
            background: transparent;
            border: none;
            color: var(--color-text-secondary);
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            cursor: pointer;
            padding: 4px 8px;
            border-radius: var(--radius-pill);
        }

        .btn-popover-reset:hover {
            color: var(--color-status-error);
        }

        .btn-popover-apply {
            background: var(--color-primary);
            border: none;
            color: #ffffff;
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 6px 16px;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: background-color 0.15s ease-out;
        }

        .btn-popover-apply:hover {
            background: var(--color-primary-hover);
        }

        /* Main Content Layout & Sidebar Architecture (Rule 7: Air is the pedestal) */
        .app-layout {
            display: flex;
            width: 100%;
            min-height: calc(100vh - 64px);
            position: relative;
        }

        /* Deisgned by Kapil Pidhwani: Collapsible filter sidebar (15-20% width) with sticky user profile chip. Ceiling: Desktop clamp width 220-280px. Upgrade path: Drawer overlay on mobile viewports. */
        .app-sidebar {
            width: clamp(230px, 18vw, 280px);
            min-width: 220px;
            flex-shrink: 0;
            background: var(--color-bg);
            border-right: 1px solid var(--color-hairline);
            display: flex;
            flex-direction: column;
            position: sticky;
            top: 64px;
            height: calc(100vh - 64px);
            box-sizing: border-box;
            transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), padding 0.22s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 100;
            overflow: visible;
        }

        .app-sidebar.collapsed {
            width: 0 !important;
            min-width: 0 !important;
            padding: 0 !important;
            border-right-color: transparent !important;
        }

        .app-sidebar.collapsed .sidebar-header,
        .app-sidebar.collapsed .sidebar-scrollable-body,
        .app-sidebar.collapsed .sidebar-user-footer {
            display: none !important;
        }

        /* Deisgned by Kapil Pidhwani: Sticky center-edge rail toggle button. Ceiling: Fixed center rail position. Upgrade path: Draggable splitter. */
        .sidebar-edge-toggle {
            position: absolute;
            top: 50%;
            right: -13px;
            transform: translateY(-50%);
            width: 24px;
            height: 48px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: 0 8px 8px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 110;
            color: var(--color-text-secondary);
            box-shadow: 2px 0 6px rgba(0, 0, 0, 0.05);
            transition: background-color 0.15s ease, color 0.15s ease, right 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
            padding: 0;
        }

        .sidebar-edge-toggle:hover {
            background: var(--color-surface-secondary);
            color: var(--color-primary);
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        }

        .sidebar-edge-toggle .material-symbols-outlined {
            font-size: 18px;
            line-height: 1;
        }

        .app-sidebar.collapsed .sidebar-edge-toggle {
            right: -24px !important;
            border-left-color: transparent;
            box-shadow: 3px 0 8px rgba(0, 0, 0, 0.08);
        }

        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 16px 12px;
            border-bottom: 1px solid var(--color-divider-soft);
        }

        .sidebar-title-group {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--color-text-secondary);
        }

        .sidebar-title-group .sidebar-icon {
            font-size: 16px;
            color: var(--color-primary);
        }

        .sidebar-scrollable-body {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        /* Deisgned by Kapil Pidhwani: Apple-style slim translucent scrollbar. Ceiling: Webkit browsers. Upgrade path: Standard scrollbar-width CSS property. */
        .sidebar-scrollable-body::-webkit-scrollbar {
            width: 5px;
        }

        .sidebar-scrollable-body::-webkit-scrollbar-track {
            background: transparent;
        }

        .sidebar-scrollable-body::-webkit-scrollbar-thumb {
            background: var(--color-hairline);
            border-radius: 4px;
        }

        .sidebar-scrollable-body::-webkit-scrollbar-thumb:hover {
            background: var(--color-text-secondary);
        }

        /* Mobile Filter Trigger Button (Responsive helper) */
        .btn-mobile-filter-toggle {
            display: none;
            align-items: center;
            gap: 6px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 6px 14px;
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 600;
            color: var(--color-text-primary);
            cursor: pointer;
            transition: background-color 0.15s ease, border-color 0.15s ease;
            user-select: none;
        }

        .btn-mobile-filter-toggle:hover {
            background: var(--color-surface-secondary);
            border-color: #d1d1d6;
        }

        .btn-mobile-filter-toggle .material-symbols-outlined {
            font-size: 16px;
            color: var(--color-primary);
        }

        .mobile-filter-badge {
            background: var(--color-primary);
            color: #ffffff;
            font-size: 10px;
            font-weight: 700;
            padding: 1px 6px;
            border-radius: var(--radius-pill);
        }

        .sidebar-filter-section {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .sidebar-section-title {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--color-text-secondary);
            display: flex;
            align-items: center;
            gap: 5px;
            margin: 0;
            cursor: default;
        }

        .sidebar-section-title .dim-icon {
            font-size: 15px;
            color: var(--color-primary);
        }

        /* Vertical stacked stage pills inside sidebar */
        .app-sidebar .stage-pill-track {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 5px;
            overflow-x: visible;
            padding-bottom: 0;
        }

        .app-sidebar .stage-pill {
            text-align: left;
            border-radius: 8px;
            padding: 7px 12px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            box-sizing: border-box;
        }

        .app-sidebar .dimension-select-inner {
            width: 100%;
        }

        .app-sidebar .apple-dimension-select {
            width: 100%;
            max-width: 100%;
            border-radius: 10px;
            padding: 8px 30px 8px 12px;
            font-size: 12px;
        }

        /* Pinned Bottom User Login Chip */
        .sidebar-user-footer {
            margin-top: auto;
            padding: 12px 14px;
            border-top: 1px solid var(--color-divider-soft);
            background: var(--color-bg);
        }

        .user-login-chip {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: 12px;
            padding: 8px 10px;
            box-sizing: border-box;
            transition: border-color 0.15s ease, background-color 0.15s ease;
        }

        .user-login-chip:hover {
            border-color: var(--color-primary);
        }

        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
            border: 1px solid var(--color-hairline);
            background: var(--color-surface-secondary);
        }

        .user-avatar-fallback {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: var(--color-primary-subtle);
            color: var(--color-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 16px;
        }

        .user-avatar-fallback .material-symbols-outlined {
            font-size: 18px;
        }

        .user-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
            line-height: 1.25;
        }

        .user-label {
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: var(--color-text-secondary);
            font-weight: 600;
        }

        .user-email {
            font-size: 12px;
            font-weight: 600;
            color: var(--color-text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 155px;
        }

        /* Main Content Area */
        .app-main {
            flex: 1;
            min-width: 0;
            padding: 24px 28px 48px;
            width: 100%;
            box-sizing: border-box;
        }

        /* Header Left Section */
        .header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        main {
            width: 100%;
            flex: 1;
        }

        .stage-pill {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 6px 14px;
            font-family: var(--font-stack);
            font-size: 13px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            white-space: nowrap;
            cursor: pointer;
            box-shadow: none;
            transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
            user-select: none;
        }

        .stage-pill:hover {
            background: var(--color-primary-subtle);
            color: var(--color-primary);
            border-color: var(--color-primary);
        }

        .stage-pill.active {
            background: var(--color-primary);
            color: #ffffff;
            border-color: var(--color-primary);
        }

        .stage-pill:active {
            transform: scale(0.96);
        }

        /* Secondary Dimension Dropdowns: Sector, Amount Bracket, Geography */
        .secondary-filter-row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .dimension-select-wrapper {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .dimension-label {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            user-select: none;
        }

        .dim-icon {
            font-size: 16px;
            color: var(--color-text-secondary);
        }

        .dimension-select-inner {
            position: relative;
            display: inline-flex;
            align-items: center;
        }

        .apple-dimension-select {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 5px 28px 5px 12px;
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            outline: none;
            transition: border-color 0.15s ease, background-color 0.15s ease;
            max-width: 190px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }

        .apple-dimension-select:hover {
            border-color: var(--color-text-tertiary);
        }

        .apple-dimension-select:focus {
            border-color: var(--color-primary);
        }

        .apple-dimension-select.has-value {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        .dim-chevron {
            position: absolute;
            right: 8px;
            font-size: 16px;
            color: var(--color-text-secondary);
            pointer-events: none;
        }

        /* Timeline Toolbar: Bulk Accordion Control */
        .timeline-toolbar {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            margin-bottom: 14px;
            gap: 12px;
        }

        .btn-accordion-bulk {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 6px 14px;
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.15s ease;
        }

        .btn-accordion-bulk:hover {
            color: var(--color-text-primary);
            border-color: #d1d1d6;
            background: var(--color-surface-secondary);
        }

        .btn-accordion-bulk .material-symbols-outlined {
            font-size: 16px;
        }

        /* Weekly Timeline & Grid Section */
        .timeline-container {
            display: flex;
            flex-direction: column;
            gap: 36px;
        }

        .week-group {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* Deisgned by Kapil Pidhwani: Sticky floating week section banner with frosted glass. Ceiling: Desktop sticky offset 64px. Upgrade path: Scroll-spy timeline indicator. */
        .week-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: 14px;
            padding: 10px 16px;
            gap: 12px;
            flex-wrap: wrap;
            cursor: pointer;
            user-select: none;
            transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
            position: sticky;
            top: 68px;
            /* Sticks cleanly below 64px header */
            z-index: 90;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
        }

        .week-header:hover {
            border-color: #d1d1d6;
            background: var(--color-surface-secondary);
        }

        .week-title-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .week-chevron {
            font-size: 20px;
            color: var(--color-text-secondary);
            transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .week-group.collapsed .week-chevron {
            transform: rotate(-90deg);
        }

        .week-group.collapsed .week-grid {
            display: none;
        }

        .week-number {
            font-size: 15px;
            font-weight: 700;
            /* Rule 4: 700 bold */
            color: var(--color-text-primary);
            letter-spacing: -0.015em;
            margin: 0;
        }

        .week-date-range {
            font-size: 12px;
            font-weight: 500;
            color: var(--color-text-secondary);
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            padding: 2px 8px;
            border-radius: var(--radius-pill);
        }

        .week-metrics-pill {
            background: var(--color-primary-subtle);
            color: var(--color-primary);
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 3px 10px;
            border-radius: var(--radius-pill);
            white-space: nowrap;
        }

        .btn-week-trends {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 4px 12px;
            font-size: 12px;
            font-weight: 600;
            color: var(--color-primary);
            cursor: pointer;
            box-shadow: none;
            transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
            user-select: none;
        }

        .btn-week-trends:hover {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
        }

        .btn-week-trends .trends-icon {
            font-size: 15px;
        }

        /* Deisgned by Kapil Pidhwani: 3-column feed grid. Ceiling: Fixed 3-column division on desktop. Upgrade path: User-configurable grid density toggle. */
        .grid-container,
        .week-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }

        /* Rule 3 & 6: Apple Clean Cards (Elevation via surface contrast + hairline, NO chrome shadows) */
        .company-card {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-card);
            padding: 16px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: none;
            /* Rule 3: strictly no chrome shadow */
            transition: border-color 0.2s ease-out, transform 0.18s ease-out, box-shadow 0.18s ease-out;
            position: relative;
            overflow: hidden;
            opacity: 0;
        }

        .company-card:hover {
            border-color: var(--color-primary);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
            transform: translateY(-2px);
        }

        .company-card:active {
            transform: scale(0.985);
            /* Apple spring feel */
        }

        /* 2-Tier Card Header: Tier 1 Top Row (Avatar on Left, Badge on Right) */
        .card-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        /* Deisgned by Kapil Pidhwani: Contrasting squircle pedestal with alpha silhouette drop-shadow for white/transparent logos. Ceiling: Static alpha drop-shadow filter. Upgrade path: Dynamic canvas luminance detection. */
        .company-avatar {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            /* Continuous squircle */
            object-fit: contain;
            flex-shrink: 0;
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            padding: 3px;
            box-sizing: border-box;
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.14));
        }

        .company-monogram {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            /* Rule 4: 700 bold */
            border: 1px solid var(--color-hairline);
            user-select: none;
            box-sizing: border-box;
        }

        /* Rule 2: Round Pill Badge (0.9x calibrated) */
        .badge-round {
            background-color: var(--color-primary-subtle);
            color: var(--color-primary);
            font-size: 10px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 3px 8px;
            border-radius: var(--radius-pill);
            white-space: nowrap;
            letter-spacing: -0.01em;
            flex-shrink: 0;
        }

        /* Tier 2: 100% Full-Width Identity Block */
        .company-name-wrap {
            display: flex;
            flex-direction: column;
            width: 100%;
            margin-bottom: 6px;
        }

        .company-name {
            font-size: 15px;
            font-weight: 700;
            /* Rule 4: 700 bold */
            color: var(--color-text-primary);
            text-decoration: none;
            line-height: 1.25;
            letter-spacing: -0.015em;
            transition: color 0.18s ease-out;
            cursor: pointer;
            word-break: break-word;
        }

        .company-name:hover {
            color: var(--color-primary);
        }

        .industry-subtitle {
            font-size: 11.5px;
            color: var(--color-text-secondary);
            margin-top: 2px;
            font-weight: 400;
            /* Rule 4: 400 regular */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
        }

        .description {
            font-size: 12px;
            color: var(--color-text-primary);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 10px;
            font-weight: 400;
            /* Rule 4: 400 regular */
        }

        /* Rule 3 & Golden Rule: Inset Parchment Tile (0.9x calibrated) */
        .card-meta-box {
            background: var(--color-surface-secondary);
            border-radius: var(--radius-inner);
            padding: 8px 10px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            margin-bottom: 10px;
            box-shadow: none;
        }

        .meta-block {
            display: flex;
            flex-direction: column;
        }

        .meta-label {
            font-size: 9.5px;
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
        }

        .meta-value {
            font-size: 12px;
            font-weight: 700;
            /* Rule 4: 700 bold */
            color: var(--color-text-primary);
            margin-top: 1px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            letter-spacing: -0.01em;
        }

        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--color-divider-soft);
            padding-top: 10px;
            gap: 10px;
        }

        .lead-investor-text {
            font-size: 11px;
            color: var(--color-text-secondary);
            font-weight: 400;
            /* Rule 4: 400 regular */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            min-width: 0;
        }

        /* Rule 2: Pill CTA Button (0.9x calibrated) */
        .btn-detail {
            background: var(--color-primary);
            border: none;
            color: #ffffff;
            font-family: var(--font-stack);
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            font-size: 11px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 5px 11px;
            border-radius: var(--radius-pill);
            box-shadow: none;
            transition: background-color 0.18s ease-out, transform 0.12s ease-out;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .btn-detail .material-symbols-outlined {
            font-size: 13px;
        }

        .btn-detail:hover {
            background-color: var(--color-primary-hover);
        }

        .btn-detail:active {
            background-color: var(--color-primary-active);
            transform: scale(0.96);
        }

        .btn-detail .material-symbols-outlined {
            font-size: 14px;
        }

        /* Rule 8: Apple-Styled Modal Sheet */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.38);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 24px;
            opacity: 0;
        }

        .modal-overlay.active {
            display: flex;
            opacity: 1;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1);
        }

        .modal-content {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-sheet);
            max-width: 700px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            padding: 32px;
            position: relative;
            box-shadow: none;
            /* Rule 3: strictly no chrome shadow */
            transform: scale(0.95);
        }

        /* Deisgned by Kapil Pidhwani: Hidden scrollbar for popup modals while preserving fluid scrollability. Ceiling: Native overflow. Upgrade path: None needed. */
        .modal-content,
        .trends-modal-content,
        .about-modal-content {
            -ms-overflow-style: none;
            /* IE and Edge */
            scrollbar-width: none;
            /* Firefox */
        }

        .modal-content::-webkit-scrollbar,
        .trends-modal-content::-webkit-scrollbar,
        .about-modal-content::-webkit-scrollbar {
            display: none;
            /* Chrome, Safari and Opera */
            width: 0;
            height: 0;
        }

        /* Apple Circular Close Button */
        .close-btn {
            position: absolute;
            top: 22px;
            right: 22px;
            background: var(--color-surface-secondary);
            border: none;
            cursor: pointer;
            color: var(--color-text-secondary);
            width: 30px;
            height: 30px;
            border-radius: var(--radius-pill);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.18s ease-out, color 0.18s ease-out;
            box-shadow: none;
        }

        .close-btn .material-symbols-outlined {
            font-size: 18px;
        }

        .close-btn:hover {
            background: var(--color-surface-tertiary);
            color: var(--color-text-primary);
        }

        /* Enhanced Apple Sheet Modal Layout - 4-Tier Architecture Matching Closed Card */
        .modal-hero {
            border-bottom: 1px solid var(--color-divider-soft);
            padding-bottom: 16px;
            margin-bottom: 16px;
        }

        /* Tier 1: Top Bar (Avatar on Left, Round Pill Badge on Right) */
        .modal-hero-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-right: 38px;
            /* Space for circular close button */
        }

        .modal-hero-avatar {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            object-fit: contain;
            flex-shrink: 0;
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            padding: 4px;
            box-sizing: border-box;
            filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.16));
        }

        .modal-hero-monogram {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            border: 1px solid var(--color-hairline);
            user-select: none;
            box-sizing: border-box;
        }

        .modal-hero-badge {
            background: var(--color-primary-subtle);
            color: var(--color-primary);
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 3px 10px;
            border-radius: var(--radius-pill);
            white-space: nowrap;
            flex-shrink: 0;
            letter-spacing: -0.01em;
        }

        /* Tier 2: 100% Full-Width Identity Block */
        .modal-hero-identity {
            display: flex;
            flex-direction: column;
            width: 100%;
            margin-bottom: 12px;
        }

        .modal-hero-title-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .modal-hero-title {
            font-size: 22px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            letter-spacing: -0.02em;
            color: var(--color-text-primary);
            line-height: 1.25;
            margin: 0;
        }

        .modal-hero-subtitle {
            font-size: 13px;
            color: var(--color-text-secondary);
            font-weight: 400;
            /* Rule 4: 400 regular */
            margin-top: 3px;
            line-height: 1.4;
        }

        /* Tier 3: Unified Actions Toolbar */
        .modal-hero-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

        /* Tier 4: Deal Snapshot Meta Tile (Matching .card-meta-box in closed card) */
        .modal-stats-strip {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-inner);
            padding: 10px 14px;
            margin-top: 0;
        }

        .stat-pill-block {
            display: flex;
            flex-direction: column;
        }

        .stat-pill-label {
            font-size: 9.5px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .stat-pill-value {
            font-size: 14px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            letter-spacing: -0.01em;
        }

        .modal-action-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-top: 14px;
            flex-wrap: wrap;
        }

        .modal-action-group-primary {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .modal-action-group-utility {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
        }

        .btn-pill-action {
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            color: var(--color-text-primary);
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 6px 14px;
            border-radius: var(--radius-pill);
            display: inline-flex;
            align-items: center;
            gap: 5px;
            text-decoration: none;
            transition: background-color 0.18s ease-out, border-color 0.18s ease-out, color 0.18s ease-out;
            box-shadow: none;
            cursor: pointer;
        }

        .btn-pill-action:hover {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        .btn-pill-action.primary {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #ffffff;
        }

        .btn-pill-action.primary:hover {
            background: var(--color-primary-hover);
            color: #ffffff;
        }

        .btn-pill-action.connect-leads {
            background: var(--color-surface-secondary);
            border-color: var(--color-hairline);
            color: var(--color-primary);
        }

        .btn-pill-action.connect-leads:hover {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        .btn-pill-action .material-symbols-outlined {
            font-size: 15px;
        }

        /* Deisgned by Kapil Pidhwani: Compact icon button for print, share, and inline copy to prevent action row clutter. Ceiling: 32x32px circular tap target. Upgrade path: Contextual popover menu on long press. */
        .btn-icon-action {
            width: 32px;
            height: 32px;
            border-radius: var(--radius-pill);
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            color: var(--color-text-secondary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, transform 0.1s ease;
            box-sizing: border-box;
            flex-shrink: 0;
            padding: 0;
        }

        .btn-icon-action:hover {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        .btn-icon-action.copied {
            background: rgba(52, 199, 89, 0.12) !important;
            border-color: var(--color-status-success) !important;
            color: var(--color-status-success) !important;
        }

        .btn-icon-action .material-symbols-outlined {
            font-size: 16px;
        }

        .modal-domain-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 3px 10px;
            font-size: 12px;
            font-weight: 600;
            color: var(--color-primary);
            text-decoration: none;
            transition: background-color 0.15s ease, border-color 0.15s ease;
        }

        .modal-domain-chip:hover {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
        }

        .modal-domain-chip .material-symbols-outlined {
            font-size: 14px;
        }

        .modal-hero-action-row {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .modal-hero-utility-row {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        /* Deisgned by Kapil Pidhwani: Micro action buttons for header actions (copy domain, print, copy summary). Ceiling: 26x26px tap targets. Upgrade path: Tooltip flyouts. */
        .modal-micro-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: var(--radius-pill);
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            color: var(--color-text-secondary);
            cursor: pointer;
            padding: 0;
            transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
            flex-shrink: 0;
            box-sizing: border-box;
        }

        .modal-micro-btn:hover {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
            color: var(--color-primary);
            transform: scale(1.06);
        }

        .modal-micro-btn.copied {
            background: rgba(52, 199, 89, 0.12) !important;
            border-color: var(--color-status-success) !important;
            color: var(--color-status-success) !important;
        }

        .modal-micro-btn .material-symbols-outlined {
            font-size: 15px;
        }

        .modal-domain-chip.connect-leads-chip {
            color: var(--color-primary);
            background: var(--color-surface-secondary);
            border-color: var(--color-hairline);
        }

        .modal-domain-chip.connect-leads-chip:hover {
            background: var(--color-primary-subtle);
            border-color: var(--color-primary);
        }

        .modal-section-card {
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-inner);
            padding: 14px 16px;
            margin-bottom: 12px;
        }

        .modal-section-title {
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .modal-desc-body {
            font-size: 14px;
            font-weight: 400;
            /* Rule 4: 400 regular */
            color: var(--color-text-primary);
            line-height: 1.55;
        }

        .inspector-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .inspector-row {
            display: flex;
            flex-direction: column;
        }

        .inspector-label {
            font-size: 10px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 2px;
        }

        .inspector-val {
            font-size: 13px;
            font-weight: 400;
            /* Rule 4: 400 regular */
            color: var(--color-text-primary);
            word-break: break-word;
        }

        .inspector-val.highlight {
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
        }

        .inspector-val a {
            color: var(--color-primary);
            text-decoration: none;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
        }

        .inspector-val a:hover {
            text-decoration: underline;
        }

        /* Deisgned by Kapil Pidhwani: Micro search actions for LinkedIn and Google query links on persons and companies. Ceiling: 22x22px tap area. Upgrade path: Dedicated contact card hovercard. */
        .search-micro-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            border-radius: 6px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            color: var(--color-text-secondary);
            text-decoration: none !important;
            transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
            vertical-align: middle;
            flex-shrink: 0;
            box-sizing: border-box;
            padding: 0;
        }

        .search-micro-btn:hover {
            transform: scale(1.1);
            border-color: var(--color-primary);
            background: var(--color-primary-subtle);
        }

        .search-micro-btn.linkedin-btn:hover {
            border-color: #0a66c2;
            background: rgba(10, 102, 194, 0.1);
        }

        .search-micro-btn.google-btn:hover {
            border-color: #4285f4;
            background: rgba(66, 133, 244, 0.1);
        }

        .search-micro-btn svg {
            width: 13px;
            height: 13px;
            display: block;
        }

        /* Deisgned by Kapil Pidhwani: Resilient custom bullet dot unaffected by flexbox list-marker suppression. Ceiling: Pseudo-element dot. Upgrade path: Person avatar initials chip. */
        .person-bullet-list {
            list-style: none;
            margin: 4px 0 0 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 7px;
        }

        .person-bullet-item {
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            padding-left: 14px;
            flex-wrap: wrap;
            font-size: 13px;
            color: var(--color-text-primary);
        }

        .person-bullet-item::before {
            content: '';
            position: absolute;
            left: 2px;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background-color: var(--color-primary);
        }

        .person-item-inline {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .modal-hero-title-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .modal-source-footer {
            margin-top: 18px;
            padding-top: 14px;
            border-top: 1px solid var(--color-divider-soft);
            font-size: 12px;
            color: var(--color-text-secondary);
            font-weight: 400;
            /* Rule 4: 400 regular */
        }

        .modal-source-footer a {
            color: var(--color-primary);
            text-decoration: none;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
        }

        /* Apple Shimmering Skeleton Loader (Item 7.1 - Rule 3: zero chrome shadows) */
        .skeleton-container {
            display: flex;
            flex-direction: column;
            gap: 24px;
            padding: 20px 0 60px;
        }

        .skeleton-week-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--color-hairline);
            padding-bottom: 10px;
        }

        /* Synchronized 3-column skeleton grid to eliminate layout shift (CLS) */
        .skeleton-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }

        .skeleton-card {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-card);
            padding: 18px 20px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .skeleton-card-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .skeleton-line {
            background: linear-gradient(90deg, #f2f2f4 0%, #e8e8ea 50%, #f2f2f4 100%);
            background-size: 200% 100%;
            animation: skeletonShimmer 1.4s infinite ease-in-out;
            border-radius: 4px;
        }

        @keyframes skeletonShimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        .skeleton-title-line {
            width: 180px;
            height: 22px;
            border-radius: 6px;
        }

        .skeleton-pill-line {
            width: 120px;
            height: 22px;
            border-radius: var(--radius-pill);
        }

        .skeleton-round {
            width: 76px;
            height: 22px;
            border-radius: var(--radius-pill);
        }

        .skeleton-amount {
            width: 84px;
            height: 24px;
            border-radius: 6px;
        }

        .skeleton-company {
            width: 60%;
            height: 22px;
            border-radius: 6px;
        }

        .skeleton-row {
            width: 100%;
            height: 14px;
            border-radius: 4px;
        }

        .skeleton-row.short {
            width: 65%;
        }

        .skeleton-btn {
            width: 100%;
            height: 38px;
            border-radius: var(--radius-pill);
            margin-top: 6px;
        }

        /* Load More Deals Button (Item 1.3 - Pill CTA) */
        .load-more-container {
            display: flex;
            justify-content: center;
            padding: 32px 0 24px;
        }

        .btn-load-more {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 10px 24px;
            font-family: var(--font-stack);
            font-size: 14px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-primary);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.15s ease;
        }

        .btn-load-more:hover {
            background: var(--color-surface-secondary);
            border-color: #d1d1d6;
        }

        .btn-load-more .material-symbols-outlined {
            font-size: 18px;
        }

        .load-more-badge {
            background: var(--color-primary-subtle);
            color: var(--color-primary);
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 2px 8px;
            border-radius: var(--radius-pill);
        }

        .bg-loading-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 18px;
            border-radius: var(--radius-pill);
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            color: var(--color-text-secondary);
            font-size: 13px;
            font-weight: 500;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        @keyframes bgSpinnerRotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .bg-loading-spinner {
            font-size: 16px;
            color: var(--color-primary);
            animation: bgSpinnerRotate 1.2s linear infinite;
        }

        /* Print-Optimized Styling: Strictly isolate one-pager memo (Hides sidebar and timeline) */
        @media print {

            header,
            .app-header,
            main,
            .app-layout,
            .app-sidebar,
            .sidebar-edge-toggle,
            #mobileFilterToggleBtn,
            .filter-controls-section,
            .timeline-toolbar,
            .active-filter-bar,
            .load-more-container,
            .btn-help,
            .btn-detail,
            .close-btn,
            .modal-action-row,
            .modal-hero-toolbar,
            .modal-hero-action-row,
            .modal-hero-utility-row,
            .modal-micro-btn,
            .search-micro-btn,
            #tourBtn,
            #themeToggleBtn,
            #aboutBtn,
            #dateTriggerBtn,
            #clearDateBtn,
            #backToTopBtn,
            .trends-header-actions,
            .btn-trends-memo,
            #aboutModal {
                display: none !important;
            }

            body {
                background: #ffffff !important;
                color: #000000 !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            /* Deal Memo Print */
            body:not(.printing-trends) #trendsModal {
                display: none !important;
            }

            body:not(.printing-trends) #modalOverlay.active {
                display: block !important;
                position: static !important;
                background: none !important;
                padding: 0 !important;
                margin: 0 !important;
                width: 100% !important;
                overflow: visible !important;
            }

            body:not(.printing-trends) #modalOverlay.active .modal-content {
                max-width: 100% !important;
                max-height: none !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                padding: 24px !important;
                margin: 0 !important;
                overflow: visible !important;
            }

            /* Weekly Trends Print */
            body.printing-trends #modalOverlay {
                display: none !important;
            }

            body.printing-trends #trendsModal.active {
                display: block !important;
                position: static !important;
                background: none !important;
                padding: 0 !important;
                margin: 0 !important;
                width: 100% !important;
                overflow: visible !important;
            }

            body.printing-trends #trendsModal.active .trends-modal-content {
                max-width: 100% !important;
                max-height: none !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                padding: 24px !important;
                margin: 0 !important;
                overflow: visible !important;
            }

            .modal-section-card,
            .trends-section-card,
            .trends-kpi-card {
                border: 1px solid #d1d1d6 !important;
                background: #fafafa !important;
                page-break-inside: avoid !important;
                break-inside: avoid !important;
            }
        }

        /* Navbar About Button (Apple Pill Control) */
        .btn-nav-about {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 6px 14px;
            font-family: var(--font-heading);
            font-size: 13px;
            font-weight: 600;
            color: var(--color-text-primary);
            cursor: pointer;
            box-shadow: none;
            transition: background-color 0.15s ease, border-color 0.15s ease;
            user-select: none;
        }

        .btn-nav-about:hover {
            background: var(--color-surface-secondary);
            border-color: #d1d1d6;
        }

        .btn-nav-about .material-symbols-outlined {
            font-size: 17px;
            color: var(--color-primary);
        }

        /* Deisgned by Kapil Pidhwani: Executive-grade Weekly Venture Intelligence Modal (#trendsModal) with 100% native platform micro-visualizers. Ceiling: In-memory dataset aggregation. Upgrade path: Canvas-based time-series charts. */
        .trends-modal-content {
            max-width: 780px;
            width: 100%;
            max-height: 88vh;
            overflow-y: auto;
            padding: 24px 28px;
        }

        .trends-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--color-divider-soft);
            padding-right: 36px;
        }

        .trends-eyebrow {
            font-size: 10.5px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-primary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 3px;
        }

        .trends-modal-title {
            font-size: 22px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            letter-spacing: -0.02em;
            line-height: 1.25;
            margin: 0;
        }

        .trends-modal-subtitle {
            font-size: 13px;
            color: var(--color-text-secondary);
            font-weight: 400;
            /* Rule 4: 400 regular */
            margin-top: 3px;
        }

        .trends-header-actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
        }

        /* 4-Tile KPI Grid */
        .trends-kpi-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 14px;
        }

        .trends-kpi-card {
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-inner);
            padding: 10px 12px;
            display: flex;
            flex-direction: column;
        }

        .trends-kpi-label {
            font-size: 9.5px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 2px;
        }

        .trends-kpi-val {
            font-size: 15px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            letter-spacing: -0.01em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .trends-kpi-sub {
            font-size: 10.5px;
            color: var(--color-text-secondary);
            margin-top: 2px;
            display: flex;
            align-items: center;
            gap: 3px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .trends-kpi-sub.delta-up {
            color: var(--color-status-success);
            font-weight: 600;
        }

        .trends-kpi-sub.delta-down {
            color: var(--color-status-error);
            font-weight: 600;
        }

        /* Section Card for Trends Modal */
        .trends-section-card {
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-inner);
            padding: 14px 16px;
            margin-bottom: 14px;
        }

        .trends-section-title {
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        /* Segmented Stage Distribution Bar */
        .trends-segmented-bar {
            display: flex;
            width: 100%;
            height: 10px;
            border-radius: 5px;
            overflow: hidden;
            background: var(--color-hairline);
            margin-bottom: 10px;
        }

        .trends-bar-segment {
            height: 100%;
            transition: width 0.3s ease;
            position: relative;
        }

        .trends-stage-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
        }

        .trends-stage-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11.5px;
            color: var(--color-text-secondary);
        }

        .trends-color-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .trends-stage-item strong {
            color: var(--color-text-primary);
            font-weight: 600;
        }

        /* 2-Column Split Grid (Sectors on Left, Regional & Investors on Right) */
        .trends-split-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 14px;
        }

        /* Segmented Tab Pill for Industry vs CS Vertical */
        .trends-tab-group {
            display: inline-flex;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 2px;
            gap: 2px;
        }

        .trends-tab-btn {
            background: transparent;
            border: none;
            font-family: var(--font-stack);
            font-size: 10px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            padding: 3px 9px;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .trends-tab-btn.active {
            background: var(--color-primary);
            color: #ffffff;
        }

        /* Progress Rows & Drilldown Hierarchy for Concentration Breakdown */
        .trends-progress-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .trends-drill-item {
            display: flex;
            flex-direction: column;
            border-radius: var(--radius-inner);
        }

        .trends-drill-header {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: var(--radius-inner);
            user-select: none;
            transition: background 0.15s ease;
        }

        .trends-drill-header:hover {
            background: var(--color-surface);
        }

        .trends-drill-chevron {
            background: transparent;
            border: none;
            padding: 0;
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--color-text-tertiary);
            cursor: pointer;
            flex-shrink: 0;
            transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), color 0.15s ease;
        }

        .trends-drill-header:hover .trends-drill-chevron,
        .trends-drill-sub-header:hover .trends-drill-chevron {
            color: var(--color-primary);
        }

        .trends-drill-chevron .material-symbols-outlined {
            font-size: 18px;
        }

        .trends-drill-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .trends-progress-labels {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
        }

        .trends-progress-name {
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 65%;
        }

        .trends-progress-val {
            color: var(--color-text-secondary);
            font-size: 11px;
        }

        .trends-progress-track {
            width: 100%;
            height: 5px;
            border-radius: 3px;
            background: var(--color-hairline);
            overflow: hidden;
        }

        .trends-progress-fill {
            height: 100%;
            border-radius: 3px;
            background: var(--color-primary);
            transition: width 0.3s ease;
        }

        /* Sub-Vertical / Sub-Industry (Level 2) */
        .trends-drill-sub-list {
            display: none;
            flex-direction: column;
            gap: 6px;
            margin-left: 14px;
            padding-left: 12px;
            border-left: 1.5px solid var(--color-hairline);
            margin-top: 4px;
            margin-bottom: 4px;
        }

        .trends-drill-item.expanded>.trends-drill-header .trends-drill-chevron {
            transform: rotate(90deg);
            color: var(--color-primary);
        }

        .trends-drill-item.expanded>.trends-drill-sub-list {
            display: flex;
        }

        .trends-drill-sub-item {
            display: flex;
            flex-direction: column;
            border-radius: var(--radius-inner);
        }

        .trends-drill-sub-header {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            padding: 3px 6px;
            border-radius: var(--radius-inner);
            user-select: none;
            transition: background 0.15s ease;
        }

        .trends-drill-sub-header:hover {
            background: var(--color-surface);
        }

        .trends-drill-sub-header .trends-drill-chevron {
            width: 16px;
            height: 16px;
        }

        .trends-drill-sub-header .trends-drill-chevron .material-symbols-outlined {
            font-size: 15px;
        }

        .trends-sub-name {
            font-size: 11.5px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 65%;
        }

        .trends-progress-track.sub-track {
            height: 4px;
        }

        /* Company Deal List (Level 3) */
        .trends-drill-company-list {
            display: none;
            flex-direction: column;
            gap: 5px;
            margin-left: 12px;
            padding-left: 10px;
            border-left: 1.5px solid var(--color-hairline);
            margin-top: 4px;
            margin-bottom: 4px;
        }

        .trends-drill-sub-item.expanded>.trends-drill-sub-header .trends-drill-chevron {
            transform: rotate(90deg);
            color: var(--color-primary);
        }

        .trends-drill-sub-item.expanded>.trends-drill-company-list {
            display: flex;
        }

        .trends-drill-company-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 6px 8px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-inner);
            gap: 8px;
            transition: border-color 0.15s ease, transform 0.1s ease;
        }

        .trends-drill-company-row:hover {
            border-color: var(--color-primary);
            transform: translateX(2px);
        }

        .trends-drill-company-row .company-avatar,
        .trends-drill-company-row .company-monogram {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            font-size: 10px;
        }

        /* Region Hubs & Investor Lists */
        .trends-hub-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }

        .trends-hub-pill {
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 3px 9px;
            font-size: 11px;
            color: var(--color-text-primary);
        }

        .trends-hub-pill strong {
            color: var(--color-primary);
            font-weight: 600;
        }

        .trends-investor-list {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .trends-investor-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            padding: 4px 0;
            border-bottom: 1px solid var(--color-divider-soft);
        }

        .trends-investor-item:last-child {
            border-bottom: none;
        }

        .trends-investor-name {
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
        }

        .trends-investor-count {
            font-size: 11px;
            color: var(--color-text-secondary);
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            padding: 1px 6px;
            border-radius: var(--radius-pill);
        }

        /* Top Deals Mini-Roster */
        .trends-deal-roster {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .trends-deal-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 10px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-inner);
            gap: 10px;
            transition: border-color 0.15s ease, transform 0.1s ease;
        }

        .trends-deal-row:hover {
            border-color: var(--color-primary);
            transform: translateX(2px);
        }

        .trends-deal-left {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .trends-deal-avatar {
            width: 28px;
            height: 28px;
            border-radius: 7px;
            object-fit: contain;
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            padding: 2px;
            box-sizing: border-box;
            flex-shrink: 0;
        }

        .trends-deal-title {
            font-size: 13px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .trends-deal-meta {
            font-size: 11px;
            color: var(--color-text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .trends-deal-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .trends-deal-amount {
            font-size: 13px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
        }

        .btn-trends-memo {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            color: var(--color-primary);
            font-family: var(--font-stack);
            font-size: 11px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            padding: 4px 9px;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .btn-trends-memo:hover {
            background: var(--color-primary);
            border-color: var(--color-primary);
            color: #ffffff;
        }

        /* About Modal & Google Employee I-Card Badge */
        .about-modal-content {
            max-width: 720px;
            padding: 22px 24px 18px;
            max-height: 90vh;
        }

        .about-card-container {
            display: flex;
            gap: 20px;
            align-items: center;
            margin-bottom: 14px;
        }

        @media (max-width: 680px) {
            .about-card-container {
                flex-direction: column;
                align-items: center;
            }
        }

        /* The Google I-Card */
        .google-icard {
            width: 195px;
            flex-shrink: 0;
            background: #ffffff;
            color: #202124;
            border: 1px solid #dadce0;
            border-radius: 14px;
            padding: 14px 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            position: relative;
        }

        [data-theme="dark"] .google-icard {
            background: #202124;
            color: #e8eaed;
            border-color: #3c4043;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        }

        .icard-slot-punch {
            width: 36px;
            height: 6px;
            background: #e8eaed;
            border-radius: 3px;
            margin-bottom: 10px;
        }

        [data-theme="dark"] .icard-slot-punch {
            background: #3c4043;
        }

        .icard-google-bar {
            display: flex;
            width: 100%;
            height: 3px;
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 12px;
        }

        .gbar-blue {
            background: #4285f4;
            flex: 1;
        }

        .gbar-red {
            background: #ea4335;
            flex: 1;
        }

        .gbar-yellow {
            background: #fbbc05;
            flex: 1;
        }

        .gbar-green {
            background: #34a853;
            flex: 1;
        }

        .icard-photo-frame {
            width: 76px;
            height: 76px;
            border-radius: 50%;
            border: 2.5px solid #4285f4;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            margin-bottom: 8px;
        }

        .icard-photo {
            width: 62px;
            height: 62px;
            object-fit: contain;
        }

        .icard-name {
            font-size: 16px;
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-bottom: 2px;
        }

        .icard-role {
            font-size: 11px;
            font-weight: 600;
            color: #1a73e8;
            margin-bottom: 2px;
        }

        [data-theme="dark"] .icard-role {
            color: #8ab4f8;
        }

        .icard-dept {
            font-size: 10px;
            color: #5f6368;
            margin-bottom: 10px;
        }

        [data-theme="dark"] .icard-dept {
            color: #9aa0a6;
        }

        .icard-chip-row {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            justify-content: space-between;
            border-top: 1px solid #dadce0;
            padding-top: 8px;
            margin-bottom: 8px;
        }

        [data-theme="dark"] .icard-chip-row {
            border-color: #3c4043;
        }

        .icard-smart-chip {
            width: 20px;
            height: 15px;
            background: linear-gradient(135deg, #ffd700, #daa520);
            border-radius: 2px;
            position: relative;
        }

        .icard-smart-chip::after {
            content: '';
            position: absolute;
            top: 2px;
            bottom: 2px;
            left: 5px;
            right: 5px;
            border: 1px solid rgba(0, 0, 0, 0.25);
        }

        .icard-corp-label {
            font-size: 9px;
            font-weight: 700;
            color: #5f6368;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        [data-theme="dark"] .icard-corp-label {
            color: #9aa0a6;
        }

        .icard-barcode {
            width: 100%;
            height: 12px;
            background: repeating-linear-gradient(90deg, #202124 0px, #202124 2px, transparent 2px, transparent 4px, #202124 4px, #202124 7px, transparent 7px, transparent 9px);
            opacity: 0.6;
        }

        [data-theme="dark"] .icard-barcode {
            background: repeating-linear-gradient(90deg, #e8eaed 0px, #e8eaed 2px, transparent 2px, transparent 4px, #e8eaed 4px, #e8eaed 7px, transparent 7px, transparent 9px);
        }

        /* About Profile Side */
        .about-profile-side {
            flex: 1;
            min-width: 0;
        }

        .about-profile-badge {
            display: inline-block;
            font-size: 10px;
            font-weight: 600;
            color: var(--color-primary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 2px;
        }

        .about-profile-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--color-text-primary);
            letter-spacing: -0.025em;
            margin-bottom: 2px;
        }

        .about-profile-role {
            font-size: 12px;
            font-weight: 400;
            color: var(--color-text-secondary);
            margin-bottom: 10px;
        }

        .about-facts-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-bottom: 12px;
        }

        @media (max-width: 480px) {
            .about-facts-grid {
                grid-template-columns: 1fr;
            }
        }

        .about-fact-item {
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-inner);
            padding: 6px 10px;
        }

        .fact-label {
            display: block;
            font-size: 10px;
            font-weight: 600;
            color: var(--color-text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 1px;
        }

        .fact-val {
            font-size: 12px;
            font-weight: 600;
            color: var(--color-text-primary);
        }

        .about-bio-card {
            background: var(--color-surface-secondary);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-inner);
            padding: 10px 12px;
        }

        .about-bio-heading {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            font-weight: 600;
            color: var(--color-primary);
            margin-bottom: 4px;
        }

        .bio-icon {
            font-size: 15px;
        }

        .about-bio-text {
            font-size: 12px;
            color: var(--color-text-primary);
            line-height: 1.45;
            margin-bottom: 6px;
        }

        .about-perks-list {
            margin: 0;
            padding-left: 16px;
            font-size: 11px;
            color: var(--color-text-secondary);
            line-height: 1.45;
        }

        .about-perks-list li strong {
            color: var(--color-text-primary);
        }

        /* 2-line Centered Footer */
        .about-modal-footer {
            border-top: 1px solid var(--color-hairline);
            padding-top: 10px;
            text-align: center;
            font-size: 12px;
            line-height: 1.45;
            color: var(--color-text-secondary);
        }

        .about-modal-footer a {
            color: var(--color-primary);
            text-decoration: none;
            font-weight: 600;
        }

        .about-modal-footer a:hover {
            text-decoration: underline;
        }

        .empty-state {
            text-align: center;
            padding: 80px 20px;
        }

        .empty-icon {
            font-size: 44px;
            color: var(--color-text-tertiary);
        }

        .empty-title {
            margin-top: 12px;
            font-size: 16px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            letter-spacing: -0.01em;
        }

        .empty-subtitle {
            margin-top: 4px;
            font-size: 13px;
            font-weight: 400;
            /* Rule 4: 400 regular */
            color: var(--color-text-secondary);
        }

        .btn-clear-all-filters {
            margin-top: 18px;
            background: var(--color-primary);
            color: #ffffff;
            border: none;
            border-radius: var(--radius-pill);
            padding: 8px 20px;
            font-family: var(--font-stack);
            font-size: 13px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: opacity 0.15s ease;
        }

        .btn-clear-all-filters:hover {
            opacity: 0.9;
        }

        .btn-clear-all-filters .material-symbols-outlined {
            font-size: 16px;
        }

        /* Active Filter Chips Bar (UX Polish) */
        .active-filter-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px dashed var(--color-hairline);
        }

        .active-filter-label {
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-secondary);
            user-select: none;
        }

        .filter-chip-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--color-surface);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 3px 10px;
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
        }

        .filter-chip-remove {
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            color: var(--color-text-tertiary);
            display: inline-flex;
            align-items: center;
            transition: color 0.15s ease;
        }

        .filter-chip-remove:hover {
            color: var(--color-status-error);
        }

        .filter-chip-remove .material-symbols-outlined {
            font-size: 14px;
        }

        .filter-clear-all-btn {
            background: none;
            border: none;
            color: var(--color-primary);
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            cursor: pointer;
            padding: 3px 6px;
            text-decoration: underline;
        }

        /* Floating Back-to-Top Pill (UX Polish) */
        .btn-back-to-top {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 900;
            background: var(--color-nav-bg);
            backdrop-filter: saturate(180%) blur(20px);
            -webkit-backdrop-filter: saturate(180%) blur(20px);
            border: 1px solid var(--color-hairline);
            border-radius: var(--radius-pill);
            padding: 8px 16px;
            font-family: var(--font-stack);
            font-size: 12px;
            font-weight: 600;
            /* Rule 4: 600 semiBold */
            color: var(--color-text-primary);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            box-shadow: none;
            transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
        }

        .btn-back-to-top:hover {
            background: var(--color-surface-secondary);
            border-color: var(--color-primary);
            color: var(--color-primary);
            transform: translateY(-2px);
        }

        .btn-back-to-top .material-symbols-outlined {
            font-size: 16px;
        }

        /* Driver.js Apple Popover Theming */
        .driver-popover {
            background-color: var(--color-surface) !important;
            color: var(--color-text-primary) !important;
            border: 1px solid var(--color-hairline) !important;
            border-radius: 18px !important;
            box-shadow: none !important;
            /* Rule 3 */
            font-family: var(--font-stack) !important;
            padding: 18px !important;
        }

        .driver-popover-title {
            font-size: 15px !important;
            font-weight: 700 !important;
            /* Rule 4: 700 bold */
            color: var(--color-text-primary) !important;
            letter-spacing: -0.015em !important;
            margin-bottom: 6px !important;
        }

        .driver-popover-description {
            font-size: 13px !important;
            font-weight: 400 !important;
            /* Rule 4: 400 regular */
            color: var(--color-text-secondary) !important;
            line-height: 1.45 !important;
        }

        .driver-popover-footer button {
            border-radius: var(--radius-pill) !important;
            /* Rule 2 */
            font-family: var(--font-stack) !important;
            font-size: 12px !important;
            font-weight: 600 !important;
            /* Rule 4: 600 semiBold */
            padding: 6px 14px !important;
            box-shadow: none !important;
            border: none !important;
            cursor: pointer !important;
        }

        .driver-popover-next-btn,
        .driver-popover-done-btn {
            background-color: var(--color-primary) !important;
            color: #ffffff !important;
        }

        .driver-popover-prev-btn {
            background-color: var(--color-surface-secondary) !important;
            color: var(--color-text-secondary) !important;
        }

        .driver-popover-close-btn {
            color: var(--color-text-secondary) !important;
        }

        /* Responsive adjustments */
        @media (max-width: 1200px) {

            .grid-container,
            .week-grid,
            .skeleton-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 14px;
            }
        }

        @media (max-width: 900px) {
            .app-layout {
                flex-direction: column;
            }

            .app-sidebar {
                position: static;
                width: 100% !important;
                max-width: 100% !important;
                height: auto;
                border-right: none;
                border-bottom: 1px solid var(--color-hairline);
                transition: max-height 0.25s ease, opacity 0.2s ease;
                overflow: hidden;
            }

            .app-sidebar .sidebar-edge-toggle {
                display: none !important;
            }

            .app-sidebar.collapsed {
                display: none !important;
            }

            .app-sidebar .stage-pill-track {
                flex-direction: row;
                overflow-x: auto;
                padding-bottom: 4px;
            }

            .app-sidebar .stage-pill {
                width: auto;
                white-space: nowrap;
            }

            .app-main {
                padding: 16px;
            }

            .btn-mobile-filter-toggle {
                display: inline-flex;
            }
        }

        @media (max-width: 768px) {
            .app-header {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-items: center;
                padding: 12px 16px;
                gap: 10px 12px;
            }

            .week-header {
                top: 104px;
            }

            .header-left {
                order: 1;
            }

            .nav-controls {
                order: 2;
                margin-left: auto;
                gap: 6px;
            }

            .nav-search {
                order: 3;
                width: 100%;
                max-width: 100%;
            }

            .grid-container,
            .week-grid,
            .skeleton-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            .modal-overlay {
                padding: 12px;
            }

            .modal-content {
                padding: 20px 16px;
                border-radius: 18px;
                max-height: 90vh;
            }

            .modal-hero-top-bar {
                padding-right: 32px;
                margin-bottom: 8px;
            }

            .modal-hero-toolbar {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .modal-hero-action-row,
            .modal-hero-utility-row {
                width: 100%;
                justify-content: flex-start;
            }

            .modal-hero-title {
                font-size: 19px;
            }

            .modal-hero-avatar,
            .modal-hero-monogram {
                width: 36px;
                height: 36px;
                font-size: 15px;
            }

            .modal-stats-strip {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .inspector-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .modal-action-row {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .modal-action-group-primary,
            .modal-action-group-utility {
                width: 100%;
                justify-content: flex-start;
                margin-left: 0;
                flex-wrap: wrap;
            }

            .btn-pill-action {
                flex: 1 1 auto;
                justify-content: center;
            }

            .btn-nav-about span {
                display: none;
            }

            .btn-nav-about {
                padding: 6px 8px;
            }

            /* Trends Modal Responsive Adjustments */
            .trends-modal-content {
                padding: 20px 16px;
            }

            .trends-modal-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                padding-right: 32px;
            }

            .trends-kpi-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .trends-split-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .trends-header-actions {
                width: 100%;
                justify-content: flex-start;
                margin-top: 4px;
            }
        }
