/* Appraisal insights share the explorer's palette and accessible control styles. */
.insights-heading { margin-bottom: 23px; }
.insights-heading h1 { font-size: 36px; letter-spacing: -1.3px; }
.insights-heading p { max-width: 700px; }
.insight-filters { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1.3fr auto; gap: 14px; align-items: end; padding: 17px 19px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.insight-filters label, .cohort-controls label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 550; }
.insight-filters input, .insight-filters select, .cohort-controls input[type=number] { width: 100%; min-width: 0; border: 1px solid #d9dbe2; border-radius: 4px; background: #fff; min-height: 35px; padding: 7px 9px; color: var(--ink); font-size: 11px; }
.insight-filters > button { margin-bottom: 3px; }
.insight-coverage { padding: 13px 1px 20px; font-size: 11px; color: var(--muted); }
.insight-coverage strong { font-weight: 600; color: var(--ink); }
.insight-coverage small { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.insight-coverage > span { margin-left: 7px; }
.insight-kpis { gap: 14px; margin-bottom: 15px; }
.insight-kpis .metric { padding: 18px 19px; min-height: 128px; }
.insight-kpis .metric:first-child { padding-top: 17px; }
.insight-kpis .metric strong { font-size: 33px; letter-spacing: -1px; }
.insight-kpis .metric small { font-size: 9px; line-height: 1.65; margin-top: 6px; }
.insight-kpis .metric.risk-metric { border-top: 2px solid #bb6c58; padding-top: 17px; }
.insight-important { display: flex; gap: 11px; align-items: center; padding: 12px 15px; background: #edeef2; border-radius: 5px; color: #666c80; font-size: 10px; line-height: 1.7; margin-bottom: 28px; }
.insight-important > span { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1px solid #989caa; border-radius: 50%; flex-shrink: 0; font-family: Georgia, serif; font-size: 11px; }
.insight-important strong { color: #3d4561; font-weight: 600; }
.insight-status { padding: 60px 25px; text-align: center; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 13px; }
.insight-empty h2 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.insight-empty p { font-size: 12px; margin-bottom: 20px; }
.insight-error strong { color: var(--red); font-size: 17px; }
.insight-error p { margin: 10px 0 20px; }
.findings-section { margin-bottom: 23px; }
.findings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.finding-card { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 18px; display: flex; flex-direction: column; }
.finding-kind { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 13px; }
.finding-kind > span { font-size: 9px; letter-spacing: 0; background: #eaecf2; color: var(--teal); padding: 3px 5px; border-radius: 3px; }
.finding-card h3 { font-size: 17px; line-height: 1.45; font-weight: 600; letter-spacing: -.3px; }
.finding-card p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 10px 0 17px; }
.finding-card > .drill-link { margin-top: auto; border-top: 1px solid #e9eaee; padding-top: 12px; width: 100%; justify-content: space-between; }
.drill-link { background: transparent; border: 0; padding: 0; color: var(--teal); font-size: 10px; font-weight: 550; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.drill-link:hover { color: #0d1a40; text-decoration: underline; text-underline-offset: 3px; }
.drill-link > span { font-variant-numeric: tabular-nums; }
.insight-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin-bottom: 23px; }
.insight-panel { padding: 23px; }
.insight-panel h2, .cohort-panel h2, .bridge-panel h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.4px; }
.insight-panel .panel-heading { margin-bottom: 19px; }
.insight-panel .panel-heading p, .cohort-heading p, .bridge-panel .panel-heading p { font-size: 10px; line-height: 1.7; margin-top: 5px; color: var(--muted); }
.question-number { display: block; font-size: 8px; letter-spacing: 1.4px; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.insight-footnote { color: var(--muted); font-size: 9px; line-height: 1.8; margin-top: 16px; }
.accuracy-headline { display: flex; align-items: center; gap: 15px; margin: 7px 0 22px; }
.accuracy-headline > strong { font-size: 30px; line-height: 1; font-weight: 550; letter-spacing: -1px; }
.accuracy-headline p { font-size: 10px; line-height: 1.75; }
.accuracy-headline p span { color: var(--muted); font-size: 9px; }
.distribution-bar { display: flex; width: 100%; height: 27px; border-radius: 4px; overflow: hidden; background: #f1f2f4; margin-bottom: 15px; gap: 2px; }
.distribution-piece { min-width: 0; }
.tone-low { background: #a3adc8; }
.tone-close { background: #3b4f86; }
.tone-high { background: #bd806a; }
.band-list > div { display: grid; grid-template-columns: 8px 1fr auto auto; gap: 9px; align-items: center; padding: 8px 0; font-size: 10px; border-bottom: 1px solid #f0f1f3; }
.band-list > div:last-child { border-bottom: 0; }
.band-list i { height: 7px; width: 7px; border-radius: 2px; }
.band-list > div > span { color: #5d647c; }
.band-list strong { font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; }
.band-list .drill-link { font-size: 9px; margin-left: 7px; }
.margin-headline { display: flex; gap: 13px; align-items: baseline; margin-bottom: 16px; }
.margin-headline > strong { font-size: 29px; font-weight: 550; letter-spacing: -.8px; }
.margin-headline > span { color: var(--muted); font-size: 10px; }
.margin-band-chart { display: flex; flex-direction: column; gap: 12px; }
.margin-band-row { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 13px; }
.margin-band-label { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; }
.margin-band-label > span { color: var(--muted); }
.margin-band-label > strong { font-size: 10px; font-weight: 550; }
.margin-band-track { height: 12px; border-radius: 2px; background: #f0f1f4; overflow: hidden; }
.margin-band-track > span { display: block; height: 100%; border-radius: 2px; }
.risk-bar { background: #bd806a; }
.margin-bar { background: #3b4f86; }
.margin-band-row > .drill-link { font-size: 9px; }
.cohort-panel { padding: 22px 0 0; overflow: hidden; margin-bottom: 23px; }
.cohort-heading { display: flex; justify-content: space-between; gap: 25px; padding: 0 23px 19px; align-items: center; }
.cohort-controls { display: flex; align-items: flex-end; gap: 14px; flex-shrink: 0; }
.cohort-controls input[type=number] { max-width: 104px; font-size: 11px; min-height: 32px; padding: 6px 8px; }
.cohort-controls .checkbox-label { flex-direction: row; gap: 7px; align-items: center; font-size: 9px; padding-bottom: 8px; font-weight: 450; }
.cohort-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 23px; background: #f7f7f9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.cohort-toolbar label { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cohort-toolbar select { background: transparent; color: var(--ink); font-size: 10px; border: 0; padding: 3px 0; max-width: 190px; }
.insight-table-scroll { overflow-x: auto; }
.insight-table { width: 100%; min-width: 885px; border-collapse: collapse; font-size: 10px; }
.insight-table th { padding: 13px 14px; background: #fcfcfd; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 550; text-align: right; white-space: nowrap; }
.insight-table th button { border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; padding: 0; }
.insight-table td { padding: 15px 14px; border-bottom: 1px solid #e9eaee; text-align: right; font-variant-numeric: tabular-nums; }
.insight-table th:first-child, .insight-table td:first-child { text-align: left; padding-left: 23px; }
.insight-table th:last-child, .insight-table td:last-child { padding-right: 23px; }
.insight-table td > strong { font-size: 11px; font-weight: 550; }
.insight-table td small { display: block; font-size: 8px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.insight-table tbody tr:last-child td { border-bottom: 0; }
.insight-table tbody tr:hover { background: #f5f6fa; }
.sample-flag { display: block; width: fit-content; margin-top: 5px; color: #916f3a; font-size: 8px; background: #f8f1e5; padding: 2px 4px; border-radius: 3px; white-space: nowrap; }
.aging-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; margin: 4px 0 13px; gap: 10px; }
.aging-axis > span:nth-child(2) { color: #525a78; }
.aging-bars { display: flex; flex-direction: column; gap: 14px; }
.aging-row { display: grid; grid-template-columns: 92px minmax(70px, 1fr) 51px auto; gap: 10px; align-items: center; }
.aging-label > strong { display: block; font-size: 11px; font-weight: 550; }
.aging-label > small { display: block; color: var(--muted); font-size: 8px; line-height: 1.6; margin-top: 3px; }
.aging-bar-area { position: relative; height: 32px; background: linear-gradient(90deg, #fcf7f4 0%, #fcf7f4 50%, #f4f5f8 50%, #f4f5f8 100%); border-radius: 3px; }
.zero-line { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 1px; background: #bec2cf; }
.aging-bar { position: absolute; height: 17px; top: 8px; min-width: 1px; border-radius: 2px; }
.aging-value { font-size: 11px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.aging-row > .drill-link { font-size: 8px; gap: 5px; }
#scenario-form > label { display: block; color: #4e5570; font-size: 10px; margin-bottom: 7px; }
.target-input { display: flex; align-items: center; border: 1px solid #b8bdcf; border-radius: 5px; background: #fff; overflow: hidden; }
.target-input > span { padding-left: 12px; color: var(--muted); }
.target-input input { width: 100%; min-width: 0; border: 0; padding: 10px 6px; color: var(--ink); font-size: 17px; font-weight: 550; }
.target-input button { border-radius: 0; border: 0; background: #060c22; color: #fff; align-self: stretch; padding: 10px 12px; font-size: 10px; }
#target-explanation { font-size: 9px; color: var(--muted); line-height: 1.7; margin: 8px 0 17px; }
.scenario-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.scenario-numbers strong { display: block; font-size: 24px; font-weight: 550; letter-spacing: -.7px; }
.scenario-numbers strong small { font-size: 14px; font-weight: 400; color: var(--muted); }
.scenario-numbers > div > span { font-size: 9px; color: var(--muted); }
.scenario-shortfall { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; margin-top: 16px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.scenario-shortfall strong { font-size: 18px; letter-spacing: -.4px; font-weight: 550; color: var(--ink); }
#scenario-results > .insight-footnote { margin-top: 8px; }
#scenario-results > .drill-link { margin-top: 13px; }
.bridge-panel { padding: 23px; margin-bottom: 28px; }
.bridge-svg { width: 100%; height: auto; max-height: 215px; overflow: visible; margin-top: 10px; }
.bridge-value { fill: var(--ink); font-size: 16px; font-weight: 550; font-family: var(--font); }
.bridge-label { fill: #6f758a; font-size: 11px; font-family: var(--font); }
.bridge-sale { fill: #303f76; }
.bridge-cost { fill: #9a9faf; }
.bridge-recon { fill: #b7bac6; }
.bridge-spread { fill: #3b4f86; }
.bridge-risk { fill: #bd806a; }
.bridge-baseline { stroke: #d5d7df; stroke-width: 1; }
.bridge-connector { stroke: #a9adbc; stroke-width: 1; stroke-dasharray: 4 4; }
.review-section { margin-bottom: 25px; }
.review-section > .section-heading { align-items: flex-end; }
.review-section > .section-heading p { font-size: 10px; color: var(--muted); margin-top: 6px; }
.review-section > .section-heading > span { font-size: 9px; }
.review-section > .insight-table-scroll { border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.review-table { min-width: 980px; }
.review-vehicle { border: 0; background: none; color: var(--ink); font-size: 11px; font-weight: 550; padding: 0; white-space: nowrap; }
.review-vehicle:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.review-vehicle > span { color: var(--teal); margin-left: 3px; }
.insight-table .review-reason { max-width: 250px; min-width: 180px; text-align: left; color: #686e86; font-size: 9px; line-height: 1.7; }
.insight-notes { border-top: 1px solid var(--line); padding: 15px 0; }
.insight-notes > summary { font-size: 11px; color: var(--muted); cursor: pointer; }
.insight-notes p { font-size: 10px; line-height: 1.9; color: var(--muted); margin-top: 10px; }
.method-panel { border: 1px solid var(--line); background: #fff; border-radius: 7px; margin-top: 21px; padding: 16px 21px; }
.method-panel > summary { cursor: pointer; font-size: 12px; font-weight: 550; color: var(--ink); }
.method-panel > summary > span { float: right; font-size: 9px; font-weight: 400; color: var(--muted); }
.method-panel .methodology { margin-top: 24px; }
.method-panel .source-details { background: #f7f8fa; }
.active-insight { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 13px 22px; border-top: 1px solid #d7dae4; background: #edeff5; }
.active-insight > div > span { font-size: 8px; font-weight: 600; letter-spacing: 1px; color: var(--teal); display: block; }
.active-insight strong { font-size: 11px; font-weight: 550; display: block; margin-top: 4px; }
.active-insight > button { font-size: 9px; }
@media (max-width: 1250px) {
  .insights-heading h1 { font-size: 31px; }
  .insight-kpis .metric { padding: 16px; }
  .insight-kpis .metric strong { font-size: 29px; }
  .insight-kpis .metric > span { font-size: 10px; }
  .cohort-heading { align-items: flex-start; gap: 18px; }
  .cohort-controls { flex-direction: column; align-items: flex-start; gap: 9px; }
  .cohort-controls .checkbox-label { padding: 0; }
  .insight-panel { padding: 20px; }
  .insight-panel h2 { font-size: 16px; }
  .finding-card h3 { font-size: 15px; }
  .finding-card p { font-size: 10px; }
  .finding-card { padding: 16px; }
  .margin-band-row { grid-template-columns: 90px 1fr auto; gap: 9px; }
  .aging-row { grid-template-columns: 79px minmax(50px, 1fr) 48px auto; gap: 7px; }
  .aging-label > strong { font-size: 10px; }
  .aging-value { font-size: 10px; }
  .band-list > div { font-size: 9px; gap: 7px; }
}
@media (max-width: 1000px) {
  .findings-grid { gap: 11px; }
  .finding-card { padding: 14px; }
  .finding-kind { font-size: 7px; gap: 6px; letter-spacing: .3px; }
  .finding-card h3 { font-size: 14px; }
  .finding-card .drill-link { font-size: 9px; }
  .insight-chart-grid { gap: 14px; }
  .insight-panel { padding: 17px; }
  .margin-headline { gap: 9px; }
  .margin-headline > strong { font-size: 25px; }
  .margin-headline > span { font-size: 9px; }
  .accuracy-headline > strong { font-size: 26px; }
  .accuracy-headline { gap: 10px; }
  .aging-row { grid-template-columns: 1fr 1.1fr 49px auto; }
  .aging-axis { font-size: 7px; }
  .insight-filters { gap: 10px; }
  .insight-filters input, .insight-filters select { font-size: 10px; padding: 7px; }
}
@media (max-width: 800px) {
  .insight-chart-grid { grid-template-columns: 1fr; }
  .findings-grid { grid-template-columns: 1fr; }
  .finding-card { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 17px; }
  .finding-kind { grid-column: 1 / -1; margin-bottom: 8px; font-size: 8px; }
  .finding-card h3 { font-size: 17px; }
  .finding-card p { grid-column: 1; margin-bottom: 0; }
  .finding-card > .drill-link { grid-column: 2; grid-row: 2 / 4; align-self: center; padding-top: 0; border: 0; font-size: 9px; flex-direction: column; margin: 0; gap: 7px; }
  .insight-panel h2 { font-size: 19px; }
  .insight-panel { padding: 23px; }
  .margin-band-row { grid-template-columns: 105px 1fr auto; }
  .margin-band-label { font-size: 11px; }
  .band-list > div { font-size: 11px; }
  .aging-row { grid-template-columns: 106px minmax(80px, 1fr) 60px auto; gap: 12px; }
  .aging-value { font-size: 12px; }
  .aging-label > strong { font-size: 12px; }
  .aging-label > small { font-size: 9px; }
  .aging-row > .drill-link { font-size: 10px; }
  .aging-axis { font-size: 9px; }
  .scenario-numbers { margin-top: 19px; }
  .insights-heading { gap: 15px; }
  .insights-heading > .button { font-size: 9px; }
}
@media (max-width: 700px) {
  .insights-heading { align-items: flex-start; }
  .insights-heading h1 { font-size: 28px; }
  .insights-heading > .button { display: none; }
  .insights-heading p { font-size: 12px; }
  .insight-filters { grid-template-columns: 1fr 1fr; gap: 11px; padding: 14px; }
  .insight-filters > button { justify-self: start; margin: 0; padding: 0; font-size: 10px; grid-column: 1 / -1; }
  .insight-coverage { font-size: 10px; line-height: 1.8; padding-bottom: 16px; }
  .insight-coverage > span { margin-left: 4px; }
  .insight-coverage small { font-size: 9px; line-height: 1.7; }
  .insight-kpis { gap: 10px; }
  .insight-kpis .metric { padding: 14px; min-height: 124px; }
  .insight-kpis .metric:first-child, .insight-kpis .metric.risk-metric { padding-top: 13px; }
  .insight-kpis .metric > span { font-size: 9px; min-height: 27px; }
  .insight-kpis .metric strong { font-size: 29px; margin-top: 3px; }
  .insight-kpis .metric small { font-size: 8px; }
  .insight-important { align-items: flex-start; font-size: 9px; padding: 11px; margin-bottom: 22px; }
  .insight-important > span { margin-top: 2px; }
  .finding-card { display: flex; padding: 17px; }
  .finding-card h3 { font-size: 17px; }
  .finding-card p { font-size: 11px; margin-bottom: 14px; }
  .finding-card > .drill-link { margin-top: 3px; width: 100%; flex-direction: row; border-top: 1px solid var(--line); padding-top: 12px; font-size: 10px; }
  .insight-panel { padding: 18px; }
  .insight-panel h2 { font-size: 18px; }
  .insight-panel .panel-heading p { font-size: 9px; }
  .insight-footnote { font-size: 9px; }
  .band-list > div { font-size: 9px; gap: 7px; }
  .band-list .drill-link { margin-left: 0; font-size: 8px; }
  .margin-band-row { grid-template-columns: 91px 1fr auto; gap: 9px; }
  .margin-band-label { font-size: 10px; }
  .cohort-panel { padding-top: 18px; }
  .cohort-heading { display: block; padding: 0 17px 16px; }
  .cohort-heading p { font-size: 10px; }
  .cohort-controls { display: flex; flex-direction: row; align-items: flex-end; gap: 18px; margin-top: 16px; }
  .cohort-controls .checkbox-label { padding-bottom: 8px; font-size: 9px; }
  .cohort-toolbar { padding: 11px 17px; flex-wrap: wrap; gap: 8px; }
  .cohort-toolbar > span { width: 100%; font-size: 9px; line-height: 1.7; }
  .cohort-toolbar label { margin-left: auto; }
  .insight-table th:first-child, .insight-table td:first-child { padding-left: 17px; }
  .aging-row { grid-template-columns: 79px minmax(45px, 1fr) 46px auto; gap: 7px; }
  .aging-label > strong { font-size: 10px; }
  .aging-label > small { font-size: 8px; }
  .aging-value { font-size: 10px; }
  .aging-row > .drill-link { font-size: 8px; gap: 4px; }
  .aging-axis { font-size: 7px; }
  .aging-bar-area { height: 35px; }
  .aging-bar { top: 9px; }
  .bridge-panel { padding: 18px; }
  #margin-bridge { overflow-x: auto; }
  .bridge-svg { width: 620px; max-width: none; min-width: 620px; }
  .bridge-panel h2 { font-size: 18px; }
  .review-section > .section-heading { display: block; }
  .review-section > .section-heading > span { display: block; margin-top: 8px; text-align: left; max-width: none; }
  .review-section > .section-heading p { line-height: 1.8; }
  .method-panel { padding: 14px 16px; }
  .method-panel > summary { font-size: 11px; }
  .method-panel > summary > span { display: none; }
  .active-insight { padding: 12px 15px; gap: 10px; }
  .active-insight strong { font-size: 10px; }
  .active-insight > button { font-size: 8px; padding: 6px; }
}

/* Segment comparison: model years and mileage measured at appraisal. */
.segment-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--teal); font-size: 11px; font-weight: 550; text-decoration: none; }
.segment-jump:hover { text-decoration: underline; text-underline-offset: 3px; }
.insight-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 13px; }
.insight-filter-help { grid-column: span 2; align-self: center; color: var(--muted); font-size: 9px; line-height: 1.8; max-width: 320px; }
.insight-filter-help a { display: block; color: var(--teal); text-decoration: none; font-weight: 550; margin-top: 2px; }
.insight-filters > button { justify-self: end; }
#segments { scroll-margin-top: 22px; }
.cohort-controls select { max-width: 205px; min-width: 150px; color: var(--ink); background: #fff; border: 1px solid #d9dbe2; border-radius: 4px; min-height: 33px; padding: 6px 8px; font-size: 10px; }
#segments .cohort-heading { align-items: flex-start; gap: 18px; }
#segments .cohort-heading > div:first-child { max-width: 380px; }
#segments .cohort-controls { display: grid; grid-template-columns: minmax(150px, 1fr) 100px; gap: 9px 13px; align-items: end; }
#segments .cohort-controls > .checkbox-label { grid-column: 1 / -1; margin-top: 3px; padding-bottom: 0; }
.segment-findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 23px 20px; }
.segment-finding { border: 1px solid #dddfe8; border-radius: 6px; background: #f6f7fa; padding: 15px; display: flex; flex-direction: column; }
.segment-finding > span { color: var(--teal); font-size: 7px; letter-spacing: 1.2px; font-weight: 650; margin-bottom: 8px; }
.segment-finding h3 { font-size: 13px; line-height: 1.6; letter-spacing: -.1px; }
.segment-finding p { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 8px 0 13px; }
.segment-finding .drill-link { margin-top: auto; padding-top: 8px; font-size: 9px; justify-content: space-between; }
.segment-sample-note { grid-column: 1 / -1; border: 1px dashed #dcdee5; border-radius: 5px; padding: 13px 16px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.compare-years-button { display: block; border: 0; background: transparent; color: var(--teal); font-size: 8px; padding: 0; margin-top: 6px; white-space: nowrap; }
.compare-years-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.year-comparison { padding: 18px 23px 20px; border-top: 1px solid var(--line); background: #fbfbfd; }
.year-comparison-heading { display: flex; justify-content: space-between; gap: 22px; align-items: start; }
.year-comparison-heading h3 { font-size: 15px; line-height: 1.5; font-weight: 600; }
.year-comparison-heading p { color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 6px; max-width: 640px; }
.year-comparison-heading label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; flex-shrink: 0; }
.year-comparison-heading select { color: var(--ink); font-size: 10px; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 7px 8px; max-width: 190px; }
.year-reset { margin-top: 13px; font-size: 10px; }
.year-chart-axis { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin: 19px 133px 12px 150px; color: var(--muted); font-size: 8px; }
.year-chart-axis > span:last-child { text-align: right; }
.year-chart-axis > span:nth-child(2) { color: #525a78; }
.year-bars { display: flex; flex-direction: column; gap: 12px; }
.year-bar-row { display: grid; grid-template-columns: 138px minmax(130px, 1fr) 74px 56px; align-items: center; gap: 12px; }
.year-label > strong { display: block; font-size: 12px; font-weight: 600; }
.year-label > small { display: block; color: var(--muted); font-size: 9px; line-height: 1.7; margin-top: 2px; }
.year-label > .sample-flag { margin-top: 3px; font-size: 7px; padding: 1px 4px; }
.year-bar-track { position: relative; height: 35px; background: linear-gradient(90deg, #fcf7f4 0%, #fcf7f4 50%, #eff1f6 50%, #eff1f6 100%); border-radius: 3px; }
.year-bar { position: absolute; height: 19px; top: 8px; border-radius: 2px; min-width: 1px; }
.small-sample-bar { opacity: .52; background-image: repeating-linear-gradient(-45deg, transparent 0px, transparent 3px, #ffffff66 3px, #ffffff66 5px); }
.year-value { font-size: 13px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
.year-bar-row > .drill-link { justify-content: flex-end; font-size: 9px; }
.year-comparison .insight-footnote { margin-top: 18px; }
@media (max-width: 1200px) {
  .insight-filters { gap: 11px; }
  .segment-findings { gap: 10px; }
  .segment-finding { padding: 12px; }
  .segment-finding h3 { font-size: 12px; }
  .segment-finding p { font-size: 9px; }
  #segments .cohort-controls { grid-template-columns: minmax(145px, 1fr) 86px; gap: 8px 10px; }
  #segments .cohort-controls .checkbox-label { font-size: 8px; }
}
@media (max-width: 1000px) {
  .insight-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insight-filter-help { grid-column: span 1; font-size: 8px; }
  .insight-filters > button { align-self: center; }
  .segment-findings { grid-template-columns: 1fr; }
  .segment-finding { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 17px; padding: 14px; }
  .segment-finding > span { grid-column: 1 / -1; }
  .segment-finding h3 { font-size: 13px; }
  .segment-finding p { grid-column: 1; margin-bottom: 0; font-size: 10px; }
  .segment-finding .drill-link { grid-column: 2; grid-row: 2 / 4; align-self: center; margin: 0; padding: 0; flex-direction: column; gap: 8px; }
  #segments .cohort-heading { flex-direction: column; gap: 14px; }
  #segments .cohort-heading > div:first-child { max-width: none; }
  #segments .cohort-controls { grid-template-columns: minmax(160px, 1fr) 100px auto; width: 100%; align-items: end; }
  #segments .cohort-controls > .checkbox-label { grid-column: auto; padding-bottom: 8px; font-size: 9px; }
  .year-comparison-heading { gap: 15px; }
  .year-comparison-heading h3 { font-size: 14px; }
  .year-comparison-heading select { font-size: 9px; max-width: 160px; }
  .year-bar-row { grid-template-columns: 120px minmax(90px, 1fr) 67px 47px; gap: 10px; }
  .year-chart-axis { margin-left: 130px; margin-right: 124px; font-size: 7px; }
  .year-label > small { font-size: 8px; }
  .year-value { font-size: 12px; }
}
@media (max-width: 700px) {
  .segment-jump { font-size: 10px; margin-top: 10px; }
  .insight-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .insight-filter-help { grid-column: 1 / -1; order: 10; font-size: 9px; max-width: none; }
  .insight-filter-help a { display: none; }
  .insight-filters > button { grid-column: auto; justify-self: start; margin-top: 17px; align-self: center; font-size: 10px; }
  #segments .cohort-controls { grid-template-columns: minmax(0, 1fr) 100px; gap: 9px 12px; }
  #segments .cohort-controls > .checkbox-label { grid-column: 1 / -1; padding: 0; margin-top: 3px; }
  .cohort-controls select { min-width: 0; max-width: none; width: 100%; font-size: 9px; }
  .segment-findings { padding: 0 17px 17px; }
  .segment-finding { display: flex; padding: 14px; }
  .segment-finding h3 { font-size: 13px; }
  .segment-finding p { font-size: 10px; margin-bottom: 13px; }
  .segment-finding .drill-link { flex-direction: row; width: 100%; border-top: 1px solid var(--line); padding-top: 10px; font-size: 9px; }
  .segment-sample-note { font-size: 9px; padding: 11px 13px; }
  .year-comparison { padding: 17px; }
  .year-comparison-heading { display: block; }
  .year-comparison-heading label { margin-top: 13px; flex-direction: row; align-items: center; gap: 9px; }
  .year-comparison-heading select { max-width: none; font-size: 9px; }
  .year-comparison-heading p { font-size: 9px; }
  .year-chart-axis { margin: 18px 97px 9px 82px; font-size: 6px; gap: 5px; }
  .year-bar-row { grid-template-columns: 74px minmax(45px, 1fr) 50px 39px; gap: 8px; }
  .year-label > strong { font-size: 11px; }
  .year-label > small { font-size: 7px; line-height: 1.7; }
  .year-bar-track { height: 37px; }
  .year-bar { top: 9px; }
  .year-value { font-size: 10px; }
  .year-bar-row > .drill-link { font-size: 8px; gap: 4px; }
  .year-comparison .insight-footnote { font-size: 8px; }
}

/* Appraisal coverage (WAG-19) */
.coverage-panel { margin-bottom: 18px; }
.coverage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 30px; align-items: start; }
.coverage-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.coverage-chart text { font-family: var(--font); fill: #7a8094; font-size: 9px; }
.coverage-chart rect.tone-close { fill: #3b4f86; }
.coverage-chart rect.tone-low { fill: #a3adc8; }
.coverage-chart rect.tone-high { fill: #bd806a; }
.coverage-reasons { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.coverage-reasons > span { display: block; font-size: 8px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.coverage-reasons > div { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; align-items: center; padding: 6px 0; font-size: 10px; color: #5d647c; }
.coverage-reasons strong { color: var(--ink); font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; }
.coverage-reasons .drill-link { font-size: 9px; }
@media (max-width: 1000px) {
  .coverage-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* Front gross and sourcing (WAG-20) */
.gross-panel { margin-top: 18px; }
.estimate-compare { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.estimate-compare > span { display: block; font-size: 8px; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.estimate-compare > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid #f0f1f3; font-size: 10px; color: #5d647c; }
.estimate-compare > div small { grid-column: 1 / -1; font-size: 9px; }
.estimate-compare strong { color: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.estimate-compare strong.negative, .verdict-note { color: var(--red); }
.estimate-compare .drill-link { margin-top: 10px; }
.verdict-note { display: block; font-size: 9px; color: var(--muted); }
.sourcing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.sourcing-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.sourcing-form label { display: grid; gap: 5px; font-size: 10px; font-weight: 550; color: #4e556c; }
.sourcing-form input, .sourcing-form select { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; font: inherit; font-size: 12px; background: var(--white); color: var(--ink); }
.sourcing-form .wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; font-size: 10px; color: var(--muted); }
.form-actions .button { background: #060c22; color: #fff; padding: 9px 14px; }
.form-actions .button:hover { background: #1a2550; }
.deal-result { margin-top: 18px; }
.deal-verdict { border-radius: 6px; padding: 14px 16px; display: grid; gap: 2px; margin-bottom: 14px; background: #f1f2f4; }
.deal-verdict span { font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.deal-verdict strong { font-size: 26px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.deal-verdict small { font-size: 10px; color: var(--muted); }
.verdict-good { background: var(--teal-light); color: var(--teal); }
.verdict-warning { background: #f7efdf; color: var(--amber); }
.verdict-risk { background: var(--red-bg); color: var(--red); }
.deal-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0 0 12px; }
.deal-figures > div { padding: 8px 0; border-bottom: 1px solid #f0f1f3; }
.deal-figures dt { font-size: 9px; color: var(--muted); }
.deal-figures dd { margin: 2px 0 0; font-size: 11px; font-weight: 550; font-variant-numeric: tabular-nums; }
.deal-figures dd small { display: block; margin-top: 3px; font-size: 9px; font-weight: 400; line-height: 1.6; color: var(--muted); }

/* Listing reader, break-even offer and most similar sales (WAG-36) */
.listing-reader { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.listing-reader > label { font-size: 10px; font-weight: 550; color: #4e556c; }
.listing-row { display: flex; gap: 8px; }
.listing-row input { flex: 1; }
.listing-reader details summary { cursor: pointer; font-size: 10px; color: var(--teal); font-weight: 600; margin-top: 2px; }
.listing-reader textarea { display: block; width: 100%; margin: 8px 0; border: 1px solid var(--line); border-radius: 5px; padding: 8px 9px; font: inherit; font-size: 11px; resize: vertical; }
.listing-status:empty { display: none; }
.listing-status { font-size: 10px; color: var(--muted); display: grid; gap: 6px; }
.listing-heading { color: var(--ink); overflow-wrap: anywhere; }
.listing-fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.listing-fields li { border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; background: #fafafc; display: grid; min-width: 0; }
.listing-fields span { font-size: 8px; text-transform: uppercase; letter-spacing: .4px; }
.listing-fields strong { color: var(--ink); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.listing-fields small { font-size: 8px; }
.listing-note { padding: 7px 10px; border-radius: 4px; background: #fbf5e8; color: var(--amber); line-height: 1.6; }
.listing-hint { line-height: 1.6; }
.deal-verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.deal-verdicts .deal-verdict { margin-bottom: 0; }
.deal-verdict.break-even { background: #eef0f6; color: var(--ink); box-shadow: inset 3px 0 0 var(--teal); }
.deal-verdict.break-even small { line-height: 1.6; }
.similar-strip { display: flex; align-items: center; gap: 12px; justify-content: space-between; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; }
.similar-closest { border: 0; background: none; padding: 0; text-align: left; display: grid; gap: 2px; min-width: 0; color: var(--ink); }
.similar-closest span { font-size: 9px; color: var(--muted); }
.similar-closest strong { font-size: 12px; font-weight: 600; }
.similar-closest small { font-size: 10px; color: var(--muted); }
.similar-closest:hover strong { color: var(--teal); }
.similar-car { font-family: var(--font) !important; }
.similar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.similar-card { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 13px 14px; color: var(--ink); }
.similar-card:hover, .similar-card[aria-expanded=true] { border-color: #8f97b5; }
.similar-rank { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; font-size: 10px; font-weight: 650; }
.similar-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.similar-main strong { font-size: 12px; font-weight: 600; }
.similar-main small, .similar-figures small { font-size: 10px; color: var(--muted); }
.similar-figures { display: grid; text-align: right; flex-shrink: 0; }
.similar-figures strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.similar-figures small.negative { color: var(--red); }
.similar-detail { padding: 12px 0 4px 12px; }

@media (max-width: 1000px) {
  .sourcing-grid, .deal-figures { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sourcing-form { grid-template-columns: 1fr; }
  .similar-strip { display: grid; }
  .listing-row { flex-wrap: wrap; }
  .listing-row .button { flex: 1; }
}

/* Buy box and listings (WAG-21) */
.sourcing-panel { margin-top: 18px; }
.sourcing-panel td .text-link { display: inline-block; margin-top: 4px; font-size: 10px; }
.sourcing-panel td code, .sourcing-panel .chart-empty code { font-size: 10px; background: #f1f2f4; padding: 1px 4px; border-radius: 3px; }

/* Expandable buy box rows (WAG-27) */
.table-tools { display: flex; justify-content: flex-end; gap: 4px; padding: 0 16px 6px; }
.table-tools .button { font-size: 10px; padding: 5px 8px; }
.segment-cell { display: flex; align-items: flex-start; gap: 6px; }
.row-toggle { flex-shrink: 0; width: 22px; height: 22px; margin-top: -2px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--teal); font-size: 10px; line-height: 1; padding: 0; }
.row-toggle:hover { border-color: #8f97b5; background: #f6f7fa; }
.row-toggle-space { flex-shrink: 0; width: 22px; }
.buybox-table .child-row td { padding-top: 10px; padding-bottom: 10px; background: #fafbfc; }
.buybox-table .child-row td > .segment-cell strong { font-weight: 500; }
.buybox-table .depth-1 td:first-child { padding-left: 45px; }
.buybox-table .depth-2 td:first-child { padding-left: 67px; }
.buybox-table .depth-3 td:first-child { padding-left: 89px; }
.segment-cell small { display: inline !important; margin-left: 5px; }

/* Predictions (WAG-28) */
#predictions-view .page-heading { align-items: flex-end; }
#predictions-view .cohort-controls select { min-height: 35px; border: 1px solid #d9dbe2; border-radius: 4px; background: #fff; padding: 7px 9px; color: var(--ink); font-size: 11px; }
#predictions-view .cohort-controls input[type=number] { width: 90px; }
.predictions-summary { font-size: 11px; color: var(--muted); margin: -12px 0 18px; }
.opportunity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.opportunity-grid > .chart-empty, .opportunity-grid > .insight-error, .opportunity-grid > .pulse { grid-column: 1 / -1; }
.opportunity-sections { display: grid; gap: 26px; }
.opportunity-section-heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.opportunity-section-heading h2 { font-size: 17px; }
.opportunity-section-heading p { font-size: 11px; color: var(--muted); }
.opportunity-section > .chart-empty { border: 1px dashed var(--line); border-radius: 8px; background: #fff; }
.opportunity-card { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px 22px; min-width: 0; }
.opportunity-card.first { border-top: 3px solid var(--navy); padding-top: 18px; }
.opportunity-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.opportunity-rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 650; }
.opportunity-head h3 { font-size: 17px; letter-spacing: -.3px; }
.opportunity-head p { font-size: 11px; color: var(--teal); font-weight: 600; margin-top: 3px; }
.opportunity-score { text-align: right; }
.opportunity-score strong { display: block; font-size: 26px; line-height: 1; font-weight: 650; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.opportunity-score small { font-size: 8px; color: var(--muted); }
.opportunity-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.opportunity-figures dt { font-size: 9px; color: var(--muted); }
.opportunity-figures dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.opportunity-figures dd small { display: block; font-size: 8px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.opportunity-also { list-style: none; margin: 0; padding: 0; font-size: 10px; display: grid; gap: 4px; }
.opportunity-also .drill-link { font-size: 10px; margin-left: 4px; }
.opportunity-contrast { font-size: 10px; color: var(--muted); background: var(--teal-light); border-radius: 5px; padding: 8px 10px; }
.score-breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.score-breakdown li { display: grid; grid-template-columns: 70px 1fr minmax(0, 1.6fr); gap: 10px; align-items: center; font-size: 10px; }
.score-breakdown small { display: block; font-size: 8px; color: var(--muted); }
.score-breakdown li > span:first-child small { display: inline; margin-left: 3px; }
.score-bar { height: 6px; border-radius: 3px; background: #eceef3; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.opportunity-listings { font-size: 10px; color: var(--muted); line-height: 1.7; }
.opportunity-listings ul { margin: 4px 0 0; padding-left: 16px; color: var(--ink); }
.opportunity-actions { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #e9eaee; padding-top: 12px; }
/* Outside sourcing searches (WAG-32) */
.opportunity-sourcing { margin-top: auto; display: grid; gap: 7px; }
.opportunity-sourcing + .opportunity-actions { margin-top: 0; }
.opportunity-sourcing > p { font-size: 9px; color: var(--muted); }
.opportunity-sourcing > div { display: flex; flex-wrap: wrap; gap: 6px; }
.opportunity-sourcing .source-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #b9bfd2; border-radius: 5px; background: #fff; color: var(--teal); font-size: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.opportunity-sourcing .source-link:hover, .opportunity-sourcing .source-link:focus-visible { border-color: var(--teal); background: var(--teal-light); }
.source-links { display: inline-grid; gap: 3px; justify-items: start; }
/* Holds each link's hidden "(opens in a new tab)" text inside the table's scroll area. */
.source-link { position: relative; }
.source-links .source-link { color: var(--teal); font-size: 10px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.source-links .source-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.predictions-note { max-width: 1100px; }
#predictions-more { margin-top: 18px; }
#predictions-more-table th:nth-child(2), #predictions-more-table td:nth-child(2) { text-align: left; }
#predictions-more-table th:first-child, #predictions-more-table td:first-child { width: 48px; }
@media (max-width: 1250px) {
  .opportunity-grid { grid-template-columns: 1fr; }
  .opportunity-figures { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  #predictions-view .page-heading { flex-direction: column; align-items: flex-start; }
  .opportunity-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score-breakdown li { grid-template-columns: 60px 1fr; }
  .score-breakdown li > span:last-child { grid-column: 1 / -1; }
}

/* Score tooltip (WAG-31) */
.score-info { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; padding: 0; border: 1px solid #b9bfd2; border-radius: 50%; background: #fff; color: var(--teal); font-size: 9px; font-weight: 700; font-style: italic; line-height: 1; vertical-align: middle; cursor: help; }
.score-info:hover, .score-info:focus-visible { border-color: var(--teal); background: var(--teal-light); }
.score-cell { display: inline-flex; align-items: center; gap: 2px; }
.score-tooltip { position: fixed; z-index: 60; width: 320px; max-width: calc(100vw - 16px); padding: 12px 14px; border-radius: 7px; background: var(--navy); color: #e8eaf2; font-size: 10px; line-height: 1.5; box-shadow: 0 10px 30px #060c2240; pointer-events: none; }
.score-tooltip strong { display: block; color: #fff; font-size: 11px; margin-bottom: 7px; }
.score-tooltip table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.score-tooltip th { text-align: right; font-weight: 500; color: #a9afc5; font-size: 9px; padding: 0 0 4px; }
.score-tooltip td { text-align: right; padding: 4px 0; border-top: 1px solid #2b3350; vertical-align: top; }
.score-tooltip th:first-child, .score-tooltip td:first-child { text-align: left; }
.score-tooltip td small { display: block; color: #a9afc5; font-size: 9px; }
.score-tooltip tfoot td { font-weight: 650; color: #fff; }
.score-tooltip p { margin-top: 8px; color: #a9afc5; font-size: 9px; }


/* Price and mileage chart and sourcing sweet spot (WAG-33) */
.sales-chart-panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 18px 20px; margin: 4px 0 18px; display: grid; gap: 14px; }
.sales-chart-heading { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.sales-chart-heading h3 { font-size: 15px; }
.sales-chart-heading p { font-size: 10px; color: var(--muted); margin-top: 3px; max-width: 640px; }
.sales-chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.sales-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sales-chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.sales-chart-legend i.made { background: var(--teal); }
.sales-chart-legend i.lost { background: var(--red); }
.sales-chart-legend i.span { width: 2px; height: 14px; border-radius: 0; background: #9aa1b5; }
.sales-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.sales-chart .grid { stroke: #eceef3; }
.sales-chart .axis-label { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.sales-chart .axis-title { font-size: 10px; fill: var(--muted); font-weight: 550; }
.sales-chart .sweet-region { fill: var(--teal-light); stroke: var(--teal); stroke-dasharray: 4 3; stroke-width: 1; opacity: .7; }
.sales-chart .sweet-region-label { font-size: 10px; font-weight: 650; fill: var(--teal); }
.sale-point { cursor: pointer; }
.sale-point line { stroke-width: 2; }
.sale-point.made line, .sale-point.made circle { stroke: var(--teal); }
.sale-point.made circle { fill: var(--teal); }
.sale-point.lost line, .sale-point.lost circle { stroke: var(--red); }
.sale-point.lost circle { fill: var(--red); }
.sale-point.unknown line, .sale-point.unknown circle { stroke: #9aa1b5; fill: #9aa1b5; }
.sale-point.dim { opacity: .22; }
.sale-point:hover circle, .sale-point:focus-visible circle { stroke-width: 3; stroke: var(--ink); }
.sale-point:focus-visible { outline: none; }
.point-label { font-size: 10px; fill: var(--ink); pointer-events: none; }
.point-label.dim { opacity: .3; }
.sweet-spot { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.sweet-spot-head h3 { font-size: 16px; margin-top: 2px; }
.sweet-spot-head p { font-size: 11px; color: var(--muted); margin-top: 4px; max-width: 760px; }
.sweet-spot-controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.sweet-spot-controls label { display: grid; gap: 4px; font-size: 10px; color: var(--muted); }
.sweet-spot-controls select { min-width: 120px; }
.sweet-spot-figures { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sweet-spot-verdict { font-size: 11px; font-weight: 600; color: var(--teal); }
.sweet-spot-verdict.negative { color: var(--red); }
.sweet-spot .opportunity-sourcing { margin-top: 0; }
.sweet-spot-actions { display: flex; gap: 12px; }
@media (max-width: 800px) {
  .sales-chart-panel { padding: 14px; }
  .sweet-spot-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sweet-spot-controls label { flex: 1 1 140px; }
  .sweet-spot-controls select { min-width: 0; width: 100%; }
}
