:root { color-scheme: light; font-family: Arial, sans-serif; color: #172033; background: #edf2f5; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button { min-height: 40px; border: 1px solid #9baab7; border-radius: 5px; background: #fff; color: #172033; font-weight: 700; cursor: pointer; }
button:hover { background: #eef4f6; }
button:disabled { cursor: wait; opacity: .6; }
.demoPage { min-height: 100vh; padding: 24px; }
.demoGate { width: min(920px, 100%); min-height: calc(100vh - 48px); margin: auto; display: grid; grid-template-columns: minmax(240px, 42%) 1fr; align-items: center; gap: 48px; }
.demoGate > img { width: 100%; max-height: 460px; object-fit: contain; }
.demoGatePanel { max-width: 480px; }
.demoBrand { margin: 0 0 10px; color: #157063; font-weight: 800; text-transform: uppercase; }
.demoGate h1 { margin: 0; font-size: 52px; line-height: 1.02; letter-spacing: 0; }
.demoLead { margin: 20px 0 30px; color: #52616d; font-size: 18px; line-height: 1.5; }
.demoGate label { display: block; margin-bottom: 8px; font-weight: 700; }
.demoAccessRow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.demoAccessRow input { min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #9baab7; border-radius: 5px; }
.demoAccessRow button { height: 46px; padding: 0 18px; background: #176f63; border-color: #176f63; color: #fff; }
.demoStatus { min-height: 20px; margin: 8px 0 0; color: #a32a2a; font-size: 14px; }
.demoChat { width: min(920px, 100%); height: calc(100vh - 48px); min-height: 560px; margin: auto; display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden; border: 1px solid #c6d0d7; border-radius: 7px; background: #fff; box-shadow: 0 18px 45px rgba(31, 46, 56, .12); }
.demoHeader { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #d6dee3; }
.demoIdentity { display: flex; align-items: center; gap: 10px; }
.demoIdentity img { width: 46px; height: 46px; object-fit: contain; }
.demoIdentity p, .demoIdentity h1 { margin: 0; }
.demoIdentity p { color: #52616d; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.demoIdentity h1 { margin-top: 2px; font-size: 20px; letter-spacing: 0; }
.demoSession { display: flex; align-items: center; gap: 12px; }
.demoSession span { color: #52616d; font-size: 13px; }
.demoSession button, .demoLanguageBar button { padding: 0 12px; }
.demoLanguageBar { min-height: 72px; display: grid; grid-template-columns: 1fr 42px 1fr auto; align-items: end; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #d6dee3; background: #f7f9fa; }
.demoLanguageBar label { display: grid; gap: 5px; color: #52616d; font-size: 12px; font-weight: 700; }
.demoLanguageBar select { width: 100%; height: 40px; padding: 0 9px; border: 1px solid #9baab7; border-radius: 5px; background: #fff; color: #172033; }
.demoIconButton { width: 42px; padding: 0; font-size: 22px; }
.demoMessages { min-height: 0; overflow-y: auto; padding: 24px 18px; background: #edf3f4; }
.demoWelcome { min-height: 100%; display: grid; place-content: center; justify-items: center; color: #52616d; text-align: center; }
.demoWelcome img { width: 90px; height: 90px; object-fit: contain; }
.demoMessage { width: min(76%, 580px); margin: 0 0 18px; }
.demoMessage p { margin: 0; padding: 12px 14px; border-radius: 7px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.demoMessage span { display: block; margin-top: 5px; color: #667783; font-size: 11px; }
.demoMessage-sent { margin-left: auto; text-align: right; }
.demoMessage-sent p { background: #176f63; color: #fff; text-align: left; }
.demoMessage-received { margin-right: auto; }
.demoMessage-received p { border: 1px solid #ccd6dc; background: #fff; }
.demoComposer { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 18px; border-top: 1px solid #d6dee3; }
.demoComposer textarea { min-height: 46px; max-height: 130px; resize: vertical; padding: 12px; border: 1px solid #9baab7; border-radius: 5px; line-height: 1.35; }
.demoComposer button { height: 46px; padding: 0 18px; background: #176f63; border-color: #176f63; color: #fff; }
.demoComposer .demoStatus { grid-column: 1 / -1; margin: -4px 0 0; }
.srOnly { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .demoPage { padding: 0; }
  .demoGate { min-height: 100vh; grid-template-columns: 1fr; align-content: center; gap: 12px; padding: 24px; }
  .demoGate > img { width: 140px; max-height: 150px; justify-self: center; }
  .demoGate h1 { font-size: 36px; }
  .demoAccessRow { grid-template-columns: 1fr; }
  .demoChat { height: 100vh; min-height: 480px; border: 0; border-radius: 0; }
  .demoHeader { padding: 10px 12px; }
  .demoIdentity img { width: 38px; height: 38px; }
  .demoIdentity h1 { font-size: 17px; }
  .demoSession { align-items: flex-end; flex-direction: column; gap: 4px; }
  .demoSession button { min-height: 32px; }
  .demoLanguageBar { grid-template-columns: 1fr 38px 1fr; padding: 10px 12px; }
  .demoLanguageBar > button:last-child { grid-column: 1 / -1; min-height: 34px; }
  .demoMessages { padding: 18px 12px; }
  .demoMessage { width: 88%; }
  .demoComposer { padding: 10px 12px; }
}
