:root {
  color-scheme: light;
  --blue-950: #071c3d;
  --blue-800: #123b79;
  --blue-650: #1f5fae;
  --blue-100: #e9f2ff;
  --ink: #152033;
  --muted: #5c697d;
  --line: #dce3ed;
  --surface: #ffffff;
  --background: #f4f7fb;
  --danger: #a61b2b;
  --success: #18794e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem max(1rem, calc((100vw - 1120px) / 2));
  background: linear-gradient(135deg, var(--blue-950), var(--blue-650));
  color: white;
}
.topbar h1 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.2rem); }
.eyebrow { margin: 0 0 .25rem; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 800; color: var(--blue-650); }
.topbar .eyebrow { color: #bcd9ff; }
.pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .55rem .8rem; font-size: .82rem; white-space: nowrap; }

main { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.card, .metric { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgba(25,48,82,.06); }
.card { padding: 1.3rem; }
.card h2 { margin-top: 0; }
.narrow { max-width: 440px; margin: 2rem auto; }
.hidden { display: none !important; }
.notice { min-height: 1.4rem; margin-bottom: .75rem; color: var(--success); font-weight: 700; }
.notice.error { color: var(--danger); }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1rem; }
.metric { padding: 1rem; }
.metric span { display: block; color: var(--muted); font-size: .8rem; }
.metric strong { display: block; margin-top: .25rem; font-size: 1.25rem; }
.compliance { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.compliance ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.two-column { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; }
.two-column.single-column { grid-template-columns: minmax(0, 760px); justify-content: center; }

label { display: grid; gap: .4rem; margin: 1rem 0; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #bfc9d8; border-radius: 10px; padding: .75rem; color: var(--ink); background: white; }
input:focus, textarea:focus { outline: 3px solid #b9d7ff; border-color: var(--blue-650); }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
button { border: 0; border-radius: 10px; padding: .75rem 1rem; background: var(--blue-650); color: white; font-weight: 800; }
button:hover { background: var(--blue-800); }
button:disabled { cursor: not-allowed; opacity: .55; }
.secondary { background: #e6ebf2; color: var(--ink); margin-left: .4rem; }
.text-button { display: block; background: transparent; color: var(--blue-650); padding-left: 0; margin-top: 1rem; }

.contact-panel { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.contact-panel h3 { margin: 0; font-size: 1.6rem; }
.phone { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.script { background: var(--blue-100); border-left: 4px solid var(--blue-650); padding: 1rem; border-radius: 0 10px 10px 0; line-height: 1.55; }
dl { display: grid; gap: .45rem; font-size: .82rem; }
dl div { display: grid; grid-template-columns: 110px 1fr; gap: .5rem; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.call-button { width: 100%; margin-top: .7rem; background: var(--success); font-size: 1.05rem; }
.active-call { color: var(--success); font-weight: 900; margin-top: 1.3rem; }
.dispositions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.dispositions button { background: #e7edf6; color: var(--ink); }
.dispositions button[data-value="DO_NOT_CALL"] { background: #fee8ea; color: var(--danger); }
.check-row { grid-template-columns: auto 1fr; align-items: start; font-weight: 600; }
.check-row input { width: auto; margin-top: .25rem; }
code { font-size: .85em; }
footer { text-align: center; color: var(--muted); padding: 1rem; font-size: .8rem; }

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .two-column { grid-template-columns: 1fr; }
  .compliance { display: block; }
}
