:root {
    --bg: #f6f7fa;
    --surface: #ffffff;
    --surface-alt: #eef1f7;
    --border: #dde3ee;
    --border-soft: #e7ebf3;
    --text: #101a2e;
    --text-muted: #5b6779;
    --text-dim: #97a1b3;
    --blue-deep: #0d1a4d;
    --blue: #2b5fe0;
    --blue-soft: #e8eefc;
    --good: #16805c;
    --good-soft: #e5f5ee;
    --warn: #a06a11;
    --warn-soft: #faf1de;
    --bad: #b8402f;
    --bad-soft: #fbe9e6;
    --font-display: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--blue);
    color: #fff;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
}

.masthead {
    max-width: 1360px;
    margin: 0 auto;
    padding: 26px 28px 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.masthead-meta {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    width: max-content;
}

.updated-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.updated-value {
    font-family: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
}

.masthead .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 6px;
}

.masthead h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 32px;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--text);
}

.masthead p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: none;
    width: 100%;
}

.rule {
    height: 4px;
    background: #143bb0;
}

.rule-thin {
    height: 1px;
    background: var(--border);
}


.controls {
    max-width: 1360px;
    margin: 0 auto;
    padding: 16px 28px;
    display: grid;
    grid-template-columns:
        minmax(20px, 1fr) 1fr 1fr;
    gap: 18px;
    align-items: end;
    flex-wrap: wrap;
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-group label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding-left: 2px;
}

#ticker-search {
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 6px;
}

#ticker-search::placeholder {
    color: var(--text-dim);
}

.dropdown {
    position: relative;
}

.dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.dropdown-trigger:hover {
    border-color: var(--blue);
}

.dropdown-trigger:focus-visible {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(43, 95, 224, 0.14);
}

.dropdown-chevron {
    flex: none;
    color: var(--text-dim);
    transition: transform .15s ease, color .15s ease;
}

.dropdown.open .dropdown-trigger {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(43, 95, 224, 0.14);
}

.dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--blue);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(16, 26, 46, 0.16);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 5px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}

.dropdown-option:hover {
    background: var(--blue-soft);
}

.dropdown-option.selected {
    color: var(--blue-deep);
    font-weight: 600;
}

.dropdown-option.selected::after {
    content: "";
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: var(--blue);
}

#ticker-search:hover {
    border-color: var(--blue);
}

main {
    max-width: 1360px;
    margin: 0 auto;
    padding: 8px 28px 90px;
}

.state-msg {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 60px 4px;
    text-align: center;
}

.state-msg.error {
    color: var(--bad);
}

.ticker-section {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    margin: 22px 0;
    padding: 24px 26px 26px;
    scroll-margin-top: 150px;
    box-shadow: 0 1px 2px rgba(16, 26, 46, 0.03);
}

.ticker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.ticker-head h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 28px;
    margin: 0;
    letter-spacing: -0.01em;
}

.ticker-head .updated {
    font-size: 11.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    margin-top: 4px;
}

.horizon-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.horizon-tab {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 6px;
    cursor: pointer;
    background: var(--surface-alt);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
}

.horizon-tab .score {
    color: var(--text-dim);
}

.horizon-tab.active {
    color: var(--blue-deep);
    border-color: var(--blue);
    background: var(--blue-soft);
}

.horizon-tab.active .score {
    color: var(--blue);
}

.signal-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.signal-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.signal-badge.good {
    color: #0c7a42;
    background: #e9f8ef;
    border: 1px solid #6fd39f;
}

.signal-badge.warn {
    color: rgb(255, 254, 254);
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(112, 109, 105, 0.642);
    box-shadow: 0 0 0 3px rgba(65, 62, 57, 0.06);
}

.signal-badge.bad {
    color: #b3261e;
    background: #fdecec;
    border: 1px solid #f1a3a3;
}

.signal-horizon {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
}

.signal-horizon b {
    color: var(--text);
    font-weight: 600;
}

