/* ==========================================================================
   How High is Hype? | Daily Macro & Market Briefing Design System
   Modern Neon Dark Glassmorphism CSS
   ========================================================================== */

:root {
    --bg-color: #030712;
    --card-bg: rgba(17, 24, 39, 0.65);
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --neon-blue: #0ea5e9;
    --neon-purple: #a855f7;
    --neon-green: #10b981;
    --neon-orange: #f97316;
    --neon-red: #ef4444;
    --neon-yellow: #facc15;
    --glow-color: rgba(14, 165, 233, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.08) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.08) 0, transparent 50%),
        radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.03) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 24px;
}

/* Background Watermark */
.bg-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 6.5vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.012);
    pointer-events: none;
    white-space: nowrap;
    z-index: -1;
    font-family: 'Outfit', sans-serif;
    text-align: center;
    line-height: 1.1;
    user-select: none;
}

/* Container Layout */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: rgba(17, 24, 39, 0.45);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.header-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-title p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.header-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.header-refresh-details {
    max-width: min(560px, 100%);
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.45;
}

.header-refresh-details summary,
.history-details summary,
.indicator-details summary,
.briefing-details summary,
.risk-details summary,
.investment-trace-details summary,
.decision-evidence-details summary,
.risk-attribution-details summary {
    cursor: pointer;
    color: #7dd3fc;
    text-underline-offset: 3px;
}

.header-refresh-details > div,
.history-details-content {
    margin-top: 6px;
    max-width: min(560px, calc(100vw - 32px));
    overflow-wrap: anywhere;
    white-space: pre-line;
    text-align: left;
}

.input-freshness-banner {
    max-width: min(620px, 100%);
    padding: 5px 8px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: 8px;
    background: rgba(250, 204, 21, 0.06);
    color: #fde68a;
    font-size: 10.5px;
    line-height: 1.45;
    text-align: left;
    overflow-wrap: anywhere;
}

.input-freshness-banner[data-status="verified_current"] {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.06);
    color: #a7f3d0;
}

.input-freshness-banner[data-status="report_generation_failed"],
.input-freshness-banner[data-status="observations_stale"],
.input-freshness-banner[data-status="observations_missing"] {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.06);
    color: #fecaca;
}

.input-freshness-banner[data-status="history_only"] {
    border-color: rgba(125, 211, 252, 0.28);
    background: rgba(125, 211, 252, 0.06);
    color: #bae6fd;
}

.status-badge {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Alert Banner (Exogenous Shock) */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    animation: alertPulse 2.5s infinite alternate;
}

.alert-banner.hidden {
    display: none !important;
}

/* Cycle × Heat × Risk decision summary */
.research-status-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 18px 0 10px;
    padding: 11px 14px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.06);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.research-status-banner strong {
    color: #fde68a;
    white-space: nowrap;
}

.decision-model-note {
    margin: 8px 0 4px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}

.operational-signal-details {
    margin-top: 8px;
    color: var(--text-secondary);
}

.operational-signal-details > summary {
    cursor: pointer;
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 0;
}

.decision-card {
    display: grid;
    grid-template-columns: minmax(230px, 0.8fr) 2.2fr;
    gap: 22px;
    align-items: stretch;
    padding: 22px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.24);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.decision-main h2 {
    border: 0;
    padding: 0;
    margin: 4px 0 8px;
}

.decision-kicker {
    color: var(--neon-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.decision-score-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.decision-score-row strong {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    line-height: 1;
    color: var(--neon-green);
}

.decision-score-row > span:not(.decision-signal) {
    color: var(--text-secondary);
    font-size: 13px;
}

.decision-signal {
    margin-left: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--neon-green);
    font-size: 12px;
    font-weight: 800;
}

.decision-axis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.decision-axis {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(3, 7, 18, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.decision-axis > span,
.decision-axis small {
    color: var(--text-secondary);
    font-size: 11px;
}

.decision-axis strong {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    color: var(--text-primary);
}

.alert-icon {
    font-size: 28px;
    line-height: 1;
}

.alert-text strong {
    font-size: 15px;
    color: #fca5a5;
    display: block;
    margin-bottom: 4px;
}

.alert-text p {
    font-size: 13px;
    color: #e5e7eb;
    line-height: 1.5;
}

@keyframes alertPulse {
    0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }
    100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.35); border-color: rgba(239, 68, 68, 0.7); }
}

