/* ── reset & root ── */
:root {
  --bg: #fafafa; --fg: #111; --card: #fff; --muted: #f2f2f2; --muted-fg: #525252;
  --border: #e5e5e5; --side: #f4f4f4; --ws: #fcfcfc;
  --running: #2563eb; --completed: #16a34a; --failed: #dc2626;
  --pending: #a3a3a3; --blocked: #d97706; --cancelled: #737373;
  --red-bg: #fef2f2; --green-bg: #f0fdf4; --green-fg: #166534; --red-fg: #991b1b;
  --term-bg: #0d1117; --term-fg: #c9d1d9; --term-green: #56d364;
  --term-yellow: #e3b341; --term-red: #f85149; --term-blue: #79c0ff;
}
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden; font-size: 14px;
}
h1, h2, h3, .display { font-family: "Outfit", ui-sans-serif, system-ui, sans-serif; }
code, pre, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #000; outline-offset: 1px;
}
::selection { background: #111; color: #fafafa; }
svg.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.fade { animation: fade .28s ease-out both; }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fade, .pulse, .spin { animation: none !important; } }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; font-weight: 600; color: var(--muted-fg); }
.muted { color: var(--muted-fg); }
.xs { font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.scroll { scrollbar-width: thin; scrollbar-color: #d4d4d4 transparent; }

/* ── shell ── */
#app { display: flex; height: 100dvh; width: 100%; overflow: hidden; }
#side { width: 256px; flex: none; border-right: 1px solid var(--border); background: var(--side); display: flex; flex-direction: column; transition: width .2s; }
#side.collapsed { width: 64px; }
#side.collapsed .hide-c { display: none; }
main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
header.top { height: 48px; flex: none; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; padding: 0 16px; }
header.top h2 { flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ws { width: 44%; min-width: 360px; max-width: 760px; flex: none; border-left: 1px solid var(--border); background: var(--ws); display: none; flex-direction: column; }
#ws.open { display: flex; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.btn:hover:not(:disabled) { border-color: var(--fg); }
.btn.dark { background: var(--fg); color: #fff; border-color: var(--fg); }
.btn.dark:hover:not(:disabled) { opacity: .85; }
.btn:disabled { opacity: .4; }
.btn.sm { padding: 3px 7px; font-size: 11px; }
.icon-btn { padding: 6px; border-radius: 6px; color: var(--muted-fg); display: inline-flex; }
.icon-btn:hover { background: #ebebeb; color: var(--fg); }
.only-m { display: none; }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 40; }
@media (max-width: 1023px) {
  .only-m { display: inline-flex; }
  #side { position: fixed; left: 0; top: 0; bottom: 0; width: 82vw; max-width: 320px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  #side.collapsed { width: 82vw; }
  #side.collapsed .hide-c { display: revert; }
  #side.drawer { transform: none; }
  .backdrop.on { display: block; }
  #ws { position: fixed; left: 0; right: 0; bottom: 0; top: 8dvh; width: auto; max-width: none; min-width: 0; z-index: 50; border-top-left-radius: 12px; border-top-right-radius: 12px; border: 1px solid var(--border); }
  #collapse-btn { display: none; }
}

/* ── sidebar ── */
.side-head { display: flex; align-items: center; gap: 8px; padding: 12px; }
.logo { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.conv { display: flex; align-items: center; border-radius: 6px; margin: 1px 0; }
.conv.active { background: #e8e8e8; }
.conv:hover { background: #ececec; }
.conv .t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; text-align: left; font-size: 13px; }
.conv .t span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.conv .del { opacity: 0; margin-right: 4px; }
.conv:hover .del { opacity: 1; }
@media (hover: none) { .conv .del { opacity: 1; } }

/* ── empty ── */
.empty { flex: 1; overflow-y: auto; }
.empty .in { max-width: 768px; margin: 0 auto; padding: 12vh 24px 40px; }
.empty h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; margin: 12px 0 0; }
.example { display: flex; width: 100%; align-items: center; gap: 16px; padding: 16px 0; text-align: left; border-bottom: 1px solid var(--border); }
.example:hover { background: #fff; }
.examples { border-top: 1px solid var(--border); margin-top: 40px; }

/* ── thread ── */
#thread-wrap { position: relative; flex: 1; min-height: 0; }
#thread { height: 100%; overflow-y: auto; overflow-x: hidden; }
.thread-in { max-width: 768px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 32px; }
.umsg { align-self: flex-end; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--fg); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 16px; font-size: 14px; }
.run { display: flex; flex-direction: column; gap: 16px; }
.run-body { display: flex; flex-direction: column; gap: 16px; padding-left: 32px; }
@media (max-width: 640px) { .run-body { padding-left: 0; } }
.avatar { width: 24px; height: 24px; border-radius: 6px; background: var(--fg); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.badge { border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 10px; color: var(--muted-fg); }
.sec-btn { display: flex; width: 100%; align-items: center; gap: 10px; padding: 4px 0; text-align: left; }
.sec-btn .chev { margin-left: auto; color: var(--muted-fg); transition: transform .2s; }
.sec-btn .chev.up { transform: rotate(180deg); }
.sec-title { font-family: Outfit, sans-serif; font-size: 14px; font-weight: 500; }
.sec-body { margin-left: 7px; border-left: 1px solid var(--border); padding: 4px 0 0 20px; }
.st { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid transparent; flex: none; }
.st.sm { width: 16px; height: 16px; }
.st.md { width: 20px; height: 20px; }
.st svg { stroke-width: 2.5; }
.st.sm svg { width: 10px; height: 10px; }
.st.md svg { width: 12px; height: 12px; }
.st.completed, .st.passed { background: var(--completed); color: #fff; }
.st.failed { background: var(--failed); color: #fff; }
.st.running, .st.drafting, .st.executing { border-color: var(--running); color: var(--running); background: #fff; }
.st.retrying, .st.blocked, .st.partial { border-color: var(--blocked); color: var(--blocked); background: #fff; }
.st.pending, .st.not_run { border: 1px dashed var(--pending); color: transparent; background: #fff; }
.st.ready { border-color: var(--pending); color: transparent; background: #fff; }
.st.cancelled { border-color: var(--cancelled); color: var(--cancelled); background: #fff; }
.sl { font-size: 12px; font-weight: 500; color: var(--muted-fg); }
.sl.completed, .sl.passed { color: var(--completed); }
.sl.running, .sl.drafting, .sl.executing { color: var(--running); }
.sl.failed { color: var(--failed); }
.sl.blocked, .sl.retrying, .sl.partial { color: var(--blocked); }
.task { display: flex; gap: 12px; }
.task .rail { display: flex; flex-direction: column; align-items: center; }
.task .rail i { margin-top: 4px; width: 1px; flex: 1; background: var(--border); }
.task .rail i.done { background: rgba(22,163,74,.4); }
.task .main { min-width: 0; flex: 1; padding-bottom: 16px; }
.task-btn { display: flex; width: 100%; gap: 8px; align-items: flex-start; text-align: left; }
.task-btn:disabled { cursor: default; }
.task-detail { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 3px 8px; font-size: 11.5px; }
.chip:hover { border-color: var(--fg); }
.errbox { background: var(--red-bg); color: var(--failed); border-radius: 6px; padding: 8px 12px; font-size: 12px; }
.errbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--red-bg); border-radius: 6px; padding: 10px 12px; color: var(--failed); font-size: 13px; }
.errbar p { flex: 1; margin: 0; min-width: 0; }
.final { border-top: 1px solid var(--border); padding-top: 16px; }
.prog { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--muted-fg); list-style: none; padding: 0; margin: 0; }

/* ── markdown ── */
.md { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.md p { margin: 8px 0; }
.md ul { list-style: disc; padding-left: 20px; margin: 8px 0; }
.md ol { padding-left: 20px; margin: 8px 0; }
.md li { margin: 3px 0; }
.md h1, .md h2, .md h3, .md h4 { font-weight: 500; margin: 16px 0 8px; }
.md h1 { font-size: 20px; }
.md h2 { font-size: 18px; }
.md h3, .md h4 { font-size: 16px; }
.md a { text-decoration: underline; text-underline-offset: 2px; }
.md :not(pre) > code { background: var(--muted); padding: 1px 4px; border-radius: 4px; font-size: .85em; }
.md table { font-size: 13px; border-collapse: collapse; margin: 12px 0; display: block; overflow-x: auto; max-width: 100%; }
.md th, .md td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; }
.md blockquote { border-left: 2px solid var(--border); padding-left: 12px; color: var(--muted-fg); margin: 8px 0; }
.codeblock { margin: 12px 0; border: 1px solid var(--border); border-radius: 6px; background: #fff; overflow: hidden; max-width: 100%; }
.codeblock .h { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding: 6px 12px; font-size: 11px; color: var(--muted-fg); }
.codeblock pre { margin: 0; padding: 12px; max-height: 420px; overflow: auto; font-size: 12.5px; line-height: 1.55; }
.codeblock .h button:hover { color: var(--fg); }

/* ── composer ── */
.composer { border-top: 1px solid var(--border); background: var(--bg); padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
.composer .w { max-width: 768px; margin: 0 auto; }
.seg { display: inline-flex; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 2px; }
.seg button { padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--muted-fg); }
.seg button.on { background: var(--fg); color: #fff; }
.box { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 8px; transition: border-color .2s; }
.box:focus-within { border-color: var(--fg); }
.box textarea { flex: 1; resize: none; border: 0; outline: 0 !important; background: transparent; padding: 8px; font: inherit; font-size: 16px; min-height: 40px; max-height: 200px; color: var(--fg); }
@media (min-width: 640px) { .box textarea { font-size: 14px; } }
.send { width: 40px; height: 40px; border-radius: 8px; background: var(--fg); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.send:disabled { opacity: .3; }
.jump { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: none; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); align-items: center; gap: 6px; }
.jump.on { display: inline-flex; }

/* ── workspace ── */
.ws-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding: 12px 16px; }
.files { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); padding: 8px 12px; }
.fbtn { flex: none; border-radius: 6px; padding: 4px 8px; font-size: 11.5px; color: var(--muted-fg); display: inline-flex; gap: 6px; align-items: center; }
.fbtn:hover { background: #ececec; color: var(--fg); }
.fbtn.on { background: var(--fg); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding: 10px 16px 0; }
.tab { border-bottom: 2px solid transparent; padding-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--muted-fg); }
.tab.on { border-color: var(--fg); color: var(--fg); }
.tab:disabled { opacity: .4; }
.ws-body { flex: 1; min-height: 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.ws-body > * { flex: 1; min-height: 0; }
.code { margin: 0; height: 100%; overflow: auto; background: #fff; padding: 12px 0; font-size: 12.5px; line-height: 1.65; }
.code .ln { display: grid; grid-template-columns: auto 1fr; }
.code .ln b { font-weight: 400; user-select: none; text-align: right; padding: 0 16px 0 12px; color: rgba(82,82,82,.55); }
.code .ln span { white-space: pre; padding-right: 16px; }
.code.plain { padding: 12px 16px; white-space: pre; }
.diff div { white-space: pre; padding: 0 12px; color: var(--muted-fg); }
.diff .a { background: var(--green-bg); color: var(--green-fg); }
.diff .d { background: var(--red-bg); color: var(--red-fg); }
.diff .h { color: var(--running); }
select.sel { border: 1px solid var(--border); background: #fff; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-family: "IBM Plex Mono", monospace; margin-left: auto; margin-bottom: 6px; }
iframe.pv { width: 100%; height: 100%; border: 0; background: #fff; }

/* ── modal ── */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.on { display: flex; }
.dlg { background: #fff; border-radius: 12px; width: 100%; max-width: 480px; max-height: 92dvh; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dlg h3 { margin: 0; font-size: 18px; font-weight: 500; }
.dlg label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; }
.dlg input { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; font-family: "IBM Plex Mono", monospace; font-size: 16px; }
@media (min-width: 640px) { .dlg input { font-size: 13px; } }
.dlg fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.dlg legend { font-size: 11px; padding: 0 6px; color: var(--muted-fg); }
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 100; max-width: 90vw; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.toast.err { background: var(--failed); }

/* ── asset ── */
.st.generating { border-color: var(--running); color: var(--running); background: #fff; }
.st.done { background: var(--completed); color: #fff; }
.sl.done { color: var(--completed); }
.sl.generating { color: var(--running); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding-top: 12px; }
.asset-card { border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.asset-thumb { width: 100%; overflow: hidden; background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50%/16px 16px; }
.asset-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.plate { width: 100%; height: 100%; min-height: 72px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 11px; color: var(--muted-fg); overflow-wrap: anywhere; background: linear-gradient(110deg, #f2f2f2 30%, #fafafa 50%, #f2f2f2 70%); background-size: 200% 100%; animation: plate 1.6s linear infinite; }
.plate.err { animation: none; background: var(--red-bg); color: var(--failed); }
@keyframes plate { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .plate { animation: none !important; } }
.asset-meta { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.asset-meta .nm { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.asset-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 10px 10px; }
.asset-prompt { margin: 0; padding: 8px 10px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--muted); max-height: 200px; overflow: auto; }
.assetbar { display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid var(--border); padding: 8px 12px; }
.achip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 3px 8px 3px 3px; font-size: 11.5px; }
.achip:hover { border-color: var(--fg); }
.achip img { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; background: var(--muted); }
.achip span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg select { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }

/* ── LOGIN PAGE ── */
#login-page {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; flex-direction: column; gap: 0;
}
#login-page.hidden { display: none; }
.login-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 40px 36px; width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.login-card .logo-big { font-size: 28px; font-weight: 600; letter-spacing: -.04em; text-align: center; }
.login-card p { margin: 0; text-align: center; color: var(--muted-fg); font-size: 13px; line-height: 1.5; }
.oauth-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 11px 16px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.oauth-btn:hover { border-color: #999; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.oauth-btn img { width: 18px; height: 18px; flex: none; }
.oauth-divider { display: flex; align-items: center; gap: 10px; }
.oauth-divider hr { flex: 1; border: none; border-top: 1px solid var(--border); }
.oauth-divider span { font-size: 11px; color: var(--muted-fg); }
.ts-wrap { display: flex; justify-content: center; }

/* ── USER AVATAR (top bar) ── */
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); cursor: pointer;
}
.user-menu {
  position: absolute; right: 12px; top: 48px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; padding: 6px;
  min-width: 180px; box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 60;
  display: none; flex-direction: column; gap: 2px;
}
.user-menu.on { display: flex; }
.user-menu-item { padding: 8px 10px; border-radius: 6px; font-size: 13px; text-align: left; cursor: pointer; }
.user-menu-item:hover { background: var(--muted); }
.user-menu-item.danger { color: var(--failed); }

/* ── TERMINAL PANEL ── */
#term-panel {
  position: fixed; inset: 0; z-index: 150; display: none;
  flex-direction: column; background: var(--term-bg);
}
#term-panel.open { display: flex; }
.term-top {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: #161b22; border-bottom: 1px solid #30363d; flex: none;
}
.term-top .term-title { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--term-fg); flex: 1; }
.term-close { color: #6e7681; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.term-close:hover { background: #21262d; color: var(--term-fg); }
.term-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#term-output {
  flex: 1; overflow-y: auto; padding: 16px; font-family: "IBM Plex Mono", monospace;
  font-size: 13px; line-height: 1.6; color: var(--term-fg);
  scrollbar-width: thin; scrollbar-color: #30363d transparent;
}
.term-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.term-line.cmd { color: var(--term-green); }
.term-line.out { color: var(--term-fg); }
.term-line.err { color: var(--term-red); }
.term-line.ai { color: var(--term-blue); }
.term-line.info { color: var(--term-yellow); }
.term-composer {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: #161b22; border-top: 1px solid #30363d; flex: none;
}
.term-prompt { color: var(--term-green); font-family: "IBM Plex Mono", monospace; font-size: 13px; flex: none; }
#term-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--term-fg); font-family: "IBM Plex Mono", monospace; font-size: 13px;
  caret-color: var(--term-green);
}
.term-send { color: #6e7681; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.term-send:hover { background: #21262d; color: var(--term-fg); }
.term-tabs {
  display: flex; gap: 2px; padding: 8px 16px 0; background: #161b22;
  border-bottom: 1px solid #30363d; flex: none;
}
.term-tab { padding: 6px 12px; border-radius: 6px 6px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #6e7681; }
.term-tab.on { background: var(--term-bg); color: var(--term-fg); }
.term-tab:hover { color: var(--term-fg); }
.term-mode-toggle {
  display: flex; align-items: center; gap: 6px; padding: 0 16px;
  font-size: 11px; color: #6e7681; flex: none; border-top: 1px solid #21262d; padding: 6px 16px;
}
.term-mode-toggle label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
