@font-face {
    font-family: 'Switzer';
    src: url('https://cdn.fontshare.com/wf/BLNB4FAQFNK56DWWNF7PMGTCOTZHOEII/ST3WKSSDMBK2MIQQO3MAVYWLF4FTOLFV/6IN5WOLRCYP4G4MOCOHOMXNON6Q7MDAR.woff2') format('woff2'),
         url('https://cdn.fontshare.com/wf/BLNB4FAQFNK56DWWNF7PMGTCOTZHOEII/ST3WKSSDMBK2MIQQO3MAVYWLF4FTOLFV/6IN5WOLRCYP4G4MOCOHOMXNON6Q7MDAR.woff') format('woff'),
         url('https://cdn.fontshare.com/wf/BLNB4FAQFNK56DWWNF7PMGTCOTZHOEII/ST3WKSSDMBK2MIQQO3MAVYWLF4FTOLFV/6IN5WOLRCYP4G4MOCOHOMXNON6Q7MDAR.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Switzer';
    src: url('https://cdn.fontshare.com/wf/OYB4CXKJQXKTNSLJMTDQOIVUL2V5EL7S/WYO2P7DQVV5RNXGMCUO2HL4RJP4VFUAS/6XPIMU23OJVRY676OG5YVJMWEHWICATX.woff2') format('woff2'),
         url('https://cdn.fontshare.com/wf/OYB4CXKJQXKTNSLJMTDQOIVUL2V5EL7S/WYO2P7DQVV5RNXGMCUO2HL4RJP4VFUAS/6XPIMU23OJVRY676OG5YVJMWEHWICATX.woff') format('woff'),
         url('https://cdn.fontshare.com/wf/OYB4CXKJQXKTNSLJMTDQOIVUL2V5EL7S/WYO2P7DQVV5RNXGMCUO2HL4RJP4VFUAS/6XPIMU23OJVRY676OG5YVJMWEHWICATX.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Switzer';
    src: url('https://cdn.fontshare.com/wf/5SZVFDB7V52TI6ULVC6J3WQZQCIZVDV5/ODYPSTCUDMKSTYIPTV4CLQ7URIK7XYBJ/YS3VPNVO4B3TOJMEXDGFZQ4TLZGGSRZC.woff2') format('woff2'),
         url('https://cdn.fontshare.com/wf/5SZVFDB7V52TI6ULVC6J3WQZQCIZVDV5/ODYPSTCUDMKSTYIPTV4CLQ7URIK7XYBJ/YS3VPNVO4B3TOJMEXDGFZQ4TLZGGSRZC.woff') format('woff'),
         url('https://cdn.fontshare.com/wf/5SZVFDB7V52TI6ULVC6J3WQZQCIZVDV5/ODYPSTCUDMKSTYIPTV4CLQ7URIK7XYBJ/YS3VPNVO4B3TOJMEXDGFZQ4TLZGGSRZC.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {

            --ink: #0E1B33; --ink-soft: #5C6B8A; --ink-faint: #93A2C2;
            --primary: #2451C4; --primary-dark: #15306B; --primary-soft: #EAF0FC;
            --surface: #F3F6FC; --card: #FFFFFF; --border: #DCE6F5;
            --success: #15A567; --success-soft: #E5F7EE;
            --danger: #E0483B; --danger-soft: #FCEAE8; 
            --accent: #F5A623; --accent-soft: #FEF3C7;
            --radius-md: 14px; --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --shadow-sm: 0 4px 12px rgba(20, 40, 90, 0.04);
            --shadow-md: 0 8px 24px rgba(20, 40, 90, 0.08);
            --glass-bg: rgba(255, 255, 255, 0.75); --glass-blur: blur(24px) saturate(180%); --glass-border: 1px solid rgba(255, 255, 255, 0.6);
        
            --drawer-bg: rgba(255, 255, 255, 0.98);
            --bottom-nav-bg: rgba(255, 255, 255, 0.45);
            --bottom-nav-border: 1px solid rgba(255, 255, 255, 0.55);
            --icon-btn-bg: rgba(255, 255, 255, 0.5);
            --drawer-item-border: 1px solid rgba(14, 27, 51, 0.05);
        }

        :root.dark-theme {
            --ink: #FFFFFF; --ink-soft: #A1A1AA; --ink-faint: #71717A;
            --surface: #000000; --card: #0D0D11; --border: rgba(255, 255, 255, 0.12);
            --primary-soft: rgba(36, 81, 196, 0.2);
            --danger-soft: rgba(224, 72, 59, 0.15);
            --success-soft: rgba(21, 165, 103, 0.15);
            --accent-soft: rgba(245, 166, 35, 0.15);
            --glass-bg: rgba(0, 0, 0, 0.85); --glass-border: 1px solid rgba(255, 255, 255, 0.12);
            --drawer-bg: rgba(6, 6, 8, 0.96);
            --bottom-nav-bg: rgba(0, 0, 0, 0.65);
            --bottom-nav-border: 1px solid rgba(255, 255, 255, 0.15);
            --icon-btn-bg: rgba(255, 255, 255, 0.08);
            --drawer-item-border: 1px solid rgba(243, 246, 252, 0.05);
        }
        body { font-family: var(--font-body); color: var(--ink); background: var(--surface); padding-bottom: 0; min-height: 100vh; min-height: 100dvh; }
        
        /* Premium Header Support for Desktop Nav */
        .dash-header {
            background: #FFFFFF !important;
            padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border) !important;
            box-shadow: var(--shadow-sm); z-index: 1200; flex-shrink: 0; height: 60px; position: relative;
        }
        .brand { display: flex; align-items: center; gap: 10px; }
        .brand-mark { display: flex; align-items: center; justify-content: center; border-radius: 10px; box-shadow: 0 4px 10px rgba(36, 81, 196, 0.35); }
        .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
        .brand-text .title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
        .desktop-nav { display: flex; gap: 6px; }
        .desktop-nav .nav-btn { text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 10px 16px; border-radius: 10px; transition: 0.2s; cursor: pointer; display: flex; align-items: center; gap: 6px; }
        .desktop-nav .nav-btn:hover { background: var(--primary-soft); color: var(--theme-accent-text); }
        .desktop-nav .nav-btn.active { background: #FFFFFF; color: var(--theme-accent-text); box-shadow: 0 4px 12px rgba(36,81,196,0.08); border: 1px solid rgba(36, 81, 196, 0.1); }
        .desktop-nav svg, .nav-item svg { width: 18px; height: 18px; }

        .sub-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 16px 10px; max-width: 600px; margin: 0 auto; }
        .sub-header h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
        .read-all-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 700;
            color: var(--theme-accent-text);
            background: var(--primary-soft);
            border: 1px solid rgba(36, 81, 196, 0.15);
            padding: 6px 12px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s ease;
            outline: none;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }
        .read-all-btn:hover {
            background: var(--primary);
            color: #FFFFFF;
            border-color: var(--primary);
            box-shadow: 0 4px 10px rgba(36, 81, 196, 0.18);
            transform: translateY(-1px);
        }
        .read-all-btn:active {
            transform: translateY(0);
        }

        .filters { display: flex; gap: 8px; padding: 10px 16px 20px; overflow-x: auto; max-width: 600px; margin: 0 auto; }
        .chip {
    flex-shrink: 0 !important; padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--border); color: var(--ink-soft); cursor: pointer; white-space: nowrap; transition: all 0.2s; }
        .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

        .container { padding: 0 16px 30px; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
        
        .alert-card-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-md);
            transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                        margin 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.25s ease;
            user-select: none;
            -webkit-user-select: none;
        }
        .alert-card-wrapper.dismissing {
            max-height: 0 !important;
            margin-bottom: 0 !important;
            padding: 0 !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }
        .swipe-delete-background {
            position: absolute;
            inset: 0;
            background: #EF4444;
            color: #FFFFFF;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 0 20px;
            border-radius: var(--radius-md);
            font-size: 13px;
            font-weight: 750;
            gap: 8px;
            z-index: 1;
            pointer-events: none;
        }
        .swipe-delete-background.swipe-left { justify-content: flex-end; }
        .swipe-delete-background.swipe-right { justify-content: flex-start; }

        .alert-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; display: flex; align-items: flex-start; gap: 14px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; position: relative; z-index: 2; margin-bottom: 0; }
        .alert-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
        .alert-card.swipeable-card {
            transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.2s, opacity 0.2s;
            will-change: transform;
            touch-action: pan-y;
            cursor: grab;
        }
        .alert-card.swipeable-card:active { cursor: grabbing; }
        .alert-card.swipeable-card.swiping { transition: none !important; }
        
        .alert-icon-wrapper { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
        .type-critical .alert-icon-wrapper { background: var(--danger-soft); color: var(--status-danger-text); }
        .type-warning .alert-icon-wrapper { background: var(--accent-soft); color: var(--accent); }
        .type-weather .alert-icon-wrapper { background: rgba(14, 165, 233, 0.14); color: #0284C7; }
        .type-road .alert-icon-wrapper { background: rgba(245, 158, 11, 0.16); color: #B45309; }
        .type-info .alert-icon-wrapper { background: var(--primary-soft); color: var(--theme-accent-text); }

        .alert-content { flex: 1; }
        .alert-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
        .alert-title { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; flex: 1; }
        .alert-sub { font-size: 13px; color: var(--ink-soft); line-height: 1.45; word-break: break-word; }
        .alert-time { font-size: 11px; color: var(--ink-faint); font-weight: 600; white-space: nowrap; margin-top: 2px; }
        .notification-dismiss-btn {
            background: none; border: none; padding: 4px; color: var(--ink-faint);
            display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
            border-radius: 6px; line-height: 1; transition: color 0.15s, background 0.15s; flex-shrink: 0;
        }
        .notification-dismiss-btn:hover {
            color: var(--status-danger-text); background: rgba(239, 68, 68, 0.12);
        }

        /* Liquid Bottom Nav */
        .bottom-nav {
            display: flex; position: fixed; bottom: env(safe-area-inset-bottom, 12px); left: 12px; right: 12px;
            height: 64px; border-radius: 24px; background: var(--bottom-nav-bg); 
            backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%);
            border: var(--bottom-nav-border);
            box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,0,0,0.05), 0 12px 36px rgba(20,40,90,0.20);
            z-index: 1200; overflow: hidden;
        }
        .bottom-nav::before { content: ''; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 45%); pointer-events: none; z-index: 0; }
        .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 11px; font-weight: 600; cursor: pointer; gap: 4px; position: relative; z-index: 1; transition: color 0.15s; }
        .nav-item.active { color: var(--theme-accent-text); font-weight: 700; }
        .nav-item.active::before { content: ''; position: absolute; inset: 6px 16px; border-radius: 16px; background: rgba(36,81,196,0.14); z-index: -1; }
        .nav-item svg { width: 22px; height: 22px; }

        .icon-btn { background: var(--icon-btn-bg); color: var(--ink); width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--border); transition: all 0.2s ease; position: relative; }
        .icon-btn:hover { background: var(--border); }
        .menu-btn-top { display: none !important; }
        
        .drawer-backdrop {
            position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
            opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 9998;
        }
        .drawer-backdrop.active { opacity: 1; pointer-events: auto; }
        .floating-header-menu {
            position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
            background: var(--drawer-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-left: 1px solid var(--border); box-shadow: -4px 0 24px rgba(0,0,0,0.15); 
            padding: 24px 16px 80px; z-index: 9999; display: flex; flex-direction: column; gap: 4px;
            transition: right 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); overflow-y: auto;
            -ms-overflow-style: none; scrollbar-width: none;
        }
        .floating-header-menu::-webkit-scrollbar { display: none; }
        .floating-header-menu.active { right: 0 !important; }
        
        .floating-header-menu .menu-item {
            display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 12px;
            cursor: pointer; transition: all 0.2s; text-decoration: none;
            border-bottom: var(--drawer-item-border);
            margin-bottom: 4px;
        }
        .floating-header-menu .menu-item:hover {
            background: var(--surface);
        }
        .floating-header-menu .menu-icon {
            width: 36px; height: 36px; background: var(--surface); border-radius: 10px;
            display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
            transition: 0.2s; flex-shrink: 0;
        }
        .floating-header-menu .menu-item svg {
            transition: color 0.2s;
        }
        .floating-header-menu .menu-item:hover .menu-icon {
            background: var(--primary-soft); color: var(--theme-accent-text);
        }
        .floating-header-menu .menu-text {
            flex: 1; font-size: 14px; font-weight: 600; color: var(--ink);
        }
        .floating-header-menu .menu-item.active {
            background: var(--primary-soft);
            border-bottom-color: transparent;
        }
        .floating-header-menu .menu-item.active .menu-icon {
            background: var(--primary); color: white;
        }
        .floating-header-menu .menu-item.active .menu-text {
            color: var(--theme-accent-text); font-weight: 700;
        }
        
        .floating-header-menu .sub-item {
            padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
            background: transparent; border-radius: 8px;
        }
        .floating-header-menu .sub-item:hover {
            background: rgba(14, 27, 51, 0.04); color: var(--ink);
        }
        .floating-header-menu .sub-item.danger-item {
            color: var(--status-danger-text);
        }
        .floating-header-menu .sub-item.danger-item:hover {
            background: var(--danger-soft);
        }
        
        @media (max-width: 768px) {
            .desktop-nav { display: none; }
            .menu-btn-top { display: flex !important; }
        }

        .alert-card.is-read {
            opacity: 0.72;
        }
        .alert-card.is-read .alert-title {
            color: var(--ink-soft);
        }

        @media (max-width: 576px) {
            .alert-card {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                padding: 14px;
            }
            .alert-time {
                align-self: flex-end;
                margin-top: 2px;
                font-size: 10px;
            }
            .alert-icon-wrapper {
                width: 30px;
                height: 30px;
            }
            .filters {
                padding: 10px 8px 16px;
            }
        }

        @media (min-width: 769px) {
            .bottom-nav { display: none !important; }
            .menu-btn-top { display: none !important; }
            .floating-header-menu { display: none !important; }
        }
    
        /* Premium Dark mode bottom nav overrides */
        .dark-theme .bottom-nav .nav-item {
            color: rgba(255, 255, 255, 0.45) !important;
        }
        .dark-theme .bottom-nav .nav-item.active {
            color: #FFFFFF !important;
        }
        .dark-theme .bottom-nav .nav-item.active::before {
            background: rgba(255, 255, 255, 0.14) !important;
        }

    
        @media (max-width: 768px) {
            /* desktop-theme-btn removed */
        }

    
        /* Premium active/hover navigation button overrides for dark theme */
        .dark-theme .desktop-nav .nav-btn:hover {
            background: var(--primary-soft) !important;
            color: var(--theme-accent-text) !important;
        }
        .dark-theme .desktop-nav .nav-btn.active {
            background: var(--primary) !important;
            color: #FFFFFF !important;
            box-shadow: 0 4px 14px rgba(36, 81, 196, 0.4) !important;
            border: none !important;
        }

    
        /* Dark theme header glassmorphism override */
        .dark-theme .dash-header {
            background: var(--glass-bg) !important;
            border-bottom: var(--glass-border) !important;
            backdrop-filter: var(--glass-blur) !important;
            -webkit-backdrop-filter: var(--glass-blur) !important;
        }

    
        /* Prevent transitions on page load */
        .preload * {
            -webkit-transition: none !important;
            -moz-transition: none !important;
            -ms-transition: none !important;
            -o-transition: none !important;
            transition: none !important;
        }

        @media (max-width: 480px) {
            body { padding-bottom: 0; overflow-x: hidden; }
            .dash-header { padding: 10px 12px; }
            .brand { min-width: 0; gap: 8px; }
            .brand-text { min-width: 0; }
            .brand-text .title { max-width: 176px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
            .header-actions { gap: 8px; }
            .sub-header { padding: 14px 12px 6px; gap: 10px; align-items: flex-start; }
            .sub-header h2 { font-size: 16px; }
            .read-all-btn { padding: 5px 9px; font-size: 9.5px; white-space: nowrap; }
            .filters { padding: 6px 12px 10px; max-width: 100%; }
            .filter-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important; font-size: 11px !important; padding: 5px 10px !important; }
            .container { padding: 0 12px calc(80px + env(safe-area-inset-bottom, 12px)) !important; max-width: 100%; }
            .alert-card { padding: 12px; gap: 10px; }
            .alert-content { min-width: 0; width: 100%; }
            .alert-title { font-size: 13px !important; }
            .alert-sub { font-size: 11.5px !important; }
            .alert-time { font-size: 10px !important; }
        }

