:root {
  color-scheme: light;
  --ink: #181a19;
  --muted: #777b78;
  --line: #e8e9e6;
  --paper: #f7f7f5;
  --white: #fff;
  --accent: #78b9ff;
  --accent-soft: #17324f;
  --sidebar: #f2f3f0;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: 'Avenir Next', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 14px; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 0.9fr) 1.1fr; background: var(--white); }
.auth-panel { min-height: 100vh; padding: 38px clamp(30px, 7vw, 104px) 24px; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 0; }
.brand-mark { width: 32px; height: 32px; object-fit: contain; }
.brand-light { color: var(--muted); font-weight: 500; }
.auth-copy { margin: auto 0 32px; max-width: 430px; animation: rise-in .65s ease both; }
.eyebrow, .art-meta, .auth-footer, .art-coordinate { font-size: 10px; letter-spacing: 1.2px; font-weight: 600; }
.eyebrow { margin: 0 0 21px; color: var(--accent); text-transform: uppercase; }
.auth-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 54px); line-height: 1.08; letter-spacing: 0; font-weight: 500; }
.auth-description { margin: 20px 0 0; color: var(--muted); line-height: 1.7; max-width: 340px; }
.auth-form { width: 100%; max-width: 390px; display: grid; gap: 11px; margin-bottom: auto; animation: rise-in .75s .08s ease both; }
.form-heading { margin-bottom: 5px; font-size: 16px; font-weight: 600; }
.auth-form label { margin-top: 6px; font-size: 12px; font-weight: 600; }
.auth-form input { height: 45px; width: 100%; border: 1px solid #dfe1dd; border-radius: 5px; background: #fff; padding: 0 13px; }
.auth-form input::placeholder { color: #a2a5a2; }
.primary-button { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 15px; background: var(--ink); color: white; border: 0; border-radius: 5px; cursor: pointer; font-weight: 600; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { background: var(--accent); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.text-button { padding: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.text-button:hover { color: var(--accent); }
.form-error { min-height: 17px; margin: 0; color: #a34338; font-size: 12px; }
.auth-note { margin: 1px 0 0; color: #858985; font-size: 11px; line-height: 1.55; }
.setup-warning { display: grid; gap: 5px; padding: 10px 11px; border: 1px solid #e6cdb5; border-radius: 4px; background: #fcf6ef; color: #755638; font-size: 10px; line-height: 1.5; }
.setup-warning strong { font-size: 10px; font-weight: 700; }
.setup-warning span { overflow-wrap: anywhere; }
.auth-form input:disabled, .auth-form button:disabled { opacity: .55; cursor: not-allowed; }
.auth-footer { margin-top: 54px; color: #8c908d; font-size: 9px; }
.auth-footer span { margin: 0 8px; }
.auth-art { position: relative; min-height: 100vh; overflow: hidden; padding: 32px 38px; display: flex; align-items: center; justify-content: center; color: #fff; background: #0b2037; }
.auth-art::before { position: absolute; inset: 0; content: ''; background: linear-gradient(#8db7df12 1px, transparent 1px), linear-gradient(90deg, #8db7df12 1px, transparent 1px); background-size: 48px 48px; }
.art-meta { position: absolute; top: 34px; left: 38px; right: 38px; display: flex; justify-content: space-between; color: #bec6c0; font-size: 9px; }
.art-mark { position: relative; width: min(53%, 320px); height: auto; filter: drop-shadow(0 22px 46px rgba(0,0,0,.24)); animation: mark-arrive .9s cubic-bezier(.2,.8,.2,1) both; }
.art-caption { position: absolute; left: 40px; bottom: 72px; margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.5vw, 34px); line-height: 1.25; }
.art-coordinate { position: absolute; right: 38px; bottom: 33px; color: #a2aaa4; font-size: 9px; }
.workspace { display: grid; height: 100vh; min-height: 560px; grid-template-columns: 264px minmax(0, 1fr); overflow: hidden; }
.sidebar { display: flex; flex-direction: column; min-height: 0; padding: 22px 14px 14px; background: var(--sidebar); border-right: 1px solid var(--line); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 23px; }
.sidebar-head .brand { font-size: 16px; }
.sidebar-head .brand-mark { width: 26px; height: 26px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #737873; cursor: pointer; }
.icon-button:hover { border-color: var(--line); background: #fff; color: var(--ink); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.new-chat { width: 100%; display: flex; align-items: center; gap: 10px; height: 39px; padding: 0 10px; border: 1px solid #dfe2dc; border-radius: 5px; background: #fff; cursor: pointer; text-align: left; font-weight: 500; }
.new-chat svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.section-label { margin: 25px 9px 10px; color: #929792; font-size: 10px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.conversation-list { flex: 1; min-height: 0; overflow: auto; }
.conversation-item { display: flex; align-items: center; gap: 3px; margin: 2px 0; padding: 3px 4px 3px 10px; border: 1px solid transparent; border-radius: 5px; color: #565b57; }
.conversation-item.active { border-color: #e1e4df; background: #fff; color: var(--ink); }
.conversation-open { flex: 1; min-width: 0; overflow: hidden; padding: 8px 0; border: 0; background: transparent; color: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; font-size: 12px; }
.conversation-actions { opacity: 0; display: flex; }
.conversation-item:hover .conversation-actions, .conversation-item:focus-within .conversation-actions { opacity: 1; }
.conversation-actions .icon-button { width: 27px; height: 27px; }
.account-row { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid #e3e5e1; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #17324f; color: #abd2fb; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.account-copy { min-width: 0; flex: 1; }
.account-email { overflow: hidden; color: #555a56; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-plan { margin-top: 4px; color: #969a96; font-size: 10px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.topbar { height: 61px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid #f0f1ee; }
.model-name { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #78b9ff; box-shadow: 0 0 0 3px #78b9ff20; }
.model-unavailable .status-dot { background: #c17c52; box-shadow: 0 0 0 3px #f6eee7; }
.topbar-label { color: #929792; font-size: 11px; }
.mobile-menu { display: none; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
.welcome { width: min(690px, calc(100% - 48px)); margin: clamp(60px, 17vh, 170px) auto 50px; animation: rise-in .55s ease both; }
.welcome-kicker { margin: 0 0 15px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.welcome h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 500; letter-spacing: 0; line-height: 1.16; }
.welcome-subtitle { max-width: 410px; margin: 14px 0 28px; color: var(--muted); line-height: 1.65; }
.suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 590px; }
.suggestion { min-height: 71px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.suggestion:hover { border-color: #a8baac; background: #fafcf9; }
.suggestion strong { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; }
.suggestion span { color: #888d88; font-size: 11px; }
.message-list { width: min(760px, calc(100% - 48px)); margin: 46px auto 28px; }
.message { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 13px; margin: 27px 0; animation: rise-in .25s ease both; }
.message-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; }
.message.user .message-avatar { background: #f0f1ef; color: #626762; }
.message-body { min-width: 0; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-meta { margin: 4px 0 8px; color: #8c918c; font-size: 10px; }
.message-content { font-size: 13px; }
.message-actions { display: flex; gap: 3px; margin-top: 7px; }
.message-actions .icon-button { width: 29px; height: 29px; }
.message-status { color: #929792; font-size: 11px; }
.message-status.error { color: #a34338; }
.composer-wrap { flex: 0 0 auto; padding: 11px 24px 16px; background: linear-gradient(0deg, #fff 82%, rgba(255,255,255,0)); }
.composer { width: min(760px, 100%); margin: 0 auto; border: 1px solid #dfe2dd; border-radius: 8px; background: #fff; box-shadow: 0 5px 24px rgba(20,29,24,.045); }
.composer:focus-within { border-color: #aab8ac; box-shadow: 0 0 0 3px rgba(49,107,88,.07); }
.composer textarea { display: block; width: 100%; min-height: 57px; max-height: 180px; resize: none; border: 0; outline: 0; padding: 16px 17px 7px; background: transparent; color: var(--ink); line-height: 1.5; }
.composer textarea::placeholder { color: #a1a5a0; }
.composer-tools { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 8px 14px; }
.web-search-toggle { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 8px 0 0; color: #69766b; cursor: pointer; font-size: 9px; font-weight: 600; white-space: nowrap; }
.web-search-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.web-search-toggle input:focus-visible + .web-search-indicator { outline: 2px solid var(--accent); outline-offset: 2px; }
.web-search-toggle input:disabled + .web-search-indicator { border-color: #e3e6e2; background: #f6f7f5; color: #a2a8a2; }
.web-search-indicator { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #385572; border-radius: 4px; background: #102840; color: #94c5f8; }
.web-search-indicator svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.web-search-toggle small { color: #8a978b; font-size: 7px; letter-spacing: .4px; }
.web-search-toggle:has(input:checked) .web-search-indicator { border-color: #6da9e5; background: #173858; }
.web-search-toggle:has(input:disabled) { color: #929a93; cursor: not-allowed; }
.composer-hint { color: #a0a49f; font-size: 10px; }
.send-button { min-width: 34px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 5px; background: var(--ink); color: white; cursor: pointer; }
.send-button:hover { background: var(--accent); }
.send-button:disabled { background: #d4d8d3; cursor: not-allowed; }
.send-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stop-button { height: 32px; padding: 0 10px; border: 1px solid #dfe2dd; border-radius: 5px; background: #fff; cursor: pointer; font-size: 11px; }
.compliance-note { margin: 9px 0 0; color: #a0a49f; text-align: center; font-size: 9px; }
.provider-warning { width: min(760px, calc(100% - 48px)); margin: 20px auto 0; padding: 10px 12px; border: 1px solid #eadccf; border-radius: 4px; background: #fbf7f2; color: #825f41; font-size: 11px; }
.toast { position: fixed; right: 18px; bottom: 18px; padding: 11px 15px; border-radius: 5px; background: #dcedff; color: #08203a; box-shadow: 0 8px 30px #0002; font-size: 12px; animation: rise-in .2s ease both; }
.mobile-overlay { display: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mark-arrive { from { opacity: 0; transform: scale(.94) rotate(-4deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@media (max-width: 820px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-panel { min-height: 100vh; padding: 26px 28px 22px; }
  .auth-art { display: none; }
  .auth-copy { margin-top: auto; margin-bottom: 25px; }
  .auth-copy h1 { font-size: 40px; }
  .auth-form { margin-bottom: auto; }
  .auth-footer { margin-top: 34px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: min(290px, 85vw); transform: translateX(-102%); transition: transform .22s ease; box-shadow: 12px 0 40px #1112; }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay.open { display: block; position: fixed; z-index: 9; inset: 0; background: #131a1670; border: 0; }
  .mobile-menu { display: inline-grid; margin-left: -9px; }
  .topbar { height: 55px; padding: 0 15px; }
  .welcome { margin-top: clamp(46px, 12vh, 120px); }
  .composer-wrap { padding: 9px 13px 12px; }
  .message-list, .provider-warning { width: calc(100% - 30px); }
}
@media (max-width: 430px) {
  .auth-panel { padding-right: 23px; padding-left: 23px; }
  .welcome { width: calc(100% - 36px); }
  .welcome h1 { font-size: 34px; }
  .suggestions { grid-template-columns: 1fr; }
  .suggestion { min-height: 58px; }
  .message-list { width: calc(100% - 28px); }
  .message { grid-template-columns: 25px minmax(0, 1fr); gap: 9px; }
  .message-avatar { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

:root {
  --accent: #78b9ff;
  --accent-soft: #17324f;
  --sidebar: #06101b;
}

.workspace { grid-template-columns: 276px minmax(0, 1fr); background: #fbfbfa; }
.workspace { height: 100dvh; min-height: 0; }
.sidebar { padding: 24px 15px 13px; color: #e9ede9; background: #06111d; border-color: #1f3851; }
.sidebar-head { padding: 0 6px 24px; }
.sidebar-head .brand { color: #f5f6f3; font-size: 17px; }
.sidebar-head .brand-light { color: #adb6af; }
.sidebar-head .brand-mark { width: 29px; height: 29px; border-radius: 50%; }
.sidebar-edition { color: #86928a; font-size: 8px; font-weight: 600; letter-spacing: 1px; }
.new-chat { height: 43px; padding: 0 12px; border: 1px solid #3a5b7b; background: #10263c; color: #f2f3f1; font-size: 12px; transition: background .16s ease, border-color .16s ease; }
.new-chat:hover { border-color: #78b9ff; background: #15314d; }
.new-chat svg { stroke: #c4d0c5; }
.new-chat kbd, .conversation-search kbd { margin-left: auto; padding: 2px 5px; border: 1px solid #566159; border-radius: 3px; color: #a5b0a7; font: 10px var(--sans); }
.conversation-search { height: 39px; display: flex; align-items: center; gap: 9px; margin-top: 11px; padding: 0 9px; border: 1px solid #38423b; border-radius: 4px; color: #9ca69e; }
.conversation-search:focus-within { border-color: #718476; }
.conversation-search svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; }
.conversation-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #f0f2ef; font-size: 11px; }
.conversation-search input::placeholder { color: #929d95; }
.conversation-search kbd { margin-left: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 26px 7px 9px; }
.section-label { margin: 0; color: #9ba69e; font-size: 9px; letter-spacing: 1px; }
.conversation-count { color: #88938b; font-size: 10px; }
.conversation-list { padding-right: 1px; }
.conversation-item { margin: 2px 0; padding: 2px 4px 2px 9px; border: 1px solid transparent; color: #c2c9c3; }
.conversation-item.active { border-color: #355370; background: #122a42; color: #fff; }
.conversation-open { color: inherit; font-size: 11px; }
.conversation-actions { opacity: 0; }
.conversation-actions .icon-button { width: 25px; height: 25px; color: #b6c0b8; }
.conversation-actions .icon-button:hover { border-color: #4d5a51; background: #3a463e; color: white; }
.conversation-empty { margin: 4px 8px; color: #939d95; font-size: 11px; line-height: 1.6; }
.api-access { width: 100%; display: flex; align-items: center; gap: 10px; margin: 8px 0 15px; padding: 10px 9px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #c6cec7; text-align: left; cursor: pointer; font-size: 11px; }
.api-access:hover { border-color: #3a463e; background: #29332c; color: #fff; }
.api-access svg { width: 16px; height: 16px; fill: none; stroke: #83baf2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.api-arrow { margin-left: auto; color: #8f9c91; }
.file-artifact, .artifact-pending { display: flex; align-items: center; gap: 12px; max-width: 540px; margin: 12px 0; padding: 12px; border: 1px solid #e0e4df; border-radius: 6px; background: #fff; }
.artifact-file-icon { width: 34px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #385978; border-radius: 4px; background: #102a43; color: #9bc9fb; font: 600 10px var(--sans); }
.artifact-description, .artifact-pending > span:last-child { display: grid; min-width: 0; gap: 4px; }
.artifact-description strong, .artifact-pending strong { overflow: hidden; color: #303731; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.artifact-description small, .artifact-pending small { color: #888f89; font-size: 9px; }
.artifact-download { display: flex; align-items: center; gap: 7px; min-height: 32px; margin-left: auto; padding: 0 10px; border: 1px solid #dfe4de; border-radius: 4px; background: #fbfcfa; color: #39483d; cursor: pointer; font-size: 10px; font-weight: 600; white-space: nowrap; }
.artifact-download:hover { border-color: #afc0b1; background: #f1f5f0; }
.artifact-download span { font-size: 14px; }
.artifact-pending { color: #808a81; }
.modal-overlay { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(17,24,19,.58); backdrop-filter: blur(5px); }
.api-modal { width: min(660px, 100%); max-height: min(88dvh, 850px); overflow: auto; padding: 26px; border: 1px solid #e2e5e0; border-radius: 7px; background: #fbfbfa; box-shadow: 0 24px 90px #1016104a; animation: rise-in .2s ease both; }
.api-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-eyebrow { margin: 0 0 8px; color: #6f8573; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.api-modal-header h2 { margin: 0; color: #232923; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.modal-close { border-color: #e2e5e0; color: #59635b; font-size: 19px; }
.api-modal-description { max-width: 500px; margin: 13px 0 22px; color: #777f78; font-size: 11px; line-height: 1.65; }
.create-key-form { padding: 15px 0 20px; border-top: 1px solid #e4e7e2; }
.create-key-form label { display: block; margin-bottom: 8px; color: #5e675f; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.create-key-form > div { display: flex; gap: 8px; }
.create-key-form input { min-width: 0; flex: 1; height: 38px; padding: 0 10px; border: 1px solid #dfe3de; border-radius: 4px; background: #fff; font-size: 11px; }
.create-key-form .primary-button { min-height: 38px; gap: 15px; font-size: 10px; }
.api-keys-section, .api-quickstart { padding: 16px 0; border-top: 1px solid #e4e7e2; }
.api-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.api-section-heading h3 { margin: 0; color: #3c443d; font-size: 11px; font-weight: 600; }
.api-section-heading > span { color: #929a93; font-size: 9px; text-align: right; }
.api-key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #eceeea; }
.api-key-row > div { display: grid; grid-template-columns: minmax(90px, 1fr) auto; align-items: baseline; gap: 5px 10px; }
.api-key-row strong { overflow: hidden; color: #414942; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.api-key-row code { color: #707a71; font-size: 9px; }
.api-key-row small { grid-column: 1 / -1; color: #9aa09b; font-size: 8px; }
.revoke-key { padding: 5px 8px; border: 1px solid #e4dedb; border-radius: 4px; background: transparent; color: #99584d; cursor: pointer; font-size: 9px; }
.revoke-key:hover { background: #f8efec; }
.key-revoked { color: #9a6258; font-size: 9px; }
.one-time-key { display: grid; gap: 9px; margin: 0 0 17px; padding: 13px; border: 1px solid #41658a; border-radius: 5px; background: #102940; }
.one-time-key > div { display: flex; justify-content: space-between; gap: 8px; }
.one-time-key strong { color: #c3dfff; font-size: 10px; }
.one-time-key span { color: #a5c0db; font-size: 9px; }
.one-time-key code { overflow-wrap: anywhere; color: #dcedff; font-size: 10px; user-select: all; }
.copy-api-key { justify-self: start; padding: 6px 10px; border: 1px solid #486a8a; border-radius: 4px; background: #17324d; color: #e2f0ff; cursor: pointer; font-size: 9px; font-weight: 600; }
.api-quickstart pre { overflow: auto; margin: 11px 0 8px; padding: 13px; border-radius: 5px; background: #06111d; color: #e5f1ff; font: 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.api-quickstart p { margin: 0; color: #89918a; font-size: 9px; line-height: 1.6; }
.api-quickstart p code { color: #596d5c; }
@media (max-width: 560px) {
  .api-modal { max-height: 92dvh; padding: 19px 16px; }
  .api-modal-header h2 { font-size: 26px; }
  .create-key-form > div { flex-direction: column; }
  .create-key-form .primary-button { justify-content: space-between; }
  .api-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .api-section-heading > span { text-align: left; }
  .file-artifact, .artifact-pending { flex-wrap: wrap; }
  .artifact-download { margin-left: 46px; }
}

:root {
  --ink: #eff6ff;
  --muted: #a3b4c8;
  --line: #24415e;
  --paper: #071321;
  --white: #0b1b2d;
  --accent: #78b9ff;
  --accent-soft: #17324f;
  --sidebar: #06101b;
  --serif: 'Avenir Next', 'Segoe UI', sans-serif;
  --sans: 'Avenir Next', 'Segoe UI', sans-serif;
}

body { color: var(--ink); background: var(--paper); }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline-color: var(--accent); }
.public-home { min-height: 100vh; overflow: hidden; background: #071321; color: #eef5ff; }
.public-nav { position: relative; z-index: 2; height: 78px; display: flex; align-items: center; gap: 40px; padding: 0 max(32px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid #ffffff16; background: #06111d; }
.public-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; color: #f2f7ff; text-decoration: none; font-size: 17px; font-weight: 750; }
.public-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; mix-blend-mode: screen; }
.public-brand b { color: #78b9ff; font-weight: 750; }
.public-nav nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.public-nav nav a, .nav-signin { color: #b9c8d9; text-decoration: none; font-size: 11px; font-weight: 550; }
.public-nav nav a:hover, .nav-signin:hover { color: #fff; }
.public-nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-signin { padding: 9px 5px; border: 0; background: transparent; cursor: pointer; }
.nav-cta { min-height: 38px; display: inline-flex; align-items: center; gap: 18px; padding: 0 13px; border: 1px solid #82bdff; border-radius: 3px; background: #deedff; color: #092039; cursor: pointer; font-size: 10px; font-weight: 700; }
.nav-cta:hover, .hero-primary:hover { background: #fff; }
.public-hero { position: relative; min-height: 630px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(370px, .8fr); align-items: center; gap: 54px; max-width: 1320px; margin: 0 auto; padding: 76px 48px 86px; isolation: isolate; }
.public-hero::before { position: absolute; z-index: -1; inset: 0 calc((1320px - 100vw) / 2); content: ''; background-color: #0b2037; background-image: linear-gradient(#8db7df12 1px, transparent 1px), linear-gradient(90deg, #8db7df12 1px, transparent 1px); background-size: 48px 48px; }
.hero-grid { position: absolute; z-index: -1; inset: 0 calc((1320px - 100vw) / 2); pointer-events: none; background: linear-gradient(90deg, #0b2037 0, #0b2037ee 30%, #0b203766 100%); }
.hero-copy { max-width: 690px; padding-bottom: 28px; animation: rise-in .45s ease both; }
.hero-overline { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #a9c9eb; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.hero-pulse { width: 7px; height: 7px; border-radius: 50%; background: #78b9ff; box-shadow: 0 0 0 4px #78b9ff20; }
.hero-copy h1 { margin: 0; color: #f3f7ff; font-size: 76px; line-height: .99; font-weight: 760; letter-spacing: 0; }
.hero-copy h1 span, .developer-copy h2 span { color: #78b9ff; }
.hero-description { max-width: 560px; margin: 25px 0 28px; color: #bac9d9; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.hero-primary { min-height: 47px; display: inline-flex; align-items: center; gap: 28px; padding: 0 17px; border: 0; border-radius: 3px; background: #e7f2ff; color: #0b233c; cursor: pointer; font-size: 11px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.hero-primary:active { transform: translateY(1px); }
.hero-secondary { color: #e0edfb; text-decoration: none; font-size: 11px; font-weight: 650; }
.hero-secondary:hover { color: #78b9ff; }
.hero-footnote { margin: 22px 0 0; color: #8297ad; font-size: 9px; }
.hero-footnote a { color: #b8d6f6; text-decoration-color: #7897b4; text-underline-offset: 3px; }
.hero-instrument { position: relative; width: 100%; max-width: 470px; min-height: 445px; justify-self: end; display: flex; flex-direction: column; overflow: hidden; padding: 19px 21px 16px; border: 1px solid #7ba7d133; background: #081726c9; box-shadow: 16px 18px 0 #07132155; animation: rise-in .55s .1s ease both; }
.instrument-top { display: flex; justify-content: space-between; color: #8eabc9; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.instrument-mark { position: relative; min-height: 280px; display: grid; flex: 1; place-items: center; overflow: hidden; }
.instrument-mark::before, .instrument-mark::after { position: absolute; width: 250px; height: 250px; border: 1px solid #78b9ff25; border-radius: 50%; content: ''; }
.instrument-mark::after { width: 190px; height: 190px; border-style: dashed; border-color: #78b9ff35; }
.instrument-ring { position: absolute; border: 1px solid #78b9ff19; transform: rotate(-31deg); }
.instrument-ring-one { width: 360px; height: 95px; }
.instrument-ring-two { width: 95px; height: 360px; }
.instrument-mark img { position: relative; z-index: 1; width: 112px; height: 112px; object-fit: contain; border-radius: 50%; mix-blend-mode: screen; filter: drop-shadow(0 0 35px #69aaf533); }
.instrument-divider { height: 1px; background: #8ab6df2b; }
.instrument-readout { display: grid; gap: 6px; padding: 14px 0 13px; }
.readout-label { color: #829bb5; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.instrument-readout strong { color: #91c5ff; font-size: 16px; font-weight: 700; }
.instrument-readout strong.instrument-unavailable { color: #f0c38e; }
.instrument-readout > span:last-child { overflow-wrap: anywhere; color: #91a7bf; font-size: 9px; line-height: 1.5; }
.instrument-footer { display: flex; align-items: center; gap: 8px; padding-top: 11px; border-top: 1px solid #8ab6df1e; color: #96aac0; font-size: 9px; }
.instrument-footer.instrument-unavailable .instrument-dot { background: #d7a267; box-shadow: 0 0 0 3px #d7a26720; }
.instrument-dot { width: 6px; height: 6px; border-radius: 50%; background: #78b9ff; box-shadow: 0 0 0 3px #78b9ff20; }
.hero-index { position: absolute; right: 48px; bottom: 25px; color: #8099b2; font-size: 8px; font-weight: 650; letter-spacing: 1.2px; }
.hero-index span { margin: 0 7px; color: #78b9ff; }
.capability-band { padding: 48px max(32px, calc((100vw - 1224px) / 2)) 54px; background: #071321; }
.band-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid #2b4662; color: #80b9f5; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.band-heading span:last-child { color: #8297ad; text-align: right; }
.capability-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.capability-list article { position: relative; min-height: 170px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-content: start; gap: 12px; padding: 27px 23px 20px 0; border-right: 1px solid #233b54; }
.capability-list article + article { padding-left: 23px; }
.capability-list article:last-child { border-right: 0; }
.capability-number { color: #77b7f7; font-size: 8px; font-weight: 700; }
.capability-list h2 { margin: 0 0 9px; color: #e7f1fc; font-size: 15px; font-weight: 650; }
.capability-list p { max-width: 260px; margin: 0; color: #96a9bd; font-size: 10px; line-height: 1.7; }
.capability-mark { position: absolute; right: 19px; bottom: 9px; color: #14304b; font-size: 48px; font-weight: 750; line-height: 1; }
.developer-band { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 72px; padding: 75px max(32px, calc((100vw - 1224px) / 2)) 84px; border-top: 1px solid #1c344c; background: #0b1b2d; }
.developer-copy h2 { margin: 0; color: #eff6ff; font-size: 47px; line-height: 1.04; font-weight: 700; }
.developer-copy > p:not(.hero-overline) { max-width: 340px; margin: 17px 0 22px; color: #a3b4c8; font-size: 11px; line-height: 1.75; }
.developer-cta { padding: 9px 0; border: 0; border-bottom: 1px solid #597fa6; background: transparent; color: #c7dfff; cursor: pointer; font-size: 10px; font-weight: 700; }
.developer-code { min-width: 0; border: 1px solid #314f6d; background: #06111d; }
.code-window-bar { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; border-bottom: 1px solid #233a52; color: #8299b2; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.code-window-bar > span:first-child { display: flex; gap: 5px; }
.code-window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #6785a3; }
.developer-code pre { overflow: auto; margin: 0; padding: 20px 19px 10px; color: #d9e8f7; font: 10px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.code-dim { color: #92a8be; }
.code-blue { color: #8bc1ff; }
.code-green { color: #aed6ff; }
.code-note { margin: 0; padding: 0 19px 18px; color: #8196ac; font-size: 8px; }
.code-note code { color: #abd4ff; }
.public-footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px max(32px, calc((100vw - 1224px) / 2)); border-top: 1px solid #203850; background: #06101a; }
.public-footer .public-brand { font-size: 12px; }
.public-footer .public-brand img { width: 25px; height: 25px; }
.public-footer > span, .public-footer > a:last-child { color: #8396aa; font-size: 8px; font-weight: 650; letter-spacing: .8px; text-decoration: none; }
.public-footer > a:last-child span { margin-left: 5px; color: #77b7f7; }
.auth-screen { color: #edf5ff; background: #071321; }
.auth-panel { position: relative; background: #091827; }
.auth-copy h1 { color: #f0f6ff; font-size: 49px; line-height: 1.06; font-weight: 650; }
.auth-copy .eyebrow { color: #80bcfb; }
.auth-description { color: #a2b4c8; }
.auth-form label { color: #dbe8f6; }
.auth-form input { border-color: #304963; background: #0c1d30; color: #eff6ff; }
.auth-form input::placeholder { color: #8094aa; }
.form-heading { color: #eff6ff; }
.primary-button { background: #deedff; color: #092039; }
.primary-button:hover { background: #fff; }
.text-button { color: #9cb0c5; }
.auth-note { color: #899db3; }
.auth-footer { color: #8398af; }
.auth-back { position: absolute; top: 37px; right: 32px; padding: 6px 0; border: 0; background: transparent; color: #94acc5; cursor: pointer; font-size: 9px; }
.auth-back:hover { color: #dcecff; }
.auth-art { background-color: #0b2037; background-image: linear-gradient(#8db7df12 1px, transparent 1px), linear-gradient(90deg, #8db7df12 1px, transparent 1px); background-size: 48px 48px; }
.auth-art::before { background: linear-gradient(90deg, #0b2037dd, #0b203744); }
.art-meta { color: #b6cee7; }
.art-caption { color: #f0f6ff; }
.art-coordinate { color: #8ba7c3; }
.workspace { background: #091827; }
.sidebar { color: #e7f1fc; background: #06111d; border-color: #1f3851; }
.sidebar-head .brand { color: #eef6ff; }
.sidebar-head .brand-light { color: #8cbdf1; }
.sidebar-edition { color: #7392b0; }
.new-chat { border-color: #3a5b7b; background: #10263c; color: #eaf4ff; }
.new-chat:hover { border-color: #78b9ff; background: #15314d; }
.new-chat svg { stroke: #91c8ff; }
.new-chat kbd, .conversation-search kbd { border-color: #3b5671; color: #adc5de; }
.conversation-search { border-color: #2c4560; color: #a6bdd5; }
.conversation-search:focus-within { border-color: #78b9ff; }
.conversation-search input { color: #eef6ff; }
.conversation-search input::placeholder { color: #839bb3; }
.section-label { color: #91aac4; }
.conversation-count { color: #8aa3bc; }
.conversation-item { color: #c3d2e1; }
.conversation-item.active { border-color: #355370; background: #122a42; color: #fff; }
.conversation-actions .icon-button { color: #afc5dc; }
.conversation-actions .icon-button:hover { border-color: #436483; background: #183550; color: #fff; }
.model-status { border-color: #304a65; background: #0b1b2c; }
.model-status strong { color: #e2efff; }
.model-status small { color: #98adc3; }
.model-status .status-dot, .model-name .status-dot { background: #78b9ff; box-shadow: 0 0 0 3px #78b9ff20; }
.model-status.model-unavailable .status-dot, .model-name.model-unavailable .status-dot { background: #e1a96d; box-shadow: 0 0 0 3px #e1a96d20; }
.account-row { border-color: #2b435c; }
.avatar { background: #17324f; color: #abd2fb; }
.account-email { color: #e2edf8; }
.account-plan { color: #8fa5bc; }
.account-row .icon-button { color: #afc3d8; }
.account-row .icon-button:hover { border-color: #42627f; background: #11283e; color: #fff; }
.api-access { color: #c1d6eb; }
.api-access:hover { border-color: #2d4b68; background: #0c1f32; color: #fff; }
.api-access svg { stroke: #83baf2; }
.api-arrow { color: #7caae0; }
.chat-main { background: #091827; }
.topbar { border-color: #1c344b; background: #091827; }
.topbar-title { color: #ecf4ff; }
.breadcrumb-slash, .current-title { color: #93a9c0; }
.topbar-label { border-color: #29425b; color: #8197af; }
.model-name { color: #bfd4e9; }
.welcome h1 { color: #eff6ff; font-weight: 650; }
.welcome-eyebrow { color: #88bff4; }
.welcome-index { border-color: #426486; color: #9ccaff; }
.welcome-subtitle { color: #a1b5ca; }
.suggestion-heading { border-color: #29435d; color: #829db8; }
.suggestion { border-color: #29435d; color: #d7e6f5; }
.suggestion:hover { border-color: #6aa8e8; background: #0d2034; }
.suggestion-index { color: #7fa1c2; }
.suggestion strong { color: #e3effa; }
.suggestion span { color: #98aec4; }
.suggestion-arrow { color: #7cb9f6 !important; }
.message-avatar { background: #112b45; color: #9bc9fb; }
.message.user .message-body { border-color: #2b455f; background: #11243a; }
.message.user .message-avatar { background: #183754; color: #c1dfff; }
.message-meta { color: #8da7c0; }
.message-content { color: #e2edf8; }
.composer-wrap { background: #091827; }
.composer { border-color: #31506c; background: #0c1d2f; box-shadow: 0 9px 28px #0002; }
.composer:focus-within { border-color: #6eaceb; box-shadow: 0 0 0 3px #73b5ff16; }
.composer textarea { color: #eff6ff; }
.composer textarea::placeholder { color: #8299b0; }
.composer-hint, .compliance-note { color: #8096ad; }
.web-search-toggle { color: #b8d1eb; }
.web-search-indicator { border-color: #385572; background: #102840; color: #94c5f8; }
.web-search-toggle small { color: #87a9ca; }
.web-search-toggle input:checked + .web-search-indicator { border-color: #6da9e5; background: #173858; }
.send-button { background: #78b9ff; color: #08203a; }
.send-button:hover { background: #b5d8ff; }
.stop-button { border-color: #3a5874; background: #10263b; color: #dfeeff; }
.provider-warning { border-color: #715438; background: #2a2118; color: #e7c397; }
.toast { background: #dcedff; color: #08203a; }
.api-modal { border-color: #34516e; background: #0c1d30; color: #eef6ff; }
.api-modal-header h2, .api-section-heading h3 { color: #edf5ff; }
.api-modal-description, .api-section-heading > span { color: #a2b7cc; }
.modal-eyebrow { color: #82bbf4; }
.modal-close { border-color: #385572; color: #cadced; }
.create-key-form, .api-keys-section, .api-quickstart { border-color: #29435d; }
.create-key-form label { color: #b0c7df; }
.create-key-form input { border-color: #35516c; background: #081827; color: #edf5ff; }
.api-key-row { border-color: #29435d; }
.api-key-row strong { color: #e1edf9; }
.api-key-row code { color: #a7bfd8; }
.one-time-key { border-color: #41658a; background: #102940; }
.one-time-key strong { color: #c3dfff; }
.one-time-key span, .one-time-key code { color: #a5c0db; }
.copy-api-key { border-color: #486a8a; background: #17324d; color: #e2f0ff; }
.api-quickstart pre { border: 1px solid #263f58; background: #06111d; }
.api-quickstart p, .api-quickstart p code { color: #96aec7; }
.conversation-empty { color: #93abc3; }
.setup-warning { border-color: #59789a; background: #122a42; color: #c1d9f1; }

@media (max-width: 900px) {
  .public-nav { padding: 0 24px; }
  .public-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 30px; padding: 72px 32px 70px; }
  .hero-copy h1 { font-size: 60px; }
  .hero-instrument { min-height: 400px; }
  .developer-band { gap: 36px; }
}
@media (max-width: 700px) {
  .public-nav { height: 66px; gap: 12px; padding: 0 18px; }
  .public-brand { gap: 8px; font-size: 13px; }
  .public-brand img { width: 29px; height: 29px; }
  .public-nav nav { display: none; }
  .public-nav-actions { gap: 8px; margin-left: auto; }
  .nav-cta { min-height: 34px; gap: 8px; padding: 0 9px; font-size: 9px; }
  .public-hero { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 38px 22px 52px; }
  .hero-copy { padding-bottom: 7px; }
  .hero-overline { margin-bottom: 17px; font-size: 8px; }
  .hero-copy h1 { font-size: 44px; line-height: 1.02; }
  .hero-description { margin: 13px 0 17px; font-size: 11px; line-height: 1.65; }
  .hero-actions { gap: 18px; }
  .hero-instrument { width: 100%; max-width: none; min-height: 270px; justify-self: stretch; padding: 15px 16px 13px; }
  .instrument-mark { min-height: 132px; }
  .instrument-mark::before { width: 150px; height: 150px; }
  .instrument-mark::after { width: 118px; height: 118px; }
  .instrument-mark img { width: 70px; height: 70px; }
  .instrument-ring-one { width: 210px; height: 65px; }
  .instrument-ring-two { width: 65px; height: 210px; }
  .hero-index { right: 22px; bottom: 20px; font-size: 7px; }
  .capability-band { padding: 36px 22px 38px; }
  .band-heading { font-size: 7px; }
  .band-heading span:last-child { max-width: 48%; }
  .capability-list { grid-template-columns: 1fr; }
  .capability-list article, .capability-list article + article { min-height: 116px; grid-template-columns: 25px 1fr; gap: 9px; padding: 20px 0; border-right: 0; border-bottom: 1px solid #233b54; }
  .capability-list article:last-child { border-bottom: 0; }
  .developer-band { grid-template-columns: 1fr; gap: 28px; padding: 52px 22px 58px; }
  .developer-copy h2 { font-size: 40px; }
  .developer-code pre { padding: 15px 12px 8px; font-size: 8px; }
  .code-note { padding: 0 12px 14px; }
  .public-footer { flex-wrap: wrap; padding: 16px 20px; }
  .public-footer > span { order: 3; width: 100%; }
  .auth-back { top: 28px; right: 22px; }
  .auth-copy h1 { font-size: 42px; }
  .workspace { height: auto; min-height: 100dvh; overflow: visible; }
  .chat-main { height: auto; min-height: 100dvh; overflow: visible; background: #091827; }
  .chat-scroll { flex: 1 0 auto; min-height: calc(100dvh - 200px); overflow: visible; }
  .composer-wrap { position: sticky; z-index: 4; bottom: 0; }
}
.file-artifact, .artifact-pending { display: flex; align-items: center; gap: 12px; max-width: 540px; margin: 12px 0; padding: 12px; border: 1px solid #e0e4df; border-radius: 6px; background: #fff; }
.artifact-file-icon { width: 34px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #385978; border-radius: 4px; background: #102a43; color: #9bc9fb; font: 600 10px var(--sans); }
.artifact-description, .artifact-pending > span:last-child { display: grid; min-width: 0; gap: 4px; }
.artifact-description strong, .artifact-pending strong { overflow: hidden; color: #303731; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.artifact-description small, .artifact-pending small { color: #888f89; font-size: 9px; }
.artifact-download { display: flex; align-items: center; gap: 7px; min-height: 32px; margin-left: auto; padding: 0 10px; border: 1px solid #dfe4de; border-radius: 4px; background: #fbfcfa; color: #39483d; cursor: pointer; font-size: 10px; font-weight: 600; white-space: nowrap; }
.artifact-download:hover { border-color: #afc0b1; background: #f1f5f0; }
.artifact-download span { font-size: 14px; }
.artifact-pending { color: #808a81; }
.modal-overlay { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(17,24,19,.58); backdrop-filter: blur(5px); }
.api-modal { width: min(660px, 100%); max-height: min(88dvh, 850px); overflow: auto; padding: 26px; border: 1px solid #e2e5e0; border-radius: 7px; background: #fbfbfa; box-shadow: 0 24px 90px #1016104a; animation: rise-in .2s ease both; }
.api-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-eyebrow { margin: 0 0 8px; color: #6f8573; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.api-modal-header h2 { margin: 0; color: #232923; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.modal-close { border-color: #e2e5e0; color: #59635b; font-size: 19px; }
.api-modal-description { max-width: 500px; margin: 13px 0 22px; color: #777f78; font-size: 11px; line-height: 1.65; }
.create-key-form { padding: 15px 0 20px; border-top: 1px solid #e4e7e2; }
.create-key-form label { display: block; margin-bottom: 8px; color: #5e675f; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.create-key-form > div { display: flex; gap: 8px; }
.create-key-form input { min-width: 0; flex: 1; height: 38px; padding: 0 10px; border: 1px solid #dfe3de; border-radius: 4px; background: #fff; font-size: 11px; }
.create-key-form .primary-button { min-height: 38px; gap: 15px; font-size: 10px; }
.api-keys-section, .api-quickstart { padding: 16px 0; border-top: 1px solid #e4e7e2; }
.api-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.api-section-heading h3 { margin: 0; color: #3c443d; font-size: 11px; font-weight: 600; }
.api-section-heading > span { color: #929a93; font-size: 9px; text-align: right; }
.api-key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #eceeea; }
.api-key-row > div { display: grid; grid-template-columns: minmax(90px, 1fr) auto; align-items: baseline; gap: 5px 10px; }
.api-key-row strong { overflow: hidden; color: #414942; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.api-key-row code { color: #707a71; font-size: 9px; }
.api-key-row small { grid-column: 1 / -1; color: #9aa09b; font-size: 8px; }
.revoke-key { padding: 5px 8px; border: 1px solid #e4dedb; border-radius: 4px; background: transparent; color: #99584d; cursor: pointer; font-size: 9px; }
.revoke-key:hover { background: #f8efec; }
.key-revoked { color: #9a6258; font-size: 9px; }
.one-time-key { display: grid; gap: 9px; margin: 0 0 17px; padding: 13px; border: 1px solid #41658a; border-radius: 5px; background: #102940; }
.one-time-key > div { display: flex; justify-content: space-between; gap: 8px; }
.one-time-key strong { color: #c3dfff; font-size: 10px; }
.one-time-key span { color: #a5c0db; font-size: 9px; }
.one-time-key code { overflow-wrap: anywhere; color: #dcedff; font-size: 10px; user-select: all; }
.copy-api-key { justify-self: start; padding: 6px 10px; border: 1px solid #486a8a; border-radius: 4px; background: #17324d; color: #e2f0ff; cursor: pointer; font-size: 9px; font-weight: 600; }
.api-quickstart pre { overflow: auto; margin: 11px 0 8px; padding: 13px; border-radius: 5px; background: #06111d; color: #e5f1ff; font: 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.api-quickstart p { margin: 0; color: #89918a; font-size: 9px; line-height: 1.6; }
.api-quickstart p code { color: #596d5c; }
@media (max-width: 560px) {
  .api-modal { max-height: 92dvh; padding: 19px 16px; }
  .api-modal-header h2 { font-size: 26px; }
  .create-key-form > div { flex-direction: column; }
  .create-key-form .primary-button { justify-content: space-between; }
  .api-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .api-section-heading > span { text-align: left; }
  .file-artifact, .artifact-pending { flex-wrap: wrap; }
  .artifact-download { margin-left: 46px; }
}
.sidebar-bottom { margin-top: auto; }
.model-status { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; padding: 12px 10px; border: 1px solid #343f37; border-radius: 4px; background: #252e28; }
.model-status > span:last-child { display: grid; gap: 4px; }
.model-status strong { color: #e1e8e1; font-size: 10px; font-weight: 600; }
.model-status small { color: #9eaaa0; font-size: 9px; }
.model-status .status-dot { width: 6px; height: 6px; flex: 0 0 auto; background: #90aa91; box-shadow: 0 0 0 3px #90aa911d; }
.model-status.model-unavailable .status-dot { background: #c18e6d; box-shadow: 0 0 0 3px #c18e6d1d; }
.account-row { gap: 9px; padding: 12px 3px 3px; border-color: #39433d; }
.avatar { background: #d8e1d9; color: #283b2d; }
.account-email { color: #e3e8e3; font-size: 10px; }
.account-plan { color: #98a39b; font-size: 9px; }
.account-row .icon-button { color: #adb7af; }
.account-row .icon-button:hover { border-color: #42627f; background: #11283e; color: white; }
.chat-main { background: #fbfbfa; }
.topbar { height: 60px; padding: 0 31px; border-color: #e9ebe7; background: rgba(255,255,255,.86); }
.topbar-left, .topbar-right, .topbar-title { display: flex; align-items: center; }
.topbar-left { gap: 12px; min-width: 0; }
.topbar-title { gap: 10px; min-width: 0; color: #262b27; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.breadcrumb-slash { color: #b0b5b0; }
.current-title { max-width: min(390px, 42vw); overflow: hidden; color: #777e78; font-size: 10px; font-weight: 500; letter-spacing: .2px; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { gap: 17px; }
.model-name { gap: 8px; color: #58635a; font-size: 10px; font-weight: 600; }
.model-name .status-dot { width: 6px; height: 6px; background: #78937c; box-shadow: 0 0 0 3px #78937c1c; }
.model-name.model-unavailable .status-dot { background: #b78464; box-shadow: 0 0 0 3px #b784641c; }
.topbar-label { padding-left: 14px; border-left: 1px solid #e4e7e2; color: #9a9f9a; font-size: 8px; letter-spacing: 1px; }
.chat-scroll { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #bcc5bd transparent; }
.chat-scroll::-webkit-scrollbar { width: 8px; }
.chat-scroll::-webkit-scrollbar-thumb { border: 2px solid #fbfbfa; border-radius: 8px; background: #bcc5bd; }
.chat-scroll::-webkit-scrollbar-track { background: transparent; }
.chat-scroll:has(.welcome) { justify-content: center; }
.welcome { width: min(770px, calc(100% - 72px)); margin: 0 auto; padding: 14px 0 32px; animation: rise-in .42s ease both; }
.welcome-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #6f8573; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.welcome-index { display: inline-grid; width: 23px; height: 23px; place-items: center; border: 1px solid #c9d3ca; border-radius: 50%; color: #617565; font-size: 8px; letter-spacing: 0; }
.welcome h1 { color: #202522; font-size: 48px; line-height: 1.08; font-weight: 500; }
.welcome-subtitle { max-width: 490px; margin: 14px 0 34px; color: #777e78; font-size: 13px; line-height: 1.75; }
.suggestion-heading { display: flex; justify-content: space-between; padding: 0 0 10px; border-bottom: 1px solid #e4e7e2; color: #969d97; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.suggestions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; max-width: 680px; }
.suggestion { min-height: 75px; display: grid; grid-template-columns: 25px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 12px 0; border: 0; border-bottom: 1px solid #e4e7e2; border-radius: 0; background: transparent; }
.suggestion:hover { border-color: #b4c2b6; background: transparent; }
.suggestion-index { align-self: start; padding-top: 2px; color: #a0a7a0; font-size: 9px; }
.suggestion-copy { display: grid; gap: 5px; min-width: 0; }
.suggestion strong { margin: 0; color: #343a35; font-size: 11px; font-weight: 600; }
.suggestion span { color: #898f89; font-size: 10px; line-height: 1.5; }
.suggestion-arrow { color: #7d9080 !important; font-size: 14px !important; text-align: right; transition: transform .16s ease; }
.suggestion:hover .suggestion-arrow { transform: translate(2px, -2px); }
.message-list { width: min(790px, calc(100% - 72px)); margin: 38px auto 28px; }
.message { margin: 23px 0; grid-template-columns: 27px minmax(0, 1fr); gap: 12px; }
.message-avatar { width: 25px; height: 25px; overflow: hidden; background: #1f2822; }
.message-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.message.user { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.message.user .message-avatar { display: none; }
.message.user .message-body { max-width: min(88%, 580px); padding: 10px 14px 12px; border: 1px solid #e7e9e5; border-radius: 7px 7px 2px 7px; background: #f1f2ef; }
.message.user .message-meta { margin-top: 0; }
.message-body { line-height: 1.75; }
.message-meta { color: #858d86; font-size: 9px; font-weight: 600; }
.message-content { color: #2d332e; font-size: 13px; }
.composer-wrap { padding: 10px 24px 14px; background: #fbfbfa; }
.composer { border-color: #dfe3de; border-radius: 7px; box-shadow: 0 7px 24px rgba(23,34,26,.04); }
.composer:focus-within { border-color: #6eaceb; box-shadow: 0 0 0 3px rgba(115,181,255,.08); }
.composer textarea { min-height: 58px; padding: 15px 16px 7px; font-size: 13px; }
.composer-hint { color: #9ca29d; font-size: 8px; letter-spacing: .35px; }
.composer-hint span { padding: 0 3px; color: #c4c8c3; }
.send-button { width: 34px; background: #78b9ff; color: #08203a; }
.send-button:hover { background: #b5d8ff; }
.compliance-note { color: #a0a59f; font-size: 9px; }
.provider-warning { border-color: #eadccf; background: #fbf7f2; }

@media (max-width: 820px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: min(300px, 86vw); }
  .topbar { padding: 0 16px; }
  .topbar-right { gap: 10px; }
  .topbar-label { display: none; }
  .welcome { width: min(700px, calc(100% - 40px)); padding: 10px 0 22px; }
  .welcome h1 { font-size: 43px; }
  .welcome-subtitle { margin-bottom: 27px; }
  .message-list { width: calc(100% - 38px); }
  .composer-wrap { padding-right: 15px; padding-left: 15px; }
}

@media (max-width: 480px) {
  .topbar-title { font-size: 9px; }
  .current-title { max-width: 34vw; }
  .model-name { font-size: 9px; }
  .welcome { width: calc(100% - 38px); }
  .welcome h1 { font-size: 38px; }
  .welcome-subtitle { max-width: 340px; font-size: 12px; }
  .suggestions { grid-template-columns: 1fr; }
  .suggestion { min-height: 60px; }
  .suggestion-heading { margin-top: 0; }
  .message-list { width: calc(100% - 28px); }
  .composer-hint { max-width: 250px; font-size: 7px; }
  .web-search-toggle small { font-size: 6px; }
}

@media (max-width: 820px) {
  .workspace { height: auto; min-height: 100dvh; overflow: visible; }
  .chat-main { height: auto; min-height: 100dvh; overflow: visible; }
  .chat-scroll { flex: 1 0 auto; min-height: calc(100dvh - 200px); overflow: visible; overscroll-behavior-y: auto; }
  .composer-wrap { position: sticky; z-index: 4; bottom: 0; flex: 0 0 auto; }
}

.chat-main, .chat-scroll { background: #091827; }
.topbar { border-color: #1c344b; background: #091827; }
.topbar-title { color: #ecf4ff; }
.breadcrumb-slash, .current-title { color: #93a9c0; }
.topbar-label { border-color: #29425b; color: #8197af; }
.model-name { color: #bfd4e9; }
.model-name .status-dot { background: #78b9ff; box-shadow: 0 0 0 3px #78b9ff20; }
.model-name.model-unavailable .status-dot { background: #e1a96d; box-shadow: 0 0 0 3px #e1a96d20; }
.chat-scroll::-webkit-scrollbar-thumb { border-color: #091827; background: #31516f; }
.welcome h1 { color: #eff6ff; }
.welcome-eyebrow { color: #88bff4; }
.welcome-index { border-color: #426486; color: #9ccaff; }
.welcome-subtitle { color: #a1b5ca; }
.suggestion-heading { border-color: #29435d; color: #829db8; }
.suggestion { border-color: #29435d; color: #d7e6f5; }
.suggestion:hover { border-color: #6aa8e8; background: #0d2034; }
.suggestion-index { color: #7fa1c2; }
.suggestion strong { color: #e3effa; }
.suggestion span { color: #98aec4; }
.suggestion-arrow { color: #7cb9f6 !important; }
.message-avatar { background: #112b45; color: #9bc9fb; }
.message.user .message-body { border-color: #2b455f; background: #11243a; }
.message.user .message-avatar { background: #183754; color: #c1dfff; }
.message-meta { color: #8da7c0; }
.message-content { color: #e2edf8; }
.composer-wrap { background: #091827; }
.composer { border-color: #31506c; background: #0c1d2f; box-shadow: 0 9px 28px #0002; }
.composer:focus-within { border-color: #6eaceb; box-shadow: 0 0 0 3px #73b5ff16; }
.composer textarea { color: #eff6ff; }
.composer textarea::placeholder { color: #8299b0; }
.composer-hint, .compliance-note { color: #8096ad; }
.web-search-toggle { color: #b8d1eb; }
.web-search-indicator { border-color: #385572; background: #102840; color: #94c5f8; }
.web-search-toggle small { color: #87a9ca; }
.web-search-toggle input:checked + .web-search-indicator { border-color: #6da9e5; background: #173858; }
.send-button { background: #78b9ff; color: #08203a; }
.send-button:hover { background: #b5d8ff; }
.stop-button { border-color: #3a5874; background: #10263b; color: #dfeeff; }
.provider-warning { border-color: #715438; background: #2a2118; color: #e7c397; }
.message-status { color: #91a8c0; }
.message-status.error { color: #f0988c; }
.toast { background: #dcedff; color: #08203a; }
.status-dot, .model-status .status-dot { background: #78b9ff; box-shadow: 0 0 0 3px #78b9ff20; }
.model-status.model-unavailable .status-dot { background: #e1a96d; box-shadow: 0 0 0 3px #e1a96d20; }
.model-status { border-color: #304a65; background: #0b1b2c; }
.model-status strong { color: #dcecff; }
.model-status small { color: #91a9c1; }
.avatar { background: #17324f; color: #abd2fb; }
.setup-warning { border-color: #3a5d7f; background: #10263c; color: #c4dcf5; }
.file-artifact, .artifact-pending { border-color: #31506c; background: #0c1d30; }
.artifact-file-icon { border-color: #385978; background: #102a43; color: #9bc9fb; }
.artifact-description strong, .artifact-pending strong { color: #e6f1fc; }
.artifact-description small, .artifact-pending small { color: #9bb1c7; }
.artifact-download { border-color: #416585; background: #14304b; color: #ddecfb; }
.artifact-download:hover { border-color: #78b9ff; background: #193a5c; }
.api-modal { border-color: #34516e; background: #0c1d30; color: #eef6ff; }
.api-modal-header h2, .api-section-heading h3 { color: #edf5ff; }
.api-modal-description, .api-section-heading > span { color: #a2b7cc; }
.modal-eyebrow { color: #82bbf4; }
.modal-close { border-color: #385572; color: #cadced; }
.create-key-form, .api-keys-section, .api-quickstart { border-color: #29435d; }
.create-key-form label { color: #b0c7df; }
.create-key-form input { border-color: #35516c; background: #081827; color: #edf5ff; }
.api-key-row, .api-key-row small { border-color: #29435d; color: #9bb1c7; }
.api-key-row strong { color: #e1edf9; }
.api-key-row code { color: #a7bfd8; }
.one-time-key { border-color: #41658a; background: #102940; }
.one-time-key strong { color: #c3dfff; }
.one-time-key span, .one-time-key code { color: #a5c0db; }
.copy-api-key { border-color: #486a8a; background: #17324d; color: #e2f0ff; }
.api-quickstart pre { border: 1px solid #263f58; background: #06111d; color: #e5f1ff; }
.api-quickstart p { color: #96aec7; }
.api-quickstart p code { color: #8dc2ff; }
.revoke-key { border-color: #694d53; background: #231b21; color: #f0b1ac; }
.key-revoked { color: #dcaaa4; }