:root {
  --bg: #0f1115;
  --panel: #171a21;
  --border: #2a3040;
  --text: #e8eaef;
  --muted: #8b93a5;
  --accent: #5b8cff;
  --ok: #3dd68c;
  --warn: #f0b429;
  --err: #f26d6d;
  --font: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --sans: system-ui, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  font-size: 15px;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#app { max-width: 1080px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.app-header h1 { font-size: 1.35rem; font-weight: 600; margin: 0 0 0.25rem; }
.app-header .sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
code { font-family: var(--font); font-size: 0.85em; background: #252a35; padding: 0.12em 0.35em; border-radius: 4px; }

.top-bar {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 0.75rem 1rem; margin: 1rem 0 1.25rem;
}
.top-bar label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.top-bar input, .top-bar select {
  min-width: 6rem; padding: 0.45rem 0.5rem; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.9rem;
}
#projectName { min-width: 12rem; flex: 1; }
.btn, .link-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-size: 0.88rem; font-weight: 500;
  border-radius: 8px; padding: 0.5rem 0.9rem; cursor: pointer; border: 1px solid var(--border);
  background: #1e222d; color: var(--text); text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover, .link-btn:hover { background: #252a38; border-color: #3d4558; }
.btn-primary { background: #2340a0; border-color: #3d5cc9; }
.btn-primary:hover { background: #2d4eb8; }
.btn:disabled, .link-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sp { flex: 1; }
.status-line { font-size: 0.8rem; color: var(--muted); }

.layout {
  display: grid;
  grid-template-columns: 1fr 18rem; gap: 1.25rem;
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .side { order: 3; }
}

.wizard { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.steps-nav {
  display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border);
  background: #12141a;
  gap: 0;
}
.step-tab {
  flex: 1; min-width: 5.5rem; text-align: center; padding: 0.5rem 0.35rem;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: inherit; font-size: 0.68rem; line-height: 1.2;
}
.step-tab:hover { color: var(--text); }
.step-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }

.step-body { padding: 1.1rem 1.15rem; }
.step-body h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.tip-block {
  font-size: 0.85rem; color: #b8c0d4; margin: 0 0 0.8rem; padding: 0.6rem 0.75rem;
  background: #1a1f2a; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
}
.tip-block .warn { color: var(--warn); margin-top: 0.35rem; }
.field { margin-bottom: 0.85rem; }
.field > label, .field label.block { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.5rem 0.55rem; border-radius: 6px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.92rem;
}
.field textarea { min-height: 4.5rem; resize: vertical; }
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; align-items: start; }
.row-list input { flex: 1; }
.btn-icon {
  width: 2.1rem; min-width: 2.1rem; height: 2.1rem; padding: 0; font-size: 1.1rem; line-height: 1; border-radius: 6px;
  background: #2a2f3d; border: 1px solid var(--border);
}
.wizard-footer {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.15rem; border-top: 1px solid var(--border); background: #12141a;
}
.team-grid { display: grid; gap: 0.8rem; }
@media (min-width: 560px) { .team-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; } }
.team-card h3 { grid-column: 1 / -1; margin: 0.5rem 0 0.2rem; font-size: 0.85rem; color: var(--muted); }
.team-card:first-of-type h3 { margin-top: 0; }

.side { position: relative; }
.side h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.5rem; }
.checklist, .project-list, .api-health {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 0.75rem 0.9rem; margin-bottom: 0.85rem; font-size: 0.85rem;
}
.checklist ul, .project-list ul { list-style: none; margin: 0; padding: 0; }
.checklist li { margin-bottom: 0.4rem; padding: 0.4rem; border-radius: 6px; background: #1a1f2a; }
.checklist .level-error { border-left: 3px solid var(--err); }
.checklist .level-warning { border-left: 3px solid var(--warn); }
.checklist .empty { color: var(--muted); font-style: italic; }
.project-list li a { color: var(--text); }
.project-list li a:hover { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.flash { padding: 0.5rem 0.7rem; border-radius: 8px; margin-top: 0.5rem; font-size: 0.9rem; }
.flash.err { background: #3a2020; border: 1px solid #8a4040; color: #f5b4b4; }
.flash.ok { background: #1e3328; border: 1px solid #2a6a4a; color: #a6f0c8; }

.landing { text-align: center; padding: 2.5rem 1rem; }
.landing p { color: var(--muted); max-width: 32rem; margin: 0.75rem auto; }

.hidden { display: none !important; }
