:root {
    color-scheme: dark light;
    /* Lastminute design system — dark first */
    --canvas: #0b0b0c;
    --paper: #151517;
    --panel: #1e1e21;
    --panel-2: #2a2a2e;
    --ink: #f4f4f1;
    --muted: #9d9da6;
    --line: #34343a;
    --focus: #ffe500;
    --brand: #ffe500;
    --brand-ink: #0b0b0c;
    --drop: #ffe500;
    --drop-soft: rgba(255, 229, 0, .14);
    --rise: #ff8ad8;
    --rise-soft: rgba(255, 138, 216, .14);
    --warning: #ffb02e;
    --blue: #f4f4f1;
    --green-fill: #ffe500;
    --red-fill: #ff8ad8;
    --amber-fill: #ffb02e;
    --accent: #ffe500;
    --accent-ink: #0b0b0c;
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --num: "Inter Tight", "Manrope", system-ui, sans-serif;
    font: 500 13px/1.4 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-variant-numeric: tabular-nums;
    background: var(--canvas);
    color: var(--ink);
}

@media (prefers-color-scheme: light) {
    :root {
        --canvas: #f2f2ee;
        --paper: #fff;
        --panel: #e9e9e4;
        --panel-2: #dcdcd5;
        --ink: #111113;
        --muted: #55555c;
        --line: #cfcfc8;
        --focus: #111113;
        --drop: #7a5c00;
        --drop-soft: rgba(122, 92, 0, .12);
        --rise: #b3206f;
        --rise-soft: rgba(179, 32, 111, .10);
        --warning: #9a5b00;
        --blue: #111113;
        --green-fill: #ffe500;
        --red-fill: #f3b7da;
        --amber-fill: #ffd98a;
    }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p, ul, dl, dd { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1 { font-size: 1.65rem; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: 1rem; line-height: 1.25; }
small, .muted { color: var(--muted); }
button, input, select { font: inherit; }
button, .button, .more-filters summary, .filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover, .more-filters summary:hover, .filter-chip:hover { background: var(--paper); color: var(--focus); }
input:not([type="checkbox"]), select {
    min-width: 0;
    min-height: 28px;
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    background: var(--paper);
}
input[type="checkbox"] { margin: 0; accent-color: var(--blue); }

.shell { width: min(100% - 32px, 1600px); margin-inline: auto; }
main.shell { padding-block: 14px 28px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner, nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.header-inner { justify-content: space-between; min-height: 42px; }
.brand { font-weight: 780; color: var(--ink); text-decoration: none; }
nav { font-size: .92rem; }
nav a[aria-current] { color: var(--ink); font-weight: 750; }
.link-button, .link-button:hover { padding-inline: 0; border: 0; color: var(--blue); background: transparent; text-decoration: underline; }

.surface { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.page-heading, .section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.page-heading { margin-bottom: 9px; }
.section-heading { padding: 7px 9px; }
.section-heading > .muted { font-size: .88rem; }
.market-strip { display: flex; margin-bottom: 10px; }
.market-tile { flex: 1 1 0; min-width: 0; padding: 7px 9px; }
.market-tile + .market-tile { border-inline-start: 1px solid var(--line); }
.market-tile h2 { color: var(--muted); font-size: .91rem; }
.quote, .quote-change { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1px 5px; }
.quote { min-height: 24px; }
.quote-price { font-size: 1.28rem; font-weight: 780; white-space: nowrap; color: var(--ink); text-decoration: none; }
a.quote-price:hover { text-decoration: underline; }
.quote-change { font-size: .84rem; }
.quote-change .ticker { min-width: 0; }
.drop-tile { flex-grow: .8; }
.drop-tile .quote-price { color: var(--drop); }
.scanner-tile { flex-grow: 1.35; }
.scanner-tile ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; padding: 3px 0 0; list-style: none; font-size: .85rem; }
.scanner-tile li { display: flex; align-items: center; flex-wrap: wrap; column-gap: 4px; }
.status-dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--drop); }
.status-dot.warn { background: var(--warning); border-radius: 1px; }
.status-dot.error { background: var(--rise); border-radius: 0; transform: rotate(45deg) scale(.8); }

.calendar { margin-bottom: 9px; padding-bottom: 5px; }
.calendar .section-heading { justify-content: space-between; }
.heat-legend { display: inline-flex; align-items: center; gap: 3px; }
.heat-legend i { width: 10px; height: 8px; border-radius: 1px; }
.legend-scope { margin-inline-start: 3px; }
.heat-table { width: 100%; table-layout: fixed; border-spacing: 3px 2px; font-size: .85rem; }
.destination-col { width: 76px; }
.heat-table th { color: var(--muted); font-weight: 620; }
.heat-table th[scope="row"], .heat-table thead th:first-child { text-align: left; padding-inline-start: 5px; overflow-wrap: anywhere; }
.heat-table td { padding: 0; }
.heat-cell { display: block; text-align: center; padding: 3px 0; border-radius: 2px; text-decoration: none; color: var(--ink); font-weight: 650; }
a.heat-cell:hover, .heat-cell[aria-current] { outline: 2px solid var(--focus); outline-offset: -2px; color: var(--ink); }
.heat-empty { color: var(--muted); background: var(--panel); }
.heat-0 { background: color-mix(in srgb, var(--green-fill) 67%, var(--paper)); }
.heat-1 { background: color-mix(in srgb, var(--green-fill) 32%, var(--paper)); }
.heat-2 { background: color-mix(in srgb, var(--amber-fill) 26%, var(--paper)); }
.heat-3 { background: color-mix(in srgb, var(--red-fill) 32%, var(--paper)); }
.heat-4 { background: color-mix(in srgb, var(--red-fill) 67%, var(--paper)); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-block: 0 4px; }
.toolbar > select { max-width: 17ch; }
.more-filters { position: relative; }
.more-filters summary { gap: 5px; }
.more-filters summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; rotate: 45deg; margin-top: -3px; }
.more-filters[open] summary::after { rotate: 225deg; margin-top: 2px; }
.filter-popover { position: absolute; top: calc(100% + 4px); left: 0; z-index: 4; width: min(240px, 90vw); padding: 9px; display: grid; gap: 5px; box-shadow: 0 5px 16px #0002; }
.filter-popover label, .login-form label { display: grid; gap: 2px; }
.filter-popover label.check { display: flex; align-items: center; gap: 6px; }
.results-heading { padding-inline: 0; scroll-margin-top: 6px; }
.empty { padding: 9px; color: var(--muted); }

.data-table { width: 100%; border-spacing: 0; text-align: left; font-size: .92rem; }
.data-table :is(th, td) { padding: 4px 7px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.data-table thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); color: var(--muted); font-size: .85rem; font-weight: 670; }
.data-table thead a { color: inherit; text-decoration: none; }
.data-table thead a:hover { text-decoration: underline; }
.data-table tbody:last-child tr:last-child > * { border-bottom: 0; }
.offer-table { table-layout: fixed; }
.offer-table :is(th, td) { height: 30px; }
.offer-table tbody :is(th, td) { padding-block: 2px; }
.offer-table .cell-title { width: auto; }
.offer-table .cell-dates { width: 119px; }
.offer-table .cell-price { width: 91px; }
.offer-table .cell-change { width: 144px; }
.offer-table .cell-spark { width: 101px; }
.offer-table .cell-range { width: 87px; }
.offer-table .cell-insight { width: 83px; }
.offer-table .cell-rating { width: 186px; }
.offer-table .cell-seats { width: 61px; }
.offer-table .cell-seen { width: 67px; }
.offer-table :is(.cell-dates, .cell-price, .cell-change, .cell-seats, .cell-seen), .numeric { text-align: right; }
.offer-table :is(.cell-price, .cell-seats, .cell-seen, .cell-dates) { white-space: nowrap; }
.offer-table :is(.cell-spark, .cell-range, .cell-insight) { text-align: center; }
.offer-table tbody tr:is(:hover, :focus-within), .term-row { background: var(--panel); }
.real-drop-row .cell-title { box-shadow: inset 2px 0 var(--accent); }
.hotel-name { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cell-title { overflow-wrap: anywhere; }
.cell-title .offer-link { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 690; color: var(--ink); }
.hotel-meta { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); line-height: 1; }
.term-row .cell-title { padding-inline-start: 20px; }
.term-count, .age { border: 1px solid var(--line); border-radius: 3px; padding: 0 3px; color: var(--muted); font-size: .8rem; font-weight: 550; white-space: nowrap; }
.term-toggle { flex: 0 0 18px; min-height: 16px; padding: 0; }
.term-toggle::before { content: ""; width: 5px; height: 5px; rotate: -45deg; border: solid currentColor; border-width: 0 1px 1px 0; }
.term-toggle[aria-expanded="true"]::before { rotate: 45deg; translate: 0 -1px; }
.unavailable { color: var(--muted); font-size: .76rem; display: block; }
.badge { display: inline-block; white-space: nowrap; padding: 1px 5px; border: 1px solid transparent; border-radius: 4px; font-size: .76rem; font-weight: 720; }
.badge.uncertain { border-color: var(--line); color: var(--muted); }
.badge.uncertain span { font-weight: 500; }
.rating-real { background: var(--accent); color: var(--accent-ink); }
.rating-apparent, .status-warn { color: var(--warning); background: color-mix(in srgb, var(--amber-fill) 26%, var(--paper)); }
.rating-up, .insight-high { color: var(--rise); background: color-mix(in srgb, var(--red-fill) 24%, var(--paper)); }
.rating-new, .status-neutral, .insight-typical { color: var(--muted); background: var(--panel); }
.insight-low, .status-ok { color: var(--drop); background: color-mix(in srgb, var(--green-fill) 26%, var(--paper)); }
.ticker { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 5px; padding: 1px 4px; border-radius: 3px; font-weight: 680; white-space: nowrap; }
.ticker.down { color: var(--drop); --tint: var(--green-fill); }
.ticker.up { color: var(--rise); --tint: var(--red-fill); }
.ticker.flat { color: var(--muted); background: var(--panel); }
.ticker.strength-1 { background: color-mix(in srgb, var(--tint) 14%, var(--paper)); }
.ticker.strength-2 { background: color-mix(in srgb, var(--tint) 25%, var(--paper)); }
.ticker.strength-3 { background: color-mix(in srgb, var(--tint) 36%, var(--paper)); }
.ticker.strength-4 { background: color-mix(in srgb, var(--tint) 48%, var(--paper)); }
.spark, .range { vertical-align: middle; max-width: 100%; }
.spark path { stroke: var(--blue); stroke-width: 1.35; fill: none; }
.spark circle { fill: var(--blue); }
.spark line { stroke: var(--muted); stroke-dasharray: 1 3; }
.range line { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.range path { fill: var(--muted); }
.range .near-low { fill: var(--drop); }
.range .near-high { fill: var(--rise); }

.back-link { display: inline-block; margin-bottom: 8px; }
.detail-meta { margin-block: 4px 6px; }
.detail-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-block: 7px 10px; }
.detail-summary .price { font-size: 1.25rem; }
.detail-summary .button { margin-inline-start: auto; }
.history { margin-bottom: 11px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--line); background: var(--panel); }
.stats > div { padding: 5px 9px; overflow-wrap: anywhere; }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { font-weight: 700; }
.chart { display: block; width: 100%; height: auto; }
.chart text { font-size: 9px; fill: var(--muted); }
.chart-grid { stroke: var(--line); }
.chart .series-price { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.chart .series-seats, .legend-seats { fill: var(--blue); background: var(--blue); opacity: .63; }
.gone-period, .legend-gone, .gone-reading { fill: var(--amber-fill); background: color-mix(in srgb, var(--amber-fill) 23%, var(--paper)); }
.gone-period { opacity: .28; }
.ref-min { color: var(--drop); stroke: var(--drop); stroke-dasharray: 2 3; }
.ref-median { color: var(--warning); stroke: var(--warning); stroke-dasharray: 4 5; }
.ref-current { color: var(--blue); stroke: var(--blue); stroke-dasharray: 9 4; }
.chart-legend { padding: 0 9px 7px; display: flex; flex-wrap: wrap; gap: 3px 12px; list-style: none; font-size: .87rem; }
.chart-legend span { display: inline-block; width: 14px; height: 6px; }
.legend-price { background: var(--blue); }
.chart-legend .ref-min { border-top: 2px dotted; }
.chart-legend :is(.ref-median, .ref-current) { border-top: 2px dashed; }
#readings { margin-bottom: 5px; }

.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px; margin-top: 9px; }
.health-card, .login-card { padding: 12px; }
.health-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-top: 6px; }
.health-card dt { color: var(--muted); }
.health-card dd { overflow-wrap: anywhere; }
.scan-note { white-space: pre-wrap; }
.login-shell { max-width: 330px; }
.login-card { margin-top: 5vh; }
.login-form { display: grid; gap: 8px; margin-top: 9px; }
.login-form button { justify-self: start; }
.form-error { background: var(--panel); color: var(--warning); padding: 5px; margin-top: 5px; }

