:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --line: #e4e9f1;
  --surface: #ffffff;
  --background: #f5f7fb;
  --blue: #2772c8;
  --blue-dark: #19599f;
  --green: #36a269;
  --amber: #d18b24;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(145deg, #f4f7fc 0%, #eef3fa 100%); color: var(--ink); }
.page-shell { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 38px 0 28px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(34px, 6vw, 62px); line-height: .98; letter-spacing: -.045em; }
h2 { margin-bottom: 10px; font-size: 22px; letter-spacing: -.02em; }
.lead { margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.credits { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.credit-tile { width: 88px; height: 88px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(48, 76, 122, .12); display: grid; place-items: center; }
.credit-logo img { width: 82px; height: 82px; object-fit: contain; padding: 10px; }
.credit-photo img { width: 100%; height: 100%; object-fit: cover; }
.card, .status-card { border: 1px solid rgba(222, 229, 239, .9); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 18px 45px rgba(58, 85, 125, .08); }
.status-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; margin-bottom: 18px; }
.status-line, .identity-line { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.identity-line { color: var(--muted); }
code { color: var(--ink); font-size: 13px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(209,139,36,.12); }
.status-dot.ready { background: var(--green); box-shadow: 0 0 0 5px rgba(54,162,105,.12); }
.status-dot.error { background: #d65050; box-shadow: 0 0 0 5px rgba(214,80,80,.12); }
.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.card { padding: 26px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.muted { color: var(--muted); line-height: 1.55; }
.topic-label { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.topic { margin-bottom: 18px; color: var(--blue-dark); font-weight: 700; }
.question-list { margin: 0; padding-left: 20px; color: var(--ink); line-height: 1.7; }
.pill { padding: 6px 10px; border-radius: 999px; background: #eef3fb; color: var(--blue-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.upload-card form { display: grid; gap: 11px; margin-top: 22px; }
.file-picker { display: block; cursor: pointer; border: 1px dashed #b9c9df; border-radius: 14px; padding: 13px 14px; color: var(--blue-dark); font-weight: 700; text-align: center; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.button { border: 0; border-radius: 14px; padding: 13px 18px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(39,114,200,.25); }
.button.primary:hover:not(:disabled) { background: var(--blue-dark); }
.button.secondary { background: #edf3fc; color: var(--blue-dark); }
.call-card, .qr-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; }
.call-card { flex-wrap: wrap; }
.call-card #call-message, .call-card #audio-message { flex: 0 0 100%; margin-top: -10px; }
.call-card h2, .qr-card h2 { margin-bottom: 7px; }
.call-card p:last-child, .qr-card p:last-child { margin-bottom: 0; }
.qr-placeholder { width: 84px; height: 84px; display: grid; place-items: center; flex: 0 0 auto; border: 2px dashed #c8d4e5; border-radius: 14px; color: #9ba8bb; font-size: 12px; font-weight: 800; }
.qr-placeholder img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
footer { padding: 24px 4px 0; color: #8a94a6; font-size: 12px; text-align: center; }
@media (max-width: 760px) {
  .page-shell { width: min(100% - 22px, 620px); padding-top: 22px; }
  .hero { align-items: flex-start; flex-direction: column; gap: 18px; }
  .credits { align-self: flex-end; }
  .content-grid { grid-template-columns: 1fr; }
  .status-card, .call-card, .qr-card { align-items: flex-start; flex-direction: column; }
  .call-card .button { width: 100%; }
}
