:root {
  --brand: #41BDF5;
  --ink:   #0b0f14;
  --pane:  #121820;
  --line:  #232e3a;
  --tx:    #e6edf5;
  --tx2:   #8b9bb0;
  --tx3:   #5d6b7d;
  --ok:    #34d399;
  --warn:  #fbbf24;
  --err:   #f87171;
  --rail:  232px;
  --dock:  180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--tx);
  min-height: 100vh;
  padding-bottom: var(--dock);
}

.layout { display: flex; min-height: calc(100vh - var(--dock)); }

/* ---- rail ---- */
#rail {
  width: var(--rail);
  flex: 0 0 var(--rail);
  background: var(--pane);
  border-right: 1px solid var(--line);
  padding: 1.4rem 1rem;
}
.brand { margin-bottom: 1.8rem; }
.brand-name { display: block; font-weight: 650; letter-spacing: -0.01em; }
.brand-sub  { display: block; color: var(--tx3); font-size: 0.8rem; }

.home-link {
  display: block; margin: -0.4rem 0 1.2rem; padding: 0.5rem 0.6rem;
  border-radius: 8px; color: var(--tx2); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
}
.home-link:hover { background: rgba(65,189,245,0.08); color: var(--tx); }

.steps { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.step {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0.6rem; border-radius: 8px;
  color: var(--tx2); font-size: 0.9rem;
}
.step-num {
  width: 1.4rem; height: 1.4rem; flex: 0 0 1.4rem;
  display: grid; place-items: center;
  border-radius: 50%; background: #212b36;
  font-size: 0.72rem; color: var(--tx3);
}
.step.is-current { background: rgba(65,189,245,0.10); color: var(--tx); }
.step.is-current .step-num { background: var(--brand); color: #04121c; font-weight: 650; }
.step.is-done .step-num { background: var(--ok); color: #052e20; }

/* ---- content ---- */
#content { flex: 1; padding: 2.2rem 2.6rem; max-width: 780px; }
#content h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.lead { color: var(--tx2); margin-top: 0.4rem; }

/* ---- dock ---- */
#dock {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--dock);
  background: #080c11;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: height 0.18s ease;
}
#dock.is-collapsed { height: 2.4rem; }
.dock-bar {
  height: 2.4rem; flex: 0 0 2.4rem;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0 1rem; border-bottom: 1px solid #131a22;
}
.dock-toggle {
  background: none; border: 0; cursor: pointer;
  color: var(--tx2); font: inherit; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.dock-status { color: var(--tx3); font-size: 0.75rem; }
.dock-body {
  flex: 1; overflow-y: auto; padding: 0.5rem 1rem 0.8rem;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--tx3);
  white-space: pre;
}
#dock.is-collapsed .dock-body { display: none; }
.ev-ok   { color: var(--ok); }
.ev-fail { color: var(--err); }
.ev-info { color: var(--warn); }
.ev-cmd  { color: var(--brand); }

/* ---- preflight checks ---- */
.checks {
  list-style: none; display: flex; flex-direction: column;
  gap: 0.5rem; margin: 1.4rem 0;
}
.check {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.9rem; border-radius: 8px;
  background: var(--pane); border: 1px solid var(--line);
  font-size: 0.9rem;
}
.check-mark {
  display: grid; place-items: center; flex: 0 0 1.4rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  font-size: 0.78rem; font-weight: 650;
}
.check.is-ok .check-mark  { background: rgba(52,211,153,0.15); color: var(--ok); }
.check.is-bad .check-mark { background: rgba(248,113,113,0.15); color: var(--err); }
.check.is-progress .check-mark { background: rgba(65,189,245,0.15); color: var(--brand); }
.check-detail { color: var(--tx); }
.check-elapsed { margin-left: 0.4rem; color: var(--tx3); font-size: 0.8rem; }

/* ---- actions / buttons ---- */
.actions { margin-top: 1.6rem; display: flex; gap: 0.8rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem 1.2rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--pane); color: var(--tx);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #04121c; }
.btn-primary:disabled { background: var(--pane); border-color: var(--line); color: var(--tx3); }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.05rem; border-radius: 10px; }

/* ---- form fields ---- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.85rem; font-weight: 600; color: var(--tx2);
}
.field input[type="number"],
.field input[type="text"] {
  width: 100%; max-width: 220px;
  padding: 0.55rem 0.7rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--pane); color: var(--tx);
  font: inherit; font-size: 0.9rem;
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.field-hint { margin-top: 0.35rem; color: var(--tx2); font-size: 0.82rem; max-width: 480px; }
.field-error { margin-top: 0.35rem; color: var(--err); font-size: 0.82rem; }

/* ---- option lists (radio / checkbox cards) ---- */
.options {
  list-style: none; display: flex; flex-direction: column;
  gap: 0.5rem; margin: 1rem 0;
}
.option {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.7rem 0.9rem; border-radius: 8px;
  background: var(--pane); border: 1px solid var(--line);
  cursor: pointer;
}
.option input { margin-top: 0.2rem; accent-color: var(--brand); }
.option.is-selected { border-color: var(--brand); background: rgba(65,189,245,0.08); }
.option-body { display: flex; flex-direction: column; gap: 0.15rem; }
.option-title { font-weight: 600; color: var(--tx); }
.option-meta { font-size: 0.82rem; color: var(--tx3); }
.option-hint { font-style: italic; }

/* ---- kicker (small-caps label above a warning/banner panel's body) ---- */
.kicker {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tx);
}

