:root {
    --bg: #fbfdfa;
    --bg-elev: #ffffff;
    --bg-tint: #ecf6ee;
    --ink: #0f2a2e;
    --ink-2: #3a4f4f;
    --muted: #6b7e7c;
    --muted-2: #94a59f;
    --line: #e3ece3;
    --line-2: #d3e2d6;
    --green: #1f5e3d;
    --green-deep: #134228;
    --green-faint: #e8f3eb;
    --link: #1a4b8a;
    --link-visited: #6b3a8a;
    --shadow-1: 0 1px 2px rgba(15,42,46,.04), 0 8px 24px rgba(15,42,46,.06);
    --shadow-2: 0 2px 6px rgba(15,42,46,.06), 0 18px 50px rgba(15,42,46,.10);
    --radius: 24px;
    --font-ui: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    font-family: var(--font-ui);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex; flex-direction: column;
}

.bg-wash {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(900px 460px at 92% -10%, var(--bg-tint), transparent 60%);
}

/* Top bar: logo + search + account */
header.app-header {
    position: sticky; top: 0; z-index: 5;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 28px;
    max-width: 1200px;
}
.wordmark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 36px;
    line-height: 1;
    color: var(--green);
    letter-spacing: -0.02em;
    margin: 0;
    text-decoration: none;
    flex: 0 0 auto;
}
.search {
    flex: 1 1 auto;
    max-width: 640px;
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-elev);
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 10px 18px;
    box-shadow: var(--shadow-1);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.search:hover { box-shadow: var(--shadow-2); }
.search:focus-within { border-color: var(--green); box-shadow: var(--shadow-2); }
.search .icon { color: var(--muted); flex: 0 0 auto; }
.search input {
    flex: 1 1 auto;
    border: 0; outline: none; background: transparent;
    font: 15px/1.4 var(--font-ui);
    color: var(--ink);
    padding: 4px 0; min-width: 0;
}
.search input::placeholder { color: var(--muted); }

.role-select {
    flex: 0 0 auto;
    font: 13px/1.4 var(--font-ui);
    color: var(--ink-2);
    background: var(--bg-tint);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 5px 10px;
    outline: none;
    cursor: pointer;
    max-width: 220px;
}
.role-select:focus { border-color: var(--green); }

.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
    color: #fff; font-weight: 600; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex: 0 0 auto;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.15);
}

/* Tabs row (under header, optional but typical of SERPs) */
/* Result count row */
.count-row {
    max-width: 1200px;
    padding: 14px 28px 6px;
    font-size: 13px; color: var(--muted);
}
.count-row strong { color: var(--ink-2); font-weight: 500; }
.count-row em { font-style: normal; color: var(--green); font-weight: 600; }

/* Two-column layout */
.layout {
    max-width: 1200px;
    padding: 8px 28px 48px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    position: relative; z-index: 1;
}

/* Filters sidebar */
aside.filters {
    position: sticky; top: 110px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow: auto;
    padding-right: 8px;
}
aside.filters h2 {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 8px; font-weight: 600;
}
.filter-group { margin-bottom: 24px; }
.filter-group h3 {
    font-size: 13px; font-weight: 600; color: var(--ink);
    margin: 0 0 10px;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
}
.filter-group h3 .chev { color: var(--muted-2); transition: transform .15s ease; }
.filter-group.collapsed h3 .chev { transform: rotate(-90deg); }
.filter-group.collapsed .filter-body { display: none; }

.filter-body { display: flex; flex-direction: column; gap: 6px; }
.filter-row {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--ink-2);
    padding: 4px 2px;
    cursor: pointer;
    user-select: none;
}
.filter-row:hover { color: var(--ink); }
.filter-row input[type="checkbox"], .filter-row input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 14px; height: 14px; border-radius: 3px;
    border: 1.5px solid var(--line-2); background: var(--bg-elev);
    flex: 0 0 auto; position: relative; cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.filter-row input[type="radio"] { border-radius: 50%; }
