html[data-a11y-scheme="bw"] .rating__bars,
html[data-a11y-scheme="bw"] .rating__fade { display: none; }
html[data-a11y-scheme="bw"] .donut,
html[data-a11y-scheme="bw"] .legend__swatch { filter: grayscale(1) contrast(1.4); }
.statuses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.status {
  position: relative;
  min-height: 150px;
  padding: 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.875rem;
  background: var(--surface);
  border-top: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transition: box-shadow .18s, transform .18s;
}
.status:hover {
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(20, 33, 61, .12);
  transform: translateY(-2px);
}
.status__count {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.status__label {
  min-width: 0;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
}
.status__top {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.status__icon {
  flex: 0 0 auto;
  margin: -0.5rem -0.5rem 0 auto;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.status__icon svg { width: 1.75rem; height: 1.75rem; }
.services {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.service {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: box-shadow .18s, transform .18s;
}
.service:hover {
  box-shadow: 0 10px 24px rgba(20, 33, 61, .1);
  transform: translateY(-2px);
}
.service__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.service__text {
  margin-top: 14px;
  flex: 1;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
}
.service__link {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
}
.summary {
  display: grid;
  grid-template-columns: calc(20% - 16px) minmax(0, 1fr) calc(40% - 12px);
  gap: 16px;
  align-items: stretch;
}
.rating {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .18);
}
.rating__bars {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 10px 22px;
  opacity: .9;
  pointer-events: none;
}
.rating__bar {
  flex: 1;
  display: block;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, .16);
}
.rating__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(6, 39, 112, .75), rgba(6, 39, 112, 0));
  opacity: .61;
  pointer-events: none;
}
.rating__label {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.rating__value {
  position: relative;
  margin-top: auto;
  padding-top: 30px;
  font-size: 6rem;
  line-height: .82;
  font-weight: 700;
  letter-spacing: -.05em;
}
.rating__caption {
  position: relative;
  margin-top: 18px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .92);
}
.counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}
.counter {
  display: block;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-top: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}
