:root {
  color-scheme: dark;
  --bg: #120a22;
  --bg-soft: #201135;
  --panel: rgba(246, 248, 251, 0.96);
  --panel-dark: #24133c;
  --ink: #101827;
  --muted: #687386;
  --line: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --gic-purple: #57248b;
  --gic-purple-2: #7c3eb0;
  --green: #21a66f;
  --teal: #16a7a8;
  --blue: #1b2b87;
  --orange: #f29d38;
  --red: #d94a3a;
  --slate: #8592a6;
  --shadow: 0 24px 70px rgba(13, 4, 30, 0.38);
}

* {
  box-sizing: border-box;
}

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

html {
  font-size: clamp(13px, 0.62vw + 0.34rem, 16px);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(124, 62, 176, 0.36), transparent 28%),
    radial-gradient(circle at 76% 12%, rgba(22, 167, 168, 0.18), transparent 30%),
    linear-gradient(135deg, #09081a 0%, #1a0e2f 48%, #111827 100%);
  color: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

button,
select {
  font: inherit;
}

.presentation {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: clamp(6px, 0.65vw, 10px);
  padding: clamp(8px, 0.8vw, 14px);
  overflow: hidden;
}

.hero,
.legend-row,
.showcase-grid,
.ticker {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(340px, auto) auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.1vw, 18px);
}

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

.brand-mark {
  width: clamp(78px, 5.2vw, 100px);
  aspect-ratio: 1.8;
  height: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(150deg, #ffffff 0%, #dfe8f3 100%);
  box-shadow: var(--shadow);
  padding: 7px 10px;
}

.brand-mark img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.client-logos {
  display: none;
  min-width: 0;
  grid-template-columns: minmax(132px, 168px) repeat(4, clamp(48px, 3.4vw, 62px));
  align-items: center;
  gap: clamp(6px, 0.65vw, 10px);
}

.client-logo {
  width: clamp(48px, 3.5vw, 64px);
  aspect-ratio: 1.14;
  height: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px;
}

.client-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 72%;
  object-fit: contain;
}

.primary-client {
  width: min(168px, 100%);
  aspect-ratio: 3.1;
  padding: 6px 14px;
}

.primary-client img {
  max-width: 100%;
  max-height: 78%;
}

.eyebrow {
  margin: 0 0 5px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 2.45vw, 2.7rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.1vw, 1.22rem);
  line-height: 1.15;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 0.8vw, 14px);
}

.hero-chip,
.clock {
  min-height: clamp(46px, 3.3vw, 56px);
  display: grid;
  align-content: center;
  gap: 3px;
  padding: clamp(6px, 0.55vw, 9px) clamp(10px, 0.8vw, 14px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(87, 36, 139, 0.28);
}

.hero-chip span,
.clock span {
  color: #aeb9cb;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-chip strong,
.clock strong {
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  line-height: 1;
}

#sourceStatus {
  color: #70e4ba;
}

#sourceStatus.warning {
  color: var(--orange);
}

.control-row {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(8px, 0.9vw, 16px);
  padding: 0;
  align-self: end;
}

