:root {
    color-scheme: dark;
    --bg: #0b0d12;
    --surface: #12151c;
    --text: #e6e8ec;
    --text-secondary: #8a91a1;
    --grid: #232733;
    --line: #6ee7b7;
    --line-fill-start: rgba(110, 231, 183, 0.28);
    --line-fill-end: rgba(110, 231, 183, 0);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 16px;
}

.title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.chart {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
}

.chart svg {
    display: block;
    width: 100%;
    height: auto;
    touch-action: none;
}

.chart-tick-x {
    fill: var(--text-secondary);
    font-size: 11px;
}

.chart-tick-y {
    fill: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.chart-grid-line {
    stroke: var(--grid);
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke: var(--line);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-fill {
    fill: url(#chartGradient);
}

.chart-empty {
    color: var(--text-secondary);
    text-align: center;
    padding: 48px 0;
}

.chart-overlay {
    pointer-events: all;
    cursor: crosshair;
}

.chart-crosshair {
    stroke: var(--text-secondary);
    stroke-width: 1;
    stroke-dasharray: 3 3;
    opacity: 0;
    pointer-events: none;
}

.chart-dot {
    fill: var(--line);
    stroke: var(--surface);
    stroke-width: 2;
    opacity: 0;
    pointer-events: none;
}

.chart-tooltip {
    position: absolute;
    transform: translate(-50%, -130%);
    background: #1c2029;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}
