:root {
    --bg: #060816;
    --bg-soft: rgba(8, 18, 38, 0.72);
    --panel: rgba(11, 22, 46, 0.62);
    --panel-strong: rgba(12, 28, 59, 0.88);
    --text: #eef5ff;
    --muted: #98a9d3;
    --line: rgba(136, 181, 255, 0.18);
    --blue: #39a2ff;
    --cyan: #66f6ff;
    --purple: #a259ff;
    --shadow: 0 30px 80px rgba(5, 10, 30, 0.45);
    --max-width: 1180px;
    --radius-lg: 28px;
    --radius-md: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #050712;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background-color: #050712;
    background:
        radial-gradient(circle at top left, rgba(87, 114, 255, 0.18), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(75, 239, 255, 0.17), transparent 22%),
        radial-gradient(circle at 70% 75%, rgba(163, 89, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #050712 0%, #07101f 55%, #04070f 100%);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    position: relative;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 24px;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
    z-index: -1;
}

.ambient-one {
    top: 6rem;
    left: -10rem;
    background: rgba(57, 162, 255, 0.55);
}

.ambient-two {
    right: -12rem;
    bottom: 2rem;
    background: rgba(110, 74, 255, 0.38);
}

.topbar,
.hero,
.section,
.footer {
    width: min(100%, var(--max-width));
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 10;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        backdrop-filter 180ms ease;
}

.topbar.is-scrolled {
    background: rgba(5, 10, 24, 0.72);
    border-color: rgba(136, 181, 255, 0.12);
    box-shadow: 0 20px 45px rgba(3, 8, 22, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 0 32px rgba(102, 246, 255, 0.18);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.95rem;
    color: var(--muted);
}

.nav a {
    transition: color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text);
}

.section {
    padding: 42px 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 44px;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 0 28px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero h1,
.section-heading h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1;
}

.hero h1 {
    font-size: clamp(3.1rem, 7vw, 5.8rem);
    max-width: 10.5ch;
}

.hero-text,
.glass-card p,
.feature-card p,
.progress-text,
.signup-form,
.footer,
.section-heading {
    color: var(--muted);
}

.hero-text {
    max-width: 60ch;
    margin: 24px 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #04101f;
    background: linear-gradient(135deg, var(--cyan), #9ab7ff 48%, #c7d5ff);
    box-shadow: 0 18px 40px rgba(72, 182, 255, 0.22);
}

.button-secondary {
    border-color: rgba(120, 166, 255, 0.22);
    background: rgba(10, 19, 41, 0.34);
    color: var(--text);
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 18px;
    justify-items: center;
}

.logo-panel,
.glass-card,
.feature-card,
.progress-panel,
.stat-card,
.signup-form {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(16, 30, 58, 0.78), rgba(8, 14, 30, 0.68));
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo-panel {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 460px);
    aspect-ratio: 1;
    border-radius: 36px;
    overflow: hidden;
}

.logo-ring {
    position: absolute;
    width: 76%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(102, 246, 255, 0.22) 0%, rgba(102, 246, 255, 0.02) 62%, transparent 72%),
        radial-gradient(circle at 65% 35%, rgba(162, 89, 255, 0.28), transparent 34%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-logo {
    position: relative;
    width: min(70%, 320px);
    filter: drop-shadow(0 0 40px rgba(103, 230, 255, 0.18));
    animation: float 7s ease-in-out infinite;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(100%, 460px);
}

.stat-card,
.glass-card,
.feature-card,
.signup-form {
    border-radius: var(--radius-md);
}

.stat-card {
    padding: 18px 20px;
}

.stat-label,
.feature-index {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.05rem;
    color: var(--text);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}

.grid-two,
.updates-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.glass-card {
    padding: 28px;
}

.glass-card p,
.feature-card p,
.progress-text,
.signup-form p {
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    position: relative;
    padding: 26px;
    overflow: hidden;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 246, 255, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(102, 246, 255, 0.28);
    box-shadow: 0 24px 60px rgba(19, 47, 94, 0.5);
}

.feature-card:hover::after,
.feature-card:focus-within::after {
    opacity: 1;
}

.feature-card h3,
.signup-form h3 {
    margin: 16px 0 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    color: var(--text);
}

.progress-panel {
    padding: 34px;
    border-radius: var(--radius-lg);
}

.progress-text {
    max-width: 68ch;
    margin-bottom: 24px;
}

.progress-list {
    display: grid;
    gap: 14px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(123, 155, 222, 0.12);
    border-radius: 16px;
    background: rgba(6, 13, 28, 0.52);
}

.progress-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--cyan), var(--purple));
    box-shadow: 0 0 16px rgba(102, 246, 255, 0.45);
}

