/* ==========================================================================
   Insights — the cellar at a glance (Pages/Insights.razor + Components/Insights/*).
   Port of the app's components/v2/insights/* (InsightsHeadline, InsightsSection, the
   symbols and the passes). The squares/passes themselves come from the shared glance grid
   (glance.css, --gl-* tokens); everything here is prefixed .ins-.
   Tokens below mirror the app's lib/theme/colors.ts; reuse them, never a raw hex.
   ========================================================================== */

:root {
    --ins-on-dark: #f6fbf8;            /* app colors.textOnDark */
    --ins-surface-alt: #eef2f0;        /* app colors.surfaceAlt */
    --ins-chip-text: #1e2a24;          /* app colors.textChip */
    --ins-navy: #1a3548;               /* app colors.vinblikNavy */
    --ins-mustard: #d4a341;            /* app colors.vinblikMustard */
    --ins-rust: #a85a2a;               /* app colors.vinblikRust */
    --ins-warn: #9a5b12;               /* app colors.lookupWarn */
    --ins-warn-bg: #fbefdc;            /* app colors.lookupWarnBg */
    --ins-ink-18: rgba(11, 11, 12, 0.18); /* app colors.vinblikInk18 */
    --ins-dot-shadow: rgba(19, 26, 23, 0.25);       /* app textHeading @ shadowOpacity 0.25 */
    --ins-dot-shadow-light: rgba(19, 26, 23, 0.45); /* … 0.45 for white / rosé dots */

    /* Bedrock tones — roughly the rock's own colour, never the topsoil palette. */
    --ins-rock-chalk: #f1eee6;         /* app colors.rockChalk */
    --ins-rock-limestone: #dbd4c3;     /* app colors.rockLimestone */
    --ins-rock-marl: #c2b6a0;          /* app colors.rockMarl */
    --ins-rock-clay: #7a6656;          /* app colors.rockClay */
    --ins-rock-sand: #d8c08f;          /* app colors.rockSand */
    --ins-rock-gravel: #a7a29a;        /* app colors.rockGravel */
    --ins-rock-slate: #5f6b73;         /* app colors.rockSlate */
    --ins-rock-granite: #c3a59b;       /* app colors.rockGranite */
    --ins-rock-volcanic: #3f3b3a;      /* app colors.rockVolcanic */

    /* Aroma wheel — one colour per WSET cluster. */
    --ins-aroma-red-fruit: #a3262f;    /* app colors.aromaRedFruit */
    --ins-aroma-black-fruit: #3a0e14;  /* app colors.aromaBlackFruit */
    --ins-aroma-citrus: #e5cc55;       /* app colors.aromaCitrus */
    --ins-aroma-green-fruit: #9fb46a;  /* app colors.aromaGreenFruit */
    --ins-aroma-stone-fruit: #e9a35b;  /* app colors.aromaStoneFruit */
    --ins-aroma-tropical: #f2c14e;     /* app colors.aromaTropical */
    --ins-aroma-floral: #e59bb0;       /* app colors.aromaFloral */
    --ins-aroma-herbal: #5f7f4e;       /* app colors.aromaHerbal */
    --ins-aroma-spice: #8a4b2a;        /* app colors.aromaSpice */
    --ins-aroma-dried-fruit: #7b4a5a;  /* app colors.aromaDriedFruit */
    --ins-aroma-oak: #b9773f;          /* app colors.aromaOak */
    --ins-aroma-yeast: #d9b98a;        /* app colors.aromaYeast */
    --ins-aroma-mlf: #efe2b8;          /* app colors.aromaMlf */
    --ins-aroma-earth: #6b5747;        /* app colors.aromaEarth */
    --ins-aroma-oxidative: #a8803f;    /* app colors.aromaOxidative */
    --ins-aroma-other: #c7d1cc;        /* app colors.aromaOther */
}

/* reset.css makes every svg `display:block; width:100%`; Insights' glyphs (icons, the donut,
   the mini strata) keep the size their width attribute gives them. */
.ins-page svg[width]:not([width$="%"]) { width: auto; flex-shrink: 0; }

/* ── Page ── */
.ins-page {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 2rem;
}
.ins-page .page-header { margin-bottom: 0.5rem; }

/* Background refresh: a thin indeterminate bar, absolutely placed so nothing shifts. */
.ins-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-brand-soft);
}
.ins-progress > span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    border-radius: 2px;
    background: var(--color-brand);
    animation: ins-progress 1.2s ease-in-out infinite;
}
@keyframes ins-progress {
    from { left: -30%; }
    to { left: 100%; }
}

