/* ☠ VadGPT ☠ – Design */
:root {
  --red: #e11d2e;
  --red-hover: #ff3346;
  --red-dim: rgba(225, 29, 46, .14);
  --bg: #0e0b0b;
  --bg-2: #161212;
  --bg-3: #1f1919;
  --bg-4: #2a2222;
  --border: #322828;
  --text: #f1eaea;
  --text-2: #b9aeae;
  --text-3: #7e7272;
  --code-bg: #120e0e;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --red: #c8102e;
  --red-hover: #e11d2e;
  --red-dim: rgba(200, 16, 46, .09);
  --bg: #faf7f6;
  --bg-2: #f2edec;
  --bg-3: #e9e2e1;
  --bg-4: #ddd3d2;
  --border: #ddd3d2;
  --text: #1e1616;
  --text-2: #5a4d4d;
  --text-3: #8c7f7f;
  --code-bg: #1b1515;
  --shadow: 0 10px 40px rgba(60, 20, 20, .15);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red); }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* Marke */
.brand { font-weight: 800; font-size: 19px; letter-spacing: .3px; color: var(--red); text-decoration: none; white-space: nowrap; text-shadow: 0 0 18px rgba(225, 29, 46, .35); }
.brand .skull { display: inline-block; filter: drop-shadow(0 0 6px rgba(225, 29, 46, .6)); }
.brand-xl { font-size: 34px; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; border: 1px solid var(--border); background: var(--bg-3); padding: 9px 14px; border-radius: 10px; cursor: pointer; transition: .15s; text-decoration: none; }
.btn:hover { background: var(--bg-4); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--red-hover); }
.btn-danger { color: var(--red); border-color: var(--red); background: transparent; }
.btn-small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; color: var(--text-2); font-size: 16px; }
.icon-btn:hover { background: var(--bg-3); color: var(--text); }
.link { background: none; border: 0; color: var(--text-2); cursor: pointer; text-decoration: underline; }
.danger { color: var(--red) !important; }

input:not([type=checkbox]):not([type=range]), textarea, select { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; outline: none; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--red); }
textarea { resize: vertical; }

/* Auth */
.auth { height: 100%; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at top, rgba(225, 29, 46, .18), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 32px 26px; box-shadow: var(--shadow); }
.auth-card p { margin: 0 0 6px; text-align: center; }
.auth-error { color: var(--red); min-height: 1em; font-size: 14px; }