/* Glass Cards & Layout Grids */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr;
    gap: 24px;
}

/* Headings */
h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    border-left: 3px solid var(--neon-blue);
    padding-left: 10px;
}

h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Info Row Styles */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-row .val {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-primary);
}

.data-meta {
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.45;
    margin: -4px 0 10px;
    opacity: 0.9;
}

.indicator-details {
    margin: 4px 0 8px;
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.5;
}

.indicator-details-content {
    margin-top: 6px;
    padding: 8px 10px;
    border-left: 2px solid rgba(125, 211, 252, 0.35);
    background: rgba(255, 255, 255, 0.02);
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.indicator-row {
    min-width: 0;
    padding: 7px 0 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.indicator-row-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
}

.indicator-row-heading > * { min-width: 0; overflow-wrap: anywhere; }
.indicator-row-heading .indicator-value { text-align: right; font-family: 'Outfit', sans-serif; white-space: normal; }
.indicator-row-meta,
.indicator-row-status {
    margin-top: 3px;
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.decision-evidence-details,
.risk-attribution-details {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 10.5px;
}

.decision-evidence-details summary,
.risk-attribution-details summary { padding: 4px 0; }

.risk-attribution-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.risk-attribution-chip { font-weight: 600; }

.liquidity-basis {
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.45;
    padding: 4px 0 0;
}

.liquidity-evidence-details {
    margin: 5px 0 9px;
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.45;
}

.liquidity-evidence-details summary {
    cursor: pointer;
    color: #7dd3fc;
    padding: 4px 0;
}

.liquidity-breakdown {
    border: 1px solid rgba(14, 165, 233, 0.16);
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.04);
    padding: 8px 10px;
    color: var(--text-secondary);
    font-size: 11px;
}

.liquidity-breakdown summary {
    cursor: pointer;
    color: var(--neon-blue);
    font-weight: 700;
    user-select: none;
}

.asset-flow-breakdown {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 9px;
}

.asset-flow-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    color: var(--text-primary);
    font-size: 11px;
}

.asset-flow-summary-line small {
    color: var(--text-secondary);
    font-size: 10px;
    text-align: right;
}

.asset-flow-asset-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 10.5px;
}

.asset-flow-asset-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.asset-flow-asset-row .positive { color: var(--neon-green); }
.asset-flow-asset-row .negative { color: #f87171; }

/* ==========================================================================
   Altimeter Gauge & Card (EHI Specific)
   ========================================================================== */

.altimeter-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    align-self: start;
    color: #f8fafc;
    background:
        radial-gradient(circle at 84% 8%, rgba(125, 211, 252, 0.22), transparent 28%),
        radial-gradient(circle at 15% 42%, rgba(34, 211, 238, 0.12), transparent 34%),
        linear-gradient(180deg, #112a47 0%, #0b415e 39%, #08354f 62%, #030b18 100%);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 24px;
    padding: 22px;
    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.altimeter-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 34%),
        radial-gradient(circle at 50% 120%, rgba(14, 165, 233, 0.18), transparent 46%);
}

.altimeter-card-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.altimeter-card h2 {
    margin: 3px 0 0;
    color: #f8fafc !important;
    border-left-color: #38bdf8 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.altimeter-eyebrow {
    display: block;
    padding-left: 13px;
    color: #7dd3fc;
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.35px;
}

.altimeter-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    margin-top: 2px;
    padding: 7px 10px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 999px;
    background: rgba(2, 8, 23, 0.35);
    color: #bae6fd;
    font-size: 9.5px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.altimeter-refresh-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
    animation: snapshotPulse 2.4s ease-in-out infinite;
}

@keyframes snapshotPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.88); }
    50% { opacity: 1; transform: scale(1); }
}

