/* =====================================================================
   MOMO WATCH — "Neon Mojave" theme
   Built on the Telerik Default (main-dark) theme by overriding its
   --kendo-* design tokens, then layering dashboard styling on top.
   ===================================================================== */

:root {
    /* brand palette */
    --momo-ink: #07060f;
    --momo-night: #0b0a17;
    --momo-panel: #12102a;
    --momo-panel-2: #1a1738;
    --momo-line: rgba(160, 140, 255, .16);
    --momo-line-strong: rgba(160, 140, 255, .32);
    --momo-text: #efeaff;
    --momo-muted: #a39cc4;
    --momo-peach: #ff7eb6;
    --momo-pink: #ff4f8b;
    --momo-cyan: #3ef2e0;
    --momo-amber: #ffc24b;
    --momo-violet: #8b5cf6;
    --momo-red: #ff3b5c;
    --momo-green: #3ddc97;

    --momo-display: "Bungee", "Space Grotesk", system-ui, sans-serif;
    --momo-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --momo-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

    /* Telerik theme tokens: every component picks these up */
    --kendo-font-family: var(--momo-body);
    --kendo-color-app-surface: var(--momo-night);
    --kendo-color-on-app-surface: var(--momo-text);
    --kendo-color-surface: var(--momo-panel);
    --kendo-color-surface-alt: var(--momo-panel-2);
    --kendo-color-subtle: var(--momo-muted);
    --kendo-color-border: var(--momo-line);
    --kendo-color-border-alt: var(--momo-line-strong);
    --kendo-color-base: #231f48;
    --kendo-color-primary: var(--momo-pink);
    --kendo-color-tertiary: var(--momo-cyan);
    --kendo-color-info: #5aa9ff;
    --kendo-color-success: var(--momo-green);
    --kendo-color-warning: var(--momo-amber);
    --kendo-color-error: var(--momo-red);
    --kendo-border-radius-md: 8px;
    --kendo-border-radius-lg: 12px;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--momo-ink);
    color: var(--momo-text);
    font-family: var(--momo-body);
    -webkit-font-smoothing: antialiased;
}

/* desert-night backdrop: dusk glow on the horizon and a faint survey grid.
   It lives on one fixed, GPU-composited layer so it is painted once, not on every scroll or animation frame. */
body {
    background: var(--momo-ink);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    background:
        linear-gradient(rgba(160, 140, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(160, 140, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px,
        radial-gradient(1200px 520px at 78% 108%, rgba(255, 79, 139, .30), transparent 70%),
        radial-gradient(900px 480px at 12% 110%, rgba(255, 120, 170, .20), transparent 70%),
        radial-gradient(1000px 600px at 50% -20%, rgba(139, 92, 246, .22), transparent 70%),
        linear-gradient(180deg, #07060f 0%, #0d0a1f 55%, #1a0d24 100%);
}

code, .mono {
    font-family: var(--momo-mono);
}

::selection {
    background: var(--momo-pink);
    color: #fff;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(160, 140, 255, .3) transparent;
}

/* ---------------------------------------------------------------------
   Shell
   --------------------------------------------------------------------- */
.momo-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.momo-main {
    flex: 1;
    padding: 16px 18px 8px;
}

.momo-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 10px 20px 18px;
    color: var(--momo-muted);
    font-size: 12px;
    opacity: .75;
}

/* ---------------------------------------------------------------------
   App bar
   --------------------------------------------------------------------- */
.momo-appbar.k-appbar {
    background: linear-gradient(90deg, rgba(18, 16, 42, .92), rgba(26, 12, 40, .92));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--momo-line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 79, 139, .25);
    padding: 10px 20px;
    gap: 18px;
    z-index: 20;
}

.momo-appbar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 0 12px rgba(255, 120, 170, .65));
    animation: momo-bob 3.2s ease-in-out infinite;
    will-change: transform;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--momo-display);
    font-size: 26px;
    letter-spacing: .04em;
    color: var(--momo-peach);
    text-shadow: 0 0 18px rgba(255, 126, 182, .55);
}

.brand-watch {
    color: var(--momo-cyan);
    margin-left: 6px;
    text-shadow: 0 0 18px rgba(62, 242, 224, .5);
}

.brand-sub {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--momo-muted);
}

.momo-appbar .clock {
    display: flex;
    gap: 26px;
}

.clock-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.clock-label {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--momo-muted);
}

