:root {
  --ink: #101820;
  --muted: #586775;
  --soft: #e7edef;
  --line: #cdd8de;
  --paper: #f5f8f9;
  --panel: #ffffff;
  --teal: #007f78;
  --teal-deep: #005f5b;
  --aubergine: #5b2b74;
  --amber: #c78300;
  --red: #b73838;
  --green: #0a7e50;
  --navy: #07131f;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.06), 0 8px 24px rgba(16, 24, 32, 0.025);
  --radius: 7px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: #eef3f4;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.58;
}

a {
  color: var(--teal-deep);
}

.ui-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-share { --icon-url: url("assets/icons/share.svg"); }
.icon-printer { --icon-url: url("assets/icons/printer.svg"); }
.icon-book-2 { --icon-url: url("assets/icons/book-2.svg"); }
.icon-scale { --icon-url: url("assets/icons/scale.svg"); }
.icon-filter { --icon-url: url("assets/icons/filter.svg"); }
.icon-search { --icon-url: url("assets/icons/search.svg"); }
.icon-refresh { --icon-url: url("assets/icons/refresh.svg"); }
.icon-chart-bar { --icon-url: url("assets/icons/chart-bar.svg"); }
.icon-table { --icon-url: url("assets/icons/table.svg"); }
.icon-grid-dots { --icon-url: url("assets/icons/grid-dots.svg"); }
.icon-chart-arrows { --icon-url: url("assets/icons/chart-arrows.svg"); }
.icon-currency-pound { --icon-url: url("assets/icons/currency-pound.svg"); }
.icon-heartbeat { --icon-url: url("assets/icons/heartbeat.svg"); }
.icon-bulb { --icon-url: url("assets/icons/bulb.svg"); }
.icon-report-analytics { --icon-url: url("assets/icons/report-analytics.svg"); }
.icon-external-link { --icon-url: url("assets/icons/external-link.svg"); }
.icon-copy { --icon-url: url("assets/icons/copy.svg"); }
.icon-trophy { --icon-url: url("assets/icons/trophy.svg"); }
.icon-building-bank { --icon-url: url("assets/icons/building-bank.svg"); }
.icon-alert-circle { --icon-url: url("assets/icons/alert-circle.svg"); }
.icon-target { --icon-url: url("assets/icons/target.svg"); }
.icon-users { --icon-url: url("assets/icons/users.svg"); }
.icon-shield-check { --icon-url: url("assets/icons/shield-check.svg"); }
.icon-file-description { --icon-url: url("assets/icons/file-description.svg"); }