/* Layout */
.app { display: flex; height: 100%; }
.sidebar { width: 280px; flex-shrink: 0; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 12px; gap: 10px; transition: margin .2s; z-index: 30; }
.app.sidebar-collapsed .sidebar { margin-left: -280px; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 8px; }
.new-chat { width: 100%; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { padding: 8px 10px; border-radius: 9px; color: var(--text); text-decoration: none; }
.side-link:hover, .side-link.active { background: var(--bg-3); }
.search { padding: 8px 12px !important; font-size: 14px; }
.chat-lists { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.list-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-3); margin: 14px 8px 4px; }
.chat-item { display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 9px; cursor: pointer; color: var(--text); text-decoration: none; font-size: 14px; }
.chat-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item:hover { background: var(--bg-3); }
.chat-item.active { background: var(--red-dim); color: var(--text); box-shadow: inset 2px 0 0 var(--red); }
.chat-item .del { opacity: 0; border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 0 4px; }
.chat-item:hover .del { opacity: 1; }
.chat-item .del:hover { color: var(--red); }
.sidebar-bottom { position: relative; border-top: 1px solid var(--border); padding-top: 10px; }
.user-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px; border-radius: 10px; cursor: pointer; text-align: left; }
.user-btn:hover { background: var(--bg-3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.sidebar-backdrop { display: none; }

.menu { position: absolute; background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; padding: 5px; box-shadow: var(--shadow); z-index: 50; min-width: 220px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.menu button:hover { background: var(--bg-4); }
#user-menu { bottom: 54px; left: 0; right: 0; }
.dropdown { position: relative; }
.menu-right { right: 0; top: 40px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 54px; border-bottom: 1px solid transparent; }
.app:not(.sidebar-collapsed) #sidebar-open { display: none; }
.topbar-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.crumb { color: var(--text-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.crumb::after { content: " /"; color: var(--text-3); }
.chat-title { background: none; border: 0; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.chat-title:hover { background: var(--bg-3); }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.model-select { width: auto !important; max-width: 240px; padding: 6px 10px !important; font-size: 13.5px; background: var(--bg-2); }
#star-btn.on { color: #f5b301; }

.content { flex: 1; min-height: 0; position: relative; }
.chat-view { height: 100%; display: flex; flex-direction: column; }
.messages { flex: 1; overflow-y: auto; padding: 18px 16px 30px; scroll-behavior: auto; }
.chat-view.empty .messages { display: none; }
.welcome { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 16px; flex: 1; text-align: center; overflow-y: auto; }
.chat-view.empty .welcome { display: flex; }
.chat-view.empty { justify-content: flex-start; }
.chat-view.empty .composer-wrap { justify-content: flex-start; padding-top: 16px; }
.welcome-logo img { width: 74px; height: 74px; filter: drop-shadow(0 0 22px rgba(225, 29, 46, .55)); animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 34px rgba(225, 29, 46, .8)); transform: scale(1.03); } }
.welcome h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 600; margin: 10px 0 0; }
#quick-prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; width: 100%; max-width: 680px; margin-top: 28px; }
.qp-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); cursor: pointer; font-size: 13.5px; text-align: left; transition: .15s; }
.qp-btn:hover { border-color: var(--red); background: var(--red-dim); }
.qp-icon { font-size: 20px; flex-shrink: 0; }
@keyframes qpflash { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px var(--red); } }
.qp-flash { animation: qpflash .6s ease; }

/* Nachrichten */
.msg { max-width: 780px; margin: 0 auto 22px; display: flex; flex-direction: column; }
.msg.user { align-items: flex-end; }
.msg.user .bubble { background: var(--bg-3); border: 1px solid var(--border); padding: 10px 16px; border-radius: 18px 18px 4px 18px; max-width: 85%; white-space: pre-wrap; word-wrap: break-word; }
.msg.assistant .bubble { width: 100%; }
.msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--text-3); font-size: 12.5px; }
.msg-head img { width: 20px; height: 20px; }
.msg-actions { display: flex; align-items: center; gap: 2px; margin-top: 4px; opacity: 0; transition: opacity .15s; color: var(--text-3); font-size: 12.5px; }
.msg:hover .msg-actions, .msg:last-child .msg-actions { opacity: 1; }
.msg-actions .icon-btn { min-width: 28px; height: 28px; font-size: 14px; }
.branch-nav { display: inline-flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.msg-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; justify-content: flex-end; }
.msg-attachments img { max-width: 220px; max-height: 180px; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; font-size: 13px; max-width: 260px; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { border: 0; background: none; cursor: pointer; color: var(--text-3); }
.file-chip.loading { opacity: .6; }
.file-chip img { width: 28px; height: 28px; object-fit: cover; border-radius: 5px; }
.edit-box { width: min(100%, 640px); display: flex; flex-direction: column; gap: 8px; }
.edit-box .row { display: flex; gap: 8px; justify-content: flex-end; }
.error-box { border: 1px solid var(--red); background: var(--red-dim); padding: 10px 14px; border-radius: 10px; color: var(--text); }

/* Markdown */
.md { word-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol { margin: .6em 0; }
.md h1, .md h2, .md h3, .md h4 { line-height: 1.3; margin: 1.2em 0 .5em; }
.md h1 { font-size: 1.5em; } .md h2 { font-size: 1.3em; } .md h3 { font-size: 1.12em; }
.md code { font-family: var(--mono); font-size: .88em; background: var(--bg-3); padding: .15em .4em; border-radius: 6px; }
.md pre { margin: .8em 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--code-bg); }
.md pre code { display: block; padding: 14px 16px; overflow-x: auto; background: none; font-size: 13.5px; line-height: 1.55; color: #eee; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px 14px; background: #1d1616; color: #b5a8a8; font: 12px var(--mono); }
.code-head button { background: none; border: 0; color: inherit; cursor: pointer; padding: 3px 8px; border-radius: 6px; font: inherit; }
.code-head button:hover { background: #2b2222; color: #fff; }
.md blockquote { margin: .8em 0; padding: .1em 1em; border-left: 3px solid var(--red); color: var(--text-2); }
.md table { border-collapse: collapse; margin: .8em 0; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--border); padding: 6px 12px; }
.md th { background: var(--bg-3); }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 1.4em 0; }
.md img { max-width: 100%; }
.md a { color: var(--red); }
.cursor::after { content: "▍"; color: var(--red); animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.thinking { border: 1px solid var(--border); border-radius: 12px; margin: 4px 0 10px; background: var(--bg-2); }
.thinking summary { cursor: pointer; padding: 8px 12px; color: var(--text-2); font-size: 13.5px; list-style: none; user-select: none; }
.thinking summary::before { content: "▸ "; }
.thinking[open] summary::before { content: "▾ "; }
.thinking .think-body { padding: 0 14px 10px; color: var(--text-2); font-size: 13.5px; white-space: pre-wrap; max-height: 360px; overflow-y: auto; }

.artifact-card { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 460px; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); cursor: pointer; text-align: left; transition: .15s; }
.artifact-card:hover { border-color: var(--red); }
.artifact-card .ic { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--red-dim); color: var(--red); font-size: 18px; flex-shrink: 0; }
.artifact-card .t { font-weight: 600; }
.artifact-card .s { font-size: 12.5px; color: var(--text-3); }

