:root {
  --fs: 15px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.16, 1, .3, 1);
  --r: 12px;
  --side-w: 264px;
  --font: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --chat-font: var(--font);
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Microsoft YaHei UI", monospace;

  --bg: #f6f6f5;
  --fg: #1b1b1b;
  --fg2: #5f5f5f;
  --fg3: #9b9b9b;
  --line: rgba(0, 0, 0, .075);
  --line2: rgba(0, 0, 0, .13);
  --surface: #ffffff;
  --surface2: #ffffff;
  --solid: #ffffff;
  --side: #efefee;
  --hover: rgba(0, 0, 0, .045);
  --active: rgba(0, 0, 0, .075);
  --bubble: rgba(0, 0, 0, .045);
  --accent: #1b1b1b;
  --accent-fg: #ffffff;
  --danger: #c93c3c;
  --code: rgba(0, 0, 0, .035);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 32px -8px rgba(0, 0, 0, .12);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .04), 0 24px 64px -12px rgba(0, 0, 0, .22);
  --scrim: rgba(0, 0, 0, .16);
  --sel: rgba(0, 0, 0, .12);

  --hl-kw: #9a3b6b;
  --hl-str: #2f7a4a;
  --hl-num: #a65e12;
  --hl-com: #9b9b9b;
  --hl-fn: #2a5ea8;
  --hl-type: #7a4bb0;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #131313;
  --fg: #ececec;
  --fg2: #a3a3a3;
  --fg3: #6a6a6a;
  --line: rgba(255, 255, 255, .075);
  --line2: rgba(255, 255, 255, .14);
  --surface: #1c1c1c;
  --surface2: #1f1f1f;
  --solid: #1c1c1c;
  --side: #181818;
  --hover: rgba(255, 255, 255, .055);
  --active: rgba(255, 255, 255, .09);
  --bubble: rgba(255, 255, 255, .06);
  --accent: #ececec;
  --accent-fg: #131313;
  --danger: #e06464;
  --code: rgba(255, 255, 255, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 32px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 64px -12px rgba(0, 0, 0, .7);
  --scrim: rgba(0, 0, 0, .5);
  --sel: rgba(255, 255, 255, .16);

  --hl-kw: #d68fb8;
  --hl-str: #8cc59c;
  --hl-num: #e0a66a;
  --hl-com: #6a6a6a;
  --hl-fn: #8fb4e8;
  --hl-type: #b9a0e3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs);
  color: var(--fg);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
::selection { background: var(--sel); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.drag { -webkit-app-region: drag; }
.no-drag, .drag button, .drag input { -webkit-app-region: no-drag; }
.spacer { flex: 1; }
.ic { width: 18px; height: 18px; flex: none; display: block; }
kbd { font-family: var(--font); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--fg3); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: var(--ease); }

/* ---------- background ---------- */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#bgImg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
body.has-bg #bgImg {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
#bgDim { position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity .3s var(--ease), background-color .3s; }

/* ---------- layout ---------- */
.app { position: relative; z-index: 1; display: flex; height: 100vh; height: 100dvh; }

.sidebar {
  width: var(--side-w);
  flex: none;
  overflow: hidden;
  background: var(--side);
  border-right: 1px solid var(--line);
  transition: width .42s var(--spring), border-color .3s;
}
.app.side-hidden .sidebar { width: 0; border-right-color: transparent; }
.side-inner {
  width: var(--side-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity .3s var(--ease), transform .42s var(--spring);
}
.app.side-hidden .side-inner { opacity: 0; transform: translateX(-24px); }
.side-head { height: 48px; flex: none; }
.side-actions { padding: 0 12px 6px; display: flex; flex-direction: column; gap: 8px; }

.btn-new {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background .2s, border-color .2s, transform .2s var(--spring);
}
.btn-new:hover { border-color: var(--line2); background: var(--surface2); }
.btn-new:active { transform: scale(.98); }
.btn-new span { flex: 1; text-align: left; }
.btn-new kbd { font-size: 11px; color: var(--fg3); letter-spacing: .02em; }

.search {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border-radius: 10px;
  color: var(--fg3);
  transition: background .2s;
}
.search:focus-within { background: var(--hover); color: var(--fg2); }
.search .ic { width: 16px; height: 16px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--fg); }
.search input::placeholder { color: var(--fg3); }

.conv-list { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.conv-group { font-size: 12px; color: var(--fg3); padding: 14px 10px 6px; }
.conv {
  position: relative;
  display: flex; align-items: center;
  height: 36px; padding: 0 6px 0 12px; margin: 1px 0;
  border-radius: 9px;
  color: var(--fg2);
  cursor: pointer;
  transition: background .18s, color .18s;
  animation: fadeIn .35s var(--ease) both;
}
.conv:hover { background: var(--hover); color: var(--fg); }
.conv.active { background: var(--active); color: var(--fg); }
.conv .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .name input { width: 100%; border: 0; outline: 0; background: none; padding: 0; }
.conv .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg2); margin-right: 8px; flex: none; animation: pulse 1.2s ease-in-out infinite; }
.conv .del {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  color: var(--fg3); opacity: 0; transform: scale(.85);
  transition: opacity .15s, transform .2s var(--spring), background .15s, color .15s;
}
.conv .del .ic { width: 15px; height: 15px; }
.conv:hover .del { opacity: 1; transform: none; }
.conv .del:hover { background: var(--active); color: var(--danger); }
.conv.leaving { animation: fadeOut .25s var(--ease) both; }

