:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4ef;
  --accent: #2563eb;
  --accent-dark: #0b1f4d;
  --soft: #eff6ff;
  --soft-strong: #dbeafe;
  --good: #047857;
  --bad: #b42318;
  --warn: #b7791f;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  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;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 44%, #edf4ff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  --bottom-bar-block-start: 7px;
  --bottom-bar-block-end: max(7px, env(safe-area-inset-bottom));
  --bottom-bar-space: calc(52px + var(--bottom-bar-block-end));
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.app-shell:not(.no-selection) {
  width: min(100%, 1720px);
  margin: 0 auto;
}

.map-pane {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.profile-column {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.toolbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1500;
  padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  justify-self: center;
  color: var(--accent-dark);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

h2 {
  font-size: 17px;
  line-height: 1.2;
}

.empty {
  color: var(--muted);
  font-size: 13px;
}

.brand-link {
  display: inline-flex;
  justify-self: start;
  text-decoration: none;
}

.brand-link img {
  width: 126px;
  height: auto;
}

.brand-link .benchmark-wordmark {
  font-size: 26px;
}

.benchmark-wordmark {
  display: inline-block;
  color: transparent;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .9;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0b1f4d 0%, #1d4ed8 62%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.benchmark-brand-dot {
  display: inline-block;
  width: .24em;
  height: .24em;
  margin-left: .08em;
  border-radius: 50%;
  background: #ef4444;
  color: transparent;
  overflow: hidden;
  line-height: 1;
  vertical-align: -.02em;
}

.swissmade-link {
  display: inline-flex;
}

.filters {
  display: flex;
  align-items: center;
  justify-self: end;
}

.year-readonly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.top-search {
  position: relative;
  z-index: 1300;
  min-width: 0;
}

.top-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.top-search input {
  height: 38px;
  border-color: rgba(37, 99, 235, .32);
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

.somed-insights-button {
  display: none;
}

input,
select {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

input:focus,
select:focus {
  border-color: rgba(37, 99, 235, .55);
  outline: 3px solid rgba(37, 99, 235, .14);
}

button {
  height: 32px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: .45;
}

button:not(:disabled):hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--soft);
}

.map-frame {
  position: relative;
  min-height: 0;
}

.data-load-error {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(185, 28, 28, .22);
  border-radius: 8px;
  background: #fff7f7;
  color: var(--bad);
  font-size: 13px;
}

.data-load-error button,
.metric-modal-load-error button,
.metric-inline-load-error button {
  justify-self: start;
  border-color: rgba(185, 28, 28, .25);
  color: var(--bad);
  font-weight: 800;
}

.map-data-load-error {
  position: absolute;
  z-index: 1400;
  top: 50%;
  left: 50%;
  width: min(360px, calc(100% - 32px));
  box-shadow: 0 16px 44px rgba(15, 23, 42, .18);
  transform: translate(-50%, -50%);
}

.detail-data-load-error {
  margin: 12px 12px 0;
}

#map {
  height: 100%;
  min-height: 0;
}

.search-results {
  display: grid;
  gap: 6px;
  position: absolute;
  z-index: 1300;
  top: calc(100% + 12px);
  right: 0;
  left: 0;
  max-height: min(340px, 52vh);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .16);
  padding: 8px;
  backdrop-filter: blur(12px);
}

.search-results:empty {
  display: none;
}

.search-result-count,
.search-result-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 8px;
  text-align: left;
}

.search-result > span {
  min-width: 0;
}

.search-result:hover,
.search-result.active {
  border-color: var(--accent);
  background: var(--soft);
}

.search-result-name {
  display: block;
  overflow: hidden;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-pane {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  padding: 12px;
  font-size: 15px;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.detail-panel {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  overflow: auto;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.detail-head {
  align-items: center;
  min-height: 0;
  padding: 11px 12px;
}

.detail-head-copy {
  position: relative;
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
}

.detail-head-copy h2 {
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-head-copy h2:focus {
  outline: none;
}

.detail-subtitle {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.detail,
.empty,
.compare {
  padding: 12px;
}

.compare {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
  padding: 3px 12px 10px;
}

.detail {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: 3px;
}

.start-empty {
  display: grid;
  align-items: start;
}

.start-copy {
  display: grid;
  overflow: visible;
  padding: 26px 30px 28px;
}

.start-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .7fr);
  align-items: center;
  gap: 48px;
}

.start-hero-copy h1 {
  justify-self: start;
  margin: 0;
  text-align: left;
  color: transparent;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(60px, 5.2vw, 88px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
  background: linear-gradient(90deg, #0b1f4d 0%, #1d4ed8 70%, #60a5fa 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.start-title {
  display: grid;
  width: max-content;
  max-width: 100%;
  gap: 8px;
}

.start-powered {
  justify-self: end;
  color: #64748b;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.start-powered .benchmark-wordmark {
  margin-left: 5px;
  font-size: 21px;
}

.start-hero-copy {
  text-align: left;
}

.start-data-visual {
  position: relative;
  min-height: 260px;
  opacity: .72;
}

.start-swiss-dots {
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  width: min(100%, 450px);
  aspect-ratio: 1346.967 / 863.698;
  background: radial-gradient(circle, rgba(37, 99, 235, .62) 0 1.8px, transparent 2.2px) 0 0 / 9px 9px;
  /* Simplified Natural Earth country outline (public domain). */
  clip-path: polygon(78.7% 37.7%, 79.5% 37.7%, 82.1% 38.7%, 84.2% 40.1%, 84.6% 41.6%, 84.9% 43.5%, 87.4% 46%, 90.3% 47.6%, 91.2% 47.1%, 94.8% 41.2%, 96.2% 42.2%, 97% 45.3%, 97% 47%, 96% 53.3%, 95.8% 56.7%, 96.7% 58.9%, 96.7% 60.6%, 96.5% 62.2%, 95.1% 62.4%, 93.2% 61.5%, 91.6% 58.8%, 90.4% 59.1%, 89.3% 59.8%, 88.8% 62.4%, 88.3% 65.4%, 88.4% 67.1%, 89.2% 68.5%, 89.8% 71.3%, 90.2% 74.9%, 90.5% 76.5%, 90.2% 77.3%, 89.2% 77.8%, 88.3% 77.3%, 86.9% 73%, 86.2% 71.3%, 85% 71%, 83% 72.1%, 79.9% 74.5%, 78.7% 74.5%, 77.6% 74%, 76.6% 71.9%, 75.7% 68%, 75.5% 65.5%, 74.9% 65.6%, 72.9% 64.8%, 72% 65.8%, 72% 69.9%, 71.8% 74.9%, 70.8% 78.2%, 68% 83.8%, 67% 86.3%, 66.6% 88.1%, 66.5% 89.6%, 66.9% 92.3%, 67.5% 94.8%, 67% 96.2%, 65.5% 97%, 64.5% 95.5%, 64.1% 92.7%, 61.9% 89%, 62.9% 85.8%, 62.7% 85.1%, 59% 83.4%, 57.4% 81.1%, 55.2% 76.9%, 54.7% 75.1%, 54.8% 69.3%, 54.7% 67.9%, 54.4% 67.2%, 53.3% 67.3%, 51.8% 69.3%, 50.4% 72.3%, 47.6% 75.7%, 47.3% 76.4%, 48.2% 79.7%, 48.2% 81%, 45.8% 86.3%, 45.4% 88%, 42.5% 91.3%, 41.1% 92.6%, 37% 90.1%, 35.9% 89.8%, 34.1% 91.5%, 31.5% 93%, 27.3% 94.6%, 25.8% 93.4%, 25% 92.4%, 24.7% 90.8%, 23.6% 88%, 22.4% 86.3%, 21.6% 84.5%, 20.5% 82.5%, 19.8% 80.8%, 20.7% 75.5%, 20.1% 73.6%, 19.7% 71%, 19.9% 69.1%, 19.5% 68.7%, 15.7% 67.7%, 12.6% 68%, 10.4% 69.8%, 8.5% 72.7%, 8.3% 73.4%, 8.4% 73.9%, 9.3% 76.6%, 7.8% 79.5%, 5.4% 81.7%, 3.8% 81.9%, 3% 81.5%, 3% 78.4%, 4.4% 77.3%, 5.6% 75.3%, 6.1% 72.5%, 6.2% 70.5%, 4.9% 68.1%, 5.1% 66.6%, 5.9% 63.9%, 6.3% 61.4%, 7% 59.3%, 9.6% 55.8%, 12.2% 52.3%, 12.6% 48.6%, 12.8% 44.1%, 13.2% 43%, 16.7% 40.3%, 17.6% 39.2%, 18.1% 37.7%, 20.8% 32.6%, 23.6% 27.6%, 24.1% 25.9%, 24.6% 24.9%, 24.6% 24.1%, 24.3% 23.4%, 22.9% 23%, 22.5% 21.4%, 23.9% 18.6%, 25.7% 16.8%, 27.4% 16.8%, 28.1% 17.6%, 28.1% 18.6%, 28.8% 19.6%, 30.2% 19.9%, 31.8% 19.5%, 33.4% 18.5%, 34.4% 15.9%, 35% 14%, 37.5% 11.8%, 39.2% 12.9%, 44% 13.2%, 47.5% 12.6%, 49.7% 11.2%, 52.4% 11.2%, 54.2% 12%, 54.6% 11.9%, 55.1% 11.7%, 55.6% 10.9%, 57.3% 10.3%, 57.5% 9.7%, 57.4% 9%, 57.1% 8.6%, 55% 9%, 54.2% 8.5%, 54% 7.2%, 54.7% 5.1%, 56.2% 3.4%, 57.6% 3%, 58.5% 3.5%, 60.8% 6.7%, 61.4% 6.7%, 61.7% 6.2%, 62.2% 5.9%, 63% 6.5%, 63.9% 8.5%, 64% 8.8%, 69.2% 8.1%, 70.3% 8.1%, 73.8% 11.5%, 77.5% 15.1%, 78.1% 15.8%, 79.6% 17.9%, 79.3% 21.5%, 77.6% 27.4%, 76.7% 32.1%, 76.6% 35.8%, 76.7% 37.5%, 77% 37.4%);
}

.start-radar {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(transparent 49.6%, rgba(37, 99, 235, .15) 50%, transparent 50.4%),
    linear-gradient(90deg, transparent 49.6%, rgba(37, 99, 235, .15) 50%, transparent 50.4%),
    repeating-radial-gradient(circle at center, transparent 0 33px, rgba(37, 99, 235, .17) 34px 35px);
}

.start-radar::before {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  content: "";
  background: conic-gradient(from 0deg, rgba(37, 99, 235, .55) 0 1deg, transparent 2deg 360deg);
  animation: heimradar-sweep 3.4s linear infinite;
}

.start-radar::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
  transform: translate(-50%, -50%);
}

.start-radar-sweep {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(29, 78, 216, .95) 0 2.5px, transparent 3px) 0 0 / 9px 9px;
  -webkit-mask-image: conic-gradient(from var(--radar-angle), transparent 0deg 302deg, rgba(0, 0, 0, .16) 328deg, rgba(0, 0, 0, .55) 348deg, #000 359deg, transparent 360deg);
  mask-image: conic-gradient(from var(--radar-angle), transparent 0deg 302deg, rgba(0, 0, 0, .16) 328deg, rgba(0, 0, 0, .55) 348deg, #000 359deg, transparent 360deg);
  animation: heimradar-point-trail 3.4s linear infinite;
}

.start-radar-hit {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  background: #ff1515;
  box-shadow: 0 0 0 5px rgba(255, 21, 21, .65), 0 0 16px 4px rgba(255, 21, 21, .9), 0 0 34px rgba(255, 21, 21, .85);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: heimradar-hit 2.6s ease-out var(--hit-delay) both;
}

.empty-search {
  position: relative;
  z-index: 1400;
  margin-top: 14px;
}

.empty-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.empty-search input {
  height: 60px;
  border: 1px solid #2563eb;
  border-radius: 14px;
  padding: 0 54px 0 50px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .05);
}

.empty-search::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 20px;
  width: 16px;
  height: 16px;
  border: 2px solid #64748b;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateY(-58%);
}

.empty-search::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 20px;
  content: "→";
  color: #2563eb;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-54%);
}

.empty-search:has(.search-results:not(:empty))::after {
  display: none;
}

.empty-search::before {
  box-shadow: 8px 8px 0 -6px #64748b;
}

.start-action h3 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 27px;
  line-height: 1.1;
}

.start-action {
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  background: #fff;
}

.start-action-search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 46px minmax(320px, 1fr);
  align-items: end;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.start-action-search h3 {
  font-size: 30px;
}

.start-statistics-area {
  min-width: 0;
}

.start-statistics-area h3 {
  margin-bottom: 14px;
}

.start-action-or {
  position: relative;
  display: grid;
  align-self: end;
  place-items: center;
  height: 60px;
  color: #7b8798;
  font-size: 12px;
  font-weight: 650;
}

.start-action-or::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(15, 23, 42, .12);
}

