:root {
  --bg: #141220;
  --card: #201C2F;
  --card-active: #262040;
  --elevated: #2A253B;
  --hover: #342D49;
  --input: #191624;
  --accent: #8B5CF6;
  --accent-hover: #9D76F8;
  --accent-dim: #6D28D9;
  --accent-light: #C4B5FD;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --text: #F4F3F8;
  --text-secondary: #BDB7CC;
  --text-muted: #8A85A0;
  --border: #3D3650;
  --border-subtle: #2C2640;
  --success: #34D399;
  --success-soft: rgba(52, 211, 153, 0.133);
  --warning: #FBBF24;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

::selection { background: var(--accent); color: white; }

* { scrollbar-width: thin; scrollbar-color: #4A4458 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #4A4458; border-radius: 4px; }

.shell {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 20px 28px 28px;
}

.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.app-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-soft);
  overflow: hidden;
}

.app-icon img { width: 42px; height: 42px; display: block; object-fit: cover; }

.wordmark {
  margin: 0;
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}

.wordmark .nexus { color: var(--accent-light); }

.subtitle { margin: 2px 0 0; font-size: 12.5px; color: var(--text-secondary); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.version-label { font-size: 11.5px; color: var(--text-muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  margin: 0 0 12px;
}

.card.active {
  background: var(--card-active);
  border-color: var(--accent);
}

.card.guide { border-color: var(--accent-dim); padding: 16px 18px; }

.guide-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; }

.hero-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.halo { position: relative; width: 12px; height: 12px; }

.halo-ring,
.halo-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  background: var(--success);
}

.halo-ring { width: 12px; height: 12px; opacity: 0.25; }
.halo-dot { width: 8px; height: 8px; }

.title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.card-title { margin: 0; font-size: 15.5px; font-weight: 600; }

.card-sub { margin: 3px 0 0; font-size: 12px; color: var(--text-secondary); }

.lead { margin: 14px 0 0; font-size: 12.5px; color: var(--text-secondary); }

.notes {
  margin: 10px 0 0;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

.section-label {
  margin: 4px 0 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.step { display: flex; gap: 10px; align-items: flex-start; }

.num {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.step strong { display: block; font-weight: 600; }
.step span { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-muted); }

.release-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.empty { margin: 2px 2px 16px; color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-dim); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:focus-visible { outline: 1.5px solid var(--accent-light); outline-offset: 2px; }

.btn.secondary {
  background: var(--elevated);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
}

.btn.secondary:hover { background: var(--hover); border-color: var(--accent); }
.btn.secondary:active { background: var(--hover); }

.btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 400;
}

.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.ghost:active { background: var(--hover); }

.field-block { margin-bottom: 14px; }

.lbl {
  display: block;
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--input);
  color: var(--text);
  caret-color: var(--accent-light);
  font: inherit;
  font-size: 13px;
}

.field::placeholder { color: var(--text-muted); }
.field:hover { border-color: var(--accent-light); }
.field:focus { outline: none; border-color: var(--accent); }

textarea.field { min-height: 96px; resize: vertical; line-height: 1.4; }

.hint { margin: 8px 0 0; font-size: 11.5px; color: var(--text-muted); }

.file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.file-btn input { display: none; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2 { margin: 0; font-size: 14px; font-weight: 600; }

.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.status { margin: 12px 0 0; font-size: 11.5px; }
.status.warn { color: var(--warning); }
.status.ok { color: var(--success); }

.hidden { display: none; }

@media (max-width: 720px) {
  .shell { padding: 16px; }
  .steps { grid-template-columns: 1fr; }
  .hero-top, .release-row { grid-template-columns: 1fr; }
  .header { grid-template-columns: auto 1fr; }
  .header-actions { grid-column: 1 / -1; }
}
