:root {
  color-scheme: dark;
  --page: #080808;
  --sidebar: #0b0b0b;
  --surface: #111111;
  --surface-raised: #161616;
  --surface-hover: #1c1c1c;
  --line: #232323;
  --line-strong: #393939;
  --text: #f3f5f8;
  --text-soft: #b0b6c2;
  --muted: #656d7b;
  --accent: #39bdf8;
  --sidebar-width: 250px;
  --ease: 160ms ease;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; min-height: 0; margin: 0; }
body { overflow: hidden; background: var(--page); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, textarea, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.chat-app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); width: 100%; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: var(--page); transition: grid-template-columns var(--ease); }
.chat-app.sidebar-collapsed { --sidebar-width: 72px; }
.chat-sidebar { position: relative; z-index: 20; display: flex; flex-direction: column; min-width: 0; padding: 14px 10px 12px; border-right: 1px solid #1f1f1f; background: linear-gradient(180deg, #0e0e0e, var(--sidebar)); overflow: hidden; }
.sidebar-topline { display: flex; align-items: center; min-height: 38px; padding: 0 3px; }
.chat-brand { display: flex; align-items: center; min-width: 0; gap: 10px; }
.arc-mark, .welcome-mark { display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(63,161,255,.28); background: #0d0d0d; box-shadow: 0 0 20px rgba(31,126,255,.12); }
.arc-mark { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; }
.arc-mark img, .welcome-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chat-brand-copy strong, .chat-brand-copy small { display: block; white-space: nowrap; }
.chat-brand-copy strong { font-size: 13px; font-weight: 650; }
.chat-brand-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #78808d; cursor: pointer; }
.icon-button:hover { background: #171717; color: #d8dce3; }
.sidebar-collapse { margin-left: auto; }
.sidebar-close, .mobile-sidebar-toggle { display: none; }
.new-chat-button { display: flex; align-items: center; width: 100%; height: 38px; margin: 17px 0 18px; padding: 0 10px; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #121212; color: #c6cbd3; font-size: 12px; cursor: pointer; }
.new-chat-button:hover { border-color: #315273; background: #191919; }
.new-chat-button kbd { margin-left: auto; color: #555d6a; font: 9px Inter, sans-serif; }
.conversation-history { flex: 1; min-height: 0; overflow-y: auto; }
.history-empty { margin: 10px 8px; color: #515b69; font-size: 10px; line-height: 1.5; }
.history-load-error { display: flex; align-items: center; justify-content: space-between; margin: 8px; gap: 8px; color: #d49aa3; font-size: 10px; line-height: 1.35; }
.history-load-error button { flex: none; padding: 4px 8px; border: 1px solid #45515f; border-radius: 6px; background: #202020; color: #dfe7ee; font: inherit; cursor: pointer; }
.history-load-error button:hover, .history-load-error button:focus-visible { outline: 0; border-color: #718092; background: #2a2a2a; }
.history-group + .history-group { margin-top: 20px; }
.history-group > p { margin: 0 8px 7px; color: #4e5561; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.history-row { position: relative; }
.history-row.menu-open { z-index: 5; }
.history-item { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 7px 38px 7px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.history-item:hover { background: #121212; }
.history-item.active { background: rgba(39,116,184,.13); box-shadow: inset 2px 0 #2e9de0; }
.history-item.loading { opacity: .58; cursor: progress; }
.history-pin { display: grid; flex: 0 0 auto; place-items: center; width: 14px; margin-right: 5px; color: #69bce8; }
.history-pin svg { width: 11px; height: 11px; fill: currentColor; }
.history-copy { flex: 1; min-width: 0; }
.history-copy strong, .history-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-copy strong { color: #b9bec8; font-size: 11px; font-weight: 500; }
.history-copy small { margin-top: 4px; color: #535b68; font-size: 9px; }
.history-more { position: absolute; top: 7px; right: 5px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #69727f; font-size: 16px; font-weight: 700; letter-spacing: 1px; opacity: 0; cursor: pointer; }
.history-row:hover .history-more, .history-more:focus-visible, .history-row.menu-open .history-more { opacity: 1; }
.history-more:hover, .history-more[aria-expanded="true"] { background: #212121; color: #d2d8df; }
.history-menu { position: absolute; top: 39px; right: 4px; z-index: 20; width: 142px; padding: 5px; border: 1px solid #333333; border-radius: 10px; background: #161616; box-shadow: 0 16px 42px rgba(0,0,0,.58); }
.history-menu button { display: flex; align-items: center; width: 100%; height: 34px; padding: 0 9px; gap: 9px; border: 0; border-radius: 7px; background: transparent; color: #bdc5ce; font-size: 10px; text-align: left; cursor: pointer; }
.history-menu button:hover, .history-menu button:focus-visible { outline: 0; background: #242424; color: #eef3f7; }
.history-menu button[data-history-action="delete"] { color: #e58c99; }
.history-menu-icon { display: grid; place-items: center; width: 13px; color: currentColor; font-size: 13px; }
.history-menu-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.sidebar-footer { padding: 14px 8px 2px; border-top: 1px solid #181818; font-size: 10px; }
.sidebar-footer div { display: flex; justify-content: space-between; color: #616976; }
.sidebar-footer strong { color: #9da4af; font-weight: 500; }
.sidebar-footer a { display: block; margin-top: 10px; color: #68717e; }
.sidebar-footer a:hover { color: #b8bec8; }
.sidebar-footer a span { float: right; }
.sidebar-collapsed .chat-brand-copy, .sidebar-collapsed .new-chat-button span:nth-child(2), .sidebar-collapsed .new-chat-button kbd, .sidebar-collapsed .conversation-history, .sidebar-collapsed .sidebar-footer { display: none; }
.sidebar-collapsed .new-chat-button { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-collapse { position: absolute; right: 6px; bottom: 14px; transform: rotate(180deg); }

.chat-main { container: chat / inline-size; position: relative; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: radial-gradient(circle at 52% 92%, rgba(25,111,181,.09), transparent 36%), #0a0a0a; }
.chat-topbar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 16px; padding: 0 20px; border-bottom: 1px solid #1b1b1b; background: rgba(7,10,15,.94); }
.topbar-left, .topbar-actions, .conversation-heading, .studio-status, .diagnostics-button { display: flex; align-items: center; }
.topbar-left { flex: 1; min-width: 0; }
.conversation-heading { min-width: 0; gap: 9px; }
.conversation-heading strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.conversation-heading > span { flex: none; white-space: nowrap; }
.conversation-heading span { display: flex; align-items: center; gap: 5px; color: #535b67; font-size: 9px; }
.conversation-heading i, .status-dot { width: 5px; height: 5px; border-radius: 50%; background: #349fdc; box-shadow: 0 0 8px rgba(52,159,220,.42); }
.topbar-actions { flex: none; min-width: 0; gap: 9px; }
.topbar-actions button { flex-shrink: 0; white-space: nowrap; }
.diagnostics-button span:first-child { flex: none; white-space: pre; }
.diagnostics-button { height: 30px; padding: 0 9px; gap: 6px; border: 1px solid #282828; border-radius: 8px; background: #111111; color: #7e8b9a; font: 600 9px Inter, sans-serif; cursor: pointer; }
.diagnostics-button span:first-child { color: #4dbdf3; font-family: "SFMono-Regular", Consolas, monospace; }
.diagnostics-button:hover:not(:disabled) { border-color: #315273; background: #191919; color: #c4d2df; }
.diagnostics-button:disabled { opacity: .38; cursor: default; }
.studio-status { height: 30px; padding: 0 10px; gap: 7px; border: 0; border-radius: 8px; background: transparent; color: #747c88; font-size: 10px; cursor: pointer; }
.studio-status:hover { background: #131313; color: #b9bec7; }
.studio-status.connected .status-dot { background: #4aa8dc; box-shadow: none; }
.studio-project-picker { position: relative; min-width: 0; }
.studio-status [data-connection-label] { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-status .status-dot { flex-shrink: 0; }
.studio-project-menu { position: absolute; top: calc(100% + 6px); right: 0; width: max-content; min-width: 150px; max-width: min(260px, calc(100vw - 32px)); max-height: 240px; overflow-y: auto; padding: 4px; border: 1px solid #282828; border-radius: 8px; background: #111111; box-shadow: 0 8px 24px #0006; }
.studio-project-menu[hidden] { display: none; }
.studio-project-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: #a8b2bf; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.studio-project-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-project-option:hover, .studio-project-option:focus-visible { background: #212121; color: #edf0f4; outline: none; }
.studio-project-option[aria-checked="true"] { color: #cfeaf9; }
.studio-project-option[aria-checked="true"]::after { content: "\2713"; color: #4aa8dc; }
.signin-button { display: grid; place-items: center; height: 30px; padding: 0 13px; border: 0; border-radius: 8px; background: #f1f3f6; color: #0c0c0c; font-size: 10px; font-weight: 650; cursor: pointer; }
.signin-button.signed-in { border: 1px solid #333333; background: #191919; color: #b9d8e9; }

.conversation-stage { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: #343434 transparent; }
.welcome-state { width: min(580px, calc(100% - 40px)); margin: clamp(80px, 17vh, 170px) auto 40px; text-align: center; }
.welcome-mark { width: 52px; height: 52px; margin: 0 auto 22px; border-radius: 14px; }
.welcome-state h1 { margin: 0; color: #edf0f4; font-size: clamp(25px, 4vw, 36px); font-weight: 550; letter-spacing: -.035em; }
.welcome-state > p { margin: 11px 0 27px; color: #666e7a; font-size: 12px; }
.starter-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.starter-prompts button { padding: 8px 10px; border: 0; border-bottom: 1px solid #272727; background: transparent; color: #777f8b; font-size: 10px; cursor: pointer; }
.starter-prompts button:hover { border-color: #348fc8; color: #cfeaf9; }
.starter-prompts span { margin-left: 6px; color: #4c4c4c; }
.message-thread { width: min(790px, calc(100% - 40px)); min-height: 100%; margin: 30px auto; padding-bottom: 24px; }
.message { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; padding: 15px 0; }
.message + .message { border-top: 1px solid #121212; }
.message-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #171717; color: #aeb4be; font-size: 9px; font-weight: 650; }
.message.user .message-avatar { background: #1e1e1e; }
.message-content { min-width: 0; overflow-wrap: anywhere; }
.message-content > strong { color: #9fa6b1; font-size: 10px; font-weight: 600; }
.message-content > p { margin: 7px 0 0; color: #d4d8de; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.message-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.message-attachments img { display: block; width: min(180px,100%); height: 126px; object-fit: cover; border: 1px solid #2c2c2c; border-radius: 13px; background: #161616; }
.typing-dots { display: flex; gap: 4px; margin-top: 10px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: #707886; animation: pulse 1s infinite alternate; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }.typing-dots i:nth-child(3) { animation-delay: .3s; }
.connection-callout { margin-top: 12px; padding-left: 10px; border-left: 2px solid #3a3a3a; color: #757d89; font-size: 10px; }
.connection-callout strong { color: #a8aeb8; }.connection-callout p { margin: 4px 0 0; line-height: 1.5; }

.agent-run { max-width: 650px; margin-top: 12px; }
.agent-run-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #697585; font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.agent-run-heading i { padding: 3px 7px; border: 1px solid #333333; border-radius: 999px; background: rgba(30,93,137,.1); color: #6f9db9; font-size: 8px; font-style: normal; letter-spacing: .04em; }
.activity-list { display: flex; flex-wrap: wrap; gap: 7px; }
.activity-pill-wrap { position: relative; display: inline-flex; }
button.activity-pill[data-mesh-reopen] { font-family:inherit; cursor:pointer; transition:padding .18s ease,border-color .18s ease,background .18s ease; }
button.activity-pill[data-mesh-reopen]::after { content:'\2197'; display:inline-block; max-width:0; overflow:hidden; opacity:0; transition:max-width .18s ease,opacity .18s ease; color:#9dd9ff; }
button.activity-pill[data-mesh-reopen]:hover:not(:disabled),button.activity-pill[data-mesh-reopen][aria-expanded=true] { padding-right:14px; border-color:#52728b; background:#18232d; }
button.activity-pill[data-mesh-reopen]:hover:not(:disabled)::after,button.activity-pill[data-mesh-reopen][aria-expanded=true]::after { max-width:14px; opacity:1; }
button.activity-pill[data-mesh-reopen]:focus-visible { outline:2px solid #38bdf8; outline-offset:3px; }
button.activity-pill[data-mesh-reopen]:disabled { cursor:default; }
.mesh-reopen-error { position:absolute; top:100%; z-index:5; width:220px; padding:8px; border:1px solid #455465; border-radius:8px; background:#181e26; color:#ffb5be; font-size:10px; }
@media(prefers-reduced-motion:reduce) { button.activity-pill[data-mesh-reopen],button.activity-pill[data-mesh-reopen]::after { transition:none; } }
.activity-pill { display: inline-flex; align-items: center; min-height: 29px; padding: 0 11px 0 9px; gap: 8px; border: 1px solid #2c2c2c; border-radius: 999px; background: linear-gradient(180deg, #161616, #111111); box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 7px 18px rgba(0,0,0,.15); color: #aab4c0; font-size: 10px; white-space: nowrap; }
.activity-pill-wrap.has-thoughts .activity-pill { cursor: default; }
.activity-pill-wrap.has-thoughts .activity-pill::after { color: #60788a; content: "⌄"; font-size: 9px; }
.thought-panel { position: absolute; z-index: 24; top: calc(100% + 8px); left: 0; width: min(380px, calc(100vw - 52px)); padding: 11px 12px 12px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-4px); border: 1px solid #393939; border-radius: 12px; background: rgba(10,15,22,.98); box-shadow: 0 18px 42px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.035); transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.activity-pill-wrap.has-thoughts:hover .thought-panel, .activity-pill-wrap.has-thoughts:focus-within .thought-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.thought-panel > strong { display: block; margin-bottom: 7px; color: #79b9dc; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.thought-panel-output { max-height: 150px; overflow-y: auto; color: #b8c3ce; font-size: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #304b60 transparent; }
.activity-pill i { flex: 0 0 auto; width: 7px; height: 7px; border: 1px solid #617080; border-radius: 50%; }
.activity-pill.active { border-color: #404040; color: #c4d9e6; }
.activity-pill.active i { border-color: #4ab7ed transparent #4ab7ed #4ab7ed; animation: activity-spin .8s linear infinite; }
.activity-pill.complete i { border: 0; background: #4a9ac4; box-shadow: 0 0 0 3px rgba(54,137,180,.1); }
.activity-pill.waiting { border-color: #554a31; color: #d4c493; }
.activity-pill.waiting i { border: 0; background: #c4a555; box-shadow: 0 0 0 3px rgba(196,165,85,.1); }

.agent-output-card { position: relative; max-width: 690px; margin-top: 14px; padding: 15px 17px 16px; overflow: hidden; border: 1px solid #313131; border-radius: 14px; background: linear-gradient(145deg, rgba(17,27,39,.98), rgba(10,15,23,.98)); box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.025); }
.agent-output-card::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: #348fc3; content: ""; }
.agent-output-card.plan { border-color: #393939; background: linear-gradient(145deg, rgba(20,28,39,.98), rgba(12,16,23,.98)); }
.agent-output-card.plan::before { background: #7c91a7; }
.agent-output-card.error { border-color: #4b2d35; background: linear-gradient(145deg, rgba(35,19,24,.94), rgba(18,13,17,.98)); }
.agent-output-card.error::before { background: #c66c7b; }
.agent-output-heading { margin-bottom: 10px; color: #74b9df; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.agent-output-card.plan .agent-output-heading { color: #a3b3c4; }
.agent-output-card.error .agent-output-heading { color: #da8794; }
.agent-output-body { color: #d9dee5; font-size: 12px; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-output-body p { margin: 0; }
.agent-output-body p + p, .agent-output-body p + ul, .agent-output-body p + ol, .agent-output-body ul + p, .agent-output-body ol + p { margin-top: 9px; }
.agent-output-body h3, .agent-output-body h4, .agent-output-body h5 { margin: 13px 0 6px; color: #edf2f6; font-size: 12px; line-height: 1.4; }
.agent-output-body h3:first-child, .agent-output-body h4:first-child, .agent-output-body h5:first-child { margin-top: 0; }
.agent-output-body ul, .agent-output-body ol { margin: 7px 0 0; padding-left: 19px; }
.agent-output-body li + li { margin-top: 4px; }
.agent-output-body code { padding: 1px 4px; border: 1px solid #383838; border-radius: 4px; background: #0d0d0d; color: #a9d7ef; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.agent-output-body pre { margin: 10px 0 0; padding: 11px; overflow-x: auto; border: 1px solid #313131; border-radius: 9px; background: #0c0c0c; white-space: pre; }
.agent-output-body pre code { padding: 0; border: 0; background: transparent; }
.agent-output-card.question { max-width: 650px; padding: 0; border: 1px solid #383838; border-radius: 14px; background: #191919; box-shadow: 0 12px 32px #0002; animation: question-card-enter 240ms ease-out both; }
@keyframes question-card-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .agent-output-card.question { animation: none; } }
.agent-output-card.question::before { display: none; }
.agent-output-card.question .agent-output-body { display: none; }
.studio-question-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 18px 20px 0; }
.studio-question-mark { display: none; }
.studio-question-title { min-width: 0; }
.studio-question-title small { display: none; }
.studio-question-title strong { color: #9caaba; font-size: 11px; font-weight: 500; }
.studio-question-header > i { color: #8392a3; font-size: 10px; font-style: normal; }
.studio-question-timer { color: #91a6b9; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
.studio-question-timer[hidden] { display: none; }
.studio-question-controls { display: grid; gap: 16px; padding: 12px 20px 18px; }
.studio-question-group { display: grid; gap: 8px; }
.studio-question-choices { display: grid; gap: 8px; grid-auto-rows: 1fr; }
.studio-question-custom { display: block; box-sizing: border-box; min-width: 0; height: 100%; cursor: text; }
.studio-question-custom::placeholder { color: #8796a7; }
.studio-question-choices .studio-question-option.studio-question-custom, .studio-question-choices .studio-question-option.studio-question-custom:hover { background: #0c0c0c; box-shadow: none; outline: none; color: #dbe5ef; }
.studio-question-choices .studio-question-option.studio-question-custom:focus-visible { border-color: #7a9aac; }
.agent-output-card.question-submitted .studio-question-header { padding: 16px 20px; }
.question-submitted .studio-question-title strong { color: #8bd5a7; font-size: 12px; }
.studio-question-submitted-icon { display: grid; place-items: center; justify-self: end; width: 24px; height: 24px; border: 1px solid #4a9162; border-radius: 50%; color: #9ae6b5; background: #2e2e2e; font-size: 13px; }
.studio-question-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.studio-question-progress { color: #8796a7; font-size: 11px; font-variant-numeric: tabular-nums; }
.studio-question-back { justify-self: start; min-height: 36px; padding: 0 14px; border: 1px solid #444444; border-radius: 8px; background: transparent; color: #c7d2df; font: inherit; font-size: 11px; cursor: pointer; }
.studio-question-back:hover:not(:disabled) { background: #2a2a2a; }
.studio-question-back:focus-visible { outline: 2px solid #90c2d6; outline-offset: 3px; }
.studio-question-back:disabled { opacity: .35; cursor: default; }
.studio-question-group + .studio-question-group { padding-top: 16px; border-top: 1px solid #ffffff0c; }
.studio-question-prompt { margin: 0 0 6px; color: #e8edf4; font-size: 14px; font-weight: 550; line-height: 1.55; }
.studio-question-prompt:focus { outline: none; }
.studio-question-option { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; align-items: center; width: 100%; min-height: 46px; padding: 11px 13px; gap: 11px; border: 1px solid #393939; border-radius: 9px; background: #212121; color: #c7d2df; font-family: inherit; font-size: 12px; font-weight: 450; line-height: 1.5; text-align: left; cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.studio-question-option-number { display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid #627082; border-radius: 50%; }
.studio-question-option-label { min-width: 0; overflow-wrap: anywhere; }
.studio-question-option-arrow { color: #8cbbcb; font-size: 9px; font-weight: 500; }
.studio-question-option-arrow:empty { display: none; }
.studio-question-option:hover:not(:disabled) { border-color: #607787; background: #2a2a2a; }
.studio-question-option:focus-visible { outline: 2px solid #90c2d6; outline-offset: 3px; }
.studio-question-option.selected { border-color: #77b5cc; background: #313131; color: #edf7fb; }
.studio-question-option.selected .studio-question-option-number { border-color: #91c7db; }
.studio-question-option.selected .studio-question-option-number::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #91c7db; }
.studio-question-option:disabled { cursor: default; }
.studio-question-controls.submitting .studio-question-option:not(.selected) { opacity: .45; }
.studio-question-hint { margin: 0; color: #8796a7; font-size: 10px; line-height: 1.5; }
.studio-question-continue { justify-self: end; min-height: 36px; padding: 0 14px; border: 1px solid #86b7ca; border-radius: 8px; background: #91bfd1; color: #222222; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.studio-question-continue:hover:not(:disabled) { background: #abd1e0; }
.studio-question-continue:focus-visible { outline: 2px solid #b7e4f5; outline-offset: 3px; }
.studio-question-continue:disabled { border-color: #3a3a3a; background: #272727; color: #7c8b9c; cursor: default; }
.studio-question-closed { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 4px 8px; padding-top: 4px; }
.studio-question-closed > span { grid-row: 1 / 3; color: #93c7bd; }
.studio-question-closed strong { color: #b9ccc9; font-size: 11px; font-weight: 500; }
.studio-question-closed small { color: #7f9798; font-size: 10px; }
@media (max-width: 640px) { .studio-question-option { grid-template-columns: 16px minmax(0,1fr); } .studio-question-option-arrow:not(:empty) { grid-column: 2; } }


.composer-dock { position: relative; z-index: 12; padding: 12px 22px 14px; background: linear-gradient(180deg, rgba(7,10,15,0), #0a0a0a 24%); }
.chat-composer { width: min(820px,100%); margin: 0 auto; padding: 14px 14px 10px; border: 1px solid #343434; border-radius: 27px; background: #111111; box-shadow: 0 18px 48px rgba(0,0,0,.55), 0 0 40px rgba(22,112,185,.11), inset 0 1px 0 rgba(255,255,255,.025); transition: border-color var(--ease), box-shadow var(--ease); }
.chat-composer:focus-within { border-color: #355d7f; box-shadow: 0 22px 58px rgba(0,0,0,.65), 0 0 50px rgba(27,132,213,.17), inset 0 1px 0 rgba(255,255,255,.035); }
.chat-composer.drag-active { border-color: #4ba9df; box-shadow: 0 22px 58px rgba(0,0,0,.65), 0 0 0 3px rgba(75,169,223,.13), 0 0 54px rgba(27,132,213,.2); }
.composer-attachments { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 4px 12px; }
.composer-attachments[hidden] { display: none; }
.composer-attachment { position: relative; width: 148px; height: 104px; margin: 0; overflow: hidden; border: 1px solid #373737; border-radius: 14px; background: #171717; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.composer-attachment img { display: block; width: 100%; height: 100%; object-fit: cover; }
.attachment-remove { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 23px; height: 23px; padding: 0 0 2px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(7,10,15,.82); color: #f3f6f9; box-shadow: 0 3px 9px rgba(0,0,0,.45); font-size: 17px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.attachment-remove:hover { border-color: rgba(255,255,255,.34); background: rgba(25,30,38,.94); }
.chat-composer textarea { display: block; width: 100%; min-height: 40px; max-height: 160px; padding: 2px 5px 9px; resize: none; overflow-y: auto; border: 0; outline: 0; background: transparent; color: #edf0f4; font-size: 12px; line-height: 1.55; caret-color: var(--accent); }
.chat-composer textarea::placeholder { color: #525a68; opacity: 1; }
.composer-toolbar, .composer-tools, .composer-actions { display: flex; align-items: center; }
.composer-toolbar { justify-content: space-between; min-height: 32px; }
.composer-tools { gap: 7px; }
.composer-actions { gap: 3px; }
.composer-icon { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #7c8490; font-size: 18px; cursor: pointer; }
.composer-icon:hover { background: #1b1b1b; color: #e1e5ea; }
.mode-button { display: flex; align-items: center; height: 30px; padding: 0 10px 0 7px; gap: 7px; border: 1px solid #2c2c2c; border-radius: 15px; background: #181818; box-shadow: none; color: #c2c7cf; font-size: 10px; font-weight: 550; cursor: pointer; }
.mode-button:hover { background: #1c1c1c; }.mode-icon { display: grid; place-items: center; width: 18px; height: 18px; }
.mode-icon img { display: block; width: 16px; height: 16px; object-fit: contain; filter: invert(78%) sepia(9%) saturate(466%) hue-rotate(174deg) brightness(92%); }
.mode-button.plan-active { border-color: #2c2c2c; background: #181818; box-shadow: none; color: #c2c7cf; }.mode-button.plan-active .mode-icon img { filter: invert(78%) sepia(9%) saturate(466%) hue-rotate(174deg) brightness(92%); }
.model-picker { position: relative; }
.model-picker-trigger { display: flex; align-items: center; max-width: 170px; height: 30px; padding: 0 2px 0 6px; gap: 7px; border: 0; border-radius: 15px; background: transparent; color: #8f97a3; cursor: pointer; }
.model-picker-trigger:hover, .model-picker.open .model-picker-trigger { background: #1b1b1b; color: #d8dce3; }
.model-picker-trigger strong { overflow: hidden; font-size: 10px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.provider-logo { display: grid; flex: 0 0 auto; place-items: center; width: 21px; height: 21px; border-radius: 6px; background: #e8ebef; overflow: hidden; }
.provider-logo img { width: 13px; height: 13px; object-fit: contain; }.provider-logo-claude { background: #d9d3c7; }.provider-logo-gemini { background: #dfe5ee; }
.provider-logo-custom { background: linear-gradient(145deg, #2e2e2e, #1f1f1f); color: #87dcff; border: 1px solid #2b607d; overflow: visible; }
.provider-logo-custom::before { content: "+"; font-size: 15px; font-weight: 500; line-height: 1; }
.model-menu { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(340px, calc(100vw - 30px)); max-height: min(520px, 66vh); padding: 8px; overflow-y: auto; border: 1px solid #2e2e2e; border-radius: 16px; background: #121212; box-shadow: 0 24px 65px rgba(0,0,0,.68); }
.model-menu-heading { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 11px; border-bottom: 1px solid #222222; }
.model-menu-heading strong { font-size: 11px; }.model-menu-heading span { color: #59616d; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.model-provider-group { padding: 8px 0 3px; }.model-provider-group + .model-provider-group { border-top: 1px solid #1d1d1d; }
.provider-heading { display: flex; align-items: center; height: 27px; padding: 0 7px; gap: 7px; color: #777f8c; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.provider-heading .provider-logo { width: 18px; height: 18px; border-radius: 5px; }.provider-heading img { width: 11px; height: 11px; }
.model-option { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.model-option:hover { background: #1c1c1c; }.model-option.selected { background: #202020; }
.model-option strong, .model-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.model-option strong { color: #c8cdd5; font-size: 10px; font-weight: 550; }.model-option small { margin-top: 3px; color: #5f6774; font-size: 9px; }
.model-option i { color: transparent; font-size: 10px; font-style: normal; }.model-option.selected i { color: var(--accent); }
.provider-attribution { display: block; padding: 9px 6px 3px; color: #4a4a4a; font-size: 8px; text-align: center; }
.custom-model-option { border: 1px solid rgba(68, 163, 207, .12); background: linear-gradient(90deg, rgba(35, 108, 143, .08), transparent); }
.context-meter { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; outline: none; cursor: help; }
.context-ring { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: conic-gradient(#4dbdf3 0 18%, #323232 18% 100%); box-shadow: 0 0 10px rgba(42,157,218,.12); }
.context-ring i { width: 15px; height: 15px; border-radius: 50%; background: #101010; }
.context-meter:hover, .context-meter:focus-visible { background: #1b1b1b; }
.context-tooltip { position: absolute; right: -38px; bottom: calc(100% + 12px); width: 210px; padding: 11px; border: 1px solid #2e2e2e; border-radius: 11px; background: #141414; box-shadow: 0 16px 40px rgba(0,0,0,.55); opacity: 0; pointer-events: none; transform: translateY(5px); transition: opacity var(--ease), transform var(--ease); }
.context-meter:hover .context-tooltip, .context-meter:focus-visible .context-tooltip { opacity: 1; transform: none; }
.context-tooltip strong, .context-tooltip span, .context-tooltip small { display: block; }.context-tooltip strong { font-size: 10px; }.context-tooltip span { margin-top: 4px; color: #777f8b; font-size: 9px; }.context-tooltip > div { height: 3px; margin: 9px 0 7px; border-radius: 3px; background: #2d2d2d; overflow: hidden; }.context-tooltip > div i { display: block; width: 18%; height: 100%; background: #42afe8; }.context-tooltip small { color: #59616d; font-size: 8px; }
.send-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: #0f0f0f; font-size: 16px; font-weight: 700; cursor: pointer; transition: transform var(--ease), background var(--ease), color var(--ease); }.send-button:hover:not(:disabled) { transform: scale(1.04); }.send-button:disabled { background: #242424; color: #555d68; cursor: default; }.send-button .send-icon, .send-button .stop-icon { grid-area: 1 / 1; }.send-button .stop-icon { display: none; font-size: 11px; }.send-button.stopping { background: #edf0f4; color: #151515; }.send-button.stopping .send-icon { display: none; }.send-button.stopping .stop-icon { display: block; }.send-button.stopping:hover { background: #ffddd9; color: #6d1919; }
.composer-disclaimer { margin: 8px auto 0; color: #454545; font-size: 8px; text-align: center; }

/* Arc Web R6 MotionScript Animator */
.animator-topbar-button { display: flex; align-items: center; height: 30px; padding: 0 10px; gap: 7px; border: 1px solid #343434; border-radius: 8px; background: linear-gradient(180deg,#191919,#111111); color: #91cbe8; font-size: 9px; font-weight: 650; cursor: pointer; }
.animator-topbar-button:hover { border-color: #3f7192; background: #1f1f1f; color: #e4f5fd; }
.animator-topbar-button span:first-child { color: #4cc1f4; font-size: 13px; }
.animator-topbar-button[aria-expanded="true"] { border-color: #3989b2; background: #2b2b2b; color: #d1efff; }
.chat-app.animator-open { grid-template-columns: var(--sidebar-width) minmax(400px,1fr) clamp(360px,var(--animator-width,520px),calc(100vw - var(--sidebar-width) - 400px)); }
.animator-workspace { container: animator / inline-size; position: relative; display: none; min-width: 0; min-height: 0; overflow: hidden; border-left: 1px solid #2b2b2b; background: radial-gradient(circle at 50% 18%,rgba(34,132,192,.09),transparent 31%),#0c0c0c; box-shadow: -18px 0 45px rgba(0,0,0,.28); }
.chat-app.animator-open .animator-workspace { display: grid; grid-template-rows: 58px minmax(0,1fr); }
.animator-resizer { position: absolute; z-index: 30; top: 0; bottom: 0; left: -5px; width: 10px; padding: 0; border: 0; background: transparent; cursor: col-resize; }
.animator-resizer:hover::after, .animator-resizer.dragging::after { position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: #39bdf8; content: ""; }
.animator-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 18px; border-bottom: 1px solid #242424; background: rgba(8,12,18,.94); }
.animator-header > div:first-of-type span, .animator-header > div:first-of-type strong { display: block; }
.animator-header > div:first-of-type span { margin-bottom: 3px; color: #5199bd; font-size: 7px; font-weight: 750; letter-spacing: .13em; }
.animator-header > div:first-of-type strong { color: #eef6fa; font-size: 13px; font-weight: 650; }
.animator-header-actions { display: flex; align-items: center; gap: 7px; }
.animator-header-actions button { height: 29px; padding: 0 9px; border: 1px solid #383838; border-radius: 8px; background: #141414; color: #8fa3b3; font-size: 8px; cursor: pointer; }
.animator-header-actions button:hover { border-color: #47708c; color: #edf7fc; }
.animator-header-actions [data-animator-close] { width: 29px; padding: 0 0 2px; font-size: 18px; }
.animator-body { min-height: 0; padding: 14px; overflow-y: auto; scrollbar-color: #383838 transparent; }
.animator-body > section, .animator-source-card { border: 1px solid #2a2a2a; border-radius: 14px; background: linear-gradient(150deg,rgba(16,23,33,.96),rgba(9,14,21,.98)); box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.animator-body > * + * { margin-top: 11px; }
.animator-viewer-card { overflow: hidden; }
.animator-viewer { position: relative; height: clamp(290px,43vh,450px); min-height: 260px; overflow: hidden; background: radial-gradient(circle at 50% 38%,#282828 0,#141414 35%,#0b0b0b 77%); }
.animator-viewer::after { position: absolute; right: -20%; bottom: -55%; left: -20%; height: 68%; border: 1px solid rgba(93,171,207,.16); border-radius: 50%; background: radial-gradient(ellipse,rgba(52,137,177,.12),transparent 62%); transform: perspective(300px) rotateX(62deg); pointer-events: none; content: ""; }
.animator-viewer canvas { position: relative; z-index: 2; display: block; width: 100%; height: 100%; outline: none; }
.animator-viewer-state { position: absolute; z-index: 4; top: 50%; left: 50%; width: min(260px,75%); color: #718390; font-size: 10px; line-height: 1.5; text-align: center; transform: translate(-50%,-50%); pointer-events: none; }
.animator-viewer-state.error { color: #d88a95; }
.animator-generation { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: rgba(7,12,19,.87); backdrop-filter: blur(12px); }
.animator-generation[hidden] { display: none; }
.animator-generation strong { margin-top: 4px; color: #e3ebf3; font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.animator-generation-caption { color: #7b9caf; font-size: 10px; }
.motion-spark { position: relative; width: 176px; height: 124px; margin-bottom: 4px; }
.motion-spark::before { position: absolute; inset: 18px 34px; border-radius: 50%; background: radial-gradient(ellipse at 35% 35%,#569fff88,transparent 65%),radial-gradient(ellipse at 70% 65%,#55e2df55,transparent 65%); filter: blur(18px); content: ""; animation: spark-halo 5s ease-in-out infinite alternate; }
.motion-spark-core { position: absolute; top: calc(50% - 13px); left: calc(50% - 13px); width: 26px; height: 26px; border: 1px solid #b6e6ff66; border-radius: 50%; background: radial-gradient(circle at 32% 27%,#e4f6ff,#7dc7ef 25%,#316ca5 60%,#252525 90%); box-shadow: 0 0 24px #55b8f04d,inset -3px -4px 8px #13131388; animation: spark-core 3.6s ease-in-out infinite; }
.motion-spark i { position: absolute; left: calc(50% - 2px); top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #bce9ff; box-shadow: 0 0 9px #75cfff99; transform: translate(var(--x),var(--y)); animation: spark-gather 4.8s cubic-bezier(.45,0,.3,1) var(--delay) infinite; }
.motion-spark i:nth-child(3n) { width: 3px; height: 3px; background: #83cdd5; }
@keyframes spark-gather { 0%,100% { transform: translate(var(--x),var(--y)) scale(.65); opacity: .25; } 45% { transform: translate(calc(var(--x) * .42),calc(var(--y) * .42)) scale(1.15); opacity: .95; } 70% { transform: translate(calc(var(--x) * .7),calc(var(--y) * .85)) scale(.8); opacity: .5; } }
@keyframes spark-core { 0%,100% { transform: translateY(3px) scale(.94); } 50% { transform: translateY(-4px) scale(1.06); } }
@keyframes spark-halo { from { transform: rotate(-20deg) scale(.85); opacity: .5; } to { transform: rotate(25deg) scale(1.2); opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .animator-generation *, .motion-spark::before { animation: none !important; } }
body.reduce-motion .animator-generation *, body.reduce-motion .motion-spark::before { animation: none !important; }
.animator-view-badges { position: absolute; z-index: 5; top: 11px; right: 11px; display: flex; padding: 3px; gap: 2px; border: 1px solid rgba(66,91,109,.7); border-radius: 9px; background: rgba(7,11,16,.72); backdrop-filter: blur(9px); }
.animator-view-badges button { height: 24px; padding: 0 7px; border: 0; border-radius: 6px; background: transparent; color: #758b9a; font-size: 7px; cursor: pointer; }
.animator-view-badges button:hover { background: #272727; color: #dceef7; }
.animator-transport { display: grid; grid-template-columns: 28px 34px minmax(70px,1fr) auto auto auto; align-items: center; padding: 10px 11px; gap: 7px; border-top: 1px solid #292929; }
.animator-transport button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #383838; border-radius: 8px; background: #191919; color: #9ab0bf; font-size: 11px; cursor: pointer; }
.animator-transport .animator-play { width: 34px; border-color: #3aa8d7; background: #35a2d2; color: #111111; }
.animator-transport [data-animator-restart] { font-size: 17px; }
.animator-transport input[type="range"] { width: 100%; accent-color: #3ab8ee; }
.animator-transport output { color: #778996; font: 8px ui-monospace,SFMono-Regular,Consolas,monospace; white-space: nowrap; }
.animator-transport select { height: 27px; border: 1px solid #353535; border-radius: 7px; outline: 0; background: #141414; color: #91a5b3; font-size: 8px; }
.animator-loop { display: flex; align-items: center; gap: 4px; color: #7f929f; font-size: 8px; }
.animator-loop input { accent-color: #3ab8ee; }
.animator-summary-card, .animator-studio-card { padding: 15px; }
.animator-title-row, .animator-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.animator-title-row small, .animator-section-heading small { display: block; margin-bottom: 5px; color: #4e9ec6; font-size: 7px; font-weight: 750; letter-spacing: .12em; }
.animator-title-row h2, .animator-section-heading h3 { margin: 0; color: #ecf3f7; font-size: 14px; font-weight: 600; }
.animator-title-row > span { padding: 4px 7px; border: 1px solid #3f3f3f; border-radius: 999px; background: #1a1a1a; color: #79aac1; font-size: 7px; }
.animator-metadata { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 14px 0 0; border: 1px solid #292929; border-radius: 10px; overflow: hidden; }
.animator-metadata div { min-width: 0; padding: 9px; background: rgba(8,13,19,.42); }
.animator-metadata div + div { border-left: 1px solid #292929; }
.animator-metadata dt { color: #53636f; font-size: 7px; text-transform: uppercase; }
.animator-metadata dd { margin: 4px 0 0; overflow: hidden; color: #afbdc7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.animator-status { margin: 12px 1px 0; color: #758692; font-size: 9px; line-height: 1.55; }
.animator-status.busy { color: #8bcce9; }
.animator-status.error { color: #d78c97; }
.animator-source-card { overflow: hidden; }
.animator-source-card summary { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 13px; color: #93a5b2; font-size: 9px; cursor: pointer; list-style: none; }
.animator-source-card summary::-webkit-details-marker { display: none; }
.animator-source-card summary::before { margin-right: 7px; color: #4fa6d0; content: ">"; }
.animator-source-card[open] summary::before { transform: rotate(90deg); }
.animator-source-card summary span { flex: 1; }
.animator-source-card summary button { height: 24px; padding: 0 8px; border: 1px solid #393939; border-radius: 6px; background: #181818; color: #79909f; font-size: 7px; cursor: pointer; }
.animator-source-card pre { max-height: 310px; margin: 0; padding: 13px; overflow: auto; border-top: 1px solid #2a2a2a; background: #0b0b0b; color: #a7cfdf; font: 9px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: pre; }
.animator-section-heading { align-items: center; }
.animator-section-heading button { height: 26px; padding: 0 8px; border: 1px solid #383838; border-radius: 7px; background: #181818; color: #8095a3; font-size: 7px; cursor: pointer; }
.animator-studio-card > label { display: grid; margin-top: 13px; gap: 6px; color: #637581; font-size: 8px; }
.animator-studio-card select, .animator-studio-card input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #383838; border-radius: 9px; outline: 0; background: #101010; color: #c5d1d8; font-size: 9px; }
.animator-studio-card select:focus, .animator-studio-card input:focus { border-color: #3a8eb8; box-shadow: 0 0 0 2px rgba(58,142,184,.1); }
.animator-primary, .animator-secondary { width: 100%; height: 37px; margin-top: 10px; border: 0; border-radius: 9px; font-size: 9px; font-weight: 700; cursor: pointer; }
.animator-primary { background: #e8f0f4; color: #101010; }
.animator-secondary { border: 1px solid #346b87; background: #2e2e2e; color: #bfe8f8; }
.animator-primary:disabled, .animator-secondary:disabled { border: 1px solid #313131; background: #1a1a1a; color: #4e5c67; cursor: default; }
.animator-publish-help { margin-top: 11px; padding: 10px; border: 1px solid #31485b; border-radius: 9px; background: rgba(29,74,100,.12); }
.animator-publish-help strong { color: #a8d9ec; font-size: 8px; }
.animator-publish-help p { margin: 5px 0 0; color: #7893a2; font-size: 8px; line-height: 1.5; }
.animator-publish-help code { color: #a4d5e9; }
.animator-install-mode { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; padding: 3px; border: 1px solid #353535; border-radius: 9px; background: #101010; }
.animator-install-mode button { height: 28px; border: 0; border-radius: 6px; background: transparent; color: #617582; font-size: 8px; cursor: pointer; }
.animator-install-mode button.active { background: #303030; color: #bfe6f6; }
.animator-studio-state { margin: 10px 1px 0; color: #687985; font-size: 8px; line-height: 1.5; }
.animator-conflict-dialog .dialog-intro { color: #c6b6bd; overflow-wrap: anywhere; line-height: 1.7; }
.animator-conflict-note { color: #788794; font-size: 11px; line-height: 1.5; }

@media (min-width: 761px) and (max-width: 1100px) {
  .chat-app.animator-open { --sidebar-width: 72px; grid-template-columns: var(--sidebar-width) minmax(340px,1fr) clamp(320px,var(--animator-width,440px),calc(100vw - var(--sidebar-width) - 340px)); }
  .animator-open .chat-brand-copy, .animator-open .new-chat-button span:nth-child(2), .animator-open .new-chat-button kbd, .animator-open .conversation-history, .animator-open .sidebar-footer { display: none; }
  .animator-open .new-chat-button { justify-content: center; padding: 0; }
  .animator-open .sidebar-collapse { display: none; }
}

@media (max-width: 760px) {
  .chat-app.animator-open { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 90px minmax(0,1fr); }
  .animator-open .chat-main { z-index: 10; grid-template-rows: 90px; overflow: visible; }
  .animator-open .conversation-stage, .animator-open .composer-dock { display: none; }
  .animator-workspace { min-width: 0; border-left: 0; }
  .chat-app.animator-open .animator-workspace { display: grid; grid-template-rows: 58px minmax(0,1fr); }
  .chat-topbar { height: 90px; }
  .animator-resizer { display: none; }
  .animator-body { padding: 10px; }
  .animator-viewer { height: min(42vh,390px); }
}

@container animator (max-width: 410px) {
  .animator-transport { grid-template-columns: 28px 34px minmax(50px,1fr) auto; }
  .animator-transport select, .animator-loop { display: none; }
  .animator-metadata { grid-template-columns: 1fr 1fr; }
  .animator-metadata div:nth-child(3) { border-left: 0; border-top: 1px solid #292929; }
  .animator-metadata div:nth-child(4) { border-top: 1px solid #292929; }
}

.connect-dialog, .auth-dialog, .history-dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 1px solid #2e2e2e; border-radius: 16px; background: #121212; color: var(--text); box-shadow: 0 30px 90px #000; }.connect-dialog::backdrop, .auth-dialog::backdrop, .history-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.dialog-shell { padding: 22px; }.dialog-header { display: flex; justify-content: space-between; gap: 20px; }.dialog-header span { color: #666e7a; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.dialog-header h2 { margin: 7px 0 0; font-size: 20px; font-weight: 550; }.dialog-header button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #747c88; cursor: pointer; }.dialog-header button:hover { background: #1c1c1c; color: white; }.dialog-intro { margin: 18px 0; color: #777f8c; font-size: 11px; line-height: 1.6; }.connection-steps { margin: 0; padding: 0; list-style: none; }.connection-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid #1f1f1f; }.connection-steps li > span { color: #555d68; font-size: 9px; }.connection-steps strong { font-size: 11px; }.connection-steps p { margin: 4px 0 0; color: #666e7a; font-size: 10px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }.dialog-actions a, .dialog-actions button { display: grid; place-items: center; height: 34px; padding: 0 13px; border: 1px solid #2f2f2f; border-radius: 8px; background: #1a1a1a; color: #c8cdd4; font-size: 10px; cursor: pointer; }.dialog-actions button { border-color: #eef0f3; background: #eef0f3; color: #0c0c0c; }
.toast { position: absolute; z-index: 60; left: 50%; bottom: 112px; max-width: calc(100% - 40px); padding: 9px 13px; border: 1px solid #303030; border-radius: 10px; background: #171717; color: #b9bfc8; font-size: 10px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%,8px); transition: opacity var(--ease), transform var(--ease); }.toast.visible { opacity: 1; transform: translate(-50%,0); }
.auth-shell { padding: 22px; }
.history-dialog { width: min(410px, calc(100% - 28px)); }
.history-dialog-shell { padding: 22px; }
.history-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.history-dialog-actions button { height: 35px; padding: 0 13px; border: 1px solid #333333; border-radius: 8px; background: #1c1c1c; color: #aeb8c3; font-size: 10px; cursor: pointer; }
.history-dialog-actions button:hover { border-color: #3b4b5c; background: #242424; color: #eef2f6; }
.history-dialog-actions button.primary { border-color: #38a8dd; background: #38a8dd; color: #0f0f0f; font-weight: 700; }
.history-dialog-actions button.danger { border-color: #9e4654; background: #a94b5a; color: white; font-weight: 700; }
.delete-chat-dialog .dialog-intro { padding: 11px 12px; border: 1px solid #422a31; border-radius: 9px; background: rgba(118,42,57,.12); color: #c49ba3; }
.auth-field { display: block; margin-top: 12px; }
.auth-field > span { display: block; margin: 0 0 6px 2px; color: #7d8793; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.auth-field input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #303030; border-radius: 10px; outline: 0; background: #0f0f0f; color: #edf2f5; font-size: 11px; }
.auth-field input:focus { border-color: #397aa4; box-shadow: 0 0 0 3px rgba(57,154,213,.08); }
.auth-error { margin: 11px 0 0; color: #f39ba8; font-size: 10px; line-height: 1.45; }
.auth-submit { width: 100%; height: 38px; margin-top: 15px; border: 0; border-radius: 10px; background: var(--accent); color: #0f0f0f; font-size: 10px; font-weight: 700; cursor: pointer; }
.auth-submit:disabled { opacity: .5; cursor: wait; }
.auth-create { margin: 12px 0 0; color: #68727f; font-size: 9px; text-align: center; }.auth-create a { color: #63bfee; }
.mobile-scrim { display: none; }

@keyframes pulse { to { opacity: .3; transform: translateY(-2px); } }
@keyframes activity-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .chat-app { display: block; }
  .chat-sidebar { position: fixed; inset: 0 auto 0 0; width: min(280px,86vw); transform: translateX(-100%); transition: transform 200ms ease; }
  .mobile-sidebar-open .chat-sidebar { transform: none; }
  .mobile-scrim { position: fixed; z-index: 19; inset: 0; background: rgba(0,0,0,.65); }
  .mobile-sidebar-open .mobile-scrim { display: block; }
  .sidebar-close, .mobile-sidebar-toggle { display: grid; }.sidebar-collapse { display: none; }.sidebar-close { margin-left: auto; }
  .chat-main { height: 100%; min-height: 0; }.chat-topbar { padding: 0 12px; }.topbar-left { gap: 6px; }.studio-status span:last-child, .diagnostics-button span:last-child { display: none; }.studio-status { padding: 0 5px; }.diagnostics-button { padding: 0 7px; }
  .welcome-state { margin-top: 12vh; }.composer-dock { padding: 10px 10px 11px; }.chat-composer { border-radius: 22px; padding: 12px 10px 9px; }
  .model-picker-trigger { max-width: 42px; padding: 0 5px; }.model-picker-trigger strong, .model-trigger-caret { display: none; }.model-menu { position: fixed; right: 10px; bottom: 98px; left: 10px; width: auto; max-height: 60vh; }
  .context-tooltip { right: -42px; }.composer-disclaimer { display: none; }
  .message-thread { width: calc(100% - 24px); margin-top: 18px; }.message { grid-template-columns: 24px minmax(0,1fr); gap: 9px; }.message-avatar { width: 24px; height: 24px; border-radius: 7px; }.activity-list { gap: 6px; }.activity-pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }.agent-output-card { padding: 13px 14px 14px; }
}

/* Adapt to the chat column, including when Animator takes part of the window. */
@container chat (max-width: 760px) {
  .chat-topbar { height: 90px; min-height: 90px; flex-direction: column; align-items: stretch; justify-content: center; gap: 9px; padding: 10px 14px; }
  .topbar-left { flex: none; height: 20px; }
  .conversation-heading { flex: 1; }
  .conversation-heading strong { flex: 1; }
  .mobile-sidebar-toggle { flex: none; width: 24px; height: 24px; }
  .topbar-actions { width: 100%; gap: 8px; }
  .studio-project-picker { flex: 1; }
  .studio-status { max-width: 100%; padding: 0 4px; gap: 5px; }
  .studio-status span[data-connection-label] { display: block; max-width: 100%; font-size: 9px; }
  .signin-button { max-width: 94px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; display: block; }
  .message-thread { width: calc(100% - 28px); margin-top: 18px; }
  .message { gap: 9px; }
  .composer-dock { padding: 10px 14px 12px; }
  .chat-composer { padding: 12px; }
  .thought-panel { width: min(380px,calc(100cqw - 80px)); }
  .activity-pill-wrap { max-width: 100%; }
  .activity-pill { max-width: 100%; white-space: normal; padding-top: 6px; padding-bottom: 6px; }
  .model-menu { max-width: calc(100cqw - 40px); }
}
@container chat (max-width: 460px) {
  .composer-toolbar { flex-wrap: wrap; gap: 8px; }
  .composer-actions { justify-content: flex-end; flex: 1 0 100%; }
  .model-picker-trigger { width: auto; max-width: 190px; }
  .model-picker-trigger strong { display: block; }
  .diagnostics-button span:last-child { display: none; }
  .diagnostics-button { justify-content: center; width: 30px; padding: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .animator-open .settings-button { justify-content: center; width: 38px; margin-right: auto; margin-left: auto; padding: 0; }
  .animator-open .settings-button span { display: none; }
}

/* Liquid-glass settings refinement */
.settings-button {
  display: flex;
  align-items: center;
  width: calc(100% - 4px);
  height: 38px;
  margin: 8px 2px 10px;
  padding: 0 10px;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 11px;
  background: rgba(255,255,255,.028);
  color: #8b929c;
  font: 550 10px/1 inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.settings-button:hover, .settings-button:focus-visible {
  border-color: rgba(255,255,255,.14);
  outline: 0;
  background: rgba(255,255,255,.065);
  color: #f1f3f5;
}
.settings-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-collapsed .settings-button { justify-content: center; width: 38px; margin-right: auto; margin-left: auto; padding: 0; }
.sidebar-collapsed .settings-button span { display: none; }

.settings-dialog {
  --glass-line: rgba(255,255,255,.105);
  --glass-line-soft: rgba(255,255,255,.065);
  --glass-surface: rgba(255,255,255,.045);
  --glass-surface-hover: rgba(255,255,255,.072);
  width: min(900px, calc(100% - 40px));
  height: min(680px, calc(100% - 40px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 26px;
  outline: none;
  background: rgba(17,18,21,.68);
  color: #f5f5f6;
  box-shadow: 0 36px 110px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.12), inset 0 -1px rgba(255,255,255,.035);
  -webkit-backdrop-filter: blur(38px) saturate(155%);
  backdrop-filter: blur(38px) saturate(155%);
}
.settings-dialog::backdrop {
  background: rgba(2,3,5,.46);
  -webkit-backdrop-filter: blur(15px) saturate(115%);
  backdrop-filter: blur(15px) saturate(115%);
}
.settings-shell { position: relative; isolation: isolate; }
.settings-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 15% 0, rgba(255,255,255,.08), transparent 34%), radial-gradient(circle at 100% 90%, rgba(255,255,255,.035), transparent 38%);
  content: "";
  pointer-events: none;
}
.settings-header {
  min-height: 98px;
  padding: 20px 24px 17px 27px;
  border-bottom: 1px solid var(--glass-line-soft);
  background: rgba(255,255,255,.022);
}
.settings-header > div > span, .settings-section-heading > span, .settings-budget-card > div:first-child > span, .settings-studio-card small, .settings-info-card > span { color: rgba(238,240,243,.52); }
.settings-header h2 { margin-top: 5px; color: #f7f7f8; font-size: 22px; font-weight: 620; }
.settings-header p { display: none; }
.settings-header > button {
  border-color: var(--glass-line-soft);
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.56);
}
.settings-header > button:hover { border-color: var(--glass-line); background: rgba(255,255,255,.09); color: white; }
.settings-layout { grid-template-columns: 172px minmax(0,1fr); }
.settings-nav {
  gap: 3px;
  padding: 18px 11px 15px;
  border-right: 1px solid var(--glass-line-soft);
  background: rgba(5,6,8,.16);
}
.settings-nav button {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(234,236,239,.49);
}
.settings-nav button strong { font-size: 10px; font-weight: 540; }
.settings-nav button:hover { background: rgba(255,255,255,.045); color: rgba(255,255,255,.86); }
.settings-nav button.active {
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.085);
  box-shadow: inset 0 1px rgba(255,255,255,.075), 0 5px 16px rgba(0,0,0,.08);
  color: #fff;
}
.settings-nav small { color: rgba(225,228,232,.3); }
.settings-content { background: rgba(3,4,6,.06); scrollbar-color: rgba(255,255,255,.16) transparent; }
.settings-section { width: min(620px, calc(100% - 48px)); padding-top: 31px; }
.settings-section-heading { position: relative; margin-bottom: 21px; }
.settings-section-heading h3 { margin-top: 6px; color: #f4f4f5; font-size: 19px; font-weight: 590; }

.settings-stat-grid { gap: 9px; }
.settings-stat-grid article,
.settings-callout,
.settings-budget-card,
.settings-list,
.settings-model-grid > button,
.settings-info-card,
.settings-studio-card {
  border-color: var(--glass-line-soft);
  background: var(--glass-surface);
  box-shadow: inset 0 1px rgba(255,255,255,.045), 0 10px 28px rgba(0,0,0,.07);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}
.settings-stat-grid article { min-height: 104px; }
.settings-stat-grid small { color: rgba(227,230,234,.38); }
.settings-stat-grid strong { color: #f0f1f2; font-weight: 570; }
.settings-stat-grid span { color: rgba(226,230,234,.43); }
.settings-callout { border-color: var(--glass-line-soft); background: rgba(255,255,255,.04); }
.settings-callout span { color: rgba(241,243,245,.56); }
.settings-callout h4, .settings-budget-card h4 { color: #eceeef; font-weight: 570; }
.settings-callout button, .settings-studio-card button {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.82);
}
.settings-callout button:hover, .settings-studio-card button:hover { background: rgba(255,255,255,.12); color: white; }
.settings-budget-card { grid-template-columns: 142px minmax(0,1fr); border-color: var(--glass-line-soft); background: rgba(255,255,255,.038); }
.settings-budget-card > div:first-child { min-height: 132px; border-color: var(--glass-line-soft); background: rgba(0,0,0,.13); }
.settings-budget-card > div:first-child strong { color: #fafafa; font-size: 42px; }
.settings-budget-card > div:first-child small { color: rgba(231,234,237,.44); }
.settings-segmented button { border-color: var(--glass-line-soft); background: rgba(0,0,0,.12); color: rgba(236,238,241,.43); }
.settings-segmented button:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }
.settings-segmented button.active {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.settings-list { overflow: visible; background: rgba(255,255,255,.032); }
.settings-list article { position: relative; min-height: 57px; padding: 10px 14px; }
.settings-list article + article { border-top-color: var(--glass-line-soft); }
.settings-list article div strong { color: rgba(248,248,249,.78); font-weight: 540; }
.settings-toggle { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.08); }
.settings-toggle i { background: rgba(255,255,255,.44); }
.settings-toggle[aria-checked="true"] { border-color: rgba(255,255,255,.3); background: rgba(238,239,241,.82); }
.settings-toggle[aria-checked="true"] i { background: #272727; }
.settings-model-grid > button { min-height: 98px; border-color: var(--glass-line-soft); background: rgba(255,255,255,.038); }
.settings-model-grid > button:hover { border-color: rgba(255,255,255,.14); background: var(--glass-surface-hover); }
.settings-model-grid > button.active { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.09); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.settings-model-grid div strong { color: rgba(255,255,255,.84); font-weight: 560; }
.settings-model-grid > button > i { background: rgba(88,178,131,.13); color: #8ed6ad; }
.settings-info-card, .settings-studio-card { background: rgba(255,255,255,.034); }
.settings-readonly-list b { color: rgba(242,243,245,.56); }.settings-readonly-list a { color: rgba(242,243,245,.72); text-decoration: underline; text-decoration-color: rgba(255,255,255,.16); text-underline-offset: 3px; }

/* Explanations stay out of the layout until the user dwells on a control. */
.settings-section-heading > p,
.settings-callout p,
.settings-budget-card > div:last-child > p,
.settings-list article > div > span,
.settings-model-grid > button small,
.settings-info-card > p,
.settings-studio-card p {
  position: absolute;
  z-index: 40;
  width: min(290px, calc(100vw - 44px));
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(22,23,26,.82);
  box-shadow: 0 14px 42px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.08);
  color: rgba(247,248,249,.72);
  font-size: 9px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-3px) scale(.985);
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
  transition-delay: 0s;
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}
.settings-section-heading > p { top: calc(100% + 7px); left: 0; }
.settings-callout, .settings-budget-card > div:last-child, .settings-list article > div, .settings-model-grid > button, .settings-info-card, .settings-studio-card > div { position: relative; }
.settings-callout p { top: calc(100% + 8px); left: 0; }
.settings-budget-card > div:last-child > p { top: 46px; left: 0; }
.settings-list article > div > span { top: calc(100% + 9px); left: 0; }
.settings-model-grid > button small { top: calc(100% + 8px); left: 12px; text-align: left; white-space: normal; }
.settings-info-card > p { top: calc(100% + 8px); left: 0; }
.settings-studio-card p { top: calc(100% + 8px); left: 0; }
.settings-section-heading:hover > p,
.settings-section-heading:focus-within > p,
.settings-callout:hover p,
.settings-callout:focus-within p,
.settings-budget-card > div:last-child:hover > p,
.settings-budget-card > div:last-child:focus-within > p,
.settings-list article:hover > div > span,
.settings-list article:focus-within > div > span,
.settings-model-grid > button:hover small,
.settings-model-grid > button:focus-visible small,
.settings-info-card:hover > p,
.settings-info-card:focus-within > p,
.settings-studio-card:hover p,
.settings-studio-card:focus-within p {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 560ms;
  transition-property: opacity, transform, visibility;
}

@media (max-width: 760px) {
  .settings-button { width: calc(100% - 4px); padding: 0 10px; justify-content: flex-start; }
  .settings-button span { display: inline; }
  .settings-dialog { width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 20px; }
  .settings-nav button { display: flex; }
  .settings-section-heading > p, .settings-callout p, .settings-budget-card > div:last-child > p, .settings-list article > div > span, .settings-model-grid > button small, .settings-info-card > p, .settings-studio-card p { width: min(260px, calc(100vw - 44px)); }
}
@media (max-width: 430px) {
  .signin-button { padding: 0 10px; }.welcome-state { width: calc(100% - 28px); }.starter-prompts { display: grid; grid-template-columns: 1fr 1fr; }.starter-prompts button { text-align: left; }
  .mode-button { padding: 0 8px; }.model-picker-trigger { width: 30px; }.composer-tools, .composer-actions { gap: 3px; }
  .composer-attachment { width: 118px; height: 86px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Custom provider setup guide */
.custom-provider-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 28px); padding: 0; overflow: hidden; border: 1px solid #424242; border-radius: 22px; background: #101010; color: #dce8ef; box-shadow: 0 34px 100px rgba(0,0,0,.78), 0 0 0 1px rgba(101,202,244,.04); }
.custom-provider-dialog::backdrop { background: rgba(2,5,9,.8); backdrop-filter: blur(13px); }
.custom-provider-shell { padding: 20px; overflow-y: auto; max-height: calc(100vh - 28px); background: radial-gradient(circle at 82% 0, rgba(40,143,189,.13), transparent 34%), linear-gradient(145deg, #171717, #0d0d0d 64%); }
.custom-provider-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.custom-provider-header span { color: #58bde8; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.custom-provider-header h2 { margin: 5px 0 0; color: #f2f8fb; font-size: 22px; letter-spacing: -.035em; }
.custom-provider-header button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #343434; border-radius: 9px; background: #1a1a1a; color: #8193a1; cursor: pointer; font-size: 18px; }
.custom-provider-video-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; border: 1px solid #393939; border-radius: 15px; background: #080808; box-shadow: 0 18px 45px rgba(0,0,0,.34); }
.custom-provider-video-wrap video { display: block; width: 100%; height: 100%; object-fit: contain; background: #080808; }
.custom-provider-explainer { margin: 16px 2px 0; color: #9aacb8; font-size: 12px; line-height: 1.65; }
.custom-provider-note { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 9px; margin-top: 13px; padding: 11px 12px; border: 1px solid rgba(71,157,197,.18); border-radius: 11px; background: rgba(22,65,86,.18); }
.custom-provider-note span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #173c50; color: #7fd8ff; font-size: 10px; font-weight: 700; }
.custom-provider-note p { margin: 1px 0 0; color: #718895; font-size: 11px; line-height: 1.55; }
.custom-provider-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.custom-provider-actions button { min-height: 36px; padding: 0 15px; border: 1px solid #353535; border-radius: 9px; background: #1a1a1a; color: #8fa0ac; cursor: pointer; font: inherit; font-size: 11px; }
.custom-provider-actions button.primary { border-color: #3a9ccc; background: linear-gradient(180deg, #67c7f0, #38a5d8); color: #0e0e0e; font-weight: 700; }
@media (max-width: 600px) { .custom-provider-shell { padding: 14px; }.custom-provider-header h2 { font-size: 18px; }.custom-provider-explainer { font-size: 12px; line-height: 1.55; }.custom-provider-note p { font-size: 11px; }.custom-provider-actions { display: grid; grid-template-columns: 1fr 1fr; }.custom-provider-actions button { width: 100%; min-height: 42px; } }

/* Arc Agent logo lockups */
.sidebar-topline {
  min-height: 52px;
}

.chat-brand-lockup,
.welcome-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.chat-brand-lockup {
  gap: 1px;
}

.chat-brand-lockup .arc-mark {
  width: 38px;
  height: 34px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.arc-mark img,
.welcome-mark img {
  object-fit: contain;
  transform: scale(1.28);
}

.chat-brand-lockup > strong,
.welcome-brand > strong {
  color: #fff;
  font-size: 7px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .15em;
  white-space: nowrap;
}

.welcome-brand {
  gap: 3px;
  margin: 0 auto 22px;
}

.welcome-mark {
  width: 76px;
  height: 66px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.welcome-brand > strong {
  font-size: 9px;
  letter-spacing: .2em;
}

.sidebar-collapsed .chat-brand-lockup > strong {
  display: none;
}

.sidebar-collapsed .sidebar-topline {
  min-height: 38px;
}

/* Arc settings control center */
.settings-button { display: flex; align-items: center; height: 32px; padding: 0 10px; gap: 7px; border: 1px solid #292929; border-radius: 9px; background: #131313; color: #8290a1; font: 550 9px/1 inherit; cursor: pointer; transition: border-color var(--ease), background var(--ease), color var(--ease); }
.settings-button:hover { border-color: #31506a; background: #1b1b1b; color: #d9e6ef; }
.settings-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.settings-dialog { width: min(960px, calc(100% - 32px)); height: min(720px, calc(100% - 32px)); max-width: none; max-height: none; padding: 0; overflow: hidden; border: 1px solid #333333; border-radius: 22px; outline: none; background: #0f0f0f; color: var(--text); box-shadow: 0 40px 130px rgba(0,0,0,.88), 0 0 70px rgba(32,135,207,.09); }
.settings-dialog::backdrop { background: rgba(2,5,9,.78); backdrop-filter: blur(10px); }
.settings-shell { display: grid; grid-template-rows: auto minmax(0,1fr); height: 100%; }
.settings-header { display: flex; align-items: center; justify-content: space-between; min-height: 104px; padding: 20px 24px 18px 28px; border-bottom: 1px solid #282828; background: radial-gradient(circle at 7% -30%, rgba(45,152,224,.15), transparent 42%), linear-gradient(180deg, #141414, #0f0f0f); }
.settings-header > div > span, .settings-section-heading > span, .settings-budget-card > div:first-child > span, .settings-studio-card small, .settings-info-card > span { color: #54b7ea; font-size: 8px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.settings-header h2 { margin: 6px 0 3px; color: #f4f8fb; font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.settings-header p { margin: 0; color: #697789; font-size: 10px; }
.settings-header > button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #333333; border-radius: 10px; background: #191919; color: #7f8b99; font-size: 18px; cursor: pointer; }
.settings-header > button:hover { border-color: #3a536a; color: #eef4f8; }
.settings-layout { display: grid; grid-template-columns: 188px minmax(0,1fr); min-height: 0; }
.settings-nav { display: flex; flex-direction: column; gap: 5px; padding: 18px 12px 16px; border-right: 1px solid #232323; background: #0c0c0c; }
.settings-nav button { display: grid; grid-template-columns: 27px 1fr; align-items: center; height: 43px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #718092; text-align: left; cursor: pointer; }
.settings-nav button span { font: 650 8px/1 inherit; color: #465466; }
.settings-nav button strong { font-size: 10px; font-weight: 550; }
.settings-nav button:hover { background: #161616; color: #cbd8e2; }
.settings-nav button.active { border-color: #373737; background: linear-gradient(90deg, rgba(32,118,171,.22), rgba(17,29,42,.84)); box-shadow: inset 2px 0 #43b5ed; color: #eff8fc; }
.settings-nav button.active span { color: #58bdea; }
.settings-nav small { margin-top: auto; padding: 12px 9px 2px; color: #435061; font-size: 8px; line-height: 1.55; }
.settings-content { min-width: 0; overflow: auto; background: radial-gradient(circle at 100% 0, rgba(41,115,168,.06), transparent 34%), #0f0f0f; scrollbar-color: #353535 transparent; }
.settings-section { display: none; width: min(660px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 46px; }
.settings-section.active { display: block; }
.settings-section-heading { margin-bottom: 24px; }
.settings-section-heading h3 { margin: 7px 0 5px; color: #eef4f8; font-size: 20px; font-weight: 620; letter-spacing: -.02em; }
.settings-section-heading p { margin: 0; color: #687688; font-size: 10px; line-height: 1.55; }
.settings-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.settings-stat-grid article { min-height: 112px; padding: 16px; border: 1px solid #2d2d2d; border-radius: 14px; background: linear-gradient(145deg, #191919, #121212); box-shadow: inset 0 1px rgba(255,255,255,.018); }
.settings-stat-grid small, .settings-stat-grid strong, .settings-stat-grid span { display: block; }
.settings-stat-grid small { color: #536276; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.settings-stat-grid strong { margin-top: 16px; overflow: hidden; color: #edf5fa; font-size: 15px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.settings-stat-grid span { margin-top: 5px; color: #667689; font-size: 9px; }
.settings-callout { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; padding: 18px; border: 1px solid #24506a; border-radius: 14px; background: linear-gradient(120deg, rgba(30,115,162,.17), rgba(16,27,39,.92)); }
.settings-callout span { color: #58bee9; font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.settings-callout h4, .settings-budget-card h4 { margin: 6px 0 4px; color: #e8f1f7; font-size: 12px; }
.settings-callout p, .settings-budget-card p { margin: 0; color: #68798b; font-size: 9px; line-height: 1.55; }
.settings-callout button, .settings-studio-card button { flex: 0 0 auto; height: 34px; padding: 0 12px; border: 1px solid #367ba2; border-radius: 9px; background: #303030; color: #a9daf0; font-size: 9px; font-weight: 650; cursor: pointer; }
.settings-budget-card { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 22px; padding: 18px; border: 1px solid #3d3d3d; border-radius: 16px; background: linear-gradient(135deg, rgba(25,94,137,.2), #161616 45%); }
.settings-budget-card > div:first-child { display: flex; flex-direction: column; justify-content: center; min-height: 142px; padding: 16px; border: 1px solid #26455c; border-radius: 13px; background: rgba(7,13,20,.62); text-align: center; }
.settings-budget-card > div:first-child strong { margin: 8px 0 3px; color: #f1f8fc; font-size: 44px; line-height: 1; letter-spacing: -.05em; }
.settings-budget-card > div:first-child small { color: #7191a5; font-size: 9px; }
.settings-budget-card > div:last-child { align-self: center; }
.settings-segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 16px; }
.settings-segmented button { display: flex; align-items: center; justify-content: center; height: 45px; gap: 7px; border: 1px solid #363636; border-radius: 10px; background: #111111; color: #68798a; cursor: pointer; }
.settings-segmented button strong { font-size: 13px; }.settings-segmented button span { font-size: 9px; }
.settings-segmented button.active { border-color: #3c9ccb; background: #163b50; color: #d9f2fd; box-shadow: 0 0 0 2px rgba(48,156,210,.08); }
.settings-list { margin-top: 14px; border: 1px solid #2b2b2b; border-radius: 14px; background: #121212; overflow: hidden; }
.settings-list article { display: flex; align-items: center; justify-content: space-between; min-height: 67px; padding: 12px 16px; gap: 20px; }
.settings-list article + article { border-top: 1px solid #242424; }
.settings-list article div strong, .settings-list article div span { display: block; }
.settings-list article div strong { color: #cfdae3; font-size: 10px; font-weight: 600; }
.settings-list article div span { margin-top: 5px; color: #5e6d7d; font-size: 9px; line-height: 1.4; }
.settings-toggle { position: relative; flex: 0 0 auto; width: 40px; height: 23px; padding: 0; border: 1px solid #383838; border-radius: 99px; background: #1d1d1d; cursor: pointer; transition: background var(--ease), border-color var(--ease); }
.settings-toggle i { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #697483; transition: transform var(--ease), background var(--ease); }
.settings-toggle[aria-checked="true"] { border-color: #3a9dca; background: #17415a; }.settings-toggle[aria-checked="true"] i { background: #e6f7ff; transform: translateX(17px); }
.settings-model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-model-grid > button { position: relative; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; min-height: 112px; padding: 16px; gap: 12px; border: 1px solid #2f2f2f; border-radius: 15px; background: linear-gradient(145deg, #181818, #121212); color: inherit; text-align: left; cursor: pointer; }
.settings-model-grid > button:hover { border-color: #345875; background: #1b1b1b; }.settings-model-grid > button.active { border-color: #3d9dcb; box-shadow: 0 0 0 2px rgba(52,159,210,.08), inset 0 1px rgba(255,255,255,.025); }
.settings-model-grid .provider-logo { width: 38px; height: 38px; border-radius: 11px; }.settings-model-grid .provider-logo img { width: 23px; height: 23px; }
.settings-model-grid div strong, .settings-model-grid div small { display: block; }.settings-model-grid div strong { color: #e4edf4; font-size: 11px; }.settings-model-grid div small { margin-top: 5px; color: #617183; font-size: 9px; }
.settings-model-grid > button > i { position: absolute; top: 10px; right: 10px; padding: 4px 7px; border-radius: 99px; background: rgba(41,142,102,.14); color: #68c79f; font-size: 7px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.settings-model-grid > button > i.unavailable { background: rgba(160,79,88,.14); color: #d7838c; }
.settings-info-card { margin-top: 14px; padding: 15px 17px; border: 1px solid #2e2e2e; border-radius: 12px; background: rgba(15,26,37,.72); }.settings-info-card p { margin: 7px 0 0; color: #617184; font-size: 9px; line-height: 1.55; }
.settings-studio-card { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 18px; border: 1px solid #333333; border-radius: 15px; background: linear-gradient(135deg, #1a1a1a, #121212); }
.settings-studio-card .status-dot { width: 9px; height: 9px; }.settings-studio-card.connected .status-dot { background: #49d1a5; box-shadow: 0 0 10px rgba(73,209,165,.48); }
.settings-studio-card strong, .settings-studio-card p { display: block; }.settings-studio-card strong { margin-top: 5px; color: #dfe9f0; font-size: 12px; }.settings-studio-card p { margin: 5px 0 0; color: #607082; font-size: 9px; }
.settings-readonly-list b, .settings-readonly-list a { flex: 0 0 auto; color: #91a6b7; font-size: 9px; font-weight: 600; }.settings-readonly-list a { color: #60bce8; }
body.compact-interface .message-thread { gap: 12px; } body.compact-interface .message { gap: 8px; } body.compact-interface .agent-output-card { padding: 11px 13px 12px; } body.hide-studio-activity .agent-run { display: none; }
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }

@media (max-width: 760px) {
  .settings-button span { display: none; }.settings-button { width: 32px; padding: 0; justify-content: center; }
  .settings-dialog { width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 16px; }
  .settings-header { min-height: 88px; padding: 15px 16px 14px; }.settings-header h2 { font-size: 19px; }.settings-header p { display: none; }
  .settings-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .settings-nav { flex-direction: row; gap: 4px; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid #232323; }
  .settings-nav button { flex: 0 0 auto; grid-template-columns: 1fr; width: auto; height: 34px; padding: 0 12px; text-align: center; }.settings-nav button span, .settings-nav small { display: none; }
  .settings-section { width: calc(100% - 28px); padding: 24px 0 34px; }.settings-stat-grid, .settings-model-grid { grid-template-columns: 1fr; }
  .settings-budget-card { grid-template-columns: 1fr; }.settings-budget-card > div:first-child { min-height: 104px; }
  .settings-callout { align-items: flex-start; flex-direction: column; }.settings-studio-card { grid-template-columns: 12px minmax(0,1fr); }.settings-studio-card button { grid-column: 2; justify-self: start; }
}

/* Final cascade: neutral liquid glass replaces the earlier blue settings theme. */
.chat-sidebar > .settings-button { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 8px auto 10px 2px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #7f8791; }
.chat-sidebar > .settings-button:hover { background: transparent; color: #f1f3f5; }
.chat-sidebar > .settings-button:focus-visible { outline: 2px solid rgba(255,255,255,.45); outline-offset: 2px; background: transparent; color: #f1f3f5; }
.chat-sidebar > .settings-button svg { width: 18px; height: 18px; }
.sidebar-collapsed .chat-sidebar > .settings-button { justify-content: center; width: 38px; margin-right: auto; margin-left: auto; padding: 0; }
.settings-dialog { --glass-line: rgba(255,255,255,.105); --glass-line-soft: rgba(255,255,255,.065); --glass-surface: rgba(255,255,255,.045); --glass-surface-hover: rgba(255,255,255,.072); width: min(900px, calc(100% - 40px)); height: min(680px, calc(100% - 40px)); border-color: rgba(255,255,255,.16); border-radius: 26px; background: rgba(17,18,21,.68); box-shadow: 0 36px 110px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.12), inset 0 -1px rgba(255,255,255,.035); -webkit-backdrop-filter: blur(38px) saturate(155%); backdrop-filter: blur(38px) saturate(155%); }
.settings-dialog::backdrop { background: rgba(2,3,5,.46); -webkit-backdrop-filter: blur(15px) saturate(115%); backdrop-filter: blur(15px) saturate(115%); }
.settings-header { min-height: 98px; padding: 20px 24px 17px 27px; border-bottom-color: var(--glass-line-soft); background: rgba(255,255,255,.022); }
.settings-header > div > span, .settings-section-heading > span, .settings-budget-card > div:first-child > span, .settings-studio-card small, .settings-info-card > span { color: rgba(238,240,243,.52); }
.settings-header h2 { margin-top: 5px; color: #f7f7f8; font-size: 22px; font-weight: 620; }.settings-header p { display: none; }
.settings-header > button { border-color: var(--glass-line-soft); border-radius: 50%; background: rgba(255,255,255,.045); color: rgba(255,255,255,.56); }.settings-header > button:hover { border-color: var(--glass-line); background: rgba(255,255,255,.09); color: white; }
.settings-layout { grid-template-columns: 172px minmax(0,1fr); }
.settings-nav { gap: 3px; padding: 18px 11px 15px; border-right-color: var(--glass-line-soft); background: rgba(5,6,8,.16); }
.settings-nav button { display: flex; grid-template-columns: none; height: 40px; padding: 0 12px; border-radius: 10px; color: rgba(234,236,239,.49); }.settings-nav button strong { font-weight: 540; }
.settings-nav button:hover { background: rgba(255,255,255,.045); color: rgba(255,255,255,.86); }
.settings-nav button.active { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.085); box-shadow: inset 0 1px rgba(255,255,255,.075), 0 5px 16px rgba(0,0,0,.08); color: #fff; }
.settings-nav small { color: rgba(225,228,232,.3); }.settings-content { background: rgba(3,4,6,.06); scrollbar-color: rgba(255,255,255,.16) transparent; }
.settings-section { width: min(620px, calc(100% - 48px)); padding-top: 31px; }.settings-section-heading { position: relative; margin-bottom: 21px; }.settings-section-heading h3 { margin-top: 6px; color: #f4f4f5; font-size: 19px; font-weight: 590; }
.settings-stat-grid { gap: 9px; }.settings-stat-grid article, .settings-callout, .settings-budget-card, .settings-list, .settings-model-grid > button, .settings-info-card, .settings-studio-card { border-color: var(--glass-line-soft); background: var(--glass-surface); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 10px 28px rgba(0,0,0,.07); -webkit-backdrop-filter: blur(18px) saturate(125%); backdrop-filter: blur(18px) saturate(125%); }
.settings-stat-grid article { min-height: 104px; }.settings-stat-grid small { color: rgba(227,230,234,.38); }.settings-stat-grid strong { color: #f0f1f2; font-weight: 570; }.settings-stat-grid span { color: rgba(226,230,234,.43); }
.settings-callout { border-color: var(--glass-line-soft); background: rgba(255,255,255,.04); }.settings-callout span { color: rgba(241,243,245,.56); }.settings-callout h4, .settings-budget-card h4 { color: #eceeef; font-weight: 570; }
.settings-callout button, .settings-studio-card button { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.075); color: rgba(255,255,255,.82); }
.settings-budget-card { grid-template-columns: 142px minmax(0,1fr); border-color: var(--glass-line-soft); background: rgba(255,255,255,.038); }.settings-budget-card > div:first-child { min-height: 132px; border-color: var(--glass-line-soft); background: rgba(0,0,0,.13); }.settings-budget-card > div:first-child strong { color: #fafafa; font-size: 42px; }.settings-budget-card > div:first-child small { color: rgba(231,234,237,.44); }
.settings-segmented button { border-color: var(--glass-line-soft); background: rgba(0,0,0,.12); color: rgba(236,238,241,.43); }.settings-segmented button.active { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 1px rgba(255,255,255,.08); }
.settings-list { overflow: visible; background: rgba(255,255,255,.032); }.settings-list article { min-height: 57px; padding: 10px 14px; }.settings-list article + article { border-top-color: var(--glass-line-soft); }.settings-list article div strong { color: rgba(248,248,249,.78); font-weight: 540; }
.settings-toggle { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.08); }.settings-toggle i { background: rgba(255,255,255,.44); }.settings-toggle[aria-checked="true"] { border-color: rgba(255,255,255,.3); background: rgba(238,239,241,.82); }.settings-toggle[aria-checked="true"] i { background: #272727; }
.settings-model-grid > button { min-height: 98px; border-color: var(--glass-line-soft); background: rgba(255,255,255,.038); }.settings-model-grid > button:hover { border-color: rgba(255,255,255,.14); background: var(--glass-surface-hover); }.settings-model-grid > button.active { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.09); box-shadow: inset 0 1px rgba(255,255,255,.08); }.settings-model-grid div strong { color: rgba(255,255,255,.84); font-weight: 560; }
.settings-info-card, .settings-studio-card { background: rgba(255,255,255,.034); }.settings-readonly-list b { color: rgba(242,243,245,.56); }.settings-readonly-list a { color: rgba(242,243,245,.72); text-decoration: underline; text-decoration-color: rgba(255,255,255,.16); text-underline-offset: 3px; }
.settings-section-heading > p, .settings-callout p, .settings-budget-card > div:last-child > p, .settings-list article > div > span, .settings-model-grid > button small, .settings-info-card > p, .settings-studio-card p { overflow: visible; margin: 0; color: rgba(247,248,249,.72); line-height: 1.5; text-overflow: clip; white-space: normal; }
@media (max-width: 760px) {
  .chat-sidebar > .settings-button { width: 38px; padding: 0; justify-content: center; }
  .settings-dialog { width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 20px; }.settings-nav button { display: flex; }
}

/* Account-scoped cloud memory management */
.settings-memory-section { padding-bottom: 34px; }
.memory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--glass-line-soft); border-radius: 12px; background: var(--glass-surface); }
.memory-toolbar > div { min-width: 0; }
.memory-toolbar strong, .memory-toolbar span { display: block; }
.memory-toolbar strong { color: #f0f1f2; font-size: 11px; font-weight: 580; }
.memory-toolbar span { margin-top: 3px; color: rgba(226,230,234,.43); font-size: 9px; }
.memory-toolbar button, .memory-card-actions button { border: 1px solid rgba(255,255,255,.11); border-radius: 8px; background: rgba(255,255,255,.06); color: rgba(246,247,248,.72); cursor: pointer; }
.memory-toolbar button { height: 31px; padding: 0 11px; font-size: 9px; }
.memory-toolbar button:hover, .memory-card-actions button:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: white; }
.memory-state { padding: 26px 14px; border: 1px dashed rgba(255,255,255,.09); border-radius: 12px; color: rgba(231,234,238,.46); font-size: 10px; line-height: 1.6; text-align: center; }
.memory-state[hidden] { display: none; }
.memory-list { display: grid; gap: 9px; }
.memory-card { padding: 14px; border: 1px solid var(--glass-line-soft); border-radius: 12px; background: rgba(255,255,255,.034); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.memory-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.memory-card-header > div { min-width: 0; }
.memory-card h4 { overflow: hidden; margin: 0; color: rgba(249,249,250,.88); font-size: 12px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.memory-card time { display: block; margin-top: 4px; color: rgba(225,229,234,.34); font-size: 8px; }
.memory-card-content { display: -webkit-box; overflow: hidden; margin: 11px 0 0; color: rgba(235,237,240,.58); font-size: 10px; line-height: 1.55; white-space: pre-wrap; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.memory-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.memory-tags span { padding: 3px 6px; border: 1px solid rgba(255,255,255,.075); border-radius: 999px; background: rgba(255,255,255,.035); color: rgba(231,234,238,.44); font-size: 8px; }
.memory-card-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.memory-card-actions button { height: 28px; padding: 0 9px; font-size: 8px; }
.memory-card-actions button.danger:hover { border-color: rgba(208,91,108,.5); background: rgba(169,75,90,.22); color: #ffb9c3; }
.memory-editor-dialog { width: min(560px, calc(100% - 28px)); }
.memory-editor-form textarea { width: 100%; min-height: 180px; padding: 11px; resize: vertical; border: 1px solid #303030; border-radius: 10px; outline: 0; background: #0f0f0f; color: #edf2f5; font: 11px/1.55 Inter, sans-serif; }
.memory-editor-form textarea:focus { border-color: #397aa4; box-shadow: 0 0 0 3px rgba(57,154,213,.08); }
.memory-form-error { margin: 10px 0 0; color: #e99aa8; font-size: 10px; }
@media (max-width: 560px) {
  .memory-card-header { display: block; }
  .memory-card-actions { margin-top: 10px; }
  .memory-toolbar span { display: none; }
}

.activity-pill, .activity-pill * { user-select: none; -webkit-user-select: none; cursor: default; }

.provider-logo-pareto { background: #e4efff; color: #163461; }
.provider-logo-pareto img { width: 15px; height: 15px; }

/* DeepSeek's optional high-effort control sits immediately before its mark. */
.deep-thinking-button { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; line-height: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #a7acb5; cursor: pointer; transition: color .22s, background .22s, box-shadow .22s, border-color .22s; }
.deep-thinking-button[hidden] { display: none; }
.deep-thinking-button span { display: block; width: 26px; height: 26px; background: currentColor; mask: url("assets/arc/deep-thinking.svg") center / contain no-repeat; -webkit-mask: url("assets/arc/deep-thinking.svg") center / contain no-repeat; }
.deep-thinking-button:hover, .deep-thinking-button:focus-visible { color: #e0e3e9; background: rgba(210,216,226,.09); border-color: rgba(210,216,226,.2); box-shadow: 0 0 11px rgba(210,216,226,.17); }
.deep-thinking-button:focus-visible { outline: 2px solid #67bdff; outline-offset: 3px; }
.deep-thinking-button[aria-pressed="true"] { color: #49b7ff; background: rgba(47,153,255,.12); border-color: rgba(73,183,255,.4); box-shadow: 0 0 13px rgba(47,153,255,.3), inset 0 0 7px rgba(47,153,255,.08); }
@media (prefers-reduced-motion: reduce) { .deep-thinking-button { transition: none; } }
.reduce-motion .deep-thinking-button { transition: none; }

/* Shared frosted surfaces for Arc confirmation and information dialogs. */
.connect-dialog,.auth-dialog,.history-dialog,.custom-provider-dialog{background:linear-gradient(135deg,#ffffff0a,transparent 50%),linear-gradient(155deg,#24262ef0,#14161df5);border-color:#ffffff25;box-shadow:inset 0 1px #ffffff12,0 30px 90px #0008;backdrop-filter:blur(28px) saturate(130%)}
.connect-dialog::backdrop,.auth-dialog::backdrop,.history-dialog::backdrop,.custom-provider-dialog::backdrop{background:#040509a8;backdrop-filter:blur(9px)}

@media(max-width:760px) { .animator-open .chat-face-stage { display:none; } }

.playtest-screenshots{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:14px}.playtest-screenshots figure{margin:0;border:1px solid #31353c;border-radius:12px;overflow:hidden;background:#101215}.playtest-screenshots img{display:block;width:100%;max-height:420px;object-fit:contain}.playtest-screenshots figcaption{padding:10px 12px;color:#aab7c5;font-size:12px}
.expandable-chat-image{cursor:pointer}.expandable-chat-image:focus-visible{outline:2px solid #42beff;outline-offset:-3px}
.chat-image-viewer{position:fixed;inset:0;box-sizing:border-box;width:min(96vw,1500px);max-width:96vw;max-height:94dvh;padding:46px 16px 14px;margin:auto;border:1px solid #333;border-radius:14px;background:#0c0c0e;color:#e5e5e8;box-shadow:0 24px 90px #000a;overflow:auto}
.chat-image-viewer::backdrop{background:#000c}.chat-image-viewer>img{display:block;max-width:100%;width:auto;height:auto;max-height:calc(94dvh - 110px);object-fit:contain;margin:auto}.chat-image-viewer>p{margin:12px 0 0;text-align:center;color:#a9a9b1;font-size:12px}
.chat-image-close{position:absolute;right:10px;top:8px;width:30px;height:30px;border:1px solid #333;border-radius:8px;background:#161618;color:#ddd;font-size:23px;line-height:1;cursor:pointer}
.chat-image-menu{position:fixed;z-index:10000;box-sizing:border-box;min-width:174px;max-width:calc(100vw - 16px);padding:5px;border:1px solid #333333;border-radius:10px;background:#161616;box-shadow:0 16px 42px rgba(0,0,0,.58);color:#bdc5ce}
.chat-image-menu button{display:flex;align-items:center;box-sizing:border-box;width:100%;height:34px;padding:0 9px;text-align:left;border:0;border-radius:7px;background:transparent;color:inherit;font:inherit;font-size:10px;cursor:pointer}.chat-image-menu button:hover,.chat-image-menu button:focus-visible{background:#242424;color:#eef3f7;outline:none}.chat-image-menu button:disabled{color:#666;cursor:default;background:transparent}
.topbar-tools{display:flex;align-items:center;gap:6px;padding-right:10px;margin-right:2px;border-right:1px solid #2a2a2a}
.topbar-actions :is(.animator-topbar-button,.diagnostics-button,.studio-status,.signin-button){display:flex;align-items:center;justify-content:center;height:32px;padding:0 10px;border:1px solid #303030;border-radius:8px;background:#161616;color:#c2c7ce;font-size:10px;font-weight:550;box-shadow:none}
.topbar-actions :is(.animator-topbar-button,.diagnostics-button,.studio-status,.signin-button):hover:not(:disabled){background:#242424;border-color:#454545;color:#eef3f7}
.topbar-actions .animator-topbar-button[aria-expanded="true"]{background:#242424;border-color:#3989b2}
.topbar-actions .diagnostics-button:disabled{opacity:1;color:#646973;border-color:#262626}
.topbar-actions .signin-button.signed-in{background:#161616;border-color:#303030;color:#c2c7ce}
@container chat (max-width:580px){.topbar-tools{gap:4px;padding-right:6px;margin-right:0}.topbar-actions :is(.animator-topbar-button,.diagnostics-button,.studio-status,.signin-button){padding-inline:7px}.topbar-actions .studio-status [data-connection-label]{max-width:130px}}
