/* Nepext installer — standalone styles, no dependencies. */

:root {
  --accent: #6c7ae0;
  --accent-strong: #5766d6;
  --bg: #0f1115;
  --surface: #171b23;
  --surface-2: #1e232d;
  --border: #2a313e;
  --text: #e7e9ee;
  --muted: #a2a9b8;
  --ok: #4bb37b;
  --warn: #d9974a;
  --error: #e15b5b;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 16px 60px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.wizard { max-width: 760px; margin: 0 auto; }

.wizard__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.wizard__brand { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; }
.wizard__mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  border-radius: 26%; color: #fff;
}
.wizard__version { color: var(--muted); font-size: .85rem; margin: 0; }

.wizard__steps {
  display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 24px;
  overflow-x: auto;
}
.wizard__steps li {
  flex: 1; min-width: 92px; display: grid; gap: 4px; justify-items: center;
  padding: 10px 6px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); font-size: .78rem; color: var(--muted); text-align: center;
}
.wizard__steps li.is-current { border-color: var(--accent); color: var(--text); }
.wizard__steps li.is-done { color: var(--ok); }
.wizard__step-num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); font-weight: 700;
}
.wizard__steps li.is-current .wizard__step-num { background: var(--accent); color: #fff; }
.wizard__steps li.is-done .wizard__step-num::after { content: '✓'; }
.wizard__steps li.is-done .wizard__step-num { font-size: 0; background: rgba(75,179,123,.2); color: var(--ok); }
.wizard__steps li.is-done .wizard__step-num::after { font-size: .8rem; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px;
}
.panel h1 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -.02em; }
.panel h2 { margin: 28px 0 10px; font-size: 1.15rem; }
.lead { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); font-size: .86rem; }
.hint { color: var(--muted); font-size: .82rem; margin: 5px 0 0; }

code {
  background: var(--surface-2); padding: .12em .38em; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em;
}
pre {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; font-size: .8rem; margin: 10px 0;
}

.form { display: grid; gap: 16px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: 5px; }
.field--narrow { max-width: 140px; }
label { font-weight: 600; font-size: .9rem; }
input, select {
  width: 100%; padding: 10px 12px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: .95rem;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,122,224,.22); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; margin-right: 8px;
}
.btn:hover { border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }

.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); margin: 0 0 16px; font-size: .92rem; }
.alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.alert--error { border-color: rgba(225,91,91,.5); background: rgba(225,91,91,.12); }
.alert--ok { border-color: rgba(75,179,123,.5); background: rgba(75,179,123,.12); }
.alert--warn { border-color: rgba(217,151,74,.5); background: rgba(217,151,74,.12); }

.checks { width: 100%; border-collapse: collapse; margin: 0 0 22px; }
.checks td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.checks__icon { width: 30px; font-weight: 800; text-align: center; }
.checks tr.is-ok .checks__icon { color: var(--ok); }
.checks tr.is-fail .checks__icon { color: var(--error); }
.checks tr.is-warn .checks__icon { color: var(--warn); }

.summary { display: grid; gap: 10px; margin: 0 0 20px; }
.summary div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.summary dt { color: var(--muted); font-size: .85rem; }
.summary dd { margin: 0; }

.next { padding-left: 1.3em; display: grid; gap: 14px; }

.wizard__foot { margin-top: 26px; color: var(--muted); font-size: .84rem; text-align: center; }

@media (max-width: 620px) {
  .wizard__step-label { display: none; }
  .wizard__steps li { min-width: 44px; }
  .summary div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
