/* Scoped comparison workspace; no shared browse or storefront overrides. */
body.mkt-compare-editorial .cmp-shell {
  max-width:1320px; padding:.75rem clamp(.65rem,2vw,1.4rem) 1.5rem; color:var(--mkt-text);
  --cmp-radius:14px;
}
.cmp-shell *, .cmp-shell *::before, .cmp-shell *::after { box-sizing:border-box; }
.cmp-shell [hidden] { display:none!important; }
.cmp-shell .cmp-tone-1 { --cmp-tone:#7954d5; }
.cmp-shell .cmp-tone-2 { --cmp-tone:#16877e; }
.cmp-shell .cmp-tone-3 { --cmp-tone:#bd771d; }
.cmp-shell .cmp-tone-4 { --cmp-tone:#4678ce; }
.cmp-shell .cmp-masthead, .cmp-shell .cmp-panel {
  background:var(--mkt-surface); border:1px solid var(--mkt-line); border-radius:var(--cmp-radius);
}
.cmp-shell .cmp-masthead { display:flex; align-items:center; justify-content:space-between; gap:.65rem; padding:.6rem .75rem; margin-bottom:.8rem; flex-wrap:wrap; }
.cmp-shell .cmp-brand { display:flex; align-items:center; gap:.6rem; min-width:0; }
.cmp-shell .cmp-brand-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:11px; background:var(--mkt-accent-soft); color:var(--mkt-accent-dark); font-size:1.1rem; }
.cmp-shell h1,.cmp-shell h2,.cmp-shell h3,.cmp-shell p { margin:0; }
.cmp-shell h1 { font-size:1.2rem; font-weight:800; color:var(--mkt-ink); line-height:1.5; }
.cmp-shell .cmp-brand p,.cmp-shell .cmp-section-head p { color:var(--mkt-muted); font-size:.72rem; line-height:1.6; }
.cmp-shell .cmp-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.35rem; }
.cmp-shell .cmp-btn { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:.4rem; min-height:39px; padding:.4rem .65rem; border:1px solid var(--mkt-line); border-radius:8px; background:var(--mkt-surface); color:var(--mkt-text); text-decoration:none; font:inherit; font-size:.78rem; font-weight:650; cursor:pointer; }
.cmp-shell .cmp-primary { background:#6036bf; border-color:#6036bf; color:white; }
.cmp-shell .cmp-icon-btn { min-width:39px; padding:.3rem; }
.cmp-shell .cmp-plain { border:0; background:transparent; color:var(--mkt-muted); }
.cmp-shell .cmp-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.55rem; margin-bottom:.7rem; min-width:0; }
.cmp-shell .cmp-section-head h2 { display:flex; align-items:center; flex-wrap:wrap; gap:.45rem; font-size:1rem; font-weight:800; color:var(--mkt-ink); line-height:1.5; }
.cmp-shell .cmp-section-head h2 i { color:var(--mkt-accent-dark); font-size:.9rem; }
.cmp-shell .cmp-count { padding:.12rem .35rem; border-radius:5px; background:var(--mkt-accent-soft); color:var(--mkt-accent-dark); font-size:.71rem; font-weight:650; }
.cmp-shell .cmp-selection { margin-bottom:.8rem; }
.cmp-shell .cmp-selection > .cmp-section-head { padding:.35rem .15rem 0; }
.cmp-shell .cmp-property-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; align-items:stretch; }
.cmp-shell .cmp-property-grid--1 { grid-template-columns:minmax(0,390px); }
.cmp-shell .cmp-property-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cmp-shell .cmp-property-grid--3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.cmp-shell .cmp-property { display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid var(--mkt-line); border-radius:12px; background:var(--mkt-surface); }
.cmp-shell .cmp-photo { display:block; position:relative; height:clamp(105px,12vw,156px); background:var(--mkt-surface-2); overflow:hidden; }
.cmp-shell .cmp-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cmp-shell .cmp-photo-fallback { position:absolute; inset:0; display:grid; align-content:center; justify-items:center; gap:.35rem; font-size:.72rem; color:var(--mkt-muted); }
.cmp-shell .cmp-photo-fallback i { font-size:1.35rem; }
.cmp-shell .cmp-property-number { position:absolute; inset-block-start:.45rem; inset-inline-start:.45rem; padding:.22rem .45rem; border-radius:6px; background:var(--mkt-surface); color:var(--mkt-ink); border-inline-start:3px solid var(--cmp-tone); font-size:.72rem; font-weight:700; }
.cmp-shell .cmp-property-body { display:flex; flex-direction:column; flex:1; min-width:0; gap:.35rem; padding:.65rem; }
.cmp-shell .cmp-property-type { font-size:.71rem; color:var(--mkt-muted); }
.cmp-shell .cmp-property h3 { font-size:.9rem; font-weight:750; line-height:1.55; overflow-wrap:anywhere; }
.cmp-shell .cmp-property h3 a { color:var(--mkt-ink); text-decoration:none; }
.cmp-shell .cmp-location { display:flex; gap:.3rem; align-items:baseline; color:var(--mkt-muted); font-size:.72rem; overflow-wrap:anywhere; }
.cmp-shell .cmp-location i,.cmp-shell .cmp-property-spec i { color:var(--mkt-accent-dark); }
.cmp-shell .cmp-property-finance { display:grid; gap:.2rem; margin-top:.15rem; padding:.45rem .5rem; background:var(--mkt-surface-2); border-radius:7px; min-width:0; }
.cmp-shell .cmp-property-finance div { display:flex; flex-wrap:wrap; align-items:baseline; gap:.1rem .55rem; justify-content:space-between; }
.cmp-shell .cmp-property-finance span,.cmp-shell .cmp-property-finance small { font-size:.69rem; color:var(--mkt-muted); font-weight:500; }
.cmp-shell .cmp-property-finance strong { font-size:.96rem; color:var(--mkt-ink); font-weight:800; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.cmp-shell .cmp-property-spec { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem .7rem; font-size:.74rem; }
.cmp-shell .cmp-property-spec span { display:inline-flex; align-items:center; gap:.25rem; }
.cmp-shell .cmp-property footer { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--mkt-line); padding-top:.22rem; margin-top:auto; }
.cmp-shell .cmp-property footer a { display:inline-flex; align-items:center; gap:.25rem; min-height:36px; color:var(--mkt-accent-dark); font-size:.76rem; font-weight:700; text-decoration:none; }
.cmp-shell .cmp-property footer .cmp-remove { min-width:36px; justify-content:center; font-size:.95rem; color:var(--mkt-muted); }
.cmp-shell .cmp-panel { padding:.8rem; margin-bottom:.8rem; min-width:0; }
.cmp-shell .cmp-legend { display:flex; flex-wrap:wrap; gap:.3rem .85rem; margin-bottom:.65rem; }
.cmp-shell .cmp-legend span { display:inline-flex; align-items:center; gap:.3rem; font-size:.73rem; color:var(--mkt-text); }
.cmp-shell .cmp-legend i,.cmp-shell .cmp-dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--cmp-tone); flex:none; }
.cmp-shell .cmp-chart-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr)); gap:.6rem; }
.cmp-shell .cmp-chart { padding:.65rem .7rem; border:1px solid var(--mkt-line); border-radius:10px; background:var(--mkt-surface); min-width:0; }
.cmp-shell .cmp-chart header { display:flex; align-items:center; justify-content:space-between; gap:.35rem; margin-bottom:.55rem; }
.cmp-shell .cmp-chart h3 { font-size:.85rem; font-weight:750; color:var(--mkt-ink); }
.cmp-shell .cmp-chart header span { font-size:.69rem; color:var(--mkt-muted); }
.cmp-shell .cmp-chart-row + .cmp-chart-row { margin-top:.55rem; }
.cmp-shell .cmp-chart-label { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:.15rem .4rem; margin-bottom:.23rem; font-size:.73rem; }
.cmp-shell .cmp-chart-label strong { font-weight:750; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; color:var(--mkt-ink); }
.cmp-shell .cmp-chart-label small { color:var(--mkt-muted); font-size:.67rem; }
.cmp-shell .cmp-bar-track { height:8px; border-radius:5px; background:var(--mkt-surface-2); overflow:hidden; }
.cmp-shell .cmp-bar-track span { display:block; width:var(--cmp-width); height:100%; background:var(--cmp-tone); border-radius:5px; }
.cmp-shell .cmp-spread { border-top:1px solid var(--mkt-line); margin-top:.7rem; padding-top:.38rem; font-size:.7rem; color:var(--mkt-muted); }
.cmp-shell .cmp-spread strong { color:var(--mkt-text); }
.cmp-shell .cmp-note,.cmp-shell .cmp-mobile-hint { margin-top:.6rem; font-size:.72rem; color:var(--mkt-muted); line-height:1.8; }
.cmp-shell .cmp-notice,.cmp-shell .cmp-status { background:var(--mkt-surface); border:1px solid var(--mkt-line); border-radius:9px; padding:.55rem .7rem; margin-bottom:.7rem; font-size:.78rem; line-height:1.8; }
.cmp-shell .cmp-notice i { color:var(--mkt-accent-dark); margin-inline-end:.3rem; }
.cmp-shell .cmp-switch { display:inline-flex; align-items:center; gap:.4rem; min-height:40px; cursor:pointer; font-size:.76rem; }
.cmp-shell .cmp-switch input { accent-color:var(--mkt-accent); width:18px; height:18px; margin:0; }
.cmp-shell .cmp-table-scroll { overflow:auto; border:1px solid var(--mkt-line); border-radius:10px; max-width:100%; }
.cmp-shell .cmp-table { width:100%; min-width:100%; border-spacing:0; border-collapse:separate; text-align:start; font-size:.79rem; table-layout:fixed; }
.cmp-shell .cmp-table th,.cmp-shell .cmp-table td { padding:.55rem .6rem; text-align:start; border-bottom:1px solid var(--mkt-line); vertical-align:middle; overflow-wrap:anywhere; }
.cmp-shell .cmp-table thead th { background:var(--mkt-surface-2); color:var(--mkt-ink); min-width:150px; }
.cmp-shell .cmp-table thead th:first-child { width:150px; position:sticky; inset-inline-start:0; z-index:2; }
.cmp-shell .cmp-table thead th a { color:inherit; text-decoration:none; font-weight:750; display:block; }
.cmp-shell .cmp-table thead small { display:block; color:var(--mkt-muted); font-size:.69rem; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:.25rem; }
.cmp-shell .cmp-table th[scope=row] { position:sticky; inset-inline-start:0; z-index:1; background:var(--mkt-surface); color:var(--mkt-text); font-weight:600; }
.cmp-shell .cmp-table td { color:var(--mkt-ink); font-variant-numeric:tabular-nums; }
.cmp-shell .cmp-group-title th { background:var(--mkt-accent-soft); color:var(--mkt-accent-dark); font-size:.76rem; font-weight:750; }
.cmp-shell .cmp-cell--unknown { color:var(--mkt-muted)!important; }
.cmp-shell .cmp-cell--yes i { color:#16877e; margin-inline-end:.2rem; }
.cmp-shell .cmp-table tbody:last-child tr:last-child > * { border-bottom:0; }
.cmp-shell .cmp-mobile-hint { display:none; margin:.05rem 0 .45rem; }
.cmp-shell .cmp-empty { display:grid; justify-items:center; text-align:center; gap:.6rem; padding:2.5rem 1rem; }
.cmp-shell .cmp-empty-icon { display:grid; place-items:center; width:60px; height:60px; border-radius:16px; background:var(--mkt-accent-soft); color:var(--mkt-accent-dark); font-size:1.5rem; }
.cmp-shell .cmp-empty h2 { font-size:1.1rem; color:var(--mkt-ink); }
.cmp-shell .cmp-empty p { max-width:38rem; color:var(--mkt-muted); font-size:.82rem; line-height:1.8; }
.cmp-shell .cmp-footer { text-align:center; padding:.55rem; font-size:.72rem; color:var(--mkt-muted); }
.cmp-shell :is(a,button,input,[tabindex]):focus-visible { outline:2px solid var(--mkt-accent); outline-offset:-2px; }
@media(hover:hover) {
  .cmp-shell .cmp-btn:not(.cmp-primary):hover { background:var(--mkt-surface-2); color:var(--mkt-accent-dark); }
  .cmp-shell .cmp-primary:hover { background:#4e28a8; color:white; }
  .cmp-shell .cmp-remove:hover { color:#db4162!important; }
  .cmp-shell .cmp-property h3 a:hover { color:var(--mkt-accent-dark); }
}
@media(max-width:850px) {
  .cmp-shell .cmp-property-grid:not(.cmp-property-grid--1) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cmp-shell .cmp-mobile-hint { display:block; }
  .cmp-shell .cmp-table { table-layout:auto; }
  .cmp-shell .cmp-table th[scope=row],.cmp-shell .cmp-table thead th:first-child { min-width:112px; width:112px; }
  .cmp-shell .cmp-table td,.cmp-shell .cmp-table thead th:not(:first-child) { min-width:155px; }
}
@media(max-width:480px) {
  body.mkt-compare-editorial .cmp-shell { padding:.5rem .55rem 1rem; }
  .cmp-shell .cmp-masthead { padding:.5rem; gap:.35rem; }
  .cmp-shell h1 { font-size:1rem; }
  .cmp-shell .cmp-brand-icon { width:36px; height:36px; }
  .cmp-shell .cmp-btn { min-height:44px; }
  .cmp-shell .cmp-icon-btn { min-width:44px; }
  .cmp-shell .cmp-property-grid:not(.cmp-property-grid--1) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.4rem; }
  .cmp-shell .cmp-property-body { padding:.45rem; }
  .cmp-shell .cmp-property h3 { font-size:.8rem; }
  .cmp-shell .cmp-property-finance { padding:.35rem; }
  .cmp-shell .cmp-property-finance strong { font-size:.82rem; }
  .cmp-shell .cmp-property footer a { min-height:44px; font-size:.7rem; }
  .cmp-shell .cmp-property footer .cmp-remove { min-width:44px; }
  .cmp-shell .cmp-panel { padding:.6rem; }
  .cmp-shell .cmp-chart-grid { grid-template-columns:minmax(0,1fr); }
  .cmp-shell .cmp-table th,.cmp-shell .cmp-table td { padding:.45rem; }
}
@media print {
  body.mkt-compare-editorial .cmp-actions,.cmp-shell .cmp-remove,.cmp-shell .cmp-switch,.cmp-shell .cmp-mobile-hint { display:none!important; }
  .cmp-shell .cmp-table-scroll { overflow:visible; }
  .cmp-shell .cmp-table th[scope=row],.cmp-shell .cmp-table thead th:first-child { position:static; }
  .cmp-shell .cmp-property,.cmp-shell .cmp-chart { break-inside:avoid; }
}

/* Keep both selected properties readable without overlong mobile cards. */
.cmp-shell .cmp-property-grid--2 .cmp-photo { height:clamp(115px,15vw,200px); }
.cmp-shell .cmp-spread small { font-size:.67rem; color:var(--mkt-muted); }
.cmp-shell .cmp-property-finance strong,.cmp-shell .cmp-chart-label strong { min-width:0; }
@media(max-width:360px) {
  .cmp-shell .cmp-property-grid:not(.cmp-property-grid--1) { grid-template-columns:minmax(0,1fr); }
  .cmp-shell .cmp-property { display:grid; grid-template-columns:105px minmax(0,1fr); }
  .cmp-shell .cmp-property .cmp-photo { align-self:stretch; height:auto; min-height:115px; }
  .cmp-shell .cmp-property-body { min-width:0; }
}
@media print {
  .cmp-shell .cmp-masthead { display:flex; }
  .cmp-shell .cmp-property-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .cmp-shell .cmp-property { display:flex; }
  .cmp-shell .cmp-table { table-layout:fixed; }
  .cmp-shell .cmp-table td,.cmp-shell .cmp-table th { min-width:0!important; width:auto!important; font-size:9pt; }
  .cmp-shell .cmp-bar-track span { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  .cmp-shell .cmp-table tr { break-inside:avoid; }
}

/* Comparison studio: one measured Cartesian plot, compact matrix and consistent identity. */
.cmp-shell .cmp-analytics,.cmp-shell .cmp-details { padding:clamp(.75rem,1.8vw,1.25rem); }
.cmp-shell .cmp-metric-control { display:flex; align-items:center; gap:.55rem; font-size:.75rem; color:var(--mkt-muted); }
.cmp-shell .cmp-metric-control select { min-height:40px; max-width:100%; padding:.3rem .6rem; font:inherit; font-weight:650; color:var(--mkt-ink); border:1px solid var(--mkt-line); background:var(--mkt-surface); border-radius:8px; }
.cmp-shell .cmp-axis-card { margin-top:.55rem; border:1px solid var(--mkt-line); border-radius:12px; padding:clamp(.65rem,1.7vw,1.1rem); min-width:0; background:var(--mkt-surface); }
.cmp-shell .cmp-axis-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.65rem; margin-bottom:.9rem; }
.cmp-shell .cmp-axis-head h3 { font-size:1.03rem; font-weight:800; color:var(--mkt-ink); }
.cmp-shell .cmp-axis-head div > span,.cmp-shell .cmp-axis-head small,.cmp-shell .cmp-axis-unit { font-size:.71rem; color:var(--mkt-muted); }
.cmp-shell .cmp-equal { font-size:.76rem; color:var(--mkt-muted); }
.cmp-shell .cmp-axis-unit { direction:rtl; text-align:left; margin:0 0 .6rem; }
.cmp-shell .cmp-plot { --cmp-plot-height:clamp(180px,23vw,270px); display:grid; grid-template-columns:max-content minmax(0,1fr); column-gap:.6rem; padding-top:.4rem; }
.cmp-shell .cmp-y-axis { height:var(--cmp-plot-height); display:flex; flex-direction:column; justify-content:space-between; align-items:flex-end; font-size:.71rem; color:var(--mkt-muted); font-variant-numeric:tabular-nums; }
.cmp-shell .cmp-y-axis span { line-height:0; }
.cmp-shell .cmp-plot-area { position:relative; min-width:0; }
.cmp-shell .cmp-gridlines { position:absolute; inset:0 0 auto; height:var(--cmp-plot-height); display:flex; flex-direction:column; justify-content:space-between; border-left:1px solid var(--mkt-line); pointer-events:none; }
.cmp-shell .cmp-gridlines i { border-top:1px dashed var(--mkt-line); }
.cmp-shell .cmp-gridlines i:last-child { border-top-style:solid; }
.cmp-shell .cmp-columns { position:relative; height:var(--cmp-plot-height); display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); }
.cmp-shell .cmp-column { height:100%; min-width:0; display:flex; align-items:flex-end; justify-content:center; }
.cmp-shell .cmp-column-hit { position:relative; display:block; width:clamp(44px,42%,104px); height:100%; min-height:0; background:transparent; border:0; padding:0; margin:0; cursor:pointer; overflow:visible; }
.cmp-shell .cmp-column-zero { --cmp-height:0%; }
.cmp-shell .cmp-column-fill { position:absolute; inset:auto 0 0; height:var(--cmp-height); border-radius:8px 8px 0 0; background:linear-gradient(180deg,color-mix(in srgb,var(--cmp-tone) 75%,white),var(--cmp-tone)); transform-origin:center bottom; }
.cmp-shell .cmp-column-zero .cmp-column-fill { height:2px; border-radius:5px; opacity:.45; }
.cmp-shell .cmp-animate .cmp-column-fill { animation:cmp-rise .68s cubic-bezier(.2,.78,.28,1) both; animation-delay:calc(var(--cmp-delay) * 65ms); }
@keyframes cmp-rise { from {transform:scaleY(0);opacity:.5;} to {transform:scaleY(1);opacity:1;} }
.cmp-shell .cmp-column-tip { position:absolute; z-index:4; bottom:calc(var(--cmp-height) + 9px); left:50%; transform:translate(-50%,4px); display:grid; gap:.2rem; width:max-content; max-width:160px; padding:.4rem .55rem; border:1px solid var(--mkt-line); border-radius:8px; color:var(--mkt-ink); background:var(--mkt-surface); box-shadow:0 6px 20px #18112420; text-align:center; font-size:.72rem; font-weight:750; white-space:normal; opacity:0; visibility:hidden; transition:opacity .15s,transform .15s; pointer-events:none; }
.cmp-shell .cmp-column-tip small { color:var(--mkt-muted); font-weight:500; }
.cmp-shell .cmp-column-hit:is(:focus-visible,[aria-expanded="true"]) .cmp-column-tip { opacity:1; visibility:visible; transform:translate(-50%,0); }
@media(hover:hover) { .cmp-shell .cmp-column-hit:hover .cmp-column-tip { opacity:1; visibility:visible; transform:translate(-50%,0); } .cmp-shell .cmp-column-hit:hover .cmp-column-fill { filter:saturate(1.15); } }
.cmp-shell .cmp-x-axis { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); padding-top:.6rem; text-align:center; }
.cmp-shell .cmp-x-axis span { display:flex; justify-content:center; align-items:center; gap:.25rem; font-size:.73rem; color:var(--mkt-text); }
.cmp-shell .cmp-x-axis i { width:7px; height:7px; border-radius:50%; background:var(--cmp-tone); }
.cmp-shell .cmp-axis-values { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:.35rem; margin-top:.8rem; border-top:1px solid var(--mkt-line); padding-top:.65rem; }
.cmp-shell .cmp-axis-value { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.18rem; min-width:0; }
.cmp-shell .cmp-axis-value > span { display:inline-flex; align-items:center; gap:.25rem; font-size:.72rem; color:var(--mkt-muted); }
.cmp-shell .cmp-axis-value strong { font-size:.86rem; color:var(--mkt-ink); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.cmp-shell .cmp-axis-value small { font-size:.68rem; color:var(--mkt-muted); }
.cmp-shell .cmp-category-tabs { display:flex; align-items:center; gap:.25rem; overflow-x:auto; padding:.1rem .1rem .45rem; margin-bottom:.55rem; scrollbar-width:thin; }
.cmp-shell .cmp-category-tabs button { display:inline-flex; align-items:center; gap:.35rem; flex:none; padding:.35rem .7rem; min-height:36px; border:1px solid transparent; border-radius:7px; color:var(--mkt-muted); background:transparent; font:inherit; font-size:.76rem; cursor:pointer; white-space:nowrap; }
.cmp-shell .cmp-category-tabs button[aria-pressed=true] { background:var(--mkt-accent-soft); color:var(--mkt-accent-dark); border-color:var(--mkt-line); font-weight:700; }
.cmp-shell .cmp-switch { position:relative; gap:.45rem; color:var(--mkt-text); }
.cmp-shell .cmp-switch input { position:absolute; opacity:0; width:34px; height:24px; }
.cmp-shell .cmp-switch-track { width:34px; height:20px; border-radius:12px; background:var(--mkt-line); padding:3px; display:flex; align-items:center; transition:background .18s; }
.cmp-shell .cmp-switch-track::before { content:""; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0002; transition:transform .18s; }
.cmp-shell .cmp-switch input:checked + .cmp-switch-track { background:#7954d5; }
.cmp-shell .cmp-switch input:checked + .cmp-switch-track::before { transform:translateX(-14px); }
.cmp-shell .cmp-switch input:focus-visible + .cmp-switch-track { outline:2px solid var(--mkt-accent); outline-offset:2px; }
.cmp-shell .cmp-details .cmp-table-scroll { border-radius:10px; }
.cmp-shell .cmp-details .cmp-table { font-size:.8rem; table-layout:fixed; }
.cmp-shell .cmp-details .cmp-table th,.cmp-shell .cmp-details .cmp-table td { padding:.52rem .65rem; }
.cmp-shell .cmp-details .cmp-table thead th { text-align:center; background:var(--mkt-surface); border-bottom:2px solid var(--cmp-tone,var(--mkt-line)); }
.cmp-shell .cmp-details .cmp-table thead th:first-child { text-align:start; width:clamp(120px,19%,205px); }
.cmp-shell .cmp-th-id { display:inline-flex; align-items:center; gap:.35rem; font-size:.83rem; }
.cmp-shell .cmp-details .cmp-table thead small { margin-top:.18rem; }
.cmp-shell .cmp-details .cmp-table td { text-align:center; font-weight:650; }
.cmp-shell .cmp-details .cmp-table th[scope=row] { color:var(--mkt-muted); font-weight:550; }
.cmp-shell .cmp-details .cmp-group-title th { padding:.42rem .65rem; background:var(--mkt-surface-2); color:var(--mkt-ink); border-top:1px solid var(--mkt-line); }
.cmp-shell .cmp-group-title th span { display:inline-flex; align-items:center; gap:.4rem; }
.cmp-shell .cmp-group-title i { color:var(--mkt-accent-dark); font-size:.75rem; }
.cmp-shell .cmp-cell-content { display:inline; overflow-wrap:anywhere; line-height:1.65; }
.cmp-shell .cmp-cell--unknown { font-weight:400!important; }
.cmp-shell .cmp-difference-dot { display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--mkt-accent); margin-inline-start:.35rem; vertical-align:middle; }
.cmp-shell .cmp-no-results { padding:.65rem; text-align:center; }
.cmp-shell .cmp-property-grid--2 .cmp-photo { height:clamp(110px,13vw,170px); }
@media(min-width:900px) { .cmp-shell .cmp-property-grid--2 .cmp-property { display:grid; grid-template-columns:minmax(0,37%) minmax(0,1fr); } .cmp-shell .cmp-property-grid--2 .cmp-photo { height:auto; min-height:155px; align-self:stretch; } }
@media(max-width:767px) {
 .cmp-shell .cmp-plot { --cmp-plot-height:205px; column-gap:.4rem; }
 .cmp-shell .cmp-axis-values { grid-auto-flow:row; grid-auto-columns:auto; grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:.55rem; }
 .cmp-shell .cmp-axis-value strong { font-size:.77rem; }
 .cmp-shell .cmp-category-tabs button,.cmp-shell .cmp-metric-control select { min-height:44px; }
 .cmp-shell .cmp-details .cmp-table-scroll:not(.cmp-table-count-3):not(.cmp-table-count-4) .cmp-table { min-width:100%; }
 .cmp-shell .cmp-details .cmp-table-scroll:is(.cmp-table-count-3,.cmp-table-count-4) .cmp-table { min-width:650px; }
 .cmp-shell .cmp-details .cmp-table th,.cmp-shell .cmp-details .cmp-table td { min-width:0!important; padding:.45rem .3rem; }
 .cmp-shell .cmp-details .cmp-table thead th:first-child { width:30%; }
 .cmp-shell .cmp-column-tip { max-width:115px; }
}
@media(prefers-reduced-motion:reduce) { .cmp-shell .cmp-animate .cmp-column-fill { animation:none; } .cmp-shell .cmp-column-tip,.cmp-shell .cmp-switch-track,.cmp-shell .cmp-switch-track::before { transition:none; } }
@media print {
 .cmp-shell .cmp-axis-card[hidden],.cmp-shell .cmp-details tbody[hidden] { display:block!important; }
 .cmp-shell .cmp-details tbody[hidden] { display:table-row-group!important; }
 .cmp-shell .cmp-details tr[hidden] { display:table-row!important; }
 .cmp-shell .cmp-category-tabs,.cmp-shell .cmp-metric-control,.cmp-shell .cmp-column-tip,.cmp-shell .cmp-no-results { display:none!important; }
 .cmp-shell .cmp-axis-card { break-inside:avoid; }
 .cmp-shell .cmp-column-fill { animation:none!important; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
 .cmp-shell .cmp-details .cmp-table { min-width:0!important; }
}

.cmp-shell .cmp-column-hit:focus-visible { outline:0; }
.cmp-shell .cmp-column-hit:focus-visible .cmp-column-fill { outline:2px solid var(--mkt-accent); outline-offset:3px; }
.cmp-shell .cmp-column-hit:focus-visible::after { content:""; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--mkt-accent); }
@media(max-width:420px) {
 .cmp-shell .cmp-column:first-child:nth-last-child(4) .cmp-column-hit .cmp-column-tip { left:auto; right:0; transform:translateY(0); }
 .cmp-shell .cmp-column:last-child:nth-child(4) .cmp-column-hit .cmp-column-tip { left:0; transform:translateY(0); }
 .cmp-shell .cmp-metric-control { width:100%; justify-content:space-between; }
 .cmp-shell .cmp-metric-control select { min-width:0; flex:1; }
}

/* A single compact insight strip above the plot. Exact values stay below the chart. */
.cmp-shell .cmp-metric-summary {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  margin:.1rem 0 .95rem; padding:.7rem 0; border:1px solid var(--mkt-line);
  border-radius:10px; background:var(--mkt-surface-2);
}
.cmp-shell .cmp-summary-item {
  display:flex; flex-direction:column; align-items:flex-start; gap:.25rem;
  min-width:0; padding:.12rem clamp(.55rem,1vw,1rem);
}
.cmp-shell .cmp-summary-item + .cmp-summary-item { border-inline-start:1px solid var(--mkt-line); }
.cmp-shell .cmp-summary-item dt { font-size:.72rem; font-weight:550; line-height:1.6; color:var(--mkt-muted); }
.cmp-shell .cmp-summary-item dd { margin:0; min-width:0; }
.cmp-shell .cmp-summary-value {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.1rem .3rem;
  font-size:clamp(1rem,1.45vw,1.3rem); font-weight:800; line-height:1.45;
  font-variant-numeric:tabular-nums; color:var(--mkt-ink);
}
.cmp-shell .cmp-summary-value bdi { overflow-wrap:anywhere; min-width:0; }
.cmp-shell .cmp-summary-value small,.cmp-shell .cmp-summary-approx { font-size:.72rem; font-weight:500; color:var(--mkt-muted); }
.cmp-shell .cmp-summary-spread .cmp-summary-value { color:var(--mkt-accent-dark); }
.cmp-shell .cmp-summary-context { font-size:.69rem; font-weight:500; line-height:1.55; color:var(--mkt-muted); overflow-wrap:anywhere; }
.cmp-shell .cmp-summary-unavailable { color:var(--mkt-muted); }
@media(max-width:767px) {
  .cmp-shell .cmp-metric-summary { grid-template-columns:repeat(2,minmax(0,1fr)); padding:.25rem 0; }
  .cmp-shell .cmp-summary-item { padding:.55rem .65rem; }
  .cmp-shell .cmp-summary-item:nth-child(3) { border-inline-start:0; }
  .cmp-shell .cmp-summary-item:nth-child(n+3) { border-top:1px solid var(--mkt-line); }
  .cmp-shell .cmp-summary-value { font-size:1rem; }
}
@media(max-width:360px) {
  .cmp-shell .cmp-summary-item { padding:.45rem .4rem; }
  .cmp-shell .cmp-summary-item dt { font-size:.68rem; }
}
@media print {
  .cmp-shell .cmp-metric-summary { grid-template-columns:repeat(4,minmax(0,1fr)); break-inside:avoid; }
}
