/* ShellForge v0.2.1 — enterprise UI */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-w: 248px;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --bg: #f4f6fa;
  --bg-soft: #eef1f6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, .06), 0 24px 48px -24px rgba(15, 23, 42, .22);
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --code-bg: #0f172a;
  --radius: 14px;
}
[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-soft: #0e1422;
  --surface: rgba(20, 27, 45, 0.72);
  --surface-solid: #141b2d;
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.25);
  --text: #e8edf7;
  --text-2: #9aa8c0;
  --text-3: #5d6b85;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .35), 0 24px 48px -24px rgba(0, 0, 0, .6);
  --code-bg: #0a0f1c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
::selection { background: rgba(99, 102, 241, .25); }

.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, #0d1326 0%, #0a0e1c 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  border-right: 1px solid rgba(148, 163, 184, .08);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 22px 20px 18px;
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -4px rgba(99, 102, 241, .55);
  flex-shrink: 0;
}
.brand-logo svg { width: 20px; height: 20px; }
.brand-name { font-weight: 700; font-size: 15.5px; color: #f1f5f9; letter-spacing: -.01em; line-height: 1.2; }
.brand-ver {
  font-size: 10.5px; font-weight: 600; color: #818cf8;
  background: rgba(99, 102, 241, .14);
  border: 1px solid rgba(99, 102, 241, .3);
  padding: 1px 7px; border-radius: 999px; display: inline-block; margin-top: 3px;
}
.nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #475569; padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 9px;
  color: #94a3b8; font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: none; background: transparent; width: 100%;
  font-family: inherit; text-align: left;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
.nav-item:hover { background: rgba(148, 163, 184, .08); color: #e2e8f0; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(139, 92, 246, .14));
  color: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .35);
}
.nav-item.active svg { opacity: 1; color: #a5b4fc; }
.nav-item .nav-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  background: rgba(16, 185, 129, .18); color: #34d399;
  padding: 1px 7px; border-radius: 999px;
}

.stepper { padding: 16px 20px 8px; margin-top: auto; }
.step {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 0; font-size: 11.5px; color: #64748b; font-weight: 500;
}
.step-dot {
  width: 18px; height: 18px; border-radius: 999px; flex-shrink: 0;
  border: 1.5px solid #334155; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; color: #64748b;
  transition: all .25s ease;
}
.step.done .step-dot { background: var(--accent-grad); border-color: transparent; color: #fff; }
.step.done { color: #c7d2fe; }

.sidebar-footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, .08);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.health { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #64748b; font-weight: 500; }
.health-dot {
  width: 8px; height: 8px; border-radius: 999px; background: #475569;
  transition: background .3s ease, box-shadow .3s ease;
}
.health-dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(16, 185, 129, .7); }
.health-dot.bad { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, .7); }

.theme-toggle {
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, .15);
  background: rgba(148, 163, 184, .06); color: #94a3b8;
  cursor: pointer; display: grid; place-items: center;
  transition: all .2s ease;
}
.theme-toggle:hover { color: #e2e8f0; border-color: rgba(148, 163, 184, .35); }
.theme-toggle svg { width: 16px; height: 16px; }

/* ---------- Main ---------- */
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.page-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.page-sub { font-size: 12.5px; color: var(--text-3); margin: 1px 0 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.header-marker {
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 4px 12px; background: var(--surface);
}
.shell-chip {
  display: none; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(99, 102, 241, .1); border: 1px solid rgba(99, 102, 241, .3);
  padding: 4px 12px; border-radius: 999px; max-width: 320px;
}
.shell-chip.visible { display: flex; }
.shell-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { padding: 26px 32px 60px; max-width: 1480px; width: 100%; margin: 0 auto; }
.tab { display: none; animation: fadeUp .32s ease; }
.tab.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease;
}
.card.hoverable:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.card .muted { color: var(--text-3); font-size: 12px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.section-head .hint { font-size: 12px; color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  border-radius: 9px; padding: 8px 15px; cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid); color: var(--text);
  transition: all .18s ease;
  text-decoration: none;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--accent-grad); color: #fff; border: none;
  box-shadow: 0 4px 14px -4px rgba(99, 102, 241, .5);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 6px 20px -4px rgba(99, 102, 241, .6); }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); border-color: transparent; }

