:root {
  --accent: #ff5e00;
  --accent-dim: rgba(255, 94, 0, 0.15);
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1c1c22;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ec;
  --muted: #9a9aa8;
  --human: #6ec4ff;
  --ok: #7dcea0;
  --font: "Rajdhani", "Exo 2", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.back {
  font-size: 0.9rem;
  color: var(--muted);
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
}

.lang-switch button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

.lang-switch button.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.part {
  margin-bottom: 3rem;
  scroll-margin-top: 1rem;
}

.part__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.part h1,
.part h2 {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.part h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.part h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.part > p,
.part > ul {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.part ul {
  padding-left: 1.2rem;
}

.part li {
  margin-bottom: 0.35rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

.toc a {
  font-size: 0.88rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
  font-size: 0.82rem;
  font-family: monospace;
}

.flow span {
  padding: 0.25rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

.flow .arrow {
  color: var(--muted);
  border: none;
  background: none;
  padding: 0.25rem 0;
}

.step {
  margin-bottom: 1.5rem;
}

.step__head {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.step__num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-weight: 600;
  font-size: 1rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.step code {
  font-size: 0.85rem;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: var(--accent);
}

.prompt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0.5rem 0 0.75rem;
}

.prompt-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.75rem;
}

details {
  margin: 0.5rem 0 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

details summary {
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--accent);
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details .prompt {
  margin: 0;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  border-left: none;
}

.path-picker {
  margin: 1rem 0 0.5rem;
}

.path-picker__lead {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.path-picker__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
}

.path-card {
  position: relative;
  display: block;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

.path-card:hover {
  border-color: rgba(255, 94, 0, 0.45);
}

.path-card--selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(255, 94, 0, 0.2);
}

.path-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.path-card__title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.path-card--selected .path-card__title {
  color: var(--accent);
}

.path-card__desc {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.path-picker__hint {
  margin: 0.75rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.path-output {
  margin-top: 0.75rem;
}

.prompt.example {
  border-left-color: var(--muted);
  opacity: 0.92;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.75rem 0;
}

@media (max-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
}

.card strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.card span {
  color: var(--muted);
}

.note {
  padding: 0.75rem 1rem;
  background: var(--accent-dim);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  margin: 0.75rem 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.checklist li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist li::before {
  content: "□";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.ref-table th,
.ref-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.ref-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.ref-table td:first-child {
  color: var(--accent);
  white-space: nowrap;
}

.ref-table td:last-child {
  color: var(--muted);
}
