:root {
    --color-paper: #F8F9FC;
    --color-grid: #E5E7EF;
    --color-light-blue: #60A5FA;
    --color-purple: #8B5CF6;
    --color-pink: #EC4899;
    --color-green: #22c55e;
    --color-yellow: #eab308;
    --color-orange: #F97316;
    --color-red: #ef4444;
    --color-text: #111827;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --grid-size: 40px;
    --navbar-height: 58px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --r-panel: 24px;
    --r-card: 16px;
    --r-tile: 12px;
    --r-chip: 999px;
    --glass-fill: rgba(255,255,255,0.5);
    --glass-blur: blur(22px) saturate(165%);
    --shadow-panel: 0 10px 32px rgba(84,66,170,0.12), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(108,84,216,0.08);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --code-bg: #1E1E2E;
}

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

[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-paper);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    padding-top: calc(var(--navbar-height) + var(--safe-area-top) + 24px);
    padding-bottom: calc(1.5rem + var(--safe-area-bottom));
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, var(--color-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--color-grid) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 20%, rgba(234, 179, 8, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 80% 30%, rgba(139, 92, 246, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 70% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { font-family: inherit; font-size: inherit; border: none; background: none; cursor: pointer; }
button, a { touch-action: manipulation; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
    border-radius: 8px;
}

::selection {
    background-color: var(--color-text);
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

.navbar {
    position: fixed;
    top: calc(12px + var(--safe-area-top));
    left: 12px;
    right: 12px;
    height: var(--navbar-height);
    background: var(--glass-fill);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: var(--shadow-panel);
    border-radius: var(--r-panel);
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    z-index: 1000;
    max-width: 876px;
    margin: 0 auto;
}

.nav-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--color-grid);
    color: var(--color-text);
    margin-right: 12px;
    transition: all var(--transition-fast);
}

.nav-back-btn:hover {
    background: #ffffff;
    border-color: var(--color-text);
    color: var(--color-text);
    transform: translateX(-2px);
}

.nav-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.main-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.main-container > * { min-width: 0; }

.page-head {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
}

.page-head::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 4px;
    height: 56px;
    background: var(--color-yellow);
    border-radius: 3px;
    opacity: 0.55;
    pointer-events: none;
}

.page-head::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -2px;
    width: 40px;
    height: 4px;
    background: var(--color-yellow);
    border-radius: 3px;
    opacity: 0.55;
    pointer-events: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
}

.page-head h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-head h1 span {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.page-head h1 span::before {
    content: '';
    position: absolute;
    bottom: 0.08em;
    left: -0.1em;
    width: calc(100% + 0.3em);
    height: 0.38em;
    background: var(--color-yellow);
    opacity: 0.5;
    border-radius: 2px;
    z-index: -1;
    transform: rotate(-2deg) skewX(-8deg);
    pointer-events: none;
}

.page-head p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.acc-yellow { --accent: var(--color-yellow); }
.acc-purple { --accent: var(--color-purple); }
.acc-orange { --accent: var(--color-orange); }
.acc-pink { --accent: var(--color-pink); }
.acc-green { --accent: var(--color-green); }

.panel {
    --accent: var(--color-yellow);
    position: relative;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--color-grid);
    border-radius: var(--r-card);
    padding: 1.5rem;
    overflow: visible;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.panel::before {
    content: '';
    position: absolute;
    top: -7px;
    left: -7px;
    width: 28px;
    height: 28px;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
    border-top-left-radius: 12px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 2;
}

.panel::after {
    content: '';
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 28px;
    height: 28px;
    border-right: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    border-bottom-right-radius: 12px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 2;
}

.panel:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(17, 24, 39, 0.2);
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.section-num {
    position: absolute;
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-family: var(--font-mono);
    color: var(--accent);
    pointer-events: none;
    z-index: 3;
    white-space: nowrap;
}

.section-num .num {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.28;
    letter-spacing: -0.02em;
}

.section-num .divider {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.2;
}

.section-num .label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.32;
}

.section-num-left { top: -12px; left: 40px; }
.section-num-right { top: -12px; right: 18px; }

.js-ready .reveal {
    opacity: 0;
    transform: translateY(25px) scale(0.98);
    filter: blur(4px);
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready .reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.support-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.support-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 2px;
    background: var(--accent, var(--color-text));
    border-radius: 1px;
}

