@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --ink-navy: #16233F;
    --warm-gold: #C9A227;
    --sage: #5C8A6A;
    --terracotta: #C1622D;
    --linen: #F6F1E7;
    --white: #FFFFFF;
    --slate: #3A4356;
    --charcoal: #22262F;
    --card-shadow: 0 8px 30px rgba(22, 35, 63, 0.06);
    --hover-shadow: 0 12px 40px rgba(22, 35, 63, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--linen);
    color: var(--charcoal);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Authentication Layout Containers */
.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(22, 35, 63, 0.05);
    transition: var(--transition);
    animation: slideIn 0.5s ease-out;
}

.auth-container:hover {
    box-shadow: var(--hover-shadow);
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--ink-navy);
    color: var(--warm-gold);
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(22, 35, 63, 0.2);
}

.brand-title {
    color: var(--ink-navy);
    font-size: 1.75rem;
    font-weight: 700;
}

.brand-subtitle {
    color: var(--slate);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--slate);
    opacity: 0.7;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--charcoal);
    background-color: #FAF8F5;
    border: 1px solid rgba(22, 35, 63, 0.15);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--ink-navy);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(22, 35, 63, 0.08);
}

/* Custom Select Group */
.form-select {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--charcoal);
    background-color: #FAF8F5;
    border: 1px solid rgba(22, 35, 63, 0.15);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--ink-navy);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    color: var(--slate);
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.85rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--ink-navy);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(22, 35, 63, 0.15);
}

.btn-primary:hover {
    background-color: #24355a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 35, 63, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-accent {
    background-color: var(--warm-gold);
    color: var(--ink-navy);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.2);
    margin-bottom: 1rem;
}

.btn-accent:hover {
    background-color: #dec159;
    transform: translateY(-2px);
}

.auth-switch-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate);
    margin-top: 1.5rem;
}

.auth-switch-link {
    color: var(--ink-navy);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--slate);
    font-size: 0.8rem;
    opacity: 0.6;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(22, 35, 63, 0.15);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    font-weight: 500;
    max-width: 380px;
}

.notification.show {
    transform: translateY(0);
}

.notification.success {
    border-left: 4px solid var(--sage);
    color: var(--sage);
}

.notification.error {
    border-left: 4px solid var(--terracotta);
    color: var(--terracotta);
}

.notification.warning {
    border-left: 4px solid var(--warm-gold);
    color: var(--warm-gold);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-color: var(--linen);
    animation: fadeIn 0.4s ease-out;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    height: 100%;
    background-color: var(--ink-navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-shadow: 4px 0 25px rgba(22, 35, 63, 0.08);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-toggle-btn:hover {
    color: var(--warm-gold);
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    color: var(--ink-navy);
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 8px;
}

.sidebar-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

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

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.menu-item:hover, .menu-item.active {
    color: var(--white);
    background-color: var(--slate);
}

.menu-item.active {
    background-color: var(--slate);
    border-left: 3px solid var(--warm-gold);
}

.menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
    border: 2px solid var(--warm-gold);
}

.user-info {
    overflow: hidden;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: capitalize;
}

.main-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink-navy);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.household-badge {
    background-color: var(--white);
    border: 1px solid rgba(22, 35, 63, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Daily Briefing Cards Layout */
.briefing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.briefing-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(22, 35, 63, 0.05);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.briefing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

/* Left side accent borders matching mockup design */
.briefing-card.terracotta-accent {
    border-left: 4px solid var(--terracotta);
}

.briefing-card.gold-accent {
    border-left: 4px solid var(--warm-gold);
}

.briefing-card.navy-accent {
    background-color: var(--ink-navy);
    color: var(--white);
}

.briefing-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ink-navy);
}

.briefing-card.navy-accent .briefing-title {
    color: var(--white);
}

.briefing-desc {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.4;
}

.briefing-card.navy-accent .briefing-desc {
    color: rgba(255, 255, 255, 0.8);
}

.briefing-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
}