.signal-score {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.signal-score b {
    color: var(--blue-deep);
    font-weight: 600;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 22px;
}

.indicator-tile {
    background: var(--surface-alt);
    padding: 11px 13px;
}

.indicator-tile .k {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.indicator-tile .v {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.plots-grid {
    display: flex;
    grid-template-columns: 1fr;
    gap: 26px;
}

.plot-card {
    display: inline-block;
    width: fit-content;
    border: 1px solid var(--border);
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface);
    cursor: zoom-in;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.plot-card:hover {
    border-color: var(--blue);
    box-shadow: 0 2px 10px rgba(43, 95, 224, 0.08);
}

.plot-card .imgwrap {
    background: var(--surface-alt);
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    align-items: center;
    justify-content: center;
}

.plot-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16/6;
    height: auto;
    object-fit: contain;
    background: var(--surface-alt);
}

.plot-card .cap {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    padding: 9px 12px;
    border-top: 1px solid var(--border-soft);
}

.plot-card.missing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 16px;
    text-align: center;
}

footer {
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 34px 20px 50px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(16, 26, 46, 0.72);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.plot-card img,
.lightbox img {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

.search-dropdown {
    position: relative;
    width: 100%;
}

.search-dropdown input {
    width: 100%;
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(16, 26, 46, .16);

    max-height: 260px;
    overflow-y: auto;

    z-index: 40;
}

.search-item {
    padding: 10px 12px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 13px;
}

.search-item:hover {
    background: var(--blue-soft);
}


:root {
    --hist-ink: #1b1f24;
    --hist-muted: #6b7280;
    --hist-border: #e3e1da;
    --hist-surface: #fbfbf9;
    --hist-surface-raised: #ffffff;
    --hist-surface-hover: #f1f0ea;

    --hist-good: #1d7a4c;
    --hist-good-bg: #e7f4ec;
    --hist-bad: #ab3a35;
    --hist-bad-bg: #fbeae8;
    --hist-warn: #8a5a13;
    --hist-warn-bg: #f6efdd;

    --hist-accent: #2c4a73;
    --hist-accent-ring: rgba(44, 74, 115, 0.35);

    --hist-radius-lg: 12px;
    --hist-radius-md: 8px;
    --hist-radius-sm: 6px;

    --hist-font-display: "Fraunces", serif;
    --hist-font-body: "Inter", sans-serif;
    --hist-font-mono: "IBM Plex Mono", monospace;
}

.history-panel {
    position: relative;
    margin: 20px 0;
    border: 1px solid var(--hist-border);
    border-radius: var(--hist-radius-lg);
    background: var(--hist-surface);
    overflow: visible;
}

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hist-border);
}

.history-title {
    margin: 0;
    font-family: var(--hist-font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var(--hist-ink);
}


.history-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--hist-border);
    border-radius: 999px;
    background: var(--hist-surface-raised);
    color: var(--hist-ink);
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.history-nav-btn:hover:not(:disabled) {
    background: var(--hist-surface-hover);
    border-color: var(--hist-accent);
}

.history-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.history-nav-btn:focus-visible,
.history-date-trigger:focus-visible,
.history-date-option:focus-visible {
    outline: 2px solid var(--hist-accent);
    outline-offset: 2px;
}

.history-date-select {
    position: relative;
}

.history-date-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--hist-border);
    border-radius: 999px;
    background: var(--hist-surface-raised);
    color: var(--hist-ink);
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.history-date-trigger:hover {
    background: var(--hist-surface-hover);
    border-color: var(--hist-accent);
}

.history-date-value {
    font-family: var(--hist-font-mono);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 84px;
    text-align: center;
}

.history-date-trigger svg {
    flex-shrink: 0;
    transition: transform 150ms ease;
}

.history-panel.open .history-date-trigger svg {
    transform: rotate(180deg);
}

.history-date-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 150px;
    max-height: 240px;
    margin: 0;
    padding: 4px;
    list-style: none;
    overflow-y: auto;
    border: 1px solid var(--hist-border);
    border-radius: var(--hist-radius-md);
    background: var(--hist-surface-raised);
    box-shadow: 0 8px 24px rgba(17, 20, 24, 0.12);
    display: none;
}

.history-panel.open .history-date-menu {
    display: block;
}