.start-action-or span {
  position: relative;
  padding: 6px 0;
  background: var(--panel);
}

.start-statistics-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  width: 100%;
  height: auto;
  min-height: 60px;
  border: 1px solid rgba(30, 64, 175, .2);
  border-radius: 14px;
  padding: 7px 12px 7px 16px;
  background: #fbfdff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  color: var(--accent-dark);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.start-statistics-entry > span:not(.start-statistics-visual) {
  grid-row: 1;
  grid-column: 1;
  max-width: 330px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.3;
}

.start-statistics-visual {
  display: flex;
  align-items: center;
  grid-row: 1;
  grid-column: 2;
  gap: 8px;
  margin-top: 0;
}

.start-statistics-chart {
  display: flex;
  align-items: end;
  gap: 7px;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  padding: 8px 9px;
  background: #eff6ff;
}

.start-statistics-chart i {
  width: 7px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #60a5fa, #1d4ed8);
}

.start-statistics-chart i:nth-child(1) { height: 36%; }
.start-statistics-chart i:nth-child(2) { height: 68%; }
.start-statistics-chart i:nth-child(3) { height: 100%; }

.start-statistics-arrow {
  color: var(--accent);
  font-size: 27px;
}

.start-statistics-entry:not(:disabled):hover {
  border-color: rgba(37, 99, 235, .55);
  background: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .12);
  color: var(--accent);
  transform: translateY(-2px);
}

.start-statistics-entry:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 3px;
}

.start-links {
  display: grid;
  align-self: end;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--panel);
}

.start-summary {
  align-self: center;
  max-width: 520px;
  margin: 0 auto;
  color: #526174;
  font-size: 18px;
  line-height: 1.45;
}

.start-summary .benchmark-wordmark {
  font-size: 1em;
}

.start-sprezza-area {
  display: grid;
  align-self: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px 32px;
  justify-items: start;
  width: 100%;
  max-width: none;
}

.start-sprezza-copy {
  max-width: 720px;
  margin: 0;
  color: #526174;
  font-size: 15px;
  line-height: 1.45;
}

.start-sprezza-copy .benchmark-wordmark {
  font-size: 1em;
}

.start-links button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: auto;
  min-height: 56px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 800;
}

.start-link-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  flex: 0 0 56px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--accent-dark);
  font-size: 22px;
  font-style: normal;
  font-weight: 850;
}

.start-link-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.start-link-copy strong {
  font-size: 18px;
  line-height: 1.1;
}

