:root {
  --ink: #263a74;
  --muted: #63708e;
  --paper: #f3f7fb;
  --card: #ffffff;
  --line: #d8e3ed;
  --accent: #3ca0ce;
  --accent-deep: #263a74;
  --dark: #263a74;
  --sky-soft: #e8f5fb;
  --navy-soft: #e6e9f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 79% 4%, rgba(60, 160, 206, 0.17), transparent 30rem),
    linear-gradient(180deg, #f9fbfd 0, var(--paper) 34rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  width: min(1280px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(38, 58, 116, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 6px;
  height: 35px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent) 0 50%, var(--ink) 50% 100%);
  transform: skewX(-12deg);
  box-shadow: 7px 0 0 rgba(60, 160, 206, 0.15);
}

.brand > span:last-child {
  display: grid;
  gap: 3px;
}

.brand strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.brand small {
  color: #7a86a0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-pill {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #65718b;
  font-size: 12px;
  font-weight: 650;
}

.live-pill > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(60, 160, 206, 0.13);
  animation: pulse 2.6s ease-in-out infinite;
}

.company-logo {
  width: 166px;
  height: 64px;
  padding: 4px 9px;
  border: 1px solid rgba(38, 58, 116, 0.1);
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(38, 58, 116, 0.08);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 70px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  column-gap: 70px;
  align-items: end;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  top: 24px;
  right: 4%;
  border: 1px solid rgba(60, 160, 206, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(60, 160, 206, 0.035),
    0 0 0 72px rgba(38, 58, 116, 0.025);
}

.eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.eyebrow > span {
  width: 29px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.067em;
  font-weight: 830;
  color: var(--ink);
}

.hero h1 em {
  color: var(--accent);
  font-family: inherit;
  font-style: italic;
  font-weight: 780;
}

.hero-copy {
  max-width: 430px;
  margin: 0 0 6px;
  color: #64708a;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.01em;
}

.range-strip {
  grid-column: 1 / -1;
  margin-top: 47px;
  padding-top: 19px;
  border-top: 1px solid rgba(38, 58, 116, 0.14);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #53607d;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.015em;
}

.range-strip i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(320px, 0.68fr);
  gap: 16px;
}

.controls-card,
.summary-card,
.chart-card {
  border: 1px solid rgba(38, 58, 116, 0.11);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(38, 58, 116, 0.06);
}

.controls-card {
  padding: 30px 32px 18px;
  background: var(--card);
}

.section-heading,
.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.chart-heading h2,
.model-note h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.reset-button {
  min-height: 36px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #65718b;
  font-size: 12px;
  font-weight: 680;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

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

.reset-button span {
  font-size: 16px;
}

.metric-list {
  margin-top: 19px;
}

.metric-row {
  padding: 21px 0 22px;
  border-top: 1px solid #e4ebf1;
}

.metric-row:first-child {
  border-top: 0;
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.metric-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.metric-number {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border: 1px solid #dce6ef;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8190aa;
  font-size: 9px;
  font-weight: 800;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.is-driver .metric-number {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.metric-name h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.metric-name p {
  margin: 0;
  color: #8290a8;
  font-size: 10px;
  line-height: 1.2;
}

.metric-relation {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 7px;
  border: 1px solid rgba(60, 160, 206, 0.17);
  border-radius: 999px;
  background: rgba(60, 160, 206, 0.07);
  color: #3d7da4;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.value-input {
  width: 140px;
  height: 43px;
  padding: 0 11px 0 2px;
  flex: 0 0 auto;
  border: 1px solid #d8e3ed;
  border-radius: 11px;
  background: #f6f9fc;
  display: flex;
  align-items: center;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.value-input:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(60, 160, 206, 0.14);
}

.value-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.value-input input::-webkit-inner-spin-button,
.value-input input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.value-input > span:last-child {
  min-width: 28px;
  margin-left: 7px;
  color: #74819a;
  text-align: right;
  font-size: 10px;
  font-weight: 700;
}

.slider-line {
  margin: 15px 0 0 42px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-slider {
  width: 100%;
  height: 18px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  background: transparent;
  touch-action: pan-y;
}

.metric-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) 0 var(--progress),
    #e2eaf1 var(--progress) 100%
  );
}

.metric-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #e2eaf1;
}

.metric-slider::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.metric-slider::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: -6.5px;
  border: 3px solid var(--card);
  border-radius: 50%;
  appearance: none;
  background: #263a74;
  box-shadow: 0 0 0 1px #263a74;
  transition: transform 140ms ease;
}

.metric-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid var(--card);
  border-radius: 50%;
  background: #263a74;
  box-shadow: 0 0 0 1px #263a74;
}

.metric-slider:hover::-webkit-slider-thumb,
.metric-slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.16);
}

.metric-slider:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