.altimeter-percentile {
    position: relative;
    z-index: 5;
    display: none;
    margin-bottom: 10px;
    padding: 8px 11px;
    border-radius: 10px;
    text-align: left;
    font-size: 10.5px;
    line-height: 1.45;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.altimeter-meta-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.altimeter-meta-item {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(186, 230, 253, 0.12);
    border-radius: 10px;
    background: rgba(2, 8, 23, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.altimeter-meta-item span,
.altimeter-meta-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.altimeter-meta-item span {
    margin-bottom: 3px;
    color: rgba(186, 230, 253, 0.7);
    font-size: 8.5px;
}

.altimeter-meta-item strong {
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
}

.altimeter-formula {
    position: relative;
    z-index: 5;
    margin: 7px 2px 0;
    color: rgba(226, 232, 240, 0.65);
    font-size: 9px;
    line-height: 1.4;
}

.altimeter-stage {
    position: relative;
    z-index: 3;
    min-height: 430px;
    margin-top: 13px;
    overflow: hidden;
    border: 1px solid rgba(186, 230, 253, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(to bottom,
            rgba(170, 205, 236, 0.22) 0%,
            rgba(97, 174, 211, 0.16) 25%,
            rgba(24, 108, 141, 0.12) 52%,
            rgba(7, 47, 77, 0.16) 74%,
            rgba(1, 8, 22, 0.4) 100%);
    box-shadow:
        inset 0 0 42px rgba(2, 8, 23, 0.28),
        0 10px 24px rgba(0, 0, 0, 0.12);
}

.altimeter-stage::before {
    content: "";
    position: absolute;
    inset: 5% 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(224, 242, 254, 0.12) 0,
        rgba(224, 242, 254, 0.12) 1px,
        transparent 1px,
        transparent 20%
    );
}

.altimeter-stage::after {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 7%;
    left: 98px;
    width: 72px;
    border-radius: 999px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.12), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
}

/* Background Illustrations & Galaxy Spiral */
.galaxy-spiral {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 124px;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(255, 243, 205, 0.52) 0%, rgba(244, 114, 182, 0.28) 42%, rgba(139, 92, 246, 0.1) 70%, transparent 100%);
    border-radius: 50%;
    transform: rotate(-15deg);
    filter: blur(5px);
    opacity: 0.68;
    animation: galaxyPulse 6s infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes galaxyPulse {
    0% { transform: rotate(-15deg) scale(0.95); opacity: 0.75; }
    100% { transform: rotate(-10deg) scale(1.05); opacity: 0.95; }
}

.deco-deepsea { position: absolute; bottom: 5%; right: 9%; font-size: 30px; opacity: 0.45; pointer-events: none; z-index: 1; }
.deco-anchor { position: absolute; bottom: 13%; right: 28%; font-size: 26px; opacity: 0.45; pointer-events: none; z-index: 1; transform: rotate(-12deg); }
.deco-sea-boat { position: absolute; bottom: 28%; right: 12%; font-size: 32px; opacity: 0.68; animation: boatRock 5s infinite ease-in-out; pointer-events: none; z-index: 1; }
.deco-ground-city { position: absolute; bottom: 47%; right: 9%; font-size: 34px; opacity: 0.62; pointer-events: none; z-index: 1; }
.deco-ground-family { position: absolute; bottom: 49%; right: 29%; font-size: 25px; opacity: 0.58; pointer-events: none; z-index: 1; }
.deco-sky-plane { position: absolute; bottom: 67%; right: 13%; font-size: 31px; opacity: 0.72; pointer-events: none; z-index: 1; transform: rotate(-8deg); animation: planeFly 4s infinite ease-in-out; }
.deco-sky-cloud { position: absolute; bottom: 69%; right: 31%; font-size: 29px; opacity: 0.55; pointer-events: none; z-index: 1; }
.deco-space-ufo { position: absolute; top: 7%; right: 10%; font-size: 34px; opacity: 0.78; pointer-events: none; z-index: 1; animation: ufoFloat 4s infinite ease-in-out; }

.altitude-band-label {
    position: absolute;
    right: 12px;
    z-index: 2;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(2, 8, 23, 0.38);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
}

.altitude-band-hot { top: 19%; color: #fecaca; border: 1px solid rgba(248, 113, 113, 0.25); }
.altitude-band-neutral { top: 49%; color: #bae6fd; border: 1px solid rgba(125, 211, 252, 0.22); }
.altitude-band-cool { bottom: 17%; color: #a7f3d0; border: 1px solid rgba(52, 211, 153, 0.22); }

@keyframes boatRock {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-2px); }
}

@keyframes planeFly {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-4px); }
}

@keyframes ufoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(4deg); }
}