.start-link-copy small {
  color: #64748b;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}

.start-link-chart::before {
  content: "▥";
}

.start-links [data-somed-start] {
  min-height: 84px;
}

.start-link-chart {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
  background: linear-gradient(145deg, #0b1f4d, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
  color: #fff;
  font-size: 30px;
}

.start-links [data-somed-start] .start-link-copy strong {
  font-size: 22px;
}

.start-links [data-somed-start] .start-link-copy small {
  font-size: 16px;
}

.start-links > button:not(.start-sprezza-link) > span:last-child {
  font-size: 24px;
}

.start-links button:not(:disabled):hover {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

.start-sprezza-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  border: 1px solid rgba(37, 99, 235, .24) !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  background: var(--panel);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
  white-space: nowrap;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.start-sprezza-link:hover {
  border-color: rgba(37, 99, 235, .48) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .09);
  transform: translateY(-1px);
}

.start-sprezza-link > span:first-child {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.start-sprezza-link .benchmark-wordmark {
  font-size: 18px;
}

.start-sprezza-arrow {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.detail h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
}

.report-cta {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  width: 100%;
  min-height: 104px;
  margin: 0;
  padding: 18px 60px 18px 18px;
  border: 1px solid rgba(37, 99, 235, .48);
  border-radius: 8px;
  background: linear-gradient(135deg, #08204f 0%, #0b3a86 100%);
  color: #fff;
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 22px 44px rgba(11, 31, 77, .28);
  transition: filter .15s ease, border-color .15s ease;
}

.sprezza-panel .report-cta {
  height: auto;
  min-height: 0;
  gap: 18px;
  margin: 0 0 10px;
  padding: 26px 24px;
  border-color: #d8d4ca;
  border-radius: 3px;
  background: #faf9f5;
  color: #26354a;
  box-shadow: none;
}

.sprezza-panel .report-cta strong {
  color: #182d4d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.sprezza-panel .report-cta > span {
  color: #465160;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.sprezza-panel .report-cta > .report-cta-kicker {
  color: #64675f;
  font-size: 12px;
  font-weight: 600;
}

.sprezza-panel .report-cta > .report-cta-contents {
  display: grid;
  gap: 12px;
}

.report-cta-contents > span {
  padding-top: 12px;
  border-top: 1px solid #deded6;
}

.report-cta-contents b {
  display: block;
  margin-bottom: 2px;
  color: #26354a;
  font-weight: 700;
}

.sprezza-panel .report-cta > .report-cta-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  box-sizing: border-box;
  padding: 18px 20px;
  border-radius: 3px;
  background: #0d3f7a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.sprezza-panel .report-cta-action > span {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}

.sprezza-panel button.report-cta:not(:disabled):hover .report-cta-action {
  background: #082f68;
}

.sprezza-panel button.report-cta:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 3px;
}

.sprezza-panel .report-cta::after {
  content: none;
}

.report-cta::after {
  content: "";
  position: absolute;
  right: 72px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid rgba(255, 255, 255, .92);
  border-right: 3px solid rgba(255, 255, 255, .92);
  transform: translateY(-50%) rotate(45deg);
}

.report-cta strong {
  display: block;
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
}

.report-cta > span {
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

button.report-cta:not(:disabled):hover {
  border-color: rgba(96, 149, 240, .75);
  background: linear-gradient(135deg, #08204f 0%, #0b3a86 100%);
  color: #fff;
  filter: brightness(1.12);
}

.report-form {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.report-engagement-intro {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.16;
}

#report-request-panel .report-engagement-intro {
  font-size: 30px;
}

.report-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.report-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-contact-fields > label:first-child {
  grid-column: 1 / -1;
}

.report-question {
  line-height: 1.45;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-question legend {
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
}

.report-choice-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #bfcee4;
  border-radius: 6px;
}

.report-choice {
  position: relative;
  display: block !important;
  cursor: pointer;
}

.report-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.report-choice span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #bfcee4;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.report-choice:first-child span {
  border-left: 0;
}

.report-choice input:checked + span {
  color: var(--accent);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px #93b4f5;
}

.report-choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.report-form input[type="text"],
.report-form input[type="email"],
.report-form input[type="tel"] {
  width: 100%;
  height: 46px;
  border: 1px solid #bfcee4;
  border-radius: 7px;
  padding: 0 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.report-form input::placeholder {
  color: #64748b;
  opacity: 1;
}

.report-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.report-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.report-submit {
  height: 48px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
}

.report-submit:hover {
  background: #1d4ed8;
  color: #fff;
}

.report-direct-download {
  height: 40px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent-dark);
  font-weight: 850;
}

.report-direct-download:hover {
  background: #f8fafc;
}

.report-direct-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.superuser-badge {
  padding: 3px 6px;
  border-radius: 4px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.report-modal-head {
  padding-right: 34px;
}

.report-modal .metric-modal-intro {
  max-width: 46ch;
  margin-top: 8px;
}

.report-selected-home {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  margin-top: 4px;
}

.report-selected-home strong {
  color: #52627a;
  font-size: 13px;
  line-height: 1.25;
}

.report-consent-box {
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.5;
}

.report-consent-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.report-submit:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.report-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.report-status.success {
  color: #166534;
}

.report-status.error {
  color: #b42318;
}

.metric-action-area {
  position: relative;
  display: grid;
  gap: 10px;
}

.metric-action-cue {
  position: absolute;
  z-index: 10;
  top: -36px;
  right: 48px;
  width: 250px;
  height: 131px;
  color: #111827;
  pointer-events: none;
}

.metric-action-cue span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-left: 72px;
  padding: 4px 8px;
  border: 1px solid rgba(217, 170, 42, .38);
  border-radius: 7px;
  background: #fff8dc;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .08);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  transform: translateY(1px) rotate(5deg);
}

.metric-action-cue svg {
  position: absolute;
  z-index: 1;
  top: -7px;
  left: 20px;
  width: 117px;
  height: 131px;
  overflow: visible;
}

.metric-action-cue .arrow-connector,
.metric-action-cue .arrow-main,
.metric-action-cue .arrow-sketch {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-action-cue .arrow-connector,
.metric-action-cue .arrow-main {
  stroke-width: 3;
}

.metric-action-cue .arrow-sketch {
  opacity: .22;
  stroke-width: 1.8;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(42px, auto);
  gap: 0;
}

.metric-section-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.metric-section-card + .metric-section-card {
  margin-top: 5px;
}

.metric-section-card.has-action-cue {
  overflow: visible;
  z-index: 1;
}

.metric-section-card.has-action-cue > .summary-group-title {
  border-radius: 8px 8px 0 0;
}

.metric {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 7px;
  background: #fff;
}

.metric-button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.metric-button:hover {
  border-color: rgba(11, 31, 77, .2);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
  transform: translateY(-1px);
}

.metric-row-button {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(92px, 112px));
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 46px;
  padding: 5px 2px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.metric-row-button:not(:disabled):hover {
  border-bottom-color: rgba(15, 23, 42, .07);
  background: #f3f7fd;
  box-shadow: none;
  transform: none;
}

.metric-row-title,
.metric-row-value,
.metric-row-canton {
  display: block;
}

.metric-row-title-mobile,
.metric-section-unit {
  display: none;
}

.metric-section-card .metric-grid {
  padding: 0 10px 3px;
}

.metric-section-card .metric-row-button:last-child {
  border-bottom: 0;
}

.metric-row-title {
  color: #111827;
  font-size: 12.5px;
  font-weight: 650;
}

.metric-row-value {
  color: var(--accent-dark);
  font-size: 13.5px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
  text-align: right;
  white-space: nowrap;
}

.metric-row-canton {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.metric-row-canton.is-missing {
  font-size: 15px;
}

.summary-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .045em;
  padding: 5px 7px;
  text-transform: uppercase;
}

.metric-section-card .summary-group-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(92px, 112px));
  gap: 8px 12px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  border-radius: 0;
  background: var(--panel);
  color: var(--accent-dark);
  font-size: 11px;
  line-height: 1.2;
  padding: 7px 10px;
}

.metric-section-column {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: right;
}

.metric-row-value.value-good {
  color: var(--good);
}

.metric-row-value.value-bad {
  color: var(--bad);
}

.metric-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}

.metric-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.metric-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .64);
  backdrop-filter: blur(4px);
}

.metric-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(15, 23, 42, .32);
  padding: 22px;
}

.report-modal .metric-modal-panel {
  width: min(680px, 100%);
  padding: clamp(20px, 4vw, 36px);
  border-radius: 16px;
}

.footer-info-modal .metric-modal-panel {
  width: min(640px, 100%);
}

.metric-catalog-modal .metric-modal-panel {
  width: min(980px, 100%);
}

.somed-modal .metric-modal-panel {
  width: min(920px, 100%);
}

.somed-modal .metric-modal-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: min(920px, 100%);
  height: min(880px, calc(100vh - 24px));
  height: min(880px, calc(100dvh - 24px));
  max-height: none;
  overflow: hidden;
  box-sizing: border-box;
}

.somed-search-slide .metric-modal-panel {
  overflow: hidden;
}

.somed-modal #metric-modal-content {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.metric-modal-close {
  position: sticky;
  z-index: 12;
  top: 0;
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 0 -44px auto;
  padding: 0;
  border-color: rgba(15, 23, 42, .16);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  font-size: 24px;
  font-weight: 850;
}

#report-request-panel .report-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 12px;
  padding-right: 0;
}

#report-request-panel .report-modal-titles {
  display: grid;
  min-width: 0;
  gap: 6px;
}

#report-request-panel .report-title {
  margin: 0;
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#report-request-panel .report-engagement-intro:not(.hidden) + .report-title {
  font-size: 18px;
  font-weight: 700;
}

.report-modal--auto-promo:not(.hidden) #report-request-panel {
  animation: report-auto-promo-enter 420ms cubic-bezier(.22, .8, .25, 1) both;
}

@keyframes report-auto-promo-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#report-request-panel .metric-modal-close {
  position: static;
  width: 44px;
  height: 44px;
  margin: 0 -6px 0 0;
}

