/* ==============================================================================
   LEAD INTELLIGENCE PLATFORM (LIP) — ENTERPRISE PRESENTATION DESIGN SYSTEM
   Subdomain: leads.dizibizz.com
   Presentation-Layer Engine: Dual Theme (Dark / Light), Bento Grid Pulse,
   All-Device Ergonomics, Mobile Off-Canvas Drawer, WCAG Accessibility.
   ============================================================================== */

/* ------------------------------------------------------------------------------
   1. ROOT DESIGN TOKENS (LIGHT & DARK DUAL THEME)
   ------------------------------------------------------------------------------ */
:root,
[data-theme="dark"] {
    --lip-theme: "dark";
    --lip-bg-base: #070A13;
    --lip-bg-surface: #0E1626;
    --lip-bg-surface-elevated: #152238;
    --lip-bg-surface-subtle: rgba(21, 34, 56, 0.6);
    --lip-bg-sidebar: #090E1A;
    --lip-bg-topbar: rgba(9, 14, 26, 0.82);

    --lip-border-subtle: rgba(255, 255, 255, 0.07);
    --lip-border-medium: rgba(255, 255, 255, 0.12);
    --lip-border-strong: rgba(255, 255, 255, 0.20);
    --lip-border-focus: #6366F1;

    --lip-text-primary: #F8FAFC;
    --lip-text-secondary: #94A3B8;
    --lip-text-muted: #64748B;
    --lip-text-inverted: #070A13;

    --lip-primary: #6366F1;
    --lip-primary-hover: #4F46E5;
    --lip-primary-subtle: rgba(99, 102, 241, 0.14);
    --lip-accent: #8B5CF6;
    --lip-accent-glow: rgba(139, 92, 246, 0.25);

    --lip-temp-hot: #EF4444;
    --lip-temp-hot-bg: rgba(239, 68, 68, 0.14);
    --lip-temp-hot-border: rgba(239, 68, 68, 0.35);

    --lip-temp-warm: #F97316;
    --lip-temp-warm-bg: rgba(249, 115, 22, 0.14);
    --lip-temp-warm-border: rgba(249, 115, 22, 0.35);

    --lip-temp-watch: #F59E0B;
    --lip-temp-watch-bg: rgba(245, 158, 11, 0.14);
    --lip-temp-watch-border: rgba(245, 158, 11, 0.35);

    --lip-temp-cold: #3B82F6;
    --lip-temp-cold-bg: rgba(59, 130, 246, 0.14);
    --lip-temp-cold-border: rgba(59, 130, 246, 0.35);

    --lip-success: #10B981;
    --lip-success-bg: rgba(16, 185, 129, 0.14);
    --lip-success-border: rgba(16, 185, 129, 0.35);

    --lip-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
    --lip-shadow-md: 0 4px 14px 0 rgba(0, 0, 0, 0.45);
    --lip-shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.65);
    --lip-shadow-glow: 0 0 25px rgba(99, 102, 241, 0.2);

    --lip-code-bg: rgba(30, 41, 59, 0.65);
    --lip-code-text: #C7D2FE;
}

[data-theme="light"] {
    --lip-theme: "light";
    --lip-bg-base: #F8FAFC;
    --lip-bg-surface: #FFFFFF;
    --lip-bg-surface-elevated: #F1F5F9;
    --lip-bg-surface-subtle: rgba(241, 245, 249, 0.8);
    --lip-bg-sidebar: #FFFFFF;
    --lip-bg-topbar: rgba(255, 255, 255, 0.85);

    --lip-border-subtle: #E2E8F0;
    --lip-border-medium: #CBD5E1;
    --lip-border-strong: #94A3B8;
    --lip-border-focus: #4F46E5;

    --lip-text-primary: #0F172A;
    --lip-text-secondary: #475569;
    --lip-text-muted: #64748B;
    --lip-text-inverted: #FFFFFF;

    --lip-primary: #4F46E5;
    --lip-primary-hover: #4338CA;
    --lip-primary-subtle: rgba(79, 70, 229, 0.08);
    --lip-accent: #7C3AED;
    --lip-accent-glow: rgba(124, 58, 237, 0.15);

    --lip-temp-hot: #DC2626;
    --lip-temp-hot-bg: #FEE2E2;
    --lip-temp-hot-border: #FCA5A5;

    --lip-temp-warm: #EA580C;
    --lip-temp-warm-bg: #FFEDD5;
    --lip-temp-warm-border: #FDBA74;

    --lip-temp-watch: #D97706;
    --lip-temp-watch-bg: #FEF3C7;
    --lip-temp-watch-border: #FCD34D;

    --lip-temp-cold: #2563EB;
    --lip-temp-cold-bg: #DBEAFE;
    --lip-temp-cold-border: #93C5FD;

    --lip-success: #059669;
    --lip-success-bg: #D1FAE5;
    --lip-success-border: #6EE7B7;

    --lip-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --lip-shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.07);
    --lip-shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.10);
    --lip-shadow-glow: 0 0 20px rgba(79, 70, 229, 0.12);

    --lip-code-bg: #F1F5F9;
    --lip-code-text: #3730A3;
}