.clock-value {
    font-family: var(--momo-mono);
    font-weight: 600;
    font-size: 20px;
    color: var(--momo-cyan);
    text-shadow: 0 0 12px rgba(62, 242, 224, .45);
}

.clock-value.dim {
    color: var(--momo-text);
    text-shadow: none;
    font-size: 16px;
    margin-top: 3px;
}

.clock-chapter {
    font-weight: 600;
    font-size: 15px;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
}

.momo-appbar .actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bar-button.k-button {
    position: relative;
    gap: 6px;
    overflow: visible;
}

.bar-button .k-badge {
    position: absolute;
    top: -4px;
    right: -6px;
}

.briefing-button.k-button {
    box-shadow: 0 0 22px rgba(255, 79, 139, .45);
    font-weight: 600;
}

.threat-chip.k-chip {
    font-family: var(--momo-mono);
    font-weight: 600;
    letter-spacing: .08em;
    border-width: 1px;
}

.threat-chip.threat-advisory { background: rgba(90, 169, 255, .15); color: #9cc9ff; border-color: rgba(90, 169, 255, .5); }
.threat-chip.threat-watch { background: rgba(62, 242, 224, .14); color: var(--momo-cyan); border-color: rgba(62, 242, 224, .5); }
.threat-chip.threat-warning { background: rgba(255, 194, 75, .16); color: var(--momo-amber); border-color: rgba(255, 194, 75, .6); --pulse: rgba(255, 194, 75, .5); }
.threat-chip.threat-emergency { background: rgba(255, 59, 92, .2); color: #ff8fa3; border-color: var(--momo-red); --pulse: rgba(255, 59, 92, .65); }

/* the glow is a static shadow on a pseudo-element; only its opacity animates */
.threat-chip.threat-warning, .threat-chip.threat-emergency { position: relative; overflow: visible; }
.threat-chip.threat-warning::after, .threat-chip.threat-emergency::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    box-shadow: 0 0 16px 2px var(--pulse);
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    animation: glow-pulse 2s ease-in-out infinite;
}
.threat-chip.threat-emergency::after { animation-duration: 1.2s; }

.uplink-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: var(--momo-muted);
}

.uplink-dot.mode-native { background: var(--momo-green); box-shadow: 0 0 10px var(--momo-green); }
.uplink-dot.mode-shim { background: var(--momo-amber); box-shadow: 0 0 10px var(--momo-amber); }

/* emergency: the whole shell gets a slow red vignette */
.momo-shell.threat-emergency::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    box-shadow: inset 0 0 160px rgba(255, 59, 92, .28);
    will-change: opacity;
    animation: vignette 3s ease-in-out infinite;
}

/* ---------------------------------------------------------------------
   News ticker
   --------------------------------------------------------------------- */
.news-ticker {
    display: flex;
    align-items: stretch;
    height: 34px;
    border-bottom: 1px solid var(--momo-line);
    background: rgba(7, 6, 15, .75);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    font-family: var(--momo-display);
    font-size: 13px;
    color: #fff;
    background: linear-gradient(90deg, var(--momo-red), var(--momo-pink));
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    padding-right: 26px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 70s linear infinite;
    will-change: transform;
}

.news-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-items {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-left: 22px;
    white-space: nowrap;
    font-family: var(--momo-mono);
    font-size: 13px;
    letter-spacing: .03em;
}

.ticker-item.level-emergency { color: #ff8fa3; font-weight: 600; }
.ticker-item.level-warning { color: var(--momo-amber); }
.ticker-item.level-watch { color: var(--momo-cyan); }
.ticker-sep { opacity: .7; }

/* ---------------------------------------------------------------------
   Tile layout
   --------------------------------------------------------------------- */
.momo-tiles.k-tilelayout {
    background: transparent;
    padding: 0;
}

.momo-tiles .k-tilelayout-item.k-card {
    background: linear-gradient(180deg, rgba(26, 23, 56, .94), rgba(14, 12, 32, .96));
    border: 1px solid var(--momo-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
    overflow: hidden;
    transition: box-shadow .25s, border-color .25s;
}

.momo-tiles .k-tilelayout-item.k-card:hover {
    border-color: var(--momo-line-strong);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 79, 139, .12);
}

.momo-tiles .k-tilelayout-item-header.k-card-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--momo-line);
    background: rgba(255, 255, 255, .015);
    cursor: grab;
}