.control-row label {
  display: grid;
  gap: 6px;
  color: #aeb9cb;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

select {
  width: clamp(145px, 10vw, 190px);
  height: clamp(34px, 2.35vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 36px 0 12px;
}

select option {
  background: #111827;
  color: #fff;
}

.legend {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: #c8d2df;
  font-weight: 800;
}

.legend-row {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.view-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(87, 36, 139, 0.24);
}

.view-tab {
  min-width: 98px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c8d2df;
  cursor: pointer;
  font-weight: 900;
}

.view-tab.active {
  background: #ffffff;
  color: var(--gic-purple);
}

.legend span,
.status-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.done {
  background: var(--green);
}

.progress {
  background: var(--orange);
}

.pending {
  background: var(--red);
}

.showcase-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(300px, 0.9fr) minmax(340px, 1fr);
  grid-template-rows: minmax(240px, 0.5fr) minmax(0, 1fr);
  grid-template-areas:
    "hero status network"
    "heatmap heatmap heatmap";
  gap: clamp(10px, 1vw, 16px);
}

.activities-view {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.activities-view[hidden] {
  display: none;
}

.panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(8px, 0.68vw, 12px);
  border: 1px solid rgba(16, 24, 39, 0.08);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.count-pill {
  min-width: 82px;
  border-radius: 8px;
  background: #eaf7f0;
  color: var(--green);
  padding: 9px 12px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 950;
}

.count-pill.alert {
  background: #fff0ed;
  color: var(--red);
}

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

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

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

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

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

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

.panel-heading {
  flex: 0 0 auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.panel .eyebrow {
  color: var(--muted);
}

.scope-label {
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 8px;
  background: #eaf1f8;
  color: #314155;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.gauge-layout {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(125px, 0.62fr) minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
}

.gauge {
  --value: 0;
  width: clamp(105px, 8.4vw, 155px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #fff 63%, transparent 64%),
    conic-gradient(var(--green) calc(var(--value) * 1%), #e5ebf2 0);
  box-shadow: inset 0 0 0 1px #dce3ed;
}

.gauge-core {
  display: grid;
  place-items: center;
  text-align: center;
}

.gauge-core strong {
  font-size: clamp(1.65rem, 2vw, 2.25rem);
  line-height: 0.95;
}

.gauge-core span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.kpi-stack {
  display: grid;
  gap: 5px;
}

.kpi-stack div {
  min-height: 36px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #edf3f8;
  border-left: 6px solid var(--blue);
}

.kpi-stack div:nth-child(1) {
  border-left-color: var(--green);
}

.kpi-stack div:nth-child(3) {
  border-left-color: var(--red);
}

.kpi-stack span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.kpi-stack strong {
  font-size: 1.18rem;
  line-height: 1;
}

.status-layout {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(115px, 0.7fr) minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
}

.status-ring {
  --done: 0;
  --progress: 0;
  --pending: 0;
  width: clamp(105px, 8.2vw, 150px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #fff 58%, transparent 59%),
    conic-gradient(
      var(--green) 0 calc(var(--done) * 1%),
      var(--orange) 0 calc((var(--done) + var(--progress)) * 1%),
      var(--red) 0 100%
    );
}

.ring-core {
  display: grid;
  place-items: center;
}

.ring-core strong {
  font-size: 1.55rem;
  line-height: 1;
}

.ring-core span {
  color: var(--muted);
  font-weight: 850;
}

.status-list {
  display: grid;
  gap: 3px;
}

.status-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #e2e8f0;
}

.status-line strong {
  font-size: 0.92rem;
}

.status-line small {
  color: var(--muted);
  font-weight: 900;
}

.bar-chart,
.stage-bars,
.attention-list,
.activity-list {
  display: grid;
  gap: 9px;
}

.activity-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
  align-content: start;
}

.activity-list::-webkit-scrollbar {
  width: 10px;
}

.activity-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.activity-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #dfe7f0;
}

.done-row {
  grid-template-columns: 1fr auto;
  border-left: 6px solid var(--green);
}

.pending-row {
  grid-template-columns: 86px 1fr;
  border-left: 6px solid var(--red);
  background: #fff7f5;
}

.activity-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.activity-row strong,
.activity-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.activity-row span {
  color: var(--muted);
  font-weight: 800;
}

.activity-row small {
  overflow: hidden;
  color: #7c8797;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-row b {
  color: var(--green);
  font-size: 1.35rem;
}

.pending-row b {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffe6e1;
  color: var(--red);
}

.status-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.status-flag.pending {
  background: var(--red);
}

.status-flag.progress {
  background: var(--orange);
}

.network-panel .bar-chart {
  gap: 2px;
}

.bar-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
}

.rank {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.bar-main {
  display: grid;
  gap: 6px;
}

.network-panel .bar-main {
  gap: 1px;
}

.bar-main header,
.stage-row,
.attention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-main header strong,
.stage-row strong,
.attention-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-main header b {
  font-size: 0.86rem;
}

.bar-main small,
.stage-row span,
.attention-item span {
  color: var(--muted);
  font-weight: 750;
}

.network-panel .bar-main small {
  font-size: 0.62rem;
}

.stacked-track,
.mini-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf2;
}

.network-panel .stacked-track {
  height: 6px;
}

.stacked-track {
  display: flex;
}

.seg {
  min-width: 0;
  height: 100%;
  display: block;
}

.mini-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.stage-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(120px, 1fr) 52px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.stage-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.stage-row b {
  justify-self: end;
  font-size: 1.2rem;
}

.heatmap {
  --week-count: 4;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.95fr 0.8fr;
  align-items: stretch;
  gap: 8px;
}

.heatmap-group,
.qg-tile {
  --network-color: var(--green);
  --network-soft: rgba(33, 166, 111, 0.06);
}

.heatmap-group {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 5px;
  padding: 6px;
  border: 1.5px solid var(--network-color);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--network-soft), transparent 120px),
    rgba(255, 255, 255, 0.42);
}

.heatmap-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.heatmap-group-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.heatmap-group-head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.qg-group-grid {
  min-height: 0;
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 72px;
  gap: 5px;
}

.network-amigao .qg-group-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qg-tile {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 4px 1fr auto;
  gap: 3px;
  padding: 5px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--network-soft), transparent 46%),
    #f7fafc;
  border: 1px solid #d7e0ea;
  border-color: color-mix(in srgb, var(--network-color) 30%, #dde6ef);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.qg-tile.heat-mid {
  background:
    linear-gradient(90deg, var(--network-soft), transparent 46%),
    #fff8ee;
}

.qg-tile.heat-low,
.qg-tile.heat-empty {
  background:
    linear-gradient(90deg, var(--network-soft), transparent 46%),
    #fff3f1;
}

.network-amigao {
  --network-color: #8b4a4a;
  --network-soft: rgba(139, 74, 74, 0.08);
}

.network-avenida {
  --network-color: #6aaed6;
  --network-soft: rgba(106, 174, 214, 0.11);
}