.filter-row input[type="checkbox"]:checked,
.filter-row input[type="radio"]:checked {
    background: var(--green); border-color: var(--green);
}
.filter-row input[type="checkbox"]:checked::after {
    content: ''; position: absolute; left: 3px; top: 0px;
    width: 4px; height: 8px; border: solid #fff;
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.filter-row input[type="radio"]:checked::after {
    content: ''; position: absolute; inset: 3px;
    border-radius: 50%; background: #fff;
}
.filter-row .count { color: var(--muted-2); margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; }

.range-row { display: flex; gap: 8px; }
.range-row input {
    width: 100%; font: 13px var(--font-ui); color: var(--ink);
    padding: 7px 10px; border-radius: 8px;
    border: 1px solid var(--line-2); background: var(--bg-elev);
    outline: none;
}
.range-row input:focus { border-color: var(--green); }

.clear-btn {
    font: 12px var(--font-ui); color: var(--green);
    background: transparent; border: 0; padding: 0;
    cursor: pointer;
}
.clear-btn:hover { text-decoration: underline; }

/* Results column */
main.results { min-width: 0; }

.result {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
}
.result:last-child { border-bottom: 0; }

.thumb {
    width: 96px; height: 96px;
    border-radius: 12px;
    background: var(--green-faint);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
    flex: 0 0 auto;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb svg { opacity: .7; }

.meta-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--muted);
    margin-bottom: 4px;
}
.favicon {
    width: 16px; height: 16px; border-radius: 4px;
    background: var(--green-faint);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--green);
    flex: 0 0 auto;
}
.url-path { color: var(--muted); }
.url-host { color: var(--ink-2); font-weight: 500; }
.meta-sep { color: var(--muted-2); }

.result h3 {
    margin: 0 0 4px;
    font-size: 19px; font-weight: 500; line-height: 1.3;
    letter-spacing: -0.01em;
}
.result h3 a {
    color: var(--link); text-decoration: none;
}
.result h3 a:hover { text-decoration: underline; }
.result h3 a:visited { color: var(--link-visited); }

.snippet {
    font-size: 14px; line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
    text-wrap: pretty;
}
.snippet b { color: var(--ink); font-weight: 600; }

.result-tags {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-top: 8px;
}
.tag {
    font-size: 11px; color: var(--ink-2);
    background: var(--green-faint);
    padding: 2px 8px; border-radius: 999px;
}

