.chat-main { padding-bottom: 28px; }
.chat-shell { min-height: calc(100vh - var(--header-height) - 112px); display: grid; grid-template-columns: minmax(250px, .72fr) minmax(520px, 1.55fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.chat-info { position: relative; overflow: hidden; padding: 42px 36px; color: #fff; background: radial-gradient(circle at 95% 8%, rgba(255,206,49,.18), transparent 28%), linear-gradient(155deg, var(--deep-navy), #123b7b 74%, #1856aa); }
.chat-info::after { content: "14"; position: absolute; right: -15px; bottom: -55px; color: rgba(255,255,255,.045); font-size: 220px; font-weight: 900; line-height: 1; }
.chat-assistant-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 30px; color: var(--deep-navy); background: var(--gold); border-radius: 18px; box-shadow: 0 14px 30px rgba(2,16,48,.25); font-size: 24px; }
.chat-kicker { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.chat-info h1 { position: relative; z-index: 1; margin: 10px 0 16px; font-size: clamp(34px, 4vw, 54px); line-height: .98; }
.chat-info > p { position: relative; z-index: 1; margin: 0; color: #d2e0fa; line-height: 1.65; }
.chat-capabilities { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chat-capabilities span { padding: 8px 10px; color: #eaf1ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: 11px; font-weight: 800; }
.chat-capabilities i { margin-right: 5px; color: var(--gold); }
.chat-notice { position: absolute; z-index: 1; right: 30px; bottom: 30px; left: 30px; display: flex; gap: 10px; padding: 13px; color: #d7e4fb; background: rgba(3,19,52,.35); border: 1px solid rgba(255,255,255,.11); border-radius: 14px; font-size: 11px; line-height: 1.45; }
.chat-notice i { color: var(--gold); }
.chat-panel { min-width: 0; display: grid; grid-template-rows: auto minmax(300px,1fr) auto auto auto; background: #f8faff; }
.chat-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-status { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 45px; height: 45px; display: grid; place-items: center; padding: 5px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 17px rgba(16,55,115,.1); }
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-status strong, .chat-status small { display: block; }
.chat-status strong { font-size: 14px; }
.chat-status small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.chat-status small i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; background: #22a56b; border-radius: 50%; }
.chat-clear { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: #174fae; background: #edf4ff; border: 1px solid #cfdef6; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 800; }
.chat-messages { min-height: 0; overflow-y: auto; padding: 28px 26px 12px; scroll-behavior: smooth; }
.chat-message { display: flex; align-items: flex-start; gap: 11px; max-width: 88%; margin-bottom: 20px; }
.user-message { flex-direction: row-reverse; margin-left: auto; }
.message-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #1557c0; border-radius: 11px; font-size: 13px; box-shadow: 0 8px 16px rgba(21,87,192,.18); }
.user-message .message-avatar { color: var(--deep-navy); background: var(--gold); }
.message-content { min-width: 0; padding: 13px 15px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 6px 17px 17px 17px; box-shadow: 0 8px 22px rgba(17,53,108,.07); }
.user-message .message-content { color: #fff; background: #174fae; border-color: #174fae; border-radius: 17px 6px 17px 17px; }
.message-content > strong { display: block; margin-bottom: 7px; color: #174fae; font-size: 11px; }
.user-message .message-content > strong { color: #dbe8ff; }
.message-content p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.message-time { margin-top: 8px; color: #8c9bb5; font-size: 9px; }
.user-message .message-time { color: #c7d8f7; text-align: right; }
.message-sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.message-sources a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: #12499e; background: #eef4ff; border: 1px solid #cadcf8; border-radius: 9px; font-size: 10px; font-weight: 800; }
.typing-dots { display: flex; gap: 5px; padding: 8px 2px 3px; }
.typing-dots i { width: 7px; height: 7px; background: #87a0c7; border-radius: 50%; animation: chat-pulse 1s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-pulse { 0%,70%,100% { transform: translateY(0); opacity:.45; } 35% { transform: translateY(-5px); opacity:1; } }
.chat-prompts { display: flex; gap: 8px; overflow-x: auto; padding: 10px 24px 6px; scrollbar-width: thin; }
.chat-prompts button { flex: 0 0 auto; padding: 8px 11px; color: #194a94; background: #fff; border: 1px solid #d1def2; border-radius: 999px; cursor: pointer; font-size: 10px; font-weight: 800; }
.chat-prompts button:hover { color: #fff; background: #194fba; border-color: #194fba; }
.chat-composer { position: relative; display: flex; align-items: flex-end; gap: 10px; margin: 9px 24px 0; padding: 8px 8px 8px 14px; background: #fff; border: 1px solid #cbdaf1; border-radius: 18px; box-shadow: 0 9px 25px rgba(16,55,115,.08); }
.chat-composer:focus-within { border-color: #5b8bd4; box-shadow: 0 0 0 3px rgba(21,87,192,.1); }
.chat-composer textarea { width: 100%; max-height: 130px; resize: none; overflow-y: auto; padding: 7px 50px 7px 0; color: var(--text); background: transparent; border: 0; outline: 0; font: inherit; font-size: 13px; line-height: 1.45; }
.chat-counter { position: absolute; right: 66px; bottom: 14px; color: #91a0b7; font-size: 9px; }
.chat-composer button { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: var(--deep-navy); background: var(--gold); border: 0; border-radius: 13px; cursor: pointer; font-size: 15px; }
.chat-composer button:disabled { cursor: wait; opacity: .55; }
.chat-hint { margin: 8px 24px 15px; color: #8c9bb4; text-align: center; font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width:1180px) { .chat-shell { grid-template-columns: 250px minmax(0,1fr); } .chat-info { padding:32px 25px; } .chat-notice { right:20px; bottom:22px; left:20px; } }
@media (max-width:820px) { .chat-main { padding-right:12px; padding-left:12px; } .chat-shell { min-height:calc(100dvh - var(--header-height) - 50px); grid-template-columns:1fr; border-radius:22px; } .chat-info { display:none; } .chat-panel { min-height:calc(100dvh - var(--header-height) - 50px); } .chat-message { max-width:94%; } }
@media (max-width:560px) { .chat-panel-head { padding:13px 14px; } .chat-status strong { max-width:165px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .chat-clear span { display:none; } .chat-messages { padding:20px 13px 8px; } .chat-message { max-width:98%; gap:7px; } .message-avatar { width:30px; height:30px; } .message-content { padding:11px 12px; } .chat-prompts { padding-right:13px; padding-left:13px; } .chat-composer { margin-right:13px; margin-left:13px; } }
