:root {
  --bg: #f4f6f8;
  --paper: rgba(255, 255, 255, 0.92);
  --paper-strong: #ffffff;
  --line: #dce4eb;
  --ink: #1c355f;
  --muted: #667791;
  --navy: #2f66ad;
  --navy-deep: #214e8a;
  --cyan: #18c4d8;
  --cyan-soft: #dff7fa;
  --yellow: #ffc533;
  --yellow-soft: #fff5d6;
  --purple: #a46cc1;
  --purple-soft: #f6ebfb;
  --red: #ec4e8b;
  --red-soft: #ffe5ef;
  --shadow: 0 18px 44px rgba(33, 78, 138, 0.08);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --maxw: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(226, 245, 247, 0.55) 26%, transparent 45%),
    linear-gradient(180deg, #f7fafc 0%, #f2f5f8 100%);
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 4px 18px;
}

.topbar-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 86px;
  height: auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-title {
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: 21px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.topbar-note,
.eyebrow,
.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.layout {
  display: grid;
  gap: 18px;
}

.topbar-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 5px 7px 5px 10px;
  border: 1px solid rgba(220, 228, 235, 0.95);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar-credit span {
  white-space: nowrap;
}

.topbar-credit img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  flex: 0 0 auto;
}

.hero-panel,
.panel,
.section-block {
  border: 1px solid rgba(220, 228, 235, 0.95);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  gap: 18px;
  padding: 22px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
  max-width: 11ch;
}

.hero-text,
.section-copy,
.map-card-head p,
.photo-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.hero-stat {
  display: grid;
  grid-template-columns: minmax(92px, 0.5fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 252, 0.92));
  border: 1px solid var(--line);
}

.hero-stat .eyebrow {
  font-size: 10px;
}

.hero-stat strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-media {
  display: grid;
  gap: 12px;
}

.map-card {
  border-radius: 18px;
  padding: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.map-card-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-head.compact {
  align-items: start;
}

.section-head.selector-head {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
}

.map-card-head h2,
.section-head h2 {
  margin: 4px 0 0;
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.map-frame-wrap {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  height: 460px;
  position: relative;
  background: #eef4f8;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(1.04);
}

.map-link-row {
  margin-top: 12px;
  display: flex;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy-deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.section-block {
  padding: 22px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.tab {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 102, 173, 0.18);
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: grid;
  gap: 18px;
}

.chart-wrap.short {
  height: 250px;
}

.chart-wrap.mini {
  height: 280px;
  margin-top: 10px;
}

.pillar-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.pillar-profile-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.pillar-profile-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-size: 13px;
}

.pillar-profile-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.pillar-profile-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-label {
  display: block;
  margin: 14px 0 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.control-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 40px 8px 13px;
  border: 1px solid rgba(102, 119, 145, 0.28);
  border-radius: 12px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--navy-deep) 50%) calc(100% - 20px) 52% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--navy-deep) 50%, transparent 50%) calc(100% - 16px) 52% / 6px 6px no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 8px 18px rgba(33, 78, 138, 0.07);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.control-select:hover {
  border-color: rgba(47, 102, 173, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 10px 22px rgba(33, 78, 138, 0.10);
  transform: translateY(-1px);
}

.control-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow:
    0 0 0 3px rgba(47, 102, 173, 0.12),
    0 10px 22px rgba(33, 78, 138, 0.10);
}

.compact-select {
  width: min(390px, 100%);
}

.selector-head .compact-select {
  align-self: flex-start;
}

.summary-grid > .panel-chart {
  overflow: hidden;
}

.selected-solution-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  margin-top: 16px;
}

.flat-panel {
  box-shadow: none;
  border-radius: 16px;
}

.flat-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.fact-list div,
.rank-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.fact-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-list strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.rank-row span,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--navy-deep);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rank-row em {
  font-style: normal;
  font-weight: 800;
  color: var(--navy);
}

.overview-grid,
.analytics-grid {
  display: grid;
  gap: 18px;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.overview-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.9));
}

.overview-card .solution-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--navy-deep);
  background: rgba(47, 102, 173, 0.08);
}

.overview-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.1;
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.overview-score {
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 800;
}

.overview-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.overview-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.analytics-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
}

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

.summary-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  align-items: stretch;
  gap: 18px;
}

.pillar-profile-panel {
  grid-column: 1 / -1;
}

.panel {
  padding: 20px;
}

.panel-chart {
  min-width: 0;
}

.chart-wrap {
  height: 300px;
  margin-top: 14px;
}

.score-strip-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.score-strip-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.62fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.summary-matrix-panel {
  min-width: 0;
}

.compact-table-shell {
  margin-top: 14px;
}

.compact-matrix-table {
  min-width: 520px;
  border-spacing: 0 8px;
}

.compact-matrix-table th {
  padding: 0 8px 6px;
  font-size: 10px;
}

.compact-matrix-table td {
  padding: 9px 8px;
  font-size: 12px;
}

.compact-matrix-table td:first-child {
  max-width: 180px;
  line-height: 1.25;
}

.score-strip-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
}

.score-strip-label span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.score-strip-label strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-strip-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef4;
}

.score-strip-track div {
  height: 100%;
  border-radius: inherit;
}

.score-strip-value {
  min-width: 62px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #f4f7fa;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.score-strip-value.is-top {
  background: var(--cyan-soft);
}

.influence-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.influence-profile-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(220, 228, 235, 0.96);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.94));
  box-shadow: 0 14px 30px rgba(33, 78, 138, 0.07);
}