/* Composer */
.composer-wrap { display: flex; flex-direction: column; align-items: center; padding: 0 16px 10px; }
.composer { width: 100%; max-width: 780px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; padding: 10px 10px 8px 14px; box-shadow: 0 4px 24px rgba(0, 0, 0, .18); transition: border-color .15s; }
.composer:focus-within { border-color: rgba(225, 29, 46, .6); }
.composer textarea { border: 0 !important; background: transparent !important; padding: 6px 0 !important; resize: none; max-height: 260px; min-height: 28px; line-height: 1.5; }
.composer-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.composer-left { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.attachments { display: flex; flex-wrap: wrap; gap: 6px; }
.attachments:not(:empty) { margin-bottom: 8px; }
.pill, .pill-select { border: 1px solid var(--border) !important; background: transparent !important; border-radius: 999px !important; padding: 4px 10px !important; font-size: 13px; cursor: pointer; width: auto !important; color: var(--text-2); }
.pill.on { background: var(--red-dim) !important; border-color: var(--red) !important; color: var(--text); }
.send-btn { width: 36px; height: 36px; border-radius: 11px; border: 0; background: var(--red); color: #fff; font-size: 19px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.send-btn:hover { background: var(--red-hover); }
.send-btn:disabled { opacity: .35; cursor: default; }
.send-btn.stop { font-size: 14px; }
.disclaimer { font-size: 11.5px; color: var(--text-3); margin: 6px 0 0; text-align: center; }
.drop-overlay { position: absolute; inset: 8px; border: 2px dashed var(--red); border-radius: 18px; background: rgba(14, 11, 11, .85); display: grid; place-items: center; font-size: 20px; color: var(--red); z-index: 40; pointer-events: none; }

/* Seiten */
.page { height: 100%; overflow-y: auto; padding: 18px 24px 40px; max-width: 1100px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page h1 { margin: 6px 0; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.project-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; cursor: pointer; text-decoration: none; color: var(--text); transition: .15s; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.project-card:hover { border-color: var(--red); transform: translateY(-1px); }
.project-card h3 { margin: 0; }
.project-card .muted { flex: 1; font-size: 13.5px; }
.project-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 10px; }
.project-side { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card h3 { margin: 0; font-size: 15px; }
.list { display: flex; flex-direction: column; gap: 4px; }
.list-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 14px; }
.list-row span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.list-row:hover { border-color: var(--red); }
.editable { cursor: text; border-radius: 8px; }
.editable:hover { background: var(--bg-2); }

/* Artefakt-Panel */
.artifact-panel { width: min(48vw, 860px); flex-shrink: 0; border-left: 1px solid var(--border); background: var(--bg-2); display: flex; flex-direction: column; }
.artifact-panel.full { position: fixed; inset: 0; width: 100%; z-index: 60; }
.artifact-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.artifact-title { flex: 1; min-width: 120px; display: flex; flex-direction: column; line-height: 1.3; overflow: hidden; }
.artifact-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artifact-actions { display: flex; align-items: center; gap: 4px; }
.seg { display: inline-flex; background: var(--bg-3); border-radius: 9px; padding: 2px; }
.seg button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.seg button.active { background: var(--bg); color: var(--text); }
.artifact-body { flex: 1; min-height: 0; overflow: auto; position: relative; }
.artifact-body iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.artifact-body pre { margin: 0; min-height: 100%; background: var(--code-bg); }
.artifact-body pre code { display: block; padding: 16px; font: 13px/1.55 var(--mono); color: #eee; white-space: pre; }
.artifact-body .md { padding: 20px 26px; }
.monaco-wrap { width: 100%; height: 100%; min-height: 300px; }
.artifact-body .monaco-wrap { overflow: hidden; }
#artifact-run, #artifact-send-chat { font-size: 12px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-3); color: var(--text); cursor: pointer; white-space: nowrap; }
#artifact-run:hover { border-color: var(--red); color: var(--red); }
#artifact-send-chat:hover { border-color: var(--red); color: var(--red); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 100; padding: 16px; backdrop-filter: blur(2px); }
.modal { width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.modal.wide { max-width: 860px; }
.modal h2 { margin: 0 0 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--text); border-color: var(--red); }
.model-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 6px; }
.model-row .n { flex: 1; min-width: 0; }
.model-row .n div:first-child { font-weight: 600; overflow-wrap: anywhere; }
.progress { height: 6px; background: var(--bg-4); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.progress div { height: 100%; background: var(--red); width: 0; transition: width .2s; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.suggest button { font-size: 12.5px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { accent-color: var(--red); width: 18px; height: 18px; }
input[type=range] { accent-color: var(--red); width: 100%; }

.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--bg-3); border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; animation: up .2s; }
.toast.err { border-color: var(--red); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

/* Mobil */
@media (max-width: 900px) {
  .artifact-panel { position: fixed; inset: 0; width: 100%; z-index: 60; }
  .project-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; height: 100%; box-shadow: var(--shadow); }
  .app:not(.sidebar-collapsed) .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 25; }
  #sidebar-open { display: inline-grid !important; }
  .model-select { max-width: 140px; }
  .messages { padding: 12px 12px 24px; }
  .composer-wrap { padding: 0 10px 8px; }
  .page { padding: 12px 16px 30px; }
  .msg.user .bubble { max-width: 92%; }
}

/* ═══ CLI Install Box ═══ */
.cli-install-box {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  background: var(--bg-2);
  max-width: 760px;
}
.cli-install-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cli-icon { font-size: 32px; line-height: 1; }
.cli-install-header h2 { margin: 0 0 2px; font-size: 17px; }
.cli-install-header p  { margin: 0; font-size: 13px; color: var(--muted); }
.cli-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.cli-tab {
  padding: 6px 16px;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 4px 4px 0 0;
  transition: .15s;
}
.cli-tab:hover  { color: var(--text); }
.cli-tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }
.cli-panel.hidden { display: none; }
.cli-step {
  margin: 10px 0 6px;
  font-size: 13.5px;
  color: var(--text);
}
.cli-code-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 4px;
}
.cli-code-wrap code {
  flex: 1;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}
.cli-copy-btn {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  transition: .15s;
}
.cli-copy-btn:hover { color: var(--text); border-color: var(--red); }
.cli-commands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}
.cli-cmd-label { color: var(--muted); font-size: 12px; }
.cli-commands code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: monospace;
}
.cli-cmd-sep { color: var(--muted); font-size: 12px; }
.cli-cmd-sep::after { content: ' ·'; }
