:root {
  --bg: #000;
  --raise: #0c0c0d;
  --s1: #141416;
  --s2: #1c1c1f;
  --s3: #26262a;
  --line: #1f1f22;
  --line-hi: #303035;
  --text: #f4f4f5;
  --muted: #8b8b93;
  --faint: #55555c;
  --ink: #000;
  --danger: #ff5a5f;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --side-w: 280px;
  --ease: cubic-bezier(.22, .9, .25, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-user-select: none; user-select: none; }
::selection { background: #3a3a40; }
:focus-visible { outline: 2px solid #9a9aa2; outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; }
.error { color: var(--danger); font-size: 14px; margin: 0; min-height: 0; }
.error:empty { display: none; }
.wordmark { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.6px; }
.wordmark.small { font-size: 17px; letter-spacing: -.3px; }

/* ---------- buttons */
.btn { border: 1px solid var(--line-hi); background: var(--s1); padding: 12px 20px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 550; transition: background .2s var(--ease), border-color .2s var(--ease), transform .18s var(--ease), opacity .2s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--text); color: var(--ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger-fill { background: var(--danger); border-color: transparent; color: #fff; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease), transform .18s var(--ease); }
.icon-btn:active { transform: scale(.9); }

/* ---------- inputs */
textarea { resize: none; }
input:not([type=range]):not([type=file]), textarea { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 16px; color: var(--text); width: 100%; transition: border-color .2s var(--ease), background .2s var(--ease); }
input:focus, textarea:focus { border-color: var(--line-hi); background: var(--s2); outline: none; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.field { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---------- auth */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 20px; }
.auth-card { width: 100%; max-width: 360px; animation: rise .6s var(--ease) both; }
.auth-card .wordmark { margin-bottom: 28px; }
.auth-card form { display: grid; gap: 10px; }
.auth-card form .btn.primary { margin-top: 6px; }

/* ---------- layout */
.app { height: 100dvh; display: flex; animation: fade .4s var(--ease) both; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: min(84vw, var(--side-w)); background: var(--raise); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); transform: translateX(-100%); transition: transform .34s var(--ease), box-shadow .34s; z-index: 20; }
.sidebar.open { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 15; animation: fade .25s var(--ease) both; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px 10px; }
.chat-list { flex: 1; overflow-y: auto; margin: 4px -2px; padding: 0 2px; }
.chat-group { font-size: 12px; color: var(--faint); padding: 14px 10px 6px; font-weight: 600; letter-spacing: .2px; }
.chat-item { position: relative; display: flex; align-items: center; border-radius: var(--r-sm); }
.chat-item.new { animation: slide .3s var(--ease) both; }
.chat-item .open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 9px 10px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); border-radius: var(--r-sm); font-size: 15px; transition: color .2s var(--ease), background .2s var(--ease); }
.chat-item.active .open { color: var(--text); background: var(--s2); }
.chat-item .full-tag { font-size: 11px; color: var(--faint); margin-left: 6px; }
.chat-item .more { position: absolute; right: 2px; width: 32px; height: 32px; opacity: 0; transition: opacity .15s; }
.chat-item.active .more, .chat-item .more[aria-expanded=true] { opacity: 1; }

.chat-item.active .open { padding-right: 38px; }
.chat-item input { margin: 2px 0; padding: 8px 10px; font-size: 15px; }
.me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-top: 6px; padding-top: 12px; cursor: pointer; text-align: left; color: var(--text); }
.me-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; color: var(--muted); transition: color .2s; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--s2); flex: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100dvh; }
.topbar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; padding-top: calc(6px + env(safe-area-inset-top)); }
.top-title { flex: 1; text-align: center; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }

