
:root {
  color-scheme: light;
  --ink: #202a26;
  --muted: #727971;
  --green: #285547;
  --green-dark: #1c4035;
  --green-pale: #edf3ed;
  --line: #e5e7df;
  --canvas: #fcfcf9;
  --sidebar: #f4f5ef;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Lao", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: var(--canvas); font: 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid #4b8a6d; }
svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.7; }
button { transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
input, textarea, select { color: var(--ink); }
input::placeholder, textarea::placeholder { color: #92978f; }
.app-shell { display: flex; height: 100dvh; min-height: 500px; overflow: hidden; }
.sidebar { width: 250px; flex: 0 0 250px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 28px 18px 18px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; margin-bottom: 30px; }
.brand-symbol { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; color: white; background: var(--green); border-radius: 10px; box-shadow: inset 0 0 0 1px #ffffff12; }
.brand-symbol svg { width: 23px; height: 23px; }
.brand-copy { display: flex; flex-direction: column; }
.brand-name { font-size: 18px; font-weight: 650; letter-spacing: -.7px; line-height: 1.25; }
.brand-tag { font-size: 10px; letter-spacing: 1.65px; color: #858c7f; text-transform: uppercase; margin-top: 3px; }
.new-chat { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid #cfd8cd; background: #fcfdf9; font-size: 13px; font-weight: 600; color: #335546; box-shadow: 0 2px 3px #203b1d03; }
.new-chat:hover { background: #e8eee4; border-color: #b6c6b7; }
.side-label { text-transform: uppercase; letter-spacing: 1.15px; color: #92988c; font-size: 10px; font-weight: 650; padding: 0 11px; margin: 29px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.history-list { flex: 1; min-height: 40px; overflow-y: auto; scrollbar-width: thin; padding-bottom: 15px; }
.history-item { display: flex; align-items: center; gap: 9px; min-height: 39px; border-radius: 7px; padding: 0 8px 0 11px; margin-bottom: 3px; color: #70776c; }
.history-item:hover { background: #e9ece3; }
.history-item.active { color: #345343; background: #e4ebdd; }
.history-item > svg { width: 15px; height: 15px; }
.history-title { flex: 1; text-align: left; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 10px 0; }
.history-delete { display: flex; align-items: center; justify-content: center; opacity: 0; height: 25px; width: 23px; border-radius: 5px; }
.history-delete svg { width: 13px; height: 13px; }
.history-delete:hover { background: #d4ded0; }
.history-item:hover .history-delete, .history-delete:focus-visible { opacity: 1; }
.history-empty { padding: 4px 11px; font-size: 12px; color: #8a9184; line-height: 1.8; }
.sidebar-bottom { margin-top: auto; }
.connections-card { border: 1px solid #dce3d4; border-radius: 9px; padding: 13px 13px 12px; margin-bottom: 14px; background: #fbfcf7; }
.connection-count { font-size: 12px; font-weight: 550; display: flex; align-items: center; gap: 7px; }
.connections-card p { font-size: 11px; margin: 5px 0 10px; color: #8a9183; }
.connection-dots { display: flex; gap: 7px; align-items: center; }
.provider-dot { height: 7px; width: 7px; display: inline-block; flex-shrink: 0; border-radius: 50%; background: #b5bdb2; }
.provider-dot.openai { background: #4f8671; }
.provider-dot.anthropic { background: #cc977a; }
.provider-dot.gemini { background: #7e9cd5; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; text-align: left; color: #616b5b; font-size: 12px; border-radius: 7px; }
.side-link:hover { background: #e8ece2; }
.side-link svg { width: 16px; height: 16px; }
.profile { border-top: 1px solid #dfe5d7; padding: 17px 6px 0; margin-top: 14px; display: flex; align-items: center; gap: 10px; color: #6f7868; font-size: 11px; }
.profile-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 600; background: #e2e8d9; color: #667858; }
.profile strong { color: #475740; display: block; font-size: 12px; font-weight: 600; }
.mobile-header { display: none; }
.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.topbar { flex-shrink: 0; height: 77px; border-bottom: 1px solid #eceee6; padding: 0 35px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.breadcrumbs { display: flex; align-items: center; gap: 13px; color: #92978c; font-size: 12px; min-width: 0; }
.breadcrumbs strong { font-weight: 500; color: #495346; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs svg { width: 14px; height: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.mode-tag { display: flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #e5e9df; border-radius: 6px; color: #6c7964; font-size: 10px; white-space: nowrap; background: #f7f9f2; }
.mode-tag svg { width: 12px; height: 12px; }
.icon-button { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 7px; color: #858d7e; }
.icon-button:hover { background: #ecf0e6; color: #345343; }
.chat-scroll { overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; padding: 0 36px 22px; scroll-behavior: smooth; }
.welcome { width: 100%; max-width: 850px; margin: 49px auto 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #8a9381; text-transform: uppercase; font-size: 10px; letter-spacing: 1.65px; font-weight: 500; }
.welcome-mark { display: inline-flex; align-items: center; justify-content: center; height: 46px; width: 46px; border: 1px solid #dae4d3; border-radius: 14px; background: #eef3e8; color: #527247; margin-bottom: 21px; transform: rotate(-6deg); }
.welcome-mark svg { width: 24px; height: 24px; transform: rotate(6deg); }
.welcome h1 { font-size: clamp(30px, 3.3vw, 44px); font-weight: 480; letter-spacing: -1.9px; line-height: 1.17; margin: 13px 0 12px; }
.welcome h1 em, .welcome h1 span { color: #587150; font-style: normal; }
.welcome-description { color: #8a9084; font-size: 13px; max-width: 530px; line-height: 1.8; margin: 0 0 29px; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.provider-card { border: 1px solid #e3e7dc; border-radius: 11px; padding: 18px 17px 15px; background: #fff; text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s; }
.provider-card:hover { border-color: #bfcdb7; box-shadow: 0 4px 16px #29422106; transform: translateY(-2px); }
.provider-card-top { display: flex; align-items: center; justify-content: space-between; }
.provider-icon { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 9px; font-weight: 600; font-size: 18px; }
.provider-icon svg { width: 20px; height: 20px; }
.provider-icon.openai { background: #edf4ef; color: #2c6b51; }
.provider-icon.anthropic { background: #faf0e8; color: #bb7651; }
.provider-icon.gemini { background: #edf2ff; color: #7493d0; }
.provider-card h3 { margin: 13px 0 3px; font-size: 14px; letter-spacing: -.25px; font-weight: 600; }
.provider-card p { margin: 0; color: #93988d; font-size: 11px; line-height: 1.7; }
.provider-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; font-size: 10px; color: #9a9f93; gap: 7px; }
.provider-card-bottom > span { display: inline-flex; align-items: center; gap: 5px; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #c0c7b7; }
.status-dot.connected { background: #5c916b; }
.connect-link { color: #57744b; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; }
.connect-link svg { height: 12px; width: 12px; }
.prompt-section { margin-top: 31px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: #8a9281; font-size: 10px; font-weight: 550; letter-spacing: 1px; text-transform: uppercase; }
.section-heading span { font-size: 10px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #a1a696; }
.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prompt-card { display: flex; flex-direction: column; align-items: flex-start; padding: 13px 14px 14px; border-radius: 9px; background: #f4f6ef; border: 1px solid transparent; text-align: left; }
.prompt-card:hover { border-color: #d5dfcb; background: #eff3e9; }
.prompt-icon { color: #7c8c6f; margin-bottom: 9px; display: inline-flex; }
.prompt-icon svg { width: 15px; height: 15px; }
.prompt-label { font-size: 11px; font-weight: 550; color: #626f57; margin-bottom: 3px; }
.prompt-copy { font-size: 11px; line-height: 1.65; color: #929b87; }
.setup-banner { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 8px; background: #f4f5ee; margin: 21px 0 0; border: 1px solid #e7ebdf; }
.banner-icon { color: #7f8f70; display: flex; }
.banner-copy { flex: 1; color: #949b8b; font-size: 11px; }
.banner-copy strong { display: block; color: #627257; font-size: 12px; font-weight: 550; margin-bottom: 2px; }
.setup-banner > button { color: #58714b; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.setup-banner > button svg { width: 13px; height: 13px; }
.composer-wrap { padding: 12px 36px 18px; width: 100%; max-width: 922px; margin: 0 auto; flex-shrink: 0; background: var(--canvas); }
.model-bar { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 9px; min-height: 26px; }
.model-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.model-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e0e5d8; color: #617055; background: #f5f8ef; border-radius: 6px; padding: 5px 8px; font-size: 10px; max-width: 230px; }
.model-chip > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-chip svg { width: 12px; height: 12px; }
.model-chip button { display: flex; padding: 0; }
.add-model { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: #859076; font-size: 11px; border: 1px dashed #d9dfd1; border-radius: 6px; background: transparent; }
.add-model:hover { border-color: #9dac8c; color: #466239; }
.add-model svg { width: 12px; height: 12px; }
.mode-switch { display: flex; align-items: center; padding: 3px; background: #f0f2e9; border-radius: 6px; flex-shrink: 0; }
.mode-switch button { border-radius: 4px; padding: 4px 9px; font-size: 10px; color: #9ba18d; }
.mode-switch button.active, .mode-switch button[aria-pressed="true"] { color: #576b47; background: white; box-shadow: 0 1px 3px #31441f09; }
.composer { background: #fff; border: 1px solid #dce3d2; border-radius: 12px; box-shadow: 0 4px 14px #31441e04; overflow: hidden; }
.composer:focus-within { border-color: #9caf8c; box-shadow: 0 0 0 3px #edf3e6; }
.composer textarea { width: 100%; display: block; resize: none; border: none; background: transparent; outline: none; min-height: 65px; max-height: 170px; padding: 16px 17px 10px; line-height: 1.7; font-size: 13px; }
.composer textarea:focus-visible { outline: none; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 10px 17px; gap: 12px; }
.composer-hint { font-size: 10px; color: #a0a694; display: flex; align-items: center; gap: 5px; }
.composer-hint svg { width: 12px; height: 12px; }
.send-button { height: 31px; min-width: 31px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: var(--green); color: #fff; border-radius: 7px; font-size: 11px; }
.send-button:hover:not(:disabled) { background: var(--green-dark); }
.send-button svg { width: 16px; height: 16px; }
.send-button:disabled { background: #dfe5d8; color: #a2ad95; opacity: 1; }
.composer-footer { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 9px; color: #a6ac9d; font-size: 9px; text-align: center; }
.composer-footer svg { width: 11px; height: 11px; }
.turn { max-width: 1040px; margin: 30px auto; }
.user-message { margin: 0 0 19px auto; max-width: 85%; padding: 15px 18px; background: #eef2e8; border-radius: 13px 13px 2px 13px; color: #4c5c43; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; }
.user-label { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #929d85; margin-bottom: 5px; font-weight: 600; }
.response-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 15px; align-items: start; }
.response-card { background: white; border: 1px solid #e4e8dc; border-radius: 10px; overflow: hidden; min-width: 0; }
.response-header { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid #edf0e7; color: #5e6d52; font-size: 11px; }
.response-header .provider-icon { width: 25px; height: 25px; border-radius: 6px; }
.response-header .provider-icon svg { width: 16px; height: 16px; }
.response-header strong { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.response-header small { display: block; color: #a0a894; font-size: 9px; }
.response-body { padding: 18px; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; color: #4c5845; }
.response-body pre { background: #f5f7f0; border-radius: 6px; padding: 12px; white-space: pre-wrap; overflow-x: auto; font-size: 11px; }
.response-body code { font-family: ui-monospace, monospace; font-size: .9em; }
.response-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 11px; color: #9ca590; font-size: 9px; }
.response-footer button { display: inline-flex; align-items: center; gap: 5px; padding: 5px; font-size: 10px; }
.response-footer svg { width: 13px; height: 13px; }
.error-box { margin: 12px 0; background: #fcf3ee; border: 1px solid #eedbce; border-radius: 7px; padding: 12px; color: #9a6049; font-size: 12px; line-height: 1.7; }
.loading-dots { display: flex; gap: 5px; padding: 7px 0; }
.loading-dots span { width: 5px; height: 5px; background: #a5b49a; border-radius: 50%; animation: pulse 1.2s infinite; }
.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .4; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: #27352845; backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { display: flex; flex-direction: column; width: 100%; max-width: 540px; max-height: min(850px, 90dvh); background: #fdfdf9; border: 1px solid #ffffff7a; border-radius: 17px; box-shadow: 0 30px 110px #16271b30; overflow: hidden; }
.modal.wide { max-width: 680px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.6px; }
.modal-header p { font-size: 12px; margin: 5px 0 0; color: #8c9683; }
.modal-close { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #939c88; }
.modal-close:hover { background: #eef2e6; }
.modal-body { padding: 23px 26px; overflow-y: auto; }
.modal-footer { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 9px; background: #f7f9f2; }
.modal-intro { font-size: 12px; line-height: 1.8; color: #818d76; margin: 0 0 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.field > label, .field > span:first-child { color: #65765a; font-size: 11px; font-weight: 550; }
.field input:not([type="checkbox"]), .field select, .model-search, .model-custom input { width: 100%; height: 41px; border: 1px solid #dce4d2; border-radius: 7px; background: #fff; padding: 0 12px; font-size: 12px; }
.field input:focus, .field select:focus, .model-search:focus, .model-custom input:focus { border-color: #9eb58e; outline: 2px solid #edf4e5; outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input { padding-right: 43px !important; }
.input-wrap > button { position: absolute; right: 6px; height: 30px; width: 30px; display: grid; place-items: center; color: #89997b; }
.key-input { font-family: ui-monospace, monospace !important; letter-spacing: .2px; }
.help-text { font-size: 10px; color: #9ba68e; line-height: 1.7; margin: 0; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border-radius: 7px; font-size: 12px; font-weight: 550; line-height: 1.5; }
.primary-button { color: white; background: var(--green); border: 1px solid var(--green); }
.primary-button:hover:not(:disabled) { background: var(--green-dark); }
.secondary-button { border: 1px solid #d9e2ce; color: #6a7c5e; background: #fff; }
.secondary-button:hover:not(:disabled) { background: #f1f5e9; }
.danger-button { border: 1px solid #e8cebf; color: #a16449; background: #fff8f3; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; color: #537840; font-size: 11px; }
.text-button:hover { text-decoration: underline; }
.primary-button svg, .secondary-button svg, .danger-button svg, .text-button svg { height: 14px; width: 14px; }
.provider-tabs { display: flex; gap: 8px; margin-bottom: 23px; }
.provider-tab { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; border: 1px solid #e0e7d7; border-radius: 8px; padding: 11px 5px; font-size: 12px; color: #89957e; }
.provider-tab.active { border-color: #8da67a; background: #eff5e7; color: #496a34; box-shadow: 0 0 0 1px #8da67a11; }
.provider-tab .provider-icon { height: 21px; width: 21px; border-radius: 5px; }
.provider-tab .provider-icon svg { height: 15px; width: 15px; }
.connection-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.connection-item { display: flex; align-items: center; gap: 11px; border: 1px solid #dfe7d5; padding: 12px; border-radius: 8px; background: white; }
.connection-info { flex: 1; min-width: 0; }
.connection-info strong { font-size: 12px; color: #5b6f4d; display: block; font-weight: 550; overflow-wrap: anywhere; }
.connection-info p, .connection-info small { font-size: 10px; color: #95a187; margin: 3px 0 0; }
.pill { border-radius: 4px; padding: 2px 6px; color: #74935e; background: #edf4e4; font-size: 9px; white-space: nowrap; }
.empty-state { border: 1px dashed #dfe7d4; border-radius: 9px; padding: 23px; color: #95a186; font-size: 12px; text-align: center; }
.empty-state svg { margin: 0 auto 8px; color: #99ac86; }
.picker-list { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; max-height: 330px; overflow-y: auto; }
.picker-option { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid #e2e8d8; border-radius: 8px; background: #fff; text-align: left; width: 100%; color: #6c7b5f; }
.picker-option:hover { background: #f4f8ed; }
.picker-option.selected { background: #eef6e4; border-color: #adc797; }
.picker-option > div { flex: 1; min-width: 0; }
.picker-option strong { font-size: 12px; font-weight: 550; display: block; overflow-wrap: anywhere; }
.picker-option small { color: #9ba98b; font-size: 10px; display: block; }
.model-custom { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 17px; }
.model-custom label { font-size: 11px; color: #7b8e6b; display: block; margin-bottom: 8px; }
.model-custom > div { display: flex; gap: 8px; }
.model-custom input { min-width: 0; }
.model-custom button { flex-shrink: 0; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 120; padding: 12px 20px; max-width: calc(100vw - 40px); border-radius: 9px; background: #2d4b30; color: #fff; box-shadow: 0 6px 30px #23352225; font-size: 12px; }
.supplier-steps { margin: 5px 0 20px; display: flex; flex-direction: column; gap: 18px; }
.supplier-step { display: flex; gap: 13px; align-items: flex-start; }
.supplier-step > span:first-child { height: 27px; width: 27px; flex-shrink: 0; border-radius: 50%; background: #eaf2df; color: #69874f; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.supplier-step strong { display: block; font-size: 12px; color: #60794c; font-weight: 550; margin: 2px 0 4px; }
.supplier-step p { font-size: 12px; color: #919f81; margin: 0; line-height: 1.8; }
.supplier-note { background: #f4f6ed; border-radius: 8px; padding: 15px; border: 1px solid #e4ead8; font-size: 11px; color: #8b9a7b; line-height: 1.8; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.toggle-row label { font-size: 12px; color: #687c58; }
.toggle-row p { margin: 3px 0 0; font-size: 10px; color: #98a68a; }
.toggle-row input { accent-color: var(--green); width: 16px; height: 16px; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; padding: 13px 0 0; color: #98a58b; font-size: 10px; line-height: 1.8; }
.privacy-note svg { width: 14px; height: 14px; margin-top: 2px; }
.privacy-badge { display: inline-flex; align-items: center; gap: 5px; color: #97a387; font-size: 10px; }
.privacy-badge svg { width: 12px; height: 12px; }
.help-card { border: 1px solid #e1e8d6; background: #f7f9f1; border-radius: 8px; padding: 14px; margin: 15px 0; font-size: 11px; color: #95a382; line-height: 1.8; }
.help-card strong { color: #70845d; font-weight: 550; }
.mobile-backdrop { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .welcome { margin-top: 65px; } .welcome-description { margin-bottom: 35px; } .provider-card { padding: 22px; } .prompt-section { margin-top: 38px; } }
@media (max-height: 850px) and (min-width: 768px) { .welcome { margin-top: 30px; } .welcome-mark { margin-bottom: 12px; width: 38px; height: 38px; border-radius: 12px; } .welcome h1 { font-size: 37px; margin-top: 8px; } .welcome-description { margin-bottom: 21px; } .prompt-section { margin-top: 24px; } .provider-card { padding: 14px; } .provider-card-bottom { margin-top: 12px; } .setup-banner { margin-top: 17px; } .composer-wrap { padding-bottom: 13px; } }
@media (max-width: 1100px) { .sidebar { width: 225px; flex-basis: 225px; padding-left: 14px; padding-right: 14px; } .topbar { padding: 0 25px; } .chat-scroll { padding-left: 27px; padding-right: 27px; } .composer-wrap { padding-left: 27px; padding-right: 27px; } .provider-card { padding: 14px 12px; } .prompt-card { padding: 12px; } .welcome { margin-top: 34px; } .welcome h1 { font-size: 36px; } }
@media (max-width: 767px) {
  .app-shell { min-height: 400px; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 260px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px #223b1d15; }
  .sidebar.open { transform: translateX(0); }
  .mobile-backdrop { display: block; position: fixed; inset: 0; background: #23331f55; z-index: 25; }
  .mobile-header { display: flex; align-items: center; gap: 8px; }
  .topbar { height: 58px; padding: 0 15px; gap: 8px; }
  .breadcrumbs { font-size: 11px; gap: 7px; }
  .breadcrumbs > span:first-child { display: none; }
  .topbar-actions { gap: 6px; }
  .mode-tag { font-size: 9px; padding: 4px 7px; }
  .topbar-actions .icon-button { width: 28px; height: 28px; }
  .chat-scroll { padding: 0 20px 20px; }
  .welcome { margin-top: 27px; }
  .welcome-mark { height: 36px; width: 36px; border-radius: 11px; margin-bottom: 13px; }
  .welcome-mark svg { width: 21px; height: 21px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.25px; }
  .welcome h1 { font-size: 33px; letter-spacing: -1.5px; margin-top: 10px; }
  .welcome-description { font-size: 12px; line-height: 1.7; margin-bottom: 22px; }
  .provider-grid { gap: 9px; }
  .provider-card { padding: 12px 10px; }
  .provider-icon { width: 29px; height: 29px; border-radius: 8px; }
  .provider-card h3 { margin-top: 10px; font-size: 12px; }
  .provider-card p { font-size: 10px; }
  .provider-card-bottom { margin-top: 11px; font-size: 9px; flex-wrap: wrap; gap: 4px; }
  .connect-link { font-size: 10px; }
  .prompt-section { margin-top: 24px; }
  .prompt-grid { gap: 8px; }
  .prompt-card { padding: 11px 10px; }
  .prompt-label { font-size: 10px; }
  .prompt-copy { font-size: 10px; line-height: 1.6; }
  .setup-banner { padding: 11px; gap: 9px; margin-top: 18px; }
  .banner-copy { font-size: 10px; }
  .banner-copy strong { font-size: 11px; }
  .setup-banner > button { font-size: 10px; }
  .composer-wrap { padding: 9px 16px 12px; }
  .model-bar { flex-wrap: wrap; gap: 7px; }
  .model-chip { max-width: 190px; }
  .mode-switch { margin-left: auto; }
  .composer textarea { min-height: 58px; padding: 13px 13px 8px; font-size: 12px; }
  .composer-bottom { padding-left: 13px; }
  .composer-hint { font-size: 9px; }
  .composer-footer { font-size: 8px; }
  .modal-backdrop { padding: 14px; }
  .modal { border-radius: 13px; max-height: 92dvh; }
  .modal-header { padding: 19px 19px 15px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 19px; }
  .modal-footer { padding: 14px 19px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .provider-tabs { gap: 6px; }
  .provider-tab { font-size: 11px; padding: 10px 4px; }
  .provider-tab .provider-icon { height: 17px; width: 17px; }
  .history-delete { opacity: 1; }
  .turn { margin-top: 23px; }
  .response-grid { grid-template-columns: 1fr; }
  .user-message { max-width: 95%; }
}
@media (max-width: 420px) {
  .provider-grid { grid-template-columns: 1fr; gap: 8px; }
  .provider-card { position: relative; padding: 13px 14px 13px 55px; min-height: 78px; }
  .provider-card-top { position: absolute; left: 13px; top: 16px; }
  .provider-card-top > :not(.provider-icon) { display: none; }
  .provider-card h3 { margin: 0 0 2px; }
  .provider-card p { padding-right: 60px; }
  .provider-card-bottom { margin-top: 4px; }
  .provider-card-bottom .connect-link { position: absolute; right: 13px; top: 32px; }
  .prompt-grid { grid-template-columns: 1fr; gap: 7px; }
  .prompt-card { display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; padding: 10px 12px; }
  .prompt-icon { grid-row: span 2; margin: 1px 0 0; }
  .prompt-label { margin: 0; }
  .prompt-copy { font-size: 10px; }
  .setup-banner { align-items: flex-start; flex-wrap: wrap; }
  .setup-banner > button { margin-left: 27px; }
  .composer-hint { max-width: 230px; }
  .composer-footer { line-height: 1.5; }
  .section-heading span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Component alignment and accessible secondary text. */
.brand:hover { text-decoration: none; }
.brand-name > span { font-weight: 400; color: #7d8c74; }
.brand-tag { font-size: 8px; letter-spacing: 1.05px; }
.new-chat > span { margin-left: auto; color: #7e8c70; font-size: 12px; }
.new-chat { justify-content: flex-start; }
.side-link.selected { background: #e4ebdd; color: #385733; }
.side-link .pill { margin-left: auto; }
.side-link > svg:last-child:not(:first-child) { margin-left: auto; height: 13px; width: 13px; }
.profile > div { flex: 1; }
.profile small { display: block; font-size: 9px; }
.profile > svg { width: 12px; height: 12px; color: #91a080; }
.history-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.history-title svg { width: 13px; height: 13px; }
.provider-dot:not(.connected) { background: #b8c1ae; }
.mobile-menu { display: none; }
.desktop-breadcrumb { display: inline-flex; gap: 14px; }
.desktop-breadcrumb > span { color: #c3cbb9; }
.privacy-badge .status-dot { background: #8ba978; }
.welcome { position: relative; }
.welcome > .welcome-mark { position: absolute; top: 33px; right: 15px; width: 62px; height: 62px; border-radius: 17px; background: #f0f4e9; border-color: #e2ead7; transform: rotate(-9deg); }
.welcome > .welcome-mark svg { width: 30px; height: 30px; color: #8aa172; }
.welcome > .eyebrow { margin-bottom: 22px; }
.welcome .eyebrow > span { height: 5px; width: 5px; border-radius: 50%; background: #88a874; }
.provider-company { color: #707c64; font-size: 10px; margin-left: auto; padding-right: 7px; }
.provider-card-top > svg { width: 13px; height: 13px; color: #a2b18f; }
.provider-card-bottom { justify-content: flex-start; gap: 5px; color: #657858; }
.provider-card-bottom svg { width: 11px; height: 11px; }
.provider-card.is-connected { border-color: #b6cba3; background: #fcfef9; }
.provider-card.is-connected .status-dot { background: #6e9753; }
.provider-card.is-connected .provider-card-bottom > svg:last-child { margin-left: auto; }
.section-heading > span:first-child { color: #69785d; text-transform: uppercase; font-weight: 550; letter-spacing: 1px; }
.section-heading > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.section-heading > span:last-child svg { width: 11px; height: 11px; }
.prompt-card { position: relative; }
.prompt-card > svg.prompt-icon { width: 16px; height: 16px; margin-bottom: 10px; }
.prompt-card > svg:last-child { position: absolute; right: 12px; top: 13px; width: 12px; height: 12px; color: #a5b294; }
.composer-wrap > .setup-banner { margin: 0 0 16px; }
.banner-copy strong { display: inline; margin-right: 5px; }
.model-chip > button { min-width: 0; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 205px; }
.model-chip .chip-remove { width: 17px; height: 17px; flex-shrink: 0; border-radius: 3px; justify-content: center; }
.model-chip .chip-remove:hover { background: #e4ecd9; }
.model-bar > .mode-tag { border: 0; background: transparent; padding-right: 0; }
.composer-footer { justify-content: space-between; gap: 14px; }
.composer-footer > span:last-child > span { margin: 0 4px; }
.conversation { padding-top: 5px; }
.turn > .user-label { max-width: 85%; margin-left: auto; margin-bottom: 5px; }
.response-header > div { min-width: 0; flex: 1; }
.response-header > div > span { display: block; font-size: 9px; color: #768767; overflow-wrap: anywhere; }
.response-header > .icon-button { margin-left: auto; }
.loading-dots { align-items: center; gap: 9px; color: #7c8f6a; font-size: 11px; }
.loading-dots > svg { width: 14px; height: 14px; }
dialog.modal { padding: 0; margin: auto; }
dialog.modal:not([open]) { display: none; }
dialog.modal[open] { display: flex; }
.modal::backdrop { background: #27352845; backdrop-filter: blur(5px); }
.modal-header .eyebrow { font-size: 8px; letter-spacing: 1.4px; margin-bottom: 7px; }
.modal-footer { justify-content: space-between; }
.modal-footer > span { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: #738565; }
.modal-footer > span > svg { width: 11px; height: 11px; }
label.field { position: relative; color: #5f7252; font-size: 11px; font-weight: 550; }
.field .optional { position: absolute; right: 0; top: 0; color: #6e7e62; font-size: 9px; font-weight: 400; }
.field > input, .field > select, .field .input-wrap { margin-top: 2px; }
.input-wrap > svg { position: absolute; left: 12px; width: 14px; height: 14px; color: #93a281; }
.input-wrap > input { padding-left: 35px !important; }
.help-text > svg { width: 11px; height: 11px; display: inline-block; vertical-align: -2px; margin-right: 3px; }
.connect-submit { width: 100%; margin: 19px 0 0; }
.manual-connection { margin-top: 18px; border: 1px solid #e5ebdd; border-radius: 8px; padding: 12px; }
.manual-connection > summary { font-size: 11px; color: #6b815d; cursor: pointer; }
.manual-connection > p { margin-top: 10px; }
.manual-connection .field { margin: 12px 0; }
.model-search { display: flex; align-items: center; gap: 8px; padding: 0 11px; }
.model-search > svg { width: 14px; height: 14px; color: #8fa17c; }
.model-search input { border: 0; background: transparent; outline: none; width: 100%; min-width: 0; font-size: 12px; }
.model-search:focus-within { border-color: #9eb58e; outline: 2px solid #edf4e5; }
.picker-option > span { flex: 1; min-width: 0; }
.picker-option > .provider-icon { flex: 0 0 33px; }
.model-custom label { margin-bottom: 0; }
.model-custom .field-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.supplier-step h3 { font-size: 12px; font-weight: 550; color: #60794c; margin: 2px 0 4px; }
.supplier-note { margin-bottom: 17px; }
.supplier-note ~ .secondary-button, .supplier-note ~ .primary-button { width: 100%; }
.help-card h3 { margin: 8px 0 5px; color: #61764f; font-size: 12px; font-weight: 550; }
.help-card p { margin: 0; }
.toggle-row > span { flex: 1; }
.toggle-row strong { display: block; font-weight: 550; font-size: 12px; }
.toggle-row small { display: block; font-size: 10px; line-height: 1.7; margin-top: 4px; }
.toggle-row + .help-text { margin-top: 10px; }
.toast { display: flex; align-items: center; gap: 9px; }
.toast > svg { height: 14px; width: 14px; }
.toast .icon-button { height: 22px; width: 22px; color: #dbe5d2; }
.toast .icon-button > svg { width: 13px; height: 13px; }
.eyebrow, .welcome-description, .provider-card p, .side-label, .history-empty, .connections-card p, .prompt-copy, .section-heading > span:last-child, .banner-copy, .composer-hint, .composer-footer, .breadcrumbs, .privacy-badge, .modal-intro, .help-text, .privacy-note, .connection-info small, .picker-option small, .supplier-step p, .supplier-note, .help-card, .toggle-row small { color: #68735f; }
.help-text, .privacy-note { font-size: 11px; }
.composer-footer { font-size: 10px; }
.provider-card p, .prompt-copy { font-size: 12px; }
.composer-hint { font-size: 11px; }
@media (max-width: 1100px) { .welcome > .welcome-mark { right: 0; height: 49px; width: 49px; top: 42px; } .welcome h1 { padding-right: 48px; } .brand-tag { font-size: 7px; } }
@media (max-width: 767px) {
  .mobile-menu { display: inline-flex; }
  .desktop-breadcrumb { display: none; }
  .welcome > .welcome-mark { height: 43px; width: 43px; top: 31px; right: 0; border-radius: 12px; }
  .welcome > .welcome-mark svg { width: 24px; height: 24px; }
  .welcome > .eyebrow { font-size: 8px; letter-spacing: .8px; margin-bottom: 17px; }
  .welcome h1 { font-size: 31px; padding-right: 35px; }
  .provider-card p { font-size: 11px; }
  .prompt-copy { font-size: 11px; }
  .composer-footer { font-size: 9px; }
  .composer-footer > span:last-child { display: none; }
  .composer-footer { justify-content: center; }
  .composer-hint { font-size: 10px; }
  .composer-wrap > .setup-banner { margin-bottom: 10px; }
  .banner-copy strong { display: block; }
  .response-grid { grid-template-columns: 1fr !important; }
  .turn > .user-label { max-width: 95%; }
  dialog.modal { width: calc(100vw - 24px); }
  .modal-footer > span { font-size: 8px; }
  .model-custom .field-row { grid-template-columns: minmax(0, 1fr) auto; }
  .field .optional { font-size: 8px; }
  .brand-tag { font-size: 8px; }
}
@media (max-width: 420px) {
  .provider-card-bottom { margin-top: 5px; }
  .provider-card { min-height: 85px; padding-left: 57px; }
  .provider-card p { padding-right: 0; }
  .provider-card-top { top: 18px; }
  .provider-card-top .provider-company { display: none; }
  .provider-card h3 { font-size: 13px; }
  .provider-card-bottom { font-size: 10px; }
  .prompt-card > svg.prompt-icon { grid-row: span 2; margin: 2px 0 0; }
  .prompt-label, .prompt-copy { grid-column: 2; }
  .prompt-copy { padding-right: 11px; }
  .section-heading > span:first-child { display: block; }
  .section-heading > span:last-child { display: none; }
  .composer-wrap .setup-banner { flex-wrap: nowrap; align-items: center; }
  .composer-wrap .setup-banner > button { margin-left: 0; white-space: normal; line-height: 1.5; max-width: 85px; text-align: left; }
  .composer-wrap .banner-copy > span { font-size: 10px; line-height: 1.5; }
  .composer-wrap .banner-copy strong { margin-bottom: 2px; }
  .modal-footer .text-button { font-size: 10px; }
  .welcome h1 { font-size: 29px; }
  .model-chip > button { max-width: 180px; }
}

/* Session keys and explicit chat privacy controls. */
.disconnect-all { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; min-height: 34px; border: 1px solid #d9e1d2; background: #f6f8f2; border-radius: 7px; color: #405a43; font-size: 11px; font-weight: 600; }
.disconnect-all:hover:not(:disabled) { background: #e9efe3; border-color: #b6c7ae; }
.disconnect-all svg { width: 15px; height: 15px; }
.disconnect-key { min-height: 34px; padding: 7px 10px; font-size: 10px; white-space: nowrap; }
.disconnect-key svg { width: 13px; height: 13px; }
.spend-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 9px; font-size: 10px; color: #62725a; }
.spend-controls label { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.spend-controls select { padding: 4px 7px; border: 1px solid #dfe6d7; background: #fff; border-radius: 5px; color: #465d3c; font-size: 10px; }
.spend-controls > span { text-align: right; line-height: 1.5; }
.data-consent { padding: 10px 12px; margin-bottom: 9px; background: #f1f5eb; border: 1px solid #dce5d3; border-radius: 7px; display: flex; align-items: center; gap: 12px; }
.data-consent label { display: flex; align-items: flex-start; gap: 8px; flex: 1; color: #4d6443; font-size: 11px; line-height: 1.6; cursor: pointer; }
.data-consent input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--green); flex-shrink: 0; }
.data-consent .text-button { flex-shrink: 0; font-size: 10px; }
.legacy-notice { display: flex; align-items: center; gap: 10px; max-width: 850px; margin: 14px auto 0; padding: 11px 13px; border: 1px solid #e4dfc6; background: #faf8ee; border-radius: 8px; color: #6b6245; font-size: 11px; }
.legacy-notice > span { flex: 1; }
.legacy-notice > svg { width: 15px; height: 15px; }
.legacy-notice button { font-size: 10px; white-space: nowrap; }
.legacy-history { border: 1px solid #e2dfce; background: #faf8f0; border-radius: 8px; padding: 14px; margin: 16px 0; }
.legacy-history h3 { font-size: 12px; margin: 0 0 6px; color: #655d41; }
.legacy-history p { margin: 0 0 12px; font-size: 11px; color: #6b674f; line-height: 1.6; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.privacy-actions button { flex: 1; min-width: 150px; font-size: 11px; }
.history-storage-status { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 11px 12px; margin: 8px 0; border: 1px solid #e0e5d8; border-radius: 8px; background: #f5f8ef; color: #526246; text-align: left; font-size: 11px; line-height: 1.5; }
.history-storage-status svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.saved-models { padding-top: 16px; }
.saved-model-list { max-height: 260px; border: 1px solid #dce5d2; border-radius: 9px; }
.saved-model-list .picker-option { width: 100%; }
.saved-model-list .picker-option:disabled { opacity: .55; cursor: default; }
.saved-model-list .picker-option > span { min-width: 0; }
.saved-model-prompt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.model-list-heading { margin: 20px 0 10px; }
.usage-line { font-variant-numeric: tabular-nums; font-size: 10px; color: #63715d; }
.help-card > button { margin-top: 12px; }
@media (max-width: 767px) {
 .sidebar { visibility: hidden; } .sidebar.open { visibility: visible; }
 .topbar-actions { gap: 4px; }
 .disconnect-all { padding: 6px 8px; font-size: 10px; }
 .disconnect-all svg { width: 13px; height: 13px; }
 .spend-controls { align-items: flex-start; gap: 7px; font-size: 9px; }
 .spend-controls > span { max-width: 46%; }
 .spend-controls label { gap: 5px; flex-wrap: wrap; }
 .spend-controls select { font-size: 10px; }
 .data-consent { display: block; padding: 8px 10px; }
 .data-consent label { font-size: 10px; }
 .data-consent .text-button { margin: 3px 0 0 23px; padding: 0; }
 .legacy-notice { gap: 7px; font-size: 10px; flex-wrap: wrap; }
 .legacy-notice .text-button { margin-left: 22px; }
 .disconnect-key { padding: 6px 8px; font-size: 9px; }
}
