:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #607085;
  --line: #dce6ef;
  --surface: #ffffff;
  --soft: #eef6fb;
  --blue: #2457d6;
  --green: #07936b;
  --amber: #c97607;
  --red: #c73a4b;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f5f8fb;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-copy,
.brief-card,
.dashboard,
.flow article,
.limits {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 16px 50px rgba(27, 54, 93, 0.08);
}

.hero-copy {
  min-height: 300px;
  padding: 34px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker,
.panel-title span,
.brief-card span {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: 46px;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero-copy p:last-child,
.limits p,
.flow p {
  margin-bottom: 0;
}

.brief-card {
  border-radius: 8px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(36, 87, 214, 0.12), transparent 42%),
    #fff;
}

.brief-card strong {
  display: block;
  font-size: 33px;
  line-height: 1.04;
}

.brief-card small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.dashboard {
  padding: 24px;
  border-radius: 8px;
}

.dashboard-head,
.panel-title,
.limits {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sync-pill {
  flex: 0 0 auto;
  border: 1px solid #c9d8ea;
  border-radius: 999px;
  padding: 10px 14px;
  color: #2a4d7a;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 700;
}

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

.metrics article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.metrics article {
  min-height: 122px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metrics span,
.rows span,
.check-list b {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics strong {
  font-size: 30px;
  line-height: 1;
}

.metrics em {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 20px;
}

.chart-panel {
  min-height: 320px;
}

.bars {
  height: 220px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding-top: 30px;
}

.bars i {
  min-width: 0;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #2457d6, #0a9b78);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.08);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.rows div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e4edf5;
}

.check-list span {
  color: var(--ink);
  line-height: 1.35;
}

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

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

.rows b {
  font-size: 18px;
  line-height: 1.2;
}

.rows em {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rows div:nth-child(1) em {
  background: var(--amber);
}

.rows div:nth-child(2) em {
  background: var(--red);
}

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

.flow article {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
}

.flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.limits {
  margin-top: 22px;
  padding: 28px;
  border-radius: 8px;
}

.limits div {
  max-width: 650px;
}

.limits ul {
  width: min(420px, 100%);
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.limits li + li {
  margin-top: 10px;
}

@media (max-width: 880px) {
  .page {
    width: min(100% - 24px, 720px);
    padding-top: 18px;
  }

  .hero,
  .metrics,
  .panel-grid,
  .flow,
  .rows,
  .limits {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding: 26px;
  }

  h1 {
    font-size: 34px;
  }

  .dashboard-head,
  .limits {
    flex-direction: column;
  }

  .sync-pill {
    align-self: flex-start;
  }
}

@media (max-width: 460px) {
  .page {
    width: min(100% - 16px, 420px);
  }

  .hero-copy,
  .brief-card,
  .dashboard,
  .flow article,
  .limits {
    padding: 18px;
  }

  h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 23px;
  }

  p {
    font-size: 15px;
  }

  .metrics strong {
    font-size: 27px;
  }

  .bars {
    height: 170px;
    gap: 8px;
  }
}