/* ---- warning panel ---- */
/* Editorial left rule, not a tinted/bordered box: no fill, no border-radius,
   just a rule in the theme's brightest text token so it reads as emphasis
   rather than an alarm. See .banner below for the same geometry in brand
   blue -- the two are siblings that differ only by rule colour. */
.warning {
  margin: 1rem 0; padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 3px solid var(--tx);
  color: var(--tx);
}
.warning p { font-size: 0.88rem; }
.warning p + p { margin-top: 0.4rem; }
.warning strong { color: var(--tx); font-weight: 700; }

/* ---- activity banner (status panel) ---- */
.banner {
  margin: 1rem 0; padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 3px solid var(--brand);
  color: var(--tx);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.banner p { font-size: 0.9rem; }
.banner .kicker { color: var(--brand); }

/* ---- MAC / DHCP reservation panel ---- */
.mac-panel {
  margin: 1.2rem 0; padding: 0.9rem 1rem; border-radius: 8px;
  background: var(--pane); border: 1px solid var(--line);
}
.mac-label {
  font-size: 0.78rem; color: var(--tx3);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.mac-value {
  margin-top: 0.3rem; font: 600 1.05rem ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brand);
}
.mac-hint { margin-top: 0.6rem; font-size: 0.85rem; color: var(--tx2); }

/* ---- review list ---- */
.review {
  list-style: none; display: flex; flex-direction: column;
  gap: 0.5rem; margin: 1.4rem 0;
}
.review-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0.9rem; border-radius: 8px;
  background: var(--pane); border: 1px solid var(--line);
}
.review-label {
  font-size: 0.78rem; color: var(--tx3);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.review-value { margin-top: 0.15rem; color: var(--tx); font-weight: 600; word-break: break-all; }
.review-change {
  flex: 0 0 auto; color: var(--brand); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.review-change:hover { text-decoration: underline; }

/* ---- status panel ---- */
.vm-state { font-weight: 650; }
.vm-state.is-running { color: var(--ok); }
.vm-state.is-off { color: var(--tx3); }
.vm-actions { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }

/* ---- watcher (spec §7.1) ---- */
.watch-toggle { display: flex; align-items: center; }
.watch-toggle-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--tx2); cursor: pointer; white-space: nowrap;
}
.watch-toggle-label input { accent-color: var(--brand); }
.watch-gave-up { display: flex; align-items: center; gap: 0.7rem; }
.watcher-interval { display: flex; align-items: center; gap: 0.5rem; margin: 1.2rem 0; }
.watcher-interval input[type="number"] {
  width: 4.5rem; padding: 0.4rem 0.5rem; border-radius: 6px;
  border: 1px solid var(--line); background: var(--pane); color: var(--tx);
  font: inherit; font-size: 0.9rem;
}
.watcher-interval input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---- disclosure (advanced / pinning) ---- */
.disclosure {
  margin: 1.2rem 0; padding: 0.9rem 1rem; border-radius: 8px;
  background: var(--pane); border: 1px solid var(--line);
}
.disclosure summary {
  cursor: pointer; font-weight: 600; color: var(--tx); list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before { content: "\25b8  "; color: var(--tx3); }
.disclosure[open] summary::before { content: "\25be  "; }
.disclosure .lead { margin-top: 0.6rem; }
.disclosure .options { margin-top: 0.9rem; }