/* ---------- Inputs ---------- */
.input, select.input {
  font-family: inherit; font-size: 13px; color: var(--text);
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: 9px; padding: 8px 12px; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.input::placeholder { color: var(--text-3); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-3); pointer-events: none; }
.search-wrap .input { padding-left: 32px; width: 240px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 2px 9px; border-radius: 999px; text-transform: uppercase;
}
.badge-green { background: rgba(16, 185, 129, .12); color: #059669; border: 1px solid rgba(16, 185, 129, .3); }
.badge-amber { background: rgba(245, 158, 11, .12); color: #b45309; border: 1px solid rgba(245, 158, 11, .35); }
.badge-red { background: rgba(239, 68, 68, .1); color: #dc2626; border: 1px solid rgba(239, 68, 68, .3); }
.badge-blue { background: rgba(59, 130, 246, .1); color: #2563eb; border: 1px solid rgba(59, 130, 246, .3); }
.badge-violet { background: rgba(139, 92, 246, .1); color: #7c3aed; border: 1px solid rgba(139, 92, 246, .3); }
.badge-gray { background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border); }
[data-theme="dark"] .badge-green { color: #34d399; }
[data-theme="dark"] .badge-amber { color: #fbbf24; }
[data-theme="dark"] .badge-red { color: #f87171; }
[data-theme="dark"] .badge-blue { color: #60a5fa; }
[data-theme="dark"] .badge-violet { color: #a78bfa; }

/* ---------- Shell gallery ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.shell-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; position: relative; overflow: hidden; }
.shell-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent-grad); opacity: 0; transition: opacity .2s ease;
}
.shell-card:hover::before, .shell-card.selected::before { opacity: 1; }
.shell-card.selected { border-color: rgba(99, 102, 241, .55); box-shadow: 0 0 0 3px rgba(99, 102, 241, .14), var(--shadow); }
.shell-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.shell-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(99, 102, 241, .1); color: var(--accent);
  display: grid; place-items: center;
}
.shell-icon svg { width: 19px; height: 19px; }
.shell-title { font-size: 13.5px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.shell-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.shell-pop { font-size: 11.5px; color: var(--text-3); }

/* ---------- Dropzone ---------- */
.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; cursor: pointer;
  color: var(--text-3); font-size: 13px;
  transition: all .2s ease; background: var(--surface);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(99, 102, 241, .05); color: var(--accent); }
.dropzone svg { width: 26px; height: 26px; margin-bottom: 8px; opacity: .7; }
.dropzone b { color: var(--text-2); font-weight: 600; }
.dropzone.drag b, .dropzone:hover b { color: var(--accent); }
.dropzone .dz-formats { font-size: 11px; margin-top: 4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-solid); max-height: 560px; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.tbl th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-soft); color: var(--text-2);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  text-align: left; padding: 9px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--border-strong);
}
.tbl td { padding: 7px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.tbl tbody tr { transition: background .12s ease; }
.tbl tbody tr:hover { background: rgba(99, 102, 241, .045); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .mono, .mono { font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: 11.5px; }
.tbl td .input { width: 100%; min-width: 90px; padding: 4px 8px; font-size: 12px; border-radius: 6px; }
.tbl td select.input { min-width: 86px; }

/* ---------- Data viewer layout ---------- */
.dv-layout { display: grid; grid-template-columns: 270px 1fr; gap: 18px; align-items: start; }
.ds-list { display: flex; flex-direction: column; gap: 8px; }
.ds-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  transition: all .18s ease;
}
.ds-item:hover { border-color: var(--border-strong); transform: translateX(2px); }
.ds-item.active { border-color: rgba(99, 102, 241, .55); background: rgba(99, 102, 241, .07); box-shadow: 0 0 0 3px rgba(99, 102, 241, .1); }
.ds-item-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(59, 130, 246, .1); color: var(--blue);
  display: grid; place-items: center;
}
.ds-item-icon svg { width: 16px; height: 16px; }
.ds-item-name { font-weight: 650; font-size: 13px; }
.ds-item-sub { font-size: 11px; color: var(--text-3); }

.meta-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 4px 0 14px; }
.stat { display: flex; flex-direction: column; }
.stat .v { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.stat .k { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.subtab {
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-3);
  background: none; border: none; cursor: pointer;
  padding: 8px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .18s ease, border-color .18s ease;
}
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Code ---------- */
.code-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  background: #131a2e; color: #94a3b8; font-size: 12px;
  padding: 8px 14px; border-bottom: 1px solid rgba(148, 163, 184, .12);
}
.code-head .fname { font-weight: 600; color: #c7d2fe; display: flex; align-items: center; gap: 8px; }
.code-head .dots { display: flex; gap: 5px; }
.code-head .dots i { width: 9px; height: 9px; border-radius: 999px; display: block; }
pre.code {
  margin: 0; background: var(--code-bg); color: #dbe4f5;
  padding: 16px 18px; overflow: auto; max-height: 600px;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.65; tab-size: 4;
}
.code-actions { display: flex; gap: 6px; }
.code-actions .btn { background: rgba(148, 163, 184, .1); border-color: rgba(148, 163, 184, .2); color: #cbd5e1; }
.code-actions .btn:hover { border-color: var(--accent); color: #fff; }

/* ---------- Outputs ---------- */
.out-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.out-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.out-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .03em;
}
.out-icon.rtf { background: rgba(59, 130, 246, .12); color: #2563eb; }
.out-icon.pdf { background: rgba(239, 68, 68, .1); color: #dc2626; }
.out-icon.apdf { background: rgba(139, 92, 246, .12); color: #7c3aed; }
.out-icon.zip { background: rgba(245, 158, 11, .12); color: #b45309; }
[data-theme="dark"] .out-icon.rtf { color: #60a5fa; }
[data-theme="dark"] .out-icon.pdf { color: #f87171; }
[data-theme="dark"] .out-icon.apdf { color: #a78bfa; }
[data-theme="dark"] .out-icon.zip { color: #fbbf24; }

.log-box {
  background: var(--code-bg); color: #9aa8c0; border-radius: 10px;
  padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.6; max-height: 280px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}

/* ---------- Empty / status ---------- */
.empty {
  text-align: center; padding: 54px 24px; color: var(--text-3);
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
}
.empty svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 10px; }
.empty .empty-title { font-weight: 650; color: var(--text-2); font-size: 14px; margin-bottom: 3px; }
.empty .btn { margin-top: 14px; }

.status-line { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.spinner {
  width: 16px; height: 16px; border-radius: 999px;
  border: 2px solid rgba(99, 102, 241, .25); border-top-color: var(--accent);
  animation: spin .7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Skeletons ---------- */
.skel {
  position: relative; overflow: hidden; background: var(--bg-soft);
  border-radius: 8px; min-height: 12px;
}
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .18), transparent);
  animation: shimmer 1.4s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-card { height: 148px; border-radius: var(--radius); }
.skel-row { height: 38px; border-radius: 9px; margin-bottom: 8px; }

/* ---------- Toasts ---------- */
#toasts {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  display: flex; flex-direction: column; gap: 10px; max-width: 380px;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface-solid); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 16px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s cubic-bezier(.21, 1.02, .73, 1);
}
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(28px); } }
.toast-ico { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-ico { color: var(--green); }
.toast.error .toast-ico { color: var(--red); }
.toast.info .toast-ico { color: var(--blue); }
.toast .toast-msg b { display: block; font-weight: 650; }
.toast .toast-msg span { color: var(--text-2); font-weight: 400; font-size: 12.5px; }

/* ---------- Help ---------- */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.help-grid .span2 { grid-column: span 2; }
.help-step { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.help-step:last-child { border-bottom: none; }
.help-step-num {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px;
  background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px -3px rgba(99, 102, 241, .5);
}
.help-step b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.help-step p { margin: 0; color: var(--text-2); font-size: 12.5px; }
details.faq {
  border: 1px solid var(--border); border-radius: 11px;
  padding: 0 16px; margin-bottom: 10px; background: var(--surface-solid);
  transition: border-color .2s ease;
}
details.faq[open] { border-color: rgba(99, 102, 241, .4); }
details.faq summary {
  cursor: pointer; font-weight: 600; font-size: 13px; padding: 13px 0;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--text-3); font-size: 17px; font-weight: 400; transition: transform .2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 14px; color: var(--text-2); font-size: 12.5px; }
.kbd {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px;
}
.callout {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px;
  font-size: 12.5px; color: var(--text-2); margin: 12px 0;
  background: rgba(99, 102, 241, .06); border: 1px solid rgba(99, 102, 241, .22);
}
.callout svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }

.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .dv-layout { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .help-grid .span2 { grid-column: span 1; }
}
@media (max-width: 860px) {
  .sidebar { width: 64px; }
  .main { margin-left: 64px; }
  .brand-name, .brand-ver, .nav-item span, .nav-label, .stepper, .health span { display: none; }
  .nav-item { justify-content: center; padding: 11px; }
  .nav-item .nav-badge { display: none; }
  .sidebar-footer { flex-direction: column; }
  .content { padding: 20px 16px 60px; }
  .topbar { padding: 12px 16px; }
  .header-marker { display: none; }
}

/* v0.2.1 attribution */
.sidebar-footer .attribution{
  font-size:11px;color:var(--text-2);opacity:.85;line-height:1.4;
  padding:8px 2px 0;border-top:1px solid var(--border);margin-top:8px;width:100%;
}
.about-line{font-size:12.5px;color:var(--text-2)}