/* Altimeter Vertical Gauge */
.altimeter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 430px;
    position: relative;
    padding: 30px 0 36px 2px;
    z-index: 4;
}

.thermometer-ticks-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 350px;
    width: 72px;
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(224, 242, 254, 0.78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    z-index: 5;
    user-select: none;
    text-align: right;
}

.thermometer-ticks-container span {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}

.thermometer-ticks-container b {
    min-width: 24px;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
}

.thermometer-wrapper {
    position: relative;
    width: 30px;
    height: 350px;
    background: rgba(224, 242, 254, 0.13);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 3px solid rgba(224, 242, 254, 0.48);
    border-radius: 20px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    box-shadow: 
        inset 2px 2px 6px rgba(255, 255, 255, 0.2), 
        inset -2px -2px 6px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.25),
        0 0 24px rgba(56, 189, 248, 0.12);
    z-index: 5;
}

.thermometer-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #3b82f6 0%, #06b6d4 20%, #10b981 40%, #f59e0b 70%, #ef4444 100%);
    border-radius: 14px;
    transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.thermometer-bulb {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    bottom: -20px;
    left: -8px;
    z-index: 6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.6);
}

.altimeter-pointer-box {
    position: absolute;
    left: 86px;
    bottom: 0%;
    display: flex;
    align-items: center;
    transition: bottom 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.pointer-bubble {
    min-width: 126px;
    background: rgba(2, 8, 23, 0.82);
    border: 1px solid rgba(125, 211, 252, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
    margin-left: 8px;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 0 18px rgba(56, 189, 248, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    position: absolute;
    left: 48px;
    z-index: 11;
}

.pointer-bubble::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-left: 1px solid rgba(125, 211, 252, 0.55);
    border-bottom: 1px solid rgba(125, 211, 252, 0.55);
    background: rgba(2, 8, 23, 0.88);
    transform: translateY(-50%) rotate(45deg);
}

.pointer-bubble small {
    display: block;
    margin-bottom: 1px;
    color: #7dd3fc;
    font-size: 8px;
    font-weight: 600;
}

.pointer-bubble span {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.1px;
}

.altimeter-card.heat-zone-hot .pointer-bubble {
    border-color: rgba(248, 113, 113, 0.72);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 0 20px rgba(239, 68, 68, 0.18);
}

.altimeter-card.heat-zone-hot .pointer-bubble small { color: #fca5a5; }
.altimeter-card.heat-zone-warm .pointer-bubble { border-color: rgba(251, 191, 36, 0.7); }
.altimeter-card.heat-zone-warm .pointer-bubble small { color: #fde68a; }
.altimeter-card.heat-zone-cool .pointer-bubble { border-color: rgba(52, 211, 153, 0.68); }
.altimeter-card.heat-zone-cool .pointer-bubble small { color: #a7f3d0; }

.altimeter-pointer-emoji {
    font-size: 35px;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    z-index: 10;
}

.rocket-exhaust {
    position: absolute;
    bottom: -16px;
    left: 6px;
    width: 12px;
    height: 18px;
    background: linear-gradient(to bottom, #f97316 0%, #ef4444 60%, transparent 100%);
    border-radius: 50%;
    filter: blur(1.5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: flameFlicker 0.2s infinite alternate;
}

@keyframes flameFlicker {
    0% { transform: scaleY(0.9) scaleX(0.9); }
    100% { transform: scaleY(1.2) scaleX(1.1); }
}

/* Cycle Step Timeline */
.cycle-diagnosis-title {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 2px 9px;
    color: rgba(248, 250, 252, 0.96);
    font-size: 12.5px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.cycle-diagnosis-title span::before {
    content: "↻";
    margin-right: 6px;
    color: #38bdf8;
}

.cycle-diagnosis-title small {
    color: rgba(186, 230, 253, 0.58);
    font-size: 8.5px;
    font-weight: 600;
}

.cycle-timeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(2, 8, 23, 0.68);
    border: 1px solid rgba(125, 211, 252, 0.13);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    z-index: 5;
    position: relative;
}

.cycle-step {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.cycle-step.active {
    font-weight: 800;
    transform: scale(1.05);
}

.cycle-step.active-growth { color: #34d399 !important; text-shadow: 0 0 10px rgba(52, 211, 153, 0.5); }
.cycle-step.active-slowdown { color: #fbbf24 !important; text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.cycle-step.active-recession { color: #f87171 !important; text-shadow: 0 0 10px rgba(248, 113, 113, 0.5); }
.cycle-step.active-recovery { color: #60a5fa !important; text-shadow: 0 0 10px rgba(96, 165, 250, 0.5); }
.cycle-step.active-transition {
    color: #c4b5fd !important;
    text-shadow: 0 0 10px rgba(196, 181, 253, 0.65);
    outline: 1px dashed rgba(196, 181, 253, 0.65);
    outline-offset: 4px;
}

.cycle-arrow {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
}

/* ==========================================================================
   Tables & Briefing Text
   ========================================================================== */

.trends-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.trends-table th {
    text-align: left;
    padding: 9px 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.trends-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-family: 'Outfit', 'Inter', sans-serif;
}

.trends-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.trend-up { color: #34d399; font-weight: 600; }
.trend-down { color: #f87171; font-weight: 600; }

.briefing-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: #e5e7eb;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
}

.briefing-text::-webkit-scrollbar {
    width: 6px;
}

.briefing-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
}

.briefing-summary {
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.55;
}

.briefing-details {
    color: var(--text-secondary);
    font-size: 12px;
}

.briefing-details-content,
.risk-details-content,
.investment-trace-content {
    margin-top: 7px;
    padding: 9px 10px;
    border-left: 2px solid rgba(125, 211, 252, 0.3);
    background: rgba(255, 255, 255, 0.02);
    overflow-wrap: anywhere;
}

.history-details {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.5;
}

.heat-chart-tooltip {
    width: min(270px, calc(100vw - 24px));
    max-height: 38vh;
    overflow: auto;
    overflow-wrap: anywhere;
    white-space: normal;
    padding: 8px 10px;
    line-height: 1.45;
}

.heat-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    padding: 2px 4px 0;
    color: var(--text-secondary);
    font-size: 11px;
}

.heat-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.heat-legend-line {
    display: inline-block;
    width: 22px;
    height: 0;
    border-top-width: 2px;
    border-top-color: #0ea5e9;
    border-top-style: solid;
}

.heat-legend-line-dashed {
    border-top-color: #f97316;
    border-top-style: dashed;
}

.heat-legend-diamond {
    color: #f97316;
    font-size: 11px;
    font-style: normal;
    line-height: 1;
}

.heat-legend-gap {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 1px solid #94a3b8;
    border-radius: 50%;
}

.heat-chart-connection-note {
    margin: 6px 2px 0;
    color: var(--text-secondary);
    font-size: 10.5px;
    line-height: 1.5;
}

.history-technical-details {
    margin-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, .25);
    padding-top: 7px;
}

.history-technical-details > summary {
    cursor: pointer;
    color: var(--text-secondary);
}

.history-technical-content {
    max-height: 320px;
    overflow: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    font: 10px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ==========================================================================
   Filter Chips & Controls
   ========================================================================== */

.chart-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.chart-header-flex h2 {
    margin-bottom: 0;
}

.filter-chips-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', 'Inter', sans-serif;
    outline: none;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-chip.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

/* ==========================================================================
   Interactive Simulator Box
   ========================================================================== */

.simulator-card-box {
    margin-top: 28px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(168, 85, 247, 0.06) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.simulator-event-controls,
.simulator-snapshot-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.simulator-event-controls select,
.simulator-event-controls input,
.simulator-snapshot-controls select {
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}

.simulator-event-controls input {
    min-width: 160px;
}

.simulator-view-toggle {
    display: flex;
    gap: 5px;
}

.simulator-snapshot-controls {
    padding: 8px 10px;
    border-left: 2px solid rgba(125, 211, 252, 0.4);
    color: var(--text-secondary);
    font-size: 11px;
}

.simulator-snapshot-controls label {
    font-weight: 700;
    color: var(--text-primary);
}

.simulator-snapshot-controls span {
    color: #7dd3fc;
}

#simulatorPresetChips {
    max-height: 132px;
    overflow-y: auto;
    padding: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .info-row {
        align-items: flex-start;
        gap: 12px;
    }
    .info-row .val {
        max-width: 68%;
        text-align: right;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 768px) {
    body {
        padding: 14px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .header-status {
        width: 100%;
        align-items: flex-start;
        text-align: left;
    }
    .header-refresh-details {
        max-width: 100%;
    }
    .header-refresh-details > div,
    .history-details-content {
        max-width: calc(100vw - 32px);
    }
    #simulatorDisplayGrid {
        grid-template-columns: 1fr !important;
    }
    .glass-card,
    .altimeter-card,
    .simulator-card-box,
    #simulatorDisplayGrid > div {
        min-width: 0;
    }
    .simulator-card-box {
        padding: 14px;
        overflow: hidden;
    }
    .simulator-date-control {
        width: 100%;
        flex-wrap: wrap;
    }
    .simulator-event-controls,
    .simulator-snapshot-controls {
        align-items: stretch;
        flex-direction: column;
    }
    .simulator-event-controls select,
    .simulator-event-controls input,
    .simulator-snapshot-controls select {
        width: 100%;
        min-width: 0;
    }
    .simulator-view-toggle {
        width: 100%;
    }
    .simulator-view-toggle .filter-chip {
        flex: 1;
    }
    #simulatorDateSelect {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .simulator-return-grid,
    .simulator-sector-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .decision-card {
        grid-template-columns: 1fr;
    }
    .decision-axis-grid {
        grid-template-columns: 1fr;
    }

    .altimeter-card {
        width: 100%;
        padding: 17px;
    }

    .altimeter-card-header {
        align-items: center;
    }

    .altimeter-refresh-badge {
        padding: 6px 8px;
        font-size: 8.5px;
    }

    .altimeter-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .altimeter-meta-item:last-child {
        grid-column: 1 / -1;
    }

    .altimeter-stage {
        min-height: 420px;
    }

    .cycle-diagnosis-title small {
        display: none;
    }

    .cycle-timeline-container {
        padding: 10px 8px;
    }

    .cycle-step {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .altimeter-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .altimeter-meta-grid {
        grid-template-columns: 1fr;
    }

    .altimeter-meta-item:last-child {
        grid-column: auto;
    }

    .altimeter-stage {
        margin-left: -4px;
        margin-right: -4px;
    }

    .pointer-bubble {
        min-width: 108px;
        left: 42px;
        padding: 6px 9px;
    }

    .altitude-band-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .galaxy-spiral,
    .deco-deepsea,
    .deco-sea-boat,
    .deco-sky-plane,
    .deco-space-ufo,
    .altimeter-refresh-badge i,
    .rocket-exhaust {
        animation: none !important;
    }

    .thermometer-fill,
    .altimeter-pointer-box {
        transition-duration: 0.01ms !important;
    }
}

/* ======================================================================
   Legacy altimeter skin
   Keep the original pastel altitude-card treatment and thermometer layout.
   ====================================================================== */

.altimeter-card {
    position: relative;
    overflow: hidden;
    align-self: auto;
    background: linear-gradient(to top,
        #020813 0%,
        #020813 20%,
        #0e3150 34%,
        #205a75 48%,
        #4b8fae 62%,
        #a0bedb 76%,
        #b3cbe6 89%,
        #b3cbe6 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(255, 255, 255, 0.05);
}

.altimeter-card::before { display: none; }

.altimeter-card h2 {
    color: #0b122c !important;
    border-left-color: #0b122c !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.galaxy-spiral {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 140px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(255, 243, 205, 0.8) 0%, rgba(255, 142, 167, 0.5) 40%, rgba(163, 139, 244, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    transform: rotate(-15deg);
    filter: blur(4px);
    opacity: 0.85;
    animation: galaxyPulse 6s infinite alternate;
    pointer-events: none;
    z-index: 1;
}

.deco-deepsea { position: absolute; bottom: 14%; right: 40px; font-size: 46px; opacity: 0.8; pointer-events: none; z-index: 1; animation: boatRock 4s infinite ease-in-out; }
.deco-anchor { position: absolute; bottom: 27%; right: 120px; font-size: 36px; opacity: 0.55; pointer-events: none; z-index: 1; transform: rotate(-12deg); }
.deco-sea-boat { position: absolute; bottom: 41%; right: 25px; font-size: 42px; opacity: 0.85; animation: boatRock 5s infinite ease-in-out; pointer-events: none; z-index: 1; }
.deco-ground-city { position: absolute; bottom: 56%; right: 30px; font-size: 44px; opacity: 0.85; pointer-events: none; z-index: 1; }
.deco-ground-family { position: absolute; bottom: 57%; right: 110px; font-size: 34px; opacity: 0.8; pointer-events: none; z-index: 1; }
.deco-sky-plane { position: absolute; bottom: 70%; right: 45px; font-size: 38px; opacity: 0.9; pointer-events: none; z-index: 1; transform: rotate(-8deg); animation: planeFly 4s infinite ease-in-out; }
.deco-sky-cloud { position: absolute; bottom: 72%; right: 125px; font-size: 38px; opacity: 0.75; pointer-events: none; z-index: 1; }
.deco-space-ufo { position: absolute; bottom: 85%; right: 35px; font-size: 44px; opacity: 0.95; pointer-events: none; z-index: 1; animation: ufoFloat 4s infinite ease-in-out; }

.altimeter-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 380px;
    position: relative;
    padding-left: 0;
}

.thermometer-ticks-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 340px;
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    z-index: 5;
    user-select: none;
    text-align: right;
    width: 65px;
}

.thermometer-ticks-container span { white-space: nowrap; }

.thermometer-wrapper {
    position: relative;
    width: 28px;
    height: 340px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    box-shadow:
        inset 2px 2px 6px rgba(255, 255, 255, 0.2),
        inset -2px -2px 6px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.thermometer-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #3b82f6 0%, #10b981 40%, #f59e0b 70%, #ef4444 100%);
    border-radius: 14px;
    transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.5);
}

.thermometer-bulb {
    width: 36px;
    height: 36px;
    background: #3b82f6;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    bottom: -18px;
    left: -7px;
    z-index: 6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.6);
}

.altimeter-pointer-box {
    position: absolute;
    left: 80px;
    bottom: 0%;
    display: flex;
    align-items: center;
    transition: bottom 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.pointer-bubble {
    background: rgba(255, 235, 170, 0.3);
    border: 1.5px solid rgba(255, 215, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13.5px;
    font-weight: 800;
    color: #0b122c;
    margin-left: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    position: absolute;
    left: 48px;
    z-index: 11;
}

.pointer-bubble::before { display: none; }
.pointer-bubble small { display: none; }
.pointer-bubble span { font-family: inherit; letter-spacing: normal; }

/* 결측/오래된 데이터 상태는 기존 파스텔 온도계 디자인을 유지하면서
   숫자 고도와 구분되는 중립 포인터로 표시한다. */
.altimeter-pointer-box.altimeter-pending .pointer-bubble {
    border-color: rgba(148, 163, 184, 0.75);
    background: rgba(226, 232, 240, 0.34);
    color: #334155;
}

.altimeter-pointer-emoji {
    font-size: 34px;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    z-index: 10;
}

.rocket-exhaust {
    position: absolute;
    bottom: -16px;
    left: 6px;
    width: 12px;
    height: 18px;
    background: linear-gradient(to bottom, #f97316 0%, #ef4444 60%, transparent 100%);
    border-radius: 50%;
    filter: blur(1.5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: flameFlicker 0.2s infinite alternate;
}

.cycle-timeline-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    z-index: 5;
    position: relative;
}

.cycle-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.cycle-step.active { font-weight: 800; transform: scale(1.05); }
.cycle-arrow { color: rgba(255, 255, 255, 0.25); font-size: 13px; }

/* ======================================================================
   Current altitude context & provenance disclosure
   Keep the pastel thermometer skin above; these compact panels only add
   context around it and deliberately do not replace the visual gauge.
   ====================================================================== */

.altimeter-current-summary {
    display: grid;
    grid-template-columns: minmax(150px, 1.25fr) repeat(3, minmax(92px, 1fr));
    gap: 8px;
    margin: 10px 0 9px;
    position: relative;
    z-index: 5;
}

.altimeter-current-main,
.altimeter-current-item {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 11px;
    padding: 8px 10px;
    background: rgba(230, 246, 255, 0.18);
    color: #0b122c;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.22);
}

.altimeter-current-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: baseline;
    column-gap: 4px;
    background: rgba(255, 238, 177, 0.26);
    border-color: rgba(255, 215, 0, 0.45);
}

.altimeter-current-main span,
.altimeter-current-item span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 10px;
    font-weight: 700;
    color: rgba(11, 18, 44, 0.72);
}

.altimeter-current-main strong {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    line-height: 1.1;
    color: #0b122c;
}

.altimeter-current-main em {
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    color: rgba(11, 18, 44, 0.72);
}

.altimeter-current-item strong {
    display: block;
    margin-top: 3px;
    min-height: 1.15em;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.2;
    color: #0b122c;
}

.altimeter-current-item.is-positive strong { color: #047857; }
.altimeter-current-item.is-negative strong { color: #b91c1c; }
.altimeter-current-item.is-pending strong { color: #475569; }

.altimeter-details {
    position: relative;
    z-index: 5;
    margin: 0 0 5px;
    color: rgba(11, 18, 44, 0.78);
    font-size: 10.5px;
}

.altimeter-details summary {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px solid rgba(11, 18, 44, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
    user-select: none;
}

.altimeter-details summary:hover,
.altimeter-details[open] summary { background: rgba(255, 255, 255, 0.28); }

.altimeter-detail-content {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(2, 8, 19, 0.32);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.altimeter-contributors {
    display: grid;
    gap: 4px;
    margin-top: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(2, 8, 19, 0.24);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

.altimeter-contributor-heading {
    font-weight: 800;
    color: #dbeafe;
}

.altimeter-contributor-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    overflow-wrap: anywhere;
}

.altimeter-contributor-row strong { white-space: nowrap; font-family: 'Outfit', sans-serif; }
.altimeter-contributor-row.is-positive strong { color: #6ee7b7; }
.altimeter-contributor-row.is-negative strong { color: #fda4af; }
.altimeter-contributor-note { color: rgba(226, 232, 240, 0.7); font-size: 10px; }

.sim-current-comparison {
    position: relative;
    min-height: 62px;
    padding: 9px 10px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.07);
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sim-current-comparison.is-warning {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.07);
    color: #fde68a;
}

.sim-comparison-title { font-weight: 800; color: #bae6fd; }
.sim-comparison-track {
    position: relative;
    height: 7px;
    margin: 15px 5px 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8 0%, #a7f3d0 45%, #fbbf24 70%, #f87171 100%);
}

.sim-comparison-marker {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid #f8fafc;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.75), 0 2px 7px rgba(0, 0, 0, 0.35);
}

.sim-comparison-marker.current { background: #38bdf8; }
.sim-comparison-marker.historical { background: #fbbf24; }
.sim-comparison-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 10px; color: #cbd5e1; }

.market-heat-reference-rule {
    margin: 5px 0 4px;
    padding: 7px 9px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.08);
    color: #e0f2fe;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.market-heat-reference-rule[data-status="pending"] {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(245, 158, 11, 0.08);
    color: #fef3c7;
}

.market-heat-reference-help {
    position: relative;
    z-index: 5;
    margin: 3px 0 8px;
    color: rgba(11, 18, 44, 0.78);
    font-size: 10px;
}

.market-heat-reference-help summary {
    width: fit-content;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(11, 18, 44, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-weight: 700;
}

.market-heat-reference-help div {
    margin-top: 5px;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(2, 8, 19, 0.28);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

@media (max-width: 768px) {
    .altimeter-current-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .altimeter-current-main { grid-column: span 2; }
    .sim-current-comparison { font-size: 10.5px; }
}

@media (max-width: 420px) {
    .altimeter-current-summary { grid-template-columns: 1fr; }
    .altimeter-current-main { grid-column: auto; }
    .altimeter-current-main strong { font-size: 19px; }
    .altimeter-details summary { max-width: 100%; white-space: normal; }
    .sim-comparison-legend { flex-direction: column; gap: 2px; }
}