.public-metrics-panel {
    display: grid;
    gap: 22px;
}

.public-metrics-head,
.public-feed-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.public-metrics-head h3,
.public-feed-title h4 {
    margin: 0 0 8px;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
}

.public-metrics-head p {
    max-width: 68ch;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.public-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.public-metric-card strong {
    font-size: clamp(1.75rem, 4vw, 2.7rem);
}

.public-feed-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 16px;
}

.public-feed-card {
    padding: 18px;
    border: 1px solid rgba(123, 155, 222, 0.12);
    border-radius: 18px;
    background: rgba(6, 13, 28, 0.52);
}

.public-feed-title span {
    color: var(--cyan);
    font-size: 0.82rem;
    white-space: nowrap;
}

.public-feed-list,
.public-health-list {
    display: grid;
    gap: 10px;
}

.public-feed-item,
.public-health-item {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid rgba(123, 155, 222, 0.1);
}

.public-feed-item strong,
.public-health-item strong {
    color: var(--text);
    line-height: 1.35;
}

.public-feed-item span,
.public-health-item span {
    color: var(--muted);
    font-size: 0.88rem;
}

.signup-form {
    display: grid;
    gap: 12px;
    padding: 28px;
}

.signup-form label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
}

.signup-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(125, 154, 221, 0.18);
    border-radius: 14px;
    background: rgba(4, 10, 23, 0.68);
    color: var(--text);
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.signup-form input:focus {
    border-color: rgba(102, 246, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 246, 255, 0.08);
}

.form-message {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.form-message.success {
    color: #d6fffb;
    background: rgba(14, 121, 112, 0.22);
}

.form-message.info {
    color: #d8e5ff;
    background: rgba(56, 96, 186, 0.22);
}

.form-message.error {
    color: #ffd9df;
    background: rgba(176, 48, 80, 0.22);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 10px;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
    transition-delay: calc(var(--delay, 0) * 90ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

@media (max-width: 1040px) {
    .hero,
    .grid-two,
    .updates-layout,
    .public-feed-layout,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 28px;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-shell {
        padding: 18px;
    }

    .topbar,
    .footer,
    .nav,
    .hero-stats {
        gap: 12px;
    }

    .topbar,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 16vw, 4rem);
    }

    .logo-panel,
    .hero-stats {
        width: 100%;
    }

    .hero-stats,
    .feature-grid,
    .public-metric-grid {
        grid-template-columns: 1fr;
    }

    .public-metrics-head,
    .public-feed-title {
        flex-direction: column;
    }

    .progress-panel,
    .glass-card,
    .feature-card,
    .signup-form {
        padding: 24px;
    }
}

.app-main {
    width: min(100%, var(--max-width));
    margin: 0 auto;
}

.app-topbar {
    margin-bottom: 8px;
}

.app-main > .section {
    padding: 22px 0;
}

.nav .is-current {
    color: var(--text);
}

.app-hero {
    min-height: 0;
    padding: 6px 0 0;
}

.app-shell-head {
    padding: 2px 0 8px;
}

.app-workspace-bar {
    padding: 18px 22px;
    display: grid;
    gap: 12px;
}

.app-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 0;
    max-width: 640px;
}

.app-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 1;
}

.app-tab-instruction {
    max-width: 820px;
    margin: 2px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.app-subnav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
    padding: 0;
}

.app-subnav-link {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(120, 166, 255, 0.16);
    color: var(--muted);
    background: rgba(8, 15, 32, 0.62);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.app-subnav-link:hover,
.app-subnav-link:focus-visible,
.app-subnav-link.is-active {
    color: var(--text);
    border-color: rgba(102, 246, 255, 0.32);
    background: linear-gradient(180deg, rgba(19, 40, 81, 0.9), rgba(10, 22, 46, 0.86));
    box-shadow: inset 0 1px 0 rgba(170, 220, 255, 0.08), 0 14px 28px rgba(2, 8, 24, 0.24);
    transform: translateY(-2px);
}

.app-nav-stack {
    display: block;
}

.app-workspace-bar .app-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.app-workspace-bar .app-subnav > .app-subnav-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(120, 166, 255, 0.16);
    background: rgba(8, 15, 32, 0.62) !important;
    color: var(--muted) !important;
    line-height: 1;
    white-space: nowrap;
}