/* Pagination */
.pagination {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 32px 0 8px;
    font-family: var(--font-display);
    color: var(--green);
}
.pagination .word {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--green);
    margin-right: 12px;
}
.page-num {
    width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font: 14px/1 var(--font-ui); color: var(--ink-2);
    text-decoration: none;
    cursor: pointer;
}
.page-num:hover { background: var(--green-faint); color: var(--ink); }
.page-num.active { background: var(--green); color: #fff; font-weight: 600; }
.page-arrow {
    padding: 6px 10px; font-size: 13px; color: var(--green);
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.page-arrow:hover { text-decoration: underline; }

footer.app-footer {
    border-top: 1px solid var(--line);
    background: color-mix(in oklab, var(--bg) 86%, transparent);
    font-size: 13px; color: var(--muted);
    margin-top: auto;
}
.footer-row {
    max-width: 1200px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px;
    flex-wrap: wrap; gap: 8px;
}
.footer-row .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-row a { color: inherit; text-decoration: none; }
.footer-row a:hover { color: var(--ink); }

/* Mobile filter toggle – hidden on desktop */
.filters-toggle { display: none; }

@media (max-width: 880px) {
    .layout { grid-template-columns: 1fr; gap: 16px; }
    .header-inner { gap: 12px; padding: 12px 16px; }
    .wordmark { font-size: 28px; }
    .count-row, .layout { padding-left: 16px; padding-right: 16px; }
    .result { grid-template-columns: 64px 1fr; gap: 12px; }
    .thumb { width: 64px; height: 64px; }

    /* Collapsible filter sidebar */
    .filters-toggle {
        display: flex; align-items: center; gap: 8px;
        font: 600 13px/1 var(--font-ui); color: var(--green);
        background: var(--bg-elev);
        border: 1px solid var(--line-2);
        border-radius: 12px;
        padding: 10px 16px;
        cursor: pointer;
        width: 100%;
        box-shadow: var(--shadow-1);
        transition: background .15s ease;
    }
    .filters-toggle:hover { background: var(--green-faint); }
    .filters-toggle svg { flex: 0 0 auto; }

    aside.filters {
        position: static; max-height: none; overflow: visible;
        display: none;
        background: var(--bg-elev);
        border: 1px solid var(--line-2);
        border-radius: 12px;
        padding: 16px;
        box-shadow: var(--shadow-1);
    }
    aside.filters.open { display: block; }
}

/* Row layout (music / compact results) */
.result-row {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.result-row:last-child { border-bottom: 0; }

.row-icon {
    width: 36px; height: 36px; flex: 0 0 36px;
    border-radius: 8px;
    background: var(--green-faint);
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
}
.row-icon svg { display: block; }

.row-body {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}

.row-main {
    display: flex; align-items: baseline; gap: 8px;
}
.row-name {
    font-size: 16px; font-weight: 500; line-height: 1.3;
    color: var(--link);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-decoration: none;
}
a.row-name:hover { text-decoration: underline; }
a.row-name:visited { color: var(--link-visited); }
span.row-name { color: var(--ink); }

.row-type {
    font-size: 11px; font-weight: 500; text-transform: capitalize;
    color: var(--muted);
    background: var(--green-faint);
    padding: 1px 7px; border-radius: 999px;
    white-space: nowrap; flex: 0 0 auto;
}

.row-detail {
    font-size: 13px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* ---- Pictures: multimodal grid ---- */
.layout-grid { grid-template-columns: 1fr; }

.picture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pic-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    display: flex; flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.pic-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.pic-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-tint);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.pic-thumb img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}
.pic-score {
    position: absolute; top: 8px; right: 8px;
    font-size: 11px; font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: color-mix(in oklab, var(--green-deep) 82%, transparent);
    padding: 3px 8px; border-radius: 999px;
    backdrop-filter: blur(4px);
}

.pic-body { padding: 10px 12px 12px; }
.pic-title {
    margin: 0 0 4px;
    font-size: 13px; font-weight: 500; line-height: 1.3;
    color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pic-meta {
    font-size: 12px; color: var(--muted);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.pic-original { color: var(--muted); text-decoration: none; }
.pic-original:hover { color: var(--green); text-decoration: underline; }

.pic-tags {
    margin-top: 6px;
    display: flex; gap: 4px; flex-wrap: wrap;
    max-height: 44px; overflow: hidden;
}
.pic-tag {
    font-size: 11px; color: var(--ink-2);
    background: var(--bg-tint);
    padding: 1px 7px; border-radius: 999px;
}

@media (max-width: 900px) {
    .picture-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .picture-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Justified photo rows (display.justified) ---- */
/* Each tile's flex-grow and flex-basis are proportional to its aspect ratio
   (--ar), so leftover row space scales every tile by the same factor and all
   tiles in a row share one height. Row breaks are the browser's greedy wrap.
   --row-h stays near the stored thumbnails' 384px long side to avoid upscaling. */
.layout-wide { max-width: none; }

.picture-grid.justified {
    --row-h: 240px;
    --ar-max: 2.4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
/* Absorbs the last row's slack so a short final row keeps the target height. */
.picture-grid.justified::after {
    content: "";
    flex-grow: 999;
}

/* --ar-max crops extreme panoramas so they can share a row on narrow screens. */
.jg-item {
    --ar-eff: min(var(--ar), var(--ar-max));
    position: relative;
    flex-grow: var(--ar-eff);
    flex-basis: calc(var(--ar-eff) * var(--row-h));
    aspect-ratio: var(--ar-eff);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-tint);
}
.jg-link { display: block; width: 100%; height: 100%; position: relative; }
.jg-link img.jg-hires {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity .25s ease, transform .3s ease;
}
.jg-link img.jg-hires.loaded { opacity: 1; }
.jg-link img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.jg-item:hover .jg-link img { transform: scale(1.03); }

/* Metadata sits on the photo's bottom edge over a dark fade. Clicks fall
   through to the similarity link except on the "original" link itself. */
.jg-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 10px 8px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.jg-title {
    margin: 0 0 2px;
    font-size: 13px; font-weight: 600; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-meta {
    font-size: 11px;
    color: rgba(255,255,255,.85);
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap; overflow: hidden;
}
/* The author truncates; the license and link never do. */
.jg-meta > * { flex: 0 0 auto; }
.jg-meta > .jg-shrink { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.jg-meta .meta-sep { color: rgba(255,255,255,.6); }
.jg-original {
    color: #fff;
    text-decoration: none;
    pointer-events: auto;
    flex: 0 0 auto;
}
.jg-original:hover { text-decoration: underline; }

/* Tags only on hover: they'd crowd the photo otherwise. */
.jg-tags {
    display: flex; gap: 4px; flex-wrap: wrap;
    max-height: 0; overflow: hidden;
    transition: max-height .2s ease, margin .2s ease;
}
.jg-item:hover .jg-tags { max-height: 40px; margin-top: 5px; }
.jg-tag {
    font-size: 10px;
    color: #fff;
    background: rgba(255,255,255,.18);
    padding: 1px 7px; border-radius: 999px;
}

.jg-item .pic-score, .jg-item .pic-source-badge { position: absolute; top: 8px; }
.jg-item .pic-score { right: 8px; }
.jg-item .pic-source-badge { left: 8px; }
.jg-item.pic-source { outline: 3px solid var(--green); outline-offset: -3px; }

@media (max-width: 1100px) {
    .picture-grid.justified { --row-h: 200px; }
}
/* Phones: low enough that most rows hold two or three photos. */
@media (max-width: 640px) {
    .picture-grid.justified { --row-h: 100px; --ar-max: 1.6; gap: 4px; }
    .jg-overlay { padding: 18px 7px 5px; }
    .jg-title { font-size: 12px; }
    .jg-meta { font-size: 10px; }
    /* No room for it at this size; the Commons page is a tap away on desktop. */
    .jg-meta .jg-original, .jg-meta .jg-original-sep { display: none; }
}
/* Touch screens have no hover; don't leave images zoomed after a tap. */
@media (hover: none) {
    .jg-item:hover .jg-link img { transform: none; }
    .jg-item:hover .jg-tags { max-height: 0; margin-top: 0; }
}

/* ---- Pictures: image-to-image similarity ---- */
.pic-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}
.pic-thumb { transition: filter .15s ease; }
.pic-link:hover .pic-thumb { filter: brightness(1.04); }

.pic-source {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}
.pic-source-badge {
    position: absolute; top: 8px; left: 8px;
    font-size: 11px; font-weight: 600;
    color: #fff;
    background: color-mix(in oklab, var(--green) 88%, transparent);
    padding: 3px 8px; border-radius: 999px;
    backdrop-filter: blur(4px);
}
.count-row a { color: var(--link); text-decoration: none; }
.count-row a:hover { text-decoration: underline; }

/* ---- Blind similarity compare ---- */
.compare-brand {
    font-size: 14px; font-weight: 500; color: var(--muted);
    letter-spacing: .01em;
}
main.compare {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 28px 64px;
    position: relative; z-index: 1;
    width: 100%;
}
.compare-head { text-align: center; margin-bottom: 28px; }
.compare-head h1 {
    font-family: var(--font-display); font-weight: 400;
    font-size: 30px; color: var(--ink); margin: 0 0 8px;
}
.compare-sub { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.compare-sub strong { color: var(--ink-2); font-weight: 600; }

.pick-form { margin: 0; }
.pick-buttons { display: flex; gap: 12px; justify-content: center; align-items: center; }
.pick-btn {
    appearance: none; border: 1px solid var(--green);
    background: var(--green); color: #fff;
    font: 600 15px/1 var(--font-ui);
    padding: 12px 22px; border-radius: 999px;
    cursor: pointer; text-decoration: none;
    transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
    box-shadow: var(--shadow-1);
}
.pick-btn:hover { background: var(--green-deep); box-shadow: var(--shadow-2); }
.pick-btn:active { transform: translateY(1px); }
.pick-btn.ghost {
    background: transparent; color: var(--muted);
    border-color: var(--line-2); box-shadow: none;
    font-weight: 500; padding: 10px 16px;
}
.pick-btn.ghost:hover { background: var(--bg-tint); color: var(--ink-2); }

.compare-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.compare-col {
    background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
}
.col-head {
    margin: 2px 0 12px; text-align: center;
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
}
.col-cards { display: flex; flex-direction: column; gap: 14px; }

.pic-rank {
    position: absolute; top: 8px; right: 8px;
    font-size: 11px; font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
    background: color-mix(in oklab, var(--bg-elev) 85%, transparent);
    padding: 3px 8px; border-radius: 999px;
    backdrop-filter: blur(4px);
}

.compare-col .pic-thumb {
    max-height:200px;
}

@media (max-width: 720px) {
    .compare-cols { grid-template-columns: 1fr; }
}

/* ---- Compare results: bar charts ---- */
.header-cta { margin-left: auto; padding: 8px 16px; font-size: 13px; }

.chart-block {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-1);
}
.chart-title {
    font-size: 16px; font-weight: 600; color: var(--ink);
    margin: 0 0 18px;
}
.chart-note { font-weight: 400; font-size: 13px; color: var(--muted); }
.chart-empty { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.bar-row {
    display: grid;
    grid-template-columns: 200px 1fr 96px;
    align-items: center;
    gap: 14px;
    margin: 10px 0;
}
.bar-label {
    font-size: 13px; color: var(--ink-2);
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.winner-tag {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--green-deep);
    background: var(--green-faint);
    padding: 2px 7px; border-radius: 999px;
}
.bar-track {
    background: var(--bg-tint);
    border-radius: 999px;
    height: 22px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 999px;
    min-width: 2px;
    transition: width .3s ease;
}
.fill-a { background: var(--green); }
.fill-b { background: #2f7db8; }
.fill-neutral { background: var(--muted-2); }
.fill-identical { background: var(--line-2); }
.bar-value {
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    text-align: right; font-variant-numeric: tabular-nums;
}
.bar-pct { font-weight: 400; color: var(--muted); margin-left: 2px; }

@media (max-width: 640px) {
    .bar-row { grid-template-columns: 120px 1fr 72px; gap: 8px; }
}
