:root {
  color-scheme: dark;
  --bg: #08080a;
  --panel: #111115;
  --raised: #18181e;
  --line: rgba(255, 255, 255, .1);
  --text: #f4f4f6;
  --muted: #9999a4;
  --red: #ff3b46;
  --green: #83d9a2;
  --amber: #efc35a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.masthead { display: flex; align-items: center; gap: 13px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 27px; height: 27px; border-radius: 7px; background: var(--red); box-shadow: 0 0 24px -5px var(--red); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 18px; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 5vw, 42px); letter-spacing: -.04em; }
h3 { font-size: 18px; }
.eyebrow, .environment, .meta { font: 700 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; color: var(--muted); }
.environment { margin-left: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--green); }
.panel { margin-top: 28px; padding: clamp(22px, 5vw, 42px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.centered { min-height: 190px; display: grid; align-content: center; gap: 8px; text-align: center; }
.auth { display: grid; gap: 30px; }
.lede { margin-top: 10px; color: var(--muted); max-width: 640px; line-height: 1.55; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.form-row { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; padding: 12px 14px; color: var(--text); background: #0c0c0f; border: 1px solid var(--line); border-radius: 9px; outline: none; }
input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,59,70,.12); }
button { padding: 11px 15px; border: 0; border-radius: 9px; color: white; background: var(--red); font-weight: 700; }
button:disabled { cursor: not-allowed; opacity: .45; }
button.secondary { background: var(--raised); border: 1px solid var(--line); color: var(--text); }
.message { min-height: 20px; color: var(--amber); }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 38px 0 22px; }
.notice { padding: 13px 15px; border: 1px solid rgba(239,195,90,.3); border-radius: 10px; color: #e8d79e; background: rgba(239,195,90,.07); line-height: 1.45; }
.call-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.call-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.call-card h3 { margin-top: 8px; }
.call-card .status { display: inline-flex; margin-top: 14px; padding: 5px 8px; border-radius: 6px; background: var(--raised); color: var(--amber); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.readiness { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.metric { padding: 10px; border-radius: 8px; background: #0c0c0f; }
.metric strong { display: block; font-size: 18px; }
.metric span { color: var(--muted); font-size: 10px; }
.call-card button { width: 100%; margin-top: 18px; }
.call-card .process-call + button { margin-top: 8px; }
.call-card .why { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.4; }

@media (max-width: 600px) {
  .shell { width: min(100% - 20px, 1100px); padding-top: 16px; }
  .environment { display: none; }
  .form-row { flex-direction: column; }
  .dashboard-head { align-items: center; }
  .readiness { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
