/* Premiere theme: an editorial product stage around a real model workspace. */
:root { color-scheme: dark; background: #05070b; }
body { background: #05070b; }
.app-shell { grid-template-columns: 274px minmax(0, 1fr); }
.sidebar {
  background: linear-gradient(165deg, #0d111a 0%, #070a11 48%, #080b13 100%);
  border-right: 1px solid #b8d7ff16;
}
.sidebar::after {
  content: ""; position: absolute; pointer-events: none; width: 210px; height: 280px;
  top: -160px; left: -115px; background: #477ce218; filter: blur(65px);
}
.identity-mark { border-radius: 11px; background: linear-gradient(145deg, #e9faff, #849ee8 45%, #1a2c64); box-shadow: 0 0 23px #8eb6ff48, inset 0 1px #fff; }
.identity strong { font-size: 17px; letter-spacing: .08em; }
.identity-sub { font-size: 8px; letter-spacing: .23em; }
.new-chat { border-radius: 9px; box-shadow: 0 8px 26px #02050e90, inset 0 1px #fff; }
.side-kicker { color: #6380a2; }
.usage-mini { background: #0d1522b0; border-color: #a8c8f41f; border-radius: 12px; }
.main-area { background: #05070b; min-height: 0; height: 100%; overflow: hidden; }
.chat-surface, .chat-feed { min-height: 0; }
.main-area::before { background-size: 88px 88px; opacity: .36; mask-image: radial-gradient(ellipse at 72% 32%, #000, transparent 72%); }
.topbar { height: 68px; background: #06090ded; border-bottom-color: #b9d9ff17; padding: 0 37px; }
.topbar-overline { color: #81a1c5; letter-spacing: .2em; }
.topbar-title { color: #d5e1f4; }
.live-indicator { border-color: #6cd8bd2e; background: #78d4c410; color: #d2e8e5; }
.mode-dot { width: 5px; height: 5px; }
.access-primary { background: #ffffff0d; color: #f3f8ff; border-color: #bddcff42; }
.top-access { border-radius: 8px; }

.chat-surface:has(.empty-state:not([hidden])) { justify-content: center; gap: 8px; }
.chat-surface:has(.empty-state:not([hidden])) .chat-feed { width: 100%; }
#messages:empty { display: none; }
.chat-surface:has(.empty-state:not([hidden])) .empty-state {
  width: min(100%, 1250px); min-height: clamp(390px, 51vh, 560px);
  margin: 0 auto; padding: 0; display: block; overflow: hidden;
  border-bottom: 1px solid #acc9ec26; text-align: left;
}
.hero-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-art-image {
  position: absolute; inset: 0;
  background: url('/hero-portal-v5.png') center 49% / cover no-repeat;
  filter: saturate(.78) contrast(1.06);
  animation: portal-arrive 1.1s ease-out both, portal-drift 12s ease-in-out 1.1s infinite alternate;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #05070b 0%, #05070bed 25%, #05070b88 49%, transparent 72%),
    linear-gradient(0deg, #05070b 0%, transparent 21%, transparent 78%, #05070b5c 100%);
}
.hero-art-edge { position: absolute; z-index: 1; inset: 17px 23px; border-top: 1px solid #ffffff16; border-right: 1px solid #ffffff14; }
.hero-art-edge::before, .hero-art-edge::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid #a8c7ed6b; }
.hero-art-edge::before { top: -4px; right: -4px; }
.hero-art-edge::after { bottom: 0; right: -4px; }
.hero-art-label, .hero-art-coordinate {
  position: absolute; z-index: 2; right: 42px; color: #b8c7d8; font-size: 10px;
  font-weight: 650; letter-spacing: .25em; text-shadow: 0 1px 12px #000;
}
.hero-art-label { top: 39px; }
.hero-art-coordinate { bottom: 98px; font-size: 8px; color: #8e9fb4; }
.hero-content { z-index: 3; max-width: 760px; padding: clamp(44px, 6vh, 83px) 32px 108px 6%; }
.empty-state .hero-eyebrow { color: #c8e0fa; margin-bottom: 22px; font-size: 10px; letter-spacing: .22em; }
.hero-spark { font-size: 11px; color: #d3ebff; }
.eyebrow-rule { display: inline-block; width: 26px; height: 1px; margin: 0 5px; background: #a0b7d26e; }
.empty-state h1 {
  font-size: clamp(54px, 5.7vw, 86px); line-height: 1.16; font-weight: 640;
  letter-spacing: -.075em; margin-bottom: 21px; white-space: nowrap;
  text-shadow: 0 3px 34px #010309e8;
}
.empty-state h1 span { background: linear-gradient(105deg, #ffffff 10%, #c7d9f7 50%, #a7bded 88%); background-clip: text; -webkit-background-clip: text; }
.empty-state .hero-description { color: #afbdd0; font-size: 14px; max-width: 510px; line-height: 1.82; text-shadow: 0 2px 15px #000; }
.hero-actions { margin-top: 29px; gap: 22px; }
.hero-explore {
  border: 1px solid #f2f8ff; border-radius: 8px; background: linear-gradient(115deg, #f9fbff, #c8dcff);
  color: #102038; padding: 12px 19px; box-shadow: 0 9px 25px #0307148c, 0 0 29px #b5d5ff31;
}
.hero-explore:hover { color: #07162b; background: #fff; box-shadow: 0 12px 34px #bfdfff4d; }
.hero-hint { color: #a3aec1; }
.hero-meta { margin-top: 27px; gap: 16px; color: #8293aa; letter-spacing: .05em; }
.hero-meta strong { color: #e6f3ff; font-size: 18px; font-weight: 580; }
.hero-model-strip {
  position: absolute; z-index: 4; left: 6%; right: 6%; bottom: 16px;
  padding-top: 15px; border-top: 1px solid #e2edff45;
}
.hero-strip-heading { display: flex; align-items: center; gap: 10px; color: #a8bdd8; font-size: 8px; font-weight: 750; letter-spacing: .19em; }
.strip-dot { display: inline-block; width: 5px; height: 5px; background: #83e5c4; border-radius: 50%; box-shadow: 0 0 9px #83e5c4; }
.strip-rule { display: inline-block; width: 28px; height: 1px; background: #acc4df66; }
.hero-model-pills { display: flex; align-items: center; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.hero-model-pills::-webkit-scrollbar { display: none; }
.hero-model-pill {
  display: flex; flex: none; align-items: center; gap: 11px; min-height: 34px;
  border: 1px solid #b7d7fd35; border-radius: 6px; background: #101822bf;
  color: #d7e8fc; padding: 7px 10px; font-size: 10px; font-weight: 620;
  backdrop-filter: blur(15px); transition: border-color .18s, background .18s, transform .18s;
}
.hero-model-pill:hover, .hero-model-pill[aria-pressed="true"] { border-color: #bfe4ff9e; background: #243750d9; color: #fff; transform: translateY(-1px); }
.engine-index { color: #83a8ce; font-size: 8px; letter-spacing: .08em; }
.engine-arrow { color: #a8d1f4; font-size: 11px; }
.hero-model-pill[data-provider="ollama"] .engine-index { color: #88ddc7; }

.chat-surface:has(.empty-state:not([hidden])) .composer-dock { padding: 0 26px 18px; }
.composer { max-width: 940px; border: 1px solid #c6dfff42; border-radius: 13px; background: linear-gradient(155deg, #1a2431f2, #0d1420f7); box-shadow: 0 24px 65px #000a, inset 0 1px #ffffff28; padding: 15px 16px 11px; }
.composer:focus-within { border-color: #cbe3ffb6; }
.composer textarea { font-size: 14px; }
.attach-button, .model-picker, .mode-picker { border-radius: 7px; }
.quick-actions { max-width: 940px; margin-top: 12px; gap: 7px; }
.quick-actions button { border-color: #ffffff16; background: #ffffff05; color: #899db7; border-radius: 7px; padding: 8px 11px; font-size: 11px; }
.quick-actions button:hover { background: #9bbfff15; color: #f6f9ff; }
.composer-note { color: #78869b; }

.access-dialog, .model-dialog { border-radius: 17px; background: linear-gradient(145deg, #1b2635, #0c1420); border-color: #b6d7ff33; box-shadow: 0 34px 120px #000e, 0 0 75px #709dff19; }
.model-dialog { width: min(100%, 730px); }
.model-option { border-radius: 9px; }
.provider-filters button { border-radius: 6px; }
.provider-filters button.active { background: #e0efff; border-color: #e0efff; }
.redeem-button { border-radius: 8px; }

/* Conversation view and tactile controls. */
body[data-mode="mock"] .mode-dot { background: #f1c478; box-shadow: 0 0 12px #f1c478a8; }
.conversation-item { border: 1px solid transparent; border-left: 2px solid transparent; border-radius: 7px; transition: background .18s, border-color .18s; }
.conversation-item:hover { background: #ffffff0a; }
.conversation-item.active { background: #a3c5ff13; border-color: #b4d7ff24; border-left-color: #9acfff; }
.conversation-open { font-size: 12px; }
.conversation-action { opacity: .55; transition: opacity .18s, color .18s; }
.conversation-item:hover .conversation-action, .conversation-item.active .conversation-action { opacity: 1; }
.usage-mini { box-shadow: inset 0 1px #ffffff08; }
.usage-track span { transition: width .35s ease; }
.topbar-title { font-size: 13px; font-weight: 620; }
.chat-surface:has(.empty-state[hidden]) { background: radial-gradient(ellipse 46% 35% at 49% 5%, #1524444a, transparent 78%), #05070b; }
.chat-surface:has(.empty-state[hidden]) .chat-feed { scrollbar-width: thin; scrollbar-color: #657b9b4d transparent; }
.messages { max-width: 900px; padding: 26px 30px 24px; }
.messages:not(:empty)::before {
  content: "CONVERSATION  /  ACTIVE SESSION"; display: block; margin: 0 0 17px;
  border-bottom: 1px solid #9ab8e02a; padding-bottom: 12px;
  color: #839dbc; font-size: 9px; font-weight: 750; letter-spacing: .22em;
}
.message { margin-bottom: 19px; animation: message-arrive .28s ease-out both; }
.message.user { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.user-label { color: #8194b0; font-size: 9px; font-weight: 720; letter-spacing: .17em; }
.message-bubble {
  max-width: min(80%, 660px); border-radius: 13px 13px 3px 13px;
  background: linear-gradient(135deg, #27354a, #1b2639); border: 1px solid #b6d7ff30;
  padding: 14px 18px; color: #edf5ff; line-height: 1.7;
  box-shadow: 0 13px 26px #02050d7a, inset 0 1px #ffffff13;
}
.message.assistant {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid #aacdf529; border-radius: 13px;
  background: linear-gradient(150deg, #182433df, #0d1623e6 70%);
  box-shadow: 0 18px 45px #01040a57, inset 0 1px #ffffff12;
  padding: 17px 18px;
}
.assistant-icon {
  width: 32px; height: 32px; margin-top: 0; border-radius: 9px;
  background: linear-gradient(145deg, #def6ff, #7c9fe5 55%, #274577);
  color: #fff; box-shadow: 0 0 21px #8fcaff57, inset 0 1px #fff;
}
.assistant-content { color: #dce8f7; font-size: 14px; line-height: 1.8; }
.assistant-label { margin: 2px 0 17px; padding-bottom: 13px; border-bottom: 1px solid #c5dcff26; color: #acd2ff; font-size: 10px; letter-spacing: .07em; }
.assistant-content > span:nth-child(2) { display: block; white-space: pre-wrap; }
.message-copy {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 19px;
  border: 1px solid #b5d4f52b; border-radius: 6px; background: #ffffff07;
  color: #9bb9da; padding: 6px 11px; font-size: 10px; transition: background .18s, color .18s;
}
.message-copy::before { content: "▣"; font-size: 12px; }
.message-copy:hover { color: #fff; background: #9bc5f125; }
.composer textarea:focus-visible { outline: none; }
.composer:focus-within { border-color: #a8cfffa8; box-shadow: 0 20px 65px #000a, 0 0 0 3px #9ac7ff12, inset 0 1px #ffffff30; }
.send-button:not(:disabled) { transition: transform .18s, box-shadow .18s, background .18s; }
.send-button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 0 23px #a5d6ff7a; }
.new-chat, .hero-explore { position: relative; overflow: hidden; }
.new-chat::after, .hero-explore::after {
  content: ""; position: absolute; inset: -100% auto -100% -30%; width: 24%;
  transform: rotate(18deg) translateX(-180%); background: linear-gradient(90deg, transparent, #ffffff80, transparent);
  transition: transform .6s ease;
}
.new-chat:hover::after, .hero-explore:hover::after { transform: rotate(18deg) translateX(520%); }
.model-option:not(.model-option-pending) .provider-mark { position: relative; }
.model-option:not(.model-option-pending) .provider-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 6px; height: 6px; border: 2px solid #182331; border-radius: 50%; background: #80e1bd; box-shadow: 0 0 8px #80e1bd; }
.dialog-commands { display: flex; align-items: center; gap: 12px; }
.dialog-commands kbd { display: inline-flex; border: 1px solid #c7dcf03a; border-radius: 5px; padding: 5px 7px; color: #9fb7d5; background: #ffffff08; font-size: 9px; font-family: inherit; letter-spacing: .04em; }
@keyframes message-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }

@keyframes portal-arrive { from { opacity: 0; transform: scale(1.08); filter: blur(9px) saturate(.7); } to { opacity: 1; transform: scale(1); filter: blur(0) saturate(.78); } }
@keyframes portal-drift { to { transform: scale(1.035) translateY(-5px); } }

@media (max-width: 1100px) {
  .hero-art-image { background-position: 55% center; }
  .hero-content { max-width: 650px; }
  .empty-state h1 { font-size: clamp(50px, 5.5vw, 68px); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .topbar { height: 61px; padding: 0 17px; }
  .chat-surface:has(.empty-state:not([hidden])) { justify-content: flex-start; gap: 0; overflow-y: auto; }
  .chat-surface:has(.empty-state:not([hidden])) .empty-state { min-height: 440px; }
  .hero-art-image { background-position: 69% 40%; opacity: .72; }
  .hero-art::after { background: linear-gradient(0deg, #05070b 0%, #05070b54 37%, #05070b64 72%, #05070b9e 100%), linear-gradient(90deg, #05070bc9, transparent 90%); }
  .hero-art-edge, .hero-art-coordinate { display: none; }
  .hero-art-label { top: 22px; right: 20px; color: #a7b9d1; font-size: 7px; }
  .hero-content { padding: 72px 22px 112px; max-width: 100%; }
  .empty-state .hero-eyebrow { font-size: 8px; letter-spacing: .16em; margin-bottom: 15px; }
  .empty-state h1 { font-size: clamp(39px, 7.6vw, 62px); white-space: normal; margin-bottom: 16px; }
  .empty-state .hero-description { font-size: 12px; max-width: 360px; line-height: 1.7; }
  .hero-actions { margin-top: 18px; }
  .hero-explore { padding: 10px 14px; }
  .hero-meta { margin-top: 18px; }
  .hero-model-strip { left: 22px; right: 18px; bottom: 13px; padding-top: 11px; }
  .hero-model-pills { margin-top: 8px; }
  .hero-model-pill { font-size: 9px; min-height: 30px; }
  .chat-surface:has(.empty-state:not([hidden])) .composer-dock { padding: 14px 13px 15px; }
  .composer { border-radius: 11px; position: relative; }
  .model-cost { display: inline-block; position: absolute; top: 16px; right: 15px; font-size: 9px; color: #94aac8; }
  .composer textarea { padding-right: 96px; }
  .quick-actions { margin-top: 9px; }
  .messages { padding: 20px 14px 24px; }
  .messages:not(:empty)::before { font-size: 7px; margin-bottom: 17px; }
  .message.assistant { padding: 14px; gap: 10px; }
  .assistant-icon { width: 26px; height: 26px; }
  .assistant-content { font-size: 13px; }
  .message-bubble { max-width: 87%; padding: 11px 14px; }
  .dialog-commands kbd { display: none; }
}
@media (max-width: 430px) {
  .empty-state h1 { font-size: 39px; line-height: 1.22; }
  .empty-state .hero-description br { display: none; }
  .empty-state .hero-description { max-width: 300px; }
  .hero-hint { display: none; }
  .hero-model-strip { bottom: 10px; }
  .hero-strip-heading { font-size: 7px; gap: 6px; }
  .strip-rule { width: 16px; }
  .hero-model-pills { gap: 5px; }
  .hero-model-pill { padding: 6px 8px; gap: 6px; }
  .quick-actions button:nth-child(n+5) { display: none; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .chat-surface:has(.empty-state:not([hidden])) .empty-state { min-height: 355px; }
  .hero-content { padding-top: 24px; padding-bottom: 78px; }
  .empty-state .hero-eyebrow { margin-bottom: 13px; }
  .empty-state h1 { font-size: clamp(52px, 4.8vw, 63px); margin-bottom: 10px; }
  .empty-state .hero-description { font-size: 13px; line-height: 1.5; }
  .hero-actions { margin-top: 13px; }
  .hero-meta { margin-top: 10px; }
  .hero-model-strip { padding-top: 9px; bottom: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art-image { animation: none; }
  .hero-model-pill { transition: none; }
  .message { animation: none; }
  .new-chat::after, .hero-explore::after { display: none; }
}

/* Precision icon system and sidebar controls. All icons share one SVG stroke. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon {
  display: block; flex: none; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.sidebar { padding: 27px 18px 17px; }
.sidebar-top { margin-bottom: 18px; padding: 0 5px 23px; border-bottom: 1px solid #b9d2f31b; }
.identity-mark {
  position: relative; width: 40px; height: 40px; overflow: hidden;
  border: 1px solid #c6e5ffad; border-radius: 12px;
  background: linear-gradient(142deg, #e5f8ff 0%, #90b4ee 31%, #4669b3 68%, #16264c 100%);
  box-shadow: 0 0 0 3px #94c5ff0b, 0 10px 24px #060b1b9c, inset 0 1px #fff;
}
.identity-mark::before { content: ""; position: absolute; inset: 1px; border: 1px solid #ffffff40; border-radius: 10px; }
.identity-mark .brand-glyph { position: relative; width: 23px; height: 23px; color: #fff; stroke: none; filter: drop-shadow(0 0 5px #fff9); }
.identity strong { font-size: 16px; letter-spacing: .07em; }
.identity-sub { color: #8195b6; letter-spacing: .19em; }

.new-chat {
  min-height: 68px; align-items: center; gap: 11px; padding: 11px 12px;
  border: 1px solid #f7fbff; border-radius: 11px;
  background: linear-gradient(115deg, #f7fbff 0%, #e0efff 56%, #c7dcf8 100%);
  box-shadow: 0 12px 26px #01040dbd, inset 0 1px #fff;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.new-chat:hover { transform: translateY(-2px); background: linear-gradient(115deg, #fff, #eaf5ff); box-shadow: 0 16px 31px #01040dcf, 0 0 27px #8cbfff2d; }
.new-chat-icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px;
  border-radius: 9px; border: 1px solid #ffffffd9; background: #ffffffb5;
  color: #244c86; box-shadow: inset 0 1px #fff, 0 2px 7px #456da023;
}
.new-chat > .new-chat-icon:first-child { font-size: inherit; line-height: inherit; }
.new-chat-icon .ui-icon { width: 17px; height: 17px; stroke-width: 1.85; }
.new-chat-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.new-chat-copy strong { color: #15263e; font-size: 12px; font-weight: 720; letter-spacing: .02em; }
.new-chat-copy small { color: #6980a0; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.new-chat-arrow { align-self: flex-start; width: 14px; height: 14px; margin-top: 1px; color: #587193; stroke-width: 1.8; }

.side-kicker { margin: 31px 10px 9px; color: #6b82a1; font-size: 9px; letter-spacing: .2em; }
.sidebar-section-heading { align-items: center; margin: 0 10px 13px; color: #c0cde0; }
.sidebar-section-heading span:last-child {
  display: inline-grid; place-items: center; min-width: 22px; height: 19px; padding: 0 5px;
  border-radius: 5px; border: 1px solid #a9c9ee20; background: #a8c6ee0b;
  color: #8ea5c5; font-size: 10px; font-variant-numeric: tabular-nums;
}
.conversation-list { padding-right: 0; scrollbar-width: thin; scrollbar-color: #8fb7e434 transparent; }
.conversation-empty { display: flex; align-items: flex-start; gap: 9px; padding: 10px; color: #7185a1; font-size: 11px; line-height: 1.5; }
.conversation-empty .ui-icon { width: 15px; height: 15px; margin-top: 1px; color: #80a6cd; }
.conversation-item { gap: 2px; min-height: 42px; margin: 2px 0; }
.conversation-open { display: flex; align-items: center; gap: 9px; padding: 9px 5px 9px 10px; font-size: 11px; }
.conversation-open span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conversation-glyph { width: 15px; height: 15px; color: #81a3c8; }
.conversation-item.active .conversation-glyph { color: #b1d7ff; }
.conversation-action {
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid transparent; border-radius: 6px;
  color: #879ab6; opacity: .52;
}
.conversation-action .ui-icon { width: 14px; height: 14px; }
.conversation-action:hover { border-color: #bbd6f435; background: #8eb9e31b; color: #f3f9ff; }
.conversation-action:last-child { margin-right: 5px; }

.sidebar-bottom { padding: 9px 3px 0; border-top: 1px solid #b9d2f319; }
.usage-mini { padding: 15px 13px 13px; margin: 0 0 10px; border: 1px solid #b0cff12b; background: linear-gradient(155deg, #152031b8, #0b1321d9); }
.usage-heading { align-items: center !important; }
.usage-heading-label { display: inline-flex; align-items: center; gap: 7px; color: #a9b9ce; font-size: 11px; }
.usage-heading-label .ui-icon { width: 15px; height: 15px; color: #9ec8ec; }
.usage-mini strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.usage-track { height: 4px; margin: 14px 0 10px; background: #acc7e424; }
.usage-mini small { color: #788da8; font-size: 10px; }
.access-trigger { min-height: 59px; gap: 10px; padding: 8px 6px; border-radius: 9px; transition: background .18s, border-color .18s; }
.access-trigger:hover { background: #a8cdf015; border-color: #b4d2f02e; }
.access-icon { width: 34px; height: 34px; border: 1px solid #a5d1fc36; border-radius: 9px; background: linear-gradient(145deg, #2c496f6b, #12243e80); color: #badbff; }
.access-icon .ui-icon { width: 17px; height: 17px; }
.access-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.access-copy strong { color: #d5e3f5; font-size: 11px; font-weight: 650; }
.access-copy small { color: #7084a2; font-size: 8px; font-weight: 680; letter-spacing: .13em; }
.access-chevron { width: 14px; height: 14px; color: #7895ba; transition: transform .18s, color .18s; }
.access-trigger:hover .access-chevron { transform: translateX(2px); color: #d1e6ff; }
.side-footnote { margin: 13px 7px 0; padding-top: 11px; border-top: 1px solid #aec5df13; color: #677d9c; font-size: 9px; }
.icon-button .ui-icon { width: 20px; height: 20px; }
.top-access, .hero-explore, .attach-button, .quick-actions button { display: inline-flex; align-items: center; justify-content: center; }
.access-primary { gap: 7px; }
.access-primary .ui-icon, .hero-explore .ui-icon { width: 14px; height: 14px; }
.hero-spark { width: 12px; height: 12px; fill: currentColor; stroke: none; filter: drop-shadow(0 0 5px #9fd8ff); }
.hero-explore { gap: 22px; }
.engine-arrow { width: 12px; height: 12px; stroke-width: 1.7; }
.attach-button { gap: 6px; }
.attach-button .ui-icon { width: 14px; height: 14px; }
.model-picker-icon { width: 13px; height: 13px; fill: currentColor; stroke: none; filter: drop-shadow(0 0 4px #a9d7ff); }
.picker-chevron { width: 12px; height: 12px; color: #94a9c4; }
.send-button { display: grid; place-items: center; }
.send-button .ui-icon { width: 18px; height: 18px; stroke-width: 1.9; }
.quick-actions button { gap: 7px; }
.quick-actions button .ui-icon { width: 13px; height: 13px; color: #a4cfff; stroke-width: 1.65; }
.quick-actions button .ui-icon:has(use[href="#icon-brand"]) { fill: currentColor; stroke: none; }
.dialog-close { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px; }
.dialog-close:hover { background: #c1dcf013; }
.dialog-close .ui-icon { width: 18px; height: 18px; }
.dialog-mark .ui-icon { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.redeem-button .ui-icon { width: 16px; height: 16px; }
.attachment-preview button .ui-icon { width: 14px; height: 14px; }
.assistant-icon .ui-icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.message-copy::before { content: none; }
.message-copy .ui-icon { width: 12px; height: 12px; }

@media (max-width: 760px) {
  .sidebar { padding: 23px 18px 17px; }
  .sidebar-top { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .new-chat, .access-trigger, .access-chevron { transition: none; }
}

/* Quiet, product-specific chrome for the brand, session trail, and access panel. */
.sidebar { background: linear-gradient(166deg, #10151e 0%, #090d14 41%, #080c13 100%); }
.sidebar-top { padding-bottom: 24px; border-bottom-color: #c3d6ed14; }
.identity { gap: 11px; }
.identity-mark {
  width: 42px; height: 42px; border-radius: 11px;
  border-color: #b5d1ed5e; background: linear-gradient(145deg, #2b3d55, #132137 55%, #0b1525);
  box-shadow: inset 0 1px #ffffff38, 0 7px 18px #0008;
}
.identity-mark::before { inset: 4px; border-color: #d0e6ff1c; border-radius: 7px; }
.identity-mark .brand-glyph { width: 22px; height: 22px; color: #e8f4ff; filter: drop-shadow(0 0 6px #b7dfff52); }
.identity strong { font-size: 17px; font-weight: 620; letter-spacing: .035em; }
.identity-sub { color: #8092ad; font-size: 8px; letter-spacing: .17em; }

.new-chat {
  min-height: 55px; padding: 10px 12px; gap: 10px;
  border-radius: 9px; border-color: #b5d4ed45;
  background: linear-gradient(120deg, #1d2c3f, #142234 72%, #17283c);
  color: #f3f8ff; box-shadow: inset 0 1px #ffffff1c, 0 10px 22px #0006;
}
.new-chat::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; background: linear-gradient(#96c8ef, #577fa9); border-radius: 0 2px 2px 0; }
.new-chat::after { display: none; }
.new-chat:hover { transform: none; background: linear-gradient(120deg, #283d54, #1c3047); border-color: #b5dfff80; box-shadow: inset 0 1px #ffffff28, 0 11px 23px #0007; }
.new-chat-icon { width: 30px; height: 30px; border: 1px solid #bddaf044; border-radius: 7px; background: #a9d4f014; color: #d8edff; box-shadow: none; }
.new-chat-icon .ui-icon { width: 15px; height: 15px; stroke-width: 1.65; }
.new-chat-copy { gap: 0; }
.new-chat-copy strong { color: #edf6ff; font-size: 12px; font-weight: 620; letter-spacing: .03em; }
.new-chat-arrow { align-self: center; margin: 0; color: #93aeca; width: 14px; height: 14px; }

.topbar-left { gap: 11px; }
.topbar-location-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid #a9bfd72d; border-radius: 7px; background: #9bb9db0b; color: #9ab7d4; }
.topbar-location-icon .ui-icon { width: 15px; height: 15px; stroke-width: 1.45; }
.topbar-context { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 3px; }
.topbar-overline { display: block; color: #7487a2; font-size: 8px; font-weight: 710; letter-spacing: .17em; line-height: 1; }
.topbar-title { display: block; color: #e3ecf8; font-size: 13px; font-weight: 580; line-height: 1.1; }

.sidebar-bottom { padding: 0 1px; border-top: 0; }
.access-panel {
  position: relative; overflow: hidden; border: 1px solid #a8c5e334; border-radius: 12px;
  background: linear-gradient(145deg, #182437 0%, #111b2b 50%, #0e1725 100%);
  box-shadow: inset 0 1px #ffffff14, 0 13px 27px #0005;
}
.access-panel::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: linear-gradient(90deg, transparent, #abcde45c, transparent); }
.access-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 0; color: #8da4bf; font-size: 8px; font-weight: 710; letter-spacing: .14em; }
.access-state { display: inline-flex; align-items: center; gap: 6px; color: #8494aa; font-size: 9px; letter-spacing: .04em; }
.access-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #77869a; }
.access-panel[data-active="true"] .access-state { color: #b7d9cc; }
.access-panel[data-active="true"] .access-state::before { background: #8fd9b9; box-shadow: 0 0 8px #8fd9b98c; }
.usage-mini { margin: 0; padding: 15px 14px 13px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.usage-heading-label { color: #afc0d4; font-size: 11px; font-weight: 500; }
.usage-mini strong { color: #f1f7ff; font-size: 23px; font-weight: 520; letter-spacing: -.045em; line-height: 1; }
.usage-track { height: 2px; margin: 14px 0 10px; background: #a9c4df2b; }
.access-panel[data-active="false"] .usage-track { opacity: .6; }
.usage-mini small { color: #8b9cb2; font-size: 10px; }
.access-trigger { min-height: 55px; margin: 0; padding: 9px 13px; border: 0; border-top: 1px solid #aac6df1d; border-radius: 0; background: #ffffff05; }
.access-trigger:hover { border-color: #b9d4ef2e; background: #b6d5ee14; }
.access-icon { width: 25px; height: 25px; border: 0; border-radius: 0; background: transparent; color: #c0d8ed; }
.access-icon .ui-icon { width: 18px; height: 18px; stroke-width: 1.5; }
.access-copy strong { color: #e6effa; font-size: 11px; font-weight: 610; }
.access-copy small { color: #8498b0; font-size: 9px; font-weight: 450; letter-spacing: 0; }
.access-chevron { color: #8ca9c6; }
.side-footnote { margin: 13px 0 0; padding: 0; border: 0; text-align: center; color: #657993; font-size: 9px; }

@media (max-width: 760px) {
  .topbar-location-icon { display: none; }
  .topbar-context { gap: 0; }
  .topbar-overline { display: none; }
  .topbar-title { font-size: 12px; }
}