/* First-load skeleton, shaped like the headline + a section of squares. */
.ins-skeleton { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.ins-sk-kicker { width: 120px; height: 10px; }
.ins-sk-count { width: 160px; height: 44px; border-radius: 10px; }
.ins-sk-line { width: 220px; height: 12px; }
.ins-sk-strip { width: 100%; height: 8px; margin-top: 6px; }
.ins-sk-title { width: 140px; height: 18px; margin-top: 24px; }
.ins-sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ins-sk-cell { height: 150px; border-radius: 12px; }
.ins-sk-row { height: 56px; border-radius: 12px; margin-top: 10px; }

/* Cold start */
.ins-empty-state { padding: 3rem 1rem; }
.ins-empty-glyph { color: var(--color-brand); }
.ins-empty-body { max-width: 420px; line-height: 1.5; }
.ins-empty-state .btn-primary { display: inline-flex; margin-top: 0.5rem; text-decoration: none; }

/* ── Headline ── */
.ins-headline { padding-top: 10px; }
.ins-kicker {
    font-size: 10.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-muted);
}
.ins-count-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.ins-count {
    font-size: 46px;
    line-height: 50px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--gl-heading);
    font-variant-numeric: tabular-nums;
}
.ins-count-unit { font-size: 18px; font-weight: 700; color: var(--gl-heading); }
.ins-headline-sub { font-size: 13px; color: var(--color-muted); margin-top: 4px; }
.ins-headline-strip { margin-top: 14px; }
.ins-headline-legend { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; margin-top: 8px; }
.ins-headline-legend-item { display: inline-flex; align-items: center; font-size: 11.5px; color: var(--color-muted); }
.ins-read {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--color-brand-soft);
}
.ins-read-icon { color: var(--color-brand); margin-top: 1px; display: inline-flex; }
.ins-read-text { flex: 1; margin: 0; font-size: 13.5px; line-height: 19px; color: var(--color-dark-text); }

/* ── Section ── */
.ins-section { margin-top: 30px; }
.ins-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}
.ins-section-title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--gl-heading);
}
.ins-section-note {
    flex-shrink: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--gl-placeholder);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ins-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 16px;
    border-radius: 14px;
    border: 1.5px dashed var(--gl-border-soft);
    font-size: 13.5px;
    line-height: 19px;
    color: var(--gl-text-secondary);
}
.ins-empty-icon { color: var(--color-muted); display: inline-flex; }
.ins-link {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    min-height: 32px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-brand);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.ins-link:hover { opacity: 0.75; }
.ins-link:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 6px; }
.ins-section-link { margin-top: 6px; min-height: 36px; }

/* ── Symbols (inside the grid's buttons: spans only) ── */
.ins-sym { display: block; width: 100%; }
.ins-centre { display: flex; align-items: center; justify-content: center; }
.ins-one-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ins-value-symbol { display: flex; flex-direction: column; gap: 9px; }
.ins-legend { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 4px; }
.ins-legend-text { font-size: 11.5px; color: var(--color-muted); }
.ins-legend-text strong { color: var(--color-dark-text); font-weight: 700; }

/* Colour strip */
.ins-strip { display: flex; gap: 2px; width: 100%; overflow: hidden; }
.ins-strip-part { display: flex; align-items: center; min-width: 2px; overflow: hidden; }
.ins-strip-label { padding-left: 6px; font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; }

/* Bar rows */
.ins-bars { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ins-bar-row { display: flex; align-items: center; gap: 8px; }
.ins-bar-label {
    flex-shrink: 0;
    font-size: 11.5px;
    color: var(--gl-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ins-bar-track { flex: 1; min-width: 0; height: 6px; border-radius: 3px; background: var(--ins-surface-alt); overflow: hidden; }
.ins-bar-fill { display: block; height: 6px; border-radius: 3px; }
.ins-bar-value {
    flex-shrink: 0;
    text-align: right;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-muted);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    white-space: nowrap;
}

/* Columns (vintages, pace) */
.ins-cols { display: flex; align-items: flex-end; width: 100%; }
.ins-cols--pace { gap: 4px; }
.ins-col {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
}
.ins-col--btn {
    all: unset;
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
}
.ins-col--btn:hover .ins-col-stack { opacity: 0.8; }
.ins-col--btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 1px; border-radius: 2px; }
.ins-col-stack { display: flex; flex-direction: column-reverse; border-radius: 2px; overflow: hidden; }
.ins-col-stack--empty { background: var(--gl-border-light); }
.ins-col-stack--sel { outline: 1.5px solid var(--gl-heading); outline-offset: 0; }
.ins-tier { display: block; min-height: 0; }
.ins-tier--great { background: var(--color-brand); }
.ins-tier--good { background: var(--gl-chart-muted); }
.ins-tier--weak { background: var(--gl-border-soft); }
.ins-tier--unscored { background: var(--gl-border-light); }
.ins-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--gl-placeholder);
    font-variant-numeric: tabular-nums;
}
.ins-pace { display: block; width: 100%; }
.ins-col-value {
    text-align: center;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-muted);
}
.ins-col-value--top { color: var(--color-brand); }
.ins-pace-bar { display: block; border-radius: 3px; background: var(--gl-chart-muted); }
.ins-pace-bar--top { background: var(--color-brand); }
.ins-pace-bar--empty { background: var(--gl-border-light); }
.ins-col-labels { display: flex; gap: 4px; margin-top: 5px; }
.ins-col-label {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--gl-placeholder);
    overflow: hidden;
    white-space: nowrap;
}
.ins-col-label--top { color: var(--color-brand); }

/* Climate bar: 12 °C … 23 °C */
.ins-climate { position: relative; display: block; width: 100%; height: 96px; }
.ins-climate-marker {
    position: absolute;
    top: 14px;
    width: 90px;
    margin-left: -45px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ins-climate-marker-text { font-size: 10px; font-weight: 700; color: var(--color-brand); white-space: nowrap; }
.ins-climate-stem { width: 2px; height: 12px; margin-top: 2px; background: var(--color-brand); }
.ins-climate-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 43px;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--ins-navy), var(--gl-chart-muted), var(--ins-mustard), var(--ins-rust));
}
.ins-climate-dot {
    position: absolute;
    top: 40px;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--color-card-bg);
    border: 3px solid var(--color-brand);
}
.ins-climate-ends {
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--gl-placeholder);
}

