.livery-row {
    display: flex; gap: 8px; align-items: center;
    margin-top: 14px; flex-wrap: wrap;
}
.livery-row select, .livery-row input {
    background: var(--sol-bg-grain); color: var(--sol-ink);
    border: 1px solid var(--sol-line); border-radius: var(--sol-radius);
    padding: 6px 10px; font-family: var(--font-mono); font-size: 13px;
}
.livery-row select option { background: #fff; color: #1a1a1a; }
.livery-save {
    background: var(--sol-panel-2); color: var(--sol-amber); border: 1px solid var(--sol-line);
    border-radius: var(--sol-radius); padding: 6px 14px; cursor: pointer; font-weight: 600;
    transition: border-color 0.15s;
}
.livery-save:hover { border-color: var(--sol-amber); }
.livery-delete {
    background: transparent; color: var(--sol-ink-faint);
    border: 1px solid var(--sol-line); border-radius: var(--sol-radius);
    padding: 6px 10px; cursor: pointer; margin-left: auto;
    transition: border-color .12s, color .12s;
}
.livery-delete:hover { border-color: #e06a5c; color: #e06a5c; }
#liveryStatus { font-family: var(--font-mono); font-size: 12px; color: var(--sol-ink-dim); }

.livery-mods {
    display: flex; gap: 14px; flex-wrap: wrap;
    margin-top: 10px; padding-left: 2px;
}
.livery-mod {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--sol-ink-dim); display: flex; align-items: center; gap: 5px;
    cursor: pointer;
}
.livery-mod input { accent-color: var(--sol-amber); }
.livery-mods { align-items: center; }
.livery-mod-odd { font-family: var(--font-mono); font-size: 11px; color: var(--sol-warn); }

.livery-newvar {
    display: flex; gap: 8px; align-items: center;
    margin-top: 8px; padding-left: 2px; flex-wrap: wrap;
}
.livery-newvar input[type="text"] {
    background: var(--sol-bg-grain); color: var(--sol-ink);
    border: 1px solid var(--sol-line); border-radius: var(--sol-radius);
    padding: 6px 10px; font-family: var(--font-mono); font-size: 13px;
}
#liveryNewVarStatus { font-family: var(--font-mono); font-size: 12px; color: var(--sol-ink-dim); }
.livery-inactive { font-size: 12px; color: var(--sol-ink-dim); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }

.gx-app-title { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sol-ink-dim); margin-bottom: 4px; }
.gx-section-label { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--sol-line); }
.gx-num { font-family: var(--font-mono); font-size: 13px; color: var(--sol-amber); font-weight: 500; }
.gx-section-label h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.gx-sub { font-family: var(--font-mono); font-size: 11px; color: var(--sol-ink-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-left: auto; }

.gx-carousel { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.gx-carousel::-webkit-scrollbar { height: 6px; }
.gx-carousel::-webkit-scrollbar-thumb { background: var(--sol-line); border-radius: 3px; }
.gx-block { flex: 0 0 200px; scroll-snap-align: start; background: var(--sol-panel); border: 1px solid var(--sol-line); border-radius: var(--sol-radius); padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color 0.15s; }
.gx-block:hover { border-color: var(--sol-amber); }
.gx-block.selected { border-color: var(--sol-amber); box-shadow: 0 0 0 1px var(--sol-amber); }
.gx-block-head { padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.gx-block-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.gx-block-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--sol-ink-dim); text-transform: uppercase; letter-spacing: 0.04em; }

.gx-result { margin-top: 0px; min-height: 200px; }
.gx-fade { animation: gxFade 0.25s ease; }
@keyframes gxFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gx-result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
/* Title with its explanation below, slightly indented (2026-10-02, per the
   user) - next to each other they wrapped and pushed the selects around. */
.gx-result-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gx-result-titles .gx-result-sub { padding-left: 12px; }
.gx-result-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.gx-result-sub { font-family: var(--font-mono); font-size: 11px; color: var(--sol-ink-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.gx-mode-group { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.gx-mode-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--sol-ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.gx-mode-select {
    align-self: center;
    background: var(--sol-panel-2);
    color: var(--sol-ink);
    border: 1px solid var(--sol-line);
    border-radius: var(--sol-radius);
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
}
.gx-soon { font-family: var(--font-mono); font-size: 13px; color: var(--sol-ink-dim); padding: 40px 0; text-align: center; }

/* collection grid */
.gx-collection { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .gx-collection { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gx-collection { grid-template-columns: repeat(2, 1fr); } }
.gx-coll-item { background: var(--sol-panel); border: 1px solid var(--sol-line); border-radius: var(--sol-radius); overflow: hidden; }
.gx-coll-img { position: relative; aspect-ratio: 3/2; cursor: pointer; }
.gx-coll-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-cell-ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 30px 5px 8px; background: linear-gradient(transparent, rgba(0,0,0,0.72)); pointer-events: none; display: flex; flex-direction: column; gap: 1px; }
.gx-cell-ov span { font-family: var(--font-mono); font-size: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* smaller than the default .hl-icon-btn (22px) - the tile is narrow enough
   (5-up grid) that the full-size icons covered the airport/flight text in
   .gx-cell-ov; the extra right padding above also keeps that text from
   running underneath them. */
.gx-coll-img .hl-icons { bottom: 4px; right: 4px; gap: 3px; }
.gx-coll-img .hl-icon-btn { width: 16px; height: 16px; font-size: 8px; }
.gx-cell-nopic { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--sol-ink-dim); font-family: var(--font-mono); font-size: 11px; }
.gx-coll-cap { padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; }
.gx-coll-reg { font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.gx-coll-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--sol-ink-dim); }

/* ranked list */
.gx-ranked { background: var(--sol-panel); border: 1px solid var(--sol-line); border-radius: var(--sol-radius); overflow: hidden; }
.gx-rank-row { display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--sol-line); }
.gx-rank-row:last-child { border-bottom: none; }
.gx-rank-row:hover { background: var(--sol-panel-2, #1b2735); }
.gx-rank-num { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--sol-ink-dim); width: 24px; text-align: right; flex-shrink: 0; }
.gx-rank-row:nth-child(-n+3) .gx-rank-num { color: var(--sol-amber); }
.gx-rank-thumb { width: 66px; height: 44px; border-radius: 3px; overflow: hidden; flex-shrink: 0; position: relative; }
.gx-rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gx-rank-thumb .gx-cell-ov { display: none; }
.gx-rank-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gx-rank-reg { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.gx-rank-type { font-family: var(--font-mono); font-size: 11px; color: var(--sol-ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-rank-val { font-family: var(--font-mono); font-size: 12px; color: var(--sol-amber); flex-shrink: 0; text-align: right; }

.gx-coll-img { position: relative; }   /* falls nicht schon */
.gx-rank-badge {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    min-width: 24px; height: 24px; padding: 0 6px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6); color: #fff;
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    border-radius: 3px;
}
.gx-coll-item:nth-child(-n+3) .gx-rank-badge { background: var(--sol-amber); color: var(--sol-bg); }
.gx-cell-reload {
    position: absolute; top: 6px; right: 6px; z-index: 2;
    width: 26px; height: 26px; border-radius: 50%; border: none;
    background: rgba(0,0,0,0.55); color: #fff; font-size: 13px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.gx-cell-reload:hover { background: rgba(0,0,0,0.75); color: var(--sol-amber); }
.gx-cell-reload-disabled,
.gx-cell-reload-disabled:hover {
    background: rgba(0,0,0,0.28); color: rgba(255,255,255,0.45);
    cursor: default; opacity: 0.6;
}
.gx-coll-regline { display: flex; align-items: baseline; gap: 7px; }
.gx-coll-cn { font-family: var(--font-mono); font-size: 10.5px; color: var(--sol-ink-dim); }

.gx-rank-badge {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    min-width: 24px; height: 24px; padding: 0 6px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6); color: #fff;
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    border-radius: 3px;
}
.gx-coll-item:nth-child(-n+3) .gx-rank-badge { background: var(--sol-amber); color: var(--sol-bg); }
.gx-coll-val { font-family: var(--font-mono); font-size: 10.5px; color: var(--sol-amber); }
.gx-rank-n {
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    color: #fff;
}
.gx-coll-item:nth-child(-n+3) .gx-rank-n { color: var(--sol-amber); }
.gx-rank-v {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--sol-amber);
}
.gx-coll-country {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--sol-amber);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gx-cell-flight {
    color: var(--sol-amber) !important;
    font-weight: 600;
}
.gx-cell-country {
    color: var(--sol-amber) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px !important;
}
.gx-cell-country-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 8px 10px;
    background: linear-gradient(rgba(0,0,0,0.72), transparent);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--sol-amber);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    pointer-events: none;
    z-index: 2;
}
.gx-cell-topreg {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 6px 8px 12px 38px;   /* links 38px Platz fürs Rank-Badge */
    background: linear-gradient(rgba(0,0,0,0.72), transparent);
    display: flex;
    align-items: baseline;
    gap: 8px;
    z-index: 1;
    pointer-events: none;
}
.gx-cell-reg-top {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    color: var(--sol-amber);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.gx-cell-topreg.no-badge { padding-left: 8px; }
/* two-line top overlay (Top Ten): airline on line 1 (one line, cut with ...),
   aircraft type ICAO / IATA + the count on line 2 */
.gx-cell-topreg-2l {
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
}
.gx-cell-topreg-2l .gx-cell-reg-top {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gx-cell-top-line2 {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.gx-cell-codes {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--sol-ink-dim);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.gx-cell-val-top {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--sol-amber);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gx-cell-slides { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.gx-cell-slides span { font-size: 10px; color: var(--sol-ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* Category toggle above the single gallery carousel (2026-10-02): ranked
   top-10 tiles carry a small badge instead of their own carousel. */
#gxCategoryToggle { margin-bottom: 12px; }
#gxTiles .tile { position: relative; }
.tile-rank {
    position: absolute; top: 6px; right: 8px;
    font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--sol-amber); border: 1px solid var(--sol-amber); border-radius: 3px; padding: 0 4px;
}

/* Flown airplanes: flight · route · date as an extra caption line (2026-10-06) */
.gx-coll-extra { display: block; color: var(--sol-ink); }
/* Flown airplanes: the flight we flew, as a band at the top of the caption */
.gx-flown-band {
    display: block;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--sol-amber);
    border-left: 2px solid var(--sol-amber);
    padding-left: 6px; margin-bottom: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* My Journeys (2026-10-08) */
.jg-top { max-width: calc(100% - 34px); }
.jg-route { font-family: var(--font-mono); font-size: 11px; color: var(--sol-ink); white-space: normal; line-height: 1.3; }
.jg-name { white-space: normal; }
.jg-new { color: var(--sol-good); }
.jg-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 13px; color: var(--sol-ink-dim); margin: 4px 0 12px; }
.jg-stats b { color: var(--sol-ink); }
.jg-timeline { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.jg-day { border: 1px solid var(--sol-line); border-radius: var(--sol-radius); padding: 3px 7px; font-family: var(--font-mono); font-size: 11px; display: flex; flex-direction: column; min-width: 64px; }
.jg-day-empty { opacity: 0.4; }
.jg-day-date { color: var(--sol-ink-dim); }
.jg-day-what { color: var(--sol-amber); }
.jg-day-fl { color: var(--sol-ink); }
.jg-flights { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.jg-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; align-items: center; }
.jg-chip { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; border: 1px solid var(--sol-line);
    border-radius: var(--sol-radius); padding: 2px 8px; font-family: var(--font-mono); font-size: 11px; color: var(--sol-ink-dim); }
.jg-chip span { color: var(--sol-ink-faint); }
.jg-chip:hover { color: var(--sol-ink); }
.jg-chip.active { color: var(--sol-amber); border-color: var(--sol-amber); }
.jg-chip-sep { width: 12px; }
.jg-group { margin-top: 16px; }
.jg-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.jg-group-ap { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--sol-amber); }

/* My Journeys - Table view (2026-10-08) */
.jg-view-toggle { margin-bottom: 10px; }
.jg-table td.jg-t-name { white-space: normal; min-width: 220px; }
.jg-t-link { color: var(--sol-ink); text-decoration: none; }
.jg-t-link:hover { color: var(--sol-amber); }
.jg-rank { color: var(--sol-amber); font-weight: 600; }
.lg-spark .jg-bar-new { fill: var(--sol-good); }
.lg-spark .jg-bar-flight { fill: var(--sol-amber); }

/* My Journeys - Chart view (2026-10-08): totals per journey, date along the bottom */
.jg-chart { background: var(--sol-panel); border: 1px solid var(--sol-line); border-radius: var(--sol-radius); padding: 12px 14px; }
.jg-ch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.jg-ch-title { font-family: var(--font-display); color: var(--sol-ink); font-size: 15px; }
.jg-ch-sub { font-family: var(--font-mono); color: var(--sol-ink-dim); font-size: 11px; }
.jg-ch-legend { display: flex; gap: 14px; margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--sol-ink-dim); }
.jg-ch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.jg-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.jg-sw-new { background: var(--sol-good); }
.jg-sw-seen { background: var(--sol-ink-dim); }
.jg-ch-wrap { overflow-x: auto; }
.jg-ch-svg { display: block; }
.jg-ch-grid { stroke: var(--sol-line); stroke-width: 1; shape-rendering: crispEdges; }
.jg-ch-base { stroke: var(--sol-ink-faint, var(--sol-ink-dim)); }
.jg-ch-tick { stroke: var(--sol-line); stroke-width: 1; shape-rendering: crispEdges; }
.jg-ch-ylab, .jg-ch-xlab, .jg-ch-vlab { font-family: var(--font-mono); font-size: 10px; fill: var(--sol-ink-dim); }
.jg-ch-vlab { fill: var(--sol-ink); }
.jg-ch-code { font-family: var(--font-mono); font-size: 10px; fill: var(--sol-ink); }
.jg-ch-more { fill: var(--sol-ink-dim); }
.jg-ch-vname { font-family: var(--font-mono); font-size: 10px; fill: var(--sol-ink-dim); }
.jg-ch-col:hover .jg-ch-vname, .jg-ch-col:hover .jg-ch-code { fill: var(--sol-amber); }
.jg-ch-new { fill: var(--sol-good); }
.jg-ch-seen, .jg-ch-photos { fill: var(--sol-ink-dim); }
.jg-ch-col { cursor: pointer; }
.jg-ch-hit { fill: transparent; }
.jg-ch-col:hover .jg-ch-hit { fill: var(--sol-panel-2); }
.jg-ch-col:hover .jg-ch-seen, .jg-ch-col:hover .jg-ch-photos { fill: var(--sol-ink); }

/* Lightbox (2026-10-28, per the user): caption on top, highlight icons top right, cockpit
   bottom left and tails bottom right on the image, one form row below - the image shrinks by
   that row instead of the page scrolling. Phone portrait: cockpit / tails below the image. */
.lightbox-imgwrap .hl-icons { top: 8px; bottom: auto; right: 8px; z-index: 1; }
.lb-ov { position: absolute; bottom: 8px; z-index: 1; display: flex; align-items: flex-end; }
.lb-ov:empty { display: none; }
.lb-ov-left { left: 8px; }
.lb-ov-right { right: 8px; }
.lb-ov .livery-mods { margin: 0; padding: 0; }
.lb-ov .ci-mod-btn { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.25); }
.lb-ov .liv-gens { margin: 0; }
.lb-ov .liv-gen-btn { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.25); }
.lb-ov .ci-mod-group-label { display: none; }
.lightbox-livery .livery-row { margin-top: 0; }
.lightbox-livery .liv-conds { margin: 0; }
.lightbox-content:has(#liveryForm .livery-row) .lightbox-image { max-height: calc(95vh - 64px); }
@media (max-width: 700px) and (orientation: portrait) {
    .lightbox-imgwrap { flex-wrap: wrap; }
    .lb-ov { position: static; width: 100%; padding-top: 6px; }
    .lb-ov-right { justify-content: flex-start; }
    .lightbox-content:has(#liveryForm .livery-row) .lightbox-image { max-height: 60vh; }
}
