:root {
  --page: #111315;
  --panel: #181b1f;
  --panel-hover: #242932;
  --line: #2d333c;
  --text: #edf2f7;
  --muted: #9099a8;
  --accent: #58a6ff;
  --accent-deep: #2784df;
  --assistant: #20252c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.access-gate { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, #1c2b3a 0, transparent 42%), rgba(17,19,21,.98); }
.access-gate.hidden { display: none; }
.access-card { width: min(430px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: rgba(24,27,31,.96); box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.access-avatar { display: block; width: 58px; height: 58px; margin: 0 auto 22px; object-fit: cover; border-radius: 50%; background: #4f92d8; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-align: center; }
.access-card h1 { margin: 0; font-size: 25px; text-align: center; }
.access-description { margin: 12px 0 25px; color: var(--muted); line-height: 1.55; text-align: center; }
#registration-form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
#registration-form input { width: 100%; border: 1px solid #39424e; border-radius: 10px; padding: 12px 13px; outline: none; color: var(--text); background: #11151a; }
#registration-form input:focus { border-color: #528dcb; box-shadow: 0 0 0 3px rgba(75,143,210,.16); }
.access-submit { width: 100%; margin-top: 13px; border: 0; border-radius: 10px; padding: 12px; background: var(--accent); color: #0d1925; font-weight: 700; }
.access-submit:disabled { cursor: wait; opacity: .55; }
.access-status { min-height: 22px; margin: 16px 0 0; color: #9dcaff; line-height: 1.45; text-align: center; }
.access-note { margin: 18px 0 0; color: #707b8a; font-size: 11px; line-height: 1.45; text-align: center; }

button, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
.chat-shell { min-height: 100dvh; display: grid; grid-template-columns: 278px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 20px; min-height: 100dvh; padding: 19px 14px 14px; background: var(--panel); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand span, .conversation-header span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.avatar, .message-avatar { object-fit: cover; border-radius: 50%; background: #4f92d8; }
.avatar { width: 36px; height: 36px; }
.new-chat { width: 100%; border: 1px solid #3a4655; background: #263545; border-radius: 11px; padding: 11px 12px; text-align: left; font-weight: 650; transition: background .15s; }
.new-chat:hover { background: #30465c; }.new-chat span { color: #9dcaff; font-size: 18px; vertical-align: -1px; }
.chat-list { display: flex; flex-direction: column; gap: 3px; overflow: auto; }.label { margin: 9px 8px 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.chat-item { overflow: hidden; border: 0; border-radius: 8px; padding: 10px 11px; background: transparent; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.chat-item:hover, .chat-item.active { background: var(--panel-hover); }.chat-item.active { color: #fff; font-weight: 600; }
.profile { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 9px 7px 1px; color: var(--muted); font-size: 12px; }.profile-dot { width: 8px; height: 8px; border-radius: 50%; background: #53c48a; box-shadow: 0 0 0 4px #163527; }
.conversation { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-width: 0; min-height: 100dvh; background: radial-gradient(circle at 74% -15%, #1c2b3a 0, transparent 33%), var(--page); }.conversation-header { display: flex; align-items: center; gap: 13px; height: 68px; padding: 0 28px; border-bottom: 1px solid rgba(45,51,60,.72); }.conversation-header strong { display: block; font-size: 15px; }.more-button, .menu-button { border: 0; background: transparent; color: var(--muted); font-size: 20px; }.more-button { margin-left: auto; letter-spacing: 2px; }.menu-button { display: none; }
.messages { width: min(820px, 100%); margin: 0 auto; padding: 48px 28px; overflow: auto; }.message { display: flex; gap: 13px; margin-bottom: 25px; line-height: 1.6; }.message-avatar { width: 30px; height: 30px; flex: 0 0 auto; }.message-author { margin: 1px 0 5px; font-weight: 700; font-size: 14px; }.message p { margin: 0; }.user-message { justify-content: flex-end; }.user-message p { max-width: 78%; padding: 11px 15px; border-radius: 16px 16px 3px 16px; background: var(--accent-deep); color: #fff; }.streaming::after { content: "▋"; color: var(--accent); animation: blink 1s steps(2) infinite; }@keyframes blink {50% { opacity: 0;}}
.composer { width: min(820px, calc(100% - 56px)); margin: 0 auto; border: 1px solid #39424e; border-radius: 17px; background: #1c2026; box-shadow: 0 15px 50px rgba(0,0,0,.22); }.composer:focus-within { border-color: #528dcb; box-shadow: 0 0 0 3px rgba(75,143,210,.16); }.composer textarea { width: 100%; min-height: 56px; max-height: 180px; resize: none; border: 0; outline: 0; padding: 16px 17px 4px; color: var(--text); background: transparent; line-height: 1.5; }.composer textarea::placeholder { color: #7e8999; }.composer-actions { display: flex; align-items: center; gap: 9px; padding: 5px 9px 9px; }.attach { border: 0; background: transparent; color: var(--muted); font-size: 22px; transform: rotate(45deg); }.hint { margin-right: auto; color: #707b8a; font-size: 11px; }.send { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--accent); color: #0d1925; font-size: 19px; font-weight: 800; }.send:hover { background: #86c0ff; }.send:disabled { cursor: not-allowed; opacity: .4; }.disclaimer { margin: 10px auto 16px; color: #747e8b; font-size: 11px; text-align: center; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 720px) { .chat-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; z-index: 5; width: min(280px, 85vw); transform: translateX(-101%); transition: transform .2s ease; box-shadow: 15px 0 45px rgba(0,0,0,.4); }.sidebar.open { transform: translateX(0); }.menu-button { display: block; }.conversation-header { height: 61px; padding: 0 14px; }.messages { padding: 27px 16px; }.composer { width: calc(100% - 24px); }.hint { display: none; }.disclaimer { padding: 0 13px; font-size: 10px; } }