@media (max-width: 1100px) and (min-width: 700px) {
    .offer-table .cell-seen { display: none; }
    .offer-table .cell-spark { width: 78px; }
    .offer-table .cell-range { width: 62px; }
    .offer-table .cell-change { width: 112px; }
    .offer-table .cell-rating { width: 162px; }
    .offer-table .cell-dates { width: 100px; }
}
@media (max-width: 945px) and (min-width: 700px) {
    .offer-table .cell-seats { display: none; }
    .offer-table .cell-spark { width: 63px; }
    .offer-table .cell-range { width: 52px; }
    .offer-table .cell-insight { width: 61px; }
    .offer-table .cell-rating { width: 128px; }
    .offer-table .badge { white-space: normal; }
    .offer-table .cell-dates { width: 72px; white-space: normal; }
    .heat-table { font-size: .76rem; border-spacing: 2px; }
    .destination-col { width: 63px; }
}
@media (max-width: 699px) {
    .shell { width: calc(100% - 18px); }
    main.shell { padding-block: 9px 18px; }
    .market-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-tile { padding: 5px 7px; border-bottom: 1px solid var(--line); }
    .market-tile:nth-child(odd) { border-inline-start: 0; }
    .scanner-tile { grid-column: 1 / -1; border-bottom: 0; }
    .scanner-tile ul { grid-template-columns: repeat(2, 1fr); }
    .calendar-scroll { overflow-x: auto; }
    .heat-table { min-width: 820px; }
    .legend-scope { display: none; }
    .filter-popover { position: static; margin-top: 4px; }
    .toolbar > select { max-width: 14ch; }
    .offer-wrap { border: 0; background: transparent; }
    .offer-table, .offer-table tbody { display: block; }
    .offer-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    .offer-table thead:focus-within { position: static; width: auto; height: auto; clip-path: none; display: block; }
    .offer-table thead:focus-within tr { display: flex; flex-wrap: wrap; }
    .offer-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 3px 5px;
        margin-bottom: 4px;
        padding: 5px 7px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 4px;
    }
    .offer-table tbody .term-row { margin-inline-start: 12px; background: var(--panel); }
    .offer-table tbody :is(th, td) { display: block; width: auto; height: auto; padding: 0; border: 0; text-align: start; white-space: normal; min-width: 0; }
    .offer-table .cell-title { grid-column: span 2; box-shadow: none; }
    .offer-table .cell-title a { white-space: normal; overflow-wrap: anywhere; }
    .offer-table .cell-price { grid-column: 3; grid-row: 1; text-align: end; }
    .offer-table .cell-dates { grid-column: 1 / -1; }
    .offer-table .cell-change { grid-column: 1; }
    .offer-table .cell-insight { grid-column: 1; }
    .offer-table .cell-rating { grid-column: span 2; }
    .offer-table .cell-seats, .offer-table .cell-seen { grid-row: 5; }
    .offer-table .cell-seats::before { content: "Miejsca "; color: var(--muted); }
    .offer-table .cell-seen { grid-column: 2 / -1; justify-self: end; }
    .offer-table .real-drop-row { border-inline-start-color: var(--accent); }
    .detail-summary .button { margin-inline-start: 0; }
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .chart text { font-size: 17px; }
    .chart .axis-minor text, .chart text.axis-minor { display: none; }
}