/* ---------- messages */
.messages { flex: 1; overflow-y: auto; padding: 8px 16px 12px; overscroll-behavior: contain; }
.msg { max-width: 740px; margin: 0 auto 22px; }
.msg.enter { animation: rise .38s var(--ease) both; }
.msg.user { display: flex; flex-direction: column; align-items: flex-end; }
.msg.user .bubble { max-width: 85%; background: var(--s2); padding: 10px 16px; border-radius: 22px 22px 6px 22px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 85%; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; }
.file-chip svg { width: 18px; height: 18px; color: var(--muted); }
.file-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip small { color: var(--faint); white-space: nowrap; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.text code { background: var(--s2); padding: 1px 7px; border-radius: 7px; font-size: .92em; }
.text pre { background: var(--raise); border: 1px solid var(--line); padding: 14px; border-radius: var(--r); overflow-x: auto; white-space: pre; }
.msg.assistant .text { padding: 2px 2px 0; }
.caret::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--text); vertical-align: middle; animation: blink .9s ease-in-out infinite; }
.thinking { display: inline-flex; gap: 5px; padding: 10px 2px; }
.thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.1s var(--ease) infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; }
.thinking i:nth-child(3) { animation-delay: .3s; }
.meta { display: flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.msg.enter .meta, .meta.fresh { animation: fade .4s .05s var(--ease) both; }
.stat { margin-right: 8px; padding-left: 2px; font-variant-numeric: tabular-nums; color: var(--faint); }
.act { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s, transform .15s; }
.act svg { width: 17px; height: 17px; }
.act:active { transform: scale(.88); }
.act.done { color: var(--text); }
.msg .err { color: var(--danger); }
.edit-box { width: min(560px, 85vw); display: grid; gap: 8px; animation: fade .2s both; }
.edit-box .row { justify-content: flex-end; }

/* ---------- dock + composer */
.dock { padding: 0 12px calc(12px + env(safe-area-inset-bottom)); }
.full-banner { max-width: 740px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; background: var(--s1); border-radius: 999px; font-size: 14px; color: var(--muted); animation: rise .35s var(--ease) both; }
.composer { max-width: 740px; margin: 0 auto; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; transition: border-color .25s var(--ease), background .25s var(--ease); }
.composer:focus-within { border-color: var(--line-hi); background: #161618; }
.composer textarea { display: block; border: 0; background: transparent; resize: none; padding: 8px 10px 4px; max-height: 220px; border-radius: 0; line-height: 1.5; }
.composer textarea:focus { background: transparent; }
.tools { display: flex; align-items: center; gap: 4px; padding-top: 4px; }
.tool-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-hi); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s, transform .18s var(--ease); }
.tool-btn:active { transform: scale(.9) rotate(90deg); }
.model-wrap { position: relative; }
.model-btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 550; transition: color .2s, background .2s; }
.model-btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.model-btn[aria-expanded=true] svg { transform: rotate(180deg); }
.send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--text); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .25s var(--spring), opacity .2s, background .2s; }
.send svg { width: 18px; height: 18px; stroke-width: 2.2; }
.send:active:not(:disabled) { transform: scale(.9); }
.send:disabled { opacity: .18; cursor: default; }
.attach-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 6px; }
.attach-row .file-chip { margin: 0; max-width: 100%; animation: pop .3s var(--spring) both; }
.attach-row .file-chip.bad { border-color: rgba(255, 90, 95, .4); }
.attach-row .file-chip.bad small { color: var(--danger); }
.chip-x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--s3); color: var(--muted); cursor: pointer; display: grid; place-items: center; margin-right: -4px; }
.chip-x svg { width: 13px; height: 13px; stroke-width: 2.4; }