.momo-tiles .k-tilelayout-item-body.k-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.tile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tile-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.tile-title {
    font-family: var(--momo-display);
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tile-meta {
    margin-left: auto;
    font-family: var(--momo-mono);
    font-size: 11px;
    color: var(--momo-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accent-pink .tile-icon { color: var(--momo-pink); box-shadow: 0 0 14px rgba(255, 79, 139, .35); }
.accent-peach .tile-icon { color: var(--momo-peach); box-shadow: 0 0 14px rgba(255, 126, 182, .35); }
.accent-cyan .tile-icon { color: var(--momo-cyan); box-shadow: 0 0 14px rgba(62, 242, 224, .3); }
.accent-amber .tile-icon { color: var(--momo-amber); box-shadow: 0 0 14px rgba(255, 194, 75, .3); }
.accent-violet .tile-icon { color: #b89cff; box-shadow: 0 0 14px rgba(139, 92, 246, .35); }

.live-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--momo-red);
}

.live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--momo-red);
    will-change: transform, opacity;
    animation: live 1.6s ease-out infinite;
}

/* ---------------------------------------------------------------------
   Tactical map
   --------------------------------------------------------------------- */
.tactical-map {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--momo-line);
    flex-wrap: wrap;
}

.map-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-toolbar-label {
    font-size: 12px;
    color: var(--momo-muted);
}

.momo-map.k-map {
    flex: 1;
    min-height: 0;
    height: auto;
    border: 0;
    background: #0a0a14;
}

.momo-map .k-marker {
    filter: drop-shadow(0 0 6px rgba(255, 79, 139, .7));
}

.momo-map .k-attribution {
    background: rgba(7, 6, 15, .7);
    color: var(--momo-muted);
    font-size: 10px;
}

.momo-map .k-attribution a {
    color: var(--momo-cyan);
}

.map-hud {
    position: absolute;
    left: 14px;
    top: 62px;
    z-index: 3;
    padding: 10px 12px;
    min-width: 210px;
    border: 1px solid rgba(62, 242, 224, .35);
    border-radius: 10px;
    background: rgba(7, 6, 15, .86);
    font-family: var(--momo-mono);
    font-size: 11px;
    pointer-events: none;
    box-shadow: 0 0 24px rgba(62, 242, 224, .12);
}

.map-hud.scanning {
    border-color: rgba(255, 194, 75, .45);
}

.hud-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    line-height: 1.7;
}

.hud-row span {
    color: var(--momo-muted);
    letter-spacing: .12em;
}

.hud-row b {
    color: var(--momo-cyan);
    font-weight: 600;
}

.map-tip {
    max-width: 280px;
}

.map-tip-kind {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--momo-amber);
}

.map-tip-title {
    font-weight: 700;
    margin: 2px 0 4px;
}

.map-tip-text {
    font-size: 12px;
    opacity: .85;
}

/* ---------------------------------------------------------------------
   Vitals
   --------------------------------------------------------------------- */
.vitals {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 16px 14px;
    height: 100%;
    overflow: auto;
}

.vitals-gauge {
    position: relative;
    height: 170px;
    flex-shrink: 0;
}

.vitals-gauge .k-gauge {
    height: 190px;
}

.vitals-center {
    position: absolute;
    inset: 44px 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.vitals-center .big {
    font-family: var(--momo-display);
    font-size: 44px;
    line-height: 1;
    color: var(--momo-peach);
    text-shadow: 0 0 22px rgba(255, 126, 182, .55);
}

.vitals-center .small {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--momo-muted);
    margin-top: 4px;
}

.vitals-center .pct {
    font-family: var(--momo-mono);
    font-size: 12px;
    color: var(--momo-cyan);
    margin-top: 6px;
}

.vitals-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--momo-line);
}

.stat-label {
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--momo-muted);
}

.stat-value {
    font-family: var(--momo-mono);
    font-weight: 600;
    font-size: 18px;
}

.stat-value small {
    font-size: 11px;
    margin-left: 2px;
    color: var(--momo-muted);
    font-weight: 400;
}

.vitals-mood {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mood-chip.k-chip {
    background: rgba(255, 126, 182, .16);
    border-color: rgba(255, 126, 182, .5);
    color: var(--momo-peach);
    text-transform: capitalize;
}

.vitals-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--momo-text);
    opacity: .9;
    font-style: italic;
}