/* BLIC columns */
.ins-blic { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.ins-blic-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ins-blic-value { font-size: 10px; font-weight: 700; color: var(--gl-text-secondary); font-variant-numeric: tabular-nums; }
.ins-blic-bar { display: block; width: 22px; border-radius: 5px; background: var(--color-brand); }
.ins-blic-letter { font-size: 10px; font-weight: 700; color: var(--color-muted); }

/* Score badge */
.ins-badge {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--gl-heading);
    font-variant-numeric: tabular-nums;
}

/* Donut (aroma wheel) */
.ins-donut { position: relative; display: inline-block; flex-shrink: 0; }
.ins-donut > svg { display: block; }
.ins-donut-centre {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.ins-donut-small { font-size: 15px; font-weight: 700; color: var(--gl-heading); }
.ins-donut-kicker {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-muted);
}
.ins-donut-main { max-width: 120px; margin-top: 2px; font-size: 17px; font-weight: 700; color: var(--gl-heading); }
.ins-donut-sub { margin-top: 2px; font-size: 11.5px; color: var(--color-muted); }

/* Style map: body → against acidity ↑ */
.ins-map {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-left: 1px solid var(--gl-border);
    border-bottom: 1px solid var(--gl-border);
}
.ins-map-mid-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--gl-border-light); }
.ins-map-mid-h { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--gl-border-light); }
.ins-map-corner { position: absolute; font-size: 10px; font-weight: 700; color: var(--gl-placeholder); }
.ins-map-spot {
    position: absolute;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1.5px dashed var(--color-brand);
    background: var(--color-brand-soft);
}
.ins-map-dot {
    position: absolute;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid var(--color-card-bg);
    box-shadow: 0 1px 1.5px var(--ins-dot-shadow);
}
.ins-map-dot--small { border-width: 0; }
.ins-map-dot--light { box-shadow: 0 1px 1.5px var(--ins-dot-shadow-light); }
.ins-map-spot-label {
    position: absolute;
    width: 120px;
    margin-left: -60px;
    margin-bottom: 4px;
    text-align: center;
}
.ins-map-spot-label > span {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--color-brand);
    color: var(--ins-on-dark);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

/* Level scale (five steps) */
.ins-level { position: relative; display: block; height: 14px; margin: 0 7px; }
.ins-level-track { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--gl-border-light); }
.ins-level-fill { position: absolute; left: 0; top: 6px; height: 2px; background: var(--color-brand); }
.ins-level-dot { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; }
.ins-level-dot--on { background: var(--color-brand); }
.ins-level-dot--off { background: var(--gl-border); }
.ins-level-mark {
    position: absolute;
    top: 0;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--color-card-bg);
    border: 3px solid var(--color-brand);
}

/* You & a friend */
.ins-friend { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 100%; }
.ins-avatars { display: flex; margin-bottom: 2px; }
.ins-avatar {
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ins-avatar--you { background: var(--color-brand); color: var(--ins-on-dark); }
.ins-avatar--them { margin-left: -7px; background: var(--ins-mustard); color: var(--gl-heading); font-size: 10px; font-weight: 700; }
.ins-pair { display: flex; flex-direction: column; gap: 2px; }
.ins-pair-bar { display: block; height: 4px; border-radius: 2px; }
.ins-pair-bar--you { background: var(--color-brand); }
.ins-pair-bar--them { background: var(--ins-mustard); }

/* Bedrock strata */
.ins-strata { position: relative; display: block; width: 100%; }
.ins-strata-svg { position: absolute; inset: 0; display: block; }
.ins-strata-bed { fill: none; stroke: var(--ins-ink-18); stroke-width: 0.6; }
.ins-strata-label {
    position: absolute;
    left: 10px;
    right: 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ins-minirock-frame { fill: none; stroke: var(--gl-border-soft); }

/* Warmth scale */
.ins-ws { position: relative; display: block; width: 100%; }
.ins-ws-axis { position: absolute; left: 0; right: 0; height: 1px; background: var(--gl-border-soft); }
.ins-ws-tick { position: absolute; width: 1px; height: 7px; background: var(--gl-border-soft); }
.ins-ws-tick-label {
    position: absolute;
    width: 28px;
    text-align: center;
    font-size: 10px;
    color: var(--gl-placeholder);
    font-variant-numeric: tabular-nums;
}
.ins-ws-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gl-placeholder); }
.ins-ws-dot--here { width: 10px; height: 10px; background: var(--color-brand); }
.ins-ws-stem { position: absolute; width: 1px; background: var(--gl-border-soft); }
.ins-ws-label {
    position: absolute;
    text-align: center;
    font-size: 10px;
    line-height: 13px;
    color: var(--gl-text-secondary);
    white-space: nowrap;
    overflow: hidden;
}
.ins-ws-label--here { font-size: 11px; font-weight: 700; color: var(--gl-heading); }

/* Keep vs open (square) */
.ins-keep-symbol { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ins-keep-strip { display: block; }
.ins-strip-caption { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 700; color: var(--color-muted); }

/* ── Pass parts ── */
.ins-face-label {
    margin: 18px 0 10px;
    font-size: 10.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-muted);
}
.ins-face-label--first { margin-top: 0; }
.ins-face-text { margin: 8px 0 0; font-size: 13.5px; line-height: 19px; color: var(--gl-text-secondary); }
.ins-face-source { margin: 10px 0 0; font-size: 11px; line-height: 15px; color: var(--gl-placeholder); }
.ins-face-source a { color: inherit; text-decoration: underline; }