.briefing-action {
    color: var(--warm-gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.briefing-action:hover {
    color: #dec159;
}

.score-badge {
    background-color: #ECE7DD;
    color: var(--sage);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Action Policy Gated Vault Section */
.vault-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(22, 35, 63, 0.05);
}

.section-title {
    color: var(--ink-navy);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vault-lockbox {
    border: 2px dashed rgba(22, 35, 63, 0.15);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.vault-lockbox i {
    font-size: 3rem;
    color: var(--slate);
    opacity: 0.5;
}

.vault-data-panel {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeIn 0.4s ease-out;
}

.vault-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: #FAF8F5;
    border-radius: 8px;
    border: 1px solid rgba(22, 35, 63, 0.05);
}

.vault-item-key {
    font-weight: 600;
    color: var(--slate);
}

.vault-item-val {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink-navy);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        padding: 1rem;
        box-sizing: border-box;
    }
    .sidebar-header {
        margin-bottom: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .sidebar-toggle-btn {
        display: flex;
    }
    .sidebar-menu {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
    }
    .sidebar-footer {
        display: none;
        width: 100%;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }
    .sidebar.menu-open .sidebar-menu {
        display: flex;
    }
    .sidebar.menu-open .sidebar-footer {
        display: block;
    }
    .main-content {
        padding: 1.5rem;
    }
}

/* Document Classifications Page & Modal Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin-top: 1rem;
}

.data-table th, .data-table td {
    padding: 1rem;
    vertical-align: middle;
}

.data-table thead tr {
    border-bottom: 2px solid rgba(22, 35, 63, 0.08);
    color: var(--slate);
    font-weight: 600;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(22, 35, 63, 0.04);
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background-color: rgba(22, 35, 63, 0.02);
}

/* Modal Popup Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(22, 35, 63, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.modal-content-card {
    background: var(--white);
    width: 100%;
    max-width: 650px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(22, 35, 63, 0.15);
    border: 1px solid rgba(22, 35, 63, 0.08);
    overflow: hidden;
    max-height: 90vh;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(22, 35, 63, 0.08);
    background: #FAF8F5;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid rgba(22, 35, 63, 0.08);
    padding: 1.25rem 1.5rem;
    background: #FAF8F5;
}

/* Index Field Builder Rows */
.index-builder-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr 0.8fr auto;
    gap: 0.75rem;
    align-items: center;
    background: #FAF8F5;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(22, 35, 63, 0.08);
    transition: var(--transition);
}

.index-builder-row:hover {
    border-color: rgba(22, 35, 63, 0.15);
    box-shadow: 0 4px 12px rgba(22, 35, 63, 0.03);
}

.index-builder-row select.form-input, 
.index-builder-row input.form-input {
    margin-bottom: 0 !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    height: 38px !important;
}

.index-builder-row input.form-input {
    padding-left: 0.75rem !important;
}

/* Custom checkbox wrapper for Required toggle */
.required-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--slate);
    user-select: none;
    transition: var(--transition);
}

.required-toggle-label:hover {
    color: var(--ink-navy);
}

.required-toggle-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--ink-navy);
}

/* Custom Tooltips for Index Reasonings */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: var(--ink-navy);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1500;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 0.75rem;
    line-height: 1.35;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-weight: 500;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--ink-navy) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* History & Sources Layout Styles */
.sources-search-container {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(22, 35, 63, 0.06);
    box-shadow: var(--card-shadow);
}

.source-filter-btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid rgba(22, 35, 63, 0.1);
    background: transparent;
    color: var(--slate);
    cursor: pointer;
    transition: var(--transition);
}

.source-filter-btn:hover {
    border-color: var(--ink-navy);
    color: var(--ink-navy);
}

.source-filter-btn.active {
    background: var(--ink-navy);
    color: var(--white);
    border-color: var(--ink-navy);
}

.sources-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .sources-split-layout {
        grid-template-columns: 1fr;
    }
}

.sources-results-pane, .sources-preview-pane {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(22, 35, 63, 0.06);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    min-height: 550px;
}

.pane-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-navy);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(22, 35, 63, 0.08);
    padding-bottom: 0.5rem;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* Custom scrollbars */
.sources-list::-webkit-scrollbar {
    width: 6px;
}
.sources-list::-webkit-scrollbar-track {
    background: rgba(22, 35, 63, 0.02);
    border-radius: 3px;
}
.sources-list::-webkit-scrollbar-thumb {
    background: rgba(22, 35, 63, 0.15);
    border-radius: 3px;
}