/* ---- Lastminute design system layer ---- */
h1, h2, .brand { font-family: "Manrope", system-ui, sans-serif; font-weight: 800; }
.brand::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--brand); }
.site-header { background: var(--canvas); }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current] { color: var(--ink); }
.link-button, .link-button:hover { color: var(--muted); text-decoration: none; background: transparent; padding-inline: 0; }
.surface { border-color: transparent; border-radius: var(--r-md); }
button, .button, .more-filters summary, .filter-chip, input:not([type="checkbox"]), select { border-radius: 999px; min-height: 32px; padding-inline: 12px; background: var(--panel); border-color: transparent; }
.toolbar button[type="submit"] { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.toolbar button[type="submit"]:hover { background: var(--brand); color: var(--brand-ink); filter: brightness(1.06); }
input[type="checkbox"] { accent-color: var(--brand); }
.price, .cell-price strong, .quote-price, .heat-cell, .age, .cell-seats, .cell-dates time, .ticker, .stat, dd { font-family: var(--num); }
.quote-price { font-weight: 600; letter-spacing: -.02em; }
.cell-price strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.drop-tile .quote-price { color: var(--drop); }
.ticker { gap: 0 6px; padding: 3px 8px; border-radius: var(--r-sm); font-weight: 700; background: var(--panel); }
.ticker .pct { opacity: .7; font-weight: 600; }
.ticker.down, .ticker.down[class*="strength-"] { color: var(--drop); background: var(--drop-soft); }
.ticker.up, .ticker.up[class*="strength-"] { color: var(--rise); background: var(--rise-soft); }
.ticker.down.strength-4, .real-drop-row .ticker.down { color: var(--brand-ink); background: var(--brand); }
.spark .line { stroke: var(--drop); stroke-width: 1.75; fill: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark .area { fill: var(--drop-soft); stroke: none; }
.spark .avg { stroke: var(--line); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--drop); stroke: var(--paper); stroke-width: 2; }
.spark path:not(.line):not(.area) { stroke: var(--drop); }
.offer-table .cell-spark { width: 172px; }
.rating-real { background: var(--brand); color: var(--brand-ink); }
.rating-apparent { color: var(--rise); background: var(--rise-soft); }
.badge { border-radius: var(--r-sm); padding: 2px 7px; }
.real-drop-row .cell-title { box-shadow: inset 3px 0 var(--brand); }
@media (max-width: 1100px) and (min-width: 700px) { .offer-table .cell-spark { width: 130px; } }
@media (max-width: 945px) and (min-width: 700px) { .offer-table .cell-spark { width: 100px; } }
@media (max-width: 699px) { .offer-table .cell-spark { width: 100%; } .offer-table .spark { width: 100%; height: 48px; } }

/* ---- list readability ---- */
.cell-title .offer-link { text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: -.005em; }
.cell-title .offer-link:hover { color: var(--brand); }
.hotel-name { gap: 6px; }
.hotel-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; line-height: 16px; }
.country { color: var(--ink); font-weight: 600; }
.country::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--muted); vertical-align: 1px; }
.term-count, .age { border: 0; background: var(--panel); border-radius: 999px; padding: 1px 7px; font-family: var(--num); font-size: 11px; }
.spark-flat { color: var(--muted); font-size: 12px; }
.offer-table td, .offer-table th { border-color: var(--line); }
.offer-table tbody tr:hover { background: var(--panel); }
.offer-table thead th { color: var(--muted); font-weight: 600; font-size: 12px; }
.offer-table thead th a { color: inherit; text-decoration: none; }
.badge.uncertain:is(.is-flat, .is-new, .is-small), .badge.rating-flat { border: 0; background: transparent; color: var(--muted); padding-inline: 0; font-weight: 500; }
.badge.uncertain { border: 1px dashed var(--line); }
.cell-dates time { font-weight: 600; color: var(--ink); }
.offer-table .cell-title { min-width: 240px; }
.cell-title .offer-link { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 18px; }
.toolbar > a { color: var(--muted); text-decoration: none; }
.toolbar > a:hover { color: var(--ink); }
@media (min-width: 700px) {
    .offer-table th.cell-title { width: 24%; }
    .offer-table .cell-rating { width: 150px; }
    .offer-table .cell-spark { width: 150px; }
}
@media (max-width: 1200px) and (min-width: 700px) {
    .offer-table .cell-seen { display: none; }
    .offer-table .cell-change { width: 92px; }
    .offer-table .cell-spark { width: 112px; }
    .offer-table .cell-rating { width: 124px; }
}
/* iter 1 */
.ticker.flat { background: transparent; color: var(--muted); padding-inline: 0; }
.offer-table thead th { white-space: nowrap; }
.hotel-name { justify-content: flex-start; }
.cell-title .offer-link { flex: 0 1 auto; }
.term-toggle { flex: none; }
/* iter 2 */
.toolbar select { width: auto; max-width: none; flex: none; padding-right: 28px; }
.quote .spark-flat { display: none; }
.offer-table :is(th, td):is(.cell-price, .cell-change, .cell-seats) { text-align: right; }
.offer-table :is(th, td):is(.cell-spark, .cell-range, .cell-insight, .cell-rating) { text-align: center; }
.offer-table td.cell-dates, .offer-table th.cell-dates { text-align: left; }
.offer-table .cell-seats { color: var(--muted); }
/* iter 3 */
.ticker { flex-wrap: nowrap; white-space: nowrap; }
.offer-table .cell-change { width: 128px; }
.badge.uncertain { text-transform: none; font-weight: 600; }
@media (max-width: 699px) {
    .offer-table .cell-change:has(.ticker.flat),
    .offer-table .cell-rating:has(> .muted:only-child),
    .offer-table .cell-spark:has(.spark-flat) { display: none; }
    .offer-table td:is(.cell-range, .cell-insight) { align-self: center; }
}