.lender-logo {
  --lender-brand: #1d2933;
  --logo-art-max-width: 60px;
  --logo-art-max-height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lender-logo-large {
  --logo-art-max-width: 70px;
  --logo-art-max-height: 34px;
  width: 88px;
  height: 52px;
  padding: 8px;
}

.lender-logo-medium {
  width: 72px;
  height: 42px;
}

.lender-logo-small {
  --logo-art-max-width: 36px;
  --logo-art-max-height: 20px;
  width: 48px;
  height: 30px;
  padding: 5px;
}

.lender-logo-art {
  display: block;
  width: 100%;
  height: 100%;
}

.lender-logo-image {
  width: auto;
  height: auto;
  max-width: var(--logo-art-max-width);
  max-height: var(--logo-art-max-height);
  object-fit: contain;
}

.lender-logo-mask {
  max-width: 30px;
  max-height: 30px;
  background: var(--lender-brand);
  -webkit-mask-image: var(--lender-logo-url);
  mask-image: var(--lender-logo-url);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.lender-logo-small .lender-logo-mask {
  max-width: 21px;
  max-height: 21px;
}

.lender-logo[data-lender="barclays"] { --lender-logo-url: url("assets/logos/barclays.svg"); --lender-brand: #00aef0; }
.lender-logo[data-lender="hsbc"] { --lender-logo-url: url("assets/logos/hsbc.svg"); --lender-brand: #db0011; }
.lender-logo[data-lender="tide"] { --lender-logo-url: url("assets/logos/tide.svg"); --lender-brand: #0050ff; }
.lender-logo[data-lender="starling"] { --lender-logo-url: url("assets/logos/starling-bank.svg"); --lender-brand: #6935d3; }
.lender-logo[data-lender="monzo"] { --lender-logo-url: url("assets/logos/monzo.svg"); --lender-brand: #14233c; }

.lender-logo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  background: var(--aubergine);
  font-weight: 900;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(340px, 1.1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 13px clamp(18px, 3.5vw, 52px);
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #d9fffb;
  background: var(--teal-deep);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-weight: 800;
}

.brand-title {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #fff;
  font-size: inherit;
  line-height: 1;
}

.brand-title span {
  display: block;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-title span:first-child {
  font-size: 15px;
  font-weight: 850;
  text-transform: uppercase;
}

.brand-title span:last-child {
  color: #35c8be;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-note {
  display: flex;
  align-items: flex-start;
  max-width: 620px;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

.header-note > .ui-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #55d6ca;
}

.header-note-copy {
  display: grid;
  gap: 2px;
}

.header-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.snapshot-meta {
  display: grid;
  min-width: 110px;
  gap: 2px;
  padding: 4px 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.snapshot-meta span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.snapshot-meta strong {
  font-size: 12px;
  line-height: 1.2;
}

.source-status strong::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  content: "";
  background: #36c9b9;
  border-radius: 50%;
}

.utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.utility-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.dashboard-shell {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 20px clamp(14px, 3vw, 42px) 52px;
}

.control-strip {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) 240px minmax(240px, 0.85fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.control-group,
.field {
  display: grid;
  gap: 8px;
}

.control-label,
.field > span,
.compact-sort > span {
  color: #26313b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-label,
.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
}

.control-label > .ui-icon,
.field-label > .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--teal-deep);
}

.step-number {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  color: var(--teal-deep);
  background: #e4f2f1;
  border: 1px solid #bbdcd9;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.control-explainer {
  min-height: 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.control-hint {
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 44px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 0 6px;
  color: #28333e;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  color: #fff;
  background: var(--teal);
}

.segmented button .ui-icon {
  width: 16px;
  height: 16px;
}

.field select,
.field input,
.compact-sort select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.field input:focus,
.field select:focus,
.segmented button:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 127, 122, 0.24);
  outline-offset: 2px;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  align-self: start;
  margin-top: 28px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.reset-button:hover {
  color: var(--ink);
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.62fr) minmax(300px, 0.82fr);
  gap: 14px;
  margin-bottom: 14px;
}

.summary-panel,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-panel {
  padding: 18px;
}

.selected-panel {
  border-left: 4px solid var(--aubergine);
}

.panel-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: #25313b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-kicker .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--teal-deep);
}

.selected-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.selected-title {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.selected-title h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}

.selected-type {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  color: #121820;
  font-size: 16px;
  line-height: 1.25;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.metric-block {
  padding: 16px 14px 4px 0;
  border-right: 1px solid var(--line);
}

.metric-block:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 14px;
}

.metric-block span,
.metric-block small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-block strong {
  display: block;
  margin: 4px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.gap-block strong {
  color: var(--amber);
}

.position-panel {
  border-top: 4px solid var(--teal);
}

.position-band {
  display: grid;
  gap: 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.position-band > span,
.position-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.position-band strong {
  color: var(--aubergine);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.15;
}

.position-band strong[data-band="leading"] {
  color: var(--teal-deep);
}

.position-band small,
.position-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.position-grid > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.position-grid > div:first-child {
  padding-top: 0;
  padding-left: 0;
}

.position-grid > div:nth-child(2) {
  padding-top: 0;
  padding-right: 0;
  border-right: 0;
}

.position-grid > div:last-child {
  grid-column: 1 / -1;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  border-right: 0;
  border-bottom: 0;
}

.position-grid strong {
  font-size: 17px;
  line-height: 1.2;
}

.position-grid small {
  overflow-wrap: anywhere;
}

.model-panel p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.weight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.weight-pill {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #27323d;
  font-size: 12px;
  font-weight: 750;
}

.weight-pill > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.weight-pill .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--teal-deep);
}

.weight-pill strong {
  color: var(--teal-deep);
}

.weight-context {
  grid-column: 1 / -1;
  background: #f5f9fc;
  border-color: #c9d9e6;
}

.weight-context strong {
  color: #365f68;
  white-space: nowrap;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  grid-template-areas:
    "chart detail"
    "table detail";
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.chart-panel {
  grid-area: chart;
}

.table-panel {
  grid-area: table;
}

.detail-panel {
  grid-area: detail;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.panel-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.panel-heading h2,
.method-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-heading h2 .ui-icon,
.method-heading h2 .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--teal-deep);
}

.icon-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 800;
}

.result-count {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.icon-button:hover,
.ghost-button:hover {
  background: var(--paper);
  border-color: #b7c4cb;
}

.ghost-button {
  color: var(--ink);
}

.chart-canvas {
  width: 100%;
  height: 420px;
}

.table-wrap {
  max-height: 380px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8f9;
  color: #33404b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover,
tbody tr.active {
  background: rgba(91, 43, 116, 0.08);
}

tbody tr {
  cursor: pointer;
}

tbody tr:focus-within {
  background: rgba(91, 43, 116, 0.1);
  outline: 2px solid rgba(91, 43, 116, 0.28);
  outline-offset: -2px;
}

.lender-row-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-weight: 800;
  text-align: left;
}

.lender-row-button:hover {
  color: var(--aubergine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.score-cell {
  font-weight: 850;
  color: var(--teal-deep);
}

.score-band-marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 7px;
  background: #8f9aa2;
  border-radius: 50%;
}

.score-band-marker.band-leading {
  background: var(--teal);
}

.score-band-marker.band-established {
  background: #477a9c;
}

.score-band-marker.band-developing {
  background: var(--amber);
}

.score-band-marker.band-limited {
  background: #8f5a62;
}

.gap-cell {
  color: var(--muted);
  white-space: nowrap;
}

.leader-status {
  color: var(--teal-deep);
  font-weight: 850;
}

.type-chip {
  display: inline-block;
  padding: 4px 8px;
  color: #33404b;
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}

.detail-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.detail-tab {
  position: relative;
  min-height: 44px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 800;
}

.detail-tab,
.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.detail-tab .ui-icon,
.view-tab .ui-icon {
  width: 17px;
  height: 17px;
}

.detail-tab.active {
  color: var(--aubergine);
}

.detail-tab.active::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  content: "";
  background: var(--aubergine);
}

.detail-body {
  padding: 16px;
}

.evidence-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.evidence-confidence,
.iwc-status,
.source-type,
.review-heading > span {
  border-radius: 5px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.evidence-confidence {
  padding: 6px 8px;
  color: #145c42;
  background: #edf8f2;
  border: 1px solid #b8dbc8;
}

.confidence-medium {
  color: #735100;
  background: #fff8e7;
  border-color: #e6cb87;
}

.iwc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--teal-deep);
  background: #f3f8f8;
  border: 1px solid #c9dedd;
  text-decoration: none;
}

.iwc-status:hover {
  border-color: rgba(0, 127, 122, 0.5);
  background: #e9f4f3;
}

.iwc-status .ui-icon {
  width: 13px;
  height: 13px;
}

.evidence-confidence-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-minihead {
  margin: 0 0 12px;
  font-size: 15px;
}

.detail-callout,
.score-note {
  margin-top: 14px;
  padding: 12px;
  color: #303b45;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.45;
}

.detail-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-callout > .ui-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--teal-deep);
}

.detail-callout > div {
  min-width: 0;
}

.caveat-callout {
  background: #fffaf0;
  border-color: #e7c985;
}

.caveat-callout > .ui-icon {
  color: var(--amber);
}

.sentiment-callout {
  background: #f5f9fc;
  border-color: #c9d9e6;
}

.detail-callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.score-note {
  margin: -2px 0 4px 150px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.evidence-list,
.source-list,
.reason-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li,
.evidence-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  color: #27323d;
  font-size: 14px;
  line-height: 1.45;
}

.reason-list span,
.evidence-list span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.evidence-subhead {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip a {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.proof-strip a:last-child {
  border-right: 0;
}

.proof-strip a:hover {
  background: #f4f9f8;
}

.proof-strip strong {
  color: var(--aubergine);
  font-size: 22px;
  line-height: 1.1;
}

.proof-strip span {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.proof-strip small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review-heading .detail-minihead {
  margin-bottom: 0;
}

.review-heading > span {
  padding: 4px 6px;
  color: #654b00;
  background: #fff8e7;
  border: 1px solid #e6cb87;
}

.review-list {
  display: grid;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.review-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 62px 100px;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 8px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.review-row:hover {
  background: #f4f9f8;
}

.review-row > span,
.review-row > small {
  font-size: 11px;
}

.review-platform {
  font-weight: 850;
}

.review-row > strong {
  color: var(--teal-deep);
  font-size: 17px;
}

.review-row > strong small {
  color: var(--muted);
  font-size: 10px;
}

.review-row > small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.35;
}

.review-row > .review-change {
  margin-top: -4px;
  font-weight: 750;
}

.review-change.rating-up {
  color: #176348;
}

.review-change.rating-down {
  color: #963f46;
}

.review-change.sample-only {
  color: #365f68;
}

.review-change.unchanged {
  color: #687580;
}

.score-breakdown {
  display: grid;
  gap: 10px;
}

.score-line {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 9px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
}

.source-list a {
  display: block;
  padding: 10px 12px;
  color: var(--teal-deep);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  font-size: 13px;
  font-weight: 750;
}

.source-link-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.source-link-label .ui-icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.source-list a:hover {
  border-color: rgba(0, 127, 122, 0.45);
  background: rgba(0, 127, 122, 0.05);
}

.source-list small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 600;
}

.source-type {
  padding: 2px 5px;
  color: #425260;
  background: #edf2f4;
  border: 1px solid #d5dfe4;
}

.source-context-heading {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.source-reviewed {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.data-view-panel {
  margin-bottom: 14px;
}

.data-view-heading {
  border-bottom: 0;
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 0 16px 14px;
}

.view-tab {
  min-height: 44px;
  padding: 0 10px;
  color: #26313b;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 850;
}

.view-tab.active {
  color: #fff;
  background: var(--aubergine);
  border-color: var(--aubergine);
}

.view-tab.active .ui-icon {
  color: #fff;
}

.view-tab[aria-selected="false"]:hover {
  background: #eef3f4;
  border-color: #bdc8cf;
}

.view-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 14px;
}

.view-chip {
  min-width: 0;
  padding: 12px;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.view-chip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.view-chip strong {
  display: block;
  margin-top: 5px;
  color: #151c24;
  font-size: 16px;
  line-height: 1.25;
}

.view-chip small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.insight-chart {
  width: 100%;
  height: 520px;
  border-top: 1px solid var(--line);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 14px;
  margin-bottom: 14px;
}

.readout-box {
  margin: 16px;
  padding: 16px;
  color: #17212a;
  background: #f8fbfb;
  border: 1px solid rgba(0, 127, 122, 0.32);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.55;
}

.readout-box strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.35;
}

.dimension-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.dimension-card {
  min-width: 0;
  padding: 15px 14px;
  border-right: 1px solid var(--line);
}

.dimension-card:last-child {
  border-right: 0;
}

.dimension-card span {
  display: block;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.dimension-card strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
  line-height: 1;
}

.dimension-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.dimension-context {
  background: #f5f9fc;
}

.dimension-context small {
  color: #365f68;
  font-weight: 850;
}

.compact-sort {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.compact-sort select {
  min-height: 34px;
  font-size: 13px;
}

.recommendation-list {
  display: grid;
}

.recommendation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 84px 84px;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.recommendation:last-child {
  border-bottom: 0;
}

.recommendation:first-child {
  background: rgba(0, 127, 120, 0.045);
}

.recommendation:first-child .priority-badge {
  background: var(--teal);
}

.priority-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--aubergine);
  border-radius: 8px;
  font-weight: 900;
}

.recommendation h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.25;
}

.recommendation-copy {
  min-width: 0;
}

.recommendation p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.recommendation-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}

.recommendation-plan > div {
  min-width: 0;
  padding: 8px 9px;
  background: #f8fbfb;
  border-left: 3px solid #a9c9c6;
}

.recommendation-plan span,
.recommendation-plan strong {
  display: block;
}

.recommendation-plan span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.recommendation-plan strong {
  color: #27323d;
  font-size: 11px;
  line-height: 1.4;
}

.index-effect {
  display: block;
  margin-top: 4px;
  color: #687580;
  font-size: 11px;
}

.dot-meter {
  display: grid;
  gap: 5px;
  align-content: start;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #cbd3d9;
  border-radius: 50%;
}

.dot.on.impact {
  background: var(--teal);
}

.dot.on.effort {
  background: var(--amber);
}

.evidence-section {
  margin-top: 14px;
}

.caveat-panel {
  padding: 20px;
}

.method-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.refresh-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(4, minmax(105px, 0.72fr));
  margin-bottom: 18px;
  background: #f7faf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.refresh-summary > div {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.refresh-summary > div:last-of-type {
  border-right: 0;
}

.refresh-summary strong {
  color: var(--teal-deep);
  font-size: 18px;
}

.refresh-summary span {
  color: #46545f;
  font-size: 11px;
  line-height: 1.35;
}

.refresh-summary-intro strong {
  color: var(--ink);
  font-size: 13px;
}

.refresh-summary-intro > span {
  color: var(--aubergine);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.refresh-summary > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 12px;
  color: #46545f;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.45;
}

.policy-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.policy-stat-strip a {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.policy-stat-strip a:last-child {
  border-right: 0;
}

.policy-stat-strip a:hover {
  background: #f4f9f8;
}

.policy-stat-strip strong {
  color: var(--aubergine);
  font-size: 22px;
}

.policy-stat-strip span {
  color: #35424d;
  font-size: 12px;
  line-height: 1.4;
}

.method-heading h2 {
  margin-bottom: 5px;
  font-size: 20px;
}

.method-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.method-date {
  padding: 7px 9px;
  color: var(--teal-deep);
  background: #f3f8f8;
  border: 1px solid #c9dedd;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.method-grid p {
  color: #303b45;
  font-size: 13px;
  line-height: 1.5;
}

.method-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.method-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.method-block p {
  margin: 0 0 9px;
  color: #303b45;
  font-size: 13px;
  line-height: 1.5;
}

.worked-context {
  padding: 8px 9px;
  background: #f5f9fc;
  border: 1px solid #c9d9e6;
}

.governance-block {
  grid-column: 1 / -1;
}

.governance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 12px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.governance-list > div {
  min-width: 0;
  padding: 10px 11px;
  background: var(--paper);
}

.governance-list dt {
  margin-bottom: 4px;
  color: var(--aubergine);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.governance-list dd {
  margin: 0;
  color: #35424d;
  font-size: 12px;
  line-height: 1.45;
}

.governance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.governance-actions .ghost-button {
  min-height: 42px;
  text-decoration: none;
}

.rubric-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.rubric-list div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
  background: var(--paper);
  font-size: 12px;
}

.rubric-list strong {
  color: var(--teal-deep);
}

.rubric-list span {
  color: #35424d;
}

.band-rule {
  margin-top: 10px !important;
  padding: 9px 10px;
  background: #f5f9fc;
  border-left: 3px solid #477a9c;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 3.5vw, 52px);
  color: #c4d0d8;
  background: var(--navy);
  font-size: 12px;
}

.app-footer a {
  color: #8fe0d7;
  font-weight: 800;
}

.mobile-section-nav {
  display: none;
}

.noscript-panel {
  max-width: 880px;
  margin: 24px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.noscript-panel h1 {
  margin-bottom: 14px;
  font-size: 30px;
}

.noscript-panel p {
  margin-top: 10px;
  line-height: 1.55;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
}

.data-error-panel {
  max-width: 760px;
  margin: 40px auto;
  padding: 24px;
  color: #6f2525;
  background: #fff7f7;
  border: 1px solid #e2b8b8;
  border-radius: var(--radius);
}

.data-error-panel h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.data-error-panel p {
  margin: 0;
  line-height: 1.55;
}

.info-button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin: -4px 0 -4px 3px;
  padding: 0;
  vertical-align: middle;
  place-items: center;
  color: var(--teal-deep);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.info-button .ui-icon {
  width: 15px;
  height: 15px;
}

.info-button:hover,
.info-button:focus-visible,
.info-button[aria-expanded="true"] {
  color: #fff;
  background: var(--teal-deep);
  outline: 0;
}

.info-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 127, 120, 0.24);
}

.info-popover {
  position: fixed;
  z-index: 100;
  width: min(340px, calc(100vw - 24px));
  max-height: min(360px, calc(100vh - 24px));
  overflow: auto;
  padding: 15px 42px 15px 16px;
  color: #f4f8fa;
  background: #12222e;
  border: 1px solid #38505f;
  border-radius: 7px;
  box-shadow: 0 16px 40px rgba(7, 19, 31, 0.28);
}

.info-popover[hidden] {
  display: none;
}

.info-popover[data-pinned] {
  border-color: #78cfc7;
}

.info-popover strong {
  display: block;
  margin-bottom: 5px;
  padding-right: 2px;
  font-size: 13px;
  line-height: 1.35;
}

.info-popover p {
  margin: 0;
  color: #d6e1e7;
  font-size: 12px;
  line-height: 1.5;
}

.info-popover-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 850;
}