.somed-modal .metric-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  margin: 0;
}

.somed-modal .metric-modal-head {
  padding-right: 56px;
}

.metric-modal-head {
  padding-right: 42px;
}

.metric-modal-head h2 {
  color: var(--accent-dark);
  font-size: 28px;
  line-height: 1.08;
}

.somed-modal-title {
  color: var(--accent-dark);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.08;
}

.report-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.report-title .report-wordmark {
  font-size: 18px;
}

.report-title img {
  width: 128px;
  height: auto;
  transform: translateY(2px);
}

.metric-modal-intro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.metric-determination {
  margin-top: 14px;
  border: 1px solid rgba(12, 48, 107, .12);
  border-radius: 9px;
  background: #f8fbff;
  padding: 12px 14px;
}

.metric-determination summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.metric-determination[open] summary {
  margin-bottom: 8px;
}

.metric-determination dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.metric-determination dl div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
}

.metric-determination dt {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
}

.metric-determination dd {
  margin: 0;
  color: #1f2937;
  font-size: 12.5px;
  line-height: 1.4;
}

.footer-info {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.footer-info p {
  margin: 0;
}

.about-modal .metric-modal-panel {
  width: min(820px, 100%);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 12px;
  padding: 0;
}

.about-modal .metric-modal-close {
  position: sticky;
  top: 20px;
  right: auto;
  margin: 20px 20px -64px auto;
  border-color: rgba(15, 23, 42, .16);
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 3px 10px rgba(15, 23, 42, .08);
}

.about-modal .metric-modal-close:not(:disabled):hover {
  border-color: rgba(15, 23, 42, .3);
  background: #f4f6f8;
}

.about-sprezza {
  color: var(--accent-dark);
}

.about-sprezza-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 18px 38px;
  border-bottom: 1px solid #e3e8ef;
  background: #f8fafc;
  color: var(--accent-dark);
}

.about-sprezza-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 12px;
  margin: 0;
}

.about-sprezza-wordmark {
  display: inline-block;
  line-height: .9;
}

.about-sprezza-wordmark img {
  width: clamp(136px, 22vw, 170px);
  height: auto;
}

.about-sprezza-wordmark {
  font-size: clamp(32px, 5vw, 42px);
}

.about-sprezza-brand > span:last-child {
  color: var(--accent-dark);
  font-size: inherit;
  font-weight: 850;
  letter-spacing: -.02em;
}

.about-sprezza-hero h2.about-sprezza-brand {
  max-width: none;
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.1;
  letter-spacing: 0;
}

.about-sprezza-lead {
  max-width: 660px;
  margin: 14px 0 0;
  color: #40546a;
  font-size: 16px;
  line-height: 1.5;
}

.about-sprezza-content {
  display: grid;
  gap: 15px;
  padding: 24px 38px 28px;
}

.about-sprezza-offers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.about-sprezza-offer {
  min-width: 0;
  padding: 0;
}

.about-sprezza-offer strong {
  color: #119565;
  font-size: 13px;
  font-weight: 900;
}

.about-sprezza-offer h3,
.about-sprezza-next h3 {
  margin: 7px 0 0;
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.2;
}

.about-sprezza-offer p,
.about-sprezza-next p {
  margin: 9px 0 0;
  color: #40546a;
  font-size: 17px;
  line-height: 1.6;
}

.about-sprezza-offer p:first-child {
  margin-top: 0;
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1.6;
}

.about-sprezza-offer p + p {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e3e8ef;
}

.about-sprezza-next {
  border-radius: 12px;
  background: #f3f5f8;
  padding: 16px;
}

.about-sprezza-next h3 {
  margin-top: 0;
}

.about-sprezza-link {
  display: inline-flex;
  justify-self: center;
  min-height: 42px;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  border: 1px solid #b8cdfa;
  background: #edf3ff;
  padding: 0 22px;
  color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(30, 76, 156, .12);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.about-sprezza-link-wordmark {
  width: 74px;
  height: auto;
}

.about-sprezza-link:hover {
  background: #e0ebff;
  color: var(--accent-dark);
}

.brand-menu-modal .metric-modal-panel {
  width: min(760px, 100%);
}

.brand-menu {
  padding: 44px;
}

.brand-menu h2 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 28px;
  line-height: 1.2;
}

.brand-menu-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.brand-menu-option {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 9px;
  background: var(--panel);
  color: var(--accent-dark);
  padding: 22px;
  font-size: 19px;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
}

.brand-menu-option-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}

.brand-menu-wordmark {
  font-size: 30px;
  line-height: .9;
}

.brand-menu-option:hover {
  border-color: rgba(11, 31, 77, .36);
  background: #f8fafc;
}

@media (max-width: 680px) {
  .about-sprezza-hero {
    padding: 24px 22px 22px;
  }

  .about-sprezza-content {
    padding: 20px 22px 24px;
  }

  .about-sprezza-offers {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-menu {
    padding: 28px 22px;
  }

  .brand-menu-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-menu-option {
    min-height: 84px;
    padding: 18px;
  }
}

.metric-catalog-method {
  margin-top: 16px;
  border-radius: 7px;
  background: #f3f8f8;
  padding: 12px 14px;
  color: #26313f;
  font-size: 13px;
  line-height: 1.45;
}

.metric-catalog-method p {
  margin: 4px 0 0;
}

.metric-catalog {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.metric-catalog section h3 {
  margin: 0 0 9px;
  color: var(--accent-dark);
  font-size: 17px;
}

.metric-catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.metric-catalog-card {
  align-self: start;
  border: 1px solid rgba(12, 48, 107, .13);
  border-radius: 8px;
  background: #fff;
}

.metric-catalog-card summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  color: #17243a;
  font-size: 13px;
  font-weight: 820;
  list-style-position: inside;
}

.metric-catalog-card summary small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.metric-catalog-card[open] summary {
  border-bottom: 1px solid rgba(12, 48, 107, .1);
  background: #f8fbff;
}

.metric-catalog-card dl {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 11px 12px 13px;
}

.metric-catalog-card dl div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
}

.metric-catalog-card dt {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 820;
}

.metric-catalog-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #26313f;
  font-size: 11.5px;
  line-height: 1.38;
}

.metric-source-links a {
  color: var(--accent-dark);
  font-weight: 740;
  text-underline-offset: 2px;
}

.somed-slide {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  padding: 0;
}

.somed-slide p {
  margin: 0;
}

.somed-notes p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.somed-fact {
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 95%, rgba(214, 228, 255, .78), transparent 34%),
    linear-gradient(145deg, #eefdfd 0%, #f8fbff 58%, #fff 100%);
  padding: 16px 22px;
  scrollbar-gutter: stable;
}

.somed-fact-balanced {
  grid-template-rows: auto auto;
  align-content: space-evenly;
  gap: 16px;
}

.somed-notes {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #f8fafc;
}

.somed-notes strong {
  color: var(--accent-dark);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.somed-fact-compact {
  gap: 8px;
  padding: 10px 22px 12px;
}

.somed-fact-compact .somed-notes {
  padding: 8px 10px;
}

.somed-fact-compact .somed-notes p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.3;
}

.somed-story {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #f8fafc;
}

.somed-story > strong {
  color: var(--accent-dark);
  font-size: 14px;
}

.somed-story-list {
  display: grid;
  gap: 0;
  margin-top: 7px;
}

.somed-story-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 150px;
  gap: 10px;
  align-items: baseline;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.somed-story-step:last-child {
  border-bottom: 0;
}

.somed-story-step span {
  display: block;
  color: #4c5f74;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.somed-story-step p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.somed-story-step b {
  display: block;
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.somed-story small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}


.somed-report-path {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 12px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  background: var(--panel);
}

.somed-report-path > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  text-align: left;
}

.somed-report-search {
  position: relative;
}

.somed-report-search-box {
  position: relative;
  width: 100%;
}

.somed-report-search .search-results {
  top: calc(100% + 6px);
  z-index: 3000;
  max-height: min(220px, 32vh);
  overflow: auto;
}

.somed-report-path strong {
  color: inherit;
  font-size: 16px;
}

.somed-search-slide .somed-fact {
  grid-template-rows: auto auto;
  align-content: space-evenly;
  gap: 16px;
}