/* Flags, agency icons, chart hover */
.flag { display: inline-block; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .25); flex: none; }
.agency-icon { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; border-radius: 3px; flex: none; }
.agency-fallback { background: var(--line); color: var(--ink); font-size: .7rem; text-align: center; line-height: 16px; }
.row-icons { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 7px; }
.market-tile h2 .flag { margin-inline-end: 3px; }
.spark circle.hit { fill: transparent; cursor: crosshair; }
.spark circle.hit:hover { fill: var(--blue); stroke: var(--ink); stroke-width: 1; }
.spark-axis { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; padding: 4px 7px; border-radius: 5px; background: var(--ink); color: var(--paper); font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / .35); }
.heat-table th[scope="row"], .market-tile h2 { white-space: nowrap; }

/* Scanner problems */
.warn-triangle { color: #ffb020; font-weight: 700; line-height: 1; }
.warn-triangle.error { color: #ff5a4f; }
.scanner-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; padding: 6px 10px; border: 1px solid #ff5a4f; border-radius: 6px; background: rgb(255 90 79 / .12); color: var(--ink); text-decoration: none; font-size: .86rem; }
.scanner-alert:hover { background: rgb(255 90 79 / .2); }
.scanner-alert .warn-triangle { font-size: 1.1rem; }
.scanner-alert-item { display: inline-flex; align-items: center; gap: 4px; }

/* Running scan and run history */
.scan-running { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; padding: 6px 10px; border: 1px solid var(--brand); border-radius: 6px; background: rgb(255 229 0 / .08); font-size: .86rem; }
.scan-running-item { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.runs { margin-top: 12px; padding: 10px 12px; }
.runs-table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.runs-table th, .runs-table td { padding: 4px 7px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.runs-table .num { text-align: right; }
.runs-table td.down { color: #3ddc84; }
.runs-table td.up { color: #ff5a4f; }
.runs-table tr.run-error td { background: rgb(255 90 79 / .08); }
.runs-table .scan-note { white-space: normal; max-width: 340px; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Taller rows, flags large enough to tell China from Vietnam */
.offer-table tbody th, .offer-table tbody td { padding-block: 9px; }
.row-icons { gap: 7px; margin-inline-end: 9px; }
.row-icons .flag { width: 33px; height: 22px; }
.row-icons .agency-icon { width: 22px; height: 22px; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand::after { content: none; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgb(255 229 0 / .25), 0 2px 10px rgb(255 229 0 / .18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-family: "Inter Tight", system-ui, sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Price link and click popovers */
.price-link { color: var(--ink); font-weight: 780; text-decoration: none; border-bottom: 1px dashed var(--muted); white-space: nowrap; }
.price-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.price-link span { font-size: .75em; color: var(--muted); }
.pop { position: relative; display: inline-block; }
.pop > summary { list-style: none; cursor: pointer; border-radius: 4px; }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary:hover { outline: 1px dashed var(--muted); outline-offset: 2px; }
.pop[open] > summary { outline: 1px solid var(--brand); outline-offset: 2px; }
.pop-body { position: absolute; z-index: 40; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 330px; max-height: 320px; overflow: auto; padding: 10px 12px; text-align: left; white-space: normal; font-size: .82rem; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px rgb(0 0 0 / .45); }
.pop-end .pop-body { left: auto; right: 0; transform: none; }
.pop-body h3 { margin: 0 0 6px; font-size: .9rem; }
.pop-body p { margin: 0 0 8px; }
.pop-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pop-table th, .pop-table td { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.pop-table .num { text-align: right; }
.pop-body .sold { color: #ff5a4f; font-weight: 700; }
.pop-body a { color: var(--brand); }

/* Recent-change / steady separator */
.list-separator td { padding: 10px 10px 6px !important; background: var(--paper); border-bottom: 2px solid var(--line); font-size: .8rem; }
.list-separator.steady td { padding-top: 18px !important; border-top: 2px solid var(--line); }
.list-separator .sep-label { font-family: "Manrope", system-ui, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 8px; }
.list-separator .sep-label.recent { color: var(--brand); }

/* Window chips */
.window-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.window-chips .chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 700; }
.window-chips .chip:hover { color: var(--ink); border-color: var(--muted); }
.window-chips .chip.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