.info-popover-close:hover,
.info-popover-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: 2px solid #78cfc7;
  outline-offset: -2px;
}

.evidence-coverage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.evidence-coverage > div {
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.evidence-coverage > div:nth-child(3) {
  border-right: 0;
}

.evidence-coverage strong,
.evidence-coverage span {
  display: block;
}

.evidence-coverage strong {
  margin-bottom: 3px;
  color: var(--aubergine);
  font-size: 21px;
  line-height: 1;
}

.evidence-coverage span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.evidence-coverage p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px 10px;
  color: #43515d;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.source-note-stack {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.source-note-stack .detail-callout {
  margin: 0;
}

.source-conflict-callout {
  background: #fffaf0;
  border-color: #e7c985;
}

.source-conflict-callout > .ui-icon {
  color: var(--amber);
}

.source-conflict-callout p {
  margin: 0;
}

.source-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 8px;
}

.source-note-links a,
.criterion-sources a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 800;
}

.source-note-links .ui-icon,
.criterion-sources .ui-icon {
  width: 12px;
  height: 12px;
}

.calculation-summary {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  color: #fff;
  background: var(--navy);
}

.calculation-summary > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 7px;
}

.calculation-summary span,
.calculation-summary small {
  color: #b9c8d0;
  font-size: 10px;
  font-weight: 800;
}

.calculation-summary span {
  grid-column: 1 / -1;
  text-transform: uppercase;
}

.calculation-summary strong {
  font-size: 32px;
  line-height: 1;
}

.calculation-summary p {
  margin: 0;
  color: #d5e0e5;
  font-size: 12px;
  line-height: 1.5;
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.contribution-item {
  min-width: 0;
  padding: 11px 10px;
  border-right: 1px solid var(--line);
}

.contribution-item:last-child {
  border-right: 0;
}

.contribution-item > span,
.contribution-item > strong,
.contribution-item > b {
  display: block;
}

.contribution-item > span {
  min-height: 31px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
}

.contribution-item > strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 17px;
}

.contribution-item > strong small {
  color: var(--muted);
  font-size: 10px;
}

.contribution-item > b {
  margin-top: 3px;
  color: var(--teal-deep);
  font-size: 11px;
}

.contribution-context {
  background: #f5f9fc;
}

.contribution-context > b {
  color: #365f68;
}

.workings-stack {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.workings-dimension {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.workings-dimension > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.workings-dimension > header h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.workings-dimension > header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.workings-dimension > header > strong {
  color: var(--aubergine);
  font-size: 25px;
  line-height: 1;
}

.workings-dimension > header > strong small {
  color: var(--muted);
  font-size: 10px;
}

.criterion-list {
  display: grid;
}

.criterion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px 58px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px 12px 17px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid #8f9aa2;
}

.criterion-row:last-child {
  border-bottom: 0;
}

.criterion-row.level-1 {
  border-left-color: var(--amber);
}

.criterion-row.level-2 {
  border-left-color: #477a9c;
}

.criterion-row.level-3 {
  border-left-color: var(--teal);
}

.criterion-row.level-4 {
  border-left-color: var(--green);
}

.criterion-copy {
  min-width: 0;
}

.criterion-copy h4 {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.35;
}

.criterion-copy p {
  margin: 0;
  color: #3f4c57;
  font-size: 11px;
  line-height: 1.45;
}

.criterion-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-top: 5px;
}

.criterion-no-source {
  color: #7a4c00;
  font-size: 10px;
  font-weight: 800;
}

.evidence-level {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  color: #4c5660;
  background: #f1f3f4;
  border: 1px solid #d4dade;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.evidence-level small {
  color: var(--muted);
  font-size: 9px;
}

.level-1 .evidence-level {
  color: #725000;
  background: #fff8e7;
  border-color: #e6cb87;
}

.level-2 .evidence-level {
  color: #285a77;
  background: #f1f7fb;
  border-color: #bfd3e0;
}

.level-3 .evidence-level {
  color: var(--teal-deep);
  background: #edf7f6;
  border-color: #b8d9d6;
}

.level-4 .evidence-level {
  color: #145c42;
  background: #edf8f2;
  border-color: #b8dbc8;
}