.ins-wine { display: flex; align-items: center; border-top: 1px solid var(--gl-border); }
.ins-wine-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: inherit;
    text-decoration: none;
}
a.ins-wine-main:hover { opacity: 0.7; }
a.ins-wine-main:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 6px; }
.ins-wine-stripe { flex-shrink: 0; width: 4px; align-self: stretch; min-height: 32px; border-radius: 2px; }
.ins-wine-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ins-wine-producer, .ins-wine-name, .ins-wine-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-wine-producer { margin-bottom: 1px; font-size: 11px; color: var(--color-muted); }
.ins-wine-name { font-size: 14px; font-weight: 700; color: var(--gl-heading); }
.ins-wine-meta { margin-top: 1px; font-size: 11.5px; color: var(--gl-text-secondary); }

.ins-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 12px; }
.ins-note--info { background: var(--color-brand-soft); }
.ins-note--warn { background: var(--ins-warn-bg); }
.ins-note-icon { display: inline-flex; margin-top: 1px; }
.ins-note--info .ins-note-icon { color: var(--color-brand); }
.ins-note--warn .ins-note-icon { color: var(--ins-warn); }
.ins-note-body { flex: 1; min-width: 0; }
.ins-note-text { margin: 0; font-size: 13.5px; line-height: 19px; color: var(--color-dark-text); }
.ins-note-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid;
    background: var(--color-card-bg);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}
.ins-note--info .ins-note-btn { border-color: var(--color-brand); color: var(--color-brand); }
.ins-note--warn .ins-note-btn { border-color: var(--ins-warn); color: var(--ins-warn); }
.ins-note-btn:hover { opacity: 0.75; }

/* The ticket edge: a dashed line across the pass, notched at both sides. */
.ins-perf { position: relative; height: 0; margin: 14px -1rem; border-top: 1px dashed var(--gl-border-soft); }
.ins-perf-notch {
    position: absolute;
    top: -8px;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--color-primary-bg);
    border: 1px solid var(--gl-border-light);
}
.ins-perf-notch--left { left: -9px; }
.ins-perf-notch--right { right: -9px; }

.ins-fields { display: flex; flex-wrap: wrap; row-gap: 12px; margin: 0; }
.ins-field { box-sizing: border-box; width: 33.33%; padding-right: 8px; }
.ins-fields--two .ins-field { width: 50%; }
.ins-field-label {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ins-field-value {
    margin: 1px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--gl-heading);
    font-variant-numeric: tabular-nums;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Value pass */
.ins-value-trail { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: 10px; }
.ins-value-amount { font-size: 13.5px; font-weight: 700; color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.ins-sell-btn {
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--color-brand-soft);
    color: var(--color-brand);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}
.ins-sell-btn:hover { opacity: 0.75; }

/* Origins pass */
.ins-countries { display: flex; flex-direction: column; gap: 14px; }
.ins-country { display: flex; flex-direction: column; gap: 5px; }
.ins-country-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ins-country-name {
    flex-shrink: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ins-country-count { flex-shrink: 0; font-size: 12.5px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.ins-track { height: 8px; border-radius: 4px; background: var(--ins-surface-alt); overflow: hidden; }
.ins-track-fill { height: 8px; border-radius: 4px; background: var(--color-brand); }
.ins-country-areas {
    font-size: 12px;
    line-height: 16px;
    color: var(--gl-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vintages pass */
.ins-legend-row { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; margin-top: 10px; }
.ins-legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--color-muted); }
.ins-legend-swatch { width: 10px; height: 10px; border-radius: 2px; }
.ins-big-year {
    margin-top: 14px;
    font-size: 30px;
    line-height: 34px;
    font-weight: 700;
    letter-spacing: -0.027em;
    color: var(--gl-heading);
    font-variant-numeric: tabular-nums;
}

/* Bedrock pass */
.ins-rock-list { margin-top: 12px; }
.ins-rock-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--gl-border); }
.ins-rock-text { flex: 1; min-width: 0; }
.ins-rock-name { font-size: 14px; font-weight: 700; color: var(--gl-heading); }
.ins-rock-areas {
    margin-top: 1px;
    font-size: 12px;
    color: var(--gl-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ins-rock-pct { font-size: 14px; font-weight: 700; color: var(--gl-heading); font-variant-numeric: tabular-nums; }

/* Keep vs open pass */
.ins-keep-table { width: 100%; border-collapse: collapse; }
.ins-keep-table th,
.ins-keep-table td { padding: 6px 0; }
.ins-keep-table thead th {
    width: 70px;
    text-align: right;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-muted);
}
.ins-keep-table tbody th {
    text-align: left;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--color-dark-text);
}
.ins-keep-table tbody td {
    width: 70px;
    text-align: right;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gl-heading);
    font-variant-numeric: tabular-nums;
}
.ins-keep-table td.ins-keep-up { color: var(--color-brand); font-weight: 800; }
.ins-dot { display: inline-block; flex-shrink: 0; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; vertical-align: 0; }
.ins-dot--small { width: 7px; height: 7px; margin-right: 5px; }

/* Structure rows */
.ins-structure { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.ins-structure--compact { gap: 9px; }
.ins-structure-row { display: block; }
.ins-structure-head { display: flex; justify-content: space-between; margin-bottom: 5px; }
.ins-structure-label { font-size: 12px; font-weight: 700; color: var(--gl-text-secondary); }
.ins-structure-word { font-size: 12.5px; font-weight: 700; color: var(--gl-heading); }

/* Scores pass */
.ins-area-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--gl-border); }
.ins-area-text { flex: 1; min-width: 0; }
.ins-area-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gl-heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ins-area-meta { margin-top: 1px; font-size: 11.5px; color: var(--color-muted); }

