:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #151619;
  --panel-soft: #1a1b20;
  --panel-hover: #202127;
  --text: #f4f3f7;
  --muted: #92929d;
  --muted-2: #676873;
  --line: rgba(255, 255, 255, .075);
  --accent: #b3a4ff;
  --accent-2: #d1c9ff;
  --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.app-shell { display: flex; width: 100%; height: 100dvh; min-height: 520px; overflow: hidden; background: var(--bg); }
.sidebar { width: 272px; flex: 0 0 272px; display: flex; flex-direction: column; padding: 24px 14px 14px; background: #131417; border-right: 1px solid var(--line); z-index: 10; }
.sidebar-top { display: flex; flex-direction: column; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; padding: 0 10px; color: #e9e8ee; text-decoration: none; font: 700 14px var(--font-display); letter-spacing: -.035em; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; background: linear-gradient(145deg, #cec5ff, #8a78e9); box-shadow: 0 6px 24px #8f7cf530; }
.brand-mark > span { width: 3px; border-radius: 5px; display: block; background: #22202e; opacity: .85; }
.brand-mark > span:nth-child(1) { height: 10px; transform: translateY(3px); }
.brand-mark > span:nth-child(2) { height: 18px; }
.brand-mark > span:nth-child(3) { height: 13px; transform: translateY(-2px); }
.brand-mark.small { width: 27px; height: 27px; border-radius: 9px; gap: 2px; box-shadow: none; }
.brand-mark.small > span { width: 2px; }
.brand-mark.small > span:nth-child(1) { height: 7px; }
.brand-mark.small > span:nth-child(2) { height: 12px; }
.brand-mark.small > span:nth-child(3) { height: 9px; }
.new-chat-button { height: 42px; display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 0 11px; background: #1b1c21; color: #e4e3e9; text-align: left; cursor: pointer; font-size: 13px; font-weight: 500; transition: .18s ease; }
.new-chat-button:hover { border-color: #b3a4ff70; background: #202127; }
.plus-icon { font-size: 18px; font-weight: 300; color: #c4b8ff; line-height: 1; }
kbd { margin-left: auto; font: 10px var(--font-ui); color: #777984; border: 1px solid #ffffff14; border-radius: 5px; padding: 3px 5px; }
.history-label { margin: 30px 10px 9px; color: #676873; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.conversation-list { display: flex; flex-direction: column; gap: 3px; overflow: auto; }
.conversation-item { display: flex; align-items: center; min-height: 38px; border-radius: 8px; padding: 0 9px; gap: 9px; color: #a7a7b0; cursor: pointer; font-size: 12px; transition: .15s; }
.conversation-item:hover, .conversation-item.active { background: #202127; color: #f0eff4; }
.conversation-item span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.conversation-glyph { color: #81818d; font-size: 13px; }
.sidebar-bottom { margin-top: auto; }
.privacy-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 13px; margin: 0 1px 12px; border: 1px solid #ffffff0b; background: #191a1f; border-radius: 10px; }
.privacy-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px; border-radius: 50%; background: #8fe1ba; box-shadow: 0 0 10px #8fe1ba80; }
.privacy-card div, .account-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.privacy-card strong { color: #d4d3db; font-size: 11px; font-weight: 600; }
.privacy-card span:last-child { color: #777883; font-size: 10px; line-height: 1.4; }
.account-row { display: flex; align-items: center; gap: 10px; padding: 11px 8px 4px; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 10px; color: #292435; background: linear-gradient(140deg, #d0c6ff, #9c8aeb); font-size: 12px; font-weight: 700; }
.account-copy { flex: 1; }
.account-copy strong { color: #e0dfe6; font-size: 11px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-copy span { color: #777883; font-size: 10px; }
.icon-button { border: 0; background: transparent; color: #85858f; cursor: pointer; display: grid; place-items: center; transition: .15s; }
.icon-button:hover { color: #f3f1f8; }
.logout-button { width: 30px; height: 30px; border-radius: 8px; font-size: 17px; }
.logout-button:hover { background: #ffffff0b; }
.sidebar-close, .menu-button, .mobile-title { display: none; }
.main-panel { min-width: 0; position: relative; flex: 1; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 44%, #19171f 0, var(--bg) 48%); }
.topbar { height: 64px; flex: 0 0 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid rgba(255,255,255,.025); }
.model-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid #ffffff0c; border-radius: 8px; background: #ffffff04; color: #aaa9b3; font-size: 11px; }
.model-indicator { width: 6px; height: 6px; border-radius: 50%; background: #9ce4bb; box-shadow: 0 0 8px #9ce4bb70; }
.chevron { font-size: 13px; color: #747580; margin-left: 1px; }
.topbar-action { border: 0; background: none; color: #9999a3; font-size: 11px; cursor: pointer; transition: .15s; }
.topbar-action:hover { color: #fff; }
.topbar-action span { margin-left: 7px; color: #c2b7ff; font-size: 14px; }
.welcome-view { width: min(100% - 40px, 650px); margin: auto; padding: 12px 0 190px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome-orb { width: 82px; height: 82px; position: relative; display: grid; place-items: center; margin-bottom: 30px; }
.orb-core { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 38% 33%, #e1dcff, #aa9bea 45%, #7063af 80%); box-shadow: 0 0 35px #9e8aee60, inset 0 2px 8px #fff9; }
.orb-ring { position: absolute; inset: 4px; border: 1px solid #b6a8ff32; border-radius: 50%; }
.ring-two { inset: -5px; border-color: #b6a8ff15; }
.orb-spark { width: 4px; height: 4px; background: #e3dbff; border-radius: 50%; position: absolute; box-shadow: 0 0 9px #d7ccff; }
.spark-one { top: 9px; right: 6px; }
.spark-two { width: 3px; height: 3px; left: 6px; bottom: 14px; }
.eyebrow { color: #9f96c2; letter-spacing: .18em; font-size: 9px; font-weight: 700; margin: 0; }
.welcome-eyebrow { margin-bottom: 12px; }
h1 { font-family: var(--font-display); letter-spacing: -.055em; }
.welcome-view h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 600; line-height: 1.18; color: #f0eff5; }
.welcome-subtitle { max-width: 410px; color: #8e8e99; font-size: 13px; line-height: 1.65; margin: 13px 0 29px; }
.suggestions { width: min(100%, 564px); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; text-align: left; }
.suggestion-card { position: relative; display: flex; align-items: center; gap: 11px; min-height: 65px; padding: 11px 13px; border: 1px solid #ffffff0a; border-radius: 11px; background: linear-gradient(140deg, #1b1b21, #18191d); cursor: pointer; text-align: left; transition: .2s; }
.suggestion-card:hover { transform: translateY(-2px); border-color: #b3a4ff35; background: #1e1d24; }
.suggestion-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; font-size: 13px; }
.lavender { color: #c9bfff; background: #a18bf21a; }
.mint { color: #99dfc5; background: #78dab21a; }
.peach { color: #ebbb9f; background: #e9a98d18; }
.blue { color: #a3c6ff; background: #86b5ff18; }
.suggestion-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
.suggestion-card strong { color: #d5d4dc; font-size: 11px; font-weight: 600; }
.suggestion-card small { color: #83838e; font-size: 9px; }
.card-arrow { margin-left: auto; color: #646570; font-size: 14px; transition: .15s; }
.suggestion-card:hover .card-arrow { color: #c6bbff; transform: translateX(2px); }
.messages { width: min(100% - 40px, 760px); flex: 1; align-self: center; overflow-y: auto; padding: 32px 7px 210px; scrollbar-width: thin; scrollbar-color: #3a3942 transparent; }
.message-row { display: flex; gap: 14px; margin: 0 0 28px; animation: enter .25s ease-out; }
.message-row.user { justify-content: flex-end; }
.message-avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; display: grid; place-items: center; margin-top: 1px; background: #28252f; color: #c6baff; font-size: 11px; font-weight: 700; }
.message-row.user .message-avatar { order: 2; background: #34303f; color: #d4cbff; }
.message-content { max-width: min(88%, 650px); color: #d8d7df; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.user .message-content { max-width: min(82%, 560px); padding: 10px 14px; border: 1px solid #b9aaff17; border-radius: 15px 15px 4px 15px; background: linear-gradient(145deg, #28262e, #232229); color: #eceaf1; }
.message-row.assistant .message-content { padding-top: 1px; }
.message-label { color: #8b8b96; font-size: 10px; margin-bottom: 5px; }
.message-actions { display: flex; gap: 10px; margin-top: 9px; }
.copy-button { color: #73737e; background: none; border: none; cursor: pointer; padding: 2px 0; font-size: 10px; }
.copy-button:hover { color: #d3ccf2; }
.typing-dots { display: flex; gap: 4px; padding: 8px 0; }
.typing-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #aba1da; animation: pulse 1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .14s; }
.typing-dots i:nth-child(3) { animation-delay: .28s; }
.composer-zone { position: absolute; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; padding: 30px 24px 16px; background: linear-gradient(180deg, transparent, #101114 25%); }
.composer { width: min(100%, 760px); padding: 12px 13px 10px 17px; border: 1px solid #ffffff19; border-radius: 15px; background: #1b1b20; box-shadow: 0 10px 50px #0004; transition: border .2s, box-shadow .2s; }
.composer:focus-within { border-color: #b3a4ff55; box-shadow: 0 10px 55px #0005, 0 0 0 3px #b3a4ff0b; }
.composer textarea { width: 100%; min-height: 29px; max-height: 150px; resize: none; border: 0; outline: 0; background: transparent; color: #eeedf3; font-size: 13px; line-height: 1.6; padding: 3px 0 7px; }
.composer textarea::placeholder { color: #777782; }
.image-preview { display: flex; align-items: center; gap: 9px; margin: 3px 0 10px; color: #aaa9b3; font-size: 10px; }
.image-preview img { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; border: 1px solid #ffffff1c; }
.image-preview button { width: 22px; height: 22px; display: grid; place-items: center; margin-left: auto; border: 0; border-radius: 6px; background: #ffffff12; color: #ccc; font-size: 17px; cursor: pointer; }
.message-image { display: block; max-width: min(100%, 360px); max-height: 300px; object-fit: contain; margin-top: 9px; border-radius: 10px; border: 1px solid #ffffff16; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.composer-hint { color: #71717c; font-size: 9px; }
.sparkle { color: #b9adf2; margin-right: 4px; }
.composer-actions { display: flex; align-items: center; gap: 9px; }
.char-count { color: #62626e; font-size: 9px; }
.attach-button { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #ffffff16; border-radius: 9px; background: #ffffff07; color: #aaa5bf; font-size: 16px; cursor: pointer; }
.attach-button:hover { border-color: #b3a4ff55; color: #ded7ff; }
.attach-button:disabled { opacity: .45; cursor: wait; }
.send-button { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #b8aaff; color: #252132; font-size: 17px; cursor: pointer; transition: .15s; }
.send-button:hover { background: #d1c8ff; transform: translateY(-1px); }
.send-button:disabled { opacity: .45; cursor: wait; transform: none; }
.disclaimer { margin: 9px 0 0; color: #62626c; font-size: 9px; }
.toast { position: fixed; z-index: 50; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 11px 15px; border: 1px solid #ffffff18; border-radius: 10px; background: #25252b; color: #eeedf2; box-shadow: 0 10px 35px #0006; font-size: 12px; }
.auth-screen { width: 100%; min-height: 100dvh; display: grid; place-items: center; padding: 24px; overflow: hidden; position: relative; background: radial-gradient(ellipse at 51% 42%, #1b1823 0, #101114 55%); }
.login-card { width: min(100%, 390px); position: relative; z-index: 1; padding: 37px 36px 27px; border: 1px solid #ffffff12; border-radius: 18px; background: linear-gradient(155deg, #1b1b20f2, #16171af2); box-shadow: 0 24px 90px #0007; }
.login-card .brand-mark { margin-bottom: 27px; }
.login-card h1 { margin: 10px 0 5px; font-size: 28px; font-weight: 600; }
.login-copy { margin: 0 0 25px; color: #8e8e99; font-size: 12px; line-height: 1.6; }
.login-card label { display: block; margin: 15px 0 7px; color: #c4c3cb; font-size: 11px; font-weight: 600; }
.login-card input { width: 100%; height: 42px; padding: 0 12px; outline: none; border: 1px solid #ffffff13; border-radius: 9px; background: #111215; color: #f1eff6; font-size: 12px; transition: .18s; }
.login-card input::placeholder { color: #686872; }
.login-card input:focus { border-color: #a99afc78; box-shadow: 0 0 0 3px #a99afc10; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.password-toggle { position: absolute; top: 0; right: 5px; height: 42px; border: 0; background: none; color: #858590; font-size: 10px; cursor: pointer; }
.password-toggle:hover { color: #cfc6ff; }
.primary-button { height: 43px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 9px; background: #b8aaff; color: #252132; font-weight: 700; font-size: 12px; cursor: pointer; transition: .18s; }
.primary-button:hover { background: #d0c7ff; transform: translateY(-1px); }
.login-button { width: 100%; margin-top: 22px; }
.button-arrow { font-size: 14px; }
.form-error { margin: 11px 0 -9px; color: #f19d9b; font-size: 11px; line-height: 1.4; }
.secure-note { margin: 22px 0 0; display: flex; justify-content: center; gap: 6px; color: #6f707b; font-size: 10px; }
.lock-icon { color: #9c91cb; font-size: 12px; line-height: 10px; }
.auth-decoration { position: absolute; width: 330px; height: 330px; border: 1px solid #b3a4ff08; border-radius: 50%; pointer-events: none; }
.auth-decoration-one { top: -210px; left: -145px; box-shadow: 0 0 0 40px #b3a4ff04, 0 0 0 80px #b3a4ff02; }
.auth-decoration-two { bottom: -245px; right: -110px; width: 400px; height: 400px; box-shadow: 0 0 0 38px #b3a4ff04, 0 0 0 76px #b3a4ff02; }
@keyframes pulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 84vw); transform: translateX(-100%); transition: transform .22s ease; box-shadow: 15px 0 40px #0005; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid; position: absolute; top: 20px; right: 18px; width: 30px; height: 30px; border-radius: 8px; font-size: 21px; }
  .menu-button { display: grid; width: 32px; height: 32px; margin-left: -8px; font-size: 13px; }
  .topbar { height: 57px; flex-basis: 57px; padding: 0 16px; }
  .mobile-title { display: flex; align-items: center; gap: 8px; margin-right: auto; margin-left: 8px; font-size: 12px; color: #d7d6de; font-weight: 600; }
  .model-pill { display: none; }
  .topbar-action { font-size: 0; }
  .topbar-action span { font-size: 18px; margin: 0; }
  .welcome-view { padding: 0 0 160px; width: min(100% - 32px, 500px); }
  .welcome-orb { margin-bottom: 23px; transform: scale(.9); }
  .welcome-subtitle { font-size: 12px; margin-bottom: 24px; }
  .suggestions { grid-template-columns: 1fr; max-width: 410px; gap: 7px; }
  .suggestion-card { min-height: 58px; }
  .composer-zone { padding: 22px 13px 12px; }
  .composer { padding: 10px 10px 8px 13px; border-radius: 13px; }
  .composer-hint { max-width: 230px; font-size: 8px; }
  .disclaimer { font-size: 8px; }
  .messages { width: 100%; padding: 23px 14px 190px; }
  .message-content { font-size: 12px; }
}
@media (max-width: 420px) {
  .login-card { padding: 31px 23px 23px; }
  .welcome-view h1 { font-size: 29px; }
  .suggestion-card small { font-size: 9px; }
  .composer-hint { max-width: 205px; }
}

