html,
body {
    height: 100%;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar Matrix */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #1f293d;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

/* Dynamic template cloak */
[x-cloak] {
    display: none !important;
}

/* Helper Transitions for elements when toggling theme classes */
a,
button,
div,
tr,
td,
input,
aside,
header {
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ambient Visual Gradients */
.ambient-glow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.glow-sphere-primary {
    position: absolute;
    top: -10%;
    left: -10%;
    height: 600px;
    width: 600px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.08);
    filter: blur(160px);
}

.glow-sphere-secondary {
    position: absolute;
    bottom: -5%;
    right: -5%;
    height: 500px;
    width: 500px;
    border-radius: 50%;
    background-color: rgba(6, 182, 212, 0.06);
    filter: blur(140px);
}

/* ==========================================================================
   3. APPLICATION WORKSPACE ROOT CONTAINER MAPPING
   ========================================================================== */
.app-layout-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* Left Static Navigation Sidebar Panel Layout */
.desktop-sidebar-node {
    display: none;
    width: var(--sidebar-width, 17rem);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background: var(--bg-sidebar, rgba(15, 23, 42, 0.4)); /* Enhanced backdrop anchoring */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding: 1.75rem 1.25rem;
    flex-direction: column;
    justify-content: space-between;
    z-index: 30;
    transition: background-color 0.3s ease;
}

@media (min-width: 1024px) {
    .desktop-sidebar-node {
        display: flex;
    }
}

/* Customized Ultra-Thin Scroll Bar Mapping */
.sidebar-scroll-wrapper {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: calc(100% - 4.5rem);
    padding-right: 0.25rem;
}

.sidebar-scroll-wrapper::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
}

/* ==========================================================================
   BRAND HEADER COMPONENT
   ========================================================================== */
.brand-logo-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0 0.5rem;
    margin-bottom: 2.25rem;
}

