:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182231;
  background: #f4f7fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 8% 0%, rgba(99, 102, 241, .10), transparent 28rem),
  radial-gradient(circle at 100% 20%, rgba(14, 165, 233, .08), transparent 26rem),
  #f4f7fb; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.page-shell { min-height: 100vh; }
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(24, 34, 49, .08);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #111827, #374151);
  color: white; font-weight: 800; letter-spacing: -.04em;
  box-shadow: 0 8px 24px rgba(17,24,39,.18);
}
.brand strong { display: block; font-size: 15px; }
.brand small { display: block; color: #718096; font-size: 11px; margin-top: 2px; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.account-badge { background: #edf2f7; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 700; }
.text-button { border: 0; background: transparent; color: #667085; padding: 8px 10px; }
main { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 44px 0 72px; }
.center-card {
  width: min(460px, 100%); margin: 15vh auto 0; text-align: center;
  background: rgba(255,255,255,.9); border: 1px solid rgba(24,34,49,.08);
  border-radius: 28px; padding: 48px 32px; box-shadow: 0 20px 60px rgba(15,23,42,.08);
}
.center-card h1 { font-size: 24px; margin: 20px 0 8px; }
.center-card p, .muted { color: #738095; }
.spinner {
  width: 32px; height: 32px; margin: 0 auto; border-radius: 50%;
  border: 3px solid #e5e7eb; border-top-color: #111827; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.auth-layout {
  min-height: calc(100vh - 190px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center;
}
.auth-copy { max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: 11px; color: #667085; }
.auth-copy h1, .hero-row h1 {
  margin: 10px 0 14px; letter-spacing: -.045em; line-height: 1.04; color: #111827;
}
.auth-copy h1 { font-size: clamp(42px, 6vw, 72px); }
.auth-copy > p { max-width: 580px; color: #667085; line-height: 1.85; font-size: 16px; }
.feature-list { display: grid; gap: 13px; margin-top: 34px; }
.feature-list > div {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start;
  padding: 14px 0; border-top: 1px solid rgba(24,34,49,.08);
}
.feature-list span { color: #98a2b3; font-size: 12px; font-weight: 800; padding-top: 3px; }
.feature-list p { margin: 0; color: #667085; line-height: 1.55; }
.feature-list strong { color: #1f2937; }
.auth-card, .panel, .stat-card {
  background: rgba(255,255,255,.94); border: 1px solid rgba(24,34,49,.08);
  box-shadow: 0 18px 48px rgba(15,23,42,.06);
}
.auth-card { border-radius: 28px; padding: 30px; }
.auth-card h2, .panel h2 { margin: 0; letter-spacing: -.03em; }
.auth-card label { display: grid; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 700; }
.auth-card input {
  width: 100%; border: 1px solid #d7dde7; border-radius: 13px; padding: 13px 14px;
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.auth-card input:focus { border-color: #667085; box-shadow: 0 0 0 4px rgba(102,112,133,.10); }
.form-error { min-height: 20px; margin: 12px 0 0; color: #b42318; font-size: 13px; }
.primary-button, .secondary-button, .secondary-link, .icon-button {
  border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform .12s, opacity .12s;
}
.primary-button {
  width: 100%; border: 0; color: white; background: #111827; padding: 13px 16px;
  box-shadow: 0 8px 20px rgba(17,24,39,.15);
}
.primary-button:hover, .secondary-button:hover, .secondary-link:hover, .icon-button:hover { transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button.compact { width: auto; padding: 12px 17px; }
.secondary-button { border: 1px solid #d7dde7; background: #fff; color: #344054; padding: 10px 14px; }
.secondary-link {
  color: #344054; border: 1px solid #d7dde7; display: inline-flex; justify-content: center;
  padding: 11px 14px; background: white;
}
.auth-divider { position: relative; text-align: center; margin: 22px 0; color: #98a2b3; font-size: 11px; }
.auth-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #eaecf0; }
.auth-divider span { position: relative; background: white; padding: 0 10px; }
.dashboard { display: grid; gap: 22px; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 12px 2px 4px; }
.hero-row h1 { font-size: clamp(30px, 4vw, 46px); }
.hero-row p { color: #667085; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { border-radius: 20px; padding: 20px; display: grid; gap: 8px; }
.stat-card span { color: #667085; font-size: 12px; font-weight: 700; }
.stat-card strong { font-size: 28px; letter-spacing: -.04em; color: #111827; }
.stat-card small { color: #98a2b3; }
.status-ready { color: #027a48 !important; font-size: 22px !important; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 18px; }
.panel { border-radius: 22px; padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.panel-heading h2 { margin-top: 5px; }
.icon-button { width: 38px; height: 38px; border: 1px solid #d7dde7; background: #fff; color: #344054; }
.empty-state { text-align: center; padding: 28px 18px 34px; border: 1px dashed #d7dde7; border-radius: 17px; background: #fafbfc; }
.empty-state h3 { margin: 20px 0 7px; }
.empty-state p { max-width: 420px; margin: 0 auto 18px; color: #7b8798; line-height: 1.65; font-size: 13px; }
.device-illustration { width: 94px; margin: 0 auto; }
.laptop-screen {
  width: 84px; height: 53px; margin: 0 auto; border: 5px solid #344054; border-radius: 7px 7px 3px 3px;
  display: grid; place-items: center; background: #eef2f7; color: #475467; font-size: 11px; font-weight: 800;
}
.laptop-base { height: 7px; background: #98a2b3; border-radius: 0 0 10px 10px; }
.account-panel dl { margin: 22px 0; }
.account-panel dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #eef1f5; }
.account-panel dt { color: #7b8798; font-size: 12px; }
.account-panel dd { margin: 0; text-align: right; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.plan-badge, .pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; }
.plan-badge { background: #f2f4f7; color: #475467; }
.pill { background: #fff7ed; color: #b54708; }
.block-link { width: 100%; }
.quick-panel { margin-top: 0; }
.code-preview {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: #111827; color: #f8fafc; border-radius: 14px; padding: 14px 15px;
}
.code-preview code { min-width: 0; overflow: auto; white-space: nowrap; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.copy-button { border: 1px solid #344054; border-radius: 9px; background: #202b3c; color: #d0d5dd; padding: 7px 10px; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: #111827; color: white; border-radius: 999px; padding: 11px 16px;
  box-shadow: 0 14px 35px rgba(17,24,39,.24); font-size: 13px; z-index: 30;
}
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; gap: 34px; padding-top: 18px; }
  .auth-copy h1 { font-size: 44px; }
  .stat-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .hero-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 16px; }
  main { width: min(100% - 24px, 1180px); padding-top: 26px; }
  .brand small { display: none; }
  .account-badge { display: none !important; }
  .auth-copy h1 { font-size: 38px; }
  .auth-card, .panel { padding: 18px; border-radius: 19px; }
  .stat-grid { gap: 10px; }
}