.somed-quality-callout {
  min-width: 0;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.somed-quality-limit h3,
.somed-quality-limit p {
  margin: 0;
}

.somed-quality-limit h3 {
  color: var(--accent-dark);
  font-size: 22px;
  line-height: 1.2;
}

.somed-quality-limit p {
  margin-top: 6px;
  color: #40546a;
  font-size: 15.5px;
  line-height: 1.45;
}

.somed-quality-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 9px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.somed-quality-sources a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.somed-fact-controls {
  display: grid;
  grid-template-columns: 132px auto 132px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  padding-top: 14px;
}

.somed-modal .somed-fact-controls {
  position: static;
  bottom: auto;
}

.somed-fact-controls button {
  width: 132px;
  min-height: 42px;
  border-color: rgba(12, 48, 107, .14);
  background: var(--panel);
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 850;
}

.somed-fact-controls button:last-child {
  background: var(--accent-dark);
  color: #fff;
}

.somed-page-indicator {
  display: inline-flex;
  width: 58px;
  box-sizing: border-box;
  align-items: center;
  gap: 5px;
  justify-self: center;
  justify-content: center;
  margin-top: 0;
  border: 1px solid rgba(12, 48, 107, .1);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  color: var(--accent-dark);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  padding: 6px 12px;
}

@media (max-width: 760px) {
  .somed-modal .metric-modal-panel {
    width: min(920px, calc(100vw - 28px));
    padding: 16px;
  }

  .somed-modal #metric-modal-content {
    grid-template-rows: clamp(72px, calc(224px - 20vw), 128px) minmax(0, 1fr) auto;
  }

  .somed-modal .metric-modal-close {
    top: 16px;
    right: 16px;
  }

  .somed-fact-controls {
    grid-template-columns: minmax(104px, 132px) minmax(46px, 1fr) minmax(104px, 132px);
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .somed-fact-controls button {
    width: 100%;
    min-height: 38px;
  }

  .somed-page-indicator {
    margin-top: 0;
    padding: 5px 10px;
  }

}

.somed-chart {
  display: block;
  width: min(100%, 700px);
  margin: 4px auto 0;
  overflow: visible;
}

.somed-scatter-figure {
  display: block;
  width: 94%;
  margin: 14px auto 0;
  min-width: 0;
}

.somed-scatter-legend {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 18px;
  color: #4c5f74;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.somed-scatter-legend-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.somed-scatter-legend-swatch {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.somed-scatter {
  display: block;
  width: 100%;
  margin: 4px auto 0;
  overflow: visible;
}

.somed-axis {
  stroke: rgba(15, 23, 42, .35);
  stroke-width: 1;
}

.somed-zero-line {
  stroke: rgba(11, 31, 77, .22);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.somed-tick-mark {
  stroke: rgba(15, 23, 42, .32);
  stroke-width: 1;
}

.somed-axis-label,
.somed-tick {
  fill: #4c5f74;
  font-size: 11px;
  font-weight: 700;
}

.somed-axis-label {
  fill: #253b55;
  font-size: 12px;
  font-weight: 850;
}

.somed-axis-label.end,
.somed-tick.end,
.somed-tick.y {
  text-anchor: end;
}

.somed-tick.middle {
  text-anchor: middle;
}

.somed-scatter-point {
  opacity: .58;
}

.somed-scatter-point.is-clipped {
  opacity: .85;
  stroke: #0b1f4d;
  stroke-width: 1.2;
}

.somed-trend {
  stroke: #0f172a;
  stroke-width: 2;
  opacity: .5;
}

.somed-zero {
  stroke: rgba(15, 23, 42, .18);
  stroke-width: 1;
}

.somed-zero-label {
  fill: #334155;
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
}

.somed-bar {
  fill: rgba(37, 99, 235, .55);
}

.somed-bar.negative {
  fill: rgba(185, 28, 28, .5);
}

.somed-bar.finance {
  fill: rgba(8, 145, 178, .68);
}

.somed-bar.quality {
  fill: rgba(124, 58, 237, .58);
}

.somed-bar.adverse {
  fill: rgba(185, 28, 28, .72);
}

.somed-bar.favorable {
  fill: rgba(22, 163, 74, .66);
}

.somed-bar-difference {
  fill: rgba(185, 28, 28, .72);
}

.somed-chart-label,
.somed-chart-value {
  fill: #4c5f74;
  font-size: 14px;
  font-weight: 700;
}

.somed-chart-value.adverse {
  fill: #991b1b;
}

.somed-chart-value.favorable {
  fill: #166534;
}

.somed-chart-value {
  fill: #102a43;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-anchor: end;
}

.somed-chart-detail {
  fill: #7a8da3;
  font-size: 11px;
  font-weight: 700;
}

.metric-chart-wrap {
  margin-top: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fbfdff;
  padding: 16px 16px 10px;
}

.metric-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.metric-chart-head strong,
.metric-chart-head span {
  display: block;
}

.metric-chart-head strong {
  color: var(--ink);
  font-size: 15px;
}

.metric-chart-head > div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.metric-chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart-axis {
  stroke: #94a3b8;
  stroke-width: 1.1;
}

.chart-grid {
  stroke: #e2e8f0;
  stroke-width: 1;
}

.chart-zero {
  stroke: rgba(180, 35, 24, .34);
  stroke-dasharray: 7 7;
  stroke-width: 1.5;
}

.chart-tick {
  stroke: #94a3b8;
  stroke-width: 1;
}

.chart-label {
  fill: var(--muted);
  font-size: 12px;
}

.chart-axis-title {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-home {
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, .14));
}

.chart-point {
  fill: #fbfdff;
  stroke-width: 2;
}

.chart-label-connector {
  fill: none;
  opacity: .38;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.chart-direct-label {
  font-size: 12px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fbfdff;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.metric-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  margin-top: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-line {
  width: 28px;
  height: 8px;
  flex: 0 0 auto;
}

.metric-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
}

.metric-chart-empty,
.metric-modal-loading {
  padding: 22px;
  color: var(--muted);
}

.metric-modal-load-error {
  display: grid;
  gap: 12px;
  margin: 18px 22px 22px;
  padding: 16px;
  border: 1px solid rgba(185, 28, 28, .2);
  border-radius: 8px;
  background: #fff7f7;
  color: var(--bad);
}

.metric-inline-load-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 22px 14px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 28, 28, .2);
  border-radius: 8px;
  background: #fff7f7;
  color: var(--bad);
  font-size: 13px;
}

.hidden {
  display: none;
}

.summary-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(92px, 112px));
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 5px 2px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  border-radius: 0;
  background: transparent;
}

.care-marker {
  filter: drop-shadow(0 2px 4px rgba(11, 31, 77, .34));
  transition: fill-opacity .12s ease, stroke-width .12s ease;
}

.care-marker-selected {
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, .8));
}

.sprezza-panel {
  align-self: end;
  padding: 10px 12px;
  line-height: 1.42;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.swissmade-logo {
  width: 76px;
  max-width: 100%;
  height: auto;
}

.swissmade-link {
  flex: 0 0 auto;
  opacity: .92;
  transition: opacity .15s ease;
}

.swissmade-link:hover,
.swissmade-link:focus-visible {
  opacity: 1;
}

.swissmade-link {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.sprezza-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 8px;
}

.footer-links button {
  width: auto;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.footer-links button:hover {
  background: transparent;
  color: var(--accent-dark);
}


@media (max-width: 700px) {
  .metric-catalog-grid {
    grid-template-columns: 1fr;
  }

  .metric-catalog-card dl div {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}


@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .side-pane {
    grid-column: 1;
    grid-row: 3;
    grid-template-rows: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .compare {
    overflow: visible;
  }

  .detail-panel,
  .detail {
    grid-template-rows: auto auto;
  }

  .detail {
    overflow: visible;
  }

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

  .metric-modal {
    padding: 10px;
  }

  .metric-modal-panel {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .toolbar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .top-search {
    justify-self: stretch;
  }

  .top-search input,
  .year-readonly {
    height: 44px;
  }

  .somed-fact-controls {
    position: sticky;
    bottom: -16px;
    z-index: 6;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 22px rgba(15, 23, 42, .06);
  }

}

@media (pointer: coarse) {
  .leaflet-bar a,
  .leaflet-bar a:hover {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
}

@media (max-width: 640px) {
  #report-request-panel .report-engagement-intro {
    font-size: 24px;
  }

  #report-request-panel .report-engagement-intro:not(.hidden) + .report-title {
    font-size: 16px;
  }

  .toolbar {
    grid-template-areas:
      "brand search"
      "filters filters";
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: max(4px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left));
  }

  .brand-link {
    grid-area: brand;
  }

  .top-search {
    grid-area: search;
    justify-self: end;
    width: min(100%, 230px);
  }

  .filters {
    grid-area: filters;
    min-height: 44px;
    box-sizing: border-box;
    padding: 5px 8px;
  }

  .metric-row-button,
  .summary-metric-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(58px, 1fr));
    gap: 8px;
    height: auto;
    min-height: 46px;
  }

  .metric-section-card .summary-group-title {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(58px, 1fr));
    gap: 8px;
  }

  .metric-section-card.is-pension .summary-group-title,
  .metric-section-card.is-pension .metric-row-button {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(64px, 70px));
  }

  .metric-section-unit {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
  }

  .metric-row-title-desktop {
    display: none;
  }

  .metric-row-title-mobile {
    display: block;
  }
}