/* ------------------------------------------------------------------------------
   2. GLOBAL TYPOGRAPHY & RESET
   ------------------------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--lip-bg-base);
    color: var(--lip-text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.925rem;
    line-height: 1.55;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .lip-heading {
    font-family: 'Outfit', sans-serif;
    color: var(--lip-text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin-top: 0;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1.0rem; }

a {
    color: var(--lip-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--lip-primary-hover);
}

:focus-visible {
    outline: 2px solid var(--lip-border-focus);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------------------
   3. RESPONSIVE APP LAYOUT & NAVIGATION
   ------------------------------------------------------------------------------ */
.lip-app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    background-color: var(--lip-bg-base);
}

/* Desktop Sidebar */
.lip-sidebar {
    width: 260px;
    background-color: var(--lip-bg-sidebar);
    border-right: 1px solid var(--lip-border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: width 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.lip-sidebar-brand {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--lip-border-subtle);
}

.lip-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lip-primary) 0%, var(--lip-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.lip-brand-logo-dark,
.lip-brand-logo-light {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

[data-theme="dark"] .lip-brand-logo-light { display: none !important; }
[data-theme="dark"] .lip-brand-logo-dark { display: inline-block !important; }
[data-theme="light"] .lip-brand-logo-dark { display: none !important; }
[data-theme="light"] .lip-brand-logo-light { display: inline-block !important; }

.lip-nav {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    overflow-y: auto;
}

.lip-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--lip-text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.lip-nav-item:hover {
    color: var(--lip-text-primary);
    background-color: var(--lip-bg-surface-elevated);
}

.lip-nav-item.active {
    color: var(--lip-text-primary);
    background-color: var(--lip-primary-subtle);
    border-color: rgba(99, 102, 241, 0.25);
    font-weight: 600;
}

.lip-nav-item svg {
    flex-shrink: 0;
    stroke-width: 2;
}

.lip-nav-item.active svg {
    color: var(--lip-primary);
}

/* Main Content Area */
.lip-main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

/* Top App Bar */
.lip-topbar {
    height: 64px;
    background-color: var(--lip-bg-topbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lip-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lip-main-content {
    flex-grow: 1;
    padding: 28px 32px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* ------------------------------------------------------------------------------
   4. BENTO GRID SYSTEM (12-COLUMN PULSE ARCHITECTURE)
   ------------------------------------------------------------------------------ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.bento-col-12 { grid-column: span 12; }
.bento-col-9  { grid-column: span 9; }
.bento-col-8  { grid-column: span 8; }
.bento-col-7  { grid-column: span 7; }
.bento-col-6  { grid-column: span 6; }
.bento-col-5  { grid-column: span 5; }
.bento-col-4  { grid-column: span 4; }
.bento-col-3  { grid-column: span 3; }

/* Bento Card Surface */
.bento-card {
    background-color: var(--lip-bg-surface);
    border: 1px solid var(--lip-border-subtle);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: var(--lip-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    border-color: var(--lip-border-medium);
    box-shadow: var(--lip-shadow-md);
}

/* Bento Hero Spotlight */
.bento-hero {
    background: radial-gradient(circle at top right, var(--lip-primary-subtle) 0%, var(--lip-bg-surface) 65%);
    border-color: var(--lip-border-medium);
}

/* Bento Card Header */
.bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.bento-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lip-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-subtitle {
    font-size: 0.8rem;
    color: var(--lip-text-muted);
    margin: 2px 0 0 0;
}

/* ------------------------------------------------------------------------------
   5. LIVE BEACON & RADAR PULSE INDICATORS
   ------------------------------------------------------------------------------ */
.beacon-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--lip-success);
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.beacon-dot.pulse::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid var(--lip-success);
    animation: beaconPulse 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.beacon-dot.beacon-hot {
    background-color: var(--lip-temp-hot);
}
.beacon-dot.beacon-hot.pulse::after {
    border-color: var(--lip-temp-hot);
}

@keyframes beaconPulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}

/* High-Level System Status Pill */
.system-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    background-color: var(--lip-bg-surface-elevated);
    border: 1px solid var(--lip-border-subtle);
    color: var(--lip-text-secondary);
}

/* ------------------------------------------------------------------------------
   6. METRICS, TEMPERATURES & QUALIFICATION GAUGES
   ------------------------------------------------------------------------------ */
.metric-tile {
    padding: 16px;
    border-radius: 10px;
    background-color: var(--lip-bg-surface-elevated);
    border: 1px solid var(--lip-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lip-text-muted);
    font-weight: 600;
}

.metric-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lip-text-primary);
    line-height: 1.1;
}

/* 4-Gate Metric Pill */
.gate-pill {
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    border-radius: 8px;
    background-color: var(--lip-bg-surface-elevated);
    border: 1px solid var(--lip-border-subtle);
    min-width: 105px;
}

.gate-pill-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: var(--lip-text-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.gate-pill-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lip-text-primary);
}