.brand-vector-box {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--btn-gradient-start, #6366f1), #a855f7, var(--btn-gradient-end, #ec4899));
    box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo-row:hover .brand-vector-box {
    transform: scale(1.05) rotate(3deg);
}

.brand-vector-box svg {
    width: 1.35rem;
    height: 1.35rem;
    color: #ffffff;
}

.brand-text-label {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary, #f8fafc);
}

.gradient-text {
    background: linear-gradient(to right, #818cf8, var(--btn-gradient-end, #ec4899));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* ==========================================================================
   NAVIGATION LINKS & INTERACTIVE STATES
   ========================================================================== */
.navigation-stack-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-category-divider {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted, #64748b);
    padding: 1.5rem 0.75rem 0.6rem 0.75rem;
}

.menu-category-divider:first-of-type {
    padding-top: 0;
}

.navigation-action-node {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-secondary, #94a3b8);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation-action-node svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Micro-interaction Hover Triggers */
.navigation-action-node:hover {
    color: var(--text-primary, #f8fafc);
    background-color: var(--bg-toggle-track, rgba(255, 255, 255, 0.05));
}

.navigation-action-node:hover svg {
    opacity: 1;
    transform: translateX(2px);
}

/* Clean UI Status Notification Badges */
.sidebar-pill-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 2rem;
}

.sidebar-pill-badge.badge-alert {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Active Navigation Glow State Overrides */
.navigation-action-node.active-menu-state {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.01));
    color: var(--btn-gradient-start, #6366f1);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
    font-weight: 600;
}

.navigation-action-node.active-menu-state svg {
    color: var(--btn-gradient-start, #6366f1);
    opacity: 1;
}

/* Left Indicator bar on Active Menu Node */
.navigation-action-node.active-menu-state::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background-color: var(--btn-gradient-start, #6366f1);
    border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   PROFILE FOOTER CONTEXT BLOCK
   ========================================================================== */
.sidebar-footer-profile {
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-top: 1.15rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.avatar-circle {
    position: relative;
    height: 2.35rem;
    width: 2.35rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, var(--btn-gradient-start, #6366f1), #9333ea);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pulsing Realtime Live Line Status Indicator */
.avatar-online-glow {
    position: absolute;
    bottom: -3px;
    right: -3px;
    height: 10px;
    width: 10px;
    background-color: #10b981;
    border: 2px solid var(--bg-sidebar, #0f172a);
    border-radius: 50%;
}

.avatar-online-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #10b981;
    animation: status-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.6;
}

.meta-text-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.meta-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.05rem;
}

/* Animations Framework */
@keyframes status-ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ==========================================================================
   5. MAIN CORE VIEWPORT DESIGN PIPELINE
   ========================================================================== */
.main-viewport-content-root {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
}

@media (min-width: 1024px) {
    .main-viewport-content-root {
        padding-left: var(--sidebar-width, 17rem);
    }
}

/* Top Bar Dynamic Control Header */
.system-top-navigation-header {
    height: 5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    opacity: 0.95;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

@media (min-width: 1024px) {
    .system-top-navigation-header {
        padding: 0 2.5rem;
    }
}

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

.mobile-hamburger-trigger {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-hamburger-trigger svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-hamburger-trigger:hover {
    color: var(--text-primary);
}

@media (min-width: 1024px) {
    .mobile-hamburger-trigger {
        display: none;
    }
}

.header-headline-stack h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.header-headline-stack p {
    display: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

@media (min-width: 640px) {
    .header-headline-stack p {
        display: block;
    }
}

.status-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.ping-indicator-dot {
    width: 0.375rem;
    height: 0.375rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background-color: #34d399;
    position: relative;
}

.ping-indicator-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #34d399;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Main Center Dynamic Content Workspace Grid Layout */
.workspace-center-grid {
    padding: 1rem;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .workspace-center-grid {
        padding: 2.5rem;
    }
}

/* Alert Display Module Notification Block */
.alert-system-banner {
    border-radius: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.15);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.04), transparent);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    backdrop-filter: blur(8px);
}

.alert-icon-square {
    padding: 0.5rem;
    border-radius: 0.75rem;
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    display: flex;
    flex-shrink: 0;
}

.alert-icon-square svg {
    width: 1.25rem;
    height: 1.25rem;
}

.alert-body-text h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: -0.01em;
}

.alert-body-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.6;
}

/* 4-Column Metrics Grid Architecture */
.metrics-quad-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .metrics-quad-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .metrics-quad-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.metric-card-node {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.metric-card-node::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.01);
    filter: blur(16px);
    transition: background-color 0.3s ease;
}

.metric-card-node:hover::before {
    background-color: rgba(99, 102, 241, 0.04);
}

.metric-node-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.metric-node-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-top: 0.75rem;
}

.value-purple-variant {
    color: #a78bfa;
}

.value-gradient-variant {
    background: linear-gradient(to right, #34d399, var(--btn-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-node-caption {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
}

.emerald-caption-text {
    color: #34d399;
}

.indigo-caption-text {
    color: #818cf8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.indicator-dot-solid {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #34d399;
    margin-right: 0.5rem;
    box-shadow: 0 0 8px #34d399;
}

/* Two-Column Section Workspace Layout Block */
.workspace-split-layout {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .workspace-split-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.split-layout-left-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .split-layout-left-block {
        grid-column: span 2 / span 2;
    }
}

/* Control Panel Containers Shared Properties */
.system-display-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .system-display-panel {
        padding: 2rem;
    }
}

.panel-bg-blur-accent {
    position: absolute;
    bottom: -5rem;
    right: -5rem;
    height: 15rem;
    width: 15rem;
    background-color: rgba(99, 102, 241, 0.03);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.panel-header-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.panel-header-title p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    line-height: 1.6;
}

/* Interactive Grid Layout Hub Fields */
.hub-interactive-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .hub-interactive-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.interactive-action-box {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; 
}

.interactive-action-box:hover {
    border-color: var(--input-focus-border);
}

.action-box-content h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.action-box-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
    line-height: 1.6;
}

/* Primary Call-to-Action Interactive Form Control Elements */
.primary-cta-button {
    margin-top: 1.25rem;
    width: fit-content;          /* ← fits to text content */
    display: inline-flex;        /* ← inline, not block */
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;     /* ← slightly more horizontal padding */
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    background: linear-gradient(to right, var(--btn-gradient-start), var(--btn-gradient-end));
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.15);
    align-self: center;          /* ← center in flex/grid parent */
}

.primary-cta-button:hover {
    filter: brightness(1.05);
}

.primary-cta-button:active {
    transform: scale(0.99);
}

.secondary-toggle-button {
    margin-top: 1.25rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: var(--bg-toggle-track);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.secondary-toggle-button:hover {
    filter: brightness(0.95);
}

.secondary-toggle-button:disabled {
    background-color: var(--bg-input);
    color: var(--text-muted);
    border-color: transparent;
    cursor: not-allowed;
}

/* Graphical Throughput Analytics Engine Panel */
.throughput-monitor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.throughput-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.throughput-header-left h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.throughput-header-left p {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.snmp-badge-static {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    background-color: var(--bg-input);
    padding: 0.25rem 0.625rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Physical Grid Data Array Fluctuations Wrapper */
.bar-chart-visualization-matrix {
    height: 11rem;
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
    gap: 0.375rem;
}

.chart-pulse-column {
    width: 100%;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 0.375rem;
}

.chart-pulse-column:hover {
    background-color: rgba(99, 102, 241, 0.3);
}

.column-height-16 { height: 4rem; }
.column-height-24 { height: 6rem; }
.column-height-20 { height: 5rem; }
.column-height-36 { height: 9rem; }
.column-height-32 { height: 8rem; }
.column-height-14 { height: 3.5rem; }

.chart-pulse-column.active-gradient-pulse {
    background: linear-gradient(to top, var(--btn-gradient-start), var(--btn-gradient-end));
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.15);
}

.chart-centered-overlay-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 0 1rem;
}

.chart-centered-overlay-caption span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--bg-card);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    text-align: center;
}

/* Right Ledger Sidebar Layer Panel */
.right-ledger-container-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ledger-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.ledger-panel-header h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.ledger-panel-header svg {
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
}

.ledger-items-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 0%;
}