.source-item-card {
    background: #FAF8F5;
    border: 1px solid rgba(22, 35, 63, 0.08);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.source-item-card:hover {
    border-color: var(--ink-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 35, 63, 0.04);
}

.source-item-card.active {
    background: rgba(201, 162, 39, 0.06);
    border-color: var(--warm-gold);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.08);
}

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

.source-icon-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.source-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    width: 24px;
    height: 24px;
}

.source-title-text {
    font-weight: 600;
    color: var(--ink-navy);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.source-card-date {
    font-size: 0.75rem;
    color: var(--slate);
    font-weight: 500;
}

.source-card-meta {
    font-size: 0.8rem;
    color: var(--slate);
}

.source-card-ai-snippet {
    font-size: 0.8rem;
    color: var(--sage);
    font-weight: 500;
    background: rgba(92, 138, 106, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.preview-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--slate);
    padding: 4rem 1rem;
}

.preview-empty-state h3 {
    font-weight: 700;
    color: var(--ink-navy);
    margin-bottom: 0.5rem;
}

.preview-empty-state p {
    font-size: 0.9rem;
    max-width: 320px;
}

.preview-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(22, 35, 63, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.preview-title-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-navy);
    margin: 0;
}

.source-badge-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(22, 35, 63, 0.05);
    color: var(--ink-navy);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.hybrid-tabs-container {
    display: flex;
    background: rgba(22, 35, 63, 0.05);
    padding: 0.25rem;
    border-radius: 8px;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.hybrid-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.hybrid-tab.active {
    background: var(--white);
    color: var(--ink-navy);
    box-shadow: 0 2px 8px rgba(22, 35, 63, 0.06);
}

.ai-summary-box {
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.ai-summary-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

#preview-ai-bullets {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.88rem;
    color: var(--slate);
    line-height: 1.45;
}

.preview-section {
    margin-bottom: 1.5rem;
}

.section-sub {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.preview-grid {
    background: #FAF8F5;
    border: 1px solid rgba(22, 35, 63, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.content-render-frame {
    border-top: 1px solid rgba(22, 35, 63, 0.08);
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.highlighted-text {
    background-color: rgba(201, 162, 39, 0.2);
    border-bottom: 2px solid var(--warm-gold);
    padding: 0.05rem 0.1rem;
    font-weight: 500;
}

/* Connected Mailbox Account Card Styles */
.connected-account-card {
    background: #FAF8F5;
    border: 1px solid rgba(22, 35, 63, 0.1);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.connected-account-card:hover {
    border-color: var(--ink-navy);
}

.account-info-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-icon {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-details {
    display: flex;
    flex-direction: column;
}

.account-email {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-navy);
}

.account-type-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--slate);
    opacity: 0.8;
}

/* ==================== MODERN COLUMNS DASHBOARD STYLES ==================== */
.modern-dashboard-container {
    flex-grow: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #F3F1EC;
    color: var(--charcoal);
    overflow: hidden;
}

.modern-header {
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid rgba(22, 35, 63, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    flex-shrink: 0;
    z-index: 110;
}

.modern-brand {
    display: flex;
    align-items: center;
}

.modern-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-navy);
}

.modern-badge {
    background: rgba(201, 162, 39, 0.15);
    color: var(--warm-gold);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
}

/* Universal Command Bar Header */
.command-bar-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: #FAF9F6;
    border: 1px solid rgba(22, 35, 63, 0.12);
    border-radius: 24px;
    padding: 0.25rem 0.5rem 0.25rem 1.25rem;
    transition: var(--transition);
}

.command-bar-wrapper:focus-within {
    border-color: var(--warm-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
    background: var(--white);
}

.command-bar-icon {
    color: var(--warm-gold);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.command-bar-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--charcoal);
    outline: none;
    padding: 0.4rem 0;
}

.command-bar-btn {
    background: var(--ink-navy);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.command-bar-btn:hover {
    background: var(--warm-gold);
    transform: scale(1.05);
}

.modern-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Modern Layout Grid */
.modern-layout-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 35% 40% 25%;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    overflow: hidden;
    height: calc(100vh - 70px);
}

.modern-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* Custom Scrollbar for columns */
.modern-column::-webkit-scrollbar {
    width: 6px;
}
.modern-column::-webkit-scrollbar-track {
    background: transparent;
}
.modern-column::-webkit-scrollbar-thumb {
    background: rgba(22, 35, 63, 0.1);
    border-radius: 4px;
}
.modern-column::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 35, 63, 0.25);
}