.history-date-option {
    padding: 7px 10px;
    border-radius: var(--hist-radius-sm);
    font-family: var(--hist-font-mono);
    font-size: 12.5px;
    color: var(--hist-ink);
    cursor: pointer;
}

.history-date-option:hover {
    background: var(--hist-surface-hover);
}

.history-date-option.selected {
    background: var(--hist-good-bg);
    color: var(--hist-good);
    font-weight: 600;
}


.history-body {
    padding: 14px 16px;
}

.history-loading {
    font-family: var(--hist-font-body);
    font-size: 13px;
    color: var(--hist-muted);
}

.history-signal-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-score {
    font-family: var(--hist-font-body);
    font-size: 13px;
    color: var(--hist-muted);
}

.history-score b {
    font-family: var(--hist-font-mono);
    color: var(--hist-ink);
    font-weight: 600;
}

.history-empty {
    font-family: var(--hist-font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--hist-muted);
    font-style: normal;
}

.history-empty.history-error {
    color: var(--hist-bad);
    font-style: normal;
}


@media (max-width: 560px) {
    .history-head {
        flex-wrap: wrap;
    }

    .history-nav {
        width: 100%;
        justify-content: space-between;
    }

    .history-date-value {
        min-width: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .history-nav-btn,
    .history-date-trigger,
    .history-date-trigger svg {
        transition: none;
    }
}

:root {
    --hist-ink: #1b1f24;
    --hist-muted: #6b7280;
    --hist-border: #e3e1da;
    --hist-surface: #fbfbf9;
    --hist-surface-raised: #ffffff;
    --hist-surface-hover: #f1f0ea;

    --hist-good: #1d7a4c;
    --hist-good-bg: #e7f4ec;
    --hist-bad: #ab3a35;
    --hist-bad-bg: #fbeae8;
    --hist-warn: #8a5a13;
    --hist-warn-bg: #f6efdd;

    --hist-accent: #2c4a73;
    --hist-accent-ring: rgba(44, 74, 115, 0.35);

    --hist-radius-lg: 12px;
    --hist-radius-md: 8px;
    --hist-radius-sm: 6px;

    --hist-font-display: "Fraunces", serif;
    --hist-font-body: "Inter", sans-serif;
    --hist-font-mono: "IBM Plex Mono", monospace;
}


.history-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--hist-border);
    border-radius: 999px;
    background: var(--hist-surface-raised);
    color: var(--hist-ink);
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
}

.history-nav-btn:hover:not(:disabled) {
    background: var(--hist-surface-hover);
    border-color: var(--hist-accent);
}

.history-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.history-nav-btn:focus-visible,
.history-date-trigger:focus-visible,
.history-date-option:focus-visible {
    outline: 2px solid var(--hist-accent);
    outline-offset: 2px;
}

.history-date-select {
    position: relative;
}

.history-date-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 10px;
    border: 1px solid var(--hist-border);
    border-radius: 999px;
    background: var(--hist-surface-raised);
    color: var(--hist-ink);
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.history-date-trigger:hover {
    background: var(--hist-surface-hover);
    border-color: var(--hist-accent);
}

.history-date-value {
    font-family: var(--hist-font-mono);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 84px;
    text-align: center;
}

.history-date-trigger svg {
    flex-shrink: 0;
    transition: transform 150ms ease;
}

.history-date-select.open .history-date-trigger svg {
    transform: rotate(180deg);
}

.history-date-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 150px;
    max-height: 240px;
    margin: 0;
    padding: 4px;
    list-style: none;
    overflow-y: auto;
    border: 1px solid var(--hist-border);
    border-radius: var(--hist-radius-md);
    background: var(--hist-surface-raised);
    box-shadow: 0 8px 24px rgba(17, 20, 24, 0.12);
    display: none;
}

.history-date-select.open .history-date-menu {
    display: block;
}

.history-date-option {
    padding: 7px 10px;
    border-radius: var(--hist-radius-sm);
    font-family: var(--hist-font-mono);
    font-size: 12.5px;
    color: var(--hist-ink);
    cursor: pointer;
}

.history-date-option:hover {
    background: var(--hist-surface-hover);
}

.history-date-option.selected {
    background: var(--hist-good-bg);
    color: var(--hist-good);
    font-weight: 600;
}


