/* Herness Config Studio - Minimalist, Professional Developer Tool Aesthetic */

:root {
  /* Surface & Border Palette */
  --bg-page: #09090b;
  --bg-panel: #121215;
  --bg-panel-elevated: #16161a;
  --bg-subtle: #18181b;
  --bg-subtle-hover: #222226;
  --bg-input: #0e0e11;
  --bg-input-focus: #111114;

  --border-subtle: #1f1f23;
  --border-default: #27272a;
  --border-strong: #3f3f46;
  --border-active: #52525b;

  /* Typography & Foreground */
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-faint: #52525b;

  /* Accent & Status */
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-subtle: rgba(34, 197, 94, 0.1);
  --accent-border: rgba(34, 197, 94, 0.25);
  --accent-text: #4ade80;

  --amber: #f59e0b;
  --amber-subtle: rgba(245, 158, 11, 0.1);
  --amber-border: rgba(245, 158, 11, 0.25);

  --rose: #ef4444;
  --rose-subtle: rgba(239, 68, 68, 0.1);
  --rose-border: rgba(239, 68, 68, 0.25);

  /* Fonts */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Radii & Shadows */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-panel: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

/* Reset & Box Model */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

/* App Shell Container */
.app-shell {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--accent-text);
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-name span {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-subtle-hover);
  border: 1px solid var(--border-subtle);
}

.nav-link-external {
  color: var(--text-muted);
}

.nav-link-external svg {
  opacity: 0.75;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 999px;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero Intro */
.hero {
  margin-bottom: 32px;
  max-width: 720px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Configurator 2-Column Grid */
.configurator-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.steps-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 180ms ease;
}

.step-num.completed {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.panel-header h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.panel-header p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Preset Buttons */
.preset-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.preset-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 120ms ease;
}

.preset-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.preset-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-text);
  font-weight: 600;
}

/* Form Groups & Inputs */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.field-info {
  font-size: 11px;
  color: var(--text-muted);
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

input[type="text"],
input[type="url"],
input[type="password"],
select {
  width: 100%;
  height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0 12px 0 36px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  transition: border-color 150ms ease, background 150ms ease;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  background: var(--bg-input-focus);
  border-color: var(--accent);
}

.password-container input {
  padding-right: 76px;
}

.icon-text-btn {
  position: absolute;
  right: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
}

.icon-text-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-icon {
  display: flex;
  align-items: center;
}

.hidden {
  display: none !important;
}

/* Select Dropdown */
.select-container {
  position: relative;
}

.select-container select {
  appearance: none;
  padding-left: 12px;
  padding-right: 32px;
  cursor: pointer;
}

.select-container select:disabled {
  cursor: not-allowed;
  color: var(--text-muted);
  opacity: 0.7;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Submit Action Button */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  background: var(--text-primary);
  color: var(--bg-page);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  margin-top: 4px;
}

.submit-btn:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-arrow {
  display: flex;
  align-items: center;
  transition: transform 120ms ease;
}

.submit-btn:hover:not(:disabled) .btn-arrow {
  transform: translateX(2px);
}

.spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin-kf 600ms linear infinite;
}

.is-loading .spinner {
  display: inline-block;
}

.is-loading .btn-arrow {
  display: none;
}

@keyframes spin-kf {
  to { transform: rotate(360deg); }
}

/* Status Box */
.status-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.status-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}

.status-box[data-state="loading"] {
  background: var(--amber-subtle);
  border-color: var(--amber-border);
  color: var(--amber);
}

.status-box[data-state="loading"] .status-pip {
  background: var(--amber);
}