.influence-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent, var(--navy));
}

.influence-card-top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--navy)) 13%, #ffffff), #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent, var(--navy)) 22%, var(--line));
}

.influence-card-top > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 34%, #ffffff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 78%, #ffffff 0 28%, transparent 29%),
    var(--accent, var(--navy));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.influence-card-top strong,
.influence-card-top em {
  display: block;
  min-width: 0;
}

.influence-card-top strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.influence-card-top em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.influence-card-top b {
  padding: 8px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.influence-rank-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.influence-rank-row {
  display: grid;
  gap: 7px;
}

.influence-rank-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.influence-rank-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eef4f8;
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 800;
}

.influence-rank-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.influence-rank-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.influence-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef4;
}

.influence-meter div {
  height: 100%;
  border-radius: inherit;
}

.persona-profile-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.94));
}

.persona-profile-copy {
  min-width: 0;
}

.persona-profile-copy h3 {
  margin: 8px 0 10px;
  font-family: "Varela Round", Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.persona-profile-copy p {
  max-width: 82ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.persona-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.persona-highlights span {
  padding: 13px;
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  background: rgba(223, 247, 250, 0.62);
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.persona-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.persona-mode-grid div {
  padding: 13px;
  border: 1px solid rgba(220, 228, 235, 0.95);
  border-radius: 12px;
  background: #ffffff;
}

.persona-mode-grid strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 6px;
}

.persona-mode-grid p {
  font-size: 12px;
  line-height: 1.5;
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.persona-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(47, 102, 173, 0.16);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 800;
}

.solution-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.solution-switcher button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.solution-switcher button.active {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(47, 102, 173, 0.20);
}

.score-stage {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(47, 102, 173, 0.98), rgba(24, 196, 216, 0.92));
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.score-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.score-value {
  margin-top: 8px;
  font-size: 58px;
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 800;
}

.score-foot {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.score-aside {
  display: grid;
  gap: 10px;
  min-width: 150px;
}

.score-chip {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.score-chip span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.score-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.pillar-list,
.persona-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.pillar-row,
.persona-row {
  display: grid;
  gap: 10px;
}

.row-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
}

.bar-track {
  height: 9px;
  border-radius: 999px;
  background: #e6edf3;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
}

.table-shell {
  margin-top: 16px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0 12px;
}

th {
  padding: 0 10px 8px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

td {
  padding: 12px 10px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
}

td:first-child {
  border-left: 1px solid var(--line);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  font-weight: 700;
}

td:last-child {
  border-right: 1px solid var(--line);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.matrix-cell {
  position: relative;
}

.heat-table td:not(:first-child) {
  background: rgba(8, 182, 197, var(--heat, 0.12));
  color: #173957;
  font-weight: 800;
  text-align: center;
}

.heat-table td:not(:first-child)[style*="0.7"],
.heat-table td:not(:first-child)[style*="0.8"] {
  color: #ffffff;
}

.matrix-meter {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  color: #ffffff;
}

.kpi-source {
  color: var(--navy);
  font-weight: 700;
}

.kpi-note {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .hero-panel,
  .summary-grid,
  .analytics-grid,
  .selected-solution-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .pillar-profile-grid,
  .influence-profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-frame-wrap {
    height: 380px;
  }

  .chart-wrap {
    height: 280px;
  }

  .chart-wrap.short {
    height: 240px;
  }

  .chart-wrap.mini {
    height: 250px;
  }

  .persona-highlights,
  .persona-mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 10px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 2px 14px;
  }

  .topbar-side {
    align-items: flex-start;
  }

  .brand-lockup {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .brand-logo {
    width: 70px;
  }

  .brand-title {
    font-size: 18px;
  }

  .hero-panel,
  .section-block,
  .panel {
    padding: 16px;
    border-radius: 16px;
  }

  .hero-panel {
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: 2rem;
    max-width: none;
  }

  .hero-text,
  .section-copy,
  .map-card-head p,
  .photo-note {
    font-size: 13px;
    line-height: 1.5;
  }

  .overview-grid,
  .fact-list,
  .pillar-profile-grid,
  .influence-profile-grid {
    grid-template-columns: 1fr;
  }

  .score-strip-row {
    grid-template-columns: 1fr auto;
  }

  .score-strip-track {
    grid-column: 1 / -1;
    order: 3;
  }

  .tabs {
    border-radius: 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .map-frame-wrap {
    height: 300px;
  }

  .section-head,
  .map-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-wrap,
  .chart-wrap.short {
    height: 220px;
  }

  .chart-wrap.mini {
    height: 240px;
  }

  .score-stage {
    flex-direction: column;
    padding: 16px;
  }

  .score-value {
    font-size: 48px;
  }

  .score-aside {
    min-width: 0;
  }

  table {
    min-width: 680px;
  }
}

@media (max-width: 460px) {
  .topbar-note {
    display: none;
  }

  .hero-stats {
    gap: 8px;
  }

  .hero-stat {
    padding: 12px;
  }

  .overview-card {
    padding: 16px;
  }

  .overview-score {
    font-size: 38px;
  }

  .chart-wrap,
  .chart-wrap.short {
    height: 200px;
  }

  .map-frame-wrap {
    height: 260px;
  }

  .chart-wrap.mini {
    height: 220px;
  }

  .control-select,
  .compact-select {
    width: 100%;
    min-height: 44px;
  }
}