/* ---------- menus */
.menu { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 230px; background: var(--s1); border: 1px solid var(--line-hi); border-radius: var(--r); padding: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); z-index: 30; transform-origin: bottom left; animation: menu .22s var(--ease) both; }
.menu.floating { position: fixed; bottom: auto; transform-origin: top right; min-width: 170px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; text-align: left; font-size: 15px; color: var(--text); transition: background .15s; }
.menu-item span { display: grid; }
.menu-item small { color: var(--muted); font-size: 12.5px; }
.menu-item svg { width: 18px; height: 18px; color: var(--muted); }
.menu-item .tick { color: var(--text); }
.menu-item.danger, .menu-item.danger svg { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- sheets */
.sheet { border: 1px solid var(--line-hi); background: var(--raise); color: var(--text); border-radius: var(--r-lg); padding: 0; width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 32px); }
.sheet.small { width: min(360px, calc(100% - 24px)); }
.sheet[open] { animation: pop .32s var(--spring) both; }
.sheet::backdrop { background: rgba(0, 0, 0, .7); animation: fade .25s both; }
.sheet-body { padding: 18px 20px 20px; display: grid; gap: 16px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -8px -4px 0; }
.sheet h2 { margin: 0; font-size: 19px; letter-spacing: -.2px; }
.sheet p { margin: 0; }
.pfp-big { position: relative; justify-self: center; width: 112px; height: 112px; border-radius: 50%; border: 0; padding: 0; background: var(--s2); cursor: pointer; transition: transform .25s var(--spring); }
.pfp-big:active { transform: scale(.97); }
.pfp-big img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pfp-cam { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--ink); display: grid; place-items: center; border: 3px solid var(--raise); }
.pfp-cam svg { width: 16px; height: 16px; stroke-width: 2; }
.pfp-spin { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--text); animation: spin .8s linear infinite; }
.list { display: grid; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; text-align: left; font-size: 15px; color: var(--muted); transition: background .15s, color .15s; }
.list-item.danger { color: var(--danger); }
.slider { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.slider span { display: flex; justify-content: space-between; }
.slider output { color: var(--text); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--s3); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 0; cursor: pointer; transition: transform .15s var(--ease); }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.2); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 0; }
.row { display: flex; gap: 10px; }

.toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); translate: -50% 0; background: var(--text); color: var(--ink); padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 550; z-index: 60; max-width: calc(100% - 32px); animation: toast .35s var(--spring) both; }