.status-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
}

.status-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-text-light);
    box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.2);
}

.status-dot.ov-online {
    background: var(--color-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
    animation: dotPulse 2s ease-in-out infinite;
}

.status-dot.ov-offline {
    background: var(--color-red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.07); }
}

.conn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--r-chip);
    border: 1px solid var(--color-grid);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text);
}

.conn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-yellow);
}

.conn-pill.conn-live {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.conn-pill.conn-live .conn-dot {
    background: var(--color-green);
    animation: connBlink 1.8s ease-in-out infinite;
}

.conn-pill.conn-connecting,
.conn-pill.conn-reconnecting {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.35);
    color: #854d0e;
}

.conn-pill.conn-offline {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.28);
    color: var(--color-red);
}

.conn-pill.conn-offline .conn-dot { background: var(--color-red); }

@keyframes connBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.status-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--color-grid);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.status-meta strong {
    color: var(--color-text);
    font-weight: 600;
}

.stale-note {
    padding: 3px 10px;
    border-radius: var(--r-chip);
    background: rgba(234, 179, 8, 0.14);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #854d0e;
    font-weight: 600;
}

.stat-card {
    position: relative;
    background: rgba(255,255,255,0.65);
    border: 1px solid var(--color-grid);
    border-radius: var(--r-tile);
    padding: 16px 14px 14px;
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--tone, var(--accent));
    border-radius: 0 0 3px 3px;
    opacity: 0.8;
    pointer-events: none;
}

.stat-card:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.3);
    transform: translateY(-2px);
}

.tone-green { --tone: var(--color-green); }
.tone-yellow { --tone: var(--color-yellow); }
.tone-red { --tone: var(--color-red); }
.tone-orange { --tone: var(--color-orange); }
.tone-purple { --tone: var(--color-purple); }

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.http-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.rps-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rps-grid {
    display: flex;
    gap: 0.625rem;
}

.rps-card {
    background: rgba(255,255,255,0.65);
    border: 1px solid var(--color-grid);
    border-radius: var(--r-tile);
    padding: 12px 16px;
    text-align: center;
    min-width: 80px;
}

.rps-card.rps-main {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.35);
}

.rps-value {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.rps-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.chart-total {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding-top: 4px;
}

.chart-canvas {
    display: block;
    width: 100%;
    height: 90px;
    border-radius: var(--r-tile);
    border: 1px solid var(--color-grid);
    background: rgba(255,255,255,0.65);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.resource-card {
    position: relative;
    background: rgba(255,255,255,0.65);
    border: 1px solid var(--color-grid);
    border-radius: var(--r-tile);
    padding: 16px 16px 14px;
    transition: all var(--transition-fast);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
    opacity: 0.8;
    pointer-events: none;
}

.resource-card:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.3);
}

.resource-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.resource-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.resource-bar {
    margin: 10px 0 6px;
    height: 8px;
    border-radius: var(--r-chip);
    background: rgba(17, 24, 39, 0.07);
    overflow: hidden;
}

.resource-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: var(--r-chip);
    background: var(--color-green);
    transition: width 0.5s ease;
}

.resource-bar-fill.warn { background: var(--color-yellow); }
.resource-bar-fill.danger { background: var(--color-red); }

.resource-sub {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.resource-rows {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resource-row,
.sched-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.resource-row span:first-child,
.sched-row span:first-child { color: var(--color-text-muted); }

.resource-row span:last-child,
.sched-row span:last-child {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-text);
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.health-card {
    position: relative;
    background: rgba(255,255,255,0.65);
    border: 1px solid var(--color-grid);
    border-radius: var(--r-tile);
    padding: 16px 16px 14px;
    transition: all var(--transition-fast);
}

.health-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
    opacity: 0.8;
    pointer-events: none;
}

.health-card:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.3);
}

.health-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.health-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
}

.health-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--color-text-light);
}

.health-dot.health-ok {
    background: var(--color-green);
    animation: connBlink 2s ease-in-out infinite;
}

.health-dot.health-bad { background: var(--color-red); }

.health-sub {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

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

.sched-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.65);
    border: 1px solid var(--color-grid);
    border-radius: var(--r-tile);
}