.network-boa {
  --network-color: #8a6bb1;
  --network-soft: rgba(138, 107, 177, 0.1);
}

.network-parana {
  --network-color: #d59a45;
  --network-soft: rgba(213, 154, 69, 0.11);
}

.qg-tile header,
.qg-tile footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.qg-tile header div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.qg-tile header strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.68rem, 0.62vw, 0.82rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qg-tile header span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.46rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.qg-tile header b {
  color: var(--ink);
  font-size: clamp(0.68rem, 0.62vw, 0.82rem);
}

.qg-meter .mini-track {
  height: 4px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(var(--week-count), minmax(0, 1fr));
  gap: 2px;
}

.week-chip {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  border-radius: 5px;
  color: #fff;
  padding: 1px;
  text-align: center;
}

.week-chip span {
  font-size: 0.43rem;
  font-weight: 950;
}

.week-chip strong {
  font-size: 0.5rem;
  line-height: 1;
}

.week-chip.heat-good {
  background: var(--green);
}

.week-chip.heat-mid {
  background: var(--orange);
}

.week-chip.heat-low {
  background: var(--red);
}

.week-chip.heat-empty {
  background: #cbd5e1;
  color: #334155;
}

.qg-tile footer {
  color: var(--muted);
  font-size: 0.43rem;
  font-weight: 850;
}

.qg-tile footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qg-group-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
}

.qg-row {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(118px, 0.78fr) 28px;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border: 1px solid color-mix(in srgb, var(--network-color) 26%, #dce5ee);
  border-radius: 7px;
  background:
    linear-gradient(90deg, var(--network-soft), transparent 42%),
    #f8fbfd;
}

.qg-row > strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qg-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.qg-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
}

.qg-row-top b {
  color: var(--ink);
  font-size: 0.82rem;
}

.qg-row-main .mini-track {
  height: 5px;
}

.week-dots {
  display: grid;
  grid-template-columns: repeat(var(--week-count), minmax(0, 1fr));
  gap: 3px;
}

.week-dot {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 3px 2px;
  border-radius: 5px;
  color: #fff;
  line-height: 1;
}

.week-dot span {
  font-size: 0.48rem;
  font-weight: 950;
}

.week-dot strong {
  font-size: 0.5rem;
}

.week-dot.heat-good {
  background: var(--green);
}

.week-dot.heat-mid {
  background: var(--orange);
}

.week-dot.heat-low {
  background: var(--red);
}

.week-dot.heat-empty {
  background: #d4deea;
  color: #334155;
}

.qg-row > em {
  justify-self: end;
  color: var(--muted);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
}

.qg-row.heat-low,
.qg-row.heat-empty {
  background:
    linear-gradient(90deg, rgba(217, 74, 58, 0.07), transparent 45%),
    #fff7f5;
}

.attention-item {
  min-height: 61px;
  padding: 12px;
  border-radius: 8px;
  background: #fff4f1;
  border-left: 6px solid var(--red);
}

.attention-item b {
  color: var(--red);
  font-size: 1.15rem;
}

.attention-item div {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.attention-item em {
  color: var(--red);
  font-style: normal;
  font-size: 1.25rem;
  font-weight: 900;
}

.attention-good {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  border-radius: 8px;
  background: #ecfdf3;
  color: #17693f;
}

.attention-good span {
  color: #45745e;
  font-weight: 750;
}

.ticker {
  min-height: 26px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 2px;
  color: #c8d2df;
  font-size: 0.82rem;
  font-weight: 850;
}

.ticker span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #2c1b18;
  color: #fff;
  box-shadow: var(--shadow);
}

.empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

@media (min-width: 1600px) and (min-height: 900px) {
  .presentation {
    gap: 8px;
    padding: 12px;
  }

  .showcase-grid {
    grid-template-columns: minmax(380px, 1.18fr) minmax(320px, 0.82fr) minmax(360px, 1fr);
  }

  .panel {
    padding: 10px;
  }

  .gauge {
    width: clamp(115px, 8.4vw, 160px);
  }

  .status-ring {
    width: clamp(110px, 8vw, 155px);
  }
}

@media (max-width: 1260px) {
  .hero {
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr);
  }

  .client-logos,
  .hero-metrics {
    justify-self: end;
  }

  .control-row {
    justify-self: start;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(200px, 0.5fr) minmax(180px, 0.45fr) minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "status network"
      "heatmap heatmap";
  }

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

@media (max-width: 820px) {
  .presentation {
    padding: 16px;
  }

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

  .control-row,
  .hero-metrics {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-logos,
  .hero-metrics,
  .control-row {
    justify-self: stretch;
  }

  .client-logos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .client-logo,
  .primary-client {
    width: 100%;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .legend {
    margin-left: 0;
    justify-content: flex-start;
  }

  .showcase-grid,
  .gauge-layout,
  .status-layout {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-areas:
      "hero"
      "status"
      "network"
      "heatmap";
  }

  .heatmap {
    grid-template-columns: 1fr;
    overflow: hidden;
  }
}