/* ---------------------------------------------------------------------
   Chaos index
   --------------------------------------------------------------------- */
.chaos {
    display: grid;
    grid-template-columns: 118px 1fr;
    height: 100%;
    min-height: 0;
}

.chaos-now {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 18px;
}

.chaos-value {
    font-family: var(--momo-display);
    font-size: 54px;
    line-height: 1;
    color: var(--momo-amber);
    text-shadow: 0 0 24px rgba(255, 194, 75, .45);
}

.chaos-caption {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--momo-muted);
}

.chaos-chart {
    min-height: 0;
    padding: 6px 8px 6px 0;
}

.chaos-chart .k-chart {
    height: 100%;
}

/* ---------------------------------------------------------------------
   Route tracker
   --------------------------------------------------------------------- */
.route-tracker {
    padding: 12px 18px 0;
    height: 100%;
    overflow-x: auto;
}

.momo-stepper.k-stepper {
    min-width: 1000px;
}

.momo-stepper .k-step-label .k-step-text {
    font-size: 12px;
    max-width: 110px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
}

.momo-stepper .k-step-indicator {
    background: var(--momo-panel-2);
    border-color: var(--momo-line-strong);
    color: var(--momo-muted);
}

.momo-stepper .wp-done .k-step-indicator {
    background: rgba(255, 79, 139, .2);
    border-color: var(--momo-pink);
    color: var(--momo-pink);
}

.momo-stepper .wp-current .k-step-indicator {
    background: var(--momo-peach);
    border-color: var(--momo-peach);
    color: #2a0f12;
    box-shadow: 0 0 0 6px rgba(255, 120, 170, .2), 0 0 26px rgba(255, 120, 170, .8);
}

.momo-stepper .wp-current .k-step-label {
    color: var(--momo-peach);
    font-weight: 700;
}

.momo-stepper.not-started .wp-current .k-step-indicator {
    background: var(--momo-panel-2);
    border-color: var(--momo-line-strong);
    color: var(--momo-muted);
    box-shadow: none;
    animation: none;
}

.momo-stepper .k-progressbar .k-selected {
    background: linear-gradient(90deg, var(--momo-pink), var(--momo-peach));
}

/* ---------------------------------------------------------------------
   Social feed
   --------------------------------------------------------------------- */
.social-feed {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.feed-filters {
    padding: 10px 12px;
    border-bottom: 1px solid var(--momo-line);
    overflow-x: auto;
}

.feed-filters .k-chip-list {
    flex-wrap: wrap;
}

.feed-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    position: relative;
}

.feed-list.k-listview {
    background: transparent;
    border: 0;
}

.post {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--momo-line);
    animation: post-in .6s ease-out;
}

.post:hover {
    background: rgba(255, 255, 255, .025);
}

.post.citizen {
    background: repeating-linear-gradient(135deg, rgba(255, 194, 75, .05) 0 10px, transparent 10px 20px);
}

.post-avatar.k-avatar {
    font-size: 20px;
    background: var(--momo-panel-2);
    border: 1px solid var(--momo-line-strong);
}

.post-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 700;
}

.post-verified {
    color: var(--momo-cyan);
}

.post-handle, .post-time {
    color: var(--momo-muted);
    font-size: 12px;
}

.post-time::before {
    content: "·";
    margin-right: 6px;
}

.post-text {
    margin: 4px 0 8px;
    line-height: 1.45;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.post-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--momo-muted);
}

