:root {
  --page: #f1f3f6; --card: #ffffff; --ink: #202124; --muted: #5f6368;
  --accent: #950019; --border: #e2e5e9; --success: #18864b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
.page { width: min(1240px, 100%); margin: 0 auto; padding: 30px 32px 24px; min-height: 100vh; }
.header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin: 0 0 7px; }
h1 { font-size: clamp(29px, 4vw, 36px); font-weight: 550; letter-spacing: -.03em; margin: 0 0 3px; }
.subtitle { margin: 0; font-size: 15px; color: #424242; }
.header-actions { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
button { border: 1px solid #d0d0d0; border-radius: 8px; background: #fff; color: #333; padding: 9px 13px; cursor: pointer; font: inherit; }
button:hover { background: #f8f8f8; }
button:disabled { opacity: .65; cursor: wait; }
#cards { display: flex; flex-direction: column; gap: 22px; }
.metric-section { min-width: 0; }
.section-title { font-size: 16px; font-weight: 650; color: #313a49; margin: 0 0 11px; padding: 0 0 9px; border-bottom: 1px solid var(--border); }
.section-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.section-cards.single-card { grid-template-columns: minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid #eceef1; border-radius: 13px; min-height: 128px; padding: 23px 18px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 2px 8px rgba(20,35,55,.035); }
.value { color: var(--accent); font-size: clamp(25px, 3vw, 39px); line-height: 1.13; font-weight: 750; letter-spacing: .005em; overflow-wrap: anywhere; }
.label { color: var(--accent); font-size: clamp(14px, 1.45vw, 18px); line-height: 1.35; font-weight: 600; margin-top: 10px; }
.loading-card { background: white; border-radius: 13px; padding: 42px; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 27px; color: #686868; font-size: 12px; }
.error { margin-top: 18px; padding: 13px 15px; border: 1px solid #e6b8bd; border-radius: 8px; background: #fff7f7; color: #8a0018; font-size: 14px; }
@media (max-width: 760px) {
  .page { padding: 24px 18px 18px; }
  .header { align-items: flex-start; flex-direction: column; }
  .section-cards { gap: 12px; }
  .card { min-height: 118px; padding: 18px 12px; }
  .value { font-size: clamp(23px, 5vw, 32px); }
  .label { font-size: 14px; }
}
@media (max-width: 480px) {
  .section-cards { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