@media (max-width: 360px) {
  .metric-section-card.is-pension .summary-group-title,
  .metric-section-card.is-pension .metric-row-button {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-section-card.is-pension .summary-group-title > span:first-child,
  .metric-section-card.is-pension .metric-row-title {
    grid-column: 1 / -1;
  }
}

.app-shell.no-selection {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}

.app-shell.no-selection .map-pane {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: block;
  height: 100vh;
  height: 100dvh;
}

.app-shell.no-selection .map-pane::after {
  position: absolute;
  inset: 0;
  z-index: 1100;
  content: "";
  background: rgba(241, 245, 249, .16);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.app-shell.no-selection .map-frame,
.app-shell.no-selection #map {
  height: 100%;
}

.app-shell.no-selection .toolbar {
  position: absolute;
  inset: 0;
  z-index: 1300;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.app-shell.no-selection .brand-link {
  display: none;
}

.app-shell.no-selection .home-search-toggle,
.app-shell.no-selection .top-search,
.app-shell.no-selection .filters,
.app-shell.no-selection .somed-insights-button {
  display: none;
}

.app-shell.no-selection .side-pane {
  grid-column: 1;
  grid-row: 1;
  position: absolute;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border: 0;
  background: transparent;
  pointer-events: none;
}

.app-shell.no-selection .panel-head,
.app-shell.no-selection .sprezza-panel {
  display: none;
}

.app-shell.no-selection .detail-panel {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 64px));
  min-height: 0;
  height: min(860px, calc(100vh - 64px));
  height: min(860px, calc(100dvh - 64px));
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow: visible;
  overscroll-behavior: contain;
  border-color: rgba(15, 23, 42, .07);
  border-radius: 18px;
  box-shadow: 0 22px 64px rgba(15, 23, 42, .14);
  pointer-events: auto;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr) 0;
}

.app-shell.no-selection .start-copy {
  min-height: 100%;
  height: auto;
  align-content: stretch;
  grid-template-rows: auto auto minmax(0, 1fr);
  box-sizing: border-box;
  padding: 72px 62px 30px;
}

.app-shell.no-selection .start-empty {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.app-shell.no-selection .start-action {
  min-height: 0;
  margin: 96px 0 0;
  padding: 0;
}

.app-shell.no-selection .empty-search .search-results {
  position: absolute;
  z-index: 3000;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  max-height: min(320px, 38vh);
  max-height: min(320px, 38dvh);
  margin-top: 0;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, .24);
  padding: 10px;
  backdrop-filter: none;
}

@media (min-width: 1800px) and (min-height: 900px) {
  .app-shell.no-selection .detail-panel {
    width: min(1560px, calc(100vw - 96px));
    height: min(940px, calc(100dvh - 96px));
  }

  .app-shell.no-selection .start-copy {
    padding: 80px 78px 36px;
  }

  .app-shell.no-selection .start-action {
    margin: 96px 0 0;
  }

  .start-hero {
    grid-template-columns: minmax(0, 1fr) minmax(440px, .72fr);
    gap: 64px;
  }

  .start-hero-copy h1 {
    font-size: 96px;
  }
}

@media (min-width: 2400px) and (min-height: 1400px) {
  .app-shell.no-selection .detail-panel {
    width: min(2100px, calc(100vw - 180px));
    height: min(1320px, calc(100dvh - 180px));
  }

  .app-shell.no-selection .start-copy {
    padding: 150px 110px 70px;
  }

  .app-shell.no-selection .start-action {
    margin: 130px 0 0;
  }

  .start-hero {
    grid-template-columns: minmax(0, 1fr) minmax(560px, .72fr);
    gap: 90px;
  }

  .start-hero-copy h1 {
    font-size: 124px;
  }

  .start-powered {
    font-size: 18px;
  }

  .start-powered .benchmark-wordmark {
    font-size: 25px;
  }

  .start-data-visual {
    min-height: 360px;
  }

  .start-swiss-dots {
    width: min(100%, 560px);
  }

  .start-action-search h3 {
    font-size: 36px;
  }

  .start-action-search {
    grid-template-columns: minmax(0, 1.8fr) 56px minmax(390px, 1fr);
    gap: 28px;
  }

  .start-statistics-entry > span:not(.start-statistics-visual) {
    max-width: 390px;
    font-size: 19px;
  }

  .start-statistics-chart {
    width: 48px;
    height: 48px;
  }

  .start-statistics-entry,
  .start-action-or {
    height: 76px;
  }

  .empty-search input {
    height: 76px;
    font-size: 21px;
  }

  .start-links {
    min-height: 0;
    padding: 24px 28px;
  }

  .start-summary {
    max-width: 600px;
    font-size: 26px;
  }

  .start-sprezza-copy {
    max-width: 960px;
    font-size: 21px;
  }

  .start-links button {
    min-height: 64px;
  }

  .start-link-icon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .start-links [data-somed-start] {
    min-height: 96px;
  }

  .start-link-chart {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
    font-size: 34px;
  }

  .start-link-copy strong {
    font-size: 22px;
  }

  .start-link-copy small {
    font-size: 17px;
  }

  .start-sprezza-link > span:first-child {
    font-size: 17px;
  }

  .start-sprezza-link .benchmark-wordmark {
    font-size: 24px;
  }
}

@media (max-width: 1100px) and (min-width: 641px) {
  .start-hero {
    grid-template-columns: minmax(min-content, 1fr) minmax(0, 300px);
    gap: 28px;
  }

  .start-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .start-action-search {
    grid-template-columns: minmax(0, 1.6fr) 40px minmax(260px, 1fr);
    gap: 14px;
  }

}

@media (max-height: 820px) and (min-width: 641px) {
  .app-shell.no-selection .start-copy {
    padding: 36px 50px 20px;
  }

  .app-shell.no-selection .start-action {
    margin: 42px 0 0;
  }

  .start-statistics-entry {
    min-height: 60px;
  }

  .start-statistics-entry > span:not(.start-statistics-visual) {
    font-size: 14px;
  }

  .start-statistics-chart {
    width: 38px;
    height: 38px;
    padding: 8px 9px;
  }

  .start-data-visual {
    min-height: 220px;
  }

  .start-swiss-dots {
    width: min(100%, 360px);
  }

  .start-links {
    min-height: 0;
    padding: 14px 16px;
  }

  .start-summary {
    font-size: 15px;
  }

  .start-sprezza-area {
    gap: 10px;
  }

  .start-sprezza-copy {
    font-size: 14px;
  }
}

