/* TOKENET Antigravity × Codex Design System Tokens, Base Reset & Editorial Markdown */
:root {
  color-scheme: light;
  --bg: #f9f9fb;
  --chat-bg: #f9f9fb;
  --sidebar-bg: rgba(246, 248, 252, 0.72);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-2: rgba(15, 17, 21, 0.042);
  --surface-3: rgba(15, 17, 21, 0.078);
  --surface-elevated: rgba(255, 255, 255, 0.80);
  --glass-blur: saturate(205%) blur(28px);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.94), inset 0 0 0 0.5px rgba(255, 255, 255, 0.62);
  --topbar-bg: rgba(250, 251, 254, 0.68);
  --dock-fade: rgba(249, 249, 251, 0);
  --dock-solid: #f9f9fb;
  --line: rgba(15, 17, 21, 0.078);
  --line-2: rgba(15, 17, 21, 0.135);
  --text: #111215;
  --text-2: #52565e;
  --text-3: #878b95;
  --primary: #1a73e8;
  --primary-600: #1557b0;
  --primary-fg: #ffffff;
  --primary-50: rgba(26, 115, 232, 0.08);
  --primary-100: rgba(26, 115, 232, 0.18);
  --success: #10a37f;
  --success-50: rgba(16, 163, 127, 0.09);
  --success-100: rgba(16, 163, 127, 0.20);
  --warn: #b4690e;
  --warn-50: rgba(180, 105, 14, 0.09);
  --warn-100: rgba(180, 105, 14, 0.20);
  --danger: #d93025;
  --danger-50: rgba(217, 48, 37, 0.08);
  --danger-100: rgba(217, 48, 37, 0.18);
  --user-pill: #eff0f3;
  --user-pill-border: rgba(15, 17, 21, 0.06);
  --composer-bg: #ffffff;
  --composer-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  --composer-focus-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.09), 0 0 0 1px rgba(17, 18, 21, 0.22);
  --code-bg: #f7f7f9;
  --code-head: #f0f1f4;
  --code-border: rgba(15, 17, 21, 0.09);
  --code-fg: #24272d;
  --code-head-line: rgba(15, 17, 21, 0.07);
  --code-head-fg: #6b6f78;
  --code-lang-fg: #2b2e34;
  --code-lines-fg: #9a9ea8;
  --code-btn-bg: rgba(255, 255, 255, 0.92);
  --code-btn-border: rgba(15, 17, 21, 0.10);
  --code-btn-fg: #52565e;
  --code-btn-hover-bg: #ffffff;
  --code-btn-hover-fg: #111215;
  --tok-kw: #a626a4;
  --tok-str: #50a14f;
  --tok-cmt: #a0a1a7;
  --tok-num: #986801;
  --tok-fn: #1a73e8;
  --tok-typ: #c18401;
  --tok-op: #0184bc;
  --overlay: rgba(15, 17, 21, 0.28);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.035);
  --shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 24px 56px -12px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "MiSans", sans-serif;
  --font-num: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, var(--font);
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e11;
  --chat-bg: #0d0e11;
  --sidebar-bg: rgba(18, 20, 28, 0.62);
  --surface: rgba(26, 29, 39, 0.62);
  --surface-solid: #17181d;
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.09);
  --surface-elevated: rgba(28, 32, 44, 0.72);
  --glass-blur: saturate(205%) brightness(1.10) blur(28px);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  --topbar-bg: rgba(16, 18, 26, 0.56);
  --dock-fade: rgba(13, 14, 17, 0);
  --dock-solid: #0d0e11;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.135);
  --text: #ececf1;
  --text-2: #9da1ac;
  --text-3: #636773;
  --primary: #8ab4f8;
  --primary-600: #aecbfa;
  --primary-fg: #0d0e11;
  --primary-50: rgba(138, 180, 248, 0.10);
  --primary-100: rgba(138, 180, 248, 0.22);
  --success: #4cc38a;
  --success-50: rgba(76, 195, 138, 0.11);
  --success-100: rgba(76, 195, 138, 0.24);
  --warn: #e5b567;
  --warn-50: rgba(229, 181, 103, 0.12);
  --warn-100: rgba(229, 181, 103, 0.24);
  --danger: #f28b82;
  --danger-50: rgba(242, 139, 130, 0.12);
  --danger-100: rgba(242, 139, 130, 0.24);
  --user-pill: #1f2127;
  --user-pill-border: rgba(255, 255, 255, 0.08);
  --composer-bg: rgba(23, 24, 29, 0.84);
  --composer-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.55), inset 0 0.5px 0 rgba(255, 255, 255, 0.075);
  --composer-focus-shadow: 0 18px 42px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.20);
  --code-bg: #101115;
  --code-head: #16181e;
  --code-border: rgba(255, 255, 255, 0.085);
  --code-fg: #e6edf3;
  --code-head-line: rgba(255, 255, 255, 0.07);
  --code-head-fg: #9da1ac;
  --code-lang-fg: #ececf1;
  --code-lines-fg: #636773;
  --code-btn-bg: rgba(255, 255, 255, 0.04);
  --code-btn-border: rgba(255, 255, 255, 0.10);
  --code-btn-fg: #c4c7cf;
  --code-btn-hover-bg: rgba(255, 255, 255, 0.12);
  --code-btn-hover-fg: #ffffff;
  --tok-kw: #cba6f7;
  --tok-str: #a6e3a1;
  --tok-cmt: #6c7086;
  --tok-num: #fab387;
  --tok-fn: #89b4fa;
  --tok-typ: #f9e2af;
  --tok-op: #94e2d5;
  --overlay: rgba(6, 7, 9, 0.56);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.28);
  --shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.44);
  --shadow-lg: 0 28px 64px -12px rgba(0, 0, 0, 0.72);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.58;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .24s ease, color .24s ease;
}
body.drawer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--primary-100); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.icon-xs { width: 13px; height: 13px; }
.icon-sm { width: 15px; height: 15px; }
.lobe-logo {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  user-select: none;
  pointer-events: none;
}
.lobe-logo-color {
  object-fit: contain;
}
.lobe-logo-mono {
  background-color: currentColor;
  -webkit-mask-image: var(--lobe-src);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--lobe-src);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}
