@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;
}

/* Enhances the existing public header only. Student headers/docks keep their owners. */
html body header.public-header[data-public-navigation] {
    height: auto !important;
    min-height: 64px !important;
    padding: 8px clamp(16px, 2vw, 28px) !important;
}
html body header.public-header .portal-top-nav-inner,
html body header.public-header .shell-nav-container { padding: 0 !important; }
html[data-navigation-context="public"] #studentLoginCard { scroll-margin-top: 80px; }
.public-header .public-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border, #dce6f5);
    border-radius: 10px;
    background: var(--card, #fff);
    color: var(--ink, #0e1b33);
    cursor: pointer;
}
html.dark-theme .public-header .public-menu-toggle { background: #111827; color: #e2e8f0; border-color: #334155; }
.public-nav-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 12px;
    width: min(288px, calc(100vw - 24px));
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #dce6f5;
    border-radius: 14px;
    background: #fff;
    color: #0e1b33;
    box-shadow: 0 12px 30px #0e1b3326;
}
.public-nav-panel[hidden] { display: none; }
.public-nav-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 8px;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}
.public-nav-panel a:hover, .public-nav-panel a[aria-current="page"] { background: #edf2fc; color: #2451c4; }
html.dark-theme .public-nav-panel { background: #111827; border-color: #334155; color: #e2e8f0; }
html.dark-theme .public-nav-panel a:hover, html.dark-theme .public-nav-panel a[aria-current="page"] { background: #1e293b; color: #93c5fd; }
.public-skip-link { position: fixed; top: -80px; left: 12px; z-index: 10010; padding: 12px; border-radius: 8px; background: #fff; color: #15306b; font-weight: 650; }
.public-skip-link:focus { top: 8px; }
@media (max-width: 768px) {
    html body header.public-header[data-public-navigation] { padding: 10px 16px !important; }
    /* Native links remain available if enhancement fails; no dead hamburger. */
    html body header.public-header .shell-nav-links.desktop-nav { display: none !important; }
    html body header.public-header:not(.public-nav-ready) .shell-nav-container,
    html body header.public-header:not(.public-nav-ready) .portal-top-nav-inner { flex-wrap: wrap !important; }
    html body header.public-header:not(.public-nav-ready) .shell-header-actions { flex: 1 1 100% !important; flex-wrap: wrap !important; max-width: 100%; }
    html body header.public-header.public-nav-ready .shell-nav-links.desktop-nav { display: none !important; }
    .public-header.public-nav-ready .public-menu-toggle { display: inline-flex; }
    html body header.public-header .shell-theme-toggle-btn { display: inline-flex !important; width: 44px !important; height: 44px !important; }
    html body header.public-header .shell-nav-signin { min-height: 44px !important; height: 44px !important; }
    .public-header .shell-brand, .public-header .portal-brand { min-width: 0; }
}
@media (max-width: 480px) {
    html body header.public-header[data-public-navigation] { padding: 8px 12px !important; }
    html body header.public-header .shell-header-actions { gap: 6px !important; }
    html body header.public-header .shell-nav-signin { padding: 7px 11px !important; font-size: 12px !important; }
}
@media (max-width: 360px) {
    html body header.public-header[data-public-navigation] { padding: 8px 10px !important; }
    html body header.public-header .shell-header-actions { gap: 4px !important; }
    html body header.public-header .shell-theme-toggle-btn { width: 38px !important; height: 38px !important; border-radius: 8px !important; position: relative !important; }
    html body header.public-header .public-menu-toggle { width: 38px !important; height: 38px !important; border-radius: 8px !important; position: relative !important; }
    html body header.public-header .shell-nav-signin { min-height: 38px !important; height: 38px !important; padding: 6px 8px !important; font-size: 11px !important; gap: 4px !important; border-radius: 8px !important; position: relative !important; }
    /* Expand effective touch target to 48px height without affecting document flow width */
    html body header.public-header .shell-theme-toggle-btn::after,
    html body header.public-header .public-menu-toggle::after,
    html body header.public-header .shell-nav-signin::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 42px;
        min-height: 48px;
        width: 100%;
        height: 100%;
        pointer-events: auto;
    }
    html body header.public-header .shell-nav-signin svg { width: 14px !important; height: 14px !important; }
    html body header.public-header .portal-brand { gap: 6px !important; }
    html body header.public-header .portal-brand svg { width: 24px !important; height: 24px !important; }
    html body header.public-header .portal-brand span:first-child { font-size: 13px !important; }
}
@media (max-width: 320px) {
    html body header.public-header[data-public-navigation] { padding: 6px 8px !important; }
    html body header.public-header .shell-header-actions { gap: 3px !important; }
    html body header.public-header .portal-brand span:first-child { font-size: 12.5px !important; }
}

/* ==========================================================================
   UNIFIED PUBLIC PORTAL FOOTER (Phase 2D/2E Approved Design System Baseline)
   ========================================================================== */
.portal-main-footer {
    width: 100% !important;
    background: var(--card, #FFFFFF) !important;
    border-top: 1px solid var(--border, #E2E8F0) !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.02) !important;
    margin-top: 40px !important;
    padding: 38px 20px 24px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    overflow: hidden !important;
}

html.dark-theme .portal-main-footer {
    background: #070B18 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

.portal-footer-container {
    max-width: 1120px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
}

.portal-footer-top {
    display: grid !important;
    grid-template-columns: 1.4fr 1.6fr !important;
    gap: 48px !important;
    align-items: flex-start !important;
}

.footer-brand-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    text-align: left !important;
    align-items: flex-start !important;
}

.footer-brand-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--ink, #0E1B33) !important;
    letter-spacing: -0.01em !important;
}

html.dark-theme .footer-brand-title {
    color: #F8FAFC !important;
}

.footer-brand-desc {
    font-size: 12.5px !important;
    color: var(--ink-soft, #64748B) !important;
    line-height: 1.62 !important;
    margin: 0 !important;
    max-width: 440px !important;
    text-align: left !important;
}

html.dark-theme .footer-brand-desc {
    color: rgba(255, 255, 255, 0.70) !important;
}

.footer-links-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.footer-nav-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 0 !important;
    align-items: flex-start !important;
}

.footer-col-heading {
    font-size: 11.5px !important;
    font-weight: 750 !important;
    color: var(--theme-accent-text, #2563EB) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin: 0 0 2px 0 !important;
}

html.dark-theme .footer-col-heading {
    color: #38BDF8 !important;
}

.footer-link-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}

.footer-link-list a {
    font-size: 13px !important;
    color: var(--ink-soft, #475569) !important;
    text-decoration: none !important;
    transition: color 0.15s ease, transform 0.15s ease !important;
    width: fit-content !important;
    display: inline-block !important;
}

@media (hover: hover) and (pointer: fine) {
    .footer-link-list a:hover {
        color: var(--theme-accent-text, #2563EB) !important;
        transform: translateX(3px) !important;
    }
    html.dark-theme .footer-link-list a:hover {
        color: #38BDF8 !important;
    }
}

html.dark-theme .footer-link-list a {
    color: rgba(255, 255, 255, 0.75) !important;
}

.portal-footer-bottom {
    border-top: 1px solid var(--border, #E2E8F0) !important;
    padding-top: 20px !important;
    margin-top: 4px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 12px !important;
    color: var(--ink-soft, #64748B) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: env(safe-area-inset-bottom, 8px) !important;
}

html.dark-theme .portal-footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.60) !important;
}

.footer-copy-row,
.footer-credit-author {
    font-size: 12px !important;
    color: var(--ink-soft, #64748B) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

html.dark-theme .footer-copy-row,
html.dark-theme .footer-credit-author {
    color: rgba(255, 255, 255, 0.60) !important;
}

.footer-credit-author b {
    color: var(--ink, #0E1B33) !important;
    font-weight: 700 !important;
}

html.dark-theme .footer-credit-author b {
    color: #F8FAFC !important;
}

/* Responsive Footer suite adhering to Rule 1.1 */
@media (max-width: 768px) {
    .portal-main-footer {
        margin-top: 24px !important;
        padding: 28px 16px 20px !important;
    }
    .portal-footer-container {
        gap: 24px !important;
    }
    .portal-footer-top {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .footer-brand-col {
        text-align: left !important;
        align-items: flex-start !important;
    }
    .footer-brand-title {
        justify-content: flex-start !important;
    }
    .footer-brand-desc {
        text-align: left !important;
        font-size: 12px !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
    }
    .footer-links-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 20px !important;
        width: 100% !important;
    }
    .portal-footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
        padding-top: 18px !important;
    }
    .footer-copy-row,
    .footer-credit-author {
        font-size: 11.5px !important;
        white-space: normal !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .portal-main-footer {
        padding: 24px 14px 18px !important;
    }
    .footer-links-grid {
        gap: 20px 16px !important;
    }
    .footer-link-list {
        gap: 7px !important;
    }
    .footer-link-list a {
        font-size: 12px !important;
    }
    .footer-col-heading {
        font-size: 11px !important;
    }
    .footer-copy-row,
    .footer-credit-author {
        font-size: 11px !important;
    }
}

@media (max-width: 360px) {
    .portal-main-footer {
        padding: 20px 10px 16px !important;
    }
    .footer-brand-title {
        font-size: 15px !important;
    }
    .footer-brand-desc {
        font-size: 11px !important;
    }
    .footer-links-grid {
        gap: 16px 10px !important;
    }
    .footer-link-list a {
        font-size: 11px !important;
    }
    .footer-col-heading {
        font-size: 10.5px !important;
    }
}

/* Session Resilience & Offline Network Retry Banner */
.uu-session-retry-banner {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #FEF3C7;
    color: #92400E;
    border-bottom: 1px solid #FCD34D;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.uu-retry-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.uu-retry-icon {
    flex-shrink: 0;
    stroke: #D97706;
}
.uu-retry-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.uu-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #D97706;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 4.5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
    white-space: nowrap !important;
}
.uu-retry-btn:hover {
    background: #B45309;
}
.uu-retry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
html.dark-theme .uu-session-retry-banner {
    background: #78350F;
    color: #FEF3C7;
    border-bottom-color: #92400E;
}
html.dark-theme .uu-retry-btn {
    background: #F59E0B;
    color: #1E293B;
}
html.dark-theme .uu-retry-btn:hover {
    background: #D97706;
}

@media (max-width: 480px) {
    .uu-session-retry-banner {
        padding: 7px 10px;
        font-size: 11px;
    }
    .uu-retry-btn {
        padding: 3.5px 9px;
        font-size: 10.5px;
    }
}
@media (max-width: 360px) {
    .uu-session-retry-banner {
        padding: 6px 8px;
        font-size: 10px;
    }
    .uu-retry-btn {
        padding: 3px 7px;
        font-size: 10px;
    }
}

/* ==========================================================================
   Batch 6 — UI v2 Public Navigation Presentation Rules
   Scoped under body.ui-v2 (Zero-Emoji, Crisp SVG, Mobile Breakpoints 480/360)
   ========================================================================== */
body.ui-v2 {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.ui-v2 header.public-header[data-public-navigation] {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(14, 27, 51, 0.04), 0 4px 12px rgba(14, 27, 51, 0.02) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.ui-v2 .public-header .shell-brand {
    gap: 12px !important;
    text-decoration: none !important;
}

body.ui-v2 .public-header .shell-brand-mark {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.ui-v2 .public-header .shell-brand:hover .shell-brand-mark {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.35) !important;
}

body.ui-v2 .public-header .shell-brand-title {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #0E1B33 !important;
    letter-spacing: -0.2px;
}

body.ui-v2 .public-header .shell-brand-subtitle,
body.ui-v2 .public-header .shell-live-badge {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #10B981 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body.ui-v2 .public-header .shell-nav-links.desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 6px !important;
}

body.ui-v2 .public-header .shell-nav-link {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #5C6B8A !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.ui-v2 .public-header .shell-nav-link:hover {
    color: #0066FF !important;
    background: #EBF3FF !important;
}

body.ui-v2 .public-header .shell-nav-link[aria-current="page"],
body.ui-v2 .public-header .shell-nav-link.active {
    color: #0066FF !important;
    background: #EBF3FF !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(0, 102, 255, 0.08) !important;
}

body.ui-v2 .public-header .shell-theme-toggle-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #5C6B8A !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease !important;
}

body.ui-v2 .public-header .shell-theme-toggle-btn:hover {
    background: #EBF3FF !important;
    color: #0066FF !important;
    border-color: #BFDBFE !important;
}

body.ui-v2 .public-header .public-menu-toggle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #0E1B33 !important;
    transition: all 0.15s ease !important;
}

body.ui-v2 .public-header .public-menu-toggle:hover {
    background: #EBF3FF !important;
    color: #0066FF !important;
    border-color: #BFDBFE !important;
}

body.ui-v2 .public-header .shell-nav-signin {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #0066FF !important;
    color: #FFFFFF !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    border: 1px solid #0066FF !important;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

body.ui-v2 .public-header .shell-nav-signin:hover {
    background: #0052CC !important;
    border-color: #0052CC !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35) !important;
    transform: translateY(-1px);
}

body.ui-v2 .public-nav-panel {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(14, 27, 51, 0.12) !important;
    padding: 10px !important;
}

body.ui-v2 .public-nav-panel a {
    font-family: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0E1B33 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    transition: all 0.15s ease !important;
}

body.ui-v2 .public-nav-panel a:hover,
body.ui-v2 .public-nav-panel a[aria-current="page"] {
    background: #EBF3FF !important;
    color: #0066FF !important;
}

/* Dark Mode Pairing for Public Navigation */
:root.dark-theme body.ui-v2 header.public-header[data-public-navigation],
html.dark-theme body.ui-v2 header.public-header[data-public-navigation],
body.ui-v2.dark-theme header.public-header[data-public-navigation] {
    background: #0D0D11 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

:root.dark-theme body.ui-v2 .public-header .shell-brand-title,
html.dark-theme body.ui-v2 .public-header .shell-brand-title,
body.ui-v2.dark-theme .public-header .shell-brand-title {
    color: #FFFFFF !important;
}

:root.dark-theme body.ui-v2 .public-header .shell-nav-link,
html.dark-theme body.ui-v2 .public-header .shell-nav-link,
body.ui-v2.dark-theme .public-header .shell-nav-link {
    color: #A1A1AA !important;
}

:root.dark-theme body.ui-v2 .public-header .shell-nav-link:hover,
html.dark-theme body.ui-v2 .public-header .shell-nav-link:hover,
body.ui-v2.dark-theme .public-header .shell-nav-link:hover {
    color: #93C5FD !important;
    background: rgba(0, 102, 255, 0.15) !important;
}

:root.dark-theme body.ui-v2 .public-header .shell-nav-link[aria-current="page"],
html.dark-theme body.ui-v2 .public-header .shell-nav-link[aria-current="page"],
body.ui-v2.dark-theme .public-header .shell-nav-link[aria-current="page"] {
    color: #93C5FD !important;
    background: rgba(0, 102, 255, 0.2) !important;
    border: 1px solid rgba(0, 102, 255, 0.3) !important;
}

:root.dark-theme body.ui-v2 .public-header .shell-theme-toggle-btn,
html.dark-theme body.ui-v2 .public-header .shell-theme-toggle-btn,
body.ui-v2.dark-theme .public-header .shell-theme-toggle-btn {
    background: #18181B !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #A1A1AA !important;
}

:root.dark-theme body.ui-v2 .public-header .shell-theme-toggle-btn:hover,
html.dark-theme body.ui-v2 .public-header .shell-theme-toggle-btn:hover,
body.ui-v2.dark-theme .public-header .shell-theme-toggle-btn:hover {
    background: rgba(0, 102, 255, 0.2) !important;
    color: #93C5FD !important;
}

:root.dark-theme body.ui-v2 .public-header .public-menu-toggle,
html.dark-theme body.ui-v2 .public-header .public-menu-toggle,
body.ui-v2.dark-theme .public-header .public-menu-toggle {
    background: #18181B !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

:root.dark-theme body.ui-v2 .public-nav-panel,
html.dark-theme body.ui-v2 .public-nav-panel,
body.ui-v2.dark-theme .public-nav-panel {
    background: #111827 !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

:root.dark-theme body.ui-v2 .public-nav-panel a,
html.dark-theme body.ui-v2 .public-nav-panel a,
body.ui-v2.dark-theme .public-nav-panel a {
    color: #E2E8F0 !important;
}

:root.dark-theme body.ui-v2 .public-nav-panel a:hover,
:root.dark-theme body.ui-v2 .public-nav-panel a[aria-current="page"],
html.dark-theme body.ui-v2 .public-nav-panel a:hover,
html.dark-theme body.ui-v2 .public-nav-panel a[aria-current="page"],
body.ui-v2.dark-theme .public-nav-panel a:hover,
body.ui-v2.dark-theme .public-nav-panel a[aria-current="page"] {
    background: rgba(0, 102, 255, 0.2) !important;
    color: #93C5FD !important;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    body.ui-v2 header.public-header *,
    body.ui-v2 .public-nav-panel * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Mobile Breakpoint Standard (Rule 1.1) */
@media (max-width: 480px) {
    body.ui-v2 header.public-header[data-public-navigation] {
        padding: 8px 12px !important;
    }
    body.ui-v2 .public-header .shell-brand-title {
        font-size: 14px !important;
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.ui-v2 .public-header .shell-nav-signin {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
    }
}

@media (max-width: 360px) {
    body.ui-v2 header.public-header[data-public-navigation] {
        padding: 6px 10px !important;
    }
    body.ui-v2 .public-header .shell-brand-title {
        font-size: 13px !important;
        max-width: 140px;
    }
    body.ui-v2 .public-header .shell-theme-toggle-btn,
    body.ui-v2 .public-header .public-menu-toggle {
        width: 36px !important;
        height: 36px !important;
    }
    body.ui-v2 .public-header .shell-nav-signin {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
}