.app-workspace-bar .app-subnav > .app-subnav-link.is-active,
.app-workspace-bar .app-subnav > .app-subnav-link:hover,
.app-workspace-bar .app-subnav > .app-subnav-link:focus-visible {
    color: var(--text) !important;
    border-color: rgba(102, 246, 255, 0.32);
    background: linear-gradient(180deg, rgba(19, 40, 81, 0.9), rgba(10, 22, 46, 0.86)) !important;
    box-shadow: inset 0 1px 0 rgba(170, 220, 255, 0.08), 0 14px 28px rgba(2, 8, 24, 0.24);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.app-grid-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-stat-card-wide {
    grid-column: span 2;
}

.app-grid-single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.app-panel {
    padding: 22px;
}

.app-panel-wide {
    grid-column: span 2;
}

.app-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.app-panel-subhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 12px;
}

.app-inline-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.app-inline-filters select {
    min-width: 180px;
}

.app-section-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    color: var(--text);
}

.app-subsection-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    color: var(--text);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    background: rgba(8, 29, 51, 0.7);
    border: 1px solid rgba(102, 246, 255, 0.16);
}

.app-muted {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.app-form {
    display: grid;
    gap: 12px;
}

.app-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

#exploreForm.app-form-grid {
    align-items: start;
    column-gap: 24px;
    row-gap: 14px;
}

#exploreForm .app-field {
    display: grid;
    gap: 8px;
}

#exploreForm .app-field-full,
#exploreForm .app-actions {
    grid-column: 1 / -1;
}

#exploreForm .app-field-logic {
    align-self: end;
}

#exploreForm .app-field-hint {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.app-form-grid textarea,
.app-form-grid label[for="content_title"],
.app-form-grid input#content_title,
.app-form-grid label[for="content_url"],
.app-form-grid input#content_url,
.app-form-grid label[for="content_snippet"],
.app-form-grid textarea#content_snippet,
.app-form-grid label[for="query"],
.app-form-grid input#query {
    grid-column: 1 / -1;
}

.app-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.app-form input,
.app-form select,
.app-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid rgba(125, 154, 221, 0.18);
    border-radius: 14px;
    background: rgba(4, 10, 23, 0.68);
    color: var(--text);
    outline: none;
}

.app-form textarea {
    min-height: 120px;
    resize: vertical;
}

.app-form input:focus,
.app-form select:focus,
.app-form textarea:focus {
    border-color: rgba(102, 246, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 246, 255, 0.08);
}

.app-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-bottom: 4px;
}

.app-actions .button {
    min-height: 52px;
    padding: 0 22px;
}

.app-list,
.app-results {
    display: grid;
    gap: 10px;
}

#exploreStatus {
    margin-top: 2px;
}

#exploreResults {
    margin-top: 0;
}

@media (max-width: 900px) {
    #exploreForm.app-form-grid {
        grid-template-columns: 1fr;
    }
}

.app-list-line,
.app-result-card {
    border: 1px solid rgba(123, 155, 222, 0.12);
    border-radius: 16px;
    background: rgba(6, 13, 28, 0.52);
}

.app-list-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text);
}

.app-result-card {
    padding: 16px;
}

.app-result-card.is-loading {
    position: relative;
}

.app-result-card.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(8, 15, 32, 0) 0%, rgba(102, 246, 255, 0.05) 50%, rgba(8, 15, 32, 0) 100%);
    animation: resultShimmer 1.35s linear infinite;
    pointer-events: none;
}

.app-result-card h3 {
    margin: 0 0 6px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
}

.app-result-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

@keyframes resultShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.app-table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.app-table-actions button,
.app-table-actions a {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(120, 166, 255, 0.2);
    background: rgba(9, 20, 40, 0.6);
    color: var(--text);
    cursor: pointer;
}

.app-bulk-actions {
    margin: 0 0 16px;
}

.app-check-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    color: var(--text);
}

.app-check-line input {
    width: auto;
    min-height: 0;
    margin-top: 4px;
}

.app-alert-triage {
    align-items: stretch;
    margin-top: 12px;
}

.app-alert-triage input,
.app-alert-triage select {
    min-width: 140px;
}