.post-platform {
    font-family: var(--momo-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.platform-chirp .post-platform { color: #5aa9ff; }
.platform-snapgram .post-platform { color: #ff79c6; }
.platform-tiktak .post-platform { color: var(--momo-cyan); }
.platform-threadit .post-platform { color: #ff8b3d; }
.platform-kvgsnews .post-platform { color: var(--momo-amber); }
.platform-mojavehamradio .post-platform { color: var(--momo-green); }
.platform-citizenuplink .post-platform { color: var(--momo-amber); }

.post-metric, .post-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--momo-muted);
}

/* ---------------------------------------------------------------------
   Satellite imagery
   --------------------------------------------------------------------- */
.sat-feed {
    height: 100%;
    min-height: 0;
    position: relative;
}

.sat-empty {
    position: absolute;
    inset: 12px;
    display: grid;
    place-items: center;
}

.sat-empty > span {
    position: absolute;
    font-family: var(--momo-mono);
    color: var(--momo-muted);
}

.sat-carousel.k-scrollview {
    border: 0;
    background: #05050b;
}

.sat-frame {
    position: relative;
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.sat-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sat-hud {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.sat-hud span, .sat-coords {
    font-family: var(--momo-mono);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(7, 6, 15, .75);
    border: 1px solid rgba(62, 242, 224, .4);
    color: var(--momo-cyan);
}

.sat-coords {
    position: absolute;
    top: 12px;
    right: 12px;
}

.sat-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 16px 44px;
    background: linear-gradient(180deg, transparent, rgba(7, 6, 15, .92) 45%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: end;
}

.sat-title {
    grid-column: 1;
    font-family: var(--momo-display);
    font-size: 15px;
    letter-spacing: .03em;
}

.sat-text {
    grid-column: 1;
    font-size: 13px;
    color: var(--momo-text);
    opacity: .85;
    line-height: 1.4;
}

.enhance-button.k-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    box-shadow: 0 0 18px rgba(62, 242, 224, .4);
}

.sat-carousel .k-scrollview-nav-wrap {
    bottom: 6px;
}

/* enhance window */
.enhance-window .k-window-content {
    padding: 0;
}

.enhance-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 420px;
}

.enhance-image {
    position: relative;
    overflow: hidden;
    background: #000;
}

.enhance-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: enhance-zoom 2.6s cubic-bezier(.2, .7, .1, 1) forwards;
    filter: contrast(1.15) saturate(1.2);
}

.enhance-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(62, 242, 224, .35) 50%, transparent 52%);
    background-size: 100% 220%;
    animation: scan 2.2s linear 2;
    mix-blend-mode: screen;
    pointer-events: none;
}

.enhance-reticle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(62, 242, 224, .8);
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .12);
    animation: reticle 2.6s ease-out forwards;
    will-change: transform, opacity;
}

.enhance-side {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.enhance-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    margin: 0;
    font-family: var(--momo-mono);
    font-size: 12px;
}

.enhance-meta dt {
    color: var(--momo-muted);
}

.enhance-meta dd {
    margin: 0;
    color: var(--momo-cyan);
}

.enhance-label, .archive-heading {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--momo-muted);
    margin-bottom: 6px;
}

.typewriter {
    margin: 0;
    font-family: var(--momo-mono);
    font-size: 13px;
    line-height: 1.6;
    animation: decrypt 1.6s steps(24) both;
}

.enhance-qr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed rgba(62, 242, 224, .5);
    font-size: 12px;
    color: var(--momo-muted);
}