/* Temperature Badges */
.lip-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lip-badge-hot {
    background-color: var(--lip-temp-hot-bg);
    color: var(--lip-temp-hot);
    border: 1px solid var(--lip-temp-hot-border);
}

.lip-badge-warm {
    background-color: var(--lip-temp-warm-bg);
    color: var(--lip-temp-warm);
    border: 1px solid var(--lip-temp-warm-border);
}

.lip-badge-watch {
    background-color: var(--lip-temp-watch-bg);
    color: var(--lip-temp-watch);
    border: 1px solid var(--lip-temp-watch-border);
}

.lip-badge-cold {
    background-color: var(--lip-temp-cold-bg);
    color: var(--lip-temp-cold);
    border: 1px solid var(--lip-temp-cold-border);
}

.lip-badge-qualified {
    background-color: var(--lip-success-bg);
    color: var(--lip-success);
    border: 1px solid var(--lip-success-border);
}

/* Freshness Pill */
.freshness-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--lip-text-muted);
    background-color: var(--lip-bg-surface-elevated);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--lip-border-subtle);
}

/* Reason Code Chips */
.reason-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-color: var(--lip-bg-surface-elevated);
    border: 1px solid var(--lip-border-subtle);
    color: var(--lip-text-secondary);
}

.reason-chip.primary {
    background-color: var(--lip-primary-subtle);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--lip-primary);
}

/* ------------------------------------------------------------------------------
   7. FORM CONTROLS & BUTTONS
   ------------------------------------------------------------------------------ */
.lip-input, .form-control.lip-input, select.lip-input {
    width: 100%;
    background-color: var(--lip-bg-surface-elevated);
    border: 1px solid var(--lip-border-medium);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--lip-text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lip-input:focus {
    border-color: var(--lip-border-focus);
    box-shadow: 0 0 0 3px var(--lip-primary-subtle);
    outline: none;
    color: var(--lip-text-primary);
    background-color: var(--lip-bg-surface-elevated);
}

.lip-input::placeholder {
    color: var(--lip-text-muted);
}

.lip-btn, .btn.lip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--lip-primary) 0%, var(--lip-accent) 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.lip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    opacity: 0.95;
    color: #FFFFFF !important;
}

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

.lip-btn-secondary {
    background: var(--lip-bg-surface-elevated) !important;
    color: var(--lip-text-primary) !important;
    border: 1px solid var(--lip-border-medium) !important;
    box-shadow: none !important;
}

.lip-btn-secondary:hover {
    background: var(--lip-bg-surface) !important;
    border-color: var(--lip-border-strong) !important;
    color: var(--lip-text-primary) !important;
}

/* ------------------------------------------------------------------------------
   8. MODERN HIGH-DENSITY TABLES & LIST CARDS
   ------------------------------------------------------------------------------ */
.lip-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
}

