:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    color: #303433;
    background: #f4f5f2;
    --muted: #606861;
    --border: #dce1db;
    --brand: #f3e32d;
    --brand-hover: #e6d520;
    --brand-ink: #303433;
    --price: #303433;
}

* { box-sizing: border-box; }
body { margin: 0; }
.frame { width: min(1100px, calc(100% - 36px)); margin-inline: auto; }
.topbar { background: white; border-top: 5px solid var(--brand); border-bottom: 1px solid var(--border); }
.brand { min-height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: auto; max-width: 50%; }
.dashboard { padding-block: 34px 52px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: clamp(1.65rem, 4vw, 2.55rem); letter-spacing: -.035em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.15rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 22px 26px; }
.tabs a, button { border-radius: 7px; padding: .65rem .85rem; font: inherit; font-weight: 600; cursor: pointer; }
.tabs a, .secondary { text-decoration: none; color: inherit; border: 1px solid var(--border); background: white; }
.tabs a[aria-current], .primary { color: var(--brand-ink); background: var(--brand); border: 1px solid var(--brand-ink); }
.tabs a[aria-current]:hover, .primary:hover { background: var(--brand-hover); }
.tabs a:hover:not([aria-current]), .secondary:hover { background: #e9efe9; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.section-heading, .product-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-heading { margin-bottom: 14px; }
.section-heading span, .muted, .reference { color: var(--muted); font-size: .88rem; }
.reference { margin: 0 0 5px; }
.card { border-radius: 12px; border: 1px solid var(--border); background: white; box-shadow: 0 2px 4px #3034330a; }
.product, .empty { padding: clamp(15px, 3vw, 24px); margin-bottom: 16px; }
.chart { overflow-x: auto; margin-block: 12px; }
.chart svg { display: block; min-width: 100%; }
.chart text { font-size: 12px; fill: var(--muted); }
.chart .price-axis { fill: var(--price); }
.chart-target { fill: transparent; cursor: crosshair; }
.chart-target:hover, .chart-target:focus-visible { fill: #3034330a; }
.chart-target:focus-visible { outline: none; stroke: var(--brand-ink); stroke-dasharray: 4 3; }
.chart-tooltip {
    position: fixed;
    max-width: calc(100vw - 16px);
    z-index: 2;
    pointer-events: none;
    padding: .65rem .85rem;
    border: 1px solid var(--brand);
    border-radius: 7px;
    background: var(--brand-ink);
    color: white;
    font-size: .82rem;
    line-height: 1.5;
}
.chart-tooltip strong { display: block; color: var(--brand); }
.gridline { stroke: var(--border); }
.stock-bar { fill: var(--brand); stroke: #9a8800; }
.legend-stock::before { background: var(--brand); border: 1px solid #9a8800; }
.price-line { fill: none; stroke: var(--price); stroke-width: 3; }
.price-point { fill: var(--price); stroke: white; stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .86rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 14px; height: 10px; border-radius: 2px; }
.legend .legend-price::before { height: 3px; background: var(--price); }
.comparison-legend { margin-block: 12px; }
.comparison-key::before { background: var(--series-color); }
.comparison-bar { opacity: .67; }
.comparison-line { fill: none; stroke-width: 2.5; }
.comparison-point { stroke: white; stroke-width: 1.3; }
caption { padding: .6rem; text-align: left; font-weight: 600; }
details { border-top: 1px solid var(--border); padding-top: 10px; }
summary { cursor: pointer; width: fit-content; font-size: .88rem; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-top: 10px; }
td, th { padding: .6rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.login { padding-block: clamp(38px, 12vh, 120px); }
.login-card { max-width: 465px; margin-inline: auto; padding: clamp(22px, 5vw, 42px); display: grid; gap: 13px; }
.login-card h1 { margin-bottom: 14px; }
.login-card label { font-weight: 600; }
.login-card input, .compare-form input, .compare-form select { width: 100%; border: 1px solid #a8b1a9; border-radius: 7px; padding: .7rem; font: inherit; }
.compare-form { margin-block: 16px; }
.compare-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.compare-form div { display: flex; flex-wrap: wrap; gap: 8px; }
.compare-form input, .compare-form select { flex: 1 1 220px; max-width: 450px; }
.login-card button { margin-top: 5px; }
.error { color: #8e3030; }