.enhance-qr .k-qrcode {
    border-radius: 6px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Insurance claims
   --------------------------------------------------------------------- */
.claims {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding-bottom: 10px;
}

.claims-chart {
    flex: 1;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* fixed square box, centered: the donut and its overlaid total always share the same center */
.claims-donut {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto;
}

.claims-total {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.claims-amount {
    font-family: var(--momo-display);
    font-size: 26px;
    color: #d6c8ff;
    text-shadow: 0 0 18px rgba(139, 92, 246, .6);
}

.claims-caption {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--momo-muted);
}

.claims-legend {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
}

.claims-legend li {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 8px;
    align-items: center;
}

.swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-value {
    font-family: var(--momo-mono);
    color: var(--momo-muted);
}

.legend-empty {
    color: var(--momo-muted);
    display: block !important;
    text-align: center;
}

/* ---------------------------------------------------------------------
   Incident log grid
   --------------------------------------------------------------------- */
.incident-grid.k-grid {
    border: 0;
    background: transparent;
    height: 100%;
    font-size: 13px;
}

.incident-grid .k-grid-header,
.incident-grid .k-grid-header-wrap,
.incident-grid .k-table-thead {
    background: rgba(255, 255, 255, .03);
}

.incident-grid .k-table-th {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--momo-muted);
}

.incident-grid .k-table-row {
    background: transparent;
    cursor: pointer;
}

.incident-grid .k-table-row.k-table-alt-row {
    background: rgba(255, 255, 255, .018);
}

.incident-grid .k-table-row:hover {
    background: rgba(255, 79, 139, .08);
}

.incident-grid .k-grid-content,
.incident-grid .k-grid-container {
    background: transparent;
}

.log-kind {
    font-family: var(--momo-mono);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.kind-sighting { color: var(--momo-cyan); }
.kind-advisory { color: #9cc9ff; }
.kind-watch { color: var(--momo-cyan); }
.kind-warning { color: var(--momo-amber); }
.kind-emergency { color: #ff8fa3; }

.severity {
    display: inline-flex;
    gap: 3px;
}

.pip {
    width: 12px;
    height: 6px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .1);
}

.sev-1 .pip.on, .sev-2 .pip.on { background: var(--momo-cyan); }
.sev-3 .pip.on { background: var(--momo-amber); }
.sev-4 .pip.on, .sev-5 .pip.on { background: var(--momo-pink); box-shadow: 0 0 6px var(--momo-pink); }

.grid-empty {
    color: var(--momo-muted);
}

/* ---------------------------------------------------------------------
   Classified archive
   --------------------------------------------------------------------- */
.archive-window .k-window-content {
    padding: 0;
}

.archive {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 440px;
}

.archive-files {
    padding: 16px;
    border-right: 1px solid var(--momo-line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, .02);
}

.archive-file.k-button {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    font-size: 13px;
}

.archive-file.locked {
    font-family: var(--momo-mono);
    font-size: 11px;
    opacity: .7;
}

.archive-file.active {
    background: rgba(255, 79, 139, .14);
    color: var(--momo-pink);
}

.archive-empty {
    color: var(--momo-muted);
    font-size: 13px;
}

.archive-unlock {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--momo-line-strong);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.archive-unlock label {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--momo-muted);
}

.codeword-box input {
    font-family: var(--momo-mono);
    letter-spacing: .15em;
    text-transform: uppercase;
}

.archive-message {
    font-family: var(--momo-mono);
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 6px;
}

.archive-message.denied { color: #ff8fa3; background: rgba(255, 59, 92, .12); }
.archive-message.granted { color: var(--momo-green); background: rgba(61, 220, 151, .12); }

.archive-doc {
    position: relative;
    padding: 28px 32px;
    background:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 100% 26px,
        #f4ecd8;
    color: #2b2418;
}

.archive-doc h3 {
    font-family: var(--momo-mono);
    font-size: 16px;
    text-transform: uppercase;
    margin: 30px 0 14px;
}

.archive-doc .typewriter {
    font-size: 14px;
    color: #2b2418;
}

.doc-stamp {
    position: absolute;
    top: 18px;
    right: 22px;
    padding: 4px 12px;
    border: 3px solid #c0283e;
    color: #c0283e;
    font-family: var(--momo-display);
    font-size: 13px;
    transform: rotate(6deg);
    opacity: .85;
}

.doc-foot {
    margin-top: 22px;
    font-family: var(--momo-mono);
    font-size: 10px;
    letter-spacing: .15em;
    color: #7a6d55;
}

.doc-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #7a6d55;
    gap: 6px;
    font-size: 14px;
}

/* ---------------------------------------------------------------------
   Agent uplink
   --------------------------------------------------------------------- */
.uplink-window .k-window-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uplink-status {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--momo-line);
    font-size: 13px;
    line-height: 1.5;
}

.uplink-status.mode-native { border-color: rgba(61, 220, 151, .45); }
.uplink-status.mode-shim { border-color: rgba(255, 194, 75, .45); }

.uplink-tabs {
    flex: 1;
    min-height: 0;
}

.uplink-tabs .k-tabstrip-content {
    overflow: auto;
}

.tool-group-title {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--momo-muted);
    margin: 14px 0 6px;
}

.tool-card {
    padding: 10px 12px;
    border: 1px solid var(--momo-line);
    border-radius: 10px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, .02);
}

.tool-card.source-momo {
    border-left: 3px solid var(--momo-peach);
}

.tool-card.source-telerik {
    border-left: 3px solid var(--momo-cyan);
}

.tool-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-name code {
    font-weight: 600;
    color: var(--momo-text);
}

.tool-name .k-button {
    margin-left: auto;
}

.tool-desc {
    font-size: 12px;
    color: var(--momo-muted);
    margin-top: 4px;
    line-height: 1.45;
}

.tool-empty {
    color: var(--momo-muted);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tester {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tester-row {
    display: flex;
    gap: 8px;
}

.tester-label {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--momo-muted);
}

.tester-schema pre, .tester-result {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: #06050d;
    border: 1px solid var(--momo-line);
    font-family: var(--momo-mono);
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 300px;
    overflow: auto;
    color: #c9f7f1;
}

.tester-schema summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--momo-muted);
}