/* Responsive layout and modal readability */
.detail-head-copy h2,
.detail-subtitle {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.report-cta {
  padding-right: 64px;
}

.report-cta::after {
  right: 24px;
}

.somed-report-search .search-results {
  position: static;
  max-height: min(220px, 32vh);
  margin-top: 6px;
}

.metric-modal-close,
.somed-fact-controls button {
  min-height: 44px;
}

.metric-modal-close {
  width: 44px;
  height: 44px;
}

@media (max-width: 760px) {
  .footer-links {
    flex-wrap: wrap;
  }

  .metric-action-cue {
    top: -48px;
    width: 250px;
    right: 28px;
  }

  .metric-action-cue span {
    margin-left: 66px;
    transform: translateY(0) rotate(4deg);
  }

  .metric-action-cue svg {
    top: -6px;
    left: 20px;
    width: 101px;
    height: 113px;
  }

  .metric-determination dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .somed-slide,
  .metric-chart-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .somed-chart {
    width: 100%;
    min-width: 520px;
    max-width: none;
  }

  .somed-scatter {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }

  .somed-scatter .somed-axis-label,
  .somed-scatter .somed-tick {
    font-size: 22px;
  }

  .metric-chart {
    width: 100%;
    min-width: 620px;
    max-width: none;
  }

  .somed-report-path {
    grid-template-columns: minmax(0, 1fr);
  }

  .somed-report-path > div {
    min-height: 0;
  }

  .somed-fact-controls {
    z-index: 6;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -10px 22px rgba(15, 23, 42, .06);
  }

  .somed-fact-controls button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .somed-page-indicator {
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 5px 8px;
  }

  .metric-modal-close {
    top: 0;
  }

  .metric-modal-head {
    padding-right: 48px;
  }

  .metric-modal-head h2,
  .somed-modal-title {
    font-size: clamp(22px, 7vw, 28px);
  }

  .metric-modal-head .somed-modal-title {
    font-size: clamp(20px, 6vw, 24px);
  }
}

@media (max-width: 760px) {
  .report-contact-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-choice span {
    padding: 4px 2px;
    font-size: 11px;
  }

  .app-shell.no-selection .side-pane {
    padding: 0;
  }

  .app-shell.no-selection .detail-panel {
    width: 100%;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    background:
      radial-gradient(80vmax 80vmax at -18vmax -18vmax, rgba(96, 165, 250, .78) 0%, transparent 65%),
      radial-gradient(80vmax 80vmax at calc(100% + 18vmax) calc(100% + 18vmax), rgba(147, 197, 253, .68) 0%, transparent 65%),
      linear-gradient(180deg, #fff 0%, #eff6ff 100%);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-shell.no-selection .start-copy {
    padding: 34px 22px 22px;
  }

  .start-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .start-hero-copy h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .start-title {
    gap: 8px;
  }

  .start-data-visual {
    display: none;
  }

  .app-shell.no-selection .start-action {
    margin: 36px 0 20px;
  }

  .start-action-search {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .start-action-or {
    width: 100%;
    height: 28px;
  }

  .start-action-or::before {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
  }

  .start-action-or span {
    padding: 0 10px;
  }

  .start-action h3 {
    font-size: 21px;
  }

  .empty-search,
  .empty-search input {
    min-width: 0;
  }

  .start-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .start-links [data-somed-start] {
    min-height: 64px;
  }

  .start-link-chart {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    font-size: 24px;
  }

  .start-summary {
    margin: 14px 0;
    font-size: 17px;
  }

  .start-sprezza-area {
    gap: 10px;
    margin-top: 4px;
  }

  .start-sprezza-copy {
    font-size: 17px;
  }

  .start-sprezza-link {
    margin: 6px 0 0;
  }

  .report-cta {
    min-height: 112px;
    padding: 16px 54px 16px 16px;
  }

  .report-cta::after {
    right: 20px;
  }

  .report-cta strong {
    font-size: 17px;
  }

  .report-cta > span {
    font-size: 12px;
  }

  .sprezza-panel .report-cta {
    gap: 16px;
    padding: 24px 18px;
  }

  .sprezza-panel .report-cta strong {
    font-size: 22px;
  }

  .sprezza-panel .report-cta > .report-cta-action {
    min-height: 60px;
    padding: 17px 18px;
  }

  .somed-fact {
    padding-right: 14px;
    padding-left: 14px;
  }

  .somed-quality-callout {
    padding: 0;
  }

  .somed-notes {
    padding: 10px 12px;
  }

  .somed-notes p {
    font-size: 14px;
  }

  .somed-story-step {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
  }

  .somed-story-step p {
    grid-column: 1 / -1;
  }

  .somed-report-path > div {
    padding: 14px;
  }

  .search-result {
    min-height: 48px;
  }
}

@media (max-width: 360px) {
  .metric-action-cue {
    right: auto;
    left: 8px;
  }
}

@media (min-width: 761px) and (max-width: 1280px) and (max-height: 600px) {
  .app-shell.no-selection .detail-panel {
    max-height: calc(100dvh - 24px);
  }
}

@media (max-width: 1280px) and (max-height: 600px) {
  .app-shell.no-selection .start-action {
    min-height: 0;
    padding: 14px;
  }
}

@media (max-height: 700px) {
  .somed-fact-balanced {
    align-content: start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-modal--auto-promo:not(.hidden) #report-request-panel {
    animation: none;
  }

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

/* HeimRadar product identity */
.brand-link {
  align-items: center;
  gap: 16px;
}

.brand-link .benchmark-wordmark {
  font-size: 36px;
}

.benchmark-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  border-right: 1px solid rgba(15, 23, 42, .18);
  color: transparent;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(90deg, #0b1f4d 0%, #1d4ed8 62%, #60a5fa 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.radar-mark {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border: 2px solid rgba(37, 99, 235, .62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 31%, #60a5fa 0 2px, transparent 2.5px),
    radial-gradient(circle at 35% 65%, #2563eb 0 2px, transparent 2.5px),
    linear-gradient(transparent 48%, rgba(37, 99, 235, .32) 49% 51%, transparent 52%),
    linear-gradient(90deg, transparent 48%, rgba(37, 99, 235, .32) 49% 51%, transparent 52%),
    repeating-radial-gradient(circle, transparent 0 6px, rgba(37, 99, 235, .24) 7px 8px),
    #f5f8ff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .07);
}

.radar-mark::before {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  content: "";
  background: conic-gradient(from 0deg, transparent 0 77%, rgba(37, 99, 235, .08) 78%, rgba(37, 99, 235, .58) 100%);
  animation: heimradar-sweep 2.8s linear infinite;
}

.radar-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: #1d4ed8;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px rgba(37, 99, 235, .8);
}

@keyframes heimradar-sweep {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(1turn);
  }
}

@property --radar-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes heimradar-point-trail {
  to {
    --radar-angle: 360deg;
  }
}

@keyframes heimradar-hit {
  8%, 30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.app-shell.no-selection .toolbar .benchmark-product {
  display: none;
}

.app-shell.no-selection .toolbar .benchmark-wordmark {
  font-size: 26px;
}

.app-shell:not(.no-selection) .toolbar .benchmark-wordmark {
  display: none;
}

.app-shell:not(.no-selection) .toolbar .benchmark-product {
  padding-right: 0;
  border-right: 0;
}

@media (max-width: 640px) {
  .brand-link {
    gap: 8px;
  }

  .brand-link .benchmark-wordmark {
    font-size: 25px;
  }

  .benchmark-product {
    gap: 6px;
    padding-right: 10px;
    font-size: 25px;
  }

  .radar-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

}

@media (max-width: 760px) {
  .start-links {
    gap: 18px;
    min-height: 0;
    border-radius: 12px;
    padding: 16px;
  }

  .start-summary {
    align-self: start;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .start-sprezza-area {
    align-self: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    max-width: 100%;
    margin: 0;
  }

  .start-sprezza-link {
    grid-column: 1;
  }

  .start-sprezza-copy {
    font-size: 14px;
    line-height: 1.4;
  }

  .start-sprezza-link > span:first-child {
    font-size: 13px;
  }

  .start-sprezza-link .benchmark-wordmark {
    font-size: 18px;
  }
}

@media (min-width: 560px) and (max-width: 760px) {
  .start-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }
}

.sprezza-panel button.report-cta:not(:disabled):hover {
  border-color: #a6aaae;
  background: #faf9f5;
  filter: none;
}

.report-success-panel {
  max-width: 540px;
  padding: 38px 30px 30px;
}

.report-success-kicker {
  margin: 0 0 12px;
  color: #536174;
}

.report-success-panel h2 {
  margin: 0 0 18px;
  padding-right: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.2;
}

.report-success-panel p {
  line-height: 1.6;
}

.report-success-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.report-success-actions a {
  padding: 13px 16px;
  border: 1px solid #18365a;
  border-radius: 4px;
  color: #18365a;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.report-success-actions a:first-child {
  background: #18365a;
  color: #fff;
}

.report-success-actions a:hover {
  text-decoration: underline;
}

.home-search-dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 28px;
  border: 1px solid #dbe1e9;
  border-radius: 8px;
  color: #18365a;
  background: #fff;
}

.home-search-dialog::backdrop {
  background: rgba(15, 23, 42, .45);
}

.home-search-dialog h2 {
  margin: 0 48px 22px 0;
  font-size: 24px;
}

.home-search-dialog .top-search {
  display: block;
  width: 100%;
  max-width: none;
}

.home-search-dialog .top-search input {
  width: 100%;
  height: 44px;
}

.home-search-dialog .search-results {
  position: static;
  max-height: min(420px, 55dvh);
  margin-top: 12px;
  box-shadow: none;
}

/* Keep the details in one scrolling column. */
.app-shell:not(.no-selection) .side-pane {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 0;
  padding: 32px 24px var(--bottom-bar-space);
  background: #f8fafc;
}

.app-shell:not(.no-selection) .detail-panel {
  flex: 0 0 auto;
  width: 100%;
}

.app-shell:not(.no-selection) .detail-panel {
  overflow: visible;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 1500;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 24px;
  width: min(100%, 1720px);
  padding: var(--bottom-bar-block-start) max(24px, env(safe-area-inset-right)) var(--bottom-bar-block-end) max(24px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: #fff;
  transform: translateX(-50%);
}

.app-shell:not(.no-selection) .bottom-bar {
  position: fixed;
}

.app-shell.no-selection .bottom-bar {
  display: none;
}

.bottom-bar .share-card-cta {
  justify-self: start;
}

.bottom-bar .footer-links {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 1600;
  display: flex;
  flex-direction: column;
  width: 240px;
  gap: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .1);
}

.footer-menu {
  position: relative;
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.footer-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.footer-menu summary::-webkit-details-marker {
  display: none;
}

.footer-menu summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.footer-menu[open] summary::after {
  transform: rotate(225deg);
}

.bottom-bar .footer-links button {
  padding: 8px 12px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}

.bottom-bar .footer-links .swissmade-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
}

.bottom-bar .footer-links button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-brands {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  min-width: 0;
}

.bottom-bar .swissmade-logo {
  width: 150px;
}

.bottom-bar .sprezza-footer-logo {
  width: 96px;
  max-width: 100%;
  height: auto;
}

/* The map is a location aid; the home profile carries the information. */
.map-slot,
.map-slot .map-frame {
  height: 100%;
}

.app-shell.no-selection .map-heading,
.app-shell.no-selection .map-expand {
  display: none;
}

.app-shell:not(.no-selection) .profile-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
  padding: 68px 24px var(--bottom-bar-space);
  background: var(--bg);
}

/* On a selected profile the mark belongs to the left-hand profile column.
   The right-hand metrics can therefore start at the page top. */
@media (min-width: 1281px) {
  /* Keep the outer 24px page gutters while tightening only the column seam. */
  .app-shell:not(.no-selection) .profile-column {
    min-height: 0;
    overflow-y: auto;
    padding-right: 16px;
  }

  .app-shell:not(.no-selection) .side-pane {
    padding-top: 68px;
    padding-bottom: 0;
    padding-left: 16px;
  }

  /* Safari omits trailing flex padding from the scrollable area. */
  .app-shell:not(.no-selection) .side-pane::after {
    content: "";
    flex: 0 0 var(--bottom-bar-space);
  }

  .app-shell:not(.no-selection) .toolbar {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .app-shell:not(.no-selection) .brand-link {
    margin-left: 16px;
  }

  .metric-action-cue {
    top: -50px;
    right: 96px;
  }
}

.app-shell:not(.no-selection) .map-pane {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-summary {
  margin-bottom: 22px;
}

.profile-summary .home-search-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #18365a;
  font-size: 14px;
  font-weight: 600;
}

.profile-summary .home-search-toggle:hover {
  background: #edf1f5;
}

.app-shell.no-selection .profile-summary,
.app-shell.no-selection .profile-column > .sprezza-panel {
  display: none;
}

.map-heading {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 600;
}

.app-shell:not(.no-selection) .map-slot {
  height: clamp(240px, 32dvh, 360px);
  overflow: hidden;
  border-radius: 4px;
}


button.map-expand {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

button.map-expand:hover {
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
}

.app-shell:not(.no-selection) .profile-column > .sprezza-panel {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.map-dialog {
  width: min(1200px, calc(100vw - 32px));
  height: min(850px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.map-dialog[open] {
  display: flex;
  flex-direction: column;
}

.map-dialog::backdrop {
  background: rgba(15, 23, 42, .4);
}

.map-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.map-dialog-head h2 {
  color: var(--accent-dark);
  font-size: 20px;
}

.map-dialog-head button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 26px;
  cursor: pointer;
}

.map-dialog-body {
  flex: 1;
  min-height: 0;
}

.map-dialog-body .map-frame {
  height: 100%;
}

.quality-section {
  margin: 24px 12px 12px;
  border-top: 1px solid var(--line);
}

.quality-disclosure > summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.quality-disclosure > summary::-webkit-details-marker {
  display: none;
}

.quality-disclosure > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  font-weight: 400;
}

.quality-disclosure[open] > summary::after {
  content: "−";
}

.quality-disclosure[open] #quality-content {
  padding-top: 16px;
}

.quality-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.quality-indicator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 5px 10px;
  width: 100%;
  height: auto;
  min-height: 64px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.quality-indicator-name {
  font-size: 16px;
  font-weight: 600;
}

.quality-indicator-name small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.quality-indicator-status {
  font-size: 13px;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f9;
}

.quality-indicator.good {
  background: #f0f9f2;
  color: #1f6f35;
}

.quality-indicator.warn {
  background: #fff8e8;
  color: #8a5a12;
}

.quality-indicator.bad {
  background: #fef0ed;
  color: #9e2b20;
}

.quality-indicator.unknown {
  background: #f1f5f9;
  color: var(--muted);
}

button.quality-indicator:not(:disabled):hover {
  filter: brightness(.98);
}


@media (max-width: 1280px) {
  .app-shell:not(.no-selection) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 0 auto auto auto auto;
  }

  .app-shell:not(.no-selection) .profile-column {
    display: contents;
  }

  .app-shell:not(.no-selection) .map-pane {
    grid-column: 1;
    grid-row: 2;
  }

  .app-shell:not(.no-selection) .profile-column > .sprezza-panel {
    grid-column: 1;
    grid-row: 4;
    box-sizing: border-box;
    width: auto;
    margin: 12px 16px 0;
  }

  .app-shell:not(.no-selection) .map-pane {
    width: calc(100% - 32px);
    margin: 68px 16px 0;
  }

  .app-shell:not(.no-selection) .map-slot {
    height: 220px;
  }

  .app-shell:not(.no-selection) .side-pane {
    grid-column: 1;
    grid-row: 3;
    overflow: visible;
    padding: 16px 16px var(--bottom-bar-space);
    border-top: 0;
  }

}

@media (max-width: 540px) {
  .app-shell:not(.no-selection) .map-pane { width: auto; }
  .profile-summary .home-search-toggle {
    width: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .home-search-toggle-label {
    display: none;
  }

  .map-dialog-head h2 {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .app-shell:not(.no-selection) .map-pane {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: calc(100% - 24px);
    margin: 50px 12px 0;
    padding: 0;
  }

  .profile-summary {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .map-heading {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    padding-left: 12px;
  }

  .app-shell:not(.no-selection) .map-slot {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
  }

  button.map-expand {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    place-items: center;
    justify-self: end;
    min-height: 44px;
    margin-right: 12px;
    padding: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 0;
  }

  button.map-expand::after {
    content: "Vergrössern +";
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
  }

  button.map-expand:hover {
    background: transparent;
    text-decoration: none;
  }

  button.map-expand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  button.map-expand span {
    display: none;
  }

  .quality-indicators {
    grid-template-columns: minmax(0, 1fr);
  }

  .quality-indicator {
    min-height: 60px;
  }

  .metric-action-cue {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-shell:not(.no-selection) .bottom-bar {
    position: static;
    grid-row: 5;
    width: 100%;
    margin-top: 0;
    transform: none;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .app-shell:not(.no-selection) .side-pane {
    padding: 16px;
  }

  .app-shell:not(.no-selection):has(.quality-disclosure[open]) .side-pane {
    padding-bottom: 5px;
  }

  .app-shell:not(.no-selection):has(.quality-disclosure[open]) .detail-panel {
    padding-bottom: 14px;
  }

  .app-shell:not(.no-selection):has(.quality-disclosure[open]) .profile-column > .sprezza-panel {
    margin-top: 4px;
  }

  .quality-section {
    margin-bottom: 0;
  }

  .footer-brands {
    grid-column: 2;
    grid-row: 1;
    max-width: 100%;
  }

  .footer-menu {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .bottom-bar .share-card-cta {
    grid-column: 1;
    grid-row: 1;
  }

  .bottom-bar .footer-links {
    position: absolute;
    width: 240px;
  }

  .bottom-bar .swissmade-logo {
    width: min(150px, 42vw);
  }

  .bottom-bar .sprezza-footer-logo {
    width: min(96px, 27vw);
  }
}

@media (max-width: 420px) {
  .bottom-bar .share-card-cta {
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .bottom-bar .share-card-channels {
    gap: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 380px) {
  .bottom-bar .share-card-cta > span:first-child {
    display: none;
  }
}