.status-box[data-state="success"] {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.status-box[data-state="success"] .status-pip {
  background: var(--accent);
}

.status-box[data-state="error"] {
  background: var(--rose-subtle);
  border-color: var(--rose-border);
  color: var(--rose);
}

.status-box[data-state="error"] .status-pip {
  background: var(--rose);
}

/* Radio Card Groups */
.options-fieldset {
  border: 0;
  margin-bottom: 16px;
}

.options-fieldset:last-child {
  margin-bottom: 0;
}

.options-legend {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.legend-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.radio-card-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.client-grid {
  grid-template-columns: 1fr 1fr;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  min-height: 84px;
  transition: all 120ms ease;
}

.radio-card:hover .radio-card-body {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.radio-card input[type="radio"]:checked + .radio-card-body {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.radio-card input[type="radio"]:focus-visible + .radio-card-body {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.radio-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-card-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.radio-card input[type="radio"]:checked + .radio-card-body .radio-card-icon {
  color: var(--accent-text);
}

.radio-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.radio-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.compact-body {
  min-height: 60px;
  justify-content: center;
}

/* Right Output Column */
.output-column {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.command-panel-header {
  justify-content: space-between;
}

.header-with-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.status-pill.is-ready {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.status-pill.is-ready .pill-dot {
  background: var(--accent);
}

/* Params Summary */
.params-summary {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.param-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.param-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.param-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Terminal Shell */
.terminal-shell {
  background: #000000;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #09090b;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
}

.terminal-lights {
  display: flex;
  gap: 5px;
}

.terminal-lights span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27272a;
}

.terminal-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.terminal-mask-note {
  font-size: 10px;
  color: var(--text-faint);
}

.terminal-code {
  padding: 14px 12px;
  min-height: 120px;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-code code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: #e4e4e7;
}

/* Copy Action Button */
.copy-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: var(--accent);
  color: #000000;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
  margin-bottom: 12px;
}

.copy-action-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #ffffff;
}

.copy-action-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.copy-action-btn:disabled {
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  cursor: not-allowed;
}

.action-btn-icon {
  display: flex;
  align-items: center;
}

/* Security Banner */
.security-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.security-icon {
  display: flex;
  align-items: center;
  color: var(--accent-text);
  flex-shrink: 0;
  margin-top: 1px;
}

.security-banner strong {
  color: var(--text-secondary);
}

.security-banner code {
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: var(--bg-subtle);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Accordion Panels */
.accordion-panel {
  padding: 0;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 120ms ease;
  user-select: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header:hover {
  background: var(--bg-subtle);
}

.accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.accordion-title-wrap strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}

.accordion-title-wrap span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.chevron-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: transform 180ms ease;
}

details[open] .chevron-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
}

.accordion-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.inline-code-box {
  background: #000000;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.inline-code-box code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a1a1aa;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
}

.secondary-btn:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-strong);
}

.secondary-btn-icon {
  display: flex;
  align-items: center;
}

/* FAQ Entries */
.faq-entry {
  margin-bottom: 12px;
}

.faq-entry:last-child {
  margin-bottom: 0;
}

.faq-entry h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.faq-entry p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.faq-entry code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: #000000;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.trust-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-item strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-faint);
}

/* Floating Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #18181b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Documentation Styles */
.docs-shell {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.docs-hero {
  margin-bottom: 36px;
  max-width: 800px;
}

.docs-hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.docs-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.docs-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.docs-sidebar-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-link {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.docs-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.docs-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.docs-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px;
  scroll-margin-top: 24px;
}

.docs-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.docs-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.docs-section ul, .docs-section ol {
  margin: 10px 0 16px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.docs-section li {
  margin-bottom: 6px;
}

.docs-table-wrapper {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.docs-table th {
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-default);
}

.docs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-callout {
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.docs-callout strong {
  color: var(--text-primary);
}

.docs-cli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.docs-cli-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.docs-cli-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-cli-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.docs-cli-card code {
  font-size: 12px;
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--accent-text);
  border: 1px solid var(--border-subtle);
}

.docs-code-block {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 14px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
  overflow-x: auto;
}

/* How to Use Walkthrough Components */
.docs-step-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--accent-subtle);
  color: var(--accent-text);
  border: 1px solid var(--accent-border);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.docs-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.docs-tip-box {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.docs-tip-box strong {
  color: var(--accent-text);
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-primary);
  background-color: var(--bg-panel-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  box-shadow: inset 0 -1px 0 var(--border-strong);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }
}
@media (max-width: 900px) {
  .configurator-grid {
    grid-template-columns: 1fr;
  }

  .output-column {
    position: static;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 580px) {
  .app-shell {
    width: calc(100% - 24px);
    padding: 18px 0 36px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .radio-card-group {
    grid-template-columns: 1fr;
  }

  .params-summary {
    grid-template-columns: 1fr;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
