:root { color-scheme: dark; --bg: #090b10; --panel: rgba(15, 18, 26, .88); --line: rgba(255,255,255,.08); --muted: #8f96a8; --text: #f3f5f9; --accent: #8b7cf6; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; overflow: hidden; background: var(--bg); color: var(--text); font-family: "DM Sans", "Noto Sans SC", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; opacity: .18; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.2) .6px, transparent .6px); background-size: 22px 22px; }
.orb { position: fixed; width: 420px; height: 420px; filter: blur(120px); opacity: .14; border-radius: 50%; pointer-events: none; }
.orb-one { background: #745eff; top: -180px; left: 35%; }.orb-two { background: #29b6a6; right: -220px; bottom: -200px; }
.app-shell { position: relative; display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.sidebar { padding: 28px 18px 22px; border-right: 1px solid var(--line); background: rgba(8,10,15,.72); display: flex; flex-direction: column; backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 28px; font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(145deg, #9b8cff, #6354d8); box-shadow: 0 8px 24px #7c6df744; font-size: 15px; }
button, textarea, input { font: inherit; }
.new-chat { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: 12px; padding: 12px 14px; text-align: left; cursor: pointer; transition: .2s; }
.new-chat:hover, .suggestions button:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.new-chat span { color: #ada3ff; margin-right: 7px; font-size: 18px; }.side-spacer { flex: 1; }
.ping-button { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin-bottom: 4px; padding: 12px 10px; border: 1px solid transparent; border-radius: 11px; color: #c8ccd6; background: transparent; text-align: left; cursor: pointer; transition: .2s; }.ping-button:hover { border-color: var(--line); background: rgba(255,255,255,.04); }.ping-button:disabled { cursor: wait; opacity: .7; }.ping-button small { display: block; margin-top: 4px; color: #70778a; font-size: 11px; }.ping-button .status-dot { margin-top: 4px; }
.access-button { width: 100%; margin: 0 0 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; color: #c8ccd6; background: rgba(255,255,255,.035); cursor: pointer; text-align: left; }
.access-button:hover { background: rgba(255,255,255,.07); }
.privacy { display: flex; gap: 10px; align-items: flex-start; padding: 14px 10px; color: #c8ccd6; font-size: 12px; }.privacy small { display: block; margin-top: 4px; color: #70778a; line-height: 1.4; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5bd6a2; box-shadow: 0 0 9px #5bd6a299; }.status-dot.unknown { background: #747b8c; box-shadow: none; }.status-dot.checking { background: #e9b949; box-shadow: 0 0 9px #e9b94999; animation: pulse 1s infinite; }.status-dot.failed { background: #ed6a75; box-shadow: 0 0 9px #ed6a7599; }
.chat-panel { min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.topbar { height: 84px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(10,12,18,.5); backdrop-filter: blur(14px); }
.topbar h1 { margin: 0 0 5px; font-size: 16px; font-weight: 600; }.topbar p { margin: 0; color: var(--muted); font-size: 11px; }.topbar p .status-dot { margin-right: 4px; }
.clear-button { border: 0; background: transparent; color: #777f91; cursor: pointer; padding: 8px; }.clear-button:hover { color: #d5d8e0; }
.messages { flex: 1; overflow-y: auto; padding: 32px max(28px, calc((100% - 780px) / 2)); scrollbar-width: thin; scrollbar-color: #303441 transparent; }
.welcome { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 5vh; animation: appear .5s ease; }
.spark { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #8d7efd55; border-radius: 17px; background: linear-gradient(145deg, #8b7cf626, #8b7cf60a); color: #b5aaff; font-size: 23px; box-shadow: 0 15px 50px #7564ec20; }
.welcome h2 { margin: 22px 0 10px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -1px; }.welcome > p { max-width: 500px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.suggestions { width: 100%; max-width: 650px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 34px; }
.suggestions button { padding: 15px; color: #dfe2ea; text-align: left; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); cursor: pointer; transition: .2s; font-size: 13px; }.suggestions small { display: block; margin-top: 6px; color: #72798b; font-size: 11px; }
.message { display: flex; gap: 13px; margin: 0 0 26px; animation: appear .25s ease; }.message.user { flex-direction: row-reverse; }.avatar { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: #242836; color: #aeb5c6; }.assistant .avatar { background: #7768e8; color: white; }
.bubble { max-width: min(82%, 680px); padding: 12px 15px; line-height: 1.65; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 5px 15px 15px; background: rgba(255,255,255,.04); }.user .bubble { border-radius: 15px 5px 15px 15px; background: #796ae4; border-color: transparent; }
.typing { display: flex; gap: 5px; padding: 8px 2px; }.typing i { width: 5px; height: 5px; border-radius: 50%; background: #a8aec0; animation: bounce 1.2s infinite; }.typing i:nth-child(2) { animation-delay: .16s; }.typing i:nth-child(3) { animation-delay: .32s; }
.composer-wrap { flex: 0 0 auto; padding: 14px max(28px, calc((100% - 780px) / 2)) 18px; background: linear-gradient(transparent, #090b10 25%); }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: #151821; box-shadow: 0 12px 45px #0008; transition: .2s; }.composer:focus-within { border-color: #8b7cf688; box-shadow: 0 12px 50px #0009, 0 0 0 3px #8b7cf612; }
textarea { width: 100%; max-height: 160px; padding: 7px 0; resize: none; border: 0; outline: 0; color: var(--text); background: transparent; line-height: 1.5; }textarea::placeholder { color: #686f80; }
.send-button { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 11px; color: white; background: #8071e9; cursor: pointer; font-size: 19px; transition: .2s; }.send-button:hover { background: #9486f4; transform: translateY(-1px); }.send-button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.hint { margin: 9px 0 0; text-align: center; color: #545b6c; font-size: 10px; }
.access-dialog { width: min(92vw, 420px); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; color: var(--text); background: #151821; box-shadow: 0 24px 90px #000c; }
.access-dialog::backdrop { background: rgba(3,5,9,.72); backdrop-filter: blur(8px); }
.access-dialog form { position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 30px; }
.access-dialog .spark { align-self: center; }
.access-dialog h2 { margin: 18px 0 8px; text-align: center; font-size: 22px; }
.access-dialog p { margin: 0 0 22px; color: var(--muted); text-align: center; line-height: 1.55; font-size: 14px; }
.access-dialog label { margin-bottom: 7px; color: #c8ccd6; font-size: 13px; }
.access-dialog input { width: 100%; padding: 12px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; outline: 0; color: var(--text); background: #0e1118; }
.access-dialog input:focus { border-color: #8b7cf688; box-shadow: 0 0 0 3px #8b7cf612; }
.access-dialog .form-error { min-height: 18px; margin: 8px 0 4px; color: #ed808a; text-align: left; font-size: 12px; }
.dialog-submit { padding: 12px 16px; border: 0; border-radius: 11px; color: white; background: #8071e9; cursor: pointer; }
.dialog-close { position: absolute; top: 13px; right: 15px; border: 0; color: #777f91; background: transparent; cursor: pointer; font-size: 24px; }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } }@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity:.45 } 30% { transform:translateY(-4px); opacity:1 } }@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 700px) { .app-shell { grid-template-columns: 1fr; }.sidebar { display:none; }.topbar { height:72px; padding:0 18px; }.messages { padding:24px 16px; }.composer-wrap { padding:12px 13px 14px; }.suggestions { grid-template-columns:1fr; max-width:360px; }.welcome { justify-content:flex-start; padding-top:10vh; }.suggestions button { text-align:center; } }