.lobe-logo-sm { width: 15px; height: 15px; }
.lobe-logo-xs { width: 13px; height: 13px; }
.lobe-logo-initial { line-height: 1; }
html[data-theme="dark"] .lobe-logo-color[data-dark-lift="1"] {
  filter: contrast(0.80) brightness(1.38) saturate(1.22);
}
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 48px, 1320px); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--primary); color: var(--primary-fg); transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; }


/* ---------- Shared Buttons & Editorial Markdown Engine ---------- */
.btn-sm { height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13px; font-weight: 550; color: var(--text-2); }

.msg-badge {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid transparent;
  color: var(--text-3); font-size: 11.2px; font-weight: 500;
}
.msg-badge-node { background: var(--surface-2); border-color: var(--line); color: var(--text-2); }
.msg-badge-p2p { background: var(--success-50); border-color: transparent; color: var(--success); }

/* Spring-Animated Reasoning Accordion (<think>) */
.rx-think {
  margin: 2px 0 10px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .2s, background-color .2s;
}
.rx-think.is-thinking {
  border-color: var(--primary-100);
  background: linear-gradient(90deg, var(--primary-50) 0%, var(--surface-2) 55%);
}
.rx-think-head {
  width: 100%; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 8px 12px; border: 0; background: transparent;
  color: var(--text-2); font-size: 12.5px; font-weight: 560; text-align: left;
  user-select: none; transition: color .16s;
}
.rx-think-head:hover { color: var(--text); }
.rx-think-chevron {
  width: 14px; height: 14px; flex: 0 0 auto; color: var(--text-3);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}
.rx-think.is-open .rx-think-chevron { transform: rotate(90deg); }
.rx-think-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--primary); animation: blink .95s ease-in-out infinite;
}
.rx-think:not(.is-thinking) .rx-think-dot { display: none; }
.rx-think-title { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.rx-think-preview {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-3); font-size: 12px; font-weight: 400; margin-left: 2px;
  transition: opacity .18s;
}
.rx-think.is-open .rx-think-preview { opacity: 0; pointer-events: none; }
.rx-think-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.2, .8, .2, 1);
}
.rx-think.is-open .rx-think-panel { grid-template-rows: 1fr; }
.rx-think-inner { overflow: hidden; min-height: 0; }
.rx-think-body {
  padding: 0 14px 11px 30px; border-top: 1px dashed var(--line); padding-top: 9px;
  color: var(--text-2); font-size: 13.2px; line-height: 1.68; overflow-wrap: anywhere;
}