/* ---------- motion */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes slide { from { opacity: 0; transform: translateX(-6px); } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(6px); } }
@keyframes menu { from { opacity: 0; transform: scale(.92) translateY(6px); } }
@keyframes toast { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes blink { 50% { opacity: .25; transform: scale(.7); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- desktop: same layout, roomier */
@media (min-width: 960px) {
  .sidebar { position: static; transform: none; width: var(--side-w); box-shadow: none !important; }
  .scrim, #open-side, #top-new { display: none !important; }
  .topbar { padding: 14px 24px 4px; }
  .top-title { text-align: left; padding: 0; }
  .messages { padding: 16px 32px 12px; }
  .dock { padding-bottom: 20px; }
}

/* ---------- hover effects only where a real pointer hovers (no sticky highlights after a tap on phones) */
@media (hover: hover) {
  .btn:hover { background: var(--s2); }
  .btn.primary:hover { background: #fff; }
  .btn.ghost:hover { color: var(--text); background: var(--s1); }
  .icon-btn:hover { background: var(--s1); color: var(--text); }
  .chat-item:hover .open { color: var(--text); background: var(--s1); }
  .me:hover .me-name { color: #fff; }
  .act:hover { color: var(--text); background: var(--s1); }
  .tool-btn:hover { color: var(--text); background: var(--s2); }
  .model-btn:hover { color: var(--text); background: var(--s2); }
  .send:hover:not(:disabled) { background: #fff; transform: scale(1.07); }
  .chip-x:hover { color: var(--text); }
  .menu-item:hover { background: var(--s2); }
  .pfp-big:hover { transform: scale(1.03); }
  .list-item:hover { background: var(--s1); color: var(--text); }
  .chat-item:hover .more { opacity: 1; }
  .chat-item:hover .open { padding-right: 38px; }
}

.text-btn { background: none; border: 0; padding: 12px; color: var(--muted); font-size: 15px; font-weight: 550; cursor: pointer; border-radius: 999px; transition: color .2s var(--ease), transform .15s var(--ease); }
.text-btn:active { transform: scale(.96); color: var(--text); }
@media (hover: hover) { .text-btn:hover { color: var(--text); } }

.edit-row { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; padding: 7px 8px 7px 12px; background: var(--s2); border-radius: 14px; font-size: 14px; color: var(--muted); animation: pop .25s var(--spring) both; }
.edit-row svg { width: 16px; height: 16px; }
.edit-row span { flex: 1; }
.tool-btn:disabled { opacity: .3; cursor: default; }
.pfp-menu-wrap { position: relative; height: 0; justify-self: center; width: 230px; }
.pfp-menu { top: -6px; bottom: auto; left: 0; right: 0; min-width: 0; transform-origin: top center; }
.pfp-big img { transition: opacity .25s var(--ease); }

.sheet.closing { animation: pop-out .17s var(--ease) both; }
.sheet.closing::backdrop { animation: fade-out .17s var(--ease) both; }
@keyframes pop-out { to { opacity: 0; transform: scale(.96) translateY(6px); } }
@keyframes fade-out { to { opacity: 0; } }

.chat-item .open:active, .list-item:active, .menu-item:active, .me:active { transform: scale(.98); }
.chat-item .open, .list-item, .menu-item, .me { transition: background .15s, color .15s, transform .15s var(--ease); }

.model-label { padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .1px; user-select: none; }

/* ---------- thinking (like DeepSeek: small live preview while thinking, one collapsed line after) */
.think { margin: 0 0 8px; }
.think-head { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; border: 0; background: none; color: var(--muted); font-size: 14px; cursor: pointer; }
.think-chev { width: 15px; height: 15px; transform: rotate(-90deg); transition: transform .3s var(--ease); }
.think.open .think-chev, .think.live .think-chev { transform: rotate(0deg); }
.think.live .think-label { background: linear-gradient(90deg, var(--faint) 0%, var(--text) 45%, var(--faint) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.5s linear infinite; }
.think-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s var(--ease), opacity .25s var(--ease); }
.think.open .think-wrap, .think.live .think-wrap { grid-template-rows: 1fr; opacity: 1; }
.think-inner { overflow: hidden; min-height: 0; }
.think-body { margin: 6px 0 2px 1px; padding: 0 0 0 14px; border-left: 2px solid var(--line-hi); white-space: pre-wrap; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.think.live .think-body { max-height: 8em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 82%, rgba(0,0,0,.35) 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 82%, rgba(0,0,0,.35) 100%); }
.answer-in { animation: rise .4s var(--ease) both; }
@keyframes shimmer { from { background-position: 110% 0; } to { background-position: -110% 0; } }
@media (hover: hover) { .think-head:hover { color: var(--text); } }

/* ---------- loading screen: black from the very first frame, so there is never a blank or broken flash */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #000; }
.splash i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--s3); border-top-color: var(--muted); animation: spin .8s linear infinite; }
html, body { background: #000; overscroll-behavior-y: none; }

.send.stop svg { width: 16px; height: 16px; }
.send.stop svg rect { fill: currentColor; stroke: none; }
.send { transition: transform .25s var(--spring), opacity .2s, background .2s; }
.send svg { transition: transform .25s var(--spring); }
.send.stop { animation: pop .25s var(--spring) both; }

/* ---------- photo cropper */
.crop-stage { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: var(--r); background: #000; touch-action: none; cursor: grab; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle closest-side at 50% 50%, transparent calc(100% - 2px), rgba(255,255,255,.85) calc(100% - 2px), rgba(255,255,255,.85) 100%, rgba(0,0,0,.66) 100%); }

/* web search */
.web-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-hi); background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .18s var(--ease); }
.web-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.web-pill[aria-pressed="true"] { color: var(--text); background: var(--s2); border-color: var(--text); }
.web-pill:active { transform: scale(.95); }
.web-pill[hidden] { display: none; }
.searching { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.src-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-hi); background: var(--s1); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: color .2s, border-color .2s; }
.src-chip:hover { color: var(--text); border-color: var(--text); }
.src-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
