/* A quiet, spacious writing room with a cobalt action layer. */
.chat-v2 {
  --chat-bg:#090e1b; --chat-panel:#121c30; --chat-panel-deep:#0e1729;
  --chat-soft:#17243d; --chat-line:#25334f; --chat-text:#f6f8ff;
  --chat-muted:#a4b4cf; --chat-quiet:#7e91b2; --chat-cobalt:#3366ff;
  --chat-cobalt-soft:#152754; --chat-coral:#ff6a55; --chat-lime:#c7fa45;
  color:var(--chat-text);
}
.chat-v2 .chat-page-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 25px; }
.chat-v2 .chat-page-label { display:flex;align-items:center;gap:10px;color:var(--chat-quiet);font-size:11px;font-weight:750;letter-spacing:.15em; }
.chat-v2 .chat-page-label i { display:block;width:3px;height:3px;border-radius:50%;background:var(--chat-cobalt); }
.chat-v2 .chat-page-heading h1 { margin:10px 0 0;color:var(--chat-text);font-size:25px;line-height:1.35;letter-spacing:-.045em;font-weight:600; }
.chat-v2 .chat-catalog-link { display:flex;align-items:center;gap:10px;padding:8px 0;color:var(--chat-muted);font-size:12px;font-weight:550; }
.chat-v2 .chat-catalog-link svg { width:16px;height:16px;color:#668bff; }
.chat-v2 .chat-catalog-link:hover { color:var(--chat-text); }
.chat-v2 .chat-layout { position:relative;display:grid;grid-template-columns:208px minmax(0,1fr);height:calc(100dvh - 224px);min-height:650px;max-height:920px;overflow:hidden;border:1px solid var(--chat-line);border-radius:20px;background:var(--chat-bg);box-shadow:0 20px 55px -45px #0008; }
.chat-v2 .chat-sidebar { display:flex;flex-direction:column;gap:0;min-width:0;padding:21px 13px 18px;background:var(--chat-panel);border-right:1px solid var(--chat-line); }
.chat-v2 .chat-sidebar-heading { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 9px;margin-bottom:18px; }
.chat-v2 .chat-sidebar-heading>span { display:flex;align-items:center;gap:10px;color:var(--chat-text);font-size:12px;font-weight:650; }
.chat-v2 .chat-sidebar-heading small { color:var(--chat-quiet);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums; }
.chat-v2 .chat-new-button { display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:10px 12px;border:1px solid #4d77ff;border-radius:10px;background:var(--chat-cobalt);color:white;font-size:11px;font-weight:650;text-align:left;transition:background .18s,transform .18s; }
.chat-v2 .chat-new-button>.icon { width:16px;height:16px; }
.chat-v2 .chat-new-symbol { margin-left:auto;font-size:17px;line-height:1;font-weight:450; }
.chat-v2 .chat-new-button:hover { background:#4776ff;transform:translateY(-1px); }
.chat-v2 .chat-list-label { padding:0 10px;margin-top:28px;margin-bottom:13px;color:var(--chat-quiet);font-size:11px;font-weight:650;letter-spacing:.13em; }
.chat-v2 .conversation-list { display:flex;flex-direction:column;gap:5px;min-height:90px;max-height:390px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--chat-line) transparent; }
.chat-v2 .conversation-item { position:relative;display:flex;flex-direction:row;align-items:center;gap:9px;width:100%;padding:12px 10px;border:1px solid transparent;border-radius:9px;color:var(--chat-muted);background:transparent;text-align:left;transition:background .18s,border-color .18s; }
.chat-v2 .conversation-item:hover { color:var(--chat-text);background:var(--chat-soft); }
.chat-v2 .conversation-item.active { color:var(--chat-text);border-color:#3864cf55;background:var(--chat-cobalt-soft); }
.chat-v2 .conversation-icon { display:grid;flex-shrink:0;place-items:center; }
.chat-v2 .conversation-icon svg { width:15px;height:15px;stroke-width:1.6;color:#7897e5; }
.chat-v2 .conversation-item .conversation-meta { min-width:0;display:flex;flex:1;flex-direction:column;gap:5px; }
.chat-v2 .conversation-item strong { display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:inherit;font-size:11px;font-weight:600;line-height:1.4; }
.chat-v2 .conversation-item small { display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--chat-quiet);font-size:11px;line-height:1.4;font-weight:400; }
.chat-v2 .conversation-active-dot { position:absolute;right:9px;top:16px;width:4px;height:4px;border-radius:50%;background:var(--chat-lime); }
.chat-v2 .chat-rail-empty { padding:13px 10px 20px; }
.chat-v2 .chat-rail-empty>.icon { width:23px;height:23px;margin-bottom:16px;color:#5372ad;stroke-width:1.3; }
.chat-v2 .chat-rail-empty strong { display:block;margin-bottom:8px;color:var(--chat-muted);font-size:11px;font-weight:500; }
.chat-v2 .chat-rail-empty p { margin:0;color:var(--chat-quiet);font-size:11px;line-height:1.8; }
.chat-v2 .chat-sidebar-note { padding:22px 10px 18px;margin-top:auto; }
.chat-v2 .chat-note-line { display:block;width:25px;height:2px;margin-bottom:16px;background:var(--chat-cobalt); }
.chat-v2 .chat-sidebar-note strong { display:block;margin-bottom:8px;color:var(--chat-muted);font-size:11px;font-weight:600; }
.chat-v2 .chat-sidebar-note p { margin:0;color:var(--chat-quiet);font-size:11px;line-height:1.8; }
.chat-v2 .chat-private { display:flex;align-items:flex-start;gap:8px;margin:0;padding:15px 10px 0;border-top:1px solid var(--chat-line);color:var(--chat-quiet);font-size:11px;line-height:1.7; }
.chat-v2 .chat-private svg { flex-shrink:0;width:13px;height:13px;margin-top:2px;color:#7790b7; }
.chat-v2 .chat-main { display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--chat-bg); }
.chat-v2 .chat-header { display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:77px;flex-shrink:0;padding:16px 28px;border-bottom:1px solid var(--chat-line);background:var(--chat-bg); }
.chat-v2 .chat-header-leading,.chat-v2 .chat-header-trailing { display:flex;align-items:center;gap:12px;min-width:0; }
.chat-v2 .model-select { display:flex;align-items:center;gap:11px;min-width:0;padding:0;border:0;background:none;color:var(--chat-text); }
.chat-v2 .chat-model-mark { display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border:1px solid #36589b;border-radius:11px;color:#e8efff;background:var(--chat-cobalt-soft);font-size:17px;font-weight:600; }
.chat-v2 .model-meta { display:flex;flex-direction:column;gap:4px;text-align:left; }
.chat-v2 .model-meta strong { color:var(--chat-text);font-size:13px;font-weight:650;line-height:1.3; }
.chat-v2 .model-meta small { color:var(--chat-quiet);font-size:11px;font-weight:450;line-height:1.3; }
.chat-v2 .model-select>.icon { width:14px;height:14px;margin-left:12px;color:var(--chat-quiet); }
.chat-v2 .model-select:hover .model-meta strong { color:#8aabff; }
.chat-v2 .chat-session-label { display:flex;align-items:center;gap:7px;color:var(--chat-quiet);font-size:11px;white-space:nowrap; }
.chat-v2 .chat-session-label i { width:4px;height:4px;border-radius:50%;background:var(--chat-cobalt); }
.chat-v2 .chat-body { display:flex;flex-direction:column;flex:1;min-height:0;gap:29px;padding:26px 35px;overflow-y:auto;background:var(--chat-bg);scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:var(--chat-line) transparent; }
.chat-v2 .chat-empty { display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;width:100%;max-width:690px;margin:auto;padding:26px 0 23px;text-align:left; }
.chat-v2 .chat-welcome-symbol { position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:24px;border:1px solid #3968ea;border-radius:14px;background:var(--chat-cobalt);color:white;transform:rotate(-5deg); }
.chat-v2 .chat-welcome-symbol>.icon { width:24px;height:24px;stroke-width:1.45;transform:rotate(5deg); }
.chat-v2 .chat-welcome-symbol>span { position:absolute;right:-4px;top:-4px;width:10px;height:10px;border:3px solid var(--chat-bg);border-radius:50%;background:var(--chat-lime); }
.chat-v2 .chat-welcome-label { margin-bottom:12px;color:var(--chat-quiet);font-size:11px;font-weight:650;letter-spacing:.15em; }
.chat-v2 .chat-empty h2 { margin:0;max-width:100%;color:var(--chat-text);font-size:clamp(31px,3vw,45px);font-weight:550;letter-spacing:-.065em;line-height:1.18; }
.chat-v2 .chat-empty h2>span { color:#789cff; }
.chat-v2 .chat-empty>p { max-width:100%;margin:17px 0 28px;color:var(--chat-muted);font-size:11px;font-weight:450;line-height:1.9; }
.chat-v2 .chat-suggestions { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;margin:0; }
.chat-v2 .chat-suggestion { position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:155px;padding:15px 14px 33px;border:1px solid var(--chat-line);border-radius:12px;background:var(--chat-panel);color:var(--chat-text);text-align:left;transition:transform .2s,border-color .2s,background .2s; }
.chat-v2 .chat-suggestion:hover { transform:translateY(-4px);border-color:#446bc6;background:var(--chat-soft); }
.chat-v2 .chat-suggestion-top { display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:19px; }
.chat-v2 .chat-suggestion-top>small { color:var(--chat-quiet);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums; }
.chat-v2 .chat-suggestion-icon { display:grid;place-items:center;color:#789cff; }
.chat-v2 .chat-suggestion-icon svg { width:18px;height:18px;stroke-width:1.5; }
.chat-v2 .chat-suggestion.coral .chat-suggestion-icon { color:var(--chat-coral); }
.chat-v2 .chat-suggestion.lime .chat-suggestion-icon { color:var(--chat-lime); }
.chat-v2 .chat-suggestion>strong { margin-bottom:7px;color:var(--chat-text);font-size:11px;font-weight:600;line-height:1.5;letter-spacing:-.02em; }
.chat-v2 .chat-suggestion-description { color:var(--chat-quiet);font-size:11px;line-height:1.7; }
.chat-v2 .chat-suggestion-arrow { position:absolute;right:14px;bottom:12px;display:flex;align-items:center;color:var(--chat-muted); }
.chat-v2 .chat-suggestion-arrow svg { width:15px;height:15px; }
.chat-v2 .chat-suggestion:hover .chat-suggestion-arrow { color:#8baaff; }
.chat-v2 .chat-composer-wrap { flex-shrink:0;padding:0 28px 13px;background:var(--chat-bg); }
.chat-v2 .chat-composer { margin:0;padding:16px 17px 12px;border:1px solid #3d5175;border-radius:16px;background:var(--chat-panel);box-shadow:0 8px 20px -12px #0007;transition:box-shadow .2s,border-color .2s; }
.chat-v2 .chat-composer:focus-within { border-color:#6688e4;box-shadow:0 0 0 3px #3366ff0e,0 8px 20px -12px #0007; }
.chat-v2 #chat-input { display:block;width:100%;min-height:52px;max-height:180px;margin:0;padding:0 0 7px;border:0!important;border-radius:0!important;outline:none;background:transparent!important;color:var(--chat-text);font:450 12px/1.8 'Manrope',sans-serif;resize:vertical;box-shadow:none!important; }
.chat-v2 #chat-input::placeholder { color:var(--chat-quiet);opacity:1; }
.chat-v2 #chat-input:disabled { opacity:.65;cursor:wait; }
.chat-v2 .chat-composer-bottom { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px; }
.chat-v2 .chat-composer-tools,.chat-v2 .chat-composer-submit { display:flex;align-items:center;gap:12px; }
.chat-v2 .chat-attachment-button { display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--chat-muted);transition:color .18s,background .18s; }
.chat-v2 .chat-attachment-button svg { width:19px;height:19px;stroke-width:1.6; }
.chat-v2 .chat-attachment-button:hover { background:#3366ff1c;color:#98b4ff; }
.chat-v2 .chat-composer-divider { width:1px;height:14px;background:var(--chat-line); }
.chat-v2 .chat-cost { display:flex;align-items:center;gap:4px;color:var(--chat-muted);font-size:11px;font-weight:500; }
.chat-v2 .chat-cost>.icon { width:13px;height:13px;color:#7e9fff;stroke-width:1.4; }
.chat-v2 .chat-cost small { color:var(--chat-quiet);font-size:11px;font-weight:400; }
.chat-v2 .chat-enter-hint { display:flex;align-items:center;gap:6px;color:var(--chat-quiet);font-size:11px; }
.chat-v2 .chat-enter-hint svg { width:12px;height:12px;transform:rotate(-90deg); }
.chat-v2 .chat-send { display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;padding:0;border:1px solid #4877ff;border-radius:10px;background:var(--chat-cobalt);color:white;box-shadow:none;transition:background .18s,transform .18s; }
.chat-v2 .chat-send>.icon { width:18px;height:18px;transform:rotate(-90deg);stroke-width:1.9; }
.chat-v2 .chat-send:hover:not(:disabled) { background:#4d7aff;transform:translateY(-2px); }
.chat-v2 .chat-send:disabled { opacity:.55;cursor:wait; }
.chat-v2 .chat-send:disabled>.icon { transform:none; }
.chat-v2 .chat-disclaimer { margin:11px 0 0;color:var(--chat-quiet);font-size:11px;text-align:center;line-height:1.6; }
.chat-v2 .chat-file-chip { display:flex;align-items:center;gap:7px;max-width:100%;width:fit-content;margin:0 0 14px;padding:7px 8px 7px 9px;border:1px solid #33528b;border-radius:8px;background:var(--chat-cobalt-soft);color:var(--chat-muted);font-size:11px; }
.chat-v2 .chat-file-chip>span { overflow:hidden;max-width:300px;text-overflow:ellipsis;white-space:nowrap; }
.chat-v2 .chat-file-chip>small { font-size:11px;color:var(--chat-quiet);white-space:nowrap; }
.chat-v2 .chat-file-chip>.icon { width:13px;height:13px;flex-shrink:0; }
.chat-v2 .chat-file-chip>button { display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:5px;background:transparent;color:var(--chat-muted); }
.chat-v2 .chat-file-chip>button:hover { color:var(--chat-text);background:var(--chat-soft); }
.chat-v2 .chat-file-chip>button>.icon { width:13px;height:13px; }
.chat-v2 .message { max-width:96%;gap:13px; }
.chat-v2 .message-avatar { width:30px;height:30px;border:1px solid #345399;border-radius:10px;background:var(--chat-cobalt-soft);color:#c8d8ff; }
.chat-v2 .message-avatar>svg { width:23px;height:23px; }
.chat-v2 .message-avatar>svg rect { fill:var(--chat-cobalt); }
.chat-v2 .message-avatar>svg path { stroke:white; }
.chat-v2 .message-content { color:var(--chat-muted);font-size:12px;line-height:1.95; }
.chat-v2 .message-author { display:flex;align-items:center;gap:9px;margin:0 0 8px;color:var(--chat-text);font-size:11px;font-weight:650; }
.chat-v2 .message-author small { padding:2px 5px;border:1px solid var(--chat-line);border-radius:4px;background:var(--chat-panel);color:var(--chat-quiet);font-size:11px;font-weight:400;line-height:1.2; }
.chat-v2 .message-text { white-space:normal; }
.chat-v2 .message.user .message-content { padding:13px 17px;border:1px solid #33579b;border-radius:15px 15px 3px 15px;background:var(--chat-cobalt-soft);color:#e1e9ff; }
.chat-v2 .message.user .message-author { color:#becfff;font-size:11px; }
.chat-v2 .message.assistant .message-content { padding-top:3px; }
.chat-v2 .chat-context-panel { display:none; }
.chat-v2 .chat-history-toggle,.chat-v2 .chat-history-close,.chat-v2 .chat-mobile-new,.chat-v2 .chat-history-overlay { display:none; }
.chat-v2 :is(button,a):focus-visible { outline:2px solid #8aa8ff;outline-offset:4px; }

/* Keep working text legible while labels remain secondary to the conversation. */
.chat-v2 .chat-sidebar-heading>span { font-size:13px; }
.chat-v2 .chat-new-button { font-size:12px; }
.chat-v2 .conversation-item strong { font-size:11px; }
.chat-v2 .conversation-item small { font-size:11px; }
.chat-v2 .chat-rail-empty strong { font-size:12px; }
.chat-v2 .chat-rail-empty p,.chat-v2 .chat-sidebar-note p { font-size:11px; }
.chat-v2 .chat-private { font-size:11px; }
.chat-v2 .model-meta strong { font-size:14px; }
.chat-v2 .model-meta small,.chat-v2 .chat-session-label { font-size:11px; }
.chat-v2 .chat-welcome-label { font-size:11px; }
.chat-v2 .chat-empty>p { font-size:13px; }
.chat-v2 .chat-suggestion>strong { font-size:12px; }
.chat-v2 .chat-suggestion-description { font-size:11px; }
.chat-v2 #chat-input { font-size:14px; }
.chat-v2 .chat-cost { font-size:11px; }
.chat-v2 .chat-cost small { font-size:11px; }
.chat-v2 .chat-disclaimer { font-size:11px; }
.chat-v2 .message-content { font-size:14px; }
.chat-v2 .message-author { font-size:12px; }

@media (min-width:1680px) {
  .chat-v2 .chat-layout { grid-template-columns:208px minmax(0,1fr) 208px; }
  .chat-v2 .chat-context-panel { display:flex;flex-direction:column;min-width:0;padding:27px 21px;background:var(--chat-panel-deep);border-left:1px solid var(--chat-line); }
  .chat-v2 .chat-context-label { color:var(--chat-quiet);font-size:11px;font-weight:650;letter-spacing:.12em; }
  .chat-v2 .chat-context-model { display:flex;align-items:flex-start;flex-direction:column;margin:25px 0 17px; }
  .chat-v2 .chat-context-model-mark { display:grid;place-items:center;width:49px;height:49px;margin-bottom:17px;border:1px solid #3c5d9a;border-radius:15px;background:var(--chat-cobalt-soft);color:#d7e3ff;font-size:25px;font-weight:550; }
  .chat-v2 .chat-context-model h3 { margin:0 0 7px;color:var(--chat-text);font-size:16px;letter-spacing:-.04em;font-weight:650; }
  .chat-v2 .chat-context-model>span:last-child { color:var(--chat-quiet);font-size:11px; }
  .chat-v2 .chat-context-panel>p { margin:0 0 24px;color:var(--chat-muted);font-size:11px;line-height:1.9; }
  .chat-v2 .chat-context-features { display:flex;flex-direction:column;gap:15px; }
  .chat-v2 .chat-context-features>span { display:flex;align-items:center;gap:9px;color:var(--chat-muted);font-size:11px; }
  .chat-v2 .chat-context-features .icon { width:14px;height:14px;color:#6f8dc7;stroke-width:1.4; }
  .chat-v2 .chat-context-change { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:27px;padding:11px 0;border:0;border-top:1px solid var(--chat-line);border-radius:0;background:transparent;color:#8aaaff;font-size:11px;text-align:left; }
  .chat-v2 .chat-context-change>.icon { width:15px;height:15px; }
  .chat-v2 .chat-context-change:hover { color:var(--chat-text); }
  .chat-v2 .chat-context-tip { position:relative;margin-top:auto;padding:21px 0 9px; }
  .chat-v2 .chat-context-tip>span { color:var(--chat-quiet);font-size:11px;font-weight:600;letter-spacing:.1em; }
  .chat-v2 .chat-context-tip>p { position:relative;z-index:1;margin:12px 0 0;color:var(--chat-muted);font-size:11px;line-height:1.9; }
  .chat-v2 .chat-context-tip>i { display:block;width:34px;height:3px;margin-top:19px;background:var(--chat-cobalt); }
}
@media (max-width:1200px) {
  .chat-v2 .chat-layout { grid-template-columns:180px minmax(0,1fr); }
  .chat-v2 .chat-header { padding-inline:23px; }
  .chat-v2 .chat-body { padding-inline:25px; }
  .chat-v2 .chat-composer-wrap { padding-inline:23px; }
  .chat-v2 .chat-suggestions { gap:8px; }
  .chat-v2 .chat-suggestion { min-height:151px;padding:13px 11px 30px; }
  .chat-v2 .chat-suggestion>strong { font-size:11px; }
  .chat-v2 .chat-suggestion-description { font-size:11px; }
}
@media (max-width:1020px) and (min-width:761px) {
  .chat-v2 .chat-layout { grid-template-columns:156px minmax(0,1fr);min-height:650px; }
  .chat-v2 .chat-sidebar { padding-inline:9px; }
  .chat-v2 .chat-sidebar-heading { padding-inline:5px; }
  .chat-v2 .chat-sidebar-heading>span { font-size:11px;gap:7px; }
  .chat-v2 .chat-new-button { padding:9px 8px;font-size:11px; }
  .chat-v2 .chat-new-symbol { display:none; }
  .chat-v2 .chat-empty h2 { font-size:32px; }
  .chat-v2 .chat-empty>p { font-size:12px; }
  .chat-v2 .chat-suggestion-description { display:none; }
  .chat-v2 .chat-suggestion { min-height:114px; }
  .chat-v2 .chat-suggestion-top { margin-bottom:13px; }
  .chat-v2 .chat-body { padding:25px 20px; }
  .chat-v2 .chat-composer-wrap { padding-inline:20px; }
  .chat-v2 .chat-disclaimer { font-size:11px; }
}
@media (max-width:760px) {
  .chat-v2 .chat-page-heading { align-items:center;margin-bottom:19px; }
  .chat-v2 .chat-page-label { font-size:11px; }
  .chat-v2 .chat-page-heading h1 { max-width:260px;margin-top:10px;font-size:21px; }
  .chat-v2 .chat-catalog-link { font-size:11px;white-space:nowrap;gap:5px; }
  .chat-v2 .chat-catalog-link>.icon { width:14px;height:14px; }
  .chat-v2 .chat-layout { display:grid;grid-template-columns:minmax(0,1fr);height:calc(100dvh - 199px);max-height:none;min-height:650px;border-radius:16px; }
  .chat-v2 .chat-sidebar { display:flex;position:absolute;z-index:3;inset:0 auto 0 0;width:230px;max-width:calc(100% - 38px);padding:23px 16px;background:var(--chat-panel);border-right:1px solid #3c5277;transform:translateX(-101%);visibility:hidden;transition:transform .24s ease,visibility .24s;box-shadow:12px 0 35px #0005; }
  .chat-v2.history-is-open .chat-sidebar { transform:translateX(0);visibility:visible; }
  .chat-v2 .chat-history-overlay { position:absolute;display:block;z-index:2;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#03081296;opacity:0;visibility:hidden;transition:opacity .24s,visibility .24s; }
  .chat-v2.history-is-open .chat-history-overlay { opacity:1;visibility:visible; }
  .chat-v2 .chat-history-toggle,.chat-v2 .chat-history-close,.chat-v2 .chat-mobile-new { display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;padding:0;border:1px solid var(--chat-line);border-radius:8px;background:var(--chat-panel);color:var(--chat-muted); }
  .chat-v2 .chat-history-close { width:24px;height:24px;border:0;background:none;color:var(--chat-muted); }
  .chat-v2 .chat-history-toggle>.icon,.chat-v2 .chat-history-close>.icon,.chat-v2 .chat-mobile-new>.icon { width:15px;height:15px; }
  .chat-v2 .chat-header { min-height:72px;padding:14px 18px;gap:10px; }
  .chat-v2 .chat-header-leading { gap:13px; }
  .chat-v2 .chat-model-mark { width:31px;height:31px;border-radius:10px;font-size:15px; }
  .chat-v2 .model-select { gap:9px; }
  .chat-v2 .model-meta strong { font-size:13px; }
  .chat-v2 .model-meta small { font-size:11px; }
  .chat-v2 .model-select>.icon { margin-left:3px;width:12px;height:12px; }
  .chat-v2 .chat-session-label { display:none; }
  .chat-v2 .chat-body { gap:23px;padding:25px 22px; }
  .chat-v2 .chat-empty { max-width:500px;padding:16px 0; }
  .chat-v2 .chat-welcome-symbol { width:39px;height:39px;margin-bottom:23px;border-radius:12px; }
  .chat-v2 .chat-welcome-symbol>.icon { width:22px;height:22px; }
  .chat-v2 .chat-welcome-label { font-size:11px; }
  .chat-v2 .chat-empty h2 { font-size:36px; }
  .chat-v2 .chat-empty>p { max-width:340px;margin:16px 0 24px;font-size:12px;line-height:1.9; }
  .chat-v2 .chat-desktop-break { display:none; }
  .chat-v2 .chat-suggestions { grid-template-columns:repeat(3,minmax(0,1fr));gap:7px; }
  .chat-v2 .chat-suggestion { min-height:136px;padding:12px 10px 28px;border-radius:10px; }
  .chat-v2 .chat-suggestion-top { margin-bottom:13px; }
  .chat-v2 .chat-suggestion-top>small { font-size:11px; }
  .chat-v2 .chat-suggestion-icon>.icon { width:16px;height:16px; }
  .chat-v2 .chat-suggestion>strong { margin-bottom:6px;font-size:11px;line-height:1.6; }
  .chat-v2 .chat-suggestion-description { display:none; }
  .chat-v2 .chat-suggestion-arrow { right:9px;bottom:10px; }
  .chat-v2 .chat-suggestion-arrow>.icon { width:13px;height:13px; }
  .chat-v2 .chat-composer-wrap { padding:0 16px 14px; }
  .chat-v2 .chat-composer { padding:15px 14px 11px;border-radius:13px; }
  .chat-v2 #chat-input { min-height:54px;font-size:16px; }
  .chat-v2 .chat-composer-bottom { margin-top:5px; }
  .chat-v2 .chat-cost { font-size:11px; }
  .chat-v2 .chat-cost small { font-size:11px; }
  .chat-v2 .chat-enter-hint { display:none; }
  .chat-v2 .chat-disclaimer { max-width:340px;margin:10px auto 0;font-size:11px;line-height:1.7; }
  .chat-v2 .chat-file-chip>span { max-width:160px; }
  .chat-v2 .chat-file-chip>small { display:none; }
  .chat-v2 .message { max-width:100%;gap:10px; }
  .chat-v2 .message-content { font-size:13px; }
  .chat-v2 .message.user .message-content { padding:11px 14px; }
}
@media (max-width:400px) {
  .chat-v2 .chat-page-heading { gap:10px; }
  .chat-v2 .chat-page-heading h1 { font-size:18px;max-width:220px; }
  .chat-v2 .chat-catalog-link { font-size:11px; }
  .chat-v2 .chat-catalog-link>.icon { width:11px;height:11px; }
  .chat-v2 .chat-layout { min-height:650px; }
  .chat-v2 .chat-header { padding:13px 14px; }
  .chat-v2 .chat-header-leading { gap:9px; }
  .chat-v2 .chat-body { padding:20px 18px; }
  .chat-v2 .chat-empty h2 { font-size:31px; }
  .chat-v2 .chat-suggestion { min-height:115px;padding:10px 8px 27px; }
  .chat-v2 .chat-suggestion>strong { font-size:11px; }
  .chat-v2 .chat-suggestion-description { display:none; }
  .chat-v2 .chat-suggestion-top { margin-bottom:11px; }
  .chat-v2 .chat-suggestion-icon>.icon { width:15px;height:15px; }
  .chat-v2 .chat-composer-wrap { padding-inline:12px; }
  .chat-v2 .chat-composer-tools { gap:7px; }
  .chat-v2 .chat-model-mark { display:none; }
}
:root:not([data-theme="dark"]) .chat-v2 {
  --chat-bg:#f7f9ff;--chat-panel:#ffffff;--chat-panel-deep:#edf2ff;--chat-soft:#edf2ff;
  --chat-line:#dce4f3;--chat-text:#152243;--chat-muted:#536786;--chat-quiet:#6d7f9e;
  --chat-cobalt-soft:#e6eeff;
}
:root:not([data-theme="dark"]) .chat-v2 .chat-model-mark,:root:not([data-theme="dark"]) .chat-v2 .chat-context-model-mark { color:#234fa5;border-color:#adc3f0; }
:root:not([data-theme="dark"]) .chat-v2 .chat-suggestion.lime .chat-suggestion-icon { color:#6b880d; }
:root:not([data-theme="dark"]) .chat-v2 .message.user .message-content { color:#203c70;border-color:#b5c9f4; }
:root:not([data-theme="dark"]) .chat-v2 .message.user .message-author { color:#4868a3; }
@media (prefers-reduced-motion:reduce) {
  .chat-v2 *,.chat-v2 *::before,.chat-v2 *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
}
.chat-v2 .message-file { display:flex;align-items:center;gap:7px;width:fit-content;padding:6px 9px;margin:0 0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-strong);font-size:12px;color:var(--muted-strong); }
.chat-v2 .chat-suggestions .chat-suggestion { background:var(--chat-panel);border-color:var(--chat-line);color:var(--chat-text); }
.chat-v2 .chat-suggestions .chat-suggestion:hover { background:var(--chat-soft);border-color:#446bc6; }
body[data-page="chat"] .workspace-footer { display:none; }