.side-foot { display: flex; gap: 4px; padding: 10px 12px; border-top: 1px solid var(--line); }

.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--fg2);
  transition: background .18s, color .18s, transform .2s var(--spring);
}
.icon-btn:hover { background: var(--hover); color: var(--fg); }
.icon-btn:active { transform: scale(.92); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }

.titlebar { height: 48px; flex: none; display: flex; align-items: center; padding-left: 8px; position: relative; z-index: 3; }
.title {
  position: absolute; left: 50%; transform: translateX(-50%);
  max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 13px; color: var(--fg2);
  transition: opacity .25s;
}
.win-ctrls { margin-left: auto; display: flex; height: 100%; }
.win-ctrls button { width: 46px; height: 100%; display: grid; place-items: center; color: var(--fg2); transition: background .15s, color .15s; }
.win-ctrls svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1; }
.win-ctrls button:hover { background: var(--hover); color: var(--fg); }
.win-ctrls .close:hover { background: #c42b1c; color: #fff; }

/* ---------- thread ---------- */
.scroller { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: auto; }
.thread { max-width: 800px; margin: 0 auto; padding: 8px 32px 220px; user-select: text; }

.sys {
  margin: 4px 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .2s, background .2s, box-shadow .3s;
  animation: rise .45s var(--spring) both;
}
.sys:hover { border-color: var(--line2); }
.sys.open { border-color: var(--line2); box-shadow: var(--shadow); }
.sys-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; user-select: none; color: var(--fg2); font-size: 13px; }
.sys-head .ic { width: 16px; height: 16px; color: var(--fg3); }
.sys-head .preview { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-head .preview.empty { color: var(--fg3); }
.sys-head .chev { transition: transform .35s var(--spring); }
.sys.open .sys-head .chev { transform: rotate(180deg); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--spring); }
.collapse > div { overflow: hidden; min-height: 0; }
.open > .collapse { grid-template-rows: 1fr; }
.sys textarea {
  display: block; width: 100%; border: 0; outline: 0; resize: none; background: none;
  padding: 2px 14px 14px; line-height: 1.6; min-height: 72px; max-height: 40vh; overflow-y: hidden;
  font-size: 14px;
}

.msg { position: relative; margin: 0 0 26px; animation: rise .45s var(--spring) both; }
.msg .body, .composer textarea, .edit-box textarea, .sys textarea { font-family: var(--chat-font); }
.msg .body { min-width: 0; max-width: 100%; overflow-wrap: anywhere; transition: opacity .35s var(--ease), filter .35s; }
.msg.out .body { opacity: .36; filter: grayscale(1); }
.msg.out:hover .body { opacity: .7; }
.msg.user { display: flex; flex-direction: column; align-items: flex-end; }
.msg.user .body {
  max-width: 82%;
  padding: 10px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--bubble);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.65;
}
body.has-bg .msg.user .body { background: var(--surface); }