/* ---------------------------------------------------------------------
   Briefing
   --------------------------------------------------------------------- */
.briefing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.briefing-mark {
    width: 84px;
    justify-self: center;
    filter: drop-shadow(0 0 20px rgba(255, 120, 170, .7));
    animation: momo-bob 3s ease-in-out infinite;
    will-change: transform;
}

.briefing-lede {
    font-size: 17px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}


.briefing-list {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 12px 18px;
    margin: 0;
}

.briefing-list dt {
    font-family: var(--momo-display);
    font-size: 13px;
    color: var(--momo-peach);
    padding-top: 2px;
}

.briefing-list dd {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
    color: var(--momo-text);
}

/* ---------------------------------------------------------------------
   Windows, dialogs & toasts
   --------------------------------------------------------------------- */
.k-window {
    border: 1px solid var(--momo-line-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 79, 139, .15);
}

.k-window-titlebar {
    background: linear-gradient(90deg, rgba(255, 79, 139, .18), rgba(139, 92, 246, .14));
    border-bottom: 1px solid var(--momo-line);
}

.k-window-title {
    font-family: var(--momo-display);
    font-size: 14px;
    letter-spacing: .05em;
    gap: 8px;
    display: flex;
    align-items: center;
}

.k-overlay {
    background: rgba(4, 3, 10, .82);
}

.momo-toasts .k-notification {
    max-width: 420px;
    font-size: 13px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    border-radius: 10px;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .hide-sm { display: none !important; }
    .momo-appbar.k-appbar { flex-wrap: wrap; }
    .momo-tiles .k-tilelayout-item { grid-row-end: span 6 !important; }
    .momo-tiles .tile-route { grid-row-end: span 2 !important; }
    .momo-tiles .tile-chaos { grid-row-end: span 3 !important; }
    .momo-tiles .tile-feed { grid-row-end: span 8 !important; }
    .enhance-grid, .archive { grid-template-columns: 1fr; }
    .enhance-image { height: 300px; }
    .briefing-list { grid-template-columns: 1fr; }
    .briefing-list dd { margin-bottom: 8px; }
}

@media (max-width: 640px) {
    .momo-main { padding: 10px; }
    .brand-sub { display: none; }
    .vitals-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ---------------------------------------------------------------------
   Motion
   --------------------------------------------------------------------- */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes momo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes live { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
@keyframes glow-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes vignette { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes post-in { from { background: rgba(255, 79, 139, .16); } to { background: transparent; } }
@keyframes enhance-zoom { from { transform: scale(1); filter: blur(3px) contrast(1); } to { transform: scale(1.35); filter: blur(0) contrast(1.15) saturate(1.2); } }
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 120%; } }
@keyframes reticle { from { transform: translate(-50%, -50%) scale(3.5); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes decrypt { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------------------------------------------------------------------
   Blazor plumbing
   --------------------------------------------------------------------- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #222;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.clock-day {
    font-family: var(--momo-display);
    font-size: 13px;
    color: var(--momo-peach);
    text-shadow: 0 0 12px rgba(255, 126, 182, .5);
    margin-right: 6px;
    vertical-align: 2px;
}

@media (max-width: 640px) {
    .momo-appbar .actions { flex-wrap: wrap; }
    .momo-appbar .clock { gap: 12px; }
}

.briefing-goals {
    margin: 0;
    padding: 14px 18px 14px 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 126, 182, .35);
    background: rgba(255, 79, 139, .07);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    line-height: 1.45;
}

.briefing-goals li::marker {
    font-family: var(--momo-display);
    color: var(--momo-peach);
}

.momo-stepper .wp-unknown .k-step-indicator {
    border-style: dashed;
    color: var(--momo-amber);
}

.momo-stepper .wp-unknown .k-step-label {
    font-family: var(--momo-display);
    color: var(--momo-amber);
}

/* OSM Night: standard OpenStreetMap tiles, inverted into a dark basemap.
   The filter sits on the tile layer only, so markers and the track keep their colors. */
.momo-map.tiles-night .k-layer:has(> img),
.momo-map.tiles-night .k-tile-layer {
    filter: invert(1) hue-rotate(200deg) brightness(.85) contrast(.9) saturate(.6);
}

.momo-footer a {
    color: var(--momo-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(62, 242, 224, .35);
}

.momo-footer a:hover {
    color: #fff;
    border-bottom-color: var(--momo-cyan);
}