/* ---------- Rich Editorial Markdown + Syntax Highlighting ---------- */
.answer-text { font-size: 15.2px; line-height: 1.78; color: var(--text); overflow-wrap: anywhere; }
.md-body > :first-child,
.md-body > .md-chunk:first-child > :first-child { margin-top: 0 !important; }
.md-body > :last-child,
.md-body > .md-chunk:last-child > :last-child { margin-bottom: 0 !important; }
.md-chunk + .md-chunk { margin-top: 0.78em; }
.md-body p { margin: 0; }
.md-body p + p,
.md-body > * + p,
.md-body > p + * { margin-top: 0.76em; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4, .md-body h5, .md-body h6 {
  color: var(--text); font-weight: 680; line-height: 1.36; letter-spacing: -0.015em;
  margin: 1.15em 0 0.44em;
}
.md-body h1 { font-size: 1.34em; font-weight: 720; padding-bottom: 0.24em; border-bottom: 1px solid var(--line); }
.md-body h2 { font-size: 1.18em; font-weight: 700; padding-bottom: 0.2em; border-bottom: 1px solid var(--line); }
.md-body h3 { font-size: 1.07em; }
.md-body h4 { font-size: 1em; }
.md-body h5, .md-body h6 { font-size: 0.94em; color: var(--text-2); }
.md-body strong { font-weight: 660; color: var(--text); }
.md-think strong { color: var(--text-2); }
.md-body em { font-style: italic; }
.md-body del { color: var(--text-3); text-decoration: line-through; }
.md-body a.md-link {
  color: var(--primary); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--primary-100);
  transition: color .15s, text-decoration-color .15s;
}
.md-body a.md-link:hover { color: var(--primary-600); text-decoration-color: currentColor; }
.md-body ul, .md-body ol { margin: 0.58em 0; padding-left: 1.55em; }
.md-body ul { list-style-type: disc; }
.md-body ul ul { list-style-type: circle; margin: 0.26em 0; }
.md-body ul ul ul { list-style-type: square; }
.md-body ol { list-style-type: decimal; }
.md-body ol ol { list-style-type: lower-alpha; margin: 0.26em 0; }
.md-body li { margin: 0.28em 0; padding-left: 0.14em; line-height: 1.74; }
.md-body li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }
.md-body li > p { margin: 0; }
.md-body li > p + p { margin-top: 0.42em; }
.md-body li.md-task-item { list-style: none; margin-left: -1.3em; padding-left: 0; }
.md-task-check {
  width: 14px; height: 14px; margin: 0 0.45em 0 0; vertical-align: -2px;
  accent-color: var(--primary); pointer-events: none;
}
.md-body blockquote {
  margin: 0.78em 0; padding: 9px 15px;
  border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0;
  background: var(--primary-50); color: var(--text-2);
}
.md-body hr { margin: 1.1em 0; border: 0; border-top: 1px solid var(--line-2); }
.md-body code:not(pre code) {
  padding: 1.5px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font-mono); font-size: 0.865em;
}
.md-code-block {
  margin: 0.88em 0; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--code-border); background: var(--code-bg);
  box-shadow: var(--shadow-sm);
}
.md-code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 36px; padding: 0 10px 0 14px;
  background: var(--code-head); border-bottom: 1px solid var(--code-head-line);
  color: var(--code-head-fg); font-size: 12px; user-select: none;
}
.md-code-meta { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.md-code-lang {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--code-lang-fg); letter-spacing: 0.02em; text-transform: lowercase;
}
.md-code-lines {
  font-family: var(--font-num); font-size: 11px; color: var(--code-lines-fg);
  font-variant-numeric: tabular-nums;
}
.md-code-actions { display: inline-flex; align-items: center; gap: 6px; }
.md-code-btn,
.md-code-copy {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--code-btn-border);
  background: var(--code-btn-bg); color: var(--code-btn-fg);
  font-size: 11.5px; font-weight: 500;
  transition: background-color .15s, color .15s, border-color .15s;
}
.md-code-btn:hover,
.md-code-copy:hover { background: var(--code-btn-hover-bg); color: var(--code-btn-hover-fg); }
.md-code-btn.is-active { border-color: var(--primary-100); background: var(--primary-50); color: var(--primary); }
.md-code-copy.is-done { border-color: var(--success-100); background: var(--success-50); color: var(--success); }
.md-body pre {
  margin: 0; padding: 14px 16px; overflow-x: auto;
  background: var(--code-bg); color: var(--code-fg);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.64;
  white-space: pre; overflow-wrap: normal; word-break: normal; tab-size: 2;
}
.md-code-block.is-wrapped pre {
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
.md-body > pre { margin: 0.8em 0; border-radius: 11px; }
.md-body pre code {
  padding: 0; background: none; border: 0; border-radius: 0;
  color: inherit; font: inherit; white-space: inherit;
}
/* Lexical Syntax Highlighting Spans */
.tok-kw { color: var(--tok-kw); font-weight: 550; }
.tok-str { color: var(--tok-str); }
.tok-cmt { color: var(--tok-cmt); font-style: italic; }
.tok-num { color: var(--tok-num); }
.tok-fn { color: var(--tok-fn); }
.tok-typ { color: var(--tok-typ); }
.tok-op { color: var(--tok-op); }

.md-table-wrap {
  margin: 0.85em 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.md-table-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px 6px 13px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-3);
}
.md-table-actions { display: inline-flex; align-items: center; gap: 5px; }
.md-tbl-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text-2); font-size: 11px; font-weight: 560;
  transition: border-color .14s, color .14s, background-color .14s;
}
.md-tbl-btn:hover { border-color: var(--primary-100); color: var(--primary); background: var(--primary-50); }
.md-table-scroll { overflow-x: auto; }
.md-mermaid-card {
  margin: 0.88em 0; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.md-mermaid-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 35px; padding: 0 10px 0 13px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 11.8px; color: var(--text-2); font-weight: 600;
}
.md-mermaid-stage {
  padding: 16px; overflow-x: auto; display: grid; place-items: center;
  background: var(--surface);
}
.md-mermaid-stage svg { max-width: 100%; height: auto; }
.md-body table { width: 100%; border-collapse: collapse; font-size: 0.92em; line-height: 1.56; }
.md-body th, .md-body td {
  padding: 9px 13px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.md-body th + th, .md-body td + td { border-left: 1px solid var(--line); }
.md-body thead th {
  background: var(--surface-2); color: var(--text); font-weight: 650;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.md-body tbody tr:last-child td { border-bottom: 0; }
.md-body tbody tr:nth-child(even) td { background: var(--surface-2); }
.md-body img.md-img { max-width: 100%; height: auto; margin: 0.5em 0; border-radius: 10px; border: 1px solid var(--line); }
.md-math { font-family: "Times New Roman", "STIX Two Math", Georgia, serif; font-size: 1.04em; }
.md-math i { font-style: italic; }
.md-mrom { font-family: var(--font); font-style: normal; font-size: 0.94em; }
.md-mbb { font-weight: 650; font-style: normal; }
.md-math-block {
  margin: 0.75em 0; padding: 10px 14px; overflow-x: auto; text-align: center;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  font-family: "Times New Roman", "STIX Two Math", Georgia, serif; font-size: 1.08em; line-height: 1.65;
}
.md-frac {
  display: inline-flex; flex-direction: column; align-items: center;
  vertical-align: middle; margin: 0 0.16em; font-size: 0.88em; line-height: 1.15;
}
.md-frac-num { padding: 0 0.22em 1px; border-bottom: 1px solid currentColor; }
.md-frac-den { padding: 1px 0.22em 0; }
.md-binom .md-frac-num { border-bottom: 0; }
.md-sqrt { display: inline-flex; align-items: baseline; }
.md-sqrt-body { border-top: 1px solid currentColor; padding: 0 2px; }
.md-sqrt-idx { font-size: 0.7em; margin-right: -2px; }
.md-inline-preview { display: inline; }
.md-body.is-active-stream .md-chunk:last-child :is(p, h1, h2, h3, h4, h5, h6, pre > code, td, th, .md-math-block, li:not(:has(> p, > ul, > ol, > blockquote, > .md-code-block, > .md-table-wrap, > .md-math-block))):not(.md-chunk :not(:last-child) *):last-child::after {
  content: ""; display: inline-block; width: 2.5px; height: 1.06em; margin-left: 3px;
  vertical-align: -2px; border-radius: 2px; background: var(--primary); animation: blink .85s steps(2) infinite;
}
.md-body.is-active-stream .md-chunk:last-child pre > code:not(.md-chunk :not(:last-child) *):last-child::after {
  background: var(--primary);
}
.msg-waiting {
  color: var(--text-3); font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0;
}
.msg-waiting::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); animation: blink .9s ease-in-out infinite;
}
.msg-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 4px 2px 0; color: var(--text-3); font-size: 12px;
}
.msg-foot span b { color: var(--text-2); font-family: var(--font-num); font-weight: 600; }
.msg-copy-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 8px; border-radius: 7px;
  border: 1px solid transparent; background: transparent; color: var(--text-3); font-size: 12px;
  transition: color .15s, background-color .15s, border-color .15s;
}
.msg-copy-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.msg-copy-btn.is-done { color: var(--success); }
.form-error { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: var(--danger-50); color: var(--danger); font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(28, 28, 30, 0.86);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f5f5f7; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 520;
  opacity: 0; transform: translate(-50%, 10px) scale(0.98); pointer-events: none;
  transition: opacity .22s cubic-bezier(.2, .8, .2, 1), transform .22s cubic-bezier(.2, .8, .2, 1);
}
.toast.visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast[data-tone="error"] { background: rgba(215, 0, 21, 0.88); }