.ledger-statement-item {
    padding: 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ledger-statement-item:hover {
    border-color: var(--input-focus-border);
}

.ledger-item-left p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ledger-item-left span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
}

.ledger-item-right {
    text-align: right;
}

.ledger-item-right p {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
}

.ledger-item-right .settled-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.5625rem;
    font-weight: 700;
    color: #34d399;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.375rem;
}

.ledger-export-footer-link {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #818cf8;
    text-decoration: none;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    letter-spacing: -0.01em;
}

.ledger-export-footer-link:hover {
    color: #a5b4fc;
}

/* ==========================================================================
   6. MOBILE RESPONSIVE DRAWERS OVERLAYS
   ========================================================================== */
.mobile-drawer-root {
    position: fixed;
    inset: 0;
    z-index: 50;
}

@media (min-width: 1024px) {
    .mobile-drawer-root {
        display: none !important;
    }
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-drawer-body {
    position: fixed;
    inset-y: 0;
    left: 0;
    width: 16rem;
    background: var(--bg-sidebar);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-drawer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-drawer-top-row .brand-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.mobile-drawer-top-row .brand-title span {
    color: var(--btn-gradient-start);
}

.mobile-drawer-close-trigger {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-drawer-close-trigger svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mobile-navigation-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-action-button {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-nav-action-button.mobile-active-state {
    background-color: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.mobile-drawer-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f43f5e; /* Unified explicit dark/light red line indicator */
    cursor: pointer;
}