.sched-queue {
    padding: 14px 16px;
    background: rgba(255,255,255,0.65);
    border: 1px solid var(--color-grid);
    border-radius: var(--r-tile);
}

.feed-panel {
    background: var(--code-bg);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0;
}

.feed-panel:hover {
    background: var(--code-bg);
    border-color: rgba(234, 179, 8, 0.5);
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.feed-header .support-title {
    color: rgba(255,255,255,0.65);
    margin-bottom: 0;
}

.feed-count {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
}

.feed-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px 18px 16px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1.8;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.feed-body::-webkit-scrollbar { width: 6px; }

.feed-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: var(--r-chip);
}

.feed-empty {
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 20px;
}

.feed-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: rgba(255,255,255,0.65);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 4px 0;
    animation: feedLineIn 0.3s ease both;
}

@keyframes feedLineIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.fl-time { color: rgba(255,255,255,0.38); flex-shrink: 0; }
.fl-method { font-weight: 700; flex-shrink: 0; min-width: 44px; }
.fl-method.get { color: #fde68a; }
.fl-method.post { color: #86efac; }
.fl-method.put { color: #fdba74; }
.fl-method.patch { color: #f9a8d4; }
.fl-method.delete { color: #fca5a5; }

.fl-url {
    flex: 1 1 100px;
    min-width: 0;
    color: rgba(255,255,255,0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fl-category { color: #c4b5fd; flex-shrink: 0; }
.fl-status { font-weight: 700; flex-shrink: 0; min-width: 28px; text-align: right; }
.fl-status.status-2xx { color: #86efac; }
.fl-status.status-3xx { color: #cdd6f4; }
.fl-status.status-4xx { color: #fde68a; }
.fl-status.status-5xx { color: #fca5a5; }
.fl-status.status-unknown { color: rgba(255,255,255,0.4); }

body.stats-stale .stat-value,
body.stats-stale .rps-value,
body.stats-stale .resource-value,
body.stats-stale .resource-sub,
body.stats-stale .sched-row span:last-child {
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.site-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: var(--safe-area-bottom);
    border-top: 1px solid var(--color-grid);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.25rem;
}

.footer-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.footer-brand-tag {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.footer-copy {
    width: 100%;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-grid);
    color: var(--color-text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
    }

    .footer-brand { flex: 1; min-width: 180px; }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-copy { width: 100%; }
}

@media (min-width: 769px) {
    body { padding-left: 2rem; padding-right: 2rem; }
    .navbar { left: 24px; right: 24px; }
    .page-head h1 { font-size: 1.85rem; }
    .main-container { gap: 2rem; }
}

@media (max-width: 639px) {
    body {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 15px;
    }

    .navbar {
        left: 8px;
        right: 8px;
        padding: 0 1rem;
    }

    .nav-back-btn {
        width: 32px;
        height: 32px;
    }

    .nav-back-btn svg {
        width: 16px;
        height: 16px;
    }

    .nav-title { font-size: 0.95rem; }

    .main-container { gap: 1.5rem; }

    .panel {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .feed-panel { padding: 0; }

    .section-num .num { font-size: 1.25rem; }
    .section-num-left { left: 32px; }

    .overview-grid { grid-template-columns: repeat(2, 1fr); }

    .stat-value { font-size: 1.125rem; }

    .http-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .rps-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .rps-grid { flex-wrap: wrap; }
    .rps-card { min-width: 70px; padding: 10px 12px; }
    .rps-value { font-size: 1rem; }

    .chart-canvas { height: 80px; }

    .resources-grid { grid-template-columns: 1fr; }
    .resource-value { font-size: 1.125rem; }

    .health-grid { grid-template-columns: 1fr; }

    .scheduler-grid { grid-template-columns: 1fr; gap: 0.75rem; }

    .feed-header { padding: 14px 14px 10px; }
    .feed-body { max-height: 260px; padding: 10px 14px 14px; }
    .fl-category { display: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar { background: rgba(248, 249, 252, 0.98); }
}

@media (prefers-reduced-transparency: reduce) {
    body::before,
    body::after { display: none; }

    .navbar {
        background: rgba(248, 249, 252, 0.98);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}