/* Aromas pass */
.ins-tier-row { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 14px; row-gap: 4px; margin-top: 12px; }
.ins-tier-text { font-size: 11.5px; color: var(--color-muted); }
.ins-tier-text strong { color: var(--color-dark-text); font-weight: 700; }
.ins-legend-grid { display: flex; flex-wrap: wrap; row-gap: 9px; margin-top: 14px; }
.ins-legend-cell { box-sizing: border-box; width: 50%; display: flex; align-items: center; gap: 8px; padding-right: 12px; }
.ins-swatch { flex-shrink: 0; width: 10px; height: 10px; border-radius: 3px; }
.ins-legend-name {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    color: var(--color-dark-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ins-legend-count { font-size: 12.5px; font-weight: 700; color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-chip {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--color-secondary-bg);
    border: 1px solid var(--gl-border-light);
    font-size: 12px;
    font-weight: 700;
    color: var(--ins-chip-text);
}

/* Style pass */
.ins-map-hint { margin: -6px 0 10px; font-size: 12px; line-height: 16px; color: var(--gl-text-secondary); }
.ins-map-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 10px; font-weight: 700; color: var(--color-muted); }

/* You & a friend pass */
.ins-friend-legend { display: flex; gap: 16px; margin-bottom: 12px; }
.ins-friend-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--color-dark-text); }
.ins-key-dot { width: 10px; height: 10px; border-radius: 50%; }
.ins-key-dot--you { background: var(--color-brand); }
.ins-key-dot--them { background: var(--ins-mustard); }
.ins-pairs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ins-pair-row { display: flex; align-items: center; gap: 10px; }
.ins-pair-label { flex-shrink: 0; width: 84px; font-size: 12px; color: var(--gl-text-secondary); }
.ins-pair-bars { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ins-pair-wide { display: block; height: 6px; border-radius: 3px; }
.ins-pair-wide--you { background: var(--color-brand); }
.ins-pair-wide--them { background: var(--ins-mustard); }
.ins-score-pair { display: inline-flex; gap: 10px; margin-left: 10px; }
.ins-score-you, .ins-score-them { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ins-score-you { color: var(--color-brand); }
.ins-score-them { color: var(--ins-warn); }

/* ── The request box ── */
.ins-ask {
    margin-top: 34px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--gl-border-light);
    background: var(--color-card-bg);
}
.ins-ask-label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--gl-heading); }
.ins-ask-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--gl-border-light);
    background: var(--color-secondary-bg);
    font: inherit;
    font-size: 15px;
    color: var(--gl-heading);
    resize: vertical;
}
.ins-ask-input::placeholder { color: var(--gl-placeholder); }
.ins-ask-input:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 1px; }
.ins-ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ins-ask-thanks { font-size: 13px; font-weight: 700; color: var(--color-brand); }
.ins-ask-send {
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--color-brand);
    color: var(--ins-on-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.ins-ask-send:hover:not(:disabled) { background: var(--color-brand-dark); }
.ins-ask-send:disabled { opacity: 0.4; cursor: default; }
.ins-ask-send:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

@media (max-width: 520px) {
    .ins-perf { margin-left: -0.8rem; margin-right: -0.8rem; }
    .ins-count { font-size: 40px; line-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .ins-progress > span { animation: none; left: 0; width: 100%; opacity: 0.4; }
}

/* ==========================================================================
   Desktop (≥ 900 px) — the approved "No cards" dashboard
   (Components/Insights/Desk/*, design spec mockups/insights.html, look-flat).
   InsightsContent renders the phone tree (.ins-phone) and the desktop tree (.ins-desk)
   side by side; CSS shows one. Below 900 px everything above is untouched.
   Prefix .insd-.
   ========================================================================== */

:root {
    --insd-tier-great: #1a3a2a;    /* app colors.vinblikForest — great year (mockup --tier-great) */
    --insd-tier-good: #6f8f7c;     /* desktop mockup --tier-good (no app token) */
    --insd-tier-weak: #c9b48a;     /* desktop mockup --tier-weak (no app token) */
    --insd-warm-cool: #cfe0ea;     /* desktop mockup warmth scale — cool end */
    --insd-warm-mid: #efe3c4;      /* desktop mockup warmth scale — middle */
    --insd-warm-hot: #e3b48f;      /* desktop mockup warmth scale — hot end */
}

/* ── Which tree ── */
.ins-page .ins-desk,
.ins-ask-kicker { display: none; }

@media (min-width: 900px) {
    .ins-page { max-width: none; } /* full width, like every other page */
    .ins-page .ins-phone { display: none; }
    .ins-page .ins-desk { display: block; }
    .ins-page .page-header { align-items: center; margin: 6px 0 16px; }
    .ins-page .page-title {
        font-family: var(--font-body);
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -0.025em;
        color: var(--gl-heading);
    }
}

/* ── Shared bits ── */
.insd { font-size: 15px; line-height: 1.5; color: var(--color-dark-text); }
.insd-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.insd-tiny { font-size: 11.5px; color: var(--color-muted); }
.insd-r { text-align: right; white-space: nowrap; }
.insd-num { font-variant-numeric: tabular-nums; }
.insd-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.insd-link:hover { text-decoration: underline; }
.insd-link:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 4px; }
.insd-label { display: block; margin: 18px 0 4px; }
.insd-bar { display: block; height: 8px; border-radius: 999px; background: var(--ins-surface-alt); overflow: hidden; }
.insd-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--color-brand); }
.insd-sq { display: inline-block; flex-shrink: 0; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; }
.insd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.insd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--gl-border-light);
    background: var(--color-secondary-bg);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gl-text-secondary);
    white-space: nowrap;
}
.insd-chip b { font-variant-numeric: tabular-nums; }
.insd-lead { margin: 12px 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--gl-text-secondary); }
.insd-lead b { color: var(--gl-heading); }
.insd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--gl-text-secondary); }
.insd-legend > span > i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.insd-legend b { color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.insd-legend--wrap { gap: 6px 12px; }
.insd-legend-note { color: var(--color-muted); }

/* ── Headline band ── */
.insd-hl {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
    padding: 6px 0 26px;
    border-bottom: 1px solid var(--gl-border);
}
.insd-hl-big { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.insd-hl-big b {
    font-size: 54px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--gl-heading);
    font-variant-numeric: tabular-nums;
}
.insd-hl-big span { font-size: 18px; font-weight: 600; color: var(--gl-text-secondary); }
.insd-hl-sub { margin-top: 6px; font-size: 13.5px; color: var(--color-muted); }
.insd-hl-kpis {
    display: grid;
    grid-template-columns: repeat(var(--insd-kpis, 4), minmax(0, 1fr));
    border-left: 1px solid var(--gl-border-light);
    border-right: 1px solid var(--gl-border-light);
}
.insd-hl-kpis--none { border: 0; }
.insd-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 4px 16px; border-left: 1px solid var(--gl-border-light); }
.insd-kpi:first-child { border-left: 0; }
.insd-kpi-value { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; white-space: nowrap; color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.insd-kpi-value--long { font-size: 17px; line-height: 26px; }
.insd-hl-reads { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--gl-text-secondary); }
.insd-hl-reads li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: start; }
.insd-hl-reads b { color: var(--gl-heading); }
.insd-hl-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-brand-soft);
    color: var(--color-brand);
}