.msg .meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; max-width: 100%; margin-top: 6px; min-height: 30px; opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .25s var(--spring); }
.msg:hover .meta-row, .msg.last .meta-row, .msg.editing .meta-row { opacity: 1; transform: none; }
.msg.streaming .meta-row { opacity: 0 !important; pointer-events: none; }
.meta-row .icon-btn { width: 30px; height: 30px; border-radius: 8px; color: var(--fg3); }
.meta-row .icon-btn:hover { color: var(--fg); }
.meta-row .icon-btn.danger:hover { color: var(--danger); }
.meta-row .icon-btn .ic { width: 16px; height: 16px; }
.meta-row .meta { font-size: 12px; color: var(--fg3); margin: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 30px; color: var(--fg3); font-size: 12px; animation: rise .4s var(--spring) both; user-select: none; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.divider button { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; opacity: 0; transition: opacity .2s, background .2s; }
.divider:hover button { opacity: 1; }
.divider button:hover { background: var(--hover); color: var(--fg); }
.divider .ic { width: 14px; height: 14px; }

/* reasoning */
.think { margin-bottom: 10px; }
.think-head {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%; height: 30px; padding: 0 10px; margin-left: -10px;
  border: 1px solid transparent; border-radius: 9px;
  color: var(--fg2); font-size: .93em;
  cursor: pointer; user-select: none;
  transition: border-color .2s, color .2s;
}
.think-head:hover { border-color: var(--line2); color: var(--fg); }
.think-head span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.think-head .caret { width: 11px; height: 11px; flex: none; color: var(--fg3); transition: transform .35s var(--spring), color .2s; }
.think-head:hover .caret { color: var(--fg2); }
.think.open .think-head .caret { transform: rotate(90deg); }
.think.live .think-head span { animation: pulse 1.6s ease-in-out infinite; }
.think-body { margin: 6px 0 4px 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--line2); color: var(--fg2); font-size: .93em; line-height: 1.7; }
.think-body.md h1, .think-body.md h2, .think-body.md h3, .think-body.md h4 { font-size: 1em; margin: 1em 0 .4em; }

/* markdown */
.md { line-height: 1.75; word-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: .7em 0; }
.md h1, .md h2, .md h3, .md h4 { line-height: 1.35; margin: 1.3em 0 .55em; font-weight: 600; }
.md h1 { font-size: 1.45em; } .md h2 { font-size: 1.28em; } .md h3 { font-size: 1.12em; } .md h4 { font-size: 1em; }
.md ul, .md ol { padding-left: 1.5em; margin: .6em 0; }
.md li { margin: .25em 0; }
.md li::marker { color: var(--fg3); }
.md a { color: inherit; text-decoration: underline; text-decoration-color: var(--fg3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.md a:hover { text-decoration-color: var(--fg); }
.md blockquote { margin: .8em 0; padding: .1em 0 .1em 1em; border-left: 3px solid var(--line2); color: var(--fg2); }
.md hr { border: 0; height: 1px; background: var(--line2); margin: 1.6em 0; }
.md code { font-family: var(--mono); font-size: .88em; background: var(--code); border: 1px solid var(--line); padding: .1em .38em; border-radius: 6px; }
.md table { border-collapse: collapse; margin: .9em 0; display: block; overflow-x: auto; font-size: .94em; }
.md th, .md td { border: 1px solid var(--line2); padding: .45em .8em; text-align: left; }
.md th { background: var(--code); font-weight: 600; }
.md img { max-width: 100%; border-radius: 10px; }
.md .katex-display { overflow-x: auto; overflow-y: hidden; padding: .3em 0; }

.code { margin: .9em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--code); overflow: hidden; }
.code-head { display: flex; align-items: center; height: 34px; padding: 0 6px 0 14px; font-size: 12px; color: var(--fg3); border-bottom: 1px solid var(--line); user-select: none; }
.code-head .lang { flex: 1; font-family: var(--mono); }
.code-head button { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; transition: background .15s, color .15s; }
.code-head button:hover { background: var(--hover); color: var(--fg); }
.code-head .ic { width: 14px; height: 14px; }
.code pre { margin: 0; padding: 12px 16px; overflow-x: auto; }
.code pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.6; }

.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-built_in.hljs-keyword, .hljs-meta .hljs-keyword { color: var(--hl-kw); }
.hljs-string, .hljs-attr-value, .hljs-regexp, .hljs-addition, .hljs-template-tag { color: var(--hl-str); }
.hljs-number, .hljs-symbol, .hljs-bullet, .hljs-variable.constant_ { color: var(--hl-num); }
.hljs-comment, .hljs-quote, .hljs-deletion, .hljs-meta { color: var(--hl-com); }
.hljs-title, .hljs-title.function_, .hljs-section, .hljs-attr, .hljs-property { color: var(--hl-fn); }
.hljs-type, .hljs-built_in, .hljs-class .hljs-title, .hljs-title.class_, .hljs-tag, .hljs-name, .hljs-selector-class { color: var(--hl-type); }
.hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: 600; }