.counter:hover {
  box-shadow: 0 8px 20px rgba(20, 33, 61, .1); transform: translateY(-2px);
}
.counter__value {
  font-size: 1.875rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.counter__label {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted-2);
}
.latest {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 22px;
  background: #DDE8F9;
  border: 1.5px solid #A9C6F2;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.latest__tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--brand);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.latest__title {
  margin: 24px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest__meta {
  margin-top: auto;
  padding-top: 26px;
  border-top: 3px solid #A9C6F2;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  font-size: 0.9375rem;
}
.latest__meta dt { color: #9AA4B8; margin: 0; }
.latest__meta dd { margin: 0; color: var(--ink); line-height: 1.35; }
.latest__nav {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.latest__counter { margin-right: auto; font-size: 0.9375rem; color: var(--muted); }
.latest__arrow {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid #C7DBFA;
  box-shadow: 0 2px 6px rgba(20, 33, 61, .08);
  color: var(--brand);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.latest__arrow:hover { background: var(--brand); color: #fff; }
.analytics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) calc(40% - 12px);
  gap: 16px;
  align-items: stretch;
}
.chart-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.chart-card__body {
  margin-top: 26px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 34px;
}
.donut {
  position: relative;
  width: 250px;
  height: 250px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(20, 33, 61, .14);
}
.donut__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut__value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.donut__value small { font-size: 1.25rem; font-weight: 600; color: var(--muted-3); }
.donut__caption { margin-top: 3px; font-size: 0.7813rem; color: #9AA4B8; }
.legend {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.875rem;
  color: var(--ink);
}
.legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend__swatch {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 2px;
}
.events-card { padding: 24px 26px 26px; }
.events-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.events-card__lead {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #EEF2F8;
}
.events-card__icon {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #EAF1FC;
  display: flex;
  align-items: center;
  justify-content: center;
}
.events-card__icon img { width: 40px; height: 40px; object-fit: contain; }
.events-card__title {
  font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.events-card__desc {
  margin-top: 6px; font-size: 0.875rem; line-height: 1.45; color: var(--muted);
}
.events-card__date { margin-top: 6px; font-size: 0.875rem; color: var(--muted-3); }
.events-list { display: flex; flex-direction: column; }
.events-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #F0F3F8;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: color .15s;
}
.events-list a:last-child { border-bottom: 0; }
.events-list a:hover { color: var(--brand); }
.events-list a > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.events-list time { flex: 0 0 auto; font-size: 0.875rem; color: var(--muted-3); }
@media (min-width: 1401px) {
  .donut {
    width: clamp(160px, 18.75vw - 110px, 250px);
    height: clamp(160px, 18.75vw - 110px, 250px);
  }
  .donut__value { font-size: clamp(1.75rem, 2.5vw - 0.5rem, 2.5rem); }
  .donut__value small { font-size: clamp(0.9375rem, 1.25vw - 0.25rem, 1.25rem); }
  .chart-card__body { gap: clamp(18px, 3.3vw - 30px, 34px); }
}

@media (max-width: 1400px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary { grid-template-columns: minmax(200px, 26%) minmax(0, 1fr); }
  .summary .summary__latest.latest { grid-column: 1 / -1; }
  .analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics .analytics__events-card.events-card { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  .statuses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donut { width: 210px; height: 210px; }
  .donut__value { font-size: 2.125rem; }
}

@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .summary .summary__latest.latest { grid-column: auto; }
  .rating { flex-direction: row; align-items: flex-end; gap: 20px; }
  .rating__value { margin-top: 0; padding-top: 0; font-size: 4.5rem; }
  .rating__label { position: absolute; top: 22px; left: 22px; }
  .rating__caption { margin-top: 0; margin-bottom: 6px; }
  .analytics { grid-template-columns: minmax(0, 1fr); }
  .analytics .analytics__events-card.events-card { grid-column: auto; }
}

@media (max-width: 600px) {
  .statuses { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .status {
    min-height: 0;
    padding: 1.25rem;
    gap: 0.75rem;
  }
  .status__count { font-size: 2.25rem; }
  .status__label { font-size: 1rem; }
  .status__icon { margin: -0.25rem -0.25rem 0 auto; width: 3rem; height: 3rem; }
  .status__icon svg { width: 1.5rem; height: 1.5rem; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 20px 18px 18px; }
  .service__title { font-size: 1.125rem; }
  .rating { flex-direction: column; align-items: stretch; padding: 18px; }
  .rating__label { position: static; }
  .rating__value { margin-top: auto; padding-top: 20px; font-size: 4rem; }
  .rating__caption { margin-top: 12px; margin-bottom: 0; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .counter { padding: 14px 14px 12px; }
  .counter__value { font-size: 1.5rem; }
  .counter__label { font-size: 0.875rem; }
  .latest { padding: 16px 18px 18px; }
  .latest__title { font-size: 1.0625rem; margin: 16px 0 8px; }
  .latest__meta { grid-template-columns: 1fr; gap: 2px 0; padding-top: 18px; }
  .latest__meta dt { margin-top: 8px; }
  .chart-card { padding: 18px 16px 20px; }
  .chart-card__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .donut { width: 190px; height: 190px; align-self: center; }
  .donut__value { font-size: 1.875rem; }
  .legend {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-self: stretch;
  }
  .events-card { padding: 18px 16px 20px; }
  .events-card__lead { gap: 12px; }
  .events-card__icon { width: 48px; height: 48px; }
  .events-card__icon img { width: 30px; height: 30px; }
  .service__link,
  .events-card__head a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
}

.rating__bar--2 { height: 80%; background: rgba(255, 255, 255, .13); }
.rating__bar--3 { height: 60%; background: rgba(255, 255, 255, .11); }
.rating__bar--4 { height: 42%; background: rgba(255, 255, 255, .09); }
.rating__bar--5 { height: 26%; background: rgba(255, 255, 255, .07); }
.rating__bar--1 { height: 100%; }
.latest__list { margin: 0; padding: 0; list-style: none; }
.events-card__more { font-size: 0.875rem; font-weight: 600; }