/* ── Sections, the 12-column grid, a block ── */
.insd-sec { margin-top: 38px; }
.insd-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; padding-bottom: 4px; }
.insd-sec-title { margin: 0; font-family: var(--font-body); font-size: 20px; font-weight: 750; letter-spacing: -0.015em; color: var(--gl-heading); }
.insd-sec-note { font-size: 12.5px; color: var(--color-muted); }
.insd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 44px; row-gap: 0; }
.insd-span-4 { grid-column: span 4; }
.insd-span-5 { grid-column: span 5; }
.insd-span-6 { grid-column: span 6; }
.insd-span-7 { grid-column: span 7; }
.insd-span-8 { grid-column: span 8; }
.insd-span-12 { grid-column: span 12; }
.insd-b { display: flex; flex-direction: column; min-width: 0; padding: 24px 0 22px; border-top: 1px solid var(--gl-border-light); }
.insd-b-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.insd-b-headtext { min-width: 0; }
.insd-b-title { margin: 3px 0 2px; font-family: var(--font-body); font-size: 20px; font-weight: 750; line-height: 1.3; letter-spacing: -0.015em; color: var(--gl-heading); }
.insd-b-sub { font-size: 12.5px; color: var(--color-muted); }
.insd-b-action { flex-shrink: 0; padding-top: 2px; text-align: right; }
.insd-b-action:empty { display: none; }
.insd-b-aside { font-size: 12.5px; color: var(--color-muted); white-space: nowrap; }
.insd-b-aside b { color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.insd-b-foot { margin-top: auto; padding-top: 14px; font-size: 11.5px; line-height: 1.45; color: var(--gl-placeholder); }
.insd-b-foot:empty { display: none; }
.insd-b-foot a { color: inherit; text-decoration: underline; }
.insd-empty { margin-top: 0; }
.insd-sec-loading { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; padding-top: 24px; border-top: 1px solid var(--gl-border-light); }

/* First-load skeleton, shaped like the band + a section. */
.insd-skeleton { padding-top: 6px; }
.insd-sk-band {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--gl-border);
}
.insd-sk-band > div:first-child,
.insd-sk-reads { display: flex; flex-direction: column; gap: 10px; }
.insd-sk-reads .ins-sk-line { width: 100%; }
.insd-sk-kpis { height: 64px; border-radius: 10px; }
.insd-sk-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 44px; margin-top: 16px; }
.insd-sk-block { height: 220px; border-radius: 12px; }