/* Modern Cards */
.modern-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(22, 35, 63, 0.03);
    border: 1px solid rgba(22, 35, 63, 0.05);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.modern-card:hover {
    box-shadow: 0 8px 30px rgba(22, 35, 63, 0.06);
}

.card-header-simple {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(22, 35, 63, 0.06);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* Daily Briefing Card */
.briefing-card {
    background: linear-gradient(135deg, var(--ink-navy) 0%, #1c2e54 100%);
    color: var(--white);
}

.briefing-card .card-header-simple {
    color: var(--warm-gold);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.briefing-text {
    font-size: 1.02rem;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.95;
}

/* Action Pipeline Cards */
.pipeline-card {
    flex-grow: 1;
}

.pipeline-section {
    margin-bottom: 1.25rem;
}

.pipeline-section:last-child {
    margin-bottom: 0;
}

.pipeline-sec-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pipeline-sec-title.attention { color: var(--terracotta); }
.pipeline-sec-title.approaching { color: var(--warm-gold); }
.pipeline-sec-title.automated { color: var(--sage); }

.pipeline-sec-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pipeline-item {
    background: #FAF9F6;
    border: 1px solid rgba(22, 35, 63, 0.05);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.pipeline-item:hover {
    background: var(--white);
    border-color: rgba(22, 35, 63, 0.12);
    transform: translateY(-1px);
}

.pipeline-item-content {
    flex: 1;
}

.pipeline-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-navy);
}

.pipeline-item-desc {
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 0.15rem;
}

.pipeline-item-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.pipeline-item-badge.high { background: rgba(193, 98, 45, 0.15); color: var(--terracotta); }
.pipeline-item-badge.medium { background: rgba(201, 162, 39, 0.15); color: var(--warm-gold); }
.pipeline-item-badge.low { background: rgba(92, 138, 106, 0.15); color: var(--sage); }

.empty-pipeline-text {
    font-size: 0.82rem;
    color: var(--slate);
    font-style: italic;
    opacity: 0.8;
}

/* Calendar Card */
.calendar-card {
    min-height: 200px;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agenda-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(22, 35, 63, 0.08);
}

.agenda-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.agenda-date-badge {
    background: rgba(22, 35, 63, 0.05);
    color: var(--ink-navy);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agenda-day-num {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.agenda-month-name {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.agenda-item-info {
    flex: 1;
}

.agenda-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-navy);
}

.agenda-item-time {
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 0.15rem;
}

/* COLUMN B: AI Assistant Center Column */
.col-center {
    height: 100%;
}

.assistant-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.assistant-header {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--sage);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(92, 138, 106, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(92, 138, 106, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(92, 138, 106, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(92, 138, 106, 0);
    }
}

.clear-chat-btn {
    background: transparent;
    border: none;
    color: var(--slate);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.clear-chat-btn:hover {
    color: var(--terracotta);
}

/* Chat thread */
.chat-thread-container {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #FAF9F6;
}

.chat-bubble {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    animation: bubbleIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--ink-navy);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
    align-self: flex-start;
    background: var(--white);
    color: var(--charcoal);
    border: 1px solid rgba(22, 35, 63, 0.06);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(22, 35, 63, 0.02);
}

.chat-bubble.assistant p:first-child {
    margin-top: 0;
}
.chat-bubble.assistant p:last-child {
    margin-bottom: 0;
}
.chat-bubble.assistant ul, .chat-bubble.assistant ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}
.chat-bubble.assistant li {
    margin-bottom: 0.25rem;
}
.chat-bubble.assistant h1, .chat-bubble.assistant h2, .chat-bubble.assistant h3, .chat-bubble.assistant h4 {
    margin: 0.75rem 0 0.4rem 0;
    color: var(--ink-navy);
}

.chat-actions-container {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(22, 35, 63, 0.05);
    padding-top: 0.6rem;
}

.chat-action-btn {
    background: rgba(201, 162, 39, 0.1);
    color: var(--warm-gold);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-action-btn:hover {
    background: var(--warm-gold);
    color: var(--white);
    transform: translateY(-1px);
}

/* Tooltip text bubble */
.chat-action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translate(-50%, 4px) scale(0.95);
    background-color: var(--ink-navy);
    color: var(--white);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* Tooltip triangle */
.chat-action-btn::before {
    content: "";
    position: absolute;
    bottom: 112%;
    left: 50%;
    transform: translate(-50%, 4px);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: var(--ink-navy) transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1000;
}

/* Show on hover */
.chat-action-btn:hover::after,
.chat-action-btn:hover::before {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

/* General Tooltip Utility */
.has-tooltip {
    position: relative;
}

.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translate(-50%, 4px) scale(0.95);
    background-color: var(--ink-navy);
    color: var(--white);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.has-tooltip::before {
    content: "";
    position: absolute;
    bottom: 112%;
    left: 50%;
    transform: translate(-50%, 4px);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: var(--ink-navy) transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1000;
}

.has-tooltip:hover::after,
.has-tooltip:hover::before {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

/* Suggestion pills */
.suggestions-container {
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #FAF9F6;
    border-top: 1px solid rgba(22, 35, 63, 0.04);
}

.suggestion-pill {
    background: var(--white);
    border: 1px solid rgba(22, 35, 63, 0.08);
    color: var(--slate);
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.suggestion-pill:hover {
    border-color: var(--warm-gold);
    color: var(--warm-gold);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.08);
}

/* Chat Input Wrapper */
.chat-input-wrapper {
    padding: 1rem 1.5rem;
    background: var(--white);
    border-top: 1px solid rgba(22, 35, 63, 0.08);
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input-box {
    flex: 1;
    background: #FAF9F6;
    border: 1px solid rgba(22, 35, 63, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--charcoal);
    outline: none;
    resize: none;
    height: 44px;
    max-height: 120px;
    line-height: 1.4;
    transition: var(--transition);
}

.chat-input-box:focus {
    border-color: var(--warm-gold);
    background: var(--white);
}

.chat-send-btn {
    background: var(--ink-navy);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background: var(--warm-gold);
}

/* COLUMN C: Smart Rolodex */
.rolodex-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rolodex-item {
    background: #FAF9F6;
    border: 1px solid rgba(22, 35, 63, 0.05);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.rolodex-item:hover {
    background: var(--white);
    border-color: rgba(22, 35, 63, 0.12);
    box-shadow: 0 4px 15px rgba(22, 35, 63, 0.04);
    transform: translateY(-1px);
}

.rolodex-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(22, 35, 63, 0.05);
    color: var(--ink-navy);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rolodex-content {
    flex: 1;
    overflow: hidden;
}

.rolodex-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.rolodex-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-navy);
}

.rolodex-role {
    font-size: 0.62rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--slate);
    background: rgba(100, 116, 139, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(100, 116, 139, 0.18);
}

.rolodex-micro-context {
    font-size: 0.75rem;
    color: var(--slate);
    margin-top: 0.25rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    #tab-lists .vault-section {
        flex-direction: column !important;
        padding: 0.75rem !important;
        gap: 1rem !important;
        position: relative !important;
    }
    #tab-lists .vault-section > div:first-child {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important; /* Hidden offscreen by default */
        width: 280px !important;
        height: 100vh !important;
        background: var(--white) !important;
        z-index: 1000 !important;
        box-shadow: 5px 0 25px rgba(0,0,0,0.15) !important;
        padding: 1.5rem !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-right: 1px solid rgba(22, 35, 63, 0.08) !important;
        border-bottom: none !important;
        padding-bottom: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        flex-shrink: 0 !important;
    }
    #tab-lists .vault-section > div:first-child.show-sidebar {
        left: 0 !important;
    }
    #mobile-list-menu-btn {
        display: flex !important;
    }
    #mobile-list-close-btn {
        display: block !important;
    }
    #tab-lists .vault-section > div:last-child {
        padding-left: 0 !important;
    }
    .lists-drawer-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(22, 35, 63, 0.4);
        z-index: 999;
    }
    .lists-drawer-backdrop.active {
        display: block;
    }
    .list-item-row {
        padding: 1.1rem 1.25rem !important; /* Larger tap targets for thumb scrolling in the store */
    }
    .list-item-row button {
        padding: 0.6rem !important; /* Larger touch target for edit/delete buttons */
    }
}

