@font-face {
  font-family: 'Tilda Sans';
  src: url('fonts/tilda-sans_vf.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'PT Root UI';
  src: url(fonts/pt-root-ui_vf.woff);
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono%5Bwght%5D.ttf') format('truetype');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --font: 'Tilda Sans', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;
  --sidebar: 288px;
  --column: 768px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --chat-size: 16px;
}
:root[data-font="system"] { --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
:root[data-font="ptroot"] { --font: 'PT Root UI', 'Tilda Sans', system-ui, sans-serif; }
:root[data-font="onest"] { --font: 'Onest', system-ui, sans-serif; }
:root[data-font="manrope"] { --font: 'Manrope', system-ui, sans-serif; }
:root[data-code="gsc"] { --mono: 'Google Sans Code', 'JetBrains Mono', ui-monospace, Consolas, monospace; }
:root[data-code="plexmono"] { --mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, Consolas, monospace; }
:root[data-code="dmmono"] { --mono: 'DM Mono', 'JetBrains Mono', ui-monospace, Consolas, monospace; }
:root[data-code="geistmono"] { --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, Consolas, monospace; }

:root, [data-theme="light"] {
  --bg: #F3F4F5;
  --rail: #EAECEE;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --soft: #E3E6E9;
  --text: #1D2024;
  --muted: #62676D;
  --faint: #8C9196;
  --line: #D7DADE;
  --line-strong: #B9BEC3;
  --accent: #2F6F55;
  --accent-soft: #DDEDE4;
  --on-accent: #FFFFFF;
  --danger: #B23E2C;
  --danger-soft: #F7E3DF;
  --code-bg: #1D2024;
  --code-text: #E6E8EB;
  --code-muted: #9AA0A6;
  --code-line: #2E3238;
  --shadow: 0 1px 2px rgba(29, 32, 36, .06), 0 8px 24px rgba(29, 32, 36, .08);
  --selection: #CFE6D9;
  --login-art-bg: #1D2024;
  --login-art-fg: #F3F4F5;
  --thumb: #FFFFFF;
  --sheet: #FFFFFF;
}

[data-theme="dark"] {
  --bg: #141618;
  --rail: #181A1D;
  --surface: #1D2024;
  --raised: #24282D;
  --soft: #2A2E33;
  --text: #E8EAEC;
  --muted: #A0A6AC;
  --faint: #767C83;
  --line: #2E3238;
  --line-strong: #454A51;
  --accent: #6FC29A;
  --accent-soft: #1E3A2D;
  --on-accent: #10251A;
  --danger: #E27460;
  --danger-soft: #3A221D;
  --code-bg: #0F1113;
  --code-text: #E6E8EB;
  --code-muted: #8A9096;
  --code-line: #24282D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --selection: #2C5A45;
  --login-art-bg: #0F1113;
  --login-art-fg: #E8EAEC;
  --thumb: #3B4047;
  --sheet: #1A1D20;
}

:root[data-accent] {
  --accent-soft: color-mix(in srgb, var(--accent) 15%, var(--surface));
  --selection: color-mix(in srgb, var(--accent) 30%, var(--surface));
}
:root[data-accent="graphite"] { --accent: #1D2024; --on-accent: #FFFFFF; }
:root[data-accent="blue"] { --accent: #2D5FA8; --on-accent: #FFFFFF; }
:root[data-accent="violet"] { --accent: #6A4BB0; --on-accent: #FFFFFF; }
:root[data-accent="amber"] { --accent: #9A5B12; --on-accent: #FFFFFF; }
:root[data-accent="rose"] { --accent: #B03A5B; --on-accent: #FFFFFF; }
:root[data-theme="dark"][data-accent="graphite"] { --accent: #E8EAEC; --on-accent: #141618; }
:root[data-theme="dark"][data-accent="blue"] { --accent: #7FAAEE; --on-accent: #0E1A2C; }
:root[data-theme="dark"][data-accent="violet"] { --accent: #B39DF2; --on-accent: #1C1530; }
:root[data-theme="dark"][data-accent="amber"] { --accent: #E8AC5C; --on-accent: #2A1B07; }
:root[data-theme="dark"][data-accent="rose"] { --accent: #EE91AA; --on-accent: #2E0F18; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

::selection { background: var(--selection); color: var(--text); }

@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--faint); border: 3px solid transparent; background-clip: padding-box; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }

.mark { color: var(--text); }
.mark__dot { fill: var(--accent); }
.mark--small { width: 24px; height: 24px; }
.mark--boot { width: 64px; height: 64px; animation: pulse 1.2s ease-in-out infinite; }
body.is-busy #brand-mark .mark__dot { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.boot { height: 100%; display: grid; place-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s var(--ease-out), opacity .2s ease;
}
.btn i { font-size: 20px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:hover { border-color: var(--line-strong); }
.btn:active { background: var(--soft); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { background: color-mix(in srgb, var(--text) 86%, var(--bg)); border-color: transparent; }
.btn--danger { color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); }
.btn--danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn--small { height: 32px; padding: 0 12px; font-size: 14px; }

.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: inline-grid; place-items: center;
  padding: 0; border: 0; border-radius: var(--r-s); background: transparent;
  color: var(--muted); cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s var(--ease-out);
}
.icon-btn i { font-size: 20px; }
.icon-btn:active { transform: scale(.92); }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn:active { background: var(--line); }
.icon-btn[aria-pressed="true"] { color: var(--text); background: var(--soft); }
.icon-btn--danger:hover { color: var(--danger); }
.icon-btn.is-live { color: var(--danger); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--soft); }
.segmented button {
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 0; background: transparent; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented--small button { padding: 4px 10px; font-size: 13px; }


.app { display: grid; grid-template-columns: var(--sidebar) 1fr; height: 100%; }
.sidebar {
  background: var(--rail); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0; padding: 14px 12px 12px; gap: 12px;
}
.sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 0 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }

.chat-list { flex: 1; overflow-y: auto; min-height: 0; margin: 0 -4px; padding: 0 4px; }
.chat-list__group { font-size: 12.5px; font-weight: 700; color: var(--faint); margin: 16px 8px 6px; }
.chat-list__group:first-child { margin-top: 4px; }
.chat-list__empty { color: var(--muted); font-size: 14px; padding: 8px; }
.chat-item { display: flex; align-items: center; gap: 2px; border-radius: var(--r-s); min-height: 38px; transition: background .18s ease; }
.chat-item:hover { background: var(--soft); }
.chat-item.is-active { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.chat-item__open {
  flex: 1; min-width: 0; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 8px 10px; border-radius: var(--r-s); font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-item.is-active .chat-item__open { font-weight: 700; }
.chat-item .icon-btn { width: 30px; height: 30px; opacity: 0; }
.chat-item .icon-btn i { font-size: 17px; }
.chat-item:hover .icon-btn, .chat-item.is-active .icon-btn, .chat-item .icon-btn:focus-visible { opacity: 1; }
.chat-item__input {
  flex: 1; min-width: 0; border: 1px solid var(--accent); border-radius: var(--r-xs);
  background: var(--surface); padding: 6px 9px; font-size: 15px; outline: none;
}
.chat-item__confirm { flex: 1; display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; font-size: 14px; }
.chat-item__confirm span { flex: 1; color: var(--danger); font-weight: 600; }

.sidebar__foot { border-top: 1px solid var(--line); padding-top: 10px; }
.account { display: flex; align-items: center; gap: 2px; }
.account__main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit;
  padding: 8px; border-radius: var(--r-s); cursor: pointer; text-align: left; transition: background .18s ease;
}
.account__main:hover { background: var(--soft); }
.account__btn { flex: none; width: 36px; height: 36px; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--text); color: var(--bg); display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account__text { flex: 1; min-width: 0; display: grid; }
.account__name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__hint { font-size: 13px; color: var(--muted); }

.scrim { display: none; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; }
.topbar { display: flex; align-items: center; gap: 6px; padding: 10px 20px; min-height: 58px; }
.topbar__title {
  flex: 1; min-width: 0; font-weight: 700; font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__title button { border: 0; background: none; padding: 4px 8px; margin-left: -8px; border-radius: var(--r-xs); cursor: text; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.topbar__title button:hover { background: var(--soft); }
.topbar__title input { width: min(100%, 480px); border: 1px solid var(--accent); border-radius: var(--r-xs); background: var(--surface); padding: 4px 8px; font-weight: 700; outline: none; }
.topbar__menu, .topbar__new { display: none; }
.app { transition: grid-template-columns .34s var(--ease-out); }
.main { position: relative; z-index: 1; background: var(--bg); }
.sidebar { width: var(--sidebar); transition: opacity .24s ease, visibility 0s linear 0s; }
.app.sidebar-collapsed { grid-template-columns: 0 1fr; }
.app.sidebar-collapsed .sidebar { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .34s; }
.app.sidebar-collapsed .topbar__menu, .app.sidebar-collapsed .topbar__new { display: inline-grid; animation: fade-in .3s ease both; }

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view--settings { display: block; overflow-y: auto; }
.app { overflow: hidden; }

.thread { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px; }
.empty { max-width: var(--column); margin: 0 auto; min-height: 100%; display: flex; align-items: center; padding-bottom: 8vh; }
.empty__title { margin: 0; max-width: 18ch; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; animation: headline .9s var(--ease-out) both; }
.messages { max-width: var(--column); margin: 0 auto; padding: 8px 0 40px; display: flex; flex-direction: column; gap: 22px; }

.msg { position: relative; }
.msg--new { animation: rise .45s var(--ease-out) both; }
.msg--assistant.msg--new { animation: fade-in .5s ease both; }
.msg--user { align-self: flex-end; max-width: 82%; display: flex; flex-direction: column; align-items: flex-end; }
.msg__body { font-size: var(--chat-size); }
.msg--user .msg__body {
  background: var(--soft); border-radius: var(--r-l) var(--r-l) 6px var(--r-l);
  padding: 11px 16px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg--assistant .msg__body { overflow-wrap: anywhere; }
.msg__body > :first-child { margin-top: 0; }
.msg__body > :last-child { margin-bottom: 0; }
.msg--assistant .msg__body p { margin: 0 0 12px; }
.msg--assistant .msg__body ul, .msg--assistant .msg__body ol { margin: 0 0 12px; padding-left: 24px; }
.msg--assistant .msg__body li { margin: 4px 0; }
.msg--assistant .msg__body h1, .msg--assistant .msg__body h2, .msg--assistant .msg__body h3 { font-size: 18px; line-height: 1.3; margin: 22px 0 8px; }
.msg--assistant .msg__body a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: border-color .2s ease; }
.msg--assistant .msg__body a:hover { border-bottom-color: var(--text); }
.msg--assistant .msg__body blockquote { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--line); color: var(--muted); }
.msg--assistant .msg__body table { border-collapse: collapse; margin: 0 0 12px; display: block; overflow-x: auto; font-size: 15px; }
.msg--assistant .msg__body th, .msg--assistant .msg__body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.msg--assistant .msg__body hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.msg__body :not(pre) > code { font-family: var(--mono); font-size: .86em; background: var(--soft); padding: .12em .38em; border-radius: 5px; }
.msg.is-streaming .msg__body > :last-child::after {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%;
  background: var(--accent); vertical-align: middle; animation: pulse 1s ease-in-out infinite;
}

.stage { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; margin-bottom: 10px; animation: fade-in .35s ease both; }
.stage > span:not(.stage__timer) {
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, var(--text) 50%, var(--muted) 65%, var(--muted) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 2.2s linear infinite;
}
.stage i { font-size: 18px; }
.stage .bx-loader-alt { animation: spin 1s linear infinite; }
.stage__timer { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.thought { margin-bottom: 12px; }
.thought__toggle {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0;
  color: var(--muted); font-size: 14px; cursor: pointer; transition: color .2s ease;
}
.thought__toggle:disabled { cursor: default; }
.thought__toggle:disabled:hover { color: var(--muted); }
.thought__toggle:hover { color: var(--text); }
.thought__toggle i { font-size: 18px; transition: transform .3s var(--ease-out); }
.thought__toggle[aria-expanded="true"] .bx-chevron-down { transform: rotate(180deg); }
.thought__body {
  display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-4px);
  transition: grid-template-rows .32s var(--ease-out), opacity .22s ease, transform .32s var(--ease-out);
}
.thought.is-open .thought__body { grid-template-rows: 1fr; opacity: 1; transform: none; }
.thought__clip { min-height: 0; overflow: hidden; }
.thought__text {
  margin-top: 8px; padding: 10px 14px; border-left: 2px solid var(--line);
  color: var(--muted); font-size: 14.5px; white-space: pre-wrap; max-height: 320px; overflow-y: auto;
}

.refusal {
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  background: var(--danger-soft); border-radius: var(--r-m); padding: 14px 16px;
}
.refusal__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--danger); margin-bottom: 6px; }
.refusal__title i { font-size: 20px; }

.msg__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: 8px; color: var(--faint); min-height: 32px; }
.msg--user .msg__meta { opacity: 0; transition: opacity .25s ease; margin-top: 2px; min-height: 30px; }
.msg--user:hover .msg__meta, .msg--user:focus-within .msg__meta { opacity: 1; }
.msg__meta .icon-btn { width: 30px; height: 30px; }
.msg__meta .icon-btn i { font-size: 17px; }
.msg__time { font-size: 12.5px; margin: 0 6px 0 4px; font-variant-numeric: tabular-nums; }
.msg__tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; margin-right: 6px; }
.msg__tag i { font-size: 15px; }
.msg__note { font-size: 13px; color: var(--muted); margin-left: 6px; }
.msg__confirm { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 14px; }
.msg__confirm span { color: var(--danger); font-weight: 600; }
.msg__error { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--danger); font-size: 14px; justify-content: flex-end; }

.feedback {
  margin-top: 10px; max-width: 560px; padding: 14px; display: grid; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
}
.feedback.is-entering > *, .feedback.is-entering .feedback__chip { animation: fb-item .5s var(--ease-out) both; }
.feedback.is-entering > .feedback__chips { animation: none; }
.feedback.is-entering > :nth-child(3) { animation-delay: 140ms; }
.feedback.is-entering > :nth-child(4) { animation-delay: 190ms; }
.feedback.is-entering .feedback__chip { animation-delay: calc(80ms + var(--i, 0) * 35ms); }
@keyframes fb-item { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
.feedback__done { animation: fb-item .4s var(--ease-out) both; }
.feedback__head { display: flex; align-items: flex-start; gap: 12px; }
.feedback__badge { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.feedback__badge i.bx { font-size: 17px; }
.feedback--up .feedback__badge { background: var(--accent-soft); color: var(--accent); }
.feedback--down .feedback__badge { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.feedback__titles { flex: 1; min-width: 0; padding-top: 1px; }
.feedback__ask { margin: 0; font-weight: 700; font-size: 14.5px; }
.feedback__sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.feedback__head .icon-btn { width: 30px; height: 30px; margin: -4px -4px 0 0; }
.feedback__head .icon-btn i { font-size: 18px; }
.feedback__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback__chip {
  min-height: 34px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--text); font: 500 13.5px/1.3 var(--font); cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s var(--ease-out);
}
.feedback__chip:hover { border-color: var(--line-strong); }
.feedback__chip:active { transform: scale(.97); }
.feedback__chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.feedback--down .feedback__chip[aria-pressed="true"] { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.feedback__comment {
  display: block; width: 100%; min-height: 64px; resize: none; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: transparent; color: var(--text); font: 400 14px/1.5 var(--font); outline: none; transition: height .22s var(--ease-out), border-color .2s ease;
}
.grow-field.is-dragging .feedback__comment { transition: border-color .2s ease; }
.feedback__comment:focus { border-color: var(--accent); }
.feedback__comment::placeholder { color: var(--faint); }
.feedback__foot { display: flex; justify-content: flex-end; }
.feedback.is-done { padding: 12px 14px; }
.feedback__done { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--accent); }
.feedback__done i.bx { font-size: 18px; }
.feedback.is-leaving { animation: fade-out .2s ease both; }
@keyframes fade-out { to { opacity: 0; transform: translateY(-4px); } }
.code { margin: 0 0 14px; border-radius: var(--r-m); background: var(--code-bg); color: var(--code-text); overflow: hidden; font-family: var(--mono); }
.code__bar { display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 14px; border-bottom: 1px solid var(--code-line); min-height: 40px; }
.code__lang { flex: 1; font: 500 12.5px/1 var(--mono); color: var(--code-muted); }
.code__bar .icon-btn { color: var(--code-muted); width: 32px; height: 32px; }
.code__bar .icon-btn:hover { background: var(--code-line); color: #fff; }
.code__bar .icon-btn i { font-size: 18px; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.code pre code { font: 400 calc(var(--chat-size) * .84)/1.6 var(--mono); background: none; padding: 0; color: inherit; }
.code__output { border-top: 1px solid var(--code-line); }
.code__output-bar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; font: 500 10.5px/1 var(--mono); color: var(--code-muted); }
.code__output-bar span { flex: 1; }
.code__output-bar .icon-btn { color: var(--code-muted); width: 28px; height: 28px; }
.code__output-bar .icon-btn:hover { background: var(--code-line); color: #fff; }
.code__output pre { margin: 0; padding: 4px 16px 14px; max-height: 320px; overflow: auto; font: 400 13px/1.55 var(--mono); white-space: pre-wrap; }
.code__output .is-err { color: #F2A595; }
.code__preview { display: block; width: 100%; height: 380px; border: 0; background: #fff; }

.hljs-comment, .hljs-quote { color: #7D848B; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-type { color: #8FC9AE; }
.hljs-string, .hljs-attr, .hljs-symbol, .hljs-bullet, .hljs-addition { color: #E0C28F; }
.hljs-number, .hljs-literal { color: #F0A986; }
.hljs-title, .hljs-section, .hljs-name, .hljs-title.function_ { color: #9DC3F0; }
.hljs-variable, .hljs-template-variable, .hljs-params { color: #E6E8EB; }
.hljs-meta, .hljs-tag { color: #A9B0B7; }
.hljs-deletion { color: #F2A595; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

.composer { padding: 0 24px 16px; }
.composer__box, .composer__meta { max-width: var(--column); margin-left: auto; margin-right: auto; }

.composer__box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 10px 10px 8px 16px; transition: border-color .25s ease, box-shadow .3s ease;
  box-shadow: 0 1px 2px rgba(29, 32, 36, .04);
}
.composer__box:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow);
}
.composer textarea {
  width: 100%; border: 0; outline: 0; resize: none; background: transparent;
  font: 400 var(--chat-size)/1.5 var(--font); padding: 4px 0 6px; max-height: 240px; min-height: 30px; display: block;
}
.composer textarea::placeholder { color: var(--faint); }
.composer__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.composer__tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: -6px; }
.composer__actions { display: flex; align-items: center; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip i { font-size: 17px; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip--toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; min-width: 260px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow); padding: 6px; animation: pop-up .2s var(--ease-out) both; transform-origin: bottom left;
}
.menu.is-closing { animation: pop-out .14s ease both; }
.menu button:disabled { opacity: .45; cursor: not-allowed; }
.menu__left { font-size: 12.5px; color: var(--faint); font-weight: 500; margin-left: 6px; }
.menu button {
  transition: background .15s ease;
  width: 100%; display: grid; grid-template-columns: 1fr 20px; text-align: left; gap: 0 10px;
  border: 0; background: none; border-radius: var(--r-s); padding: 8px 10px; cursor: pointer;
}
.menu button:hover { background: var(--soft); }
.menu__name { font-weight: 700; font-size: 15px; }
.menu__desc { grid-column: 1; font-size: 13px; color: var(--muted); }
.menu button i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 20px; color: var(--accent); }

.send {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg);
  display: grid; place-items: center; cursor: pointer;
  transition: border-radius .25s var(--ease-out), opacity .2s ease, background .2s ease, transform .2s var(--ease-out);
}
.send:active:not(:disabled) { transform: scale(.9); }
.send:disabled { transform: scale(.94); }
.send i { font-size: 24px; }
.send:hover { opacity: .88; }
.send:disabled { opacity: .25; cursor: not-allowed; }
.send__stop { display: none; width: 12px; height: 12px; border-radius: 2px; background: currentColor; }
.send.is-stop { border-radius: var(--r-s); }
.send.is-stop .send__arrow { display: none; }
.send.is-stop .send__stop { display: block; }
.composer__meta {
  display: flex; justify-content: center; align-items: center; margin: 8px auto 0; min-height: 22px;
  font-size: 12.5px; line-height: 1.4; color: var(--faint); text-align: center;
}
.composer__meta b { font-weight: 600; color: var(--muted); }
.status { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; animation: fade-in .25s ease both; }
.status--quiet { display: inline; }
.status > i.bx { font-size: 15px; flex: none; }
.composer__meta.is-status { color: var(--muted); font-size: 13px; font-weight: 500; }
.composer__meta.is-bad { color: var(--danger); }
.composer__meta .bx-loader-alt { animation: spin 1s linear infinite; }

.settings { width: 100%; margin: 0 auto; }
.settings__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 28px; }
.settings__title { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.set-section { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.set-section:first-of-type { border-top: 0; }
.set-section h2 { margin: 0 0 18px; font-size: 20px; letter-spacing: -.01em; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 0; }
.set-row__label { font-weight: 600; }
.set-row__hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; max-width: 60ch; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background .15s ease; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile .avatar { width: 52px; height: 52px; font-size: 20px; }
.profile__name { font-weight: 700; font-size: 17px; }
.profile__meta { color: var(--muted); font-size: 14px; }
.textarea {
  width: 100%; min-height: 140px; resize: none; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); padding: 12px 14px; line-height: 1.5; outline: none;
}
.textarea:focus { border-color: var(--line-strong); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.counter { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.saved-note { font-size: 14px; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.stats div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.stats div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats div:nth-last-child(-n+2) { border-bottom: 0; }
.stats dt { color: var(--muted); font-size: 13.5px; }
.stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.inline-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }
.inline-confirm span { color: var(--danger); font-weight: 600; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, var(--sidebar)); z-index: 40;
    transform: translateX(-102%); transition: transform .22s var(--ease); box-shadow: var(--shadow);
  }
  .app.sidebar-open .sidebar { transform: none; }
  .app.sidebar-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 17, 19, .35); z-index: 35; }
  #close-sidebar, .topbar__menu, .topbar__new { display: inline-grid; }
  .topbar { padding: 8px 10px; min-height: 52px; }
  .thread { padding: 0 16px; }
  .composer { padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  .msg--user { max-width: 90%; }
  .msg--user .msg__meta { opacity: 1; }
  .chat-item .icon-btn { opacity: 1; }
  .settings { padding: 4px 16px 48px; }
  .settings__title { font-size: 28px; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .stats div:last-child { border-bottom: 0 !important; }
  .chip span { display: none; }
  .chip { padding: 0 9px; }
  #model-btn span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after { animation: none !important; transition: none !important; }

.search { position: relative; display: flex; align-items: center; }
.search > i { position: absolute; left: 11px; font-size: 18px; color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); padding: 0 64px 0 36px; font-size: 14.5px; outline: none;
  transition: border-color .15s ease;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--line-strong); }
.search__kbd { position: absolute; right: 8px; }
.search__clear { position: absolute; right: 2px; width: 32px; height: 32px; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  font: 500 12px/1 var(--font); color: var(--muted); letter-spacing: .01em;
  background: color-mix(in srgb, var(--text) 6%, transparent); border: 0; border-radius: 6px;
}
.hotkeys__keys { align-items: center; gap: 3px; }
.search-hit {
  width: 100%; display: grid; gap: 2px; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 8px 10px; border-radius: var(--r-s);
}
.search-hit:hover { background: var(--soft); }
.search-hit.is-active { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.search-hit__title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-hit__snippet { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

.chat-item { position: relative; }
.chat-item__open { display: flex; align-items: center; gap: 6px; }
.chat-item__open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item__open i { font-size: 15px; color: var(--accent); flex: none; }
.chat-item .chat-item__more[aria-expanded="true"] { opacity: 1; background: var(--soft); color: var(--text); }
.item-menu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 25; min-width: 200px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow); padding: 6px; animation: pop-down .2s var(--ease-out) both; transform-origin: top right;
}
.item-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none;
  padding: 8px 10px; border-radius: var(--r-s); font-size: 14.5px; cursor: pointer; text-align: left;
}
.item-menu button i { font-size: 18px; color: var(--muted); }
.item-menu button:hover { background: var(--soft); }
.item-menu button.is-danger, .item-menu button.is-danger i { color: var(--danger); }

.msg--user.is-editing { align-self: stretch; max-width: none; align-items: stretch; }
.msg__editor { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-l); padding: 12px 12px 10px 16px; }
.msg__edit {
  width: 100%; border: 0; outline: 0; resize: none; background: transparent;
  font: 400 var(--chat-size)/1.5 var(--font); min-height: 48px; max-height: 320px; display: block;
}
.msg__editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.hotkeys { display: grid; gap: 2px; }
.hotkeys__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hotkeys__row:last-child { border-bottom: 0; }
.hotkeys__keys { display: inline-flex; gap: 4px; flex: none; }

.shared { min-height: 100%; }
.shared__head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.shared__head .brand { text-decoration: none; }
.shared__head .btn { text-decoration: none; }
.shared__body { max-width: var(--column); margin: 0 auto; padding: 40px 24px 80px; }
.shared__label { margin: 0 0 8px; color: var(--accent); font-weight: 700; font-size: 14px; }
.shared__title { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.shared__meta { margin: 0 0 36px; color: var(--muted); font-size: 14px; }
.messages--shared { padding: 0; }

@media (max-width: 860px) {
  .app.sidebar-collapsed { grid-template-columns: 1fr; }
  .app.sidebar-collapsed .sidebar { visibility: visible; padding: 14px 12px 12px; }
  .search__kbd { display: none; }
  .chat-item .chat-item__more { opacity: 1; }
  .shared__body { padding: 28px 16px 60px; }
  .shared__head { padding: 12px 16px; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-up { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-down { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(4px) scale(.98); } }
@keyframes headline { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.view.is-entering { animation: none; }
.chat-list.is-entering > * { animation: fade-in .3s ease both; }


.btn, .icon-btn, .chip, .segmented, .chat-list__group, .msg__meta, .stage, .thought__toggle, .code__bar,
.code__output-bar, .composer__meta, .sidebar__head, .account, .set-row__label, .settings__nav, kbd, .menu,
.item-menu, .feedback, .empty__title, .intro__top, .providers, .login__label, .brand,
.chat-item, .search-hit, .topbar, .switch, .swatches, .usage__head, .settings__title, .set-section h2,
.hotkeys__row, .model-card__head, .scroll-down, .provider-list, .guest-start, .guest-hint, .guest-lock__title, .lang-check__head, .lang-check__actions {
  -webkit-user-select: none; user-select: none;
}

.view--chat { position: relative; }
@media (min-width: 861px) {
  .view--chat.is-empty { justify-content: center; padding-bottom: 10vh; }
  .view--chat.is-empty .thread { flex: 0 0 auto; overflow: visible; }
  .view--chat.is-empty .empty { min-height: 0; padding: 0 0 26px; }
  .view--chat.is-empty .messages { display: none; }
}

.scroll-down {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 4;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--raised); color: var(--text); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translate(-50%, 8px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease-out), background .2s ease;
}
.scroll-down i { font-size: 22px; }
.scroll-down.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.scroll-down:hover { background: var(--soft); }
.composer { position: relative; }

.settings { max-width: none; min-height: 100%; padding: 4px clamp(20px, 3vw, 40px) 56px; }
.settings__head { margin: 4px 0 24px; }
.settings__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.settings__panel .set-row { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding: 14px 0; }
.settings__panel .set-row:last-child { border-bottom: 0; }
.settings__panel .set-row__text { max-width: 60ch; }
.settings__nav { position: sticky; top: 0; display: grid; gap: 2px; margin: 0; }
.settings__nav button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: none; padding: 9px 12px; border-radius: var(--r-s);
  font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.settings__nav button i { font-size: 19px; }
.settings__nav button:hover { background: var(--soft); color: var(--text); }
.settings__nav button[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.settings__panel { min-width: 0; animation: view-in .35s var(--ease-out) both; }
.settings__panel .set-section { padding: 0 0 26px; border-top: 0; }
.settings__panel .set-section + .set-section { padding-top: 26px; border-top: 1px solid var(--line); }
.settings__panel h2 { font-size: 22px; margin: 0 0 18px; }
.set-section h3 { font-size: 16px; margin: 0 0 6px; }
.set-row__text { display: grid; gap: 2px; max-width: 46ch; }
.set-row__sub { color: var(--muted); font-size: 13.5px; }
.set-note { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.set-note--bad { color: var(--danger); }
.select {
  height: 38px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface);
  padding: 0 34px 0 12px; max-width: 280px; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat;
}
.text-input {
  height: 38px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface);
  padding: 0 12px; outline: none; min-width: 220px; transition: border-color .2s ease;
}
.text-input:focus { border-color: var(--line-strong); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-legacy {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--swatch); box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
  display: grid; place-items: center; color: #fff; transition: transform .2s var(--ease-out), box-shadow .2s ease;
}

.preview {
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg);
  padding: 18px 20px; display: grid; gap: 12px; margin-bottom: 8px;
}
.preview .msg--user { justify-self: end; }
.preview .msg--user .msg__body { padding: 9px 14px; }
.preview__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

.model-cards { display: grid; gap: 10px; }
.model-card {
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface);
  padding: 14px 16px; display: grid; gap: 4px; transition: border-color .2s ease, box-shadow .2s ease;
}
.model-card.is-default { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.model-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.model-card__name { font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.model-card__text { color: var(--muted); font-size: 14px; }
.model-card__limit { color: var(--faint); font-size: 13px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

.usage { display: grid; gap: 18px; margin-bottom: 8px; }
.usage__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 7px; }
.usage__head span:first-child { font-weight: 600; }
.usage__head span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; animation: bar-in .9s var(--ease-out) both; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: none; } }

.provider-list { display: flex; gap: 8px; flex-wrap: wrap; }
.provider-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 9px; font-size: 14px; font-weight: 600; background: var(--surface); }
.provider-pill i { font-size: 18px; }
.danger-zone { border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); border-radius: var(--r-m); padding: 16px; display: grid; gap: 10px; }
.danger-zone h3 { color: var(--danger); margin: 0; }
.danger-zone p { margin: 0; color: var(--muted); font-size: 14px; }
.danger-zone__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.hotkeys__row .hotkeys__keys { margin-left: auto; }
.hotkeys__row .switch { margin-left: 14px; }
.hotkeys.is-off .hotkeys__row { opacity: .45; }

@media (max-width: 860px) {
  .settings { padding: 4px 16px 48px; }
  .settings__layout { grid-template-columns: 1fr; gap: 18px; }
  .settings__nav { position: static; display: flex; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .settings__nav::-webkit-scrollbar { display: none; }
  .settings__nav button { width: auto; flex: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 14px; }
  .settings__nav button i { display: none; }
  .settings__nav button[aria-current="page"] { box-shadow: none; border-color: var(--text); }
  .app.sidebar-collapsed .sidebar { opacity: 1; pointer-events: auto; transition: none; }
  .app { transition: none; }
}

.composer__box.is-recording textarea, .composer__box.is-transcribing textarea { display: none; }
.recorder { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 0 8px; animation: fade-in .25s ease both; }
.recorder__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); flex: none; animation: pulse 1.2s ease-in-out infinite; }
.recorder__time { font: 500 13.5px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--muted); min-width: 34px; }
.recorder__wave { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; overflow: hidden; color: var(--text); }
.recorder__wave span {
  flex: none; width: 3px; height: 100%; border-radius: 3px; background: currentColor;
  opacity: calc(.28 + var(--l, 0) * .72); transform: scaleY(calc(.1 + var(--l, 0) * .9));
  transition: transform .14s ease-out, opacity .14s ease-out;
}
.recorder__status { display: none; }
.recorder__done {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg);
  display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease-out), opacity .2s ease;
}
.recorder__done i { font-size: 22px; }
.recorder__done:active { transform: scale(.92); }
.composer__box.is-transcribing .recorder > :not(.recorder__status) { display: none; }
.composer__box.is-transcribing .recorder__status {
  display: inline-block; font-size: 15px;
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, var(--text) 50%, var(--muted) 65%, var(--muted) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 2.2s linear infinite;
}
.composer__box.is-recording #mic-btn, .composer__box.is-recording #send { display: none; }

.set-block { display: grid; gap: 12px; padding: 10px 0; }
.fonts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.font-card {
  display: grid; gap: 6px; justify-items: start; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-m); padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s var(--ease-out);
  -webkit-user-select: none; user-select: none;
}
.font-card:hover { border-color: var(--line-strong); }
.font-card:active { transform: scale(.98); }
.font-card[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.font-card__sample { font-size: 26px; font-weight: 600; line-height: 1; }
.font-card__name { font-size: 13px; color: var(--muted); font-weight: 600; }
.danger-zone__ask { color: var(--danger); font-weight: 600; font-size: 14.5px; margin-right: 4px; }

.fonts--code { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fonts--code .font-card__sample { font-size: 17px; font-weight: 500; letter-spacing: 0; }
@media (max-width: 1100px) { .fonts--code { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fonts--code { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dropdown { position: relative; }
.dropdown__button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-width: 220px; height: 40px; padding: 0 10px 0 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 600; text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-user-select: none; user-select: none;
}
.dropdown__button:hover { border-color: var(--line-strong); }
.dropdown__button[aria-expanded="true"] { border-color: var(--line-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.dropdown__button i { font-size: 20px; color: var(--muted); transition: transform .25s var(--ease-out); }
.dropdown__button[aria-expanded="true"] i { transform: rotate(180deg); }
.dropdown__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 100%; max-height: 300px; overflow-y: auto;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow);
  padding: 6px; display: grid; gap: 1px; transform-origin: top right;
  animation: pop-down .2s var(--ease-out) both;
}
.dropdown__menu.is-up { top: auto; bottom: calc(100% + 6px); transform-origin: bottom right; animation-name: pop-up; }
.dropdown__menu.is-closing { animation: pop-out .13s ease both; }
.dropdown__option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  border: 0; background: none; border-radius: var(--r-s); padding: 9px 10px; cursor: pointer;
  font-size: 14.5px; text-align: left; white-space: nowrap; color: var(--text);
  transition: background .15s ease; -webkit-user-select: none; user-select: none;
}
.dropdown__option:hover, .dropdown__option:focus-visible { background: var(--soft); outline: none; }
.dropdown__option[aria-selected="true"] { font-weight: 700; }
.dropdown__option i { font-size: 18px; color: var(--accent); }
@media (max-width: 860px) {
  .dropdown__button { min-width: 0; width: 100%; }
  .settings__panel .set-row .dropdown { width: 100%; }
}


@keyframes settle { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes gauge { from { stroke-dashoffset: var(--c); } }


.empty__inner { display: grid; justify-items: start; gap: 22px; }
.empty__mark { width: 46px; height: 46px; color: var(--text); overflow: visible; }
.empty__arm { transform-origin: 54px 54px; animation: orbit 1.7s var(--ease-out) .05s both; }
.orbit__dot { fill: var(--accent); }
@keyframes orbit { from { transform: rotate(-200deg); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }

.segmented.has-thumb { position: relative; }
.segmented__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 999px; opacity: 0;
  background: var(--thumb); box-shadow: 0 1px 2px rgba(29, 32, 36, .1), 0 3px 10px rgba(29, 32, 36, .08);
  transition: transform .42s cubic-bezier(.3, 1.25, .5, 1), width .42s cubic-bezier(.3, 1.25, .5, 1);
}
.segmented.has-thumb button { position: relative; z-index: 1; }
.segmented.has-thumb button[aria-pressed="true"] { background: transparent; box-shadow: none; color: var(--text); }

.switch span::after { transition: transform .32s cubic-bezier(.3, 1.3, .5, 1), width .2s ease; }
.switch input:active + span::after { width: 26px; }
.switch input:checked:active + span::after { transform: translateX(12px); }
.switch span { transition: background .25s ease; }

.st { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100%; align-items: start; }
.st__side {
  position: sticky; top: 0; display: flex; flex-direction: column; gap: 22px;
  padding: 18px 14px 24px 20px; max-height: 100%;
}
.st__top { display: grid; justify-items: start; gap: 10px; padding: 0 10px; }
.st__title { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.st__back {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-left: -6px;
  border: 0; background: none; padding: 4px 6px; border-radius: var(--r-xs); cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 600; transition: color .2s ease;
}
.st__back i { font-size: 18px; transition: transform .25s var(--ease-out); }
.st__back:hover { color: var(--text); }
.st__back:hover i { transform: translateX(-3px); }
.st__nav { position: relative; display: grid; gap: 2px; }
.st__ind {
  position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; border-radius: var(--r-s); pointer-events: none;
  background: var(--sheet); box-shadow: 0 1px 2px rgba(29, 32, 36, .06), inset 0 0 0 1px var(--line);
  transition: transform .46s cubic-bezier(.3, 1.2, .5, 1), width .46s cubic-bezier(.3, 1.2, .5, 1), height .46s cubic-bezier(.3, 1.2, .5, 1);
}
.st__link {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; width: 100%;
  border: 0; background: none; padding: 9px 12px; border-radius: var(--r-s); cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s ease;
  -webkit-user-select: none; user-select: none;
}
.st__link i { font-size: 19px; transition: color .2s ease; }
.st__link:hover { color: var(--text); }
.st__link[aria-current="page"] { color: var(--text); }
.st__link[aria-current="page"] i { color: var(--accent); }

.st__main { padding: 12px 12px 12px 0; min-height: 100%; display: flex; }
.st__panel {
  flex: 1; min-width: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px clamp(24px, 3.4vw, 56px) 48px;
}

.st-head { margin-bottom: 26px; }
.st-head h2 { margin: 0; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.028em; }
.st-head p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; max-width: 64ch; }

.st-groups { display: grid; }
.st-group {
  display: grid; grid-template-columns: minmax(190px, 300px) minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 64px);
  padding: 24px 0; border-top: 1px solid var(--line);
}
.st-group__meta h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.005em; -webkit-user-select: none; user-select: none; }
.st-group__meta p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.st-group__body { display: grid; min-width: 0; align-content: start; }
.st-group__body > .set-row { padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); flex-wrap: nowrap; }
.st-group__body > .set-row:first-child { padding-top: 0; }
.st-group__body > .set-row:last-child { border-bottom: 0; padding-bottom: 0; }
.st-group__body .set-row__text { display: grid; gap: 2px; max-width: 52ch; }
.st-group__body .set-row__label { font-size: 15px; }
.st-group__body .set-row__sub { font-size: 13.5px; }
.st-group__body > .set-note { margin-top: 10px; }
.set-value { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15.5px; }
.set-value--muted { font-weight: 500; color: var(--muted); font-size: 14.5px; text-align: right; }
.st-slot:empty { display: none; }
.st-slot { margin-top: 0; }
.st-slot > .reveal > .reveal__inner > :first-child, .st-slot > :not(.reveal) { margin-top: 14px; }

.specimen-wrap { container-type: inline-size; margin-bottom: 30px; }
.specimen {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 300px;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg);
  transition: background .4s ease, border-color .4s ease;
}
.specimen__rail { background: var(--rail); border-right: 1px solid var(--line); padding: 16px 12px; display: grid; align-content: start; gap: 8px; }
.specimen__brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; margin: 0 4px 10px; }
.specimen__brand .mark { width: 18px; height: 18px; }
.specimen__item { height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.specimen__item.is-active { background: var(--sheet); box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line); }
.specimen__item--short { width: 70%; }
.specimen__chat { position: relative; padding: 22px clamp(18px, 3vw, 40px) 74px; display: grid; align-content: start; gap: 14px; overflow: hidden; }
.specimen__chat .msg { animation: none; }
.specimen__chat .msg--user { justify-self: end; max-width: 80%; }
.specimen__chat .msg__body p { margin: 0 0 10px; }
.specimen__chat .msg__body code { font-family: var(--mono); font-size: .86em; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.specimen__code {
  margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--code-bg); color: var(--code-text); overflow: hidden;
  font: 400 calc(var(--chat-size) * .82)/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.specimen__code code { background: none !important; padding: 0 !important; font: inherit !important; }
.specimen__composer {
  position: absolute; left: clamp(18px, 3vw, 40px); right: clamp(18px, 3vw, 40px); bottom: 14px; height: 46px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 7px 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 16px; background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--faint); font-size: calc(var(--chat-size) * .94);
}
.specimen__placeholder { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.specimen__send { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); }
.specimen__send i { font-size: 20px; }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; padding: 2px; }
.swatch {
  width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--swatch-light);
  box-shadow: 0 0 0 0 var(--sheet), 0 0 0 0 var(--swatch-light), inset 0 0 0 1px rgba(0, 0, 0, .08);
  transition: box-shadow .3s cubic-bezier(.3, 1.3, .5, 1), transform .2s var(--ease-out);
}
[data-theme="dark"] .swatch { background: var(--swatch-dark); box-shadow: 0 0 0 0 var(--sheet), 0 0 0 0 var(--swatch-dark); }
.swatch:active { transform: scale(.92); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5px var(--swatch-light); }
[data-theme="dark"] .swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--sheet), 0 0 0 5px var(--swatch-dark); }
.swatch i { font-size: 20px; opacity: 0; transform: scale(.4) rotate(-30deg); transition: opacity .2s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.swatch[aria-pressed="true"] i { opacity: 1; transform: none; }
[data-theme="dark"] .swatch i { color: #141618; }

.st-group .fonts { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.st-group .fonts--code { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.st-group .font-card { background: var(--bg); border-color: transparent; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .15s var(--ease-out); }
.st-group .font-card:hover { border-color: var(--line-strong); }
.st-group .font-card[aria-checked="true"] { background: var(--sheet); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 6px 18px -10px var(--accent); }

.lineup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lineup__card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 18px;
  border-radius: 18px; background: var(--bg); border: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.lineup__badge { transition: opacity .25s ease, transform .35s var(--ease-out); }
.lineup__card:not(.is-default) .lineup__badge { opacity: 0; transform: scale(.85); }
.lineup__foot > * { grid-area: 1 / 1; justify-self: start; align-self: end; transition: opacity .25s ease, transform .35s var(--ease-out), visibility 0s linear .25s; }
.lineup__card.is-default .lineup__make, .lineup__card:not(.is-default) .lineup__current { opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none; }
.lineup__card.is-default .lineup__current, .lineup__card:not(.is-default) .lineup__make { transition-delay: .08s, .08s, 0s; }
.lineup__card.is-default { background: var(--sheet); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lineup__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lineup__name { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.lineup__tagline { margin: 0; font-weight: 600; }
.lineup__text { margin: 0; color: var(--muted); font-size: 14px; }
.lineup__facts { margin: 12px 0 0; display: grid; border-top: 1px solid var(--line); }
.lineup__facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lineup__facts dt { color: var(--muted); }
.lineup__facts dd { margin: 0; font-weight: 600; text-align: right; }
.lineup__foot { margin-top: auto; padding-top: 16px; min-height: 48px; display: grid; align-items: end; }
.lineup__current { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 14px; }
.lineup__current i { font-size: 18px; }
.lineup__think {
  margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 18px 22px; border-radius: 18px; background: var(--bg);
}
.lineup__think h3 { margin: 0; font-size: 17px; font-weight: 800; }
.lineup__think p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.lineup__think-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.lineup__think-icon i { font-size: 24px; }
.lineup__think-base { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.textarea--tall { min-height: 200px; }
.idea-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-chips .chip { height: auto; min-height: 34px; padding: 6px 12px 6px 9px; white-space: normal; text-align: left; }

.keys { display: grid; }
.keys__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); transition: opacity .25s ease; }
.keys__row:first-child { padding-top: 0; }
.keys__row:last-child { border-bottom: 0; }
.keys__label { font-weight: 600; font-size: 15px; }
.keys__caps { display: inline-flex; gap: 4px; }
.keys__caps kbd { min-width: 28px; height: 28px; font-size: 13px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
.keys.is-off .keys__row { opacity: .4; }

.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.gauge { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 18px; background: var(--bg); }
.gauge__ring { width: 84px; height: 84px; flex: none; }
.gauge__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: color-mix(in srgb, var(--text) 8%, transparent); stroke-width: 8; }
.gauge__value {
  fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: var(--c); stroke-dashoffset: var(--v); animation: gauge 1.1s cubic-bezier(.16, 1, .3, 1) .1s both;
}
.gauge__text { display: grid; line-height: 1.2; }
.gauge__num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.gauge__label { font-weight: 700; margin-top: 6px; }
.gauge__of { color: var(--muted); font-size: 13.5px; }
.gauges__note { grid-column: 1 / -1; margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.gauges__note i { font-size: 16px; }

.identity { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; background: var(--bg); margin-bottom: 30px; flex-wrap: wrap; }
.identity .avatar { width: 64px; height: 64px; font-size: 24px; }
.identity__text { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.identity__name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.identity__mail { color: var(--muted); }
.identity .provider-pill { background: var(--sheet); }

.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .42s var(--ease-out), opacity .3s ease; }
.reveal.is-open { grid-template-rows: 1fr; opacity: 1; }
.reveal__inner { min-height: 0; overflow: hidden; }
.chat-item.is-leaving .reveal { grid-template-rows: 0fr; opacity: 0; transition-duration: .3s, .2s; }

.confirm {
  display: grid; gap: 12px; padding: 18px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, var(--line));
  background: color-mix(in srgb, var(--danger) 4%, var(--sheet));
}
.confirm__head { display: flex; align-items: center; gap: 10px; }
.confirm__head strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.confirm__icon { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }
.confirm__icon i { font-size: 18px; }
.confirm__subject {
  margin: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.confirm__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.confirm__facts li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
.confirm__facts li i { font-size: 17px; color: var(--muted); flex: none; }
.confirm__facts li.is-warn, .confirm__facts li.is-warn i { color: var(--danger); }
.confirm__facts li.is-loading { height: 20px; }
.skeleton {
  display: block; height: 10px; width: 72%; border-radius: 6px;
  background: linear-gradient(90deg, var(--soft) 0%, color-mix(in srgb, var(--soft) 40%, var(--sheet)) 50%, var(--soft) 100%);
  background-size: 200% 100%; animation: sweep 1.3s linear infinite;
}
.skeleton--short { width: 46%; }
.confirm__warning { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 13.5px; font-weight: 600; }
.confirm__warning i { font-size: 17px; }
.confirm__note { margin: -4px 0 0; color: var(--muted); font-size: 13.5px; }
.confirm__error { margin: 0; color: var(--danger); font-size: 13.5px; }
.confirm__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.confirm__yes.is-loading i { animation: spin .8s linear infinite; }
.confirm--compact { padding: 14px; gap: 10px; }
.confirm--compact .confirm__subject { font-size: 14.5px; }
.confirm--compact .confirm__actions .btn { flex: 1; height: 36px; font-size: 14px; }
.st-group .confirm { max-width: 560px; }
.chat-item--confirm { display: block; min-height: 0; margin: 4px 0 6px; }
.chat-item--confirm:hover { background: none; }

@media (max-width: 1180px) {
  .lineup { grid-template-columns: 1fr; }
  .lineup__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
  .lineup__top, .lineup__tagline, .lineup__text, .lineup__tags { grid-column: 1; }
  .lineup__facts { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
  .lineup__foot { grid-column: 1 / -1; min-height: 0; }
  .gauges { grid-template-columns: 1fr; }
  .st-group { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 860px) {
  .st { grid-template-columns: 1fr; }
  .st__side { position: static; padding: 8px 16px 10px; gap: 14px; }
  .st__top { padding: 0; }
  .st__nav { display: flex; overflow-x: auto; gap: 2px; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .st__nav::-webkit-scrollbar { display: none; }
  .st__link { width: auto; flex: none; white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .st__link i { display: none; }
  .st__ind { border-radius: 999px; }
  .st__main { padding: 0 8px 8px; }
  .st__panel { padding: 24px 18px 36px; border-radius: 18px; }
  .lineup__card { display: flex; }
  .st-group__body > .set-row { flex-wrap: wrap; }
  .gauge { padding: 16px; }
  .lineup__think { grid-template-columns: auto minmax(0, 1fr); }
  .lineup__think-base { grid-column: 2; }
}
.st-group__body > .segmented, .st-group__body > .btn { justify-self: start; }
.st-group__body > .set-row:has(+ .st-slot) { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 861px) {
  .app:not(.sidebar-collapsed) .main.is-settings .topbar { display: none; }
  .app:not(.sidebar-collapsed) .main.is-settings .st__panel { margin-top: 0; }
}
.empty__title { max-width: none; text-wrap: balance; }
.set-row > .btn, .set-row > .dropdown, .set-row > .switch { flex: none; }
.set-row > .btn { white-space: nowrap; }
.view--settings { overflow-x: hidden; }
@media (max-width: 860px) {
  .st { grid-template-columns: minmax(0, 1fr); }
  .st__side, .st__main { min-width: 0; }
}


::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: ease; }

body { -webkit-user-select: none; user-select: none; }
.msg__body, .msg__body *, .thought__text, .code pre, .code pre *, .code__output, .code__output *, input, textarea, [contenteditable],
.shared__title, .share-panel__url { -webkit-user-select: text; user-select: text; }
.msg__body .code__bar, .msg__body .code__bar *, .code__output .code__output-bar, .code__output .code__output-bar *,
.msg__body button, .msg__body button *, .msg__body .ask__title, .msg__body .ask__title *, .msg__body .ask__num, .msg__body .ask__hint,
.msg__body .ask__foot, .msg__body .ask__foot *, .msg__body .refusal__title, .msg__body .refusal__title *,
.msg__body .lang-check__head, .msg__body .lang-check__head *, .msg__body .lang-check__cost { -webkit-user-select: none; user-select: none; }

i.bx { display: inline-flex; width: 1em; height: 1em; flex: none; line-height: 1; vertical-align: -.125em; }
i.bx svg { width: 100%; height: 100%; fill: currentColor; overflow: visible; }
i.bx svg * { stroke: currentColor; stroke-width: 0; stroke-linejoin: round; stroke-linecap: round; }
.stage .bx-loader-alt, .confirm__yes.is-loading i.bx { animation: spin 1s linear infinite; }

.tip {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none;
}
.icon-btn, .send, .chip, .provider, .swatch, .recorder__done, [id="new-chat"] { position: relative; }

.composer__box { box-shadow: none; }
.composer__box:focus-within { box-shadow: none; border-color: var(--line-strong); }
.dropdown__button[aria-expanded="true"] { box-shadow: none; border-color: var(--text); }
.dropdown__menu, .menu, .item-menu { box-shadow: none; border-color: var(--line-strong); }
.segmented button[aria-pressed="true"] { box-shadow: none; }
.segmented__thumb { box-shadow: none; border: 1px solid var(--line); }
.st__ind { box-shadow: none; border: 1px solid var(--line); }
.scroll-down { box-shadow: none; border-color: var(--line-strong); }
.specimen__composer { box-shadow: none; border-color: var(--line-strong); }
.font-card[aria-checked="true"], .st-group .font-card[aria-checked="true"] { box-shadow: none; outline: 1px solid var(--accent); outline-offset: -2px; }
.lineup__card.is-default, .model-card.is-default { box-shadow: none; outline: 1px solid var(--accent); outline-offset: -2px; }
.swatch, [data-theme="dark"] .swatch { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .25s ease, outline-offset .3s cubic-bezier(.3, 1.4, .5, 1), transform .2s var(--ease-out); }
.swatch[aria-pressed="true"], [data-theme="dark"] .swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); outline-color: var(--swatch-light); outline-offset: 3px; }
[data-theme="dark"] .swatch[aria-pressed="true"] { outline-color: var(--swatch-dark); }

.keys__caps kbd {
  min-width: 30px; height: 30px; padding: 0 7px; border-radius: 7px; box-shadow: none;
  background: var(--sheet); border: 1px solid var(--line-strong); color: var(--text); font: 600 13px/1 var(--font);
}

.range { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; max-width: 520px; }
.range__a { font-weight: 700; color: var(--muted); line-height: 1; }
.range__a--small { font-size: 12px; }
.range__a--large { font-size: 22px; }
.range__value { min-width: 54px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.range__track { position: relative; height: 28px; display: grid; align-items: center; }
.range__ticks { position: absolute; left: 9px; right: 9px; top: 50%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.range__ticks span { width: 2px; height: 2px; border-radius: 50%; background: var(--faint); opacity: .7; }
.range__ticks span.is-default { height: 10px; width: 2px; border-radius: 1px; opacity: .5; }
.range__input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; position: relative; }
.range__input::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--p, 40%), var(--soft) var(--p, 40%)); }
.range__input::-moz-range-track { height: 6px; border-radius: 999px; background: var(--soft); }
.range__input::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.range__input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: var(--sheet); border: 2px solid var(--accent); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.range__input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--accent); }
.range__input:active::-webkit-slider-thumb { transform: scale(1.18); }
.range__input:focus-visible { outline: none; }
.range__input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.share-panel {
  position: absolute; top: 56px; right: 16px; z-index: 45; width: min(420px, calc(100% - 32px));
  display: grid; gap: 14px; padding: 18px; border-radius: 18px;
  background: var(--raised); border: 1px solid var(--line-strong);
  animation: pop-down .22s var(--ease-out) both; transform-origin: top right;
}
.share-panel.is-closing { animation: pop-out .15s ease both; }
.share-panel.is-busy { opacity: .7; pointer-events: none; }
.share-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.share-panel__head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.share-panel__head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.share-panel__head .icon-btn { margin: -6px -6px 0 0; }
.share-panel__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.share-panel__status { display: flex; align-items: center; gap: 12px; }
.share-panel__status > span:last-child { display: grid; }
.share-panel__status strong { font-size: 15px; }
.share-panel__status small { color: var(--muted); font-size: 13px; }
.share-panel__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; transition: background .3s ease; }
.share-panel__dot.is-on { background: var(--accent); }
.share-panel__link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.share-panel__url { flex: 1; min-width: 0; font: 500 13px/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-panel__copy { flex: none; }
.share-panel__copy.is-done { color: var(--accent); border-color: var(--accent); }
.share-panel__snap { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.share-panel__snap i { color: var(--muted); font-size: 17px; }
.share-panel__update { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; font-weight: 600; }
.share-panel__note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.share-panel__error { margin: 0; color: var(--danger); font-size: 13.5px; }
.share-panel__foot { display: flex; justify-content: flex-end; }
.share-panel__foot a { text-decoration: none; }
@media (max-width: 860px) { .share-panel { top: 52px; right: 8px; width: calc(100% - 16px); } }

.textarea--short { min-height: 92px; }
.field { display: grid; gap: 6px; padding: 12px 0; }
.field__label { font-weight: 600; font-size: 15px; }
.field__hint { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }
.field .text-input { width: 100%; max-width: 420px; }
.actions-row--end { justify-content: flex-end; }

.ideas-wrap { display: grid; gap: 14px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.idea {
  display: flex; align-items: flex-start; gap: 9px; text-align: left; cursor: pointer;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font-size: 14px; line-height: 1.4; color: var(--text);
  transition: border-color .2s ease, background .2s ease, opacity .25s ease, transform .25s var(--ease-out);
}
.idea i.bx { margin-top: 1px; color: var(--accent); font-size: 17px; }
.idea:hover { border-color: var(--line-strong); background: var(--sheet); }
@keyframes idea-in { from { opacity: 0; transform: translateY(8px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.idea.is-new { animation: idea-in .45s var(--ease-out) both; }
.ideas__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ideas__note { margin: 0; color: var(--muted); font-size: 13px; }
.ideas__fix {
  padding: 0; border: 0; background: none; color: var(--text); font: 600 13px/1.4 var(--font); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color .2s ease;
}
.ideas__fix:hover { text-decoration-color: currentColor; }
.ideas__topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ideas__topics[hidden] { display: none; }
.ideas__topics-label { color: var(--muted); font-size: 13px; margin-right: 2px; }
.ideas__auto { margin-left: 4px; color: var(--muted); }

.intro { min-height: 100%; background: var(--bg); }
.intro__top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.intro.is-scrolled .intro__top { border-bottom-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -.01em; color: var(--text); }
.wordmark .mark { width: 24px; height: 24px; }
.intro__nav { display: flex; gap: 2px; margin-left: 8px; }
.intro__link {
  border: 0; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .2s ease, background .2s ease;
}
.intro__link:hover { color: var(--text); background: var(--soft); }
.intro__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.intro__end .btn { height: 34px; }

.intro__hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 5vw, 80px);
  min-height: calc(100vh - 64px);
  padding: clamp(32px, 6vh, 72px) clamp(20px, 4vw, 56px) clamp(56px, 9vh, 96px);
}
.intro__title { margin: 0; max-width: 14ch; white-space: pre-line; font-size: clamp(40px, 5vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -.042em; text-wrap: balance; }
.intro__lede { margin: 24px 0 0; max-width: 44ch; color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; }
.intro__signin { margin-top: 40px; }
.login__label { margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.providers { display: flex; gap: 12px; flex-wrap: wrap; }
.provider {
  width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease-out);
}
.provider i.bx { font-size: 30px; }
.provider:hover:not(:disabled) { border-color: var(--text); }
.provider:active:not(:disabled) { transform: scale(.95); }
.provider:disabled { opacity: .45; cursor: not-allowed; }
.provider.is-loading:disabled { opacity: 1; cursor: progress; }
.provider.is-loading i { animation: pulse 1s ease-in-out infinite; }
.login__error { color: var(--danger); font-size: 14px; margin: 14px 0 0; }
.login__terms { color: var(--faint); font-size: 13px; margin: 20px 0 0; max-width: 56ch; }

.intro__stage { display: grid; justify-items: stretch; gap: 14px; min-width: 0; }
.demo { width: 100%; border-radius: 22px; background: #1D2024; border: 1px solid #2E3238; overflow: hidden; color: #E8EAEC; }
[data-theme="dark"] .demo { background: #1A1D20; }
.demo__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid #2E3238; color: #A0A6AC; font-size: 13px; }
.demo__bar span { width: 9px; height: 9px; border-radius: 50%; background: #3B4047; }
.demo__bar strong { margin-left: 8px; font-weight: 700; color: #E8EAEC; }
.demo__tabs { display: flex; gap: 6px; padding: 14px 18px 0; overflow-x: auto; scrollbar-width: none; }
.demo__tabs::-webkit-scrollbar { display: none; }
.demo__tab {
  flex: none; border: 1px solid #343A41; background: transparent; color: #A0A6AC; border-radius: 999px;
  padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.demo__tab:hover { color: #E8EAEC; border-color: #4A5058; }
.demo__tab[aria-pressed="true"] { background: #E8EAEC; border-color: #E8EAEC; color: #1D2024; }
.demo__body {
  height: 430px; overflow: hidden; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px;
  font-size: 15px; line-height: 1.55; transition: opacity .26s ease;
}
.demo__body.is-leaving { opacity: 0; }
.demo__user { align-self: flex-end; max-width: 84%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: #3B4047; color: #E8EAEC; min-height: 1.55em; }
.demo__reply { display: grid; gap: 12px; }
.demo__reply p { margin: 0; }
.demo__stage { display: inline-flex; align-items: center; gap: 8px; color: #8A9096; font-size: 14px; }
.demo__stage i.bx { font-size: 17px; }
.demo__stage span {
  background: linear-gradient(90deg, #8A9096 0%, #8A9096 35%, #E8EAEC 50%, #8A9096 65%, #8A9096 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.2s linear infinite;
}
.demo__code { border-radius: 12px; background: #0F1113; border: 1px solid #2E3238; overflow: hidden; animation: fade-in .3s ease both; }
.demo__code-bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 7px 14px; border-bottom: 1px solid #24282D; font: 500 12px/1 var(--mono); color: #8A9096; }
.demo__run { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; font: 600 12px/1 var(--font); color: #A0A6AC; transition: color .2s ease, background .2s ease; }
.demo__run.is-on { color: #10251A; background: #6FC29A; }
.demo__code pre { margin: 0; padding: 12px 14px; font: 400 13px/1.6 var(--mono); color: #E6E8EB; white-space: pre; overflow: hidden; }
.demo__code pre code {font-family: var(--mono);}
.demo__out { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-top: 1px dashed #343A41; font: 500 12px/1 var(--mono); color: #8A9096; animation: fade-in .3s ease both; }
.demo__out strong { font: 600 18px/1 var(--mono); color: #6FC29A; }
.demo__body > * { flex-shrink: 0; }
.demo__body.is-expanded { height: auto; min-height: 430px; }
.demo__say.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.demo__more {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin-top: -6px; padding: 0; border: 0; background: none;
  color: #A0A6AC; font: 600 13.5px/1.4 var(--font); cursor: pointer; transition: color .2s ease; animation: fade-in .3s ease both;
}
.demo__more:hover { color: #E8EAEC; }
.demo__more i.bx { font-size: 17px; transition: transform .3s var(--ease-out); }
.demo__more.is-open i.bx { transform: rotate(180deg); }
.cite {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin: 0 2px;
  border-radius: 6px; background: color-mix(in srgb, currentColor 16%, transparent); font: 600 11px/1 var(--mono); vertical-align: 2px;
}
.demo__sources, .art-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.demo__sources span, .art-pills span {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border-radius: 999px;
  border: 1px solid #3B4047; font-size: 13px; color: #C9CED4; animation: fade-in .35s ease both;
}
.demo__sources b, .art-pills b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #3B4047; font: 600 11px/1 var(--mono); color: #E8EAEC; }
.demo__caption { margin: 0; font-size: 12.5px; color: var(--faint); text-align: center; }

.intro__body { padding: 0 clamp(20px, 4vw, 56px); }
.intro-sec { padding: clamp(64px, 11vh, 120px) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.intro-sec__head { max-width: 760px; margin-bottom: clamp(32px, 5vh, 48px); }
.intro-sec__kicker { margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: 14px; }
.intro-sec__title { margin: 0; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.03; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.intro-sec__lede { margin: 16px 0 0; max-width: 60ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.intro--reveal .intro-sec > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.intro--reveal .intro-sec > :nth-child(2) { transition-delay: .08s; }
.intro--reveal .intro-sec > :nth-child(3) { transition-delay: .16s; }
.intro--reveal .intro-sec.is-in > * { opacity: 1; transform: none; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bento__card { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 14px 14px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.bento__card--wide { grid-column: span 2; }
.bento__art { position: relative; display: grid; align-content: center; min-height: 200px; padding: 20px; border-radius: 16px; background: var(--bg); overflow: hidden; }
.bento__text { padding: 0 8px; }
.bento__title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.bento__title i.bx { font-size: 20px; color: var(--accent); }
.bento__text p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 62ch; }

.art-bar { display: inline-block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--text) 12%, transparent); vertical-align: middle; }
.art-code { width: min(100%, 520px); justify-self: center; border-radius: 14px; background: var(--code-bg); color: var(--code-text); overflow: hidden; }
.art-code__bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 7px 14px; border-bottom: 1px solid var(--code-line); font: 500 12px/1 var(--mono); color: var(--code-muted); }
.art-code__run { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; font: 600 12px/1 var(--font); color: #10251A; background: #6FC29A; }
.art-code pre { margin: 0; padding: 12px 14px; font: 400 13px/1.6 var(--mono); white-space: pre; overflow: hidden; }
.art-code pre code { font: inherit; }
.art-code__out { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-top: 1px dashed var(--code-line); font: 500 12px/1 var(--mono); color: var(--code-muted); }
.art-code__out strong { font: 600 20px/1 var(--mono); color: #6FC29A; }
.art-cite { display: grid; gap: 16px; }
.art-stage { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.art-stage i.bx { font-size: 17px; }
.art-lines { display: grid; gap: 12px; color: var(--text); }
.art-lines > span { display: flex; align-items: center; gap: 6px; }
.art-pills span { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.art-pills b { background: var(--soft); color: var(--text); }
.art-files { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.art-files .file-chip { animation: none; max-width: 100%; }
.art-think { display: grid; gap: 12px; }
.art-think__toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.art-think__toggle i.bx { font-size: 18px; }
.art-think__toggle i.bx:last-child { transform: rotate(180deg); }
.art-think__text { display: grid; gap: 10px; padding: 4px 0 4px 14px; border-left: 2px solid var(--line); }
.art-voice { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.art-voice__time { font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.art-voice__wave { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.art-voice__wave span { flex: none; width: 3px; border-radius: 2px; background: var(--text); opacity: .75; transform-origin: 50% 50%; animation: wave 1.1s ease-in-out infinite alternate; }
@keyframes wave { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.art-voice__done { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-size: 20px; }
.art-clock { display: grid; justify-items: start; gap: 4px; }
.art-clock strong { font-size: clamp(44px, 4.4vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.art-clock span { font-size: 15px; font-weight: 600; }
.art-clock span::first-letter { text-transform: uppercase; }
.art-clock small { color: var(--faint); font-size: 13px; }
.art-lang { display: grid; gap: 18px; }
.art-lang__q { display: flex; justify-content: flex-start; }
.art-lang__q .demo__user { align-self: auto; background: var(--soft); color: var(--text); }
.art-lang__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.art-lang__chips span { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); }
.art-lang__chips span.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { padding: 24px 22px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.step__num { font: 600 13px/1 var(--mono); color: var(--accent); }
.step h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.model { display: flex; flex-direction: column; gap: 4px; padding: 24px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.model__name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.model__base { font: 500 12.5px/1.3 var(--mono); color: var(--faint); }
.model p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.model .model__tag { margin-top: 18px; color: var(--text); font-weight: 700; font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.fact { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.fact__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 21px; }
.fact h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 700; }
.fact p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.extras { margin-top: clamp(40px, 7vh, 64px); padding: 28px clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.extras h3 { margin: 0 0 20px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.extras ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.extras li { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.extras li i.bx { flex: none; font-size: 18px; color: var(--muted); }

.intro__cta {
  width: calc(100% - 2 * clamp(20px, 4vw, 56px)); margin: 0 auto clamp(40px, 7vh, 72px);
  padding: clamp(48px, 9vh, 88px) clamp(24px, 4vw, 56px); border-radius: 28px; border: 1px solid var(--line);
  background: var(--login-art-bg); color: var(--login-art-fg); display: grid; justify-items: center; gap: 14px; text-align: center;
}
.intro__cta-title { margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.intro__cta-text { margin: 0 0 14px; color: color-mix(in srgb, var(--login-art-fg) 62%, transparent); font-size: 17px; }
.intro__cta .providers { justify-content: center; }
.intro__cta .provider { background: transparent; color: var(--login-art-fg); border-color: color-mix(in srgb, var(--login-art-fg) 24%, transparent); }
.intro__cta .provider:hover:not(:disabled) { border-color: var(--login-art-fg); }

.intro__foot {
  width: calc(100% - 2 * clamp(20px, 4vw, 56px)); margin: 0 auto; padding: 24px 0 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.intro__foot .wordmark { font-size: 18px; }
.intro__foot .wordmark .mark { width: 20px; height: 20px; }
.intro__foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.intro__foot a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.intro__foot a:hover { color: var(--text); }

@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--wide:last-child { grid-column: auto; }
  .steps, .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .intro__nav { display: none; }
  .intro__hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .intro__title { max-width: 15ch; }
}
@media (max-width: 640px) {
  .intro__top { gap: 12px; padding: 0 16px; }
  .intro__hero { padding: 28px 16px 56px; }
  .intro__body { padding: 0 16px; }
  .bento, .steps, .models, .facts, .extras ul { grid-template-columns: minmax(0, 1fr); }
  .bento__card--wide { grid-column: auto; }
  .bento__art { min-height: 170px; padding: 16px; }
  .demo__body { height: 470px; padding: 18px 16px 20px; font-size: 14.5px; }
  .demo__body.is-expanded { min-height: 470px; }
  .demo__out { align-items: flex-start; }
  .demo__out strong { font-size: 15px; line-height: 1.35; text-align: right; }
  .intro__cta, .intro__foot { width: calc(100% - 32px); }
  .intro__foot nav { margin-left: 0; }
}

.chat-list { position: relative; }
.glide {
  position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: var(--r-s); pointer-events: none; opacity: 0;
  background: var(--soft);
  transition: transform .32s cubic-bezier(.3, 1.15, .5, 1), height .32s cubic-bezier(.3, 1.15, .5, 1), opacity .18s ease;
}
.glide.is-on { opacity: 1; }
@media (hover: hover) {
  .chat-list .chat-item:hover, .chat-list .search-hit:hover { background: transparent; }
  .chat-list .chat-item.is-active:hover { background: var(--surface); }
}
.chat-item, .search-hit, .chat-list__group, .chat-list__empty { position: relative; z-index: 1; }
.share-panel { grid-template-columns: minmax(0, 1fr); }
.share-panel > * { min-width: 0; }
.set-row > .actions-row { flex: none; flex-wrap: nowrap; }

i.bx { transition: transform .35s var(--ease-out); transform-origin: 50% 50%; }
@media (hover: hover) {
  .idea:hover > i.bx-plus { transform: rotate(90deg); }
  :is(button, a):hover > i:is(.bx-refresh, .bx-reset, .bx-shuffle) { transform: rotate(-180deg); }
  :is(button, a):hover > i.bx-external { transform: translate(1px, -1px); }
  :is(button, a):hover > i.bx-arrow-right { transform: translateX(2px); }
}
.msg__tag--muted { color: var(--faint); }

.attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 0; }
.attachments[hidden] { display: none; }
.attachments__note { flex-basis: 100%; margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); user-select: none; }
.attachments__note .bx { font-size: 15px; }
.file-chip { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 260px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); animation: chip-in .22s var(--ease-out) both; }
.file-chip__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--soft); color: var(--muted); font-size: 18px; }
.file-chip__thumb { flex: none; width: 36px; height: 36px; border-radius: var(--r-xs); object-fit: cover; background: var(--soft); }
.file-chip__text { display: grid; min-width: 0; line-height: 1.25; user-select: none; }
.file-chip__name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip__meta { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip.is-reading .file-chip__icon .bx svg { animation: spin 1s linear infinite; }
.file-chip.is-error { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.file-chip.is-error .file-chip__icon { background: var(--danger-soft); color: var(--danger); }
.file-chip.is-error .file-chip__meta { color: var(--danger); }
.file-chip .file-chip__remove { flex: none; width: 26px; height: 26px; margin-right: -4px; font-size: 16px; }
@keyframes chip-in { from { opacity: 0; transform: scale(.96); } }
.msg__files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 8px; max-width: 100%; }
.msg__files .file-chip { animation: none; background: var(--surface); }
.msg__image { display: block; max-width: min(280px, 100%); max-height: 240px; border-radius: var(--r-m); border: 1px solid var(--line); object-fit: cover; background: var(--soft); }
body.is-dropping .composer__box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
body.is-dropping .composer__box::after { content: attr(data-drop); position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; font-size: 14px; font-weight: 500; color: var(--accent); background: color-mix(in srgb, var(--surface) 82%, transparent); pointer-events: none; user-select: none; }
@media (prefers-reduced-motion: reduce) { .file-chip { animation: none; } }
.composer__box { position: relative; }
.file-chip.is-error { max-width: 320px; }
.file-chip.is-error .file-chip__meta { white-space: normal; }

.docs-page { background: var(--bg); color: var(--text); min-height: 100vh; }
.docs-top {
  position: sticky; top: 0; z-index: 20; height: 60px; padding: 0 24px;
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.docs-top__brand { color: inherit; text-decoration: none; font-size: 19px; }
.docs-top__brand .mark { width: 22px; height: 22px; }
.docs-top__section { color: var(--muted); font-size: 14px; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; user-select: none; }
.docs-top__end { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.docs-top__open { text-decoration: none; height: 34px; gap: 6px; }
.docs {
  display: grid; grid-template-columns: 240px minmax(0, 720px) 200px; gap: 56px;
  justify-content: center; padding: 40px 24px 80px;
}
.docs-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 22px; }
.docs-nav { isolation: isolate; }
.docs-nav__group { position: static; }
.docs-nav__group { display: grid; gap: 2px; }
.docs-nav__label { margin: 0 0 6px 10px; font-size: 13px; font-weight: 600; color: var(--faint); user-select: none; }
.docs-nav__link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-s);
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; line-height: 1.3;
  transition: color .2s ease; user-select: none; position: relative; z-index: 1;
}
.docs-nav__link .bx { font-size: 18px; flex: none; transition: color .2s ease; }
.docs-nav__link:hover { color: var(--text); }
.docs-nav__link[aria-current="page"] { color: var(--text); }
.docs-nav__link[aria-current="page"] .bx { color: var(--accent); }
.docs-main { min-width: 0; }
.docs-title { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.docs-lede { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); }
.docs-meta { margin: 18px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--faint); user-select: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.docs-copy { color: var(--muted); }
.docs-copy.btn:active:not(:disabled) { transform: none; }
.docs-body { font-size: 16px; line-height: 1.7; user-select: text; -webkit-user-select: text; }
.docs-body * { user-select: text; -webkit-user-select: text; }
.docs-body h2 { margin: 40px 0 10px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; scroll-margin-top: 84px; }
.docs-body h3 { margin: 24px 0 6px; font-size: 17px; font-weight: 700; }
.docs-body p { margin: 0 0 12px; }
.docs-body > p:first-child { margin-top: 28px; }
.docs-body ul, .docs-body ol { margin: 0 0 14px; padding-left: 22px; }
.docs-body li { margin: 5px 0; padding-left: 4px; }
.docs-body li::marker { color: var(--faint); }
.docs-body b { font-weight: 650; }
.docs-body a, .docs-foot a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); transition: border-color .2s ease; }
.docs-body a:hover, .docs-foot a:hover { border-bottom-color: var(--accent); }
.docs-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.docs-foot .bx { font-size: 18px; }
.docs-toc { position: sticky; top: 100px; align-self: start; font-size: 13.5px; user-select: none; }
.docs-toc__label { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--faint); }
.docs-toc ol { position: relative; list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 12px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s ease, border-color .2s ease; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a[aria-current] { color: var(--text); }
.docs-toc__bar { position: absolute; left: -1px; top: 0; width: 2px; height: 0; opacity: 0; border-radius: 2px; background: var(--accent); pointer-events: none; }
.docs-toc.is-ready .docs-toc__bar { transition: transform .46s cubic-bezier(.3, 1.2, .5, 1), height .46s cubic-bezier(.3, 1.2, .5, 1), opacity .2s ease; }
.docs-home__label { margin: 40px 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--text); user-select: none; }
.docs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.docs-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); color: inherit; text-decoration: none; transition: border-color .2s ease; user-select: none;
}
.docs-card:hover { border-color: var(--line-strong); }
.docs-card__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-s); background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.docs-card__text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.docs-card__text strong { font-size: 15.5px; font-weight: 700; }
.docs-card__text span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.docs-card > .bx:last-child { flex: none; margin-top: 2px; color: var(--faint); font-size: 18px; transition: transform .25s var(--ease-out), color .2s ease; }
.docs-card:hover > .bx:last-child { transform: translateX(3px); color: var(--text); }
@media (max-width: 1180px) {
  .docs { grid-template-columns: 220px minmax(0, 720px); gap: 40px; }
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs-top { padding: 0 16px; gap: 10px; }
  .docs-top__section { display: none; }
  .docs-top__open span { display: none; }
  .docs-top__open { width: 34px; padding: 0; justify-content: center; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px 64px; }
  .docs-nav { position: sticky; top: 60px; z-index: 10; margin: 0 -16px; padding: 10px 16px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--line); }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav__group { display: flex; gap: 6px; }
  .docs-nav__label { display: none; }
  .docs-nav__link { white-space: nowrap; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .docs-nav__link .bx { display: none; }
  .docs-main { padding-top: 28px; }
  .docs-cards { grid-template-columns: minmax(0, 1fr); }
  .docs-body h2 { scroll-margin-top: 130px; }
}
.login__terms a, .limits__why { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); transition: border-color .2s ease; }
.login__terms a:hover, .limits__why:hover { border-bottom-color: currentColor; }
.doc-links { display: grid; gap: 6px; }
.doc-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: border-color .2s ease; user-select: none; }
.doc-link:hover { border-color: var(--line-strong); }
.doc-link > .bx:first-child { color: var(--muted); font-size: 18px; }
.doc-link span { flex: 1; }
.doc-link > .bx:last-child { color: var(--faint); font-size: 16px; transition: transform .2s var(--ease-out); }
.doc-link:hover > .bx:last-child { transform: translate(1px, -1px); }

.chip__count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-right: -4px;
  border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent);
  font: 700 12px/1 var(--font); font-variant-numeric: tabular-nums;
}
.chip__count.is-out { color: var(--danger); background: var(--danger-soft); }
.msg__trim { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.msg__trim i.bx { font-size: 15px; margin-top: 2px; flex: none; }
.avatar.is-contain { background: var(--soft); }
.cropper {
  display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg);
}
.cropper__stage {
  position: relative; flex: none; width: 200px; height: 200px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--soft); cursor: grab; touch-action: none;
}
.cropper__stage.is-dragging { cursor: grabbing; }
.cropper__stage.is-contain { cursor: default; }
.cropper__stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
.cropper__stage img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cropper__side { flex: 1 1 260px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.cropper__side > .segmented { justify-self: start; }
.cropper__title { font-size: 15px; }
.cropper__zoom { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; max-width: 360px; color: var(--muted); }
.cropper__zoom i.bx { font-size: 15px; }
.cropper__zoom-big i.bx { font-size: 22px; }
.cropper__hint { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 46ch; }
.cropper__previews { display: flex; align-items: center; gap: 12px; }
.cropper__previews .avatar:first-child { width: 64px; height: 64px; }
.cropper .actions-row { align-items: center; }
.st-group__body > .set-row--stack { flex-wrap: wrap; }
.set-row--stack > .set-row__text { flex: 1 1 100%; max-width: none; }
.set-row--stack > .actions-row { flex-wrap: wrap; }
@media (max-width: 640px) {
  .cropper { justify-content: center; }
}
.actions-row > .saved-note:empty { display: none; }

.chat-item:has(.item-menu) { z-index: 30; }
.ideas__rate { display: flex; align-items: center; gap: 2px; font-size: 13.5px; color: var(--muted); }
.ideas__rate > span:first-child { margin-right: 6px; }
.ideas__rate .icon-btn { width: 32px; height: 32px; }
.ideas__rate .icon-btn i.bx { font-size: 18px; }
.ideas__rate-note { margin-left: 8px; color: var(--accent); }
.composer textarea::placeholder, .textarea::placeholder { white-space: pre-line; }

.intro__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px 6px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.intro__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding: clamp(56px, 9vh, 96px) 0; border-top: 1px solid var(--line); }
.pillar { display: grid; align-content: start; gap: 10px; }
.pillar__num { font: 600 13px/1 var(--mono); color: var(--accent); }
.pillar__title { margin: 6px 0 0; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.pillar p { margin: 0; max-width: 40ch; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
@media (max-width: 860px) { .pillars { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

@keyframes settings-in { from { opacity: 0; filter: blur(12px); transform: scale(.985); } to { opacity: 1; filter: none; transform: none; } }
#view-settings.is-entering { animation: settings-in .45s var(--ease-out) both; }
#view-chat.is-entering { animation: fade-in .25s ease both; }

@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-4px) scale(.97); } }
.item-menu { animation: menu-in .24s var(--ease-out) both; }
.item-menu.is-closing { animation: menu-out .14s ease both; pointer-events: none; }
.chat-item .chat-item__more:hover, .chat-item .chat-item__more[aria-expanded="true"] { background: transparent; color: var(--text); }

.grow-field { position: relative; }
.grow-field .textarea { display: block; overflow-y: auto; transition: height .22s var(--ease-out), border-color .2s ease; }
.grow-field.is-dragging .textarea { transition: border-color .2s ease; }
.grow-field__mirror {
  position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; box-sizing: border-box;
  white-space: pre-wrap; overflow-wrap: break-word; line-height: 1.5; border: 0; height: auto;
}
.grow-field__handle {
  position: absolute; right: 4px; bottom: 4px; width: 24px; height: 24px; display: grid; place-items: center;
  cursor: ns-resize; touch-action: none;
}
.grow-field__handle span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: transform .2s var(--ease-out), background .2s ease; }
.grow-field:hover .grow-field__handle span { background: var(--faint); }
.grow-field__handle:hover span, .grow-field.is-dragging .grow-field__handle span { transform: scale(1.6); background: var(--accent); }
.counter { transition: color .25s ease; }
.counter__num { display: inline-block; min-width: 1ch; text-align: right; }
.counter.is-near { color: var(--muted); }
.counter.is-full { color: var(--danger); }

.btn--confirm .btn__swap { animation: fade-in .2s ease both; }
.btn--confirm.is-armed { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }

.notify-card {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 14px 16px; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden;
}
.notify-card__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); transition: background .3s ease, color .3s ease; }
.notify-card__icon i.bx { font-size: 19px; animation: fade-in .25s ease both; }
.notify-card__body { display: grid; gap: 2px; min-width: 0; }
.notify-card__title { font-size: 14.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.notify-card__text { font-size: 13px; color: var(--muted); }
.notify-card__text:empty { display: none; }
.notify-card__track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.notify-card__bar { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.notify-card.is-waiting .notify-card__bar { animation: notify-count 5s linear both; }
@keyframes notify-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.notify-card.is-done .notify-card__icon { background: var(--accent-soft); color: var(--accent); }
.notify-card.is-failed .notify-card__icon { background: var(--danger-soft); color: var(--danger); }

.icon-btn > i.bx, .st__link > i.bx, .idea > i.bx { display: block; }
i.bx:is(.bx-cog, .bx-plus, .bx-refresh, .bx-reset, .bx-shuffle, .bx-external, .bx-arrow-right) { will-change: transform; backface-visibility: hidden; }


.note-card {
  display: none; align-items: center; gap: 7px; min-height: 32px; padding: 6px 12px 6px 9px; max-width: 100%;
  border-radius: var(--r-s); background: var(--accent-soft); color: var(--accent);
  font-size: 13.5px; font-weight: 600; line-height: 1.25; -webkit-user-select: none; user-select: none;
}
.note-card.is-shown { display: inline-flex; animation: note-in .34s var(--ease-out) both; }
.note-card.is-leaving { animation: note-out .18s ease both; }
.note-card i.bx { font-size: 17px; flex: none; }
.note-card[data-tone="bad"] { background: var(--danger-soft); color: var(--danger); }
.note-card[data-tone="wait"] { background: var(--soft); color: var(--muted); }
.note-card[data-tone="wait"] i.bx { animation: spin 1s linear infinite; }
.msg__meta .note-card { min-height: 28px; padding: 4px 10px 4px 8px; margin-left: 6px; font-size: 13px; }
.ideas__rate .note-card { margin-left: 6px; }
@keyframes note-in { from { opacity: 0; transform: translateY(3px) scale(.97); filter: blur(2px); } }
@keyframes note-out { to { opacity: 0; transform: scale(.97); } }
.set-note--bad {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px;
  border-radius: var(--r-s); background: var(--danger-soft); color: var(--danger); font-weight: 500; line-height: 1.4;
}
.set-note--bad i.bx { font-size: 17px; flex: none; margin-top: 1px; }

.docs-nav__ind {
  position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0; opacity: 0; pointer-events: none;
  border-radius: var(--r-s); background: var(--surface); box-shadow: 0 1px 2px rgba(29, 32, 36, .06), inset 0 0 0 1px var(--line);
}
.docs-nav.is-ready .docs-nav__ind {
  transition: transform .46s cubic-bezier(.3, 1.2, .5, 1), width .46s cubic-bezier(.3, 1.2, .5, 1), height .46s cubic-bezier(.3, 1.2, .5, 1), opacity .2s ease;
}
.docs-nav__group:first-of-type { margin-bottom: -10px; }

.docs-page.is-home .docs { grid-template-columns: 240px minmax(0, 976px); }
.docs-page.is-home .docs-toc { display: none; }
.docs-home .docs-lede { max-width: 60ch; }
.docs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.docs-fact {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: border-color .2s ease; user-select: none;
}
.docs-fact:hover { border-color: var(--line-strong); }
.docs-fact__icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 6px; border-radius: var(--r-s); background: var(--accent-soft); color: var(--accent); font-size: 19px; }
.docs-fact strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.docs-fact > span:not([class]) { font-size: 13.5px; line-height: 1.45; color: var(--muted); flex: 1; }
.docs-fact__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.docs-fact__more .bx { font-size: 16px; transition: transform .25s var(--ease-out); }
.docs-fact:hover .docs-fact__more .bx { transform: translateX(3px); }
.docs-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.docs-card__text small { margin-top: 6px; font-size: 12.5px; color: var(--faint); }
.docs-ask {
  display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 20px 22px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); user-select: none;
}
.docs-ask__text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.docs-ask__text strong { font-size: 15.5px; }
.docs-ask__text span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.docs-ask__btn { flex: none; gap: 6px; text-decoration: none; }
@media (max-width: 1180px) {
  .docs-page.is-home .docs { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .docs-page.is-home .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav__group:first-of-type { margin-bottom: 0; }
  .docs-nav__ind { border-radius: 999px; }
  .docs-nav__link[aria-current="page"] { border-color: transparent; }
  .docs-cards--three { grid-template-columns: minmax(0, 1fr); }
  .docs-ask { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .docs-facts { grid-template-columns: minmax(0, 1fr); }
}

.attachments__note { display: none; }
.image-tile {
  position: relative; flex: none; height: 96px; min-width: 64px; max-width: 220px; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--soft); overflow: hidden; animation: chip-in .22s var(--ease-out) both;
}
.image-tile img { display: block; height: 100%; width: auto; max-width: 220px; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.image-tile.is-reading { width: 96px; }
.image-tile__wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 20px; }
.image-tile__wait .bx svg { animation: spin 1s linear infinite; }
.image-tile .file-chip__remove {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; margin: 0; border-radius: 50%;
  background: rgba(20, 22, 24, .62); color: #fff; opacity: 0; transition: opacity .18s ease, background .18s ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.image-tile .file-chip__remove i { font-size: 15px; }
.image-tile:hover .file-chip__remove, .image-tile .file-chip__remove:focus-visible { opacity: 1; }
.image-tile .file-chip__remove:hover { background: rgba(20, 22, 24, .82); color: #fff; }
@media (hover: none) { .image-tile .file-chip__remove { opacity: 1; } }
.msg__image { object-fit: contain; width: auto; height: auto; max-width: min(360px, 100%); max-height: 320px; }

.file-chip.is-openable { cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.file-chip.is-openable:hover { border-color: var(--line-strong); }

.viewer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; }
.viewer__scrim { position: absolute; inset: 0; background: rgba(12, 14, 16, .46); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .2s ease both; }
.viewer__panel {
  position: relative; display: flex; flex-direction: column; width: min(1100px, 100%); height: min(860px, 100%);
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; outline: none;
  animation: settings-in .32s var(--ease-out) both;
}
.viewer.is-closing .viewer__scrim { animation: fade-in .18s ease reverse both; }
.viewer.is-closing .viewer__panel { animation: note-out .18s ease both; }
.viewer__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); user-select: none; }
.viewer__title { display: grid; gap: 1px; flex: 1; min-width: 0; line-height: 1.25; }
.viewer__title strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__title span { font-size: 12.5px; color: var(--faint); }
.viewer__actions { display: flex; gap: 2px; flex: none; }
.viewer__body {
  flex: 1; margin: 0; padding: 20px 24px 28px; overflow: auto; font: 400 15px/1.65 var(--font);
  white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; color: var(--text);
}
.viewer__body * { user-select: text; -webkit-user-select: text; }
.viewer__body.is-code { background: var(--code-bg); color: var(--code-text); font: 400 13.5px/1.6 var(--mono); white-space: pre; overflow-wrap: normal; tab-size: 4; }
body.has-viewer { overflow: hidden; }
@media (max-width: 640px) {
  .viewer { padding: 0; }
  .viewer__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}
.attachments { align-items: flex-end; }

* { -webkit-tap-highlight-color: transparent; }

.beta-tag {
  display: inline-flex; align-items: center; height: 18px; margin-left: -2px; padding: 0 6px;
  border-radius: 999px; background: var(--soft); color: var(--muted);
  font: 600 10.5px/1 var(--font); letter-spacing: .02em; text-transform: lowercase; vertical-align: middle;
  -webkit-user-select: none; user-select: none;
}

.guest-start {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 4px 0; border: 0; background: none;
  color: var(--text); font: 600 15px/1.3 var(--font); cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: border-color .2s ease, opacity .2s ease;
}
.guest-start i.bx { font-size: 18px; }
.guest-start:hover:not(:disabled) { border-bottom-color: currentColor; }
.guest-start:disabled { opacity: .45; cursor: not-allowed; }
.guest-start.is-loading:disabled { opacity: 1; cursor: progress; }
.guest-start.is-loading i { animation: pulse 1s ease-in-out infinite; }
.guest-hint { margin: 6px 0 0; color: var(--faint); font-size: 13px; }
.intro__cta .guest-start { margin-top: 6px; color: var(--login-art-fg); }

body.is-guest #attach-btn, body.is-guest #mic-btn, body.is-guest #search-btn, body.is-guest #think-btn,
body.is-guest .composer__tools .menu-wrap, body.is-guest #share-top { display: none; }

.guest-lock {
  max-width: var(--column); margin: 0 auto 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: var(--surface); display: grid; gap: 8px; animation: rise .25s var(--ease) both;
}
.guest-lock__title { margin: 0; font-weight: 700; font-size: 16px; }
.guest-lock__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.guest-lock .providers { gap: 8px; margin-top: 4px; }
.guest-lock .provider { width: 48px; height: 48px; border-radius: 14px; }
.guest-lock .provider i.bx { font-size: 24px; }
.limits__signin { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.limits__signin:hover { border-bottom-color: currentColor; }

.lang-check {
  margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface);
  display: grid; gap: 8px; animation: rise .25s var(--ease) both;
}
.lang-check__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; }
.lang-check__head i.bx { font-size: 18px; color: var(--muted); }
.lang-check__head .icon-btn { margin-left: auto; }
.lang-check__text { margin: 0; color: var(--muted); font-size: 14px; }
.lang-check__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-check__cost { margin: 0; color: var(--faint); font-size: 12.5px; }

@container (max-width: 560px) {
  .specimen { grid-template-columns: 1fr; }
  .specimen__rail { display: none; }
  .specimen__chat { padding: 18px 14px 70px; }
  .specimen__composer { left: 14px; right: 14px; }
  .specimen__chat .msg--user { max-width: 92%; }
}

.blocked { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.blocked__card { width: min(420px, 100%); display: grid; justify-items: center; gap: 12px; text-align: center; }
.blocked__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--danger, #d9534f) 12%, transparent); color: var(--danger, #d9534f); margin-bottom: 6px; }
.blocked__icon i.bx { font-size: 32px; }
.blocked__title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.blocked__text { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.blocked__contact { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.blocked__contact a { color: var(--text); }

.qload { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; }
.qload svg { width: 100%; height: 100%; overflow: visible; }
.qload__ring { fill: none; stroke: var(--text); stroke-width: 15; stroke-linecap: round; stroke-dasharray: 160 48; transform-origin: 54px 54px; animation: qload-ring 2.4s linear infinite; }
.qload__arm { transform-origin: 54px 54px; animation: qload-orbit 1.6s cubic-bezier(.65, 0, .35, 1) infinite; }
.qload__dot { fill: var(--accent); animation: qload-dot 1.6s cubic-bezier(.65, 0, .35, 1) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes qload-orbit { 0% { transform: rotate(0deg); } 70%, 100% { transform: rotate(360deg); } }
@keyframes qload-dot { 0%, 100% { transform: scale(1); } 35% { transform: scale(.7); } 70% { transform: scale(1.15); } 85% { transform: scale(1); } }
@keyframes qload-ring { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .qload__ring, .qload__arm, .qload__dot { animation: none; }
  .qload__ring { stroke-dasharray: none; }
}

.ask { display: grid; gap: 18px; margin: 4px 0 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.ask__q { display: grid; gap: 10px; }
.ask__title { display: flex; align-items: baseline; gap: 10px; margin: 0; font-weight: 600; line-height: 1.45; }
.ask__num { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 700; transform: translateY(-1px); }
.ask__hint { margin-left: auto; flex: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.ask__options { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 32px; }
.ask__option {
  min-height: 36px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--text); font: 500 14.5px/1.3 var(--font); text-align: left; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .15s var(--ease-out);
}
.ask__option:hover:not(:disabled):not(.is-on) { border-color: var(--line-strong); background: var(--soft); }
.ask__option:active:not(:disabled) { transform: scale(.97); }
.ask__option.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.ask__option:disabled { cursor: default; opacity: .55; }
.ask__option.is-on:disabled { opacity: 1; }
.ask__other {
  margin-left: 32px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: transparent; color: var(--text); font: 400 14.5px var(--font); outline: none; transition: border-color .2s ease;
}
.ask__other:focus { border-color: var(--accent); }
.ask__other::placeholder { color: var(--faint); }
.ask__foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.ask.is-done { gap: 14px; background: transparent; }
@media (max-width: 560px) {
  .ask { padding: 14px; }
  .ask__options { padding-left: 0; }
  .ask__other { margin-left: 0; }
  .ask__foot .btn { flex: 1; }
}

.gauge.is-still .gauge__value { animation: none; }
.gauge__of { color: var(--muted); font-size: 13px; margin-top: 2px; }
.code.is-preview .code__output { border-top: 0; }

.gauge { gap: 14px; }
.gauge__ring { width: 64px; height: 64px; }
.gauge__text { min-width: 0; }
.gauge__num small { margin-left: 5px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.gauge__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.del-btn, .msg__meta .del-btn { width: auto; min-width: 30px; padding: 0 6px; grid-auto-flow: column; overflow: hidden;
  transition: background .2s ease, color .2s ease, padding .25s var(--ease-out), transform .15s var(--ease-out); }
.del-btn__label { max-width: 0; opacity: 0; margin-left: 0; white-space: nowrap; font: 600 13.5px/1 var(--font);
  transition: max-width .28s var(--ease-out), opacity .2s ease, margin .28s var(--ease-out); }
.del-btn.is-armed, .del-btn.is-armed:hover, .msg__meta .del-btn.is-armed { background: var(--danger); color: #fff; padding: 0 12px 0 9px; border-radius: 999px; }
.del-btn.is-armed .del-btn__label { max-width: 180px; opacity: 1; margin-left: 6px; }
.del-btn__timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .55); transform: scaleX(0); transform-origin: left; }
.del-btn.is-armed .del-btn__timer { animation: del-timer 4s linear both; }
@keyframes del-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.del-btn.is-armed .tip { display: none; }
@media (max-width: 560px) {
  .msg__meta:has(.del-btn.is-armed) .msg__time { display: none; }
}

.search-hit, .item-menu button, .topbar__title button, .chat-item .chat-item__more { transition: color .2s ease, background-color .2s ease, opacity .2s ease; }
.composer__meta { transition: color .2s ease; }
.composer__meta .status { animation: status-in .25s var(--ease-out) both; }
@keyframes status-in { from { opacity: 0; transform: translateY(2px); } }
.ask:not(.is-done) { animation: rise .3s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .thought__body, .thought__toggle i { transition: none; }
  .composer__meta .status, .msg__edit, .ask, .topbar__title input, .chat-item__input { animation: none; }
}

.lineup__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lineup__tag { padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.lineup__card.is-default .lineup__tag { background: var(--accent-soft); color: var(--text); }
.topbar__title input, .chat-item__input { animation: field-in .26s var(--ease-out) backwards; transform-origin: left center; }
@keyframes field-in { from { opacity: 0; clip-path: inset(0 100% 0 0 round 6px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 6px); } }
.font-card__name { font-weight: 600; }
.fonts--code .font-card__name { font-weight: 500; }

.msg__art:empty { display: none; }
.art { position: relative; width: min(100%, 440px); margin: 0 0 12px; border-radius: var(--r-l); overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.art--loading { aspect-ratio: 1; animation: fade-in .35s ease both; }
.art__glow { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, color-mix(in srgb, var(--surface) 75%, transparent) 50%, transparent 75%); background-size: 260% 100%; animation: art-sweep 1.8s ease-in-out infinite; }
@keyframes art-sweep { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.art__img { display: block; width: 100%; height: auto; opacity: 0; filter: blur(16px); transform: scale(1.04); transition: opacity .6s var(--ease-out), filter .9s var(--ease-out), transform .9s var(--ease-out); }
.art.is-ready .art__img { opacity: 1; filter: none; transform: none; }
.art__bar { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s var(--ease-out); }
.art:hover .art__bar, .art:focus-within .art__bar { opacity: 1; transform: none; }
.art__btn { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); }
.art__btn:hover { background: var(--surface); }
@media (hover: none) { .art__bar { opacity: 1; transform: none; } }

.icon-btn.is-copy:active { transform: none; }

.avatar > i.bx { font-size: 1.15em; }

#account-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.account__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-crown { flex: none; font-size: 15px; color: #D4A62A; }
:root[data-theme="dark"] .owner-crown { color: #E9C254; }
.identity__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.owner-badge { display: inline-flex; align-items: center; gap: 4px; color: #A47A0E; background: color-mix(in srgb, #E9C254 22%, transparent); }
:root[data-theme="dark"] .owner-badge { color: #E9C254; }
.owner-badge i.bx { font-size: 13px; }

.status__clock { font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: left; }

.persona__year { width: 120px; text-align: center; font-variant-numeric: tabular-nums; transition: border-color .2s ease; }
.persona__year.is-bad { border-color: var(--danger, #D9534F); }
.persona__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; }
.persona__local { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.persona__local > i.bx { font-size: 15px; flex: none; }

.composer__box.is-recording.is-live textarea { display: block; }
.composer__box.is-live textarea { caret-color: transparent; }

.code.is-diagram { background: var(--surface); color: var(--text); border: 1px solid var(--line); font-family: var(--font); }
.code.is-diagram .code__bar { border-bottom-color: var(--line); }
.code.is-diagram .code__lang { color: var(--muted); font-family: var(--font); font-size: 13px; }
.code.is-diagram .code__bar .icon-btn { color: var(--muted); }
.code.is-diagram .code__bar .icon-btn:hover { background: var(--soft); color: var(--text); }
.code.is-diagram pre { background: var(--code-bg); color: var(--code-text); margin: 0; }
.diagram { padding: 18px 16px; overflow-x: auto; display: flex; justify-content: center; min-height: 96px; align-items: center; transition: min-height .25s var(--ease-out); }
.diagram__svg { display: flex; justify-content: center; min-width: 0; width: 100%; }
.diagram__svg svg { height: auto; max-width: 100%; }
.diagram__status { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; }
.diagram__note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.diagram__note > i.bx { font-size: 16px; flex: none; }
.diagram__status .bx-loader-alt { animation: spin 1s linear infinite; font-size: 16px; }

.math { font-family: var(--font); }
.math.is-pending { font-family: var(--mono); font-size: .92em; color: var(--muted); white-space: pre-wrap; }
.math.is-failed { font-family: var(--mono); font-size: .92em; }
.math--display { display: block; margin: 14px 0; overflow-x: auto; overflow-y: hidden; text-align: center; }
.math--display .katex-display { margin: 0; }
.math .katex { font-family: var(--font); font-size: 1.08em; line-height: 1.3; }
.math .katex .mathnormal, .math .katex .mathit, .math .katex .boldsymbol { font-family: var(--font); font-style: italic; }
.math .katex .mathrm, .math .katex .textrm, .math .katex .mord:not(.mathnormal):not(.mathbb):not(.mathcal):not(.mathfrak):not(.mathscr):not(.mathsf):not(.mathtt), .math .katex .mop:not(.op-symbol), .math .katex .mbin, .math .katex .mrel, .math .katex .mpunct, .math .katex .mopen, .math .katex .mclose { font-family: var(--font); }
.math .katex .mathbf, .math .katex .textbf { font-family: var(--font); font-weight: 700; }

.code.is-text { background: var(--surface); color: var(--text); border: 1px solid var(--line); font-family: var(--font); }
.code.is-text .code__bar { border-bottom-color: var(--line); }
.code.is-text .code__lang { color: var(--muted); font-family: var(--font); font-size: 13px; }
.code.is-text .code__bar .icon-btn { color: var(--muted); }
.code.is-text .code__bar .icon-btn:hover { background: var(--soft); color: var(--text); }
.code.is-text pre.text-block { margin: 0; padding: 16px 18px; background: transparent; color: var(--text); font: inherit; font-size: var(--chat-size, 16px); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.code.is-text pre.text-block code { font: inherit; background: none; padding: 0; color: inherit; white-space: inherit; }
.code__editor { display: block; width: 100%; min-height: 120px; margin: 0; padding: 14px 16px; border: 0; outline: none; resize: vertical; background: var(--code-bg); color: var(--code-text); font: 14px/1.55 var(--mono); tab-size: 2; }
.code__editor.is-text { background: var(--surface); color: var(--text); font: inherit; font-size: var(--chat-size, 16px); line-height: 1.6; padding: 16px 18px; }
.code.is-editing { box-shadow: none; outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -1px; }
.code__error { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--code-line); color: #F2B8AD; font: 13.5px/1.45 var(--font); }
.code__error > i.bx { font-size: 17px; flex: none; }
.code__error > span { flex: 1; min-width: 200px; }
.code__error .btn { flex: none; }
.code__error .btn { color: var(--code-text); background: transparent; border-color: var(--code-line); }
.code__error .btn:hover { background: var(--code-line); }

.status--break > i.bx { color: var(--accent); }
.status__action { margin-left: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 500 12.5px/1.3 var(--font); cursor: pointer; transition: background .15s, opacity .2s, border-color .15s; }
.status__action:hover:not(:disabled) { background: var(--soft); border-color: var(--line-strong); }
.status__action:disabled { opacity: .45; cursor: default; }

.code__stdin { display: inline-block; min-width: 12ch; width: min(100%, 320px); margin: 0; padding: 1px 6px; border: 0; border-bottom: 1px solid var(--code-muted); border-radius: 0; outline: none; background: transparent; color: var(--code-text); font: inherit; caret-color: var(--accent); }
.code__stdin:focus { border-bottom-color: var(--accent); }
.code__output pre .is-input { color: color-mix(in srgb, var(--accent) 50%, #fff); }

.msg__auto { color: var(--muted); font-size: 13px; white-space: nowrap; }
.msg__auto-clock { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

.msg__background { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: var(--muted); font-size: 13.5px; }

.stage__word { display: inline-block; transition: opacity .22s ease, transform .22s var(--ease-out); }
.stage__word.is-out { opacity: 0; transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .stage__word { transition: none; } }
.chart { position: relative; padding: 16px 16px 14px; }
.chart .diagram__svg svg { display: block; overflow: visible; }
.chart__mark { transition: opacity .15s ease; }
.chart svg:has(.chart__mark.is-hot) .chart__mark:not(.is-hot) { opacity: .55; }
.chart__guide { opacity: 0; transition: opacity .12s ease; pointer-events: none; }
.chart__guide.is-on { opacity: 1; }
.chart__tip {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; max-width: 240px;
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--text);
  font-size: 12.5px; line-height: 1.45; white-space: pre-line; font-variant-numeric: tabular-nums;
}
.chart__tip[hidden] { display: none; }

.code__probe { position: fixed; top: 0; left: 0; width: 1024px; height: 768px; border: 0; opacity: 0; pointer-events: none; z-index: -1; contain: strict; }
.code__check { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--code-line); color: var(--code-muted, var(--muted)); font: 13px/1.4 var(--font); }
.code__check > i.bx { font-size: 16px; flex: none; }
.code__check.is-ok > i.bx { color: #7FC89A; }
.code__check .qload { width: 16px; height: 16px; flex: none; }
.msg__check-tag { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; color: var(--muted); font-size: 12.5px; }
.msg__check-tag > i.bx { font-size: 14px; }
.code__check .qload__ring { stroke: var(--code-muted); }

.plugins { display: grid; gap: 10px; }
.plugin {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; padding: 14px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
}
.plugin.is-on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.plugin__icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-m); display: grid; place-items: center; background: var(--soft); }
.plugin__icon i { font-size: 22px; }
.plugin__text { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; }
.plugin__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.plugin__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.plugin__status { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.plugin__actions { flex: 1 0 100%; display: flex; gap: 8px; flex-wrap: wrap; padding-left: 54px; }
.plugin__actions:empty { display: none; }
.plugin__actions a.btn { text-decoration: none; }
.plugin-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plugin-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.plugin-rules i { flex: none; font-size: 18px; color: var(--accent); margin-top: 1px; }
@media (max-width: 640px) {
  .plugin__actions { padding-left: 0; }
}

#repo-label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn.is-busy i.bx { animation: spin 1s linear infinite; }

.patch {
  margin: 4px 0 14px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
  overflow: hidden; font-family: var(--font);
}
.patch__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.patch__icon { flex: none; width: 32px; height: 32px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--soft); }
.patch__icon i { font-size: 18px; }
.patch__titles { display: grid; gap: 1px; min-width: 0; }
.patch__titles strong { font-size: 14.5px; }
.patch__repo { font-size: 13px; color: var(--muted); font-family: var(--mono); overflow-wrap: anywhere; }
.patch__body { display: grid; }
.patch__item { border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.patch__item:last-child { border-bottom: 0; }
.patch__file {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13.5px; cursor: pointer;
  list-style: none; min-width: 0;
}
.patch__file::-webkit-details-marker { display: none; }
.patch__file--flat { cursor: default; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent); }
.patch__file--flat:last-child { border-bottom: 0; }
.patch__file i { flex: none; font-size: 17px; color: var(--muted); }
.patch__path { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.patch__item[open] > .patch__file { background: var(--soft); }
.patch__stats { display: inline-flex; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.patch__add { color: var(--accent); }
.patch__del { color: var(--danger); }
.patch__new { color: var(--accent); font-family: var(--font); font-weight: 600; }
.patch__muted { color: var(--faint); font-size: 12.5px; }
.patch__err { color: var(--danger); font-size: 13px; font-weight: 600; }
.patch__problem, .patch__warn {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 14px; font-size: 13.5px;
}
.patch__problem { color: var(--danger); background: var(--danger-soft); }
.patch__warn { color: var(--text); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.patch__problem i, .patch__warn i { flex: none; font-size: 17px; margin-top: 1px; }
.patch__foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px;
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 40%, transparent);
}
.patch__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.patch__hint .qload { width: 16px; height: 16px; }
.patch__done { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; margin-right: auto; }
.patch__done i { font-size: 18px; color: var(--accent); }
.diff {
  margin: 0; padding: 8px 0; max-height: 420px; overflow: auto; background: var(--code-bg); color: var(--code-text);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
}
.diff__line { display: block; padding: 0 14px; white-space: pre; min-width: max-content; }
.diff__line--add { background: color-mix(in srgb, #3FB950 18%, transparent); color: #B7F0C1; }
.diff__line--del { background: color-mix(in srgb, #F85149 18%, transparent); color: #FFC1BC; }
.diff__line--hunk { color: var(--code-muted); padding-top: 4px; }

.repo-new {
  margin-top: 10px; max-width: 560px; padding: 14px; display: grid; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
}
.repo-new__head { display: flex; align-items: flex-start; gap: 12px; }
.repo-new__head .icon-btn { width: 30px; height: 30px; margin: -4px -4px 0 auto; }
.repo-new__titles { display: grid; gap: 2px; }
.repo-new__titles span { font-size: 13.5px; color: var(--muted); }
.repo-new__row { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.repo-new__row .text-input { min-width: 0; width: 100%; font-weight: 400; }
.repo-new__row--inline { display: flex; align-items: center; justify-content: space-between; }
.repo-new__files { display: grid; gap: 6px; }
.repo-new__label { font-size: 13.5px; font-weight: 600; }
.repo-new__file { display: flex; align-items: center; gap: 8px; }
.repo-new__file i { flex: none; font-size: 17px; color: var(--muted); }
.repo-new__file .text-input { flex: 1; min-width: 0; height: 34px; }
.repo-new__size { flex: none; font-size: 12.5px; color: var(--faint); font-family: var(--mono); }
.text-input--mono { font-family: var(--mono); font-size: 13px; }
.repo-new__error { margin: 0; font-size: 13.5px; color: var(--danger); }
.repo-new__foot { display: flex; justify-content: flex-end; }
.msg--assistant .msg__body .patch a.btn { color: var(--text); border: 1px solid var(--line); }
.msg--assistant .msg__body .patch a.btn--primary { color: var(--bg); border-color: var(--text); }
.msg--assistant .msg__body .patch a.btn:hover { border-color: var(--line-strong); }
.msg--assistant .msg__body .patch a.btn--primary:hover { border-color: transparent; }

.repo-drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.repo-drawer__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--text) 28%, transparent); animation: drawer-fade-in .2s ease both; }
.repo-drawer__panel {
  position: relative; width: min(420px, 100vw); height: 100%; display: flex; flex-direction: column; gap: 14px;
  padding: 20px; background: var(--surface); border-left: 1px solid var(--line);
  animation: drawer-in .26s var(--ease-out) both;
}
.repo-drawer.is-closing .repo-drawer__panel { animation: drawer-out .2s ease both; }
.repo-drawer.is-closing .repo-drawer__backdrop { animation: drawer-fade-out .2s ease both; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes drawer-fade-in { from { opacity: 0; } }
@keyframes drawer-fade-out { to { opacity: 0; } }
.repo-drawer__head { display: flex; align-items: flex-start; gap: 12px; }
.repo-drawer__titles { flex: 1; min-width: 0; }
.repo-drawer__titles h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.repo-drawer__titles p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.repo-drawer__head .icon-btn { margin: -6px -6px 0 0; }
.repo-drawer__current {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
}
.repo-drawer__current[hidden] { display: none; }
.repo-drawer__now { flex: 1; min-width: 0; display: grid; gap: 2px; }
.repo-drawer__now strong { font-size: 14.5px; overflow-wrap: anywhere; }
.repo-drawer__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.repo-drawer__branch { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.repo-drawer__branch i { font-size: 15px; }
.repo-drawer__tools { display: flex; align-items: center; gap: 8px; }
.repo-drawer__field { position: relative; flex: 1; min-width: 0; }
.repo-drawer__field > i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--faint); pointer-events: none; }
.repo-drawer__search { width: 100%; min-width: 0; padding-left: 36px; }
.repo-drawer__count { font-size: 12.5px; color: var(--faint); margin: -6px 0 -6px 2px; min-height: 16px; }
.repo-drawer__list { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 4px; margin: 0 -8px; padding: 0 8px; }
.repo-drawer__empty { display: flex; align-items: center; gap: 8px; padding: 14px 6px; font-size: 14px; color: var(--muted); }
.repo-drawer__empty .qload { width: 16px; height: 16px; }
.repo-drawer__foot { display: flex; padding-top: 12px; border-top: 1px solid var(--line); }
.repo-drawer__foot a.btn { text-decoration: none; }
.repo-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px;
  border: 1px solid transparent; border-radius: var(--r-m); background: none; color: var(--text); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.repo-item:hover, .repo-item:focus-visible { background: var(--soft); outline: none; }
.repo-item.is-on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.repo-item > i { flex: none; font-size: 20px; color: var(--accent); }
.repo-item__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.repo-item__name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.repo-item__name strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-item__badge { flex: none; display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.repo-item__badge i { font-size: 12px; }
.repo-item__meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.repo-item__meta i { font-size: 14px; }
@media (max-width: 640px) {
  .repo-drawer__panel { padding: 16px; }
}

.st__new { margin-left: auto; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.account__btn.has-new { position: relative; }
.account__btn.has-new::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.blocked__reason { width: 100%; display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2, color-mix(in srgb, var(--text) 5%, transparent)); text-align: left; }
.blocked__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.blocked__reason p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.blocked__reason a { font-size: 13.5px; color: var(--text); }

.msg__error-note { color: var(--muted); font-size: 13px; }
.msg__note--stopped { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.msg__note-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.msg__error--info { color: var(--text); }

.menu__sep { height: 1px; margin: 4px 8px; background: var(--line); }
.menu .menu__more { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--text); }
.menu .menu__more i { grid-row: auto; grid-column: auto; font-size: 18px; color: var(--muted); }
.menu .menu__more i:last-child { margin-left: auto; }
.model-drawer__left { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--muted); }
.model-drawer__left i { font-size: 17px; }
.model-drawer__list { display: grid; gap: 10px; overflow-y: auto; }
.model-card { display: grid; gap: 6px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s ease, background .15s ease; }
.model-card:hover { background: var(--soft); }
.model-card.is-on { border-color: var(--accent); }
.model-card:disabled { opacity: .5; cursor: not-allowed; }
.model-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15.5px; }
.model-card__top i { font-size: 20px; color: var(--accent); }
.model-card__desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.model-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--faint); }
.model-card__meta i { font-size: 15px; }
.model-drawer__back { justify-self: start; }
.lineup__heading { margin: 28px 0 4px; font-size: 17px; }
.lineup__sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.limit-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; padding: 14px 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); max-width: 520px; }
.limit-card__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.limit-card__icon i { font-size: 19px; }
.limit-card__body { display: grid; gap: 4px; min-width: 0; }
.limit-card__body strong { font-size: 15px; }
.limit-card__body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.limit-card__actions:empty { display: none; }
.limit-card__actions { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

.svg-preview { display: grid; place-items: center; padding: 16px; background: #fff repeating-conic-gradient(#eef0f2 0 25%, #fff 0 50%) 0 0 / 16px 16px; border-radius: 0 0 12px 12px; }
.svg-preview img { max-width: 100%; max-height: 520px; height: auto; }
.code__dl { position: relative; display: inline-flex; }
.code__dl-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 20; display: grid; min-width: 96px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.code__dl-menu[hidden] { display: none; }
.code__dl-menu button { padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.code__dl-menu button:hover { background: var(--soft); }

.devices { display: grid; gap: 8px; margin-top: 6px; }
.devices__title { margin: 8px 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.devices__hint { margin: 0; font-size: 13px; color: var(--muted); }
.device { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.device.is-current { border-color: var(--accent); }
.device__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--soft); }
.device__icon i { font-size: 18px; }
.device__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.device__text strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.device__text > span { font-size: 12.5px; color: var(--muted); }
.device__badge { font-size: 11px; }
.import__steps { margin: 0 0 4px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.import__steps li > span { margin-right: 10px; }