.lip-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
}

.lip-table th {
    background-color: var(--lip-bg-surface-elevated);
    color: var(--lip-text-muted);
    font-weight: 600;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lip-border-subtle);
    text-align: left;
}

.lip-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--lip-border-subtle);
    color: var(--lip-text-secondary);
    vertical-align: middle;
}

.lip-table tbody tr {
    transition: background-color 0.15s ease;
}

.lip-table tbody tr:hover {
    background-color: var(--lip-bg-surface-subtle);
}

.lip-table tbody tr:last-child td {
    border-bottom: none;
}

/* ------------------------------------------------------------------------------
   9. THEME TOGGLE SWITCH & COMMAND PALETTE
   ------------------------------------------------------------------------------ */
.theme-toggle-btn {
    background: var(--lip-bg-surface-elevated);
    border: 1px solid var(--lip-border-subtle);
    color: var(--lip-text-secondary);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-toggle-btn:hover {
    color: var(--lip-text-primary);
    border-color: var(--lip-border-medium);
}

/* Command Palette Trigger in Topbar */
.cmd-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background-color: var(--lip-bg-surface-elevated);
    border: 1px solid var(--lip-border-subtle);
    color: var(--lip-text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cmd-trigger-btn:hover {
    border-color: var(--lip-border-medium);
    color: var(--lip-text-primary);
}

.cmd-kbd {
    background-color: var(--lip-code-bg);
    color: var(--lip-code-text);
    border: 1px solid var(--lip-border-subtle);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 600;
}

/* Command Palette Modal */
.cmd-palette-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}

.cmd-palette-backdrop.open {
    display: flex;
}

.cmd-palette-modal {
    width: 100%;
    max-width: 580px;
    background: var(--lip-bg-surface);
    border: 1px solid var(--lip-border-medium);
    border-radius: 14px;
    box-shadow: var(--lip-shadow-lg);
    overflow: hidden;
    animation: cmdPop 0.15s ease-out;
}

@keyframes cmdPop {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cmd-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--lip-border-subtle);
    padding: 16px 20px;
    font-size: 1.05rem;
    color: var(--lip-text-primary);
    outline: none;
}

.cmd-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    margin: 0;
    list-style: none;
}

.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--lip-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.cmd-item:hover, .cmd-item.selected {
    background-color: var(--lip-primary-subtle);
    color: var(--lip-text-primary);
}

/* ------------------------------------------------------------------------------
   10. MOBILE OFFCANVAS DRAWER & RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------------------------ */
.mobile-nav-toggle {
    display: none;
    background: var(--lip-bg-surface-elevated);
    border: 1px solid var(--lip-border-subtle);
    color: var(--lip-text-primary);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lip-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    display: none;
}

.lip-drawer-backdrop.open {
    display: block;
}

/* Tablet Breakpoint (1024px) */
@media (max-width: 1024px) {
    .lip-main-content {
        padding: 20px 20px;
    }
    .bento-col-9 { grid-column: span 12; }
    .bento-col-8 { grid-column: span 12; }
    .bento-col-7 { grid-column: span 12; }
    .bento-col-6 { grid-column: span 12; }
    .bento-col-5 { grid-column: span 12; }
    .bento-col-4 { grid-column: span 6; }
    .bento-col-3 { grid-column: span 6; }
}

/* Mobile Breakpoint (768px) */
@media (max-width: 768px) {
    .lip-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        box-shadow: var(--lip-shadow-lg);
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .lip-sidebar.open {
        left: 0;
    }
    .mobile-nav-toggle {
        display: inline-flex;
    }
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bento-col-12, .bento-col-8, .bento-col-6, .bento-col-4, .bento-col-3 {
        grid-column: span 1;
    }
    .lip-topbar {
        padding: 0 16px;
    }
    .lip-main-content {
        padding: 16px 14px;
    }
    .cmd-trigger-btn span {
        display: none;
    }
}

/* Narrow Mobile Breakpoint (375px) */
@media (max-width: 375px) {
    .lip-main-content {
        padding: 12px 10px;
    }
    .bento-card {
        padding: 16px 14px;
    }
}

/* ------------------------------------------------------------------------------
   11. REDUCED MOTION (WCAG ACCESSIBILITY GATE M)
   ------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .beacon-dot.pulse::after {
        animation: none !important;
    }
}