.sync-label {
  width: 91px;
  flex: 0 0 91px;
  color: #99a6b9;
  font-size: 9px;
  font-weight: 750;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.is-driver .sync-label {
  color: var(--accent);
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 25px;
  background:
    radial-gradient(circle at 92% 4%, rgba(60, 160, 206, 0.4), transparent 13rem),
    linear-gradient(145deg, #2d4b89 0%, #263a74 48%, #1c2c5d 100%);
  color: #f7f8f2;
}

.summary-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  top: -145px;
  right: -100px;
  border-radius: 50%;
  background: rgba(60, 160, 206, 0.17);
  box-shadow: 0 0 80px rgba(60, 160, 206, 0.1);
}

.summary-card > * {
  position: relative;
  z-index: 1;
}

.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-top p {
  margin: 0;
  color: #b2b8ac;
  font-size: 11px;
  font-weight: 700;
}

.summary-top > span {
  padding: 5px 8px;
  border: 1px solid rgba(162, 195, 218, 0.36);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(60, 160, 206, 0.16);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.index-display {
  margin-top: 26px;
  display: flex;
  align-items: flex-start;
  font-variant-numeric: tabular-nums;
}

.index-display strong {
  font-size: clamp(76px, 7.5vw, 112px);
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.index-display span {
  margin: 4px 0 0 8px;
  color: var(--accent);
  font-size: 23px;
  font-weight: 850;
}

.index-caption {
  margin: 15px 0 18px;
  color: #858e80;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.index-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.index-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(60, 160, 206, 0.5);
  transition: width 120ms ease-out;
}

.driver-note {
  margin-top: 25px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  gap: 11px;
}

.driver-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.driver-note small,
.driver-note strong {
  display: block;
}

.driver-note small {
  margin-bottom: 3px;
  color: #899082;
  font-size: 9px;
}

.driver-note strong {
  font-size: 11px;
}

.summary-stats {
  margin: 25px 0 0;
}

.summary-stats > div {
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-stats dt {
  color: #92998c;
  font-size: 10px;
}

.summary-stats dd {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.preset-wrap {
  margin-top: 18px;
}

.preset-wrap > p {
  margin: 0 0 10px;
  color: #8e9688;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.presets button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #aab1a4;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.presets button:hover,
.presets button.active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.chart-card {
  margin-top: 16px;
  padding: 31px 32px 24px;
  background: var(--card);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #77849c;
  font-size: 10px;
  font-weight: 700;
}

.chart-legend span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(60, 160, 206, 0.12);
}

.donut-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(280px, 1.14fr);
  gap: 48px;
  align-items: center;
}

.donut-figure {
  width: min(100%, 430px);
  margin: 0 auto;
}

.donut-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.donut-orbit {
  fill: none;
  stroke: #dce8f0;
  stroke-width: 1;
  stroke-dasharray: 2 8;
}

.donut-track,
.donut-progress {
  fill: none;
  stroke-width: 38;
}

.donut-track {
  stroke: #e6edf3;
}

.donut-progress {
  stroke: url(#workload-gradient);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 180px 180px;
  transition: stroke-dasharray 220ms ease-out;
}

.donut-inner {
  fill: #fff;
  stroke: rgba(60, 160, 206, 0.1);
  stroke-width: 1;
}

.donut-value {
  fill: #263a74;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 52px;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.donut-caption {
  fill: #3ca0ce;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.donut-subcaption {
  fill: #8a96aa;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donut-details {
  display: grid;
  gap: 22px;
}

.donut-legend-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.donut-legend-list > div {
  padding: 17px;
  border: 1px solid #dfe8ef;
  border-radius: 15px;
  background: #f7fafc;
  display: flex;
  align-items: center;
  gap: 11px;
}

.legend-swatch {
  width: 11px;
  height: 42px;
  flex: 0 0 11px;
  border-radius: 99px;
}

.workload-swatch {
  background: linear-gradient(180deg, #3ca0ce, #263a74);
}

.reserve-swatch {
  background: #dce7ef;
}

.donut-legend-list p {
  margin: 0;
}

.donut-legend-list small,
.donut-legend-list strong {
  display: block;
}

.donut-legend-list small {
  margin-bottom: 5px;
  color: #7a879e;
  font-size: 9px;
  font-weight: 700;
}

.donut-legend-list strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.diagram-insight {
  padding: 20px;
  border-radius: 17px;
  background:
    linear-gradient(120deg, rgba(60, 160, 206, 0.16), rgba(60, 160, 206, 0.04)),
    #edf6fb;
  display: flex;
  gap: 14px;
}

.diagram-insight > span {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
}

.diagram-insight small,
.diagram-insight strong {
  display: block;
}

.diagram-insight small {
  margin-bottom: 4px;
  color: #728098;
  font-size: 9px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.diagram-insight strong {
  color: var(--ink);
  font-size: 13px;
}

.diagram-insight p {
  max-width: 420px;
  margin: 8px 0 0;
  color: #65728a;
  font-size: 11px;
  line-height: 1.55;
}

.current-values {
  padding-top: 20px;
  border-top: 1px solid #e1e9f0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.current-values > div {
  min-width: 0;
  position: relative;
  padding-left: 14px;
}

.current-values > div > span {
  position: absolute;
  width: 5px;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 99px;
}

.current-values small,
.current-values strong {
  display: block;
}

.current-values small {
  margin-bottom: 5px;
  color: #7c899f;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.current-values strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-note {
  margin: 80px 0 74px;
  display: grid;
  grid-template-columns: 50px minmax(250px, 0.75fr) minmax(300px, 1fr) minmax(205px, 0.54fr);
  gap: 34px;
  align-items: start;
}

.note-number {
  width: 32px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--navy-soft);
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
}

.model-note > p {
  margin: 0;
  color: #66728a;
  font-size: 13px;
  line-height: 1.75;
}

.dependency-rules {
  padding: 11px;
  border: 1px solid #d6e2eb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 6px;
}

.dependency-rules > span {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 9px;
  background: #edf6fb;
  display: grid;
  grid-template-columns: 1fr 17px 1fr;
  align-items: center;
  gap: 3px;
  font-size: 9px;
}

.dependency-rules b,
.dependency-rules strong {
  font-weight: 800;
  white-space: nowrap;
}

.dependency-rules b {
  color: var(--ink);
}

.dependency-rules strong {
  color: var(--accent);
  text-align: right;
}

.dependency-rules i {
  color: #8b98ac;
  font-style: normal;
  text-align: center;
}

footer {
  min-height: 76px;
  border-top: 1px solid rgba(38, 58, 116, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7c899f;
  font-size: 10px;
  font-weight: 700;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.84);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    max-width: 820px;
  }

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

  .donut-layout {
    gap: 28px;
  }

  .summary-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 34px;
  }

  .summary-top,
  .index-display,
  .index-caption,
  .index-track {
    grid-column: 1;
  }

  .driver-note,
  .summary-stats,
  .preset-wrap {
    grid-column: 2;
  }

  .driver-note {
    grid-row: 1 / span 2;
    margin-top: 0;
    align-self: start;
  }

  .summary-stats {
    grid-row: 3 / span 3;
    margin-top: 14px;
  }

  .preset-wrap {
    grid-row: 6;
  }

  .model-note {
    grid-template-columns: 40px 1fr 1fr;
  }

  .dependency-rules {
    grid-column: 2 / -1;
  }
}

@media (max-width: 680px) {
  .topbar,
  .page-shell {
    width: min(100% - 28px, 1280px);
  }

  .topbar {
    min-height: 76px;
    gap: 12px;
  }

  .live-pill {
    display: none;
  }

  .header-right {
    gap: 8px;
  }

  .company-logo {
    width: 132px;
    height: 56px;
    padding: 3px 7px;
    border-radius: 11px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 11px;
  }

  .hero {
    padding: 48px 0 31px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 70px);
  }

  .hero-copy {
    font-size: 15px;
  }

  .range-strip {
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.6;
  }

  .controls-card,
  .summary-card,
  .chart-card {
    border-radius: 20px;
  }

  .controls-card,
  .chart-card {
    padding: 24px 18px 14px;
  }

  .metric-topline {
    align-items: flex-start;
    gap: 12px;
  }

  .metric-name {
    gap: 9px;
  }

  .metric-number {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .value-input {
    width: 112px;
    height: 40px;
  }

  .slider-line {
    margin-left: 34px;
  }

  .sync-label {
    display: none;
  }

  .summary-card {
    padding: 25px 22px;
    display: block;
  }

  .driver-note {
    margin-top: 24px;
  }

  .current-values {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }

  .chart-heading {
    align-items: flex-end;
  }

  .chart-legend {
    font-size: 9px;
  }

  .donut-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .donut-figure {
    width: min(100%, 340px);
  }

  .donut-details {
    gap: 12px;
  }

  .model-note {
    margin: 58px 0 52px;
    grid-template-columns: 34px 1fr;
    gap: 24px 14px;
  }

  .model-note > p,
  .dependency-rules {
    grid-column: 2;
  }

  footer {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 9px;
  }

  .brand strong {
    max-width: 84px;
    display: block;
    font-size: 10px;
    line-height: 1.15;
  }

  .company-logo {
    width: 118px;
    height: 52px;
  }

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

  .section-heading h2,
  .chart-heading h2 {
    font-size: 20px;
  }

  .reset-button {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .reset-button {
    font-size: 0;
  }

  .reset-button span {
    font-size: 16px;
  }

  .metric-name h3 {
    font-size: 12px;
  }

  .value-input {
    width: 105px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