/* ==================== DASHBOARD 2 MOBILE OPTIMIZATIONS ==================== */
.modern-mobile-tabs {
    display: none;
    background: var(--white);
    border-bottom: 1px solid rgba(22, 35, 63, 0.08);
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .modern-mobile-tabs {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }
    
    .mobile-tab-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.65rem 0.5rem;
        background: transparent;
        border: none;
        border-radius: 8px;
        color: var(--slate);
        font-family: inherit;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        transition: var(--transition);
        white-space: nowrap;
    }
    
    .mobile-tab-btn i {
        font-size: 0.85rem;
    }
    
    .mobile-tab-btn.active {
        background: rgba(201, 162, 39, 0.12);
        color: var(--warm-gold);
    }
    
    .modern-dashboard-container {
        height: auto;
        min-height: calc(100vh - 65px);
        overflow: hidden;
    }
    
    .modern-header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .modern-brand {
        justify-content: flex-start;
    }
    
    .command-bar-wrapper {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .modern-layout-grid {
        grid-template-columns: 1fr !important;
        height: calc(100vh - 225px) !important;
        padding: 1rem;
        gap: 0;
        overflow: hidden;
    }
    
    .modern-column {
        display: none;
        height: 100%;
        padding-right: 0;
    }
    
    .modern-column.mobile-active {
        display: flex;
    }
    
    .modern-card {
        margin-bottom: 1rem;
    }
}