.app-report-table-wrap {
    overflow: auto;
    border: 1px solid rgba(123, 155, 222, 0.12);
    border-radius: 18px;
    background: rgba(6, 13, 28, 0.52);
}

.app-report-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.app-report-table th,
.app-report-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(123, 155, 222, 0.1);
}

.app-report-table th {
    position: sticky;
    top: 0;
    background: rgba(12, 28, 59, 0.94);
    color: var(--text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-report-table td {
    color: var(--muted);
    line-height: 1.6;
}

.app-report-table tbody tr:last-child td {
    border-bottom: 0;
}

.app-status-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.app-stat-card strong {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.app-stat-card-ingest {
    position: relative;
    overflow: hidden;
}

.app-stat-card-live {
    position: relative;
    overflow: hidden;
}

.app-stat-card-live::after {
    content: "";
    position: absolute;
    inset: auto auto 18% 16%;
    width: 38%;
    height: 54%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 246, 255, 0.18) 0%, rgba(57, 162, 255, 0.1) 36%, rgba(57, 162, 255, 0) 72%);
    filter: blur(18px);
    opacity: 0.5;
    pointer-events: none;
    animation: utcBloom 2s ease-in-out infinite;
}

.app-stat-card-ingest::after {
    display: none;
}

.app-stat-timestamp {
    position: relative;
    z-index: 1;
    display: block;
    white-space: nowrap;
    font-size: clamp(1.3rem, 1.85vw, 2.15rem) !important;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-shadow: none;
    animation: none;
}

.app-stat-ingest-date {
    color: var(--text);
}

.app-stat-ingest-time {
    text-shadow:
        0 0 14px rgba(102, 246, 255, 0.22),
        0 0 30px rgba(57, 162, 255, 0.2),
        0 0 54px rgba(57, 162, 255, 0.12);
    animation: ingestGlow 2.8s ease-in-out infinite;
}

.app-stat-date,
.app-stat-time {
    position: relative;
    z-index: 1;
    display: block;
    white-space: nowrap;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.app-stat-date {
    font-size: clamp(1.3rem, 1.85vw, 2.15rem) !important;
    letter-spacing: -0.025em;
    text-shadow:
        0 0 10px rgba(102, 246, 255, 0.16),
        0 0 22px rgba(57, 162, 255, 0.14);
    animation: utcGlow 2.2s linear infinite;
}

.app-stat-time {
    font-size: clamp(1.35rem, 1.95vw, 2.3rem) !important;
    letter-spacing: -0.03em;
    text-shadow:
        0 0 12px rgba(102, 246, 255, 0.18),
        0 0 26px rgba(57, 162, 255, 0.16);
    animation: utcGlow 2s linear infinite;
}

@keyframes ingestGlow {
    0%,
    100% {
        text-shadow:
            0 0 10px rgba(102, 246, 255, 0.16),
            0 0 22px rgba(57, 162, 255, 0.14),
            0 0 40px rgba(57, 162, 255, 0.1);
    }
    50% {
        text-shadow:
            0 0 18px rgba(102, 246, 255, 0.34),
            0 0 40px rgba(57, 162, 255, 0.28),
            0 0 68px rgba(57, 162, 255, 0.18);
    }
}

@keyframes ingestBloom {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.82;
        transform: scale(1.06);
    }
}

@keyframes utcGlow {
    0%,
    100% {
        text-shadow:
            0 0 10px rgba(102, 246, 255, 0.14),
            0 0 20px rgba(57, 162, 255, 0.12);
    }
    50% {
        text-shadow:
            0 0 16px rgba(102, 246, 255, 0.28),
            0 0 32px rgba(57, 162, 255, 0.22);
    }
}

@keyframes utcBloom {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.72;
        transform: scale(1.04);
    }
}

@media (max-width: 980px) {
    .app-grid {
        grid-template-columns: 1fr;
    }

    .app-grid-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-stat-card-wide {
        grid-column: span 2;
    }

    .app-panel-wide {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .app-form-grid {
        grid-template-columns: 1fr;
    }

    .app-workspace-bar {
        padding: 22px 20px;
    }

    .app-subnav {
        gap: 10px;
    }

    .app-subnav-link {
        flex: 1 1 calc(50% - 10px);
        min-width: 132px;
    }

    .app-grid-metrics {
        grid-template-columns: 1fr;
    }

    .app-stat-card-wide {
        grid-column: auto;
    }
}