.err {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 8px; padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: 10px;
  color: var(--danger);
  font-size: 13px; line-height: 1.6;
  background: color-mix(in srgb, var(--danger) 6%, transparent);
  word-break: break-all;
}
.cursor { display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--fg); vertical-align: middle; animation: pulse 1s ease-in-out infinite; }
.waiting { display: flex; gap: 5px; height: 26px; align-items: center; }
.waiting i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg3); animation: bounce 1.2s var(--ease) infinite; }
.waiting i:nth-child(2) { animation-delay: .15s; } .waiting i:nth-child(3) { animation-delay: .3s; }

/* inline edit */
.edit-box { width: 100%; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface2); box-shadow: var(--shadow); animation: pop .3s var(--spring) both; }
.edit-box textarea { display: block; width: 100%; border: 0; outline: 0; background: none; resize: none; padding: 12px 16px; line-height: 1.65; max-height: 60vh; overflow-y: hidden; }
.edit-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 0 10px 10px; }
.edit-box .attach-row { padding: 12px 14px 0; }
.btn.icon-only { width: 32px; padding: 0; justify-content: center; }

.btn { height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; background: var(--accent); color: var(--accent-fg); transition: opacity .2s, transform .2s var(--spring), background .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.96); }
.btn.ghost { background: none; color: var(--fg2); border: 1px solid var(--line2); }
.btn.ghost:hover { background: var(--hover); color: var(--fg); opacity: 1; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn .ic { width: 15px; height: 15px; }

/* ---------- composer ---------- */
.dock {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 32px 22px;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  transition: bottom .6s var(--spring), transform .6s var(--spring);
}
.main.empty .dock { bottom: 50%; transform: translateY(50%); }
.composer {
  pointer-events: auto;
  width: 100%; max-width: 760px;
  border: 1px solid var(--line2);
  border-radius: 22px;
  background: var(--surface2);
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .3s, background .3s;
}
.composer:focus-within { border-color: var(--fg3); box-shadow: var(--shadow-lg); }
.composer textarea {
  display: block; width: 100%;
  border: 0; outline: 0; resize: none; background: none;
  padding: 16px 20px 4px; line-height: 1.6;
  max-height: 40vh; overflow-y: hidden;
}
.composer textarea::placeholder { color: var(--fg3); }
.composer-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px 8px 10px; }

.chip {
  min-width: 0; flex: 0 1 auto;
  display: flex; align-items: center;
  height: 30px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 9px;
  color: var(--fg2); font-size: 13.5px;
  max-width: 280px;
  transition: border-color .2s, color .2s;
}
.chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.primary { color: var(--fg); }
.chip:hover, .chip.on { border-color: var(--line2); color: var(--fg); }

.send {
  flex: none;
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-fg);
  transition: opacity .2s, transform .25s var(--spring), background .2s;
}
.send .ic { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .2s, transform .3s var(--spring); }
.send .i-stop { opacity: 0; transform: scale(.4); }
.send.busy .i-send { opacity: 0; transform: scale(.4) translateY(6px); }
.send.busy .i-stop { opacity: 1; transform: none; }
.send:disabled { opacity: .25; cursor: default; }
.send:not(:disabled):hover { transform: scale(1.05); }
.send:not(:disabled):active { transform: scale(.92); }

.to-bottom {
  pointer-events: auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--line2);
  background: var(--surface2);
  box-shadow: var(--shadow);
  color: var(--fg2);
  opacity: 0; transform: translateY(8px) scale(.9);
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--spring), color .2s;
}
.to-bottom.show { opacity: 1; transform: none; pointer-events: auto; }
.to-bottom:hover { color: var(--fg); }
.to-bottom .ic { width: 16px; height: 16px; }