@media (max-width: 360px) {
    .sub-header h2 { font-size: 14px !important; }
    .alert-card { padding: 10px !important; }
    .read-all-btn { font-size: 9px !important; }
    .alert-title { font-size: 12px !important; }
}

/* ==========================================================================
   Clean White + Blue UI v2 Theme — Notifications & Alerts
   Scoped strictly under body.ui-v2 to preserve existing behavior & other pages
   ========================================================================== */

body.ui-v2 {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--ui-bg, #F4F7FB);
    color: var(--ui-ink, #0E1B33);
    -webkit-font-smoothing: antialiased;
}

/* Dashboard Header */
body.ui-v2 .dash-header {
    background: var(--ui-surface, #FFFFFF) !important;
    border-bottom: 1px solid var(--ui-border, #E5E7EB) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.ui-v2 .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body.ui-v2 .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(36, 81, 196, 0.2);
}

body.ui-v2 .brand-mark svg {
    display: block;
    width: 32px !important;
    height: 32px !important;
}

body.ui-v2 .brand-text .title {
    font-family: 'Switzer', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ui-ink, #0E1B33);
}

body.ui-v2 .desktop-nav .nav-btn {
    font-family: 'Switzer', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: var(--ui-ink-soft, #5C6B8A);
    border-radius: 10px;
    padding: 7px 12px;
    transition: all 0.15s ease;
}

body.ui-v2 .desktop-nav .nav-btn:hover {
    color: var(--ui-primary, #0066FF);
    background: rgba(0, 102, 255, 0.06);
}

body.ui-v2 .desktop-nav .nav-btn.active {
    background: #EEF4FF !important;
    color: var(--ui-primary, #0066FF) !important;
    font-weight: 600;
}

body.ui-v2 .icon-btn.menu-btn-top {
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    border-radius: 10px;
    color: var(--ui-ink, #0E1B33);
    transition: all 0.15s ease;
}

body.ui-v2 .icon-btn.menu-btn-top:hover {
    background: var(--ui-bg, #F4F7FB);
    border-color: rgba(0, 102, 255, 0.3);
    color: var(--ui-primary, #0066FF);
}

/* Sub-Header & Controls */
body.ui-v2 .sub-header {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

body.ui-v2 .sub-header h2 {
    font-family: 'Switzer', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ui-ink, #0E1B33);
}

body.ui-v2 .read-all-btn {
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    color: var(--ui-ink-soft, #5C6B8A);
    font-family: 'Switzer', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

body.ui-v2 .read-all-btn:hover {
    background: #EEF4FF;
    border-color: rgba(0, 102, 255, 0.3);
    color: var(--ui-primary, #0066FF);
}

/* Web Push Permission Banner */
body.ui-v2 .push-prompt-card {
    max-width: 680px;
    margin: 10px auto 14px !important;
    background: #EEF4FF !important;
    border: 1px solid rgba(0, 102, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.ui-v2 #enablePushBtn {
    background: var(--ui-primary, #0066FF) !important;
    border-radius: 10px !important;
    font-family: 'Switzer', sans-serif !important;
    font-weight: 600 !important;
    transition: background 0.15s ease;
}

body.ui-v2 #enablePushBtn:hover {
    background: #0052CC !important;
}

/* Filter Chips */
body.ui-v2 .filters {
    max-width: 680px;
    margin: 0 auto;
    padding: 6px 16px 14px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

body.ui-v2 .chip,
body.ui-v2 .filter-chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-family: 'Switzer', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 9999px;
    background: var(--ui-surface, #FFFFFF);
    border: 1px solid var(--ui-border, #E5E7EB);
    color: var(--ui-ink-soft, #5C6B8A);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

body.ui-v2 .chip:hover,
body.ui-v2 .filter-chip:hover {
    color: var(--ui-ink, #0E1B33);
}

body.ui-v2 .chip.active,
body.ui-v2 .filter-chip.active {
    background: #EEF4FF;
    border-color: rgba(0, 102, 255, 0.3);
    color: var(--ui-primary, #0066FF);
}

/* Container & Alert Cards */
body.ui-v2 .container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px 90px;
    box-sizing: border-box;
}

body.ui-v2 .alert-card {
    background: var(--ui-surface, #FFFFFF) !important;
    border: 1px solid var(--ui-border, #E5E7EB) !important;
    border-radius: 18px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    padding: 16px 18px !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

body.ui-v2 .alert-card:hover {
    border-color: rgba(0, 102, 255, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.08) !important;
}

body.ui-v2 .alert-title {
    font-family: 'Switzer', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: var(--ui-ink, #0E1B33) !important;
    margin-bottom: 4px !important;
    line-height: 1.35;
}

body.ui-v2 .alert-sub {
    font-family: 'Switzer', sans-serif !important;
    font-size: 12.5px !important;
    color: var(--ui-ink-soft, #5C6B8A) !important;
    line-height: 1.45;
    margin-bottom: 8px !important;
}

body.ui-v2 .alert-time {
    font-size: 11px !important;
    color: var(--ui-ink-soft, #5C6B8A) !important;
}

/* Floating Bottom Dock */
body.ui-v2 .dock-island-main {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.ui-v2 .dock-tab {
    color: #6B7280;
    transition: color 0.15s ease, background 0.15s ease;
}

body.ui-v2 .dock-tab:hover {
    color: var(--primary, #2451C4);
}

body.ui-v2 .dock-tab.active {
    background: var(--primary, #2451C4) !important;
    color: #FFFFFF !important;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(36, 81, 196, 0.35) !important;
}

body.ui-v2 .dock-tab.active svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}

body.ui-v2 .dock-island-action {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

body.ui-v2 .dock-action-btn {
    color: #374151;
}

/* Full Dark Theme Pairing */
:root.dark-theme body.ui-v2,
html.dark-theme body.ui-v2,
body.ui-v2.dark-theme {
    background-color: var(--ui-bg, #0B0F19);
    color: var(--ui-ink, #F9FAFB);
}

:root.dark-theme body.ui-v2 .dash-header,
html.dark-theme body.ui-v2 .dash-header,
body.ui-v2.dark-theme .dash-header {
    background: var(--ui-surface, #111827) !important;
    border-bottom-color: var(--ui-border, #1F2937) !important;
}

:root.dark-theme body.ui-v2 .brand-text .title,
html.dark-theme body.ui-v2 .brand-text .title,
body.ui-v2.dark-theme .brand-text .title,
:root.dark-theme body.ui-v2 .sub-header h2,
html.dark-theme body.ui-v2 .sub-header h2,
body.ui-v2.dark-theme .sub-header h2,
:root.dark-theme body.ui-v2 .alert-title,
html.dark-theme body.ui-v2 .alert-title,
body.ui-v2.dark-theme .alert-title {
    color: var(--ui-ink, #F9FAFB) !important;
}

:root.dark-theme body.ui-v2 .desktop-nav .nav-btn,
html.dark-theme body.ui-v2 .desktop-nav .nav-btn,
body.ui-v2.dark-theme .desktop-nav .nav-btn {
    color: #9CA3AF;
}

:root.dark-theme body.ui-v2 .desktop-nav .nav-btn.active,
html.dark-theme body.ui-v2 .desktop-nav .nav-btn.active,
body.ui-v2.dark-theme .desktop-nav .nav-btn.active {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60A5FA !important;
}

:root.dark-theme body.ui-v2 .alert-sub,
html.dark-theme body.ui-v2 .alert-sub,
body.ui-v2.dark-theme .alert-sub,
:root.dark-theme body.ui-v2 .alert-time,
html.dark-theme body.ui-v2 .alert-time,
body.ui-v2.dark-theme .alert-time {
    color: #9CA3AF !important;
}

:root.dark-theme body.ui-v2 .read-all-btn,
html.dark-theme body.ui-v2 .read-all-btn,
body.ui-v2.dark-theme .read-all-btn,
:root.dark-theme body.ui-v2 .chip,
:root.dark-theme body.ui-v2 .filter-chip,
html.dark-theme body.ui-v2 .chip,
html.dark-theme body.ui-v2 .filter-chip,
body.ui-v2.dark-theme .chip,
body.ui-v2.dark-theme .filter-chip,
:root.dark-theme body.ui-v2 .alert-card,
html.dark-theme body.ui-v2 .alert-card,
body.ui-v2.dark-theme .alert-card {
    background: var(--ui-surface, #111827) !important;
    border-color: var(--ui-border, #1F2937) !important;
}

:root.dark-theme body.ui-v2 .chip.active,
:root.dark-theme body.ui-v2 .filter-chip.active,
html.dark-theme body.ui-v2 .chip.active,
html.dark-theme body.ui-v2 .filter-chip.active,
body.ui-v2.dark-theme .chip.active,
body.ui-v2.dark-theme .filter-chip.active {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60A5FA !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

:root.dark-theme body.ui-v2 .push-prompt-card,
html.dark-theme body.ui-v2 .push-prompt-card,
body.ui-v2.dark-theme .push-prompt-card {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

:root.dark-theme body.ui-v2 .dock-island-main,
:root.dark-theme body.ui-v2 .dock-island-action,
html.dark-theme body.ui-v2 .dock-island-main,
html.dark-theme body.ui-v2 .dock-island-action,
body.ui-v2.dark-theme .dock-island-main,
body.ui-v2.dark-theme .dock-island-action {
    background: rgba(17, 24, 39, 0.94);
    border-color: rgba(31, 41, 55, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

:root.dark-theme body.ui-v2 .dock-tab,
html.dark-theme body.ui-v2 .dock-tab,
body.ui-v2.dark-theme .dock-tab {
    color: #9CA3AF;
}

:root.dark-theme body.ui-v2 .dock-tab.active,
html.dark-theme body.ui-v2 .dock-tab.active,
body.ui-v2.dark-theme .dock-tab.active {
    background: #3B82F6 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45) !important;
}

:root.dark-theme body.ui-v2 .dock-tab.active svg,
html.dark-theme body.ui-v2 .dock-tab.active svg,
body.ui-v2.dark-theme .dock-tab.active svg {
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}

:root.dark-theme body.ui-v2 .dock-action-btn,
html.dark-theme body.ui-v2 .dock-action-btn,
body.ui-v2.dark-theme .dock-action-btn {
    color: #D1D5DB;
}

/* Mobile Breakpoint Standards (Rule 1.1) */
@media (max-width: 480px) {
    body.ui-v2 .sub-header {
        padding: 14px 12px 6px;
    }
    body.ui-v2 .filters {
        padding: 6px 12px 10px;
    }
    body.ui-v2 .container {
        padding: 0 12px 85px !important;
        max-width: 100%;
    }
    body.ui-v2 .alert-card {
        padding: 14px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 360px) {
    body.ui-v2 .sub-header h2 {
        font-size: 17px !important;
    }
    body.ui-v2 .alert-title {
        font-size: 13.5px !important;
    }
    body.ui-v2 .alert-card {
        padding: 12px 10px !important;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    body.ui-v2 .alert-card,
    body.ui-v2 .chip,
    body.ui-v2 .filter-chip,
    body.ui-v2 .read-all-btn,
    body.ui-v2 #enablePushBtn {
        transition: none !important;
    }
}