/* ── Value ── */
.insd-stack { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; }
.insd-stack > i { display: flex; align-items: center; justify-content: center; min-width: 2px; height: 100%; font-style: normal; overflow: hidden; }
.insd-stack--tall { height: 30px; margin-top: 6px; border-radius: 8px; }
.insd-stack--tall span { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.insd-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.insd-tbl td { padding: 7px 4px; border-top: 1px solid var(--gl-border-light); vertical-align: middle; }
.insd-tbl td.insd-tbl-sw { width: 14px; padding-left: 0; }
.insd-tbl td:last-child { padding-right: 0; }
.insd-tbl-wine { min-width: 0; }
.insd-sw { display: inline-block; width: 8px; height: 26px; border-radius: 3px; vertical-align: middle; }
.insd-wine-link { font-weight: 700; color: var(--gl-heading); text-decoration: none; }
.insd-wine-link:hover { text-decoration: underline; }

/* ── Origins ── */
.insd-orows { display: flex; flex-direction: column; gap: 2px; }
.insd-orow {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 40px;
    grid-template-areas: "c bar n" ". regions regions";
    gap: 4px 12px;
    align-items: center;
    padding: 5px 0;
    font-size: 13.5px;
}
.insd-orow:focus { outline: none; }
.insd-orow:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 6px; }
.insd-orow-c { grid-area: c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.insd-orow-bar { grid-area: bar; height: 10px; border-radius: 5px; background: var(--ins-surface-alt); overflow: hidden; }
.insd-orow-bar i { display: block; height: 100%; border-radius: 5px; background: var(--color-brand); opacity: 0.85; }
.insd-orow-n { grid-area: n; text-align: right; font-variant-numeric: tabular-nums; }
.insd-orow-regions { grid-area: regions; display: none; flex-wrap: wrap; gap: 5px; padding: 2px 0 6px; }
.insd-orow--open .insd-orow-regions,
.insd-orow:hover .insd-orow-regions,
.insd-orow:focus-within .insd-orow-regions { display: flex; }
.insd-orow .insd-chip { padding: 2px 8px; font-size: 11.5px; }

/* ── Vintages ── */
.insd-vread { max-width: 520px; font-size: 12.5px; color: var(--color-muted); }
.insd-vread b { font-size: 15px; color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.insd-vbars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-bottom: 18px; }
.insd-vb {
    all: unset;
    box-sizing: border-box;
    position: relative;
    flex: 1 1 0;
    min-width: 8px;
    max-width: 44px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
}
.insd-vb:hover .insd-vstack { opacity: 0.8; }
.insd-vb:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 3px; }
.insd-vb--sel .insd-vstack { outline: 1.5px solid var(--gl-heading); outline-offset: 1px; }
.insd-vb--nv { max-width: 26px; margin-left: 14px; cursor: default; }
.insd-vb--nv:hover .insd-vstack { opacity: 1; }
.insd-vstack { display: flex; flex-direction: column-reverse; width: 100%; border-radius: 3px 3px 0 0; overflow: hidden; }
.insd-vstack > span { display: block; min-height: 0; }
.insd-vb-year {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    color: var(--color-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.insd-t-great { background: var(--insd-tier-great); }
.insd-t-good { background: var(--insd-tier-good); }
.insd-t-weak { background: var(--insd-tier-weak); }
.insd-t-unscored { background: var(--gl-border); }
.insd-vstack > .insd-t-nv { flex: 1 1 auto; background: var(--gl-chart-muted); }

/* ── Bedrock ── */
.insd-strata { display: flex; flex-direction: column; gap: 1px; height: 200px; border-radius: 10px; overflow: hidden; background: var(--gl-border-light); }
.insd-stratum { display: flex; align-items: center; justify-content: space-between; min-height: 16px; padding: 0 14px; font-size: 12.5px; font-weight: 600; }
.insd-stratum--small { font-size: 11px; }
.insd-stratum b { font-variant-numeric: tabular-nums; }

/* ── Climate ── */
.insd-wscale { display: block; width: 100%; height: auto; overflow: visible; }
.insd-ws-ref { stroke: var(--gl-placeholder); stroke-width: 1; }
.insd-ws-reft { font-family: var(--font-body); font-size: 10.5px; fill: var(--color-muted); text-anchor: middle; }
.insd-ws-you { fill: var(--color-brand); stroke: var(--color-card-bg); stroke-width: 2; }
.insd-ws-youtxt { font-family: var(--font-body); font-size: 6px; font-weight: 800; fill: var(--ins-on-dark); text-anchor: middle; }
.insd-ws-fut { fill: var(--ins-rust); opacity: 0.35; }
.insd-kv { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 12px; color: var(--color-muted); }
.insd-kv b { font-weight: 600; color: var(--gl-heading); }

/* ── Pace ── */
.insd-pace-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: end; }
.insd-pbars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding: 18px 0 20px; }
.insd-pb { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.insd-pb i { position: relative; display: block; width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--gl-chart-muted); }
.insd-pb--top i { background: var(--color-brand); }
.insd-pb b {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 4px);
    text-align: center;
    font-size: 11px;
    color: var(--color-muted);
    font-variant-numeric: tabular-nums;
}
.insd-pb > span { position: absolute; bottom: -20px; font-size: 11px; color: var(--color-muted); white-space: nowrap; }
.insd-runway-note { margin: 2px 0 8px; }
.insd-rw { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; }
.insd-rw > span:first-child { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.insd-rw .insd-bar { height: 6px; }
.insd-rw b { min-width: 58px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Keep vs open ── */
.insd-keep .insd-label { margin: 14px 0 0; }
.insd-keep .insd-label--first { margin-top: 6px; }

/* ── Scores ── */
.insd-blic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 4px 0 2px; }
.insd-blic > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.insd-blic .insd-tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insd-blic b { font-size: 15px; color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.insd-scores .insd-label { margin: 14px 0 6px; }
.insd-srows { display: flex; flex-direction: column; gap: 6px; }
.insd-srow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px 22px; gap: 8px; align-items: center; font-size: 13px; }
.insd-srow-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insd-srow .insd-bar { height: 7px; }
.insd-srow--low .insd-bar > i { background: var(--insd-tier-weak); }
.insd-srow b { font-variant-numeric: tabular-nums; }
.insd-more { margin-top: 10px; align-self: flex-start; }
.insd-nudge { margin: 14px 0 0; padding: 0 0 0 12px; border-left: 3px solid var(--ins-warn); font-size: 12.5px; line-height: 1.5; color: var(--gl-text-secondary); }
.insd-nudge b { color: var(--gl-heading); }
.insd-nudge .insd-link { font-size: 12.5px; white-space: normal; }

/* ── Aromas ── */
.insd-aromas-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.insd-donut { display: flex; justify-content: center; }
.insd-donut-n { font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.insd-donut-l { font-size: 10px; color: var(--color-muted); }
.insd-atop { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.insd-atop > div { display: grid; grid-template-columns: 84px minmax(0, 1fr) 22px; gap: 8px; align-items: center; font-size: 12.5px; }
.insd-atop-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insd-atop .insd-bar { height: 6px; }
.insd-atop b { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Style ── */
.insd-sgrid { display: grid; grid-template-columns: 70px repeat(3, minmax(0, 1fr)); gap: 4px; }
.insd-sg-h { padding: 2px 0; font-size: 11px; font-weight: 600; text-align: center; color: var(--color-muted); }
.insd-sg-h--row { align-self: center; text-align: left; }
.insd-sg-c {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.5;
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-brand) var(--insd-o, 12%), transparent);
    font-size: 13px;
    font-weight: 700;
    color: var(--ins-on-dark);
    font-variant-numeric: tabular-nums;
}
.insd-sg-c--light { color: var(--color-brand); }
.insd-sg-c--spot { outline: 2.5px solid var(--color-wine); outline-offset: 2px; }
.insd-spot-wines { display: flex; flex-direction: column; }
.insd-spot-wine { display: flex; align-items: center; min-width: 0; padding: 3px 0; font-size: 12.5px; color: var(--gl-text-secondary); text-decoration: none; }
.insd-spot-wine span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insd-spot-wine b { margin-left: 8px; color: var(--gl-heading); font-variant-numeric: tabular-nums; }
.insd-spot-wine:hover span { text-decoration: underline; }

/* ── You & a friend ── */
.insd-fhead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.insd-fhead-text { flex: 1; min-width: 0; font-size: 13.5px; }
.insd-fhead-text b { color: var(--gl-heading); }
.insd-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-brand-soft);
    color: var(--color-brand);
    font-size: 11px;
    font-weight: 700;
}
.insd-avatar--me { background: var(--color-brand); color: var(--ins-on-dark); }
.insd-avatar + .insd-avatar { margin-left: -14px; border: 2px solid var(--color-card-bg); }
.insd-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--gl-border);
    background: var(--color-card-bg);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-dark-text);
    text-decoration: none;
    white-space: nowrap;
}
.insd-btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
.insd-btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
.insd-frows { display: flex; flex-direction: column; }
.insd-frow {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 46px 46px;
    gap: 14px;
    align-items: center;
    padding: 7px 0;
    border-top: 1px solid var(--gl-border-light);
    font-size: 13.5px;
}
.insd-frow--hdr { padding-top: 0; border-top: 0; }
.insd-fscale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--color-muted); }
.insd-fcell { min-width: 0; }
.insd-fwine { display: flex; align-items: center; min-width: 0; color: var(--color-dark-text); text-decoration: none; }
.insd-fwine:hover .insd-fwine-name { text-decoration: underline; }
.insd-fwine-name { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insd-fwine-prod { flex-shrink: 2; min-width: 0; margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--color-muted); }
.insd-fbar { position: relative; height: 6px; border-radius: 3px; background: var(--ins-surface-alt); }
.insd-fdot {
    position: absolute;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--color-card-bg);
    box-shadow: 0 1px 2px var(--ins-dot-shadow);
    transform: translate(-50%, -50%);
}
.insd-fdot--you { z-index: 2; background: var(--color-brand); }
.insd-fdot--them { background: var(--ins-mustard); }
.insd-frow b { font-variant-numeric: tabular-nums; color: var(--gl-heading); }
.insd-frow b.insd-fthem { color: var(--color-muted); }