/* ---------- popover ---------- */
.layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.layer.active { pointer-events: auto; }
.pop {
  position: absolute;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--surface2);
  box-shadow: var(--shadow-lg);
  transform-origin: var(--origin, bottom left);
  animation: pop .28s var(--spring) both;
  user-select: none;
}
.pop.closing { animation: popOut .16s var(--ease) both; pointer-events: none; }
.pop-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--fg3); }
.pop-search input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; }
.pop-search .ic { width: 15px; height: 15px; }
.pop-scroll { max-height: 360px; overflow-y: auto; }
.pop-group { padding: 8px 10px 4px; font-size: 11.5px; color: var(--fg3); }
.pop-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 34px; padding: 6px 10px;
  border-radius: 9px; text-align: left; font-size: 13.5px;
  color: var(--fg2);
  transition: background .12s, color .12s;
}
.pop-item:hover, .pop-item.kb { background: var(--hover); color: var(--fg); }
.pop-item .label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-item .sub { font-size: 12px; color: var(--fg3); }
.pop-item .ic.tick { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--spring); }
.pop-item.sel { color: var(--fg); }
.pop-item.sel .ic.tick { opacity: 1; transform: none; }
.pop-empty { padding: 18px 10px; text-align: center; color: var(--fg3); font-size: 13px; }
.pop-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.effort-pop { width: 200px; min-width: 0; padding: 8px; }
.effort-pop .input { width: 100%; height: 34px; }
.ctx-pop { width: 280px; padding: 14px; }
.ctx-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; font-size: 13px; color: var(--fg2); }
.ctx-top b { font-weight: 600; font-size: 20px; color: var(--fg); font-variant-numeric: tabular-nums; }
.ctx-pop .pop-item { margin-top: 2px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--fg) var(--p, 50%), var(--line2) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--solid); border: 1px solid var(--line2); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .2s var(--spring); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; visibility: hidden; transition: visibility 0s .4s; }
.modal-wrap.open { visibility: visible; transition: none; }
.modal-backdrop { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .35s var(--ease); }
.modal-wrap.open .modal-backdrop { opacity: 1; }
.modal {
  position: relative;
  width: min(860px, calc(100vw - 64px));
  height: min(600px, calc(100vh - 96px));
  display: flex; flex-direction: column;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: var(--surface2);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .3s var(--ease), transform .45s var(--spring);
  overflow: hidden;
}
.modal-wrap.open .modal { opacity: 1; transform: none; }
.modal-nav { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); }
.modal-nav > button:not(.icon-btn) { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px; color: var(--fg2); font-size: 13.5px; transition: background .18s, color .18s; }
.modal-nav > button:not(.icon-btn) .ic { width: 16px; height: 16px; }
.modal-nav > button:hover { background: var(--hover); color: var(--fg); }
.modal-nav > button.active { background: var(--active); color: var(--fg); }
.modal-body { flex: 1; min-height: 0; position: relative; }
.pane { position: absolute; inset: 0; overflow-y: auto; padding: 24px 28px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--spring); }
.pane.active { opacity: 1; transform: none; pointer-events: auto; }
.pane[data-pane=providers] { padding: 0; }

.field { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field > label { width: 112px; flex: none; color: var(--fg2); font-size: 13.5px; }
.field.col { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 0; }
.field output { width: 40px; text-align: right; font-size: 13px; color: var(--fg2); font-variant-numeric: tabular-nums; }
.field input[type=range] { max-width: 320px; }
.bg-adjust { transition: opacity .3s; }
.bg-adjust.disabled { opacity: .35; pointer-events: none; }

.input, .field textarea {
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line2); border-radius: 10px;
  background: var(--solid); outline: 0;
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
}
.field textarea { height: auto; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .field textarea:focus { border-color: var(--fg3); box-shadow: 0 0 0 3px var(--hover); }
.input.num { width: 140px; }

.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 11px; background: var(--hover); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 30px; padding: 0 14px; border-radius: 8px; font-size: 13px; color: var(--fg2); transition: color .25s; }
.seg button.on { color: var(--fg); }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; border-radius: 8px; background: var(--solid); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: left .4s var(--spring), width .4s var(--spring); }

.font-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  min-width: 220px; max-width: 320px; height: 36px; padding: 0 10px 0 12px;
  border: 1px solid var(--line2); border-radius: 10px; background: var(--solid);
  transition: border-color .2s;
}
.font-btn:hover, .font-btn.on { border-color: var(--fg3); }
.font-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-btn .ic { width: 15px; height: 15px; color: var(--fg3); transition: transform .3s var(--spring); }
.font-btn.on .ic { transform: rotate(180deg); }
.font-pop .pop-item { font-size: 15px; }
.bg-row { display: flex; align-items: center; gap: 12px; }
.bg-thumb { position: relative; width: 120px; height: 72px; border-radius: 10px; border: 1px dashed var(--line2); display: grid; place-items: center; color: var(--fg3); overflow: hidden; transition: border-color .2s, color .2s, transform .25s var(--spring); }
.bg-thumb:hover { border-color: var(--fg3); color: var(--fg); }
.bg-thumb:active { transform: scale(.97); }
.bg-thumb span { position: absolute; inset: 0; background: center / cover no-repeat; transition: opacity .3s; }
.bg-thumb.set { border-style: solid; }
.bg-thumb.set .ic { opacity: 0; }
.bg-thumb.set:hover .ic { opacity: 1; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); z-index: 1; }