.criterion-points {
  color: var(--ink);
  font-size: 19px;
  text-align: right;
}

.criterion-points small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.sentiment-formula {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sentiment-formula > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  color: #3f4c57;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.5;
}

.sentiment-formula a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-width: 0;
  padding: 12px 14px;
  color: var(--ink);
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.sentiment-formula a:last-child {
  border-right: 0;
}

.sentiment-formula a:hover {
  background: #f4f9f8;
}

.sentiment-formula a span {
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 850;
}

.sentiment-formula a strong {
  font-size: 15px;
}

.sentiment-formula a small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.clarity-callout {
  margin: 0 16px 16px;
}

.recommendation-dimension {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.method-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-process > div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.method-process > div:last-child {
  border-right: 0;
}

.method-process > div > span {
  display: grid;
  width: 25px;
  height: 25px;
  margin-bottom: 8px;
  place-items: center;
  color: #fff;
  background: var(--teal-deep);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.method-process strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}

.method-process p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.common-checks {
  margin-top: 20px;
}

.common-checks-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 10px;
}

.common-checks-heading h3,
.common-checks-heading p {
  margin: 0;
}

.common-checks-heading h3 {
  font-size: 15px;
}

.common-checks-heading p {
  max-width: 520px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.common-checks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
}

.common-checks-grid section {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
}

.common-checks-grid section:last-child {
  border-right: 0;
}

.common-checks-grid h4 {
  margin: 0 0 8px;
  color: var(--aubergine);
  font-size: 12px;
}

.common-checks-grid ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.common-checks-grid li {
  color: #3a4650;
  font-size: 11px;
  line-height: 1.35;
}

.worked-equation {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.worked-equation span {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto;
  gap: 10px;
  padding: 7px 9px;
  color: #3b4852;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.worked-equation span:last-child {
  border-bottom: 0;
}

.worked-equation b {
  color: var(--ink);
}

.worked-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}

.worked-total strong {
  color: var(--teal-deep);
}