.history-panel {
    position: relative;
    margin: 20px 0;
    border: 1px solid var(--hist-border);
    border-radius: var(--hist-radius-lg);
    background: var(--hist-surface);
    overflow: visible;
}

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hist-border);
}

.history-title {
    margin: 0;
    font-family: var(--hist-font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var(--hist-ink);
}

.history-body {
    padding: 14px 16px;
}

.history-loading {
    font-family: var(--hist-font-body);
    font-size: 13px;
    color: var(--hist-muted);
}

.history-signal-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-score {
    font-family: var(--hist-font-body);
    font-size: 13px;
    color: var(--hist-muted);
}

.history-score b {
    font-family: var(--hist-font-mono);
    color: var(--hist-ink);
    font-weight: 600;
}

.history-empty {
    font-family: var(--hist-font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--hist-muted);
    font-style: normal;
}

.history-empty.history-error {
    color: var(--hist-bad);
    font-style: normal;
}


.historical-section {
    max-width: 1360px;
    margin: 0px auto 24px;
    padding: 28px 28px 0;
    border-top: 1px solid var(--hist-border);
}

.historical-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.historical-heading h2 {
    margin: 4px 0 6px;
}

.historical-sub {
    margin: 0;
    font-family: var(--hist-font-body);
    font-size: 13.5px;
    color: var(--hist-muted);
    max-width: 60ch;
}

.historical-body {
    width: 100%;
    border: 1px solid var(--hist-border);
    border-radius: var(--hist-radius-lg);
    background: #ffffff;
    overflow: hidden;
}

.historical-body>.history-loading,
.historical-body>.historical-empty {
    padding: 20px 16px;
}

.historical-table {
    width: 100%;
    border-collapse: collapse;
}

.historical-table thead th {
    text-align: left;
    font-family: var(--hist-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 10px 16px;
    border-bottom: 1px solid var(--hist-border);
    background: #3858b8;
}

.historical-table thead th:last-child {
    text-align: right;
}

.historical-table tbody tr {
    border-bottom: 1px solid var(--hist-border);
    transition: background-color 120ms ease;
}

.historical-table tbody tr:last-child {
    border-bottom: none;
}

.historical-table tbody tr:hover {
    background: var(--hist-surface-hover);
}

.historical-table td {
    padding: 11px 16px;
    font-family: var(--hist-font-body);
    font-size: 13.5px;
    color: var(--hist-ink);
    vertical-align: middle;
}

.historical-signal {
    font-family: var(--hist-font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.historical-signal.good {
    color: var(--good);
}

.historical-signal.bad {
    color: var(--bad);
}

.historical-signal.warn {
    color: var(--warn);
}

.row-high-confidence.row-good {
    background: #eef9f1;
}

.row-high-confidence.row-bad {
    background: #fdf0ef;
}

.historical-ticker {
    font-family: var(--hist-font-mono);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.historical-horizon {
    color: var(--hist-muted);
    font-family: var(--hist-font-mono);
    font-size: 12.5px;
}

.historical-score {
    font-family: var(--hist-font-mono);
    font-weight: 600;
    text-align: right;
}

.historical-empty {
    font-family: var(--hist-font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--hist-muted);
    font-style: italic;
}

.historical-empty.history-error {
    color: var(--hist-bad);
    font-style: normal;
}


@media (max-width: 560px) {
    .history-head {
        flex-wrap: wrap;
    }

    .history-nav {
        width: 100%;
        justify-content: space-between;
    }

    .history-date-value {
        min-width: 72px;
    }

    .historical-body {
        overflow-x: auto;
    }

    .historical-table {
        min-width: 480px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .history-nav-btn,
    .history-date-trigger,
    .history-date-trigger svg,
    .historical-table tbody tr {
        transition: none;
    }
}

.history-shortcut {
    position: fixed;
    right: 28px;
    bottom: 28px;

    padding: 12px 18px;

    border-radius: 999px;

    background: #3858b8;
    color: white;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    box-shadow: 0 8px 24px rgba(20, 59, 176, .22);

    z-index: 30;

    transition: transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.history-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(20, 59, 176, .28);
}