/* providers */
.prov { display: flex; height: 100%; }
.prov-list { width: 210px; flex: none; border-right: 1px solid var(--line); padding: 12px 8px; overflow-y: auto; display: flex; flex-direction: column; }
.prov-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 12px; border-radius: 9px; color: var(--fg2); font-size: 13.5px; text-align: left; transition: background .18s, color .18s; animation: fadeIn .3s var(--ease) both; }
.prov-item span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prov-item small { color: var(--fg3); font-size: 12px; }
.prov-item:hover { background: var(--hover); color: var(--fg); }
.prov-item.active { background: var(--active); color: var(--fg); }
.prov-add { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; margin-top: 4px; border-radius: 9px; color: var(--fg3); font-size: 13.5px; border: 1px dashed var(--line2); transition: color .2s, border-color .2s, background .2s; }
.prov-add:hover { color: var(--fg); border-color: var(--fg3); }
.prov-add .ic { width: 16px; height: 16px; }
.prov-detail { flex: 1; min-width: 0; overflow-y: auto; padding: 16px 28px 24px; }
.prov-detail .field > label { width: 80px; }
.prov-detail .field .input { flex: 1; }
.pw { flex: 1; position: relative; display: flex; }
.pw .input { flex: 1; padding-right: 40px; font-family: var(--mono); font-size: 13px; }
.pw .icon-btn { position: absolute; right: 2px; top: 1px; width: 34px; height: 34px; color: var(--fg3); }
.pw .icon-btn .ic { width: 16px; height: 16px; }
.models-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.models-head label { flex: 1; color: var(--fg2); font-size: 13.5px; }
.models-head .count { color: var(--fg3); font-size: 12px; margin-left: 6px; }
.model-add { display: flex; gap: 8px; margin-bottom: 10px; }
.model-add .input { flex: 1; }
.mlist { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-family: var(--mono); cursor: pointer; transition: background .15s; animation: fadeIn .25s var(--ease) both; }
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: var(--hover); }
.mrow span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .box { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line2); display: grid; place-items: center; color: var(--accent-fg); transition: background .2s, border-color .2s; }
.mrow .box .ic { width: 13px; height: 13px; stroke-width: 2.4; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--spring); }
.mrow.on .box { background: var(--accent); border-color: var(--accent); }
.mrow.on .box .ic { opacity: 1; transform: none; }
.mlist-empty { padding: 28px; text-align: center; color: var(--fg3); font-size: 13px; }
.prov-foot { display: flex; justify-content: flex-end; margin-top: 20px; }
.spin { animation: spin .8s linear infinite; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: 58px; z-index: 60;
  padding: 9px 16px; max-width: 70vw;
  border: 1px solid var(--line2); border-radius: 12px;
  background: var(--surface2);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  opacity: 0; transform: translate(-50%, -10px) scale(.96);
  transition: opacity .25s var(--ease), transform .4s var(--spring);
  pointer-events: none;
}
.toast-act { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line2); font-weight: 600; color: var(--fg); }
.toast-act:hover { opacity: .7; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(-12px); height: 0; margin: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes popOut { to { opacity: 0; transform: scale(.96) translateY(4px); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- images ---------- */
.attach-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 0; }
.attach-row[hidden] { display: none; }
.attach-row .thumb { position: relative; width: 60px; height: 60px; border-radius: 12px; border: 1px solid var(--line2); overflow: hidden; animation: pop .3s var(--spring) both; }
.attach-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.attach-row .thumb button {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--solid); color: var(--fg2);
  border: 1px solid var(--line2); opacity: 0; transition: opacity .2s, color .2s;
}
.attach-row .thumb:hover button, body.touch .attach-row .thumb button { opacity: 1; }
.attach-row .thumb button:hover { color: var(--fg); }
.attach-row .thumb button .ic { width: 12px; height: 12px; stroke-width: 2; }
.composer-bar .attach { flex: none; width: 32px; height: 32px; margin-right: 2px; }
.composer-bar .attach .ic { width: 17px; height: 17px; }
.msg-imgs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 82%; margin-bottom: 8px; }
.msg-imgs img { max-width: min(100%, 320px); max-height: 220px; border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.msg-imgs:has(img + img) img { width: 132px; height: 132px; object-fit: cover; }
.msg.user .body[hidden] { display: none; }

/* generated images */
.gen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.md:empty + .gen { margin-top: 0; }
.gen-item { position: relative; min-width: 0; margin: 0; max-width: 100%; animation: pop .35s var(--spring) both; }
.gen-item img { display: block; max-width: min(100%, 460px); max-height: 560px; border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; background: var(--hover); }
.gen-acts { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; opacity: 0; transform: translateY(3px); transition: opacity .2s, transform .25s var(--spring); }
.gen-item:hover .gen-acts, body.touch .gen-acts { opacity: 1; transform: none; }
.gen-acts button {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  color: var(--fg2); border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px);
  transition: color .15s, background .15s;
}
.gen-acts button:hover { color: var(--fg); background: var(--bg); }
.gen-acts .ic { width: 15px; height: 15px; }
/* the placeholder takes the same box the finished image will (same max width / height rules), so nothing jumps */
.gen-item.ph { width: min(100%, 460px, calc(560px * var(--ar, 1))); aspect-ratio: var(--ar, 1); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--hover); }
.gen:has(.gen-item + .gen-item) .gen-item { width: calc(50% - 5px); }
.gen:has(.gen-item + .gen-item) .gen-item:not(.ph) img { width: 100%; max-width: none; max-height: none; }
.gen-item.ph img { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; border-radius: 0; object-fit: cover; filter: blur(3px); cursor: default; }
.gen-item.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, color-mix(in srgb, var(--fg) 9%, transparent) 50%, transparent 75%); background-size: 250% 100%; animation: sheen 1.8s linear infinite; pointer-events: none; }
.gen-missing { padding: 28px 22px; border: 1px dashed var(--line2); border-radius: 14px; color: var(--fg3); font-size: 13px; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.tag { flex: none; font-style: normal; font-family: var(--font); font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--hover); color: var(--fg3); }
.mrow .tag { margin-right: 4px; }
.img-pop { width: 316px; padding: 10px 12px; }
.img-note { margin: 0 0 6px; padding: 0 2px 8px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fg3); }
.img-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.img-row > label { flex: none; width: 70px; font-size: 13px; color: var(--fg2); }
.img-row > .input, .img-unit { width: 144px; max-width: 100%; min-width: 0; }
.img-unit { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg2); }
.img-unit input { width: 100%; min-width: 0; }
.gif-note { margin-top: 8px; border-bottom: 0; padding-bottom: 0; line-height: 1.5; }
.img-pop .seg { padding: 2px; border-radius: 10px; }
.img-pop .seg { min-width: 0; }
.img-pop .seg button { flex: 1; min-width: 0; height: 28px; padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
.img-pop .seg .thumb { top: 2px; bottom: 2px; }
.main.dropping .composer { border-color: var(--fg2); box-shadow: 0 0 0 4px var(--hover), var(--shadow-lg); }
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(0, 0, 0, .78); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease); cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; transform: scale(.96); transition: transform .4s var(--spring); }
.lightbox.open img { transform: none; }