@media (max-width: 1320px) {
  .app-header {
    grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1fr);
  }

  .header-utilities {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .snapshot-meta:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .control-strip {
    grid-template-columns: minmax(420px, 1fr) 240px minmax(240px, 0.8fr) auto;
  }

  .method-process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-process > div:nth-child(3) {
    border-right: 0;
  }

  .method-process > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 1180px) {
  .control-strip,
  .hero-grid,
  .workbench-grid,
  .lower-grid,
  .method-grid,
  .method-detail-grid {
    grid-template-columns: 1fr;
  }

  .control-strip {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  }

  .lens-group,
  .search-field {
    grid-column: 1 / -1;
  }

  .workbench-grid {
    grid-template-areas:
      "chart"
      "detail"
      "table";
  }

  .dimension-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-tabs,
  .view-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .policy-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refresh-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refresh-summary-intro {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .refresh-summary > div:nth-of-type(3),
  .refresh-summary > div:nth-of-type(5) {
    border-right: 0;
  }

  .policy-stat-strip a:nth-child(even) {
    border-right: 0;
  }

  .contribution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contribution-item:nth-child(3) {
    border-right: 0;
  }

  .contribution-item:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .common-checks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .common-checks-grid section:nth-child(2) {
    border-right: 0;
  }

  .common-checks-grid section:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .control-strip {
    grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1fr) auto;
  }

  .lens-group {
    grid-column: 1 / -1;
  }

  .search-field {
    grid-column: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  }

  .model-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .app-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 10px 14px;
  }

  .brand-lockup {
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-title span:first-child {
    font-size: 13px;
  }

  .brand-title span:last-child {
    font-size: 12px;
  }

  .header-note {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 0;
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
  }

  .header-note > .ui-icon {
    display: none;
  }

  .header-utilities {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    width: auto;
    gap: 7px;
    padding-top: 0;
    border-top: 0;
  }

  .snapshot-meta {
    display: none;
  }

  .utility-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  #printBtn {
    display: none;
  }

  .utility-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .utility-button .ui-icon {
    width: 18px;
    height: 18px;
  }

  .dashboard-shell {
    padding: 14px 10px 26px;
  }

  body[data-mobile-view] .dashboard-shell > #controls,
  body[data-mobile-view] .dashboard-shell > .hero-grid,
  body[data-mobile-view] .dashboard-shell > #comparison,
  body[data-mobile-view] .dashboard-shell > #data-views,
  body[data-mobile-view] .dashboard-shell > #actions,
  body[data-mobile-view] .dashboard-shell > #method,
  body[data-mobile-view] .app-footer {
    display: none;
  }

  body[data-mobile-view="controls"] .dashboard-shell > #controls,
  body[data-mobile-view="controls"] .dashboard-shell > .hero-grid,
  body[data-mobile-view="comparison"] .dashboard-shell > #comparison,
  body[data-mobile-view="lender-details"] .dashboard-shell > #comparison,
  body[data-mobile-view="actions"] .dashboard-shell > #actions {
    display: grid;
  }

  body[data-mobile-view="data-views"] .dashboard-shell > #data-views {
    display: grid;
  }

  body[data-mobile-view="method"] .dashboard-shell > #method {
    display: block;
  }

  body[data-mobile-view="comparison"] #lender-details {
    display: none;
  }

  body[data-mobile-view="lender-details"] #comparison {
    grid-template-areas: "detail";
  }

  body[data-mobile-view="lender-details"] #comparison > .chart-panel,
  body[data-mobile-view="lender-details"] #comparison > .table-panel {
    display: none;
  }

  #controls,
  #comparison,
  #lender-details,
  #data-views,
  #actions {
    scroll-margin-top: 12px;
  }

  .control-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lens-group,
  .search-field {
    grid-column: auto;
  }

  .reset-button {
    width: auto;
    min-height: 44px;
    margin-top: 0;
    justify-self: start;
  }

  #resetFiltersBtn:disabled,
  #resetSelectionBtn:disabled {
    display: none;
  }

  .summary-panel {
    padding: 16px;
  }

  .selected-title h2 {
    font-size: 28px;
  }

  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .segmented button {
    min-width: 0;
    min-height: 44px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .segmented button:nth-child(even) {
    border-right: 0;
  }

  .segmented button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .selected-heading {
    gap: 10px;
  }

  .lender-logo-large {
    width: 72px;
    height: 48px;
  }

  .position-grid strong {
    font-size: 15px;
  }

  .metric-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-block,
  .metric-block:last-child {
    min-width: 0;
    padding: 12px 8px 2px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .metric-block:first-child {
    padding-left: 0;
  }

  .metric-block:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .metric-block strong {
    font-size: clamp(26px, 9vw, 36px);
  }

  .panel-heading,
  .recommendation {
    grid-template-columns: 1fr;
  }

  .recommendation {
    gap: 9px;
  }

  .recommendation-plan {
    grid-template-columns: 1fr;
  }

  .priority-badge {
    width: 32px;
    height: 32px;
  }

  .dot-meter {
    grid-template-columns: 105px auto;
    align-items: center;
  }

  .panel-heading {
    display: grid;
  }

  .panel-heading .icon-button,
  .panel-heading .ghost-button {
    width: auto;
    min-height: 44px;
    justify-self: start;
  }

  .result-count {
    justify-self: start;
  }

  .chart-canvas {
    height: 390px;
  }

  .workbench-grid {
    grid-template-areas:
      "chart"
      "detail"
      "table";
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
  }

  .lender-row-button {
    min-height: 44px;
  }

  .data-view-panel {
    display: grid;
  }

  .data-view-heading {
    grid-row: 1;
  }

  .view-tabs {
    display: grid;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0 10px 12px;
  }

  .view-tab {
    width: 100%;
    min-width: 0;
    padding: 0 6px;
  }

  .view-summary {
    grid-row: 4;
    grid-template-columns: 1fr;
    padding: 12px 10px;
  }

  .insight-chart {
    grid-row: 3;
    height: 430px;
  }

  .compact-sort select {
    min-height: 44px;
    font-size: 16px;
  }

  th,
  td {
    padding: 10px 9px;
    font-size: 12px;
  }

  .lender-logo-small {
    width: 42px;
  }

  th:nth-child(3),
  td:nth-child(3) {
    display: none;
  }

  .detail-tabs {
    overflow-x: auto;
    padding: 0 10px;
  }

  .detail-tab {
    flex: 0 0 auto;
  }

  .icon-button,
  .ghost-button {
    min-height: 44px;
  }

  .score-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .score-note {
    margin-left: 0;
  }

  .calculation-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .calculation-summary > div {
    width: max-content;
  }

  .contribution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contribution-item,
  .contribution-item:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .contribution-item:nth-child(even) {
    border-right: 0;
  }

  .contribution-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .contribution-item:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .workings-stack {
    padding: 10px;
  }

  .workings-dimension > header {
    align-items: start;
    padding: 11px 12px;
  }

  .criterion-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 11px 9px 11px 12px;
  }

  .criterion-copy {
    grid-column: 1 / -1;
  }

  .criterion-sources {
    display: grid;
    justify-items: start;
  }

  .criterion-sources a {
    min-height: 32px;
  }

  .evidence-level {
    justify-self: start;
    min-width: 104px;
    padding-inline: 4px;
  }

  .criterion-points {
    font-size: 17px;
  }

  .sentiment-formula {
    grid-template-columns: 1fr;
  }

  .sentiment-formula a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sentiment-formula a:last-child {
    border-bottom: 0;
  }

  .clarity-callout {
    margin: 0 10px 10px;
  }

  .evidence-status-row {
    align-items: stretch;
  }

  .evidence-confidence,
  .iwc-status {
    width: 100%;
  }

  .proof-strip,
  .policy-stat-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip a,
  .policy-stat-strip a,
  .policy-stat-strip a:nth-child(even) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip a:last-child,
  .policy-stat-strip a:last-child {
    border-bottom: 0;
  }

  .review-row {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .review-row > span:nth-of-type(2) {
    grid-column: 1 / -1;
  }

  .dimension-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .dimension-card:nth-child(2n) {
    border-right: 0;
  }

  .dimension-card:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .method-heading,
  .app-footer {
    display: grid;
  }

  .governance-list {
    grid-template-columns: 1fr;
  }

  .governance-actions {
    display: grid;
  }

  .governance-actions .ghost-button {
    width: 100%;
    min-height: 44px;
  }

  .method-process,
  .common-checks-grid {
    grid-template-columns: 1fr;
  }

  .method-process > div,
  .method-process > div:nth-child(3),
  .common-checks-grid section,
  .common-checks-grid section:nth-child(2) {
    border-right: 0;
  }

  .method-process > div + div,
  .common-checks-grid section + section {
    border-top: 1px solid var(--line);
  }

  .common-checks-heading {
    display: grid;
    gap: 5px;
  }

  .common-checks-heading p {
    text-align: left;
  }

  .info-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin: -14px -8px;
  }

  .weight-grid {
    grid-template-columns: 1fr;
  }

  .info-popover-close {
    width: 44px;
    height: 44px;
    top: 2px;
    right: 2px;
  }

  .info-popover {
    max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
  }

  .app-footer {
    justify-items: start;
  }

  .mobile-section-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(16, 24, 32, 0.1);
  }

  .mobile-section-nav a {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 3px 1px;
    color: #475560;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
  }

  .mobile-section-nav a::before {
    position: absolute;
    top: 0;
    right: 12px;
    left: 12px;
    height: 3px;
    content: "";
    background: transparent;
    border-radius: 0 0 3px 3px;
  }

  .mobile-section-nav a.active {
    color: var(--teal-deep);
    background: #eaf5f4;
  }

  .mobile-section-nav a.active::before {
    background: var(--teal);
  }

  .mobile-section-nav .ui-icon {
    width: 19px;
    height: 19px;
  }

  .method-date {
    justify-self: start;
    white-space: normal;
  }

  .panel-kicker,
  .control-label,
  .field-label,
  .result-count,
  .evidence-confidence,
  .iwc-status,
  .source-type,
  .review-heading > span,
  .method-process strong,
  .method-process p,
  .common-checks-grid h4,
  .common-checks-grid li,
  .criterion-copy h4,
  .criterion-copy p,
  .criterion-no-source,
  .evidence-level,
  .recommendation-dimension,
  .governance-list dt,
  .governance-list dd {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #73808a;
    --muted: #3e4851;
  }

  .summary-panel,
  .panel,
  .field input,
  .field select,
  .segmented,
  .view-tab {
    border-width: 2px;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  body {
    background: #fff;
  }

  .app-header {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .brand-title span:last-child,
  .header-note,
  .snapshot-meta span,
  .snapshot-meta strong {
    color: #000;
  }

  .header-utilities,
  .control-strip,
  .icon-button,
  .ghost-button,
  .info-button,
  .info-popover,
  .compact-sort,
  .view-tabs,
  .mobile-section-nav,
  .app-footer,
  .skip-link {
    display: none !important;
  }

  .dashboard-shell {
    width: 100%;
    padding: 12px 0 0;
  }

  .summary-panel,
  .panel {
    break-inside: avoid;
    box-shadow: none;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
  }

  .insight-chart,
  .chart-canvas {
    height: 320px;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* The same focused sections on every screen; detailed evidence stays on demand. */
.minimal-dashboard {
  --ink: #202522;
  --muted: #66706a;
  --line: #dfe4e0;
  --paper: #f7f9f7;
  --teal: #16735b;
  --teal-deep: #135c49;
  --shadow: none;
  background: #fff;
  padding-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
}
.minimal-dashboard *, .minimal-dashboard *::before, .minimal-dashboard *::after { letter-spacing: 0; }
.minimal-dashboard [hidden] { display: none !important; }
.minimal-dashboard .app-header {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1248px;
  margin: 0 auto;
  padding: 24px 32px 18px;
  background: #fff;
  color: var(--ink);
  border: 0;
  box-shadow: none;
}
.minimal-dashboard .brand-lockup { gap: 12px; }
.minimal-dashboard .brand-mark {
  width: 38px; height: 38px; border: 0; border-radius: 6px;
  background: var(--teal-deep); color: #fff; box-shadow: none; font-size: 21px;
}
.minimal-dashboard .brand-title { font-size: 17px; font-weight: 650; text-transform: none; line-height: 1.35; }
.minimal-dashboard .brand-title span { color: var(--ink); text-transform: none; }
.minimal-dashboard .brand-title span:last-child { color: var(--muted); font-size: 12px; font-weight: 450; }
.minimal-dashboard .header-note { display: none; }
.minimal-dashboard .header-utilities {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0; border: 0; width: auto; margin: 0;
}
.minimal-dashboard .snapshot-meta { padding: 0 16px 0 0; border: 0; }
.minimal-dashboard .snapshot-meta span { color: var(--muted); font-size: 11px; font-weight: 450; text-transform: none; }
.minimal-dashboard .snapshot-meta strong { color: var(--ink); font-size: 12px; font-weight: 550; }
.minimal-dashboard .source-status { display: none; }
.minimal-dashboard .utility-button {
  min-width: 40px; min-height: 40px; padding: 8px; border: 0; color: var(--muted); background: none; border-radius: 4px;
}
.minimal-dashboard .utility-button:hover { background: var(--paper); color: var(--ink); }
.minimal-dashboard #shareBtn .utility-label, .minimal-dashboard #printBtn .utility-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.minimal-dashboard .section-nav {
  position: sticky; top: 0; z-index: 30; display: flex; gap: 28px;
  max-width: 1184px; margin: 0 auto; padding: 0;
  background: #fff; border-bottom: 1px solid var(--line);
}
.minimal-dashboard .section-nav a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 50px;
  padding: 10px 1px; color: var(--muted); border-bottom: 2px solid transparent;
  text-decoration: none; font-size: 13px; font-weight: 550; white-space: nowrap;
}
.minimal-dashboard .section-nav a:hover { color: var(--ink); }
.minimal-dashboard .section-nav a.active { color: var(--teal-deep); border-bottom-color: var(--teal); }
.minimal-dashboard .section-nav .ui-icon { width: 17px; height: 17px; }
.minimal-dashboard .dashboard-shell { width: 100%; max-width: 1248px; margin: 0 auto; padding: 28px 32px 20px; display: block; }
.minimal-dashboard .view-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 0 0 24px; }
.minimal-dashboard .view-heading h2 { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 600; }
.minimal-dashboard .view-heading p { margin: 5px 0 0; font-size: 14px; color: var(--muted); }
.minimal-dashboard .view-heading p.data-date { font-size: 11px; margin-top: 8px; }
.minimal-dashboard .ranking-display { display: flex; flex: 0 0 auto; gap: 3px; }
.minimal-dashboard .ranking-display button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 1px solid transparent; color: var(--muted); border-radius: 4px; }
.minimal-dashboard .ranking-display button[aria-pressed="true"] { background: #edf4ef; color: var(--teal-deep); border-color: #d5e5dc; }
.minimal-dashboard .control-strip { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(180px, 230px) minmax(160px, 200px) 40px; gap: 12px; align-items: end; padding: 0; margin: 0 0 22px; background: none; border: 0; }
.minimal-dashboard .field, .minimal-dashboard .search-field { min-width: 0; grid-column: auto; gap: 6px; }
.minimal-dashboard .field-label { font-size: 12px; text-transform: none; font-weight: 500; color: var(--muted); }
.minimal-dashboard .field input, .minimal-dashboard .field select { min-width: 0; width: 100%; height: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font-size: 14px; box-shadow: none; }
.minimal-dashboard .reset-button { width: 40px; min-height: 42px; min-width: 0; margin: 0; padding: 8px; border: 0; background: none; color: var(--muted); }
.minimal-dashboard #resetFiltersBtn:disabled { display: flex; opacity: .3; }
.minimal-dashboard .control-explainer { display: none; grid-column: 1 / -1; margin: 0; }
.minimal-dashboard[data-lens="sentiment"] .control-explainer { display: block; border-left: 2px solid var(--amber); padding-left: 10px; font-size: 12px; }
.minimal-dashboard .lender-switcher { display: none; max-width: none; margin: 0; }
.minimal-dashboard .hero-grid { display: block; margin: 0 0 26px; }
.minimal-dashboard .summary-panel, .minimal-dashboard .panel { background: none; border: 0; border-radius: 0; box-shadow: none; }
.minimal-dashboard .selected-panel {
  position: relative; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(360px, 1.1fr); align-items: center; column-gap: 24px;
  padding: 18px 0; border-block: 1px solid var(--line); min-height: 0;
}
.minimal-dashboard .selected-panel::before { display: none; }
.minimal-dashboard .panel-kicker { grid-column: 1; margin: 0 0 5px; text-transform: none; font-size: 11px; color: var(--muted); font-weight: 500; }
.minimal-dashboard .panel-kicker .ui-icon { display: none; }
.minimal-dashboard .selected-heading { grid-column: 1; margin: 0; gap: 12px; }
.minimal-dashboard .selected-title h2 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.minimal-dashboard .selected-type { font-size: 12px; margin-top: 3px; color: var(--muted); }
.minimal-dashboard .lender-logo { border: 0; border-radius: 0; padding: 4px; }
.minimal-dashboard .lender-logo-large { width: 56px; height: 44px; --logo-art-max-width: 50px; --logo-art-max-height: 28px; }
.minimal-dashboard .metric-row { grid-column: 2; grid-row: 1 / 3; border: 0; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.minimal-dashboard .metric-block { border: 0; padding: 0; }
.minimal-dashboard .metric-block > span { font-size: 12px; min-height: 28px; color: var(--muted); }
.minimal-dashboard .metric-block > span { display: flex; align-items: center; }
.minimal-dashboard .metric-block > strong { font-size: 28px; font-weight: 550; line-height: 1.15; color: var(--ink); }
.minimal-dashboard .metric-block > small { font-size: 11px; margin-top: 5px; color: var(--muted); }
.minimal-dashboard .workbench-grid { display: block; margin: 0; }
.minimal-dashboard .chart-panel, .minimal-dashboard .detail-panel, .minimal-dashboard .table-panel { grid-area: auto; }
.minimal-dashboard .panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 0 0 16px; border: 0; }
.minimal-dashboard .panel-heading h2 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.minimal-dashboard .panel-heading h2 > .ui-icon { display: none; }
.minimal-dashboard .panel-heading p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.minimal-dashboard .table-panel > .panel-heading h2 { display: none; }
.minimal-dashboard .result-count { color: var(--muted); padding: 0; background: none; border: 0; font-size: 12px; white-space: nowrap; }
.minimal-dashboard .table-wrap { max-height: none; overflow: visible; border: 0; }
.minimal-dashboard table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.minimal-dashboard thead { background: #f7f9f7; }
.minimal-dashboard th { position: static; text-transform: none; font-size: 11px; color: var(--muted); font-weight: 500; background: none; white-space: normal; }
.minimal-dashboard th, .minimal-dashboard td { padding: 8px 16px; border-bottom: 1px solid var(--line); }
.minimal-dashboard th:nth-child(1) { width: 64px; }
.minimal-dashboard th:nth-child(2) { width: 31%; }
.minimal-dashboard th:nth-child(3) { width: 23%; }
.minimal-dashboard th:nth-child(4) { width: 24%; }
.minimal-dashboard th:nth-child(5) { width: 100px; }
.minimal-dashboard tbody tr { background: #fff; cursor: pointer; }
.minimal-dashboard tbody tr.active { background: #f1f6f2; box-shadow: none; }
.minimal-dashboard tbody tr:hover { background: #f7f9f7; }
.minimal-dashboard tbody tr.active td:first-child { border-left: 0; color: var(--teal-deep); }
.minimal-dashboard td { font-size: 13px; height: 56px; }
.minimal-dashboard .lender-row-button { width: 100%; gap: 12px; min-height: 40px; font-size: 14px; font-weight: 550; text-align: left; }
.minimal-dashboard .lender-logo-small { width: 40px; height: 30px; flex: 0 0 40px; }
.minimal-dashboard .type-chip { padding: 0; background: none; border: 0; font-size: 12px; font-weight: 400; color: var(--muted); white-space: normal; }
.minimal-dashboard .score-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.minimal-dashboard .score-cell > strong { font-size: 14px; font-weight: 550; display: inline-block; min-width: 33px; text-align: right; }
.minimal-dashboard .score-track { display: inline-block; height: 5px; width: calc(100% - 48px); vertical-align: middle; margin-right: 12px; background: #ecf0ec; border-radius: 2px; overflow: hidden; }
.minimal-dashboard .score-track > span { display: block; height: 100%; background: #81aa93; border-radius: 2px; }
.minimal-dashboard tr.active .score-track > span { background: var(--teal); }
.minimal-dashboard .leader-status { color: var(--teal-deep); font-weight: 500; background: none; padding: 0; border: 0; }
.minimal-dashboard .gap-cell { font-size: 12px; color: var(--muted); }
.minimal-dashboard .detail-body { max-height: none; overflow: visible; padding: 20px 0 0; }
.minimal-dashboard .detail-tabs { padding: 0; border-bottom: 1px solid var(--line); gap: 24px; }
.minimal-dashboard .detail-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; min-height: 44px; padding: 8px 0; font-weight: 550; font-size: 13px; }
.minimal-dashboard .detail-tab.active { border-bottom-color: var(--teal); background: none; color: var(--teal-deep); }
.minimal-dashboard .detail-tab .ui-icon { display: none; }
.minimal-dashboard .evidence-confidence, .minimal-dashboard .iwc-status { width: auto; background: none; border: 0; padding: 0; font-size: 12px; font-weight: 500; }
.minimal-dashboard .evidence-status-row { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.minimal-dashboard .detail-minihead { font-size: 14px; font-weight: 600; margin-top: 22px; }
.minimal-dashboard .reason-list li { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; border-radius: 0; }
.minimal-dashboard .reason-list li > span { background: none; color: var(--muted); }
.minimal-dashboard .reason-list p { font-size: 14px; line-height: 1.7; }
.minimal-dashboard .proof-strip { border: 0; border-radius: 0; background: var(--paper); margin: 12px 0 24px; }
.minimal-dashboard .proof-strip a { background: none; padding: 18px; }
.minimal-dashboard .proof-strip strong { font-size: 24px; color: var(--ink); }
.minimal-dashboard .proof-strip small { font-size: 12px; }
.minimal-dashboard .detail-callout { border: 0; border-left: 2px solid #b9c6bd; background: var(--paper); border-radius: 0; padding: 12px 16px; margin: 18px 0; }
.minimal-dashboard .compact-disclosure { margin: 16px 0; border-block: 1px solid var(--line); }
.minimal-dashboard summary { cursor: pointer; min-height: 48px; padding: 13px 0; font-size: 14px; font-weight: 550; }
.minimal-dashboard summary::marker { color: var(--muted); }
.minimal-dashboard summary:hover { color: var(--teal-deep); }
.minimal-dashboard .compact-disclosure > summary > span { font-size: 12px; font-weight: 400; margin-left: 12px; color: var(--muted); }
.minimal-dashboard .review-context-note { font-size: 13px; color: var(--muted); }
.minimal-dashboard .programme-update { border-left: 2px solid var(--teal); padding: 10px 16px; background: #f3f7f3; font-size: 13px; line-height: 1.65; }
.minimal-dashboard .programme-update strong { font-weight: 600; }
.minimal-dashboard .view-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 18px; }
.minimal-dashboard .view-tab { width: auto; min-width: 0; min-height: 40px; padding: 8px 12px; font-size: 12px; border-radius: 4px; background: none; border: 1px solid var(--line); }
.minimal-dashboard .view-tab.active { background: #edf4ef; border-color: #bed2c6; color: var(--teal-deep); }
.minimal-dashboard .view-tab.active .ui-icon { color: var(--teal-deep); }
.minimal-dashboard .data-view-heading h2 { display: none; }
.minimal-dashboard .view-summary { display: flex; gap: 24px; padding: 16px 0; background: none; border: 0; }
.minimal-dashboard .view-chip { flex: 1; min-width: 0; border: 0; background: none; padding: 0; }
.minimal-dashboard .view-chip strong { font-size: 20px; }
.minimal-dashboard .insight-chart { height: 440px; min-height: 0; }
.minimal-dashboard .chart-canvas { height: 500px; }
.minimal-dashboard .lower-grid { display: flex; flex-direction: column; gap: 26px; }
.minimal-dashboard .readout-panel { order: 2; }
.minimal-dashboard .readout-disclosure { border-top: 1px solid var(--line); }
.minimal-dashboard .readout-box { border: 0; border-radius: 0; background: var(--paper); font-size: 14px; line-height: 1.8; }
.minimal-dashboard .recommendation { display: grid; grid-template-columns: 28px minmax(0, 1fr) 114px 114px; column-gap: 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 22px 0; }
.minimal-dashboard .priority-badge { width: 26px; height: 26px; font-size: 13px; font-weight: 500; background: var(--paper); color: var(--muted); border: 0; }
.minimal-dashboard .recommendation-dimension { font-size: 11px; text-transform: none; color: var(--muted); font-weight: 500; }
.minimal-dashboard .recommendation h3 { font-size: 16px; font-weight: 550; }
.minimal-dashboard .recommendation p { font-size: 13px; line-height: 1.65; }
.minimal-dashboard .action-disclosure summary { font-size: 12px; color: var(--teal-deep); padding: 9px 0; min-height: 40px; }
.minimal-dashboard .recommendation-plan { background: none; border: 0; padding: 12px 0; }
.minimal-dashboard .dot-meter { padding-top: 5px; font-size: 11px; }
.minimal-dashboard .method-heading { display: block; margin: 0 0 20px; }
.minimal-dashboard .method-heading h2 { font-size: 20px; font-weight: 600; }
.minimal-dashboard .method-heading p { font-size: 14px; margin-top: 6px; }
.minimal-dashboard .method-date { display: block; margin: 14px 0 0; padding: 0; background: none; border: 0; color: var(--muted); font-size: 12px; }
.minimal-dashboard .method-at-a-glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.minimal-dashboard .method-at-a-glance p { margin: 0; }
.minimal-dashboard .method-at-a-glance strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.minimal-dashboard .method-at-a-glance span { font-size: 13px; color: var(--muted); }
.minimal-dashboard .method-disclosure { border-bottom: 1px solid var(--line); padding: 0 0 4px; }
.minimal-dashboard .method-disclosure > summary { min-height: 58px; padding: 18px 0; }
.minimal-dashboard .method-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 10px 0 24px; }
.minimal-dashboard .method-block { border: 0; background: none; border-radius: 0; padding: 0; }
.minimal-dashboard .method-block h3 { font-size: 15px; font-weight: 600; }
.minimal-dashboard .method-block p { font-size: 13px; line-height: 1.7; }
.minimal-dashboard .method-grid { padding: 16px 0; background: none; border: 0; }
.minimal-dashboard #methodWeights { padding: 0 0 20px; }
.minimal-dashboard #modelIntro { font-size: 13px; color: var(--muted); }
.minimal-dashboard .weight-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.minimal-dashboard .weight-pill { border: 0; background: var(--paper); font-size: 12px; padding: 10px 12px; border-radius: 4px; gap: 10px; }
.minimal-dashboard .workings-stack { padding: 18px 0; }
.minimal-dashboard .workings-dimension { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.minimal-dashboard .workings-dimension > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.minimal-dashboard .workings-dimension > summary::after { content: "+"; color: var(--muted); font-size: 20px; font-weight: 400; }
.minimal-dashboard .workings-dimension[open] > summary::after { content: "\2212"; }
.minimal-dashboard .workings-dimension summary h3 { font-size: 15px; margin: 0; font-weight: 550; }
.minimal-dashboard .workings-dimension summary p { font-size: 12px; margin: 4px 0 0; color: var(--muted); font-weight: 400; }
.minimal-dashboard .workings-dimension summary > div { flex: 1; }
.minimal-dashboard .workings-dimension summary > strong { font-size: 20px; color: var(--teal-deep); }
.minimal-dashboard .workings-dimension summary small { font-size: 11px; font-weight: 400; padding-left: 3px; }
.minimal-dashboard .criterion-row { background: #fafbfa; }
.minimal-dashboard .calculation-summary { padding: 18px 0; border: 0; background: none; color: var(--ink); }
.minimal-dashboard .calculation-summary p, .minimal-dashboard .calculation-summary span, .minimal-dashboard .calculation-summary small { color: var(--muted); font-weight: 400; text-transform: none; }
.minimal-dashboard .calculation-summary > div { background: none; border: 0; padding: 0; }
.minimal-dashboard .contribution-grid { border-radius: 0; background: var(--paper); border: 0; }
.minimal-dashboard .app-footer { display: grid; gap: 5px; max-width: 1248px; margin: 20px auto 0; padding: 20px 32px 30px; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 11px; line-height: 1.65; }
.minimal-dashboard .info-button { margin: 0 0 0 4px; }
.minimal-dashboard :focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.minimal-dashboard #sectionTitle:focus:not(:focus-visible) { outline: none; }
.minimal-dashboard .copy-dialog { width: min(520px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.minimal-dashboard .copy-dialog::backdrop { background: rgba(20, 30, 24, .3); }
.minimal-dashboard .copy-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.minimal-dashboard .copy-dialog h2 { margin: 0; font-size: 18px; }
.minimal-dashboard .copy-dialog button { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); }
.minimal-dashboard .copy-dialog p { font-size: 13px; color: var(--muted); }
.minimal-dashboard .copy-dialog textarea { width: 100%; resize: vertical; padding: 12px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 4px; }

@media screen {
  .minimal-dashboard #comparison, .minimal-dashboard #data-views, .minimal-dashboard #actions, .minimal-dashboard #method { display: none; }
  .minimal-dashboard[data-section="controls"] #comparison, .minimal-dashboard[data-section="lender-details"] #comparison,
  .minimal-dashboard[data-section="data-views"] #data-views, .minimal-dashboard[data-section="actions"] #actions,
  .minimal-dashboard[data-section="method"] #method { display: block; }
  .minimal-dashboard[data-section="actions"] #actions { display: flex; }
  .minimal-dashboard[data-section="controls"] #lender-details { display: none; }
  .minimal-dashboard[data-section="controls"][data-ranking-display="table"] .chart-panel,
  .minimal-dashboard[data-section="controls"][data-ranking-display="chart"] .table-panel { display: none; }
  .minimal-dashboard[data-section="lender-details"] .table-panel, .minimal-dashboard[data-section="lender-details"] .chart-panel { display: none; }
  .minimal-dashboard:not([data-section="controls"]) .ranking-display, .minimal-dashboard:not([data-section="controls"]) .search-field { display: none; }
  .minimal-dashboard:not([data-section="controls"]) .type-field { display: none; }
  .minimal-dashboard:not([data-section="controls"]) .control-strip { grid-template-columns: minmax(200px, 340px) minmax(160px, 200px) 40px; }
  .minimal-dashboard:not([data-section="controls"]) .lender-switcher { display: grid; }
  .minimal-dashboard[data-section="method"] .hero-grid { display: none; }
}
@media (max-width: 1248px) {
  .minimal-dashboard .section-nav { margin-inline: 32px; }
}
@media (max-width: 760px) {
  .minimal-dashboard { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .minimal-dashboard .app-header { padding: 18px 20px 14px; gap: 12px; flex-wrap: nowrap; }
  .minimal-dashboard .brand-mark { width: 32px; height: 32px; font-size: 19px; }
  .minimal-dashboard .brand-title { font-size: 14px; }
  .minimal-dashboard .brand-title span:last-child { font-size: 11px; }
  .minimal-dashboard .brand-lockup { gap: 9px; }
  .minimal-dashboard .header-utilities { gap: 0; }
  .minimal-dashboard .snapshot-meta, .minimal-dashboard #methodLink, .minimal-dashboard #printBtn { display: none; }
  .minimal-dashboard .section-nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; margin: 0; border-top: 1px solid var(--line); border-bottom: 0; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); gap: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
  .minimal-dashboard .section-nav a { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-height: 54px; padding: 5px 0; font-size: 10px; border: 0; border-radius: 4px; }
  .minimal-dashboard .section-nav a.active { background: #f1f6f2; }
  .minimal-dashboard .section-nav .ui-icon { width: 20px; height: 20px; }
  .minimal-dashboard .dashboard-shell { padding: 20px 20px 0; }
  .minimal-dashboard .view-heading { margin-bottom: 22px; gap: 12px; }
  .minimal-dashboard .view-heading h2 { font-size: 23px; }
  .minimal-dashboard .view-heading p { font-size: 13px; max-width: 310px; }
  .minimal-dashboard .ranking-display button { width: 36px; height: 44px; }
  .minimal-dashboard .control-strip, .minimal-dashboard:not([data-section="controls"]) .control-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 12px 8px; margin-bottom: 18px; }
  .minimal-dashboard .search-field { grid-column: 1 / -1; }
  .minimal-dashboard .search-field .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .minimal-dashboard .field input, .minimal-dashboard .field select { font-size: 16px; height: 44px; min-height: 44px; padding: 8px; }
  .minimal-dashboard .reset-button { min-height: 44px; width: 32px; padding: 7px; }
  .minimal-dashboard .lender-switcher { max-width: none; }
  .minimal-dashboard .selected-panel { grid-template-columns: 1fr; row-gap: 0; padding: 15px 0 18px; }
  .minimal-dashboard .selected-title h2 { font-size: 21px; }
  .minimal-dashboard .selected-heading { gap: 8px; }
  .minimal-dashboard .selected-type { font-size: 11px; }
  .minimal-dashboard .lender-logo-large { width: 46px; --logo-art-max-width: 42px; }
  .minimal-dashboard .metric-row { grid-row: auto; grid-column: 1; margin-top: 14px; gap: 12px; }
  .minimal-dashboard .metric-block > strong { font-size: 26px; }
  .minimal-dashboard .metric-block > span { font-size: 11px; min-height: 24px; }
  .minimal-dashboard .metric-block > small { font-size: 10px; }
  .minimal-dashboard .selected-panel { grid-template-columns: minmax(0, 1fr) 172px; column-gap: 12px; padding-block: 14px; }
  .minimal-dashboard .selected-title h2 { font-size: 17px; }
  .minimal-dashboard .selected-type { display: none; }
  .minimal-dashboard .lender-logo-large { width: 30px; height: 32px; --logo-art-max-width: 28px; }
  .minimal-dashboard .metric-row { grid-column: 2; grid-row: 1 / 3; margin: 0; grid-template-columns: 42px 54px 1fr; gap: 8px; }
  .minimal-dashboard .metric-block > strong { font-size: 22px; }
  .minimal-dashboard .metric-block > span { font-size: 10px; min-height: 30px; }
  .minimal-dashboard .metric-block > small { display: none; }
  .minimal-dashboard .metric-block .info-button { width: 24px; min-width: 24px; height: 32px; flex-basis: 24px; margin-left: 0; }
  .minimal-dashboard .panel-heading { gap: 12px; }
  .minimal-dashboard .panel-heading h2 { font-size: 17px; }
  .minimal-dashboard .panel-heading p { font-size: 12px; }
  .minimal-dashboard .table-panel .panel-heading { align-items: center; }
  .minimal-dashboard .result-count { font-size: 11px; }
  .minimal-dashboard th:nth-child(1) { width: 36px; }
  .minimal-dashboard th:nth-child(2) { width: auto; }
  .minimal-dashboard th:nth-child(4) { width: 86px; }
  .minimal-dashboard th:nth-child(3), .minimal-dashboard td:nth-child(3), .minimal-dashboard th:nth-child(5), .minimal-dashboard td:nth-child(5) { display: none; }
  .minimal-dashboard th, .minimal-dashboard td { padding: 6px 4px; }
  .minimal-dashboard .lender-row-button { gap: 8px; font-size: 13px; min-height: 44px; }
  .minimal-dashboard .lender-logo-small { width: 34px; flex-basis: 34px; --logo-art-max-width: 30px; }
  .minimal-dashboard .score-track { width: 32px; margin-right: 8px; }
  .minimal-dashboard .detail-tabs { gap: 24px; }
  .minimal-dashboard .proof-strip { grid-template-columns: 1fr; }
  .minimal-dashboard .proof-strip a { padding: 14px; display: grid; grid-template-columns: 90px 1fr; gap: 3px 12px; }
  .minimal-dashboard .proof-strip a strong { grid-row: 1 / 3; align-self: center; font-size: 22px; }
  .minimal-dashboard .compact-disclosure > summary > span { display: block; margin: 3px 0 0 18px; }
  .minimal-dashboard .view-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .minimal-dashboard[data-section="data-views"] #data-views { display: grid; }
  .minimal-dashboard .view-tab { min-height: 44px; font-size: 12px; padding: 8px; }
  .minimal-dashboard .view-summary { flex-wrap: wrap; gap: 12px; padding: 18px 0; }
  .minimal-dashboard .view-chip { flex-basis: 45%; }
  .minimal-dashboard .view-chip strong { font-size: 17px; }
  .minimal-dashboard .view-chip small { font-size: 11px; }
  .minimal-dashboard .insight-chart { height: 420px; }
  .minimal-dashboard .chart-canvas { height: 480px; }
  .minimal-dashboard .recommendation { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
  .minimal-dashboard .recommendation-copy { grid-column: 2; }
  .minimal-dashboard .recommendation .dot-meter { grid-column: 2; display: grid; grid-template-columns: 110px auto; justify-content: start; padding: 0; }
  .minimal-dashboard .recommendation h3 { font-size: 15px; }
  .minimal-dashboard .compact-sort { flex: 0 0 95px; }
  .minimal-dashboard .compact-sort select { width: 95px; min-height: 44px; font-size: 16px; }
  .minimal-dashboard .method-at-a-glance { grid-template-columns: 1fr; gap: 20px; }
  .minimal-dashboard .method-detail-grid { grid-template-columns: 1fr; }
  .minimal-dashboard .method-heading h2 { font-size: 18px; }
  .minimal-dashboard .weight-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .minimal-dashboard .contribution-item:last-child { grid-column: 1 / -1; }
  .minimal-dashboard .info-button { width: 32px; min-width: 32px; height: 32px; flex-basis: 32px; margin: -4px 0; }
  .minimal-dashboard .workings-dimension summary p { display: none; }
  .minimal-dashboard .app-footer { padding: 18px 20px 24px; font-size: 10px; margin-top: 28px; }
}
@media (max-width: 360px) {
  .minimal-dashboard .app-header { padding-inline: 14px; }
  .minimal-dashboard .dashboard-shell { padding-inline: 14px; }
  .minimal-dashboard .view-heading h2 { font-size: 21px; }
  .minimal-dashboard .selected-panel { grid-template-columns: minmax(0, 1fr) 145px; column-gap: 8px; }
  .minimal-dashboard .metric-row { grid-template-columns: 32px 49px 1fr; gap: 5px; }
  .minimal-dashboard .selected-title h2 { font-size: 15px; }
  .minimal-dashboard .metric-row { gap: 6px; }
  .minimal-dashboard .metric-block > span { font-size: 10px; }
  .minimal-dashboard .score-track { display: none; }
  .minimal-dashboard th:nth-child(4) { width: 45px; }
}
@media print {
  .minimal-dashboard .section-nav, .minimal-dashboard .view-heading, .minimal-dashboard .lender-switcher, .minimal-dashboard .ranking-display { display: none !important; }
  .minimal-dashboard #comparison, .minimal-dashboard #data-views, .minimal-dashboard #actions, .minimal-dashboard #method { display: none; }
  .minimal-dashboard[data-section="controls"] #comparison, .minimal-dashboard[data-section="lender-details"] #comparison,
  .minimal-dashboard[data-section="data-views"] #data-views, .minimal-dashboard[data-section="actions"] #actions,
  .minimal-dashboard[data-section="method"] #method { display: block; }
  .minimal-dashboard[data-section="controls"] #lender-details, .minimal-dashboard[data-section="lender-details"] .table-panel,
  .minimal-dashboard[data-section="method"] .hero-grid { display: none; }
  .minimal-dashboard .chart-panel { display: none; }
  .minimal-dashboard .app-header, .minimal-dashboard .dashboard-shell { padding: 10px 0; }
  .minimal-dashboard .selected-panel { break-inside: avoid; }
}
