        :root {
            /* OEDS Design Variables */
            --bg: var(--bg-page);
            --sidebar-bg: var(--bg-panel);
            --sidebar-text: var(--text-secondary);
            --sidebar-active: var(--text-primary);
            --sidebar-active-bg: var(--sap-blue-light);
            --primary: var(--sap-blue);
            --primary-light: var(--sap-blue-light);
            --text: var(--text-primary);
            --muted: var(--text-secondary);
            --line: var(--border);
            --panel: var(--bg-panel);
            --shadow: var(--ol-shadow-sm);
            --shadow-md: var(--ol-shadow-sm);
            --shadow-lg: var(--ol-shadow-md);
            --bg-secondary: var(--bg-table-head);

            /* Status & Intent Colors */
            --hot: var(--color-error);
            --warm: var(--color-warning);
            --cold: var(--color-success);
        }

        /* Light Theme */
        body.light-theme {
            --bg: #f5f6f7;
            --sidebar-bg: #ffffff;
            --sidebar-text: #64748b;
            --sidebar-active: #1a1a1a;
            --sidebar-active-bg: #e8f2fc;
            --primary: #0a6ed1;
            --primary-light: #e8f2fc;
            --text: #1a1a1a;
            --muted: #64748b;
            --line: #e2e8f0;
            --panel: #ffffff;
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
            --bg-secondary: #f0f2f5;
            --ol-text: #1a1a1a;
            --ol-text-strong: #0f172a;
            --ol-muted: #64748b;
            --ol-muted-2: #94a3b8;
            --ol-gold: #0a6ed1;
            --ol-border: #e2e8f0;
            --ol-surface: #ffffff;
            --ol-base: #f5f6f7;
        }

        html {
            height: 100%;
            overflow: hidden;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Syne', sans-serif;
            background: radial-gradient(circle at top right, rgba(200, 169, 91, 0.08), transparent 22%), linear-gradient(180deg, var(--bg) 0%, var(--panel) 100%);
            color: var(--text);
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: flex;
        }

        body.light-theme {
            background: radial-gradient(circle at top right, rgba(200, 169, 91, 0.12), transparent 22%), linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        }

        /* App Shell */
        .app-shell {
            display: flex;
            width: 100%;
            height: 100%;
        }

        /* Buyer Fullscreen */
        .app-shell.buyer-fullscreen .sidebar {
            display: none;
        }
        .app-shell.buyer-fullscreen #buyer-discovery-view {
            width: 100%;
        }
        #buyer-fullscreen-exit {
            display: none;
        }
        .app-shell.buyer-fullscreen #buyer-fullscreen-exit {
            display: flex;
        }
        .app-shell.buyer-fullscreen #buyer-fullscreen-enter {
            display: none;
        }

        /* Sidebar */
        .sidebar {
            width: 264px;
            background:
                radial-gradient(circle at top left, rgba(200, 169, 91, 0.08), transparent 24%),
                linear-gradient(180deg, rgba(9, 11, 15, 0.98), rgba(15, 18, 24, 0.98));
            color: var(--sidebar-text);
            display: flex;
            flex-direction: column;
            z-index: 50;
            border-right: 1px solid rgba(255, 255, 255, 0.06);
        }

        body.light-theme .sidebar {
            background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
            color: var(--sidebar-text);
            border-right: 1px solid #dee2e6;
        }

        .sidebar-header {
            padding: 14px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .sidebar-logo {
            height: 26px;
            display: flex;
            align-items: center;
            flex: 1;
        }

        .sidebar-logo img {
            height: 100%;
            width: auto;
            object-fit: contain;
        }

        body.light-theme .sidebar-logo img {
            filter: invert(1) brightness(0.2);
        }

        .theme-toggle {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            color: var(--ol-muted-2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }

        body.light-theme .theme-toggle {
            border-color: rgba(0, 0, 0, 0.1);
            background: rgba(0, 0, 0, 0.03);
            color: #6c757d;
        }

        .theme-toggle:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.12);
            color: var(--ol-text-strong);
        }

        body.light-theme .theme-toggle:hover {
            background: rgba(0, 0, 0, 0.06);
            border-color: rgba(0, 0, 0, 0.15);
            color: #212529;
        }

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

        .sidebar-title {
            color: var(--ol-text-strong);
            font-size: 18px;
            font-weight: 500;
            font-family: 'Cormorant Garamond', serif;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .sidebar-nav {
            flex: 1;
            padding: 10px;
            overflow-y: auto;
        }

        .nav-group-label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--ol-gold);
            margin: 10px 8px 6px;
            font-family: 'Syne Mono', monospace;
        }

        .nav-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 12px;
            font-family: 'Syne', sans-serif;
            cursor: pointer;
            transition: all 0.2s;
            margin-bottom: 3px;
            border: 1px solid transparent;
            color: var(--ol-muted-2);
        }

        .nav-copy {
            display: flex;
            flex-direction: column;
            gap: 1px;
            min-width: 0;
        }

        .nav-title {
            font-size: 12px;
            font-weight: 700;
            color: inherit;
            line-height: 1.15;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .nav-subtitle {
            font-size: 10px;
            line-height: 1.15;
            color: var(--ol-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .nav-item.active .nav-subtitle {
            color: var(--ol-muted-2);
        }

        .nav-item .material-symbols-outlined {
            margin-top: 1px;
            font-size: 17px;
        }

        .nav-item:hover {
            color: var(--ol-text-strong);
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.05);
        }

        body.light-theme .nav-item:hover {
            color: var(--ol-text-strong);
            background: rgba(0, 0, 0, 0.04);
            border-color: rgba(0, 0, 0, 0.05);
        }

        .nav-item.active {
            color: var(--ol-text-strong);
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.06);
            box-shadow: inset 4px 0 0 var(--ol-gold);
        }

        body.light-theme .nav-item.active {
            color: var(--ol-text-strong);
            background: rgba(200, 169, 91, 0.1);
            border-color: rgba(200, 169, 91, 0.2);
            box-shadow: inset 4px 0 0 var(--ol-gold);
        }

        .sidebar-footer {
            padding: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        body.light-theme .sidebar-footer {
            border-top: 1px solid rgba(0, 0, 0, 0.08);
        }

        .logout-button {
            display: flex;
            align-items: center;
            gap: 0;
            padding: 12px 16px;
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            color: rgba(232, 236, 242, 0.72);
            font-family: 'Syne', sans-serif;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            width: 100%;
            justify-content: center;
        }

        .logout-button:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.12);
            color: var(--ol-text-strong);
        }

        .logout-button .material-symbols-outlined {
            font-size: 18px;
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(200, 169, 91, 0.9));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }

        /* Main Viewport */
        .viewport {
            flex: 1;
            min-width: 0;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }

        /* View Content Styling */
        .view {
            display: none !important;
            height: 100%;
            min-width: 0;
            flex: 1;
            flex-direction: column;
        }

        .view.active {
            display: flex !important;
            height: 100% !important;
            width: 100% !important;
        }

        .app-shell.buyer-fullscreen #buyer-discovery-view.active {
            display: flex !important;
            flex-direction: row !important;
        }

        /* Common Header inside Viewport */
        .view-header {
            padding: 24px 32px;
            background: var(--panel);
            border-bottom: 1px solid var(--line);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        body.light-theme .view-header {
            background: #ffffff;
            border-bottom: 1px solid #e9ecef;
        }

        .view-title h1,
        .module-page-title {
            font-size: clamp(24px, 2.4vw, 32px);
            font-weight: 400;
            font-family: 'Cormorant Garamond', serif;
            letter-spacing: -0.03em;
            line-height: 1.02;
            color: var(--text);
        }

        .view-title p {
            font-size: 14px;
            color: var(--muted);
            margin-top: 4px;
        }

        /* Property Search View Styling (JobRadar Style) */
        #property-search-view .content-grid {
            display: grid;
            grid-template-columns: 280px 340px 1fr;
            flex: 1;
            overflow: hidden;
        }

        .panel {
            background: var(--ol-surface);
            border-right: 1px solid var(--ol-border);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        body.light-theme .panel {
            background: var(--panel);
        }

        .panel-header {
            padding: 16px 20px;
            font-size: 11px;
            font-weight: 500;
            font-family: 'Syne Mono', monospace;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--ol-gold);
            border-bottom: 1px solid var(--ol-border);
            display: flex;
            justify-content: space-between;
        }

        body.light-theme .panel-header {
            color: #6c757d;
            background: #f8f9fa;
        }

        .panel-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        /* Leads View Layout (Table + Split Bottom) */
        /* display logic handled by .view class */
        .leads-top {
            padding: 20px;
            background: var(--ol-surface);
            border-bottom: 1px solid var(--ol-border);
        }

        body.light-theme .leads-top {
            background: var(--panel);
        }

        .leads-middle {
            flex: 1;
            overflow-y: auto;
            background: var(--ol-surface);
        }

        body.light-theme .leads-middle {
            background: var(--bg);
        }

        .leads-bottom {
            height: 400px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            border-top: 1px solid var(--ol-border);
            background: var(--ol-base);
        }

        .detail-panel {
            border-right: 1px solid var(--ol-border);
            overflow-y: auto;
            padding: 20px;
            background: var(--ol-surface);
        }

        body.light-theme .detail-panel {
            background: #ffffff;
        }

        .kanban-panel {
            overflow-x: auto;
            padding: 20px;
            background: var(--ol-base);
        }

        body.light-theme .kanban-panel {
            background: #f8f9fa;
        }

        /* UI Elements */
        .btn {
            padding: 10px 18px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            font-family: 'Syne', sans-serif;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid var(--ol-border);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(180deg, rgba(200, 169, 91, 0.18), rgba(184, 150, 69, 0.12));
            border-color: rgba(200, 169, 91, 0.34);
            color: var(--ol-text-strong);
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            border-color: rgba(200, 169, 91, 0.48);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--ol-border);
            color: var(--ol-text);
        }

        .btn-secondary:hover {
            border-color: var(--ol-gold);
            color: var(--ol-gold);
        }

        body.light-theme .btn-secondary {
            background: rgba(0, 0, 0, 0.02);
        }

        .input {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--ol-border);
            border-radius: 14px;
            background: var(--ol-surface-2, var(--ol-surface));
            color: var(--ol-text);
            font-family: 'Syne', sans-serif;
            font-size: 14px;
            transition: all 0.2s;
        }

        body.light-theme .input {
            background: #ffffff;
            color: #1a1a1a;
        }

        /* Fix for white background on dropdown options in dark mode */
        .input option {
            background-color: #141820;
            /* Matches --ol-surface-2 */
            color: var(--ol-text);
        }

        body.light-theme .input option {
            background-color: #ffffff;
            color: #1a1a1a;
        }

        .input:focus {
            outline: none;
            border-color: rgba(200, 169, 91, 0.65);
            box-shadow: 0 0 0 4px rgba(200, 169, 91, 0.12);
        }

        /* Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }

        .data-table th {
            text-align: left;
            padding: 12px 20px;
            font-size: 11px;
            font-weight: 500;
            font-family: 'Syne Mono', monospace;
            letter-spacing: 0.12em;
            color: var(--ol-gold);
            text-transform: uppercase;
            border-bottom: 1px solid var(--ol-border);
            background: var(--ol-surface-2, var(--ol-surface));
        }

        body.light-theme .data-table th {
            background: #f8f9fa;
            color: #6c757d;
        }

        .data-table td {
            padding: 14px 20px;
            font-size: 14px;
            line-height: 1.55;
            color: var(--ol-text);
            border-bottom: 1px solid var(--ol-border);
        }

.data-table tr:hover {
    background: rgba(200, 169, 91, 0.05);
    cursor: pointer;
}

#inquiries-view .data-table td {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#inquiries-view .data-table th {
    padding: 8px 12px;
    font-size: 10px;
}

body.light-theme .data-table tr:hover {
    background: rgba(200, 169, 91, 0.08);
}

.discovery-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.discovery-preview-panel {
    padding: 12px 14px;
    display: grid;
    gap: 12px;
}

.discovery-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.discovery-preview-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
    flex-shrink: 0;
}

.discovery-preview-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 14px;
}

.discovery-preview-meta-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.discovery-preview-meta-item span {
    font-size: 12px;
    color: var(--ol-text);
    line-height: 1.4;
}

.discovery-preview-body {
    max-height: 360px;
    overflow: auto;
    padding: 12px 14px;
    border: 1px solid var(--ol-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.discovery-preview-content {
    line-height: 1.5;
}

.discovery-preview-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    overflow: hidden;
}

.discovery-preview-body h1,
.discovery-preview-body h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--ol-gold);
}

.discovery-preview-body p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ol-text);
    margin: 0 0 10px;
}

.discovery-preview-body ul {
    margin: 0 0 10px;
    padding-left: 18px;
}

.discovery-preview-body li {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 4px;
    color: var(--ol-text);
}

.discovery-preview-body a {
    color: var(--ol-gold);
    text-decoration: underline;
}

.discovery-preview-toggle {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

        .preview-highlight {
            font-weight: 700;
            border-radius: 4px;
            padding: 0 3px;
        }

        .preview-highlight-intent {
            color: #ffe0a0;
            background: rgba(200, 169, 91, 0.18);
        }

        .preview-highlight-money {
            color: #c6f6d5;
            background: rgba(34, 197, 94, 0.16);
        }

        .preview-highlight-location {
            color: #bfdbfe;
            background: rgba(59, 130, 246, 0.18);
        }

        /* KPI Cards */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            padding: 20px;
        }

        .kpi-card {
            background: var(--ol-surface);
            padding: 20px;
            border-radius: var(--ol-radius-md);
            box-shadow: var(--ol-shadow-sm);
            border: 1px solid var(--ol-border);
        }

        body.light-theme .kpi-card {
            background: #ffffff;
            border: 1px solid #e9ecef;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        }

        .kpi-value {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(28px, 3vw, 42px);
            font-weight: 500;
            line-height: 1;
            letter-spacing: -0.04em;
            color: var(--ol-text-strong);
        }

        .kpi-label {
            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 0.12em;
            color: var(--ol-gold);
            text-transform: uppercase;
            margin-top: 8px;
        }

        /* Posting Center */
        .posting-header {
            padding: 12px 24px;
            background: rgba(15, 17, 21, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 100;
        }

        .posting-exit-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 16px;
            border-radius: 100px;
            background: rgba(239, 68, 68, 0.08);
            border: 1px solid rgba(239, 68, 68, 0.2);
            color: #ef4444;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Syne', sans-serif;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .posting-exit-btn:hover {
            background: #ef4444;
            color: white;
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
        }

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

        .posting-title-block {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .posting-title-block h1 {
            margin: 0;
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(34px, 4vw, 52px);
            font-weight: 400;
            line-height: 0.98;
            letter-spacing: -0.03em;
            color: var(--ol-text-strong);
        }

        .posting-title-block p {
            max-width: 760px;
            color: rgba(232, 236, 242, 0.72);
            font-size: 15px;
            line-height: 1.7;
        }

        .posting-title-block>h1,
        .posting-title-block>p {
            display: none;
        }

        .posting-main-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(24px, 3vw, 36px);
            font-weight: 400;
            line-height: 0.98;
            letter-spacing: -0.03em;
            color: var(--ol-text-strong);
        }

        .posting-main-copy {
            max-width: 760px;
            color: rgba(232, 236, 242, 0.72);
            font-size: 13px;
            line-height: 1.5;
        }

        .posting-header-pill {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
            padding: 12px 18px;
            border-radius: 999px;
            border: 1px solid rgba(200, 169, 91, 0.24);
            background: rgba(200, 169, 91, 0.08);
            color: var(--ol-text-strong);
            font-family: 'Syne Mono', monospace;
            font-size: 11px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .posting-layout {
            display: grid;
            grid-template-columns: 1fr 3fr 1fr;
            gap: 16px;
            padding: 16px;
            flex: 1;
            overflow: hidden;
            background:
                radial-gradient(circle at top left, rgba(200, 169, 91, 0.08), transparent 24%),
                linear-gradient(180deg, #11141a 0%, #0c0f13 100%);
        }

        .posting-rail {
            display: flex;
            flex-direction: column;
            gap: 12px;
            overflow-y: auto;
        }

        .posting-shell {
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
                #10141b;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
            overflow: hidden;
        }

        .posting-shell-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 18px 0;
        }

        .posting-shell-header .ol-label {
            color: var(--ol-gold);
        }

        .posting-connect {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 0 14px;
            min-height: 34px;
            border-radius: 999px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
            color: var(--ol-text);
            font-family: 'Syne Mono', monospace;
            font-size: 11px;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .posting-connect-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #f97370;
            box-shadow: 0 0 0 6px rgba(249, 115, 112, 0.14);
        }

        .posting-control-copy {
            padding: 6px 18px 0;
            color: rgba(232, 236, 242, 0.68);
            font-size: 12px;
            line-height: 1.5;
        }

        .posting-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 16px 18px;
        }

        .posting-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .posting-field .ol-label {
            color: rgba(232, 236, 242, 0.62);
        }

        .posting-field .input,
        .posting-chat-area .input,
        .posting-stage-draft .input {
            min-height: 42px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            color: var(--ol-text-strong);
            font-family: 'Syne', sans-serif;
            box-shadow: none;
        }

        .posting-field .input:focus,
        .posting-chat-area .input:focus,
        .posting-stage-draft .input:focus {
            border-color: rgba(200, 169, 91, 0.5);
            box-shadow: 0 0 0 3px rgba(200, 169, 91, 0.12);
        }

        .posting-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 14px 16px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.03);
        }

        .posting-toggle-copy {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .posting-toggle-copy strong {
            color: var(--ol-text-strong);
            font-size: 14px;
            font-weight: 600;
        }

        .posting-toggle-copy span {
            color: rgba(232, 236, 242, 0.52);
            font-size: 12px;
        }

        .posting-toggle input {
            width: 20px;
            height: 20px;
            accent-color: var(--ol-gold-strong);
        }

        .posting-generate {
            width: 100%;
            min-height: 44px;
            border-radius: 16px;
            border: 1px solid rgba(200, 169, 91, 0.28);
            background:
                linear-gradient(135deg, rgba(200, 169, 91, 0.28), rgba(20, 23, 29, 0.1)),
                linear-gradient(180deg, #191d24, #12161c);
            color: var(--ol-text-strong);
            font-family: 'Syne', sans-serif;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: -0.02em;
            justify-content: center;
        }

        .posting-generate:hover {
            transform: translateY(-1px);
            border-color: rgba(200, 169, 91, 0.48);
        }

        .posting-metrics {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            padding: 12px 18px 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(7, 8, 10, 0.18));
        }

        .posting-metric {
            padding: 10px 12px 8px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .posting-metric strong {
            display: block;
            margin-top: 6px;
            color: var(--ol-text-strong);
            font-size: 13px;
            font-weight: 700;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .posting-metric span {
            display: block;
            margin-top: 3px;
            color: rgba(232, 236, 242, 0.54);
            font-size: 11px;
            line-height: 1.4;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .posting-reminder {
            width: 100%;
            justify-content: center;
            display: inline-flex;
            align-items: center;
            margin-top: 8px;
            padding: 8px;
            min-height: 36px;
            border-radius: 10px;
        }

        .posting-reminder svg {
            opacity: 0.8;
        }

        .posting-reminder:hover svg {
            opacity: 1;
        }

        .posting-stage {
            display: flex;
            min-width: 0;
        }

        .posting-stage .posting-shell {
            width: 100%;
            display: flex;
            flex-direction: column;
            min-height: 100%;
            background:
                radial-gradient(circle at top right, rgba(200, 169, 91, 0.08), transparent 24%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
                #11141a;
        }

        .posting-stage-header {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 20px 0;
            align-items: flex-start;
        }

        .posting-stage-header .ol-kicker {
            margin-bottom: 6px;
        }

        .posting-stage-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: clamp(22px, 2.8vw, 32px);
            font-weight: 400;
            line-height: 1;
            letter-spacing: -0.03em;
            color: var(--ol-text-strong);
        }

        .posting-stage-subtitle {
            margin-top: 4px;
            max-width: 720px;
            color: rgba(232, 236, 242, 0.66);
            font-size: 13px;
            line-height: 1.5;
        }

        .posting-stage-status {
            padding: 10px 14px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.03);
            text-align: right;
        }

        .posting-stage-status .ol-label {
            color: rgba(232, 236, 242, 0.52);
        }

        .posting-stage-status strong {
            display: block;
            margin-top: 6px;
            color: var(--ol-text-strong);
            font-size: 15px;
        }

        .posting-stage-body {
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding: 16px 20px 20px;
            flex: 1;
        }

        .posting-chat-area {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 76px;
            gap: 12px;
            align-items: stretch;
            padding: 14px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.03);
        }

        .posting-chat-area textarea {
            min-height: 90px;
            resize: vertical;
            font-family: 'Syne Mono', monospace;
            font-size: 12px;
            line-height: 1.6;
        }

        .posting-apply {
            min-height: 90px;
            border-radius: 16px;
            justify-content: center;
            flex-direction: column;
            background: rgba(200, 169, 91, 0.08);
            border: 1px solid rgba(200, 169, 91, 0.18);
            color: var(--ol-text-strong);
        }

        .posting-apply span:last-child {
            font-size: 9px;
            letter-spacing: 0.12em;
        }

        .posting-stage-note {
            padding: 10px 14px;
            border-left: 2px solid rgba(200, 169, 91, 0.5);
            background: rgba(200, 169, 91, 0.06);
            color: rgba(232, 236, 242, 0.72);
            font-family: 'Cormorant Garamond', serif;
            font-size: 22px;
            font-style: italic;
            line-height: 1.15;
        }

        .posting-stage-draft {
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex: 1;
            min-height: 280px;
            padding: 16px;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
        }

        .posting-draft-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .posting-draft-toolbar strong {
            color: var(--ol-text-strong);
            font-size: 15px;
            letter-spacing: -0.02em;
        }

        .posting-draft-toolbar span {
            color: rgba(232, 236, 242, 0.56);
            font-size: 11px;
        }

        .posting-stage-draft textarea {
            flex: 1;
            min-height: 240px;
            resize: none;
            border-radius: 16px;
            padding: 16px;
            background: rgba(7, 8, 10, 0.24);
            color: var(--ol-text-strong);
            font-size: 14px;
            line-height: 1.7;
        }

        .posting-action-row {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            padding-top: 2px;
        }

        .posting-actions-left,
        .posting-actions-right {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .posting-action-primary,
        .posting-action-secondary {
            min-height: 40px;
            border-radius: 999px;
            padding: 0 18px;
            font-family: 'Syne', sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .posting-action-primary {
            background: linear-gradient(135deg, rgba(200, 169, 91, 0.35), rgba(12, 15, 19, 0.1)), #171c23;
            border: 1px solid rgba(200, 169, 91, 0.35);
            color: var(--ol-text-strong);
        }

        .posting-action-secondary {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--ol-text);
        }

        .posting-action-secondary:hover,
        .posting-action-primary:hover {
            transform: translateY(-1px);
        }

        .posting-status {
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid rgba(200, 169, 91, 0.18);
            background: rgba(200, 169, 91, 0.08);
            color: var(--ol-text-strong);
            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        @media (max-width: 1260px) {
            .posting-layout {
                grid-template-columns: 1fr;
            }

            .posting-header {
                align-items: flex-start;
                flex-direction: column;
            }

            .posting-header-pill {
                margin-left: 0;
            }
        }

        @media (max-width: 760px) {
            .posting-chat-area {
                grid-template-columns: 1fr;
            }

            .posting-apply {
                min-height: 54px;
                flex-direction: row;
            }

            .posting-metrics {
                grid-template-columns: 1fr;
            }

            .posting-stage-body,
            .posting-shell-header,
            .posting-control-copy,
            .posting-form,
            .posting-metrics,
            .posting-stage-header {
                padding-left: 18px;
                padding-right: 18px;
            }
        }

        /* Modal */
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(7, 8, 10, 0.7);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--ol-surface);
            border: 1px solid var(--ol-border);
            width: 90%;
            max-width: 500px;
            border-radius: var(--ol-radius-md);
            box-shadow: var(--ol-shadow-md);
            overflow: hidden;
        }

        /* Utilities */
        .hidden {
            display: none !important;
        }

        .flex {
            display: flex !important;
        }

        .gap-4 {
            gap: 16px;
        }

        .m-4 {
            margin: 16px;
        }

        .p-4 {
            padding: 16px;
        }

        .toast-stack {
            position: fixed;
            right: 20px;
            bottom: 20px;
            display: grid;
            gap: 8px;
            z-index: 120;
        }

        .toast-item {
            background: var(--ol-surface);
            color: var(--ol-text);
            border: 1px solid var(--ol-border);
            border-left: 3px solid var(--ol-gold);
            border-radius: 8px;
            padding: 10px 12px;
            font-size: 12px;
            box-shadow: var(--ol-shadow-sm);
            min-width: 220px;
        }

        .inline-spinner {
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 255, 255, 0.24);
            border-top-color: var(--ol-gold);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            display: inline-block;
            vertical-align: middle;
            margin-right: 8px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid rgba(200, 169, 91, 0.45);
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex-shrink: 0;
        }

            content: none;
        }

            position: relative;
            z-index: 1;
            font-family: 'Courier New', Courier, monospace;
            font-size: 11px;
            font-weight: 700;
            color: #c8a951;
            letter-spacing: 1px;
            pointer-events: none;
        }

            font-size: 17px;
            font-weight: 900;
            background: linear-gradient(135deg, #b8922e 0%, #f0d080 45%, #c8a951 75%, #e8c060 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 6px rgba(200, 169, 81, 0.4));
            line-height: 1;
            letter-spacing: 2px;
        }

        /* SCCB-PR-DE-013: Hairline Scrollbar */
            width: 2px;
            height: 2px;
        }

            background: transparent;
        }

            background: rgba(200, 169, 91, 0.3);
            border-radius: 1px;
        }

            background: rgba(200, 169, 91, 0.5);
        }

        /* SCCB-PR-DE-013: Tree Explorer Styles */
        .tree-node {
            user-select: none;
        }

        .tree-node-header {
            display: flex;
            align-items: center;
            padding: 6px 8px;
            cursor: pointer;
            border-radius: 6px;
            transition: background 0.15s;
            font-size: 13px;
        }

        .tree-node-header:hover {
            background: rgba(255, 255, 255, 0.04);
        }

        body.light-theme .tree-node-header:hover {
            background: rgba(0, 0, 0, 0.04);
        }

        .tree-node-label {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tree-node-count {
            font-size: 11px;
            color: var(--ol-muted);
            background: rgba(255, 255, 255, 0.05);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
        }

        .tree-node-chevron {
            font-size: 16px;
            color: var(--ol-muted);
            transition: transform 0.2s;
            margin-right: 4px;
        }

        .tree-node.collapsed .tree-node-chevron {
            transform: rotate(-90deg);
        }

        .tree-node-children {
            padding-left: 16px;
            margin-top: 2px;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

        .tree-node.collapsed .tree-node-children {
            max-height: 0 !important;
            margin-top: 0;
        }

        .tree-leaf {
            display: flex;
            align-items: center;
            padding: 6px 8px;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.15s;
            font-size: 12px;
            color: var(--ol-muted-2);
            margin-bottom: 1px;
        }

        .tree-leaf:hover {
            background: rgba(255, 255, 255, 0.04);
            color: var(--ol-text);
        }

        body.light-theme .tree-leaf:hover {
            background: rgba(0, 0, 0, 0.04);
        }

        .tree-leaf.selected {
            background: rgba(200, 169, 91, 0.15);
            color: var(--ol-text-strong);
            border-left: 2px solid var(--ol-gold);
        }

        .tree-leaf.hidden {
            display: none;
        }

        /* SCCB-PR-DE-014: Filter Chips */
        .filter-chip {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s;
            background: rgba(255, 255, 255, 0.05);
            color: var(--ol-muted-2);
            border: 1px solid transparent;
        }

        .filter-chip:hover {
            background: rgba(255, 255, 255, 0.08);
            color: var(--ol-text);
        }

        body.light-theme .filter-chip {
            background: rgba(0, 0, 0, 0.05);
        }

        body.light-theme .filter-chip:hover {
            background: rgba(0, 0, 0, 0.08);
        }

        .filter-chip.active {
            background: rgba(200, 169, 91, 0.15);
            color: var(--ol-gold);
            border-color: rgba(200, 169, 91, 0.3);
        }

        .tree-leaf-icon {
            font-size: 14px;
            margin-right: 6px;
            color: var(--ol-muted);
        }

        .tree-leaf.selected .tree-leaf-icon {
            color: var(--ol-gold);
        }

            display: grid;
            grid-template-rows: auto auto 1fr;
            height: 100vh;
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
            background:
                radial-gradient(circle at top right, rgba(200, 169, 91, 0.08), transparent 26%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0) 18%),
                var(--ol-base);
        }

            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
                var(--ol-surface);
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

            background: #ffffff;
        }

            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 18px 24px 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        }

            margin-bottom: 0;
            letter-spacing: -0.02em;
        }

            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 0 1 440px;
            min-width: 0;
            max-width: 460px;
        }

            margin: 0;
            font-size: 12px;
            color: var(--ol-muted);
            line-height: 1.35;
            max-width: 420px;
            white-space: normal;
        }

            width: 250px;
        }

            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 700;
            color: var(--ol-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 4px;
            width: auto;
            max-width: 100%;
            flex-wrap: wrap;
        }

            display: none;
            flex-direction: row;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            flex: 1;
            min-width: auto;
            max-width: none;
            margin-left: 0;
            font-size: 11px;
        }

            font-size: 15px;
            color: var(--ol-gold);
        }

            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
            flex: 1;
        }

            font-family: 'Syne Mono', monospace;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--ol-muted);
        }

            font-size: 11px;
            color: var(--ol-text-strong);
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: none;
            display: inline;
        }
            font-size: 11px;
            font-weight: 600;
            color: var(--ol-gold);
        }
            font-size: 10px;
            font-weight: 500;
            color: var(--ol-muted-2);
        }
            font-size: 10px;
            color: var(--ol-muted);
            font-style: italic;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 200px;
        }
        /* SCCB-PDE-PM-UI-REFINEMENT-001: Search Context Panel - Simplified */
            display: none;
            flex-direction: row;
            align-items: center;
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 4px 10px;
            font-size: 10px;
        }
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 0;
        }
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 0;
        }
            display: inline-flex;
            flex-direction: row;
            gap: 4px;
            align-items: center;
        }
            font-size: 9px;
            color: var(--ol-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
            font-size: 10px;
            font-weight: 600;
            color: var(--ol-text-strong);
        }
            color: var(--ol-gold);
        }
            font-size: 14px;
            color: var(--ol-gold);
            padding: 0 4px;
        }
            display: inline-flex;
            flex-direction: row;
            gap: 8px;
            padding-top: 0;
            padding-left: 8px;
            border-top: none;
            border-left: 1px solid rgba(255,255,255,0.08);
            margin-left: 8px;
        }
            display: inline-flex;
            justify-content: space-between;
            gap: 4px;
            align-items: center;
        }
            color: var(--ol-muted);
            font-size: 9px;
        }
            color: var(--ol-text);
            font-size: 9px;
            font-weight: 500;
            text-align: right;
        }
            color: var(--ol-gold);
            font-weight: 700;
        }

            display: flex;
            gap: 14px;
            align-items: flex-end;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding: 8px 24px 12px;
        }

            padding-top: 0;
            padding-bottom: 0;
        }

            min-width: 0;
            flex-shrink: 0;
        }

            flex-direction: row;
            align-items: center;
            gap: 10px;
        }

            margin: 0;
            white-space: nowrap;
        }

            height: 40px;
            min-height: 40px;
        }

            gap: 10px;
            margin-right: 0;
            padding-right: 0;
            border-right: none;
            min-width: 0;
        }

            display: none !important;
        }

            display: flex !important;
        }

            gap: 8px;
        }

            align-items: center;
        }

            padding: 5px 10px;
            font-size: 9.5px;
            font-weight: 700;
            letter-spacing: 0.08em;
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.06);
        }

            background: rgba(200, 169, 91, 0.1);
            border-color: rgba(200, 169, 91, 0.28);
            box-shadow: inset 0 0 0 1px rgba(200, 169, 91, 0.08);
        }

            display: flex;
            align-items: flex-end;
            gap: 8px;
            margin-left: auto;
            flex-shrink: 0;
        }

            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            padding: 0;
            border-bottom: none;
            background: transparent;
            flex-wrap: nowrap;
            align-self: center;
            min-width: 0;
        }

            min-height: 36px;
            padding: 5px 9px;
            background: rgba(255, 255, 255, 0.025);
            border-color: rgba(255, 255, 255, 0.06);
            max-width: 160px;
        }

            font-size: 10px;
            letter-spacing: 0.02em;
        }

            font-size: 9px;
        }

            flex: 1;
            width: 100%;
            display: grid;
            grid-template-columns: 1fr;
            padding: 18px 24px 24px;
            min-height: 0;
            background: transparent;
        }

            min-width: 0;
            min-height: 0;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 16px;
            overflow: hidden;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
                var(--ol-surface);
            box-shadow: 0 16px 34px rgba(7, 8, 10, 0.14);
        }

            background: #ffffff;
        }

            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: linear-gradient(180deg, rgba(200, 169, 91, 0.08), rgba(200, 169, 91, 0.03));
        }

            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

            font-size: 14px;
            font-weight: 700;
            letter-spacing: -0.01em;
            color: var(--ol-text-strong);
        }

            min-width: 24px;
            padding: 2px 8px;
            border-radius: 999px;
            border: 1px solid rgba(200, 169, 91, 0.24);
            background: rgba(200, 169, 91, 0.1);
            color: var(--ol-gold);
            font-size: 10px;
            font-weight: 700;
            text-align: center;
        }

            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--ol-muted);
        }

            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding: 12px;
        }

            padding: 18px;
        }

            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 12px;
            cursor: pointer;
            border: 1px solid transparent;
            margin-bottom: 8px;
            background: rgba(255, 255, 255, 0.018);
            transition: border-color 0.15s, background 0.15s, transform 0.15s;
        }

            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(200, 169, 91, 0.25);
            transform: translateY(-1px);
        }

            background: rgba(200, 169, 91, 0.08);
            border-color: var(--ol-gold);
            box-shadow: inset 0 0 0 1px rgba(200, 169, 91, 0.1);
        }

            font-weight: 600;
            font-size: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

            font-size: 11px;
            color: var(--ol-muted);
            margin-top: 3px;
        }

            font-size: 10px;
            color: var(--ol-muted);
            margin-top: 4px;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

            height: 100%;
            min-height: 240px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            text-align: center;
        }

            height: 100%;
            min-height: 260px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            text-align: center;
        }

            max-width: 360px;
        }

            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--ol-gold);
            margin-bottom: 12px;
        }

            font-size: 18px;
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.02em;
            color: var(--ol-text-strong);
            margin-bottom: 8px;
        }

            color: var(--ol-muted);
            font-size: 13px;
            line-height: 1.6;
        }

        @media (max-width: 1180px) {
                grid-template-columns: 1fr;
                padding-left: 16px;
                padding-right: 16px;
            }

                flex-basis: 360px;
                max-width: 390px;
            }

                width: 210px;
            }
        }

        @media (max-width: 980px) {
                flex-wrap: wrap;
                padding-left: 16px;
                padding-right: 16px;
            }

                flex-wrap: wrap;
                padding-left: 16px;
                padding-right: 16px;
                overflow-x: visible;
            }

                margin-left: 0;
            }

                width: auto;
                flex-wrap: wrap;
                justify-content: flex-start;
                align-self: flex-start;
            }

                margin-left: 0;
                flex: 1 1 100%;
                min-width: 0;
                max-width: none;
            }

                grid-template-columns: 1fr;
                padding: 16px;
            }

                max-width: 240px;
            }
        }

            background:
                linear-gradient(180deg, rgba(200, 169, 91, 0.05), rgba(200, 169, 91, 0.01)),
                var(--panel);
        }

            margin-bottom: 0;
        }

            font-size: 12px;
            color: var(--ol-muted);
            margin-top: 6px;
        }

            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--ol-gold);
            margin-bottom: 10px;
        }

            background: var(--bg-secondary, var(--ol-surface));
            border-bottom: 1px solid var(--line);
            padding: 14px 24px;
        }

            padding: 12px 24px 0;
            background: var(--ol-base);
        }

            height: auto;
            min-height: 360px;
            gap: 16px;
            padding: 12px 24px 24px;
            border-top: none;
            background: var(--ol-base);
            grid-template-columns: 1fr;
        }

            border: 1px solid var(--ol-border);
            border-radius: 16px;
            padding: 18px;
            background: var(--ol-surface);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
            position: relative;
        }

            border-right: none;
        }

            background: #ffffff;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        }

            display: flex;
            align-items: flex-end;
            gap: 18px;
            flex-wrap: wrap;
        }

            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 150px;
        }

            min-width: 150px;
        }

            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
        }

            border: 1px solid var(--ol-border);
            border-radius: 18px;
            overflow: hidden;
            background: var(--ol-surface);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
        }

            background: #ffffff;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        }

            position: sticky;
            top: 0;
            z-index: 3;
            background:
                linear-gradient(180deg, rgba(200, 169, 91, 0.08), rgba(200, 169, 91, 0.02)),
                var(--ol-surface-2);
        }

            transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
        }

            transform: translateY(-1px);
        }

            background: rgba(200, 169, 91, 0.08) !important;
            box-shadow: inset 3px 0 0 var(--ol-gold);
        }

            background: transparent;
        }

            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

            font-size: 14px;
            font-weight: 700;
            color: var(--ol-text-strong);
            line-height: 1.3;
        }

            font-size: 13px;
        }

            font-size: 11px;
            color: var(--ol-muted);
            line-height: 1.35;
        }

            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border-radius: 999px;
            border: 1px solid transparent;
            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            white-space: nowrap;
        }

            background: rgba(200, 169, 91, 0.12);
            border-color: rgba(200, 169, 91, 0.26);
            color: #f4d58d;
        }

            background: rgba(96, 165, 250, 0.12);
            border-color: rgba(96, 165, 250, 0.26);
            color: #93c5fd;
        }

            background: rgba(74, 222, 128, 0.12);
            border-color: rgba(74, 222, 128, 0.26);
            color: #86efac;
        }

            background: rgba(192, 132, 252, 0.12);
            border-color: rgba(192, 132, 252, 0.26);
            color: #d8b4fe;
        }

            background: rgba(148, 163, 184, 0.12);
            border-color: rgba(148, 163, 184, 0.26);
            color: #cbd5e1;
        }

            background: rgba(74, 222, 128, 0.12);
            border-color: rgba(74, 222, 128, 0.24);
            color: #86efac;
        }

            background: rgba(96, 165, 250, 0.12);
            border-color: rgba(96, 165, 250, 0.24);
            color: #93c5fd;
        }

            background: rgba(248, 113, 113, 0.12);
            border-color: rgba(248, 113, 113, 0.24);
            color: #fca5a5;
        }

            background: rgba(148, 163, 184, 0.12);
            border-color: rgba(148, 163, 184, 0.24);
            color: #cbd5e1;
        }

            min-width: 156px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.04);
            font-size: 12px;
        }

            background: #ffffff;
        }

            font-size: 11px;
            color: var(--ol-muted);
            font-family: 'Syne Mono', monospace;
            white-space: nowrap;
        }

            padding: 18px;
            border: 1px solid var(--ol-border);
            border-radius: 16px;
            background:
                linear-gradient(135deg, rgba(200, 169, 91, 0.10), rgba(200, 169, 91, 0.02) 45%, transparent 80%),
                var(--ol-surface-2);
            margin-bottom: 16px;
        }

            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: flex-start;
            margin-bottom: 14px;
        }

            font-size: 20px;
            font-weight: 700;
            line-height: 1.2;
            color: var(--ol-text-strong);
            margin-bottom: 6px;
        }

            font-size: 13px;
            color: var(--ol-muted);
            line-height: 1.45;
        }

            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

            padding: 12px;
            border: 1px solid var(--ol-border);
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
        }

            background: #fafafa;
        }

            display: block;
            margin-bottom: 5px;
            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--ol-gold);
        }

            font-size: 13px;
            font-weight: 600;
            line-height: 1.45;
            color: var(--ol-text);
            word-break: break-word;
        }

            margin-bottom: 16px;
        }

            margin-bottom: 8px;
            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--ol-gold);
        }

            font-size: 13px;
            line-height: 1.6;
            background: var(--bg);
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 14px;
        }

            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
        }

        @media (max-width: 1100px) {
                grid-template-columns: 1fr;
            }

                grid-template-columns: 1fr;
            }
        }

        /* SCCB-PR-DE-025: NUCLEAR DARK MODE OVERRIDES (Astra) */
        body:not(.light-theme) {
            --ol-base: #0a0c10 !important;
            --ol-surface: #0f1218 !important;
            --ol-surface-2: #141820 !important;
            --ol-border: rgba(255, 255, 255, 0.06) !important;
            --ol-line: rgba(255, 255, 255, 0.08) !important;
            --bg: #0a0c10 !important;
            --panel: #0f1218 !important;
            --line: rgba(255, 255, 255, 0.08) !important;
        }

        /* Enforce Editorial Consistency */
        .view-header {
            padding: 24px 32px;
            border-bottom: 1px solid var(--ol-border);
        }

        .leads-top {
            padding: 24px 32px;
            background: var(--ol-surface);
            border-bottom: 1px solid var(--ol-border);
        }

        .data-table th {
            padding: 14px 20px;
            background: var(--ol-surface-2);
            border-bottom: 1px solid var(--ol-border);
            color: var(--ol-gold);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .data-table td {
            padding: 16px 20px;
            border-bottom: 1px solid var(--ol-border);
            vertical-align: top;
        }

        .data-table tr:hover {
            background: rgba(200, 169, 91, 0.04) !important;
        }

        /* Nuclear Grid Lock */
        body:not(.light-theme) .data-table {
            background: transparent !important;
        }

        body:not(.light-theme) .leads-middle {
            background: var(--ol-base) !important;
        }

        /* Confidence Badges */
        .confidence-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            font-family: 'Syne Mono', monospace;
        }

        .conf-high {
            background: rgba(34, 197, 94, 0.1);
            color: #4ade80;
            border: 1px solid rgba(34, 197, 94, 0.2);
        }

        .conf-med {
            background: rgba(234, 179, 8, 0.1);
            color: #facc15;
            border: 1px solid rgba(234, 179, 8, 0.2);
        }

        .conf-low {
            background: rgba(239, 68, 68, 0.1);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

            display: grid;
            grid-template-rows: auto auto 1fr;
            height: 100vh;
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }


            background: var(--ol-surface);
            border-bottom: 1px solid var(--ol-border);
            display: flex;
            flex-direction: column;
            padding: 16px 24px;
            gap: 12px;
            min-width: 0;
            max-width: 100%;
            overflow: visible;
            /* Prevent clipping of dropdowns/tooltips */
        }



            flex: 1;
            min-width: 0;
            max-width: 100%;
            overflow: auto;
            background: var(--ol-base);
            padding: 0;
        }

            overflow: visible;
        }

            table-layout: fixed;
            min-width: 0;
        }

            padding-left: 12px;
            padding-right: 12px;
        }

            width: 96px;
        }

            width: 92px;
        }

            width: 104px;
        }

            width: 136px;
        }

            width: 96px;
        }

            width: 94px;
        }

            width: 108px;
        }

            width: 96px;
        }

            width: 92px;
        }

            width: 104px;
        }

            width: 136px;
        }

            width: 96px;
        }

            width: 94px;
        }

            width: 108px;
        }

        @media (max-width: 1180px) {

                padding-left: 6px;
                padding-right: 6px;
            }

                width: 66px;
            }

                width: 58px;
            }

                width: 70px;
            }

                width: 76px;
            }

                width: 58px;
            }

                width: 72px;
            }

                width: 78px;
            }

                width: 66px;
            }

                width: 58px;
            }

                width: 70px;
            }

                width: 76px;
            }

                width: 58px;
            }

                width: 72px;
            }

                width: 78px;
            }

                padding-left: 6px;
                padding-right: 6px;
            }

                gap: 4px !important;
                min-width: 0 !important;
            }

                width: 28px !important;
                height: 30px !important;
            }
        }

            position: sticky;
            background: var(--ol-surface-2);
            box-shadow: -1px 0 0 var(--ol-border);
        }

            right: 108px;
            z-index: 6;
        }

            right: 0;
            z-index: 7;
        }

            background: var(--ol-base);
        }

            background: #ffffff;
        }

            background: #f8f9fa;
        }

        @media (max-width: 1180px) {
                right: 78px;
            }
        }

            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-items: flex-end;
            width: 100%;
            min-width: 0;
            max-width: 100%;
        }

            display: flex;
            align-items: center;
            gap: 20px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            width: 100%;
            min-width: 0;
            max-width: 100%;
        }

            display: flex;
            width: 100%;
        }

            width: 100%;
            height: 40px;
        }

            display: flex;
            gap: 8px;
            align-items: center;
            min-width: 0;
            flex: 1;
        }

            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: nowrap;
            justify-content: flex-start;
            width: 100%;
            min-width: 0;
        }

            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: nowrap;
            flex-shrink: 0;
            margin-left: 4px;
            padding-left: 8px;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

            display: flex;
            gap: 6px;
            align-items: center;
            margin-right: 4px;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            padding-right: 8px;
            min-width: 0;
            flex: 1 1 auto;
            overflow: hidden;
        }

            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
        }

            min-width: 0;
            flex: 1 1 auto;
            overflow: hidden;
        }

            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1 1 auto;
            overflow: hidden;
            white-space: nowrap;
        }

            flex: 0 0 auto;
        }

            min-width: 0;
            flex: 1 1 auto;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

            appearance: none;
            display: inline-flex;
            align-items: center;
            font: inherit;
        }

            flex-shrink: 0;
        }

            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.025);
            color: var(--ol-muted);
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.03em;
            white-space: nowrap;
            padding: 5px 7px;
            border-radius: 999px;
        }

            color: var(--ol-text-strong);
            transform: translateY(-1px);
        }

            color: var(--ol-gold);
            background: rgba(200, 169, 91, 0.14);
            border-color: rgba(200, 169, 91, 0.35);
            box-shadow: inset 0 0 0 1px rgba(200, 169, 91, 0.08);
        }

        /* SCCB-131A: Summary chip visual hierarchy */
            color: var(--ol-gold);
            background: rgba(200, 169, 91, 0.10);
            border-color: rgba(200, 169, 91, 0.30);
        }

            background: rgba(200, 169, 91, 0.22);
            border-color: rgba(200, 169, 91, 0.52);
            box-shadow: inset 0 0 0 1px rgba(200, 169, 91, 0.12), 0 0 8px rgba(200, 169, 91, 0.06);
        }

            color: rgba(210, 110, 100, 0.78);
            background: rgba(180, 60, 60, 0.07);
            border-color: rgba(180, 60, 60, 0.22);
        }

            color: rgba(220, 120, 110, 0.90) !important;
        }

            color: rgba(220, 120, 110, 0.92);
            background: rgba(180, 60, 60, 0.14);
            border-color: rgba(180, 60, 60, 0.38);
        }

            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 0;
        }

            background: rgba(200, 169, 91, 0.16);
            border-color: rgba(200, 169, 91, 0.35);
            color: var(--ol-gold);
            box-shadow: inset 0 0 0 1px rgba(200, 169, 91, 0.25);
        }

            font-size: 16px;
        }

            gap: 4px;
            width: auto;
            padding: 0 7px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            color: var(--ol-muted);
        }

            width: auto;
            min-width: 28px;
            gap: 4px;
            padding: 0 7px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }

            min-width: 48px;
        }

            width: 28px;
            padding: 0;
        }

            width: 1px;
            height: 16px;
            background: rgba(255, 255, 255, 0.1);
            margin: 0 4px;
            flex-shrink: 0;
        }

            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            padding: 0;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.035);
            color: var(--ol-muted);
            cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            opacity: 0;
            cursor: pointer;
        }

            color: var(--ol-text-strong);
            transform: translateY(-1px);
        }

            background: rgba(200, 169, 91, 0.16);
            border-color: rgba(200, 169, 91, 0.35);
            color: var(--ol-gold);
            box-shadow: inset 0 0 0 1px rgba(200, 169, 91, 0.25);
        }

            flex: 0 0 32px;
            height: 32px !important;
            min-height: 32px !important;
            width: 32px !important;
        }

            font-size: 18px;
        }

            display: flex;
            flex-direction: column;
            gap: 0;
        }

            height: 40px;
            box-sizing: border-box;
            font-size: 8px;
            line-height: 1;
            padding-left: 10px;
            padding-right: 28px;
        }

            font-size: 8px;
        }

            width: 132px !important;
            min-width: 132px;
        }

            width: 148px !important;
            min-width: 148px;
        }

        .saved-search-cta {
            display: none;
            align-items: center;
            gap: 8px;
            padding: 6px 32px 6px 10px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
            flex-shrink: 0;
            min-height: 40px;
            width: 185px;
            min-width: 185px;
            box-sizing: border-box;
            position: relative;
        }

        .saved-search-cta:hover {
            border-color: rgba(200, 169, 91, 0.45);
            background: rgba(255, 255, 255, 0.06);
            transform: translateY(-1px);
        }

        .saved-search-inline-group {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            flex-wrap: nowrap;
            flex-shrink: 0;
            padding-bottom: 1px;
        }

        .saved-search-copy {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            min-width: 0;
            width: 100%;
        }

        .saved-search-title {
            font-size: 11px;
            color: var(--ol-text);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.2;
            width: 100%;
        }

        .saved-search-meta {
            font-size: 10px;
            color: var(--ol-muted-2);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0;
            border-radius: 0;
            background: transparent;
            line-height: 1.2;
            width: 100%;
        }

            display: flex;
            flex-direction: column;
            gap: 6px;
            flex-shrink: 0;
        }

        /* Hairline Scrollbar Styling */
            width: 3px;
            height: 3px;
        }

            background: transparent;
        }

            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
        }

            background: var(--ol-gold);
        }

        /* Global hairline scrollbar for all scrollable areas */
        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--ol-gold);
        }


            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: flex-start;
            flex-wrap: nowrap;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 6px;
            overflow-x: auto;
            overflow-y: hidden;
        }


            display: flex;
            flex-direction: column;
            gap: 8px;
        }

            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            font-weight: 600;
            color: var(--ol-gold);
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

            transition: all 0.2s ease;
        }

            background: rgba(200, 169, 91, 0.06) !important;
            transform: scale(1.002);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

            padding: 4px 10px;
            border-radius: 6px;
            background: var(--ol-surface-2);
            border: 1px solid var(--ol-border);
            color: var(--ol-gold);
            font-weight: 700;
            font-size: 11px;
            font-family: 'Syne Mono', monospace;
        }

            padding: 4px 10px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 10px;
            font-family: 'Syne Mono', monospace;
            text-transform: uppercase;
            display: inline-flex;
            align-items: center;
        }

        .intent-sell {
            background: rgba(34, 197, 94, 0.1);
            color: #4ade80;
            border: 1px solid rgba(34, 197, 94, 0.2);
        }

        .intent-rent {
            background: rgba(59, 130, 246, 0.1);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .intent-manage {
            background: rgba(168, 85, 247, 0.1);
            color: #c084fc;
            border: 1px solid rgba(168, 85, 247, 0.2);
        }

        .intent-buy {
            background: rgba(251, 191, 36, 0.1);
            color: #fbbf24;
            border: 1px solid rgba(251, 191, 36, 0.2);
        }

            background: var(--ol-surface-2);
            border-top: none;
            padding: 24px;
            animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

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

        @keyframes modal-slide-up {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

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

            background: var(--ol-base);
            border: 1px solid var(--ol-border);
            border-radius: var(--ol-radius-md);
            overflow: hidden;
            box-shadow: var(--ol-shadow-md);
        }

            padding: 20px 24px;
            border-bottom: 1px solid var(--ol-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(to right, var(--ol-surface), transparent);
        }

            padding: 24px;
            max-height: 500px;
            overflow-y: auto;
            font-family: 'Inter', sans-serif;
            line-height: 1.8;
            color: var(--ol-text);
        }

            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
            padding: 20px 24px;
            background: var(--ol-surface);
            border-bottom: 1px solid var(--ol-border);
        }

            display: block;
            font-family: 'Syne Mono', monospace;
            font-size: 10px;
            color: var(--ol-gold);
            text-transform: uppercase;
            margin-bottom: 4px;
        }

            font-size: 13px;
            font-weight: 500;
        }

            height: 32px;
            padding: 0 16px;
            font-size: 11px;
            border-radius: 8px;
        }

        /* Light Theme specific overrides */
            background: linear-gradient(135deg, rgba(200, 169, 91, 0.05), rgba(200, 169, 91, 0.02));
            border-color: #dee2e6;
        }

            background: #ffffff;
            border-color: #dee2e6;
        }

            background: #f8f9fa;
        }

            background: #ffffff;
            border-color: #dee2e6;
        }

            background: linear-gradient(to right, #f8f9fa, transparent);
        }

            background: #f8f9fa;
            border-color: #dee2e6;
        }


        /* --- Posting Center Template Preview Styles --- */
        .preview-scaler {
            width: 100%;
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            background: radial-gradient(circle at top, #1e293b 0%, #020617 100%);
            border-radius: 12px;
            padding: 16px;
            min-height: 0;
            scrollbar-width: thin;
        }

        #post-template-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            width: 100%;
        }

        .template-thumb-wrapper {
            aspect-ratio: 9/16;
            background: #000;
            border-radius: 6px;
            overflow: hidden;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
            transition: transform 0.2s, border-color 0.2s;
        }

        .template-thumb-wrapper:hover {
            transform: translateY(-2px);
            border-color: #c8a95b;
        }

        .template-thumb-wrapper:last-child {
            grid-column: 2;
            /* Center the 10th item */
        }

        .thumb-canvas {
            width: 540px;
            height: 960px;
            background: white;
            position: absolute;
            top: 0;
            left: 0;
            transform-origin: top left;
        }

        .thumb-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            font-size: 8px;
            padding: 4px;
            text-align: center;
            text-transform: uppercase;
            z-index: 10;
        }

        .premium-border-outer {
            position: absolute;
            inset: 0;
            border: 12px solid var(--border-color, #065f46);
            pointer-events: none;
            z-index: 50;
        }

        /* --- Post Preview Modal (Contained Message Box) --- */
        #post-preview-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 10000;
            background: transparent;
            align-items: center;
            justify-content: center;
            padding: 20px;
            pointer-events: none;
        }

        #post-preview-modal>.modal-window {
            pointer-events: all;
        }

        .modal-window {
            background: #020617;
            border: 1px solid rgba(200, 169, 91, 0.3);
            border-radius: 24px;
            height: 96vh;
            aspect-ratio: 9 / 16;
            max-width: 95vw;
            position: relative;
            display: flex;
            flex-direction: column;
            padding: 16px 16px 20px;
            box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
            animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            overflow: hidden;
        }

        @keyframes modalPop {
            from {
                transform: scale(0.9);
                opacity: 0;
            }

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

        .modal-content-frame {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            height: 100%;
            width: 100%;
            overflow: hidden;
            justify-content: flex-start;
        }

        .modal-header-frame {
            background: rgba(200, 169, 91, 0.1);
            border: 1px solid rgba(200, 169, 91, 0.2);
            padding: 4px 12px;
            border-radius: 100px;
            margin-bottom: 8px;
        }

        #modal-template-title {
            color: #c8a95b;
            font-family: 'Syne', sans-serif;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
            padding-right: 15px;
        }

        #modal-template-canvas {
            width: 540px;
            height: 960px;
            background: white;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
            transform-origin: top center;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }

        .modal-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: 0.2s;
            z-index: 100;
        }

        .modal-close-btn:hover {
            background: #ef4444;
            color: white;
            transform: scale(1.1);
        }

        .modal-close-btn:hover {
            background: #ef4444;
            transform: rotate(90deg);
        }

        .premium-border-inner {
            position: absolute;
            inset: 18px;
            border: 1px solid var(--border-color, #065f46);
            opacity: 0.3;
            pointer-events: none;
            z-index: 50;
        }

        .t-img-fit {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .t-flex {
            display: flex;
        }

        .t-grid {
            display: grid;
        }

        /* Community Radar Styles */
        .radar-platform-facebook {
            background: rgba(24, 119, 242, 0.1) !important;
            color: #1877f2 !important;
            border: 1px solid rgba(24, 119, 242, 0.2) !important;
        }

        .radar-platform-linkedin {
            background: rgba(10, 102, 194, 0.1) !important;
            color: #0a66c2 !important;
            border: 1px solid rgba(10, 102, 194, 0.2) !important;
        }

        .radar-platform-reddit {
            background: rgba(255, 69, 0, 0.1) !important;
            color: #ff4500 !important;
            border: 1px solid rgba(255, 69, 0, 0.2) !important;
        }

        .radar-platform-youtube {
            background: rgba(255, 0, 0, 0.1) !important;
            color: #ff0000 !important;
            border: 1px solid rgba(255, 0, 0, 0.2) !important;
        }

        .radar-platform-instagram {
            background: rgba(225, 48, 108, 0.1) !important;
            color: #e1306c !important;
            border: 1px solid rgba(225, 48, 108, 0.2) !important;
        }

        .radar-platform-whatsapp {
            background: rgba(37, 211, 102, 0.1) !important;
            color: #25d366 !important;
            border: 1px solid rgba(37, 211, 102, 0.2) !important;
        }

        .priority-high {
            background: rgba(200, 169, 91, 0.15) !important;
            color: var(--ol-gold) !important;
            border: 1px solid rgba(200, 169, 91, 0.3) !important;
        }

        .priority-medium {
            background: rgba(148, 163, 184, 0.1) !important;
            color: #94a3b8 !important;
            border: 1px solid rgba(148, 163, 184, 0.2) !important;
        }

        .priority-low {
            background: rgba(71, 85, 105, 0.1) !important;
            color: #64748b !important;
            border: 1px solid rgba(71, 85, 105, 0.2) !important;
        }

        #radar-table-body tr.active-row {
            background: rgba(200, 169, 91, 0.12) !important;
            border-left: 3px solid var(--ol-gold) !important;
        }

        /* Collapsible Sidebar Styles */
        .sidebar {
            transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            flex-shrink: 0;
        }

        .sidebar.collapsed {
            width: 72px;
        }

        .sidebar.collapsed .nav-copy,
        .sidebar.collapsed .nav-group-label,
        .sidebar.collapsed .sidebar-logo,
        .sidebar.collapsed .theme-toggle,
            display: none !important;
        }

        .sidebar.collapsed .sidebar-header {
            justify-content: center;
            padding: 20px 10px;
        }

        .sidebar.collapsed .sidebar-header::before {
            content: "P";
            font-family: 'Cormorant Garamond', serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--ol-gold);
        }

        .sidebar.collapsed .sidebar-footer {
            flex-direction: column;
            gap: 12px;
            padding: 16px 10px;
            align-items: center;
            justify-content: center;
        }

        .sidebar.collapsed .nav-item {
            justify-content: center;
            padding: 12px;
        }

            transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

            width: 0px !important;
            min-width: 0px !important;
            padding: 0px !important;
            border-right: none !important;
        }


        .intent-badge {
            display: inline-flex;
            align-items: center;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .intent-sell {
            color: #f87171;
            background: rgba(248, 113, 113, 0.1);
            border: 1px solid rgba(248, 113, 113, 0.2);
        }
        .intent-rent {
            color: #60a5fa;
            background: rgba(96, 165, 250, 0.1);
            border: 1px solid rgba(96, 165, 250, 0.2);
        }
        .intent-manage {
            color: #34d399;
            background: rgba(52, 211, 153, 0.1);
            border: 1px solid rgba(52, 211, 153, 0.2);
        }
        .intent-buy {
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.2);
        }
        .intent-general {
            color: #9ca3af;
            background: rgba(156, 163, 175, 0.1);
            border: 1px solid rgba(156, 163, 175, 0.2);
        }
        body.light-theme .intent-sell {
            color: #dc2626;
            background: #fef2f2;
            border-color: #fee2e2;
        }
        body.light-theme .intent-rent {
            color: #2563eb;
            background: #eff6ff;
            border-color: #dbeafe;
        }
        body.light-theme .intent-manage {
            color: #059669;
            background: #ecfdf5;
            border-color: #d1fae5;
        }
        body.light-theme .intent-buy {
            color: #d97706;
            background: #fffbeb;
            border-color: #fef3c7;
        }
        body.light-theme .intent-general {
            color: #4b5563;
            background: #f9fafb;
            border-color: #f3f4f6;
        }
    