* { box-sizing: border-box; }
body {
  margin: 0;
  background: #09090b;
  color: #fafafa;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: #a1a1aa; text-decoration: none; }
.app-shell { max-width: 1240px; margin: 0 auto; padding: 24px; }
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.sidebar {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 12px;
  height: fit-content;
  position: sticky;
  top: 16px;
}
.nav-title { color: #71717a; font-size: 11px; letter-spacing: .06em; margin: 8px 8px 10px; text-transform: uppercase; }
.nav-link {
  display: block;
  border-radius: 8px;
  padding: 9px 10px;
  color: #d4d4d8;
  border: 1px solid transparent;
  margin-bottom: 6px;
}
.nav-link:hover { background: #18181b; border-color: #27272a; }
.nav-link.active { background: #18181b; border-color: #3f3f46; color: #fafafa; }
.nav-link.danger { color: #fda4af; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.brand { font-size: 22px; font-weight: 700; }
.muted { color: #a1a1aa; font-size: 14px; }
.panel {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
}
form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { color: #a1a1aa; font-size: 12px; display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #3f3f46;
  background: #09090b;
  color: #fafafa;
  padding: 8px 10px;
}
.field { min-width: 220px; flex: 1; }
button, .btn-link {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid #27272a; min-height: 36px;
  padding: 0 12px; background: #18181b; color: #fafafa; font-size: 13px; font-weight: 600;
}
button:hover, .btn-link:hover { background: #27272a; }
.btn-primary { background: #fafafa; color: #09090b; border-color: #fafafa; }
.btn-primary:hover { background: #e4e4e7; }
.btn-danger, .btn-link.danger { background: #3f1d1d; border-color: #7f1d1d; color: #fda4af; }
.btn-danger:hover, .btn-link.danger:hover { background: #5a2323; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #27272a; padding: 10px 8px; font-size: 13px; text-align: left; }
th { color: #a1a1aa; font-weight: 500; }
.msg-ok, .msg-err {
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #27272a; font-size: 13px;
}
.msg-ok { background: #052e1a; color: #86efac; }
.msg-err { background: #3f1111; color: #fda4af; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 420px; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #3f3f46;
  background: #fafafa;
  color: #18181b;
  font-size: 14px;
  font-weight: 700;
}
.btn-google:hover { background: #e4e4e7; color: #18181b; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #71717a;
  font-size: 12px;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #27272a;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.api-list { margin: 0; padding-left: 18px; color: #d4d4d8; }
.api-list li { margin-bottom: 8px; }
.api-list code {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 4px 8px;
  color: #e4e4e7;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.plan-price {
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 12px;
}
.plan-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.plan-selected {
  border-color: #fafafa;
  box-shadow: 0 0 0 1px rgba(250, 250, 250, 0.4) inset;
}
.build-progress {
  width: 140px;
  height: 8px;
  border-radius: 999px;
  background: #27272a;
  overflow: hidden;
  margin-bottom: 4px;
}
.build-progress-fill {
  height: 100%;
  width: 0;
  background: #3f3f46;
}
.build-progress-fill.running {
  background: #60a5fa;
}
.build-progress-fill.ok {
  background: #22c55e;
}
.build-progress-fill.err {
  background: #ef4444;
}
.usage-steps {
  margin: 0;
  padding-left: 18px;
  color: #d4d4d8;
}
.usage-steps li {
  margin-bottom: 6px;
}
.usage-steps code {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 2px 6px;
  color: #e4e4e7;
}
.btn-download {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  min-width: 94px;
}
.btn-download:hover {
  background: #15803d;
  border-color: #15803d;
}
@media (max-width: 980px) {
  .plan-grid { grid-template-columns: 1fr; }
}