/* ---------- platform & touch ---------- */
.m-only { display: none; }
.drawer-scrim { display: none; }
body:not([data-platform="desktop"]) .win-ctrls { display: none; }
body.touch .desktop-only { display: none; }
body.touch .msg .meta-row { opacity: 0; pointer-events: none; }
body.touch .msg.last .meta-row,
body.touch .msg.tapped .meta-row,
body.touch .msg.editing .meta-row { opacity: 1; transform: none; pointer-events: auto; }
body.touch .msg.out:hover .body { opacity: .36; }
body.touch .conv.active .del { opacity: 1; transform: none; }
body.touch * { -webkit-tap-highlight-color: transparent; }
.pop { max-width: calc(100vw - 16px); }

@media (max-width: 640px) {
  .m-only { display: grid; margin-left: auto; margin-right: 4px; }
  .titlebar { height: 52px; padding-left: 6px; }
  .title { max-width: 60%; font-size: 14px; color: var(--fg); }

  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 30;
    width: min(84vw, 320px);
    transform: translateX(-100%);
    transition: transform .45s var(--spring), box-shadow .3s;
    border-right: 1px solid var(--line);
  }
  .app.side-hidden .sidebar { width: min(84vw, 320px); border-right-color: var(--line); }
  .app.drawer .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .side-inner, .app.side-hidden .side-inner { width: 100%; opacity: 1; transform: none; }
  .side-head { height: 16px; }
  .btn-new kbd { display: none; }
  .conv { height: 42px; }
  .side-foot { padding: 10px 12px 14px; }

  .drawer-scrim {
    display: block; position: fixed; inset: 0; z-index: 29;
    background: var(--scrim);
    opacity: 0; pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  .app.drawer .drawer-scrim { opacity: 1; pointer-events: auto; }

  .thread { padding: 4px 16px 190px; }
  .sys { margin-bottom: 22px; }
  .msg { margin-bottom: 20px; }
  .msg.user .body, .msg-imgs { max-width: 88%; }
  .code pre code { font-size: 12.5px; }

  .dock { padding: 0 10px 10px; }
  .main.empty .dock { bottom: 0; transform: none; }
  .composer { border-radius: 20px; }
  .composer textarea { padding: 14px 16px 2px; font-size: 16px; }
  .composer-bar { padding: 4px 6px 6px 8px; gap: 0; }
  .chip { padding: 0 8px; max-width: 46vw; }
  .composer-bar { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 36px; gap: 2px 4px; }
  .composer-bar .attach { grid-column: 1; grid-row: 1; }
  #modelChip { grid-column: 2 / 4; grid-row: 1; max-width: 100%; width: 100%; }
  #effortChip { grid-column: 2; grid-row: 2; max-width: 100%; justify-self: start; }
  #imgChip { grid-column: 3; grid-row: 2; max-width: 100%; }
  .composer-bar .send { grid-column: 4; grid-row: 1 / 3; align-self: end; }
  .composer-bar .spacer { display: none; }
  .img-pop .img-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; min-height: 42px; }
  .img-pop .img-row > label { width: auto; }
  .img-pop .seg { display: flex; width: 100%; }
  .img-pop .seg button { padding: 0 5px; }
  .img-row > .input, .img-unit { width: 100%; }
  .img-pop { width: 316px; }

  .modal-wrap { place-items: stretch; }
  .modal { width: 100vw; height: 100%; border-radius: 0; border: 0; transform: translateY(24px); }
  .modal-nav { padding: 8px 8px 8px 10px; overflow-x: auto; }
  .modal-nav > button:not(.icon-btn) { padding: 0 12px; flex: none; }
  .pane { padding: 12px 16px 24px; }
  .field { gap: 12px; }
  .field > label { width: 84px; }
  .field > :not(label) { min-width: 0; }
  .field .seg { flex: 1; }
  .field .seg button { min-width: 0; flex: 1; padding: 0 8px; }
  .pw { min-width: 0; }
  .bg-row { flex-wrap: wrap; }
  .pane, .prov-detail { overflow-wrap: anywhere; }
  .modal-nav { flex-shrink: 0; }
  .modal-nav > .icon-btn { flex: none; }
  .field input[type=range] { flex: 1; min-width: 0; }
  .font-btn { min-width: 0; flex: 1; }
  .input, .field textarea { font-size: 16px; }

  .prov { flex-direction: column; }
  .prov-list { width: 100%; flex: none; flex-direction: row; gap: 6px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .prov-list > div { display: flex; gap: 6px; }
  .prov-item { width: auto; flex: none; max-width: 180px; border: 1px solid var(--line); }
  .prov-add { margin-top: 0; flex: none; }
  .prov-detail { padding: 8px 16px 24px; }
  .prov-detail .field > label { width: 64px; }
  .mrow { height: 44px; }
}
body.touch ::-webkit-scrollbar { width: 0; height: 0; }
@media (hover: none) {
  .icon-btn:hover { background: none; }
  .chip:not(.on):hover { border-color: transparent; }
}

/* image tool: chip, model list, inject card */
.chip[hidden] { display: none; }
.chip .ic { width: 14px; height: 14px; flex: none; }
.chip#imgChip { gap: 6px; }
.chip.armed { color: var(--fg); border-color: var(--line2); }
.chip.armed .ic { color: var(--fg); }
.img-models { margin: 2px 0 6px; max-height: 152px; overflow-y: auto; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.img-models .pop-item .sub { flex: none; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys.inject .sys-head .tag { text-transform: lowercase; letter-spacing: .02em; }
.sys.inject.warn .preview { color: var(--danger); }
.inject-body { padding: 2px 14px 14px; font-size: 12.5px; line-height: 1.65; color: var(--fg2); }
.inject-body p { margin: 8px 0; }
.inject-body code { font-family: var(--mono); font-size: 11.5px; background: var(--code); border: 1px solid var(--line); padding: .1em .35em; border-radius: 6px; }
.inject-body pre { margin: 8px 0; padding: 10px 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--fg); background: var(--code); border: 1px solid var(--line); border-radius: 10px; }