.delete-card-btn:hover {
    color: var(--terracotta) !important;
}

/* ==================== SKELETON LOADERS ==================== */
@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid rgba(22, 35, 63, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 150px;
}

.skeleton-line {
    height: 12px;
    background: rgba(22, 35, 63, 0.06);
    border-radius: 4px;
}

.skeleton-line.title {
    width: 60%;
    height: 18px;
    margin-bottom: 0.5rem;
}

.skeleton-line.subtitle {
    width: 40%;
}

.skeleton-line.body {
    width: 90%;
}

.skeleton-line.body-short {
    width: 70%;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(22, 35, 63, 0.06);
}

/* ==================== CASES & DISPUTES SYSTEM ==================== */
.case-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}
.case-status-badge.open, .case-status-badge.Open {
    background-color: rgba(201, 162, 39, 0.15);
    color: var(--warm-gold);
}
.case-status-badge.pending-response, .case-status-badge.Pending\ Response, .case-status-badge.pending {
    background-color: rgba(193, 98, 45, 0.15);
    color: var(--terracotta);
}
.case-status-badge.resolved, .case-status-badge.Resolved {
    background-color: rgba(92, 138, 106, 0.15);
    color: var(--sage);
}

.case-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(22, 35, 63, 0.08);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--card-shadow);
}
.case-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    border-color: var(--ink-navy);
}
.case-card.active {
    border-color: var(--warm-gold);
    box-shadow: 0 0 0 2px var(--warm-gold);
}

.timeline-group {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(22, 35, 63, 0.06);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}
.timeline-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-navy);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(22, 35, 63, 0.04);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.timeline-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(22, 35, 63, 0.04);
    cursor: pointer;
    transition: background-color 0.2s;
}
.timeline-item-row:hover {
    background-color: rgba(22, 35, 63, 0.02);
}
.timeline-item-row:last-child {
    border-bottom: none;
}

/* Universal Slide-Over Drawer Transitions */
.universal-drawer.show {
    pointer-events: auto !important;
}
.universal-drawer.show .drawer-overlay {
    opacity: 1 !important;
}
.universal-drawer.show .drawer-content {
    transform: translateX(0) !important;
}
.drawer-close-btn {
    border: none;
    background: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--slate);
    transition: var(--transition);
}
.drawer-close-btn:hover {
    color: var(--terracotta);
}

/* Lens Views layout helpers */
.lens-switcher-container .btn {
    background: transparent;
    color: var(--slate);
    border: none;
    transition: var(--transition);
}
.lens-switcher-container .btn.active {
    background: var(--ink-navy) !important;
    color: var(--white) !important;
}
.lens-content-pane {
    animation: fadeIn 0.3s ease-out;
}

.case-assets-column, .case-log-column {
    min-width: 0;
}






