:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: #172c25;
  background: #f6f8f5;
  --pine: #132720;
  --green: #204b3a;
  --line: #dfe6df;
  --muted: #52665d;
  --sidebar-width: 248px;
  --panel-width: 322px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid #61957a; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #52665d; }
.icon-button:hover { background: #edf2ed; color: #183c2c; }
.logo { display: block; width: 25px; height: 25px; background: currentColor; mask: url('./ximu-chat-logo.png') center / contain no-repeat; }
.layout { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }

.sidebar { width: var(--sidebar-width); flex: none; display: flex; flex-direction: column; padding: 30px 19px 19px; background: var(--pine); color: #ebf4ed; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 38px; }
.brand-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 13px; color: #d9f5ce; background: #294537; border: 1px solid #496653; }
.brand strong { display: block; font-size: 1.0625rem; font-weight: 700; letter-spacing: .04em; line-height: 1.35; }
.brand-caption { display: block; margin-top: 5px; font-size: .625rem; font-weight: 700; letter-spacing: .23em; color: #a0b6a7; }
.new-chat { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 11px; background: #d2efb9; color: #173526; font-size: .9rem; font-weight: 700; }
.new-chat:hover { background: #e0f7ce; }
.new-chat .icon { width: 18px; height: 18px; stroke-width: 2; }
.history-heading { display: flex; align-items: center; gap: 7px; margin: 34px 9px 13px; color: #b1c4b8; }
.history-heading h2 { margin: 0; font-size: .84rem; font-weight: 600; }
.history-heading .icon { width: 16px; height: 16px; }
.history { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.history-empty { margin: 3px 9px; font-size: .84rem; color: #a0b2a8; }
.history-entry { display: flex; align-items: center; width: 100%; min-width: 0; margin-bottom: 4px; border-radius: 9px; }
.history-entry:hover, .history-entry:focus-within, .history-entry.active { background: #294237; }
.history-select { flex: 1; min-width: 0; overflow: hidden; padding: 10px 4px 10px 10px; border: 0; background: transparent; color: #e1eee4; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.history-delete { flex: none; margin: 0 4px; width: 32px; height: 32px; color: #b1c4b8; opacity: 0; }
.history-delete:hover { background: #385548; color: #fff; }
.history-delete .icon { width: 16px; height: 16px; }
.history-entry:hover .history-delete, .history-entry:focus-within .history-delete, .history-entry.active .history-delete { opacity: 1; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; border-top: 1px solid #31473c; margin-top: 12px; padding: 19px 6px 3px; }
.device-icon { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 9px; color: #c5dfcb; background: #273f34; }
.device-icon .icon { width: 18px; height: 18px; }
.sidebar-footer strong, .sidebar-footer div > span { display: block; }
.sidebar-footer strong { font-size: .875rem; font-weight: 600; }
.sidebar-footer div > span { margin-top: 3px; color: #a9bdb0; font-size: .75rem; }

.workspace { display: flex; flex: 1; min-width: 0; flex-direction: column; background: #f6f8f5; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 76px; padding: 0 29px; border-bottom: 1px solid #e2e8e1; background: #f9fbf8; }
.workspace-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.workspace-heading .icon { color: #507060; }
.workspace-heading h1 { margin: 0; min-width: 0; font-size: .975rem; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.connection-toggle { display: flex; flex: none; align-items: center; gap: 8px; min-height: 36px; max-width: 50%; padding: 0 10px; border: 1px solid #dce5da; border-radius: 9px; background: #fff; color: #3d564a; font-size: .8125rem; font-weight: 600; }
.connection-toggle:hover, .connection-toggle[aria-expanded="true"] { border-color: #bfd2c3; background: #eef5ed; }
.connection-toggle .icon { width: 16px; height: 16px; margin-left: 3px; }
#connection-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8b9f92; flex: none; }
.is-configured .status-dot { background: #438b5f; }
.mobile-menu { display: none; }

.chat-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.welcome { margin: auto; width: min(100%, 750px); padding: 22px 30px 36px; text-align: center; }
.hero-symbol { position: relative; display: grid; width: 204px; height: 145px; margin: 0 auto 15px; place-items: center; }
.hero-symbol::before { content: ''; position: absolute; inset: 6px 22px; background: radial-gradient(ellipse, #d8e7da 0%, #eaf1e8 50%, transparent 74%); }
.hero-mark { position: relative; display: grid; width: 80px; height: 80px; place-items: center; border-radius: 22px; background: linear-gradient(145deg, #315c47, #17372b); border: 1px solid #315740; color: #d8efc9; box-shadow: 0 8px 19px #224f3a36, inset 0 1px #ffffff25; }
.hero-mark .logo { width: 47px; height: 47px; }
.welcome h2 { margin: 0; color: #162d24; font-size: clamp(1.8rem, 3.2vw, 2.875rem); letter-spacing: -.045em; line-height: 1.24; font-weight: 750; }
.welcome > p { margin: 13px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.suggestions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 549px); margin: 36px auto 0; }
.suggestion { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 58px; padding: 8px 11px; border: 1px solid #dde6dc; border-radius: 13px; background: #fff; color: #273e33; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.suggestion:hover { background: #f0f6ef; border-color: #bdcfbe; }
.suggestion-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none; }
.suggestion-icon .icon { width: 17px; height: 17px; }
.mint { background: #e3f0e4; color: #3d6950; }
.lilac { background: #eee9f7; color: #665382; }
.sand { background: #f5eedc; color: #815b25; }

.messages { width: min(100%, 838px); margin: 0 auto; padding: 35px 32px 20px; }
.message { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 25px; }
.message-user { justify-content: flex-end; }
.message-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #254d3a; color: #d8efc9; }
.message-avatar .logo { width: 22px; height: 22px; }
.message-body { min-width: 0; max-width: calc(100% - 46px); overflow-wrap: anywhere; }
.message-assistant .message-body { flex: 1; }
.message-user .message-body { max-width: 85%; border: 1px solid #dce8d9; border-radius: 15px 15px 4px 15px; padding: 11px 15px; background: #eaf2e7; }
.message-label { display: block; margin: 4px 0 7px; font-size: .875rem; font-weight: 700; }
.message-content { line-height: 1.7; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content a { color: #216448; }
.message-content blockquote { margin-left: 0; border-left: 3px solid #b5caba; padding-left: 12px; color: var(--muted); }
.message-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.message-content td, .message-content th { border: 1px solid #cfddd3; padding: 5px 8px; }
.plain-text { white-space: pre-wrap; }
.message-content code { font-size: .9em; border-radius: 4px; padding: 2px 4px; background: #e6eee6; }
.code-block { display: grid; margin: 12px 0; border: 1px solid #dce7dd; border-radius: 10px; overflow: hidden; background: #edf3ed; }
.code-header { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 5px 10px; background: #e3ede3; color: var(--muted); font-size: .8125rem; }
.code-header button { border: 0; border-radius: 6px; padding: 5px 8px; background: #f7faf7; color: #294f3b; font-weight: 600; }
.code-header button:hover { background: #fff; }
.code-block pre { overflow-x: auto; margin: 0; padding: 13px; }
.code-block pre code { background: transparent; padding: 0; }
.message-status { display: block; margin-top: 7px; color: var(--muted); font-size: .8125rem; }
.stream-status { padding-top: 4px; color: var(--muted); }

.composer-area { flex: none; width: min(100%, 838px); margin: 0 auto; padding: 0 30px 23px; }
.composer { display: grid; gap: 8px; min-height: 65px; padding: 9px 10px; border: 1px solid #d6e2d7; border-radius: 16px; background: #fff; box-shadow: 0 3px 12px #183e2a08; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; min-width: 0; }
.composer:focus-within { border-color: #8fae99; }
.composer.is-dragging { background: #edf6ec; border-color: #659778; outline: 2px dashed #659778; outline-offset: -5px; }
.attach-button { flex: none; width: 38px; height: 44px; color: #365f4b; }
.attach-button:disabled { opacity: .45; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.draft-attachments { max-height: min(112px, 22dvh); overflow-y: auto; padding: 1px 1px 3px; scrollbar-width: thin; }
.message-attachments { margin: 0 0 6px; }
.message-attachments:last-child { margin-bottom: 0; }
.attachment-chip { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 6px 8px; border: 1px solid #d9e7da; border-radius: 9px; background: #f3f7f2; color: #284b3b; font-size: .8125rem; }
.draft-attachments .attachment-chip { flex: 0 0 auto; width: max-content; max-width: min(235px, 100%); padding: 4px 4px 4px 8px; }
.attachment-chip > .icon { width: 16px; height: 16px; }
.attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-size { flex: none; color: var(--muted); font-size: .75rem; }
.attachment-remove { flex: none; width: 26px; height: 26px; }
.attachment-remove .icon { width: 14px; height: 14px; }
.attachment-notice { margin: 0 3px; color: #813d25; font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; resize: none; padding: 11px 0; border: 0; outline: none; background: transparent; color: #18392b; line-height: 22px; }
.composer textarea::placeholder { color: #677b70; }
.composer textarea:focus-visible { outline: none; }
.send { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--green); color: #ecf5eb; display: grid; place-items: center; flex: none; }
.send .icon { width: 20px; height: 20px; }
.send:hover:not(:disabled) { background: #30654d; }
.send:disabled { background: #dfebe0; color: #4e715f; }
.composer-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: #52665d; font-size: .75rem; }
.composer-hint kbd { font: inherit; font-weight: 650; }
.hint-divider { width: 3px; height: 3px; margin: 0 4px; border-radius: 50%; background: #9bb0a2; }
.chat-error { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; border-radius: 9px; padding: 9px 12px; background: #f8eae3; color: #813d25; font-size: .875rem; overflow-wrap: anywhere; }
.chat-error button { flex: none; border: 0; border-radius: 6px; padding: 5px 8px; background: #fff4ef; color: #74331e; font-weight: 700; }

.connection { position: relative; width: var(--panel-width); flex: none; overflow-y: auto; padding: 29px 24px 24px; background: #fff; border-left: 1px solid #e0e7df; }
.panel-heading { position: relative; padding-bottom: 24px; border-bottom: 1px solid #e7ece6; }
.panel-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #d9e8db; border-radius: 13px; background: #eaf2e8; color: #346047; margin-bottom: 17px; }
.panel-icon .icon { width: 22px; height: 22px; }
.close-settings { position: absolute; top: 1px; right: -3px; }
.panel-heading > h2 { margin: 0; font-size: 1.375rem; letter-spacing: -.025em; }
.panel-heading > p { margin: 7px 0 0; color: var(--muted); font-size: .875rem; }
.connection-form { display: grid; gap: 19px; margin-top: 23px; }
.field label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 700; }
.field input { width: 100%; height: 43px; border: 1px solid #dce5dc; border-radius: 9px; padding: 0 11px; color: #203c2d; background: #f8faf7; font-size: 1rem; }
.field input::placeholder { color: #687d70; font-size: .875rem; }
.field input[aria-invalid="true"] { border-color: #b96752; }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.key-field { position: relative; }
.key-field input { padding-right: 41px; }
.key-toggle { position: absolute; top: 4px; right: 4px; }
.key-toggle .icon { width: 18px; height: 18px; }
.save-button { min-height: 44px; border: 0; border-radius: 9px; background: var(--green); color: #f0f7ef; font-size: .875rem; font-weight: 680; }
.save-button:hover { background: #2e624a; }
.settings-status { color: #2f6948; margin: -9px 0 0; font-size: .8125rem; line-height: 1.45; overflow-wrap: anywhere; }
.settings-status.error { color: #8a3927; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; padding: 11px 10px; margin-top: 22px; border-radius: 9px; background: #f2f6f1; color: var(--muted); }
.privacy-note .icon { width: 15px; height: 15px; margin-top: 1px; }
.privacy-note p { margin: 0; font-size: .75rem; line-height: 1.5; }
.scrim { display: none; }

@media (max-width: 1130px) {
  :root { --sidebar-width: 204px; --panel-width: 292px; }
  .sidebar { padding-inline: 15px; }
  .connection { padding-inline: 20px; }
  .workspace-header { padding-inline: 20px; }
  .welcome { padding-inline: 20px; }
  .suggestions { gap: 7px; }
  .suggestion { gap: 6px; padding-inline: 7px; }
}

@media (max-width: 980px) {
  .connection { position: fixed; z-index: 3; inset: 0 0 0 auto; height: 100dvh; width: min(340px, 100%); box-shadow: -10px 0 30px #13272024; }
  .scrim { display: block; position: fixed; z-index: 2; inset: 0; width: 100%; height: 100%; border: 0; background: #10251b57; }
  .composer-area, .messages { padding-inline: 22px; }
}

@media (max-width: 680px) {
  .sidebar { position: fixed; z-index: 3; inset: 0 auto 0 0; width: min(272px, 90%); display: none; }
  .sidebar.open { display: flex; }
  .history-delete { opacity: 1; }
  .workspace-header { padding: 0 12px; min-height: 60px; gap: 8px; }
  .workspace-heading { flex: 1; }
  .workspace-heading > .icon { display: none; }
  .mobile-menu { display: grid; flex: none; }
  .connection-toggle { max-width: 46%; }
  .welcome { padding: 16px 12px 22px; }
  .suggestions { margin-top: 23px; max-width: 396px; }
  .suggestion { padding: 7px 3px; min-height: 62px; flex-direction: column; justify-content: center; gap: 4px; }
  .suggestion-icon { width: 25px; height: 25px; border-radius: 7px; }
  .suggestion-icon .icon { width: 15px; height: 15px; }
  .messages { padding: 22px 13px 7px; }
  .composer-area { padding: 0 11px max(10px, env(safe-area-inset-bottom)); }
  .composer-hint { display: none; }
}

@media (max-height: 650px) {
  .hero-symbol { transform: scale(.77); margin-top: -15px; margin-bottom: -9px; }
  .welcome { padding-top: 12px; padding-bottom: 20px; }
  .suggestions { margin-top: 20px; }
}

:root {
  color: #172033;
  background: #f4f7fb;
  --pine: #f7faff;
  --green: #1677ff;
  --line: #dce5ef;
  --muted: #6d7a8c;
  --ink: #172033;
  --navy: #17233d;
  --paper: #ffffff;
  --paper-soft: #f8fbff;
  --blue: #1677ff;
  --blue-dark: #0f62d6;
  --blue-soft: #eaf4ff;
  --blue-line: #bfdcff;
  --cyan: #39c5ff;
  --violet-soft: #f0edff;
  --amber-soft: #fff4dc;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 0%, #d8eaff8f, transparent 31%),
    radial-gradient(circle at 8% 92%, #e6f1ff80, transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
}

::selection { background: #cfe6ff; color: #12325f; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline-color: #63a9ff; }

.sidebar {
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
  color: var(--navy);
  border-right: 1px solid #dfe9f4;
  box-shadow: 1px 0 #ffffff;
}
.brand-icon { color: #1677ff; background: linear-gradient(145deg, #ffffff, #edf7ff); border-color: #c9e4ff; box-shadow: 0 7px 15px #1677ff17, inset 0 1px #ffffff; }
.brand strong { color: #16223a; }
.brand-caption { color: #74839a; }
.new-chat { min-height: 44px; border-radius: 11px; background: linear-gradient(145deg, #2f93ff, #126de8); color: #fff; font-size: .9rem; font-weight: 700; box-shadow: inset 0 1px #ffffff42; }
.new-chat:hover { background: linear-gradient(145deg, #48a1ff, #1f79ef); }
.history-heading { color: #77869b; }
.history-empty { color: #8492a5; }
.history-entry:hover, .history-entry:focus-within { background: #edf5ff; }
.history-entry.active { background: #e2f0ff; }
.history-select { color: #263854; }
.history-delete { color: #8290a4; }
.history-delete:hover { background: #d9eaff; color: #0f62d6; }
.sidebar-footer { border-top-color: #dfe8f2; }
.device-icon { color: #1677ff; background: #e8f3ff; }
.sidebar-footer strong { color: #263854; }
.sidebar-footer div > span { color: #7d8ba0; }

.workspace {
  background: #fff;
}
.workspace-header { border-bottom-color: #dce6f1; background: #ffffffc9; backdrop-filter: blur(14px); }
.workspace-heading .icon { color: #1677ff; }
.workspace-heading h1 { color: #1b2942; }
.connection-toggle { border-color: #d7e4f2; background: #ffffffe8; color: #40516a; box-shadow: 0 2px 8px #31537d0d; }
.connection-toggle:hover, .connection-toggle[aria-expanded="true"] { border-color: #a9d1ff; background: #edf6ff; color: #0f62d6; }
.status-dot { background: #9aa8b8; }
.is-configured .status-dot { background: #20b26b; box-shadow: 0 0 0 3px #20b26b21; }
.icon-button { color: #6d7c91; }
.icon-button:hover { background: #edf5ff; color: #0f62d6; }

.hero-symbol::before { background: radial-gradient(ellipse, #d6e9ffb8 0%, #eaf4ffb8 48%, transparent 74%); }
.hero-mark { border-color: #cde6ff; background: linear-gradient(145deg, #ffffff, #eaf6ff); color: #1677ff; box-shadow: 0 15px 30px #1677ff22, inset 0 1px #ffffff; }
.welcome h2 { color: #17233d; letter-spacing: -.025em; }
.welcome > p { color: #687790; }
.suggestion { border-color: #dbe6f2; background: #fffffff0; color: #2b3d5a; box-shadow: 0 4px 12px #31537d0d; transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.suggestion:hover { border-color: #a9d1ff; background: #f2f8ff; box-shadow: 0 9px 22px #1677ff17; transform: translateY(-1px); }
.mint { background: #e8f3ff; color: #1677ff; }
.lilac { background: #f0edff; color: #715dd8; }
.sand { background: #fff4dc; color: #a66b14; }

.message-avatar { border: 1px solid #cde6ff; background: linear-gradient(145deg, #ffffff, #eaf6ff); color: #1677ff; box-shadow: 0 5px 12px #1677ff18; }
.message-user .message-body { border-color: #c7e1ff; background: linear-gradient(135deg, #eef7ff, #e3f0ff); box-shadow: 0 4px 10px #31537d0d; }
.message-label { color: #263854; }
.message-content a { color: #0f62d6; }
.message-content blockquote { border-left-color: #8ec3ff; color: #6d7a8c; }
.message-content td, .message-content th { border-color: #d5e2ef; }
.message-content code { background: #eaf1f8; }
.code-block { border-color: #d8e4f0; background: #f4f8fc; }
.code-header { background: #e9f1f8; color: #6d7a8c; }
.code-header button { background: #fff; color: #0f62d6; }
.code-header button:hover { background: #f2f8ff; }
.message-status, .stream-status { color: #718096; }

.composer { border-color: #d6e3f1; border-radius: 18px; background: #fffffffa; box-shadow: 0 12px 32px #31537d14, inset 0 1px #ffffff; }
.composer:focus-within { border-color: #73b5ff; box-shadow: 0 0 0 3px #1677ff1f, 0 12px 32px #31537d14; }
.composer.is-dragging { border-color: #1677ff; background: #eef7ff; outline-color: #1677ff; }
.attach-button { color: #1677ff; }
.attachment-chip { border-color: #d4e6f8; background: #f2f8ff; color: #294b73; }
.attachment-size { color: #74839a; }
.attachment-notice { color: #9a4f2d; }
.composer textarea { color: #1b2942; }
.composer textarea::placeholder { color: #8190a4; }
.send { background: linear-gradient(145deg, #2f93ff, #126de8); color: #fff; box-shadow: 0 7px 15px #1677ff2e; }
.send:hover:not(:disabled) { background: linear-gradient(145deg, #48a1ff, #1f79ef); }
.send:disabled { background: #dfe9f3; color: #718096; box-shadow: none; }
.composer-hint { color: #718096; }
.composer-hint kbd { padding: 2px 5px; border: 1px solid #d7e2ee; border-radius: 5px; background: #ffffffd9; color: #56677f; }
.hint-divider { background: #a5b1c0; }
.chat-error { background: #fff0e8; color: #8f4f2e; }
.chat-error button { background: #fff8f3; color: #7e4427; }

.connection { border-left-color: #dce6f1; background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%); box-shadow: -1px 0 #ffffff; }
.panel-heading { border-bottom-color: #e0e8f1; }
.panel-icon { border-color: #c4e0ff; background: #e8f3ff; color: #1677ff; }
.panel-heading > h2 { color: #17233d; }
.panel-heading > p { color: #6d7a8c; }
.field label { color: #2b3d5a; }
.field input { border-color: #d6e3f1; background: #fbfdff; color: #1b2942; }
.field input::placeholder { color: #8190a4; }
.field input:focus { border-color: #73b5ff; }
.field input[aria-invalid="true"] { border-color: #d66a4f; }
.field-hint { color: #74839a; }
.save-button { min-height: 44px; border-radius: 11px; background: linear-gradient(145deg, #2f93ff, #126de8); color: #fff; font-size: .9rem; font-weight: 700; box-shadow: inset 0 1px #ffffff42; }
.save-button:hover { background: linear-gradient(145deg, #48a1ff, #1f79ef); }
.settings-status { color: #0f62d6; }
.settings-status.error { color: #964a2e; }
.privacy-note { background: #eef6ff; color: #64748c; }
.key-toggle:hover { background: #edf5ff; }

.history, .chat-scroll, .connection, .draft-attachments { scrollbar-color: #a9c7e8 transparent; }

.delete-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #dce6f1; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px #17233d26; }
.delete-dialog::backdrop { background: #17233d66; }
.delete-dialog h2 { margin: 0; font-size: 1.125rem; }
.delete-dialog p { margin: 10px 0 24px; color: #40516a; font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.delete-actions { display: flex; justify-content: flex-end; gap: 8px; }
.delete-actions button { min-height: 40px; padding: 0 16px; border: 1px solid #d7e4f2; border-radius: 9px; background: #fff; color: #2b3d5a; font-size: .875rem; font-weight: 700; }
.delete-actions button:hover { background: #edf5ff; }
.delete-actions .delete-confirm { border-color: transparent; background: #b4232d; color: #fff; }
.delete-actions .delete-confirm:hover { background: #931c25; }

@media (max-width: 980px) {
  .connection { background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%); box-shadow: -12px 0 34px #1d365747; }
  .scrim { background: #10233d61; }
}

.logo {
  background: url('./chat-logo.svg') center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}