/* ── The request box, as one row under a hairline ── */
@media (min-width: 900px) {
    .ins-ask {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 18px;
        align-items: center;
        margin-top: 30px;
        padding: 22px 0;
        border: 0;
        border-top: 1px solid var(--gl-border);
        border-radius: 0;
        background: none;
    }
    .ins-ask-kicker {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--color-muted);
    }
    .ins-ask-label { margin: 0; font-size: 15px; }
    .ins-ask-input {
        height: 44px;
        min-height: 0;
        padding: 10px 12px;
        border: 1px solid var(--gl-border);
        border-radius: 9px;
        background: var(--color-card-bg);
        resize: none;
    }
    .ins-ask-foot { margin-top: 0; }
    .ins-ask-foot > span:empty { display: none; }
    .ins-ask-send { padding: 9px 16px; border-radius: 9px; font-size: 13.5px; }
}

/* Between 900 and 1100 px: the band in two columns with the key numbers under it, and the
   narrower blocks at half width (the mockup's own breakpoint); the pace chart over its runway. */
@media (min-width: 900px) and (max-width: 1100px) {
    .insd-hl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .insd-hl-kpis { grid-column: 1 / -1; order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; }
    .insd-kpi:nth-child(odd) { border-left: 0; }
    .insd-span-4, .insd-span-5, .insd-span-7, .insd-span-8 { grid-column: span 6; }
    .insd-pace-wrap { grid-template-columns: minmax(0, 1fr); }
    .insd-sk-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .insd-sk-kpis { grid-column: 1 / -1; order: 3; }
}
