@import url("../branding/frozen-master-v1.1/07-brand-tokens/authbind-colors.css");

:root {
  color-scheme: light dark;
  --page: #f5f8ff;
  --surface: #ffffff;
  --ink: #07163d;
  --muted: #53617d;
  --line: #dce4f2;
  --accent: #1677ff;
  --verified: #16a34a;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #07163d;
  --surface: #0d1e4d;
  --ink: #ffffff;
  --muted: #bdc9e5;
  --line: #294174;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.shell { max-width: 1120px; min-height: 100vh; margin: 0 auto; padding: 28px clamp(20px, 5vw, 72px); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { display: block; width: 188px; height: auto; }
.theme-toggle { border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.hero { max-width: 760px; padding: clamp(100px, 18vh, 190px) 0 80px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { max-width: 700px; margin: 0; font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: -0.055em; }
.lede { max-width: 580px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.status-card { display: inline-flex; align-items: center; gap: 13px; margin-top: 40px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.status-card div { display: grid; gap: 3px; }
.status-card span:last-child { color: var(--muted); font-size: 0.92rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--verified); box-shadow: 0 0 0 5px color-mix(in srgb, var(--verified) 18%, transparent); }
.admin-panel { margin-top: 24px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 20px 60px color-mix(in srgb, var(--ink) 10%, transparent); }
.section-heading { max-width: 700px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.04em; }
.section-copy { color: var(--muted); line-height: 1.55; }
.credential-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 12px; margin: 28px 0; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-card { display: grid; align-content: start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 90%, var(--page)); }
.form-card h3 { margin: 0 0 4px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.86rem; font-weight: 650; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; background: var(--surface); color: var(--ink); font: inherit; }
input:focus, select:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.checkbox { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
.primary-button { border: 0; border-radius: 9px; padding: 11px 15px; background: var(--accent); color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.primary-button:hover { filter: brightness(1.08); }
.connection-state { color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.connection-state[data-state="connected"] { color: var(--verified); }
.activity { min-height: 72px; margin: 18px 0 0; overflow: auto; border-radius: 12px; padding: 14px; background: color-mix(in srgb, var(--page) 88%, var(--surface)); color: var(--muted); white-space: pre-wrap; font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 600px) { .shell { padding-top: 20px; } .brand img { width: 156px; } .hero { padding-top: 120px; } }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } .credential-bar { grid-template-columns: 1fr; align-items: stretch; } }
