:root {
  --navy: #12334a;
  --navy-deep: #092538;
  --blue: #1e6fb8;
  --teal: #087c72;
  --amber: #f5b942;
  --ink: #17212b;
  --muted: #5d6c77;
  --line: #d6e1e8;
  --canvas: #eef4f7;
  --white: #fff;
  --shadow: 0 18px 50px rgba(16, 50, 73, .1);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 14px; color: white; background: var(--navy-deep); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { color: var(--navy); background: white; border-bottom: 1px solid rgba(18, 51, 74, .12); }
.header-inner { width: min(1180px, calc(100% - 32px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 12px 12px 12px 4px; font-size: 14px; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 12px; }
.back-link { color: var(--blue); font-size: 14px; font-weight: 800; }
.dashboard-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 56px; }
.dashboard-head { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: end; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
h1 { max-width: 740px; margin: 0; color: var(--navy); font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; }
.dashboard-head > div:first-child > p:last-child { max-width: 720px; margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.privacy-card { min-width: 295px; display: flex; gap: 12px; padding: 17px; color: white; background: var(--navy); border-radius: 14px; box-shadow: var(--shadow); }
.privacy-card > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: var(--navy); background: var(--amber); border-radius: 9px; font-weight: 900; }
.privacy-card strong { display: block; }
.privacy-card p { margin: 2px 0 0; color: #cfe0e9; font-size: 13px; }
.sample-warning { margin: 30px 0 34px; display: flex; align-items: center; gap: 13px; padding: 12px 15px; color: #563e00; background: #fff4cd; border: 1px solid #ecd376; border-radius: 11px; }
.sample-warning span { padding: 4px 7px; color: white; background: #876300; border-radius: 6px; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.sample-warning p { margin: 0; font-size: 14px; font-weight: 700; }
.section-heading, .card-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-heading h2, .card-head h2, .guardrails h2 { margin: 0; color: var(--navy); font-size: 25px; line-height: 1.2; }
.section-heading > span, .card-head > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metric-card { min-height: 158px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 9px 26px rgba(16, 50, 73, .06); }
.metric-card strong { display: block; color: var(--blue); font-size: 36px; line-height: 1; }
.metric-card h3 { margin: 13px 0 4px; color: var(--navy); font-size: 16px; }
.metric-card p { margin: 0; color: var(--muted); font-size: 13px; }
.chart-grid { margin-top: 28px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.chart-card, .contact-card, .guardrails { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.bars { margin-top: 22px; display: grid; gap: 13px; }
.bar-label { margin-bottom: 5px; display: flex; justify-content: space-between; gap: 10px; color: #334e5f; font-size: 13px; }
.bar-label strong { color: var(--navy); }
.bar-track { height: 9px; overflow: hidden; background: #e7eef2; border-radius: 99px; }
.bar-track span { height: 100%; display: block; background: linear-gradient(90deg, var(--blue), #3ca5d8); border-radius: inherit; }
.chart-card:nth-child(2) .bar-track span { background: linear-gradient(90deg, var(--teal), #36aa9e); }
.contact-card { margin-top: 18px; }
.contact-bars { margin-top: 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.contact-bar { padding: 14px; background: #f3f8fa; border-radius: 11px; }
.contact-bar .bar-label { margin: 0 0 10px; }
.contact-bar .bar-track span { background: var(--amber); }
.guardrails { margin-top: 18px; display: grid; grid-template-columns: .55fr 1.45fr; gap: 30px; color: white; background: var(--navy); border-color: var(--navy); }
.guardrails .section-kicker { color: #75cbff; }
.guardrails h2 { color: white; }
.guardrails ul { margin: 0; padding-left: 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; color: #d8e7ee; }
.error-card { margin-top: 18px; padding: 18px; color: #7c1f19; background: #ffefed; border: 1px solid #efaaa4; border-radius: 12px; }
.error-card p { margin: 3px 0 0; }
footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 32px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
footer strong { color: var(--navy); }

@media (max-width: 900px) {
  .dashboard-head, .chart-grid { grid-template-columns: 1fr; }
  .privacy-card { min-width: 0; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-bars { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 580px) {
  .header-inner, .dashboard-shell, footer { width: min(100% - 20px, 1180px); }
  .brand small { display: none; }
  .dashboard-shell { padding-top: 28px; }
  h1 { font-size: 39px; }
  .sample-warning { align-items: flex-start; flex-direction: column; }
  .section-heading, .card-head { align-items: flex-start; flex-direction: column; }
  .metric-grid, .contact-bars { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 140px; }
  .guardrails { grid-template-columns: 1fr; }
  .guardrails ul { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (max-width: 390px) {
  .metric-grid, .contact-bars { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
