/* Shared readable typography, including narrow and short viewports. */
:root { font-size: 16px; --muted: #b4c3aa; }
body { -webkit-text-size-adjust: 100%; }
.header-caption { font-size: 12px; letter-spacing: 1.3px; color: #b3c3a9; }
.sound-button { font-size: 15px; min-height: 44px; color: #d1ddc8; }
.icon-button { width: 40px; height: 40px; font-size: 19px; }
.scene-label { font-size: 12px; letter-spacing: 1px; color: #9bad91; }
.eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: 1.3px; color: #b4c6a6; }
.greeting p { font-size: 19px; line-height: 1.65; color: #c2cfb8; }
.intro-link { font-size: 16px; min-height: 44px; line-height: 1.5; }
.robot-tag { font-size: 13px; line-height: 1.5; color: #c5d9b4; }
.robot-note { display: none; }
.robot-note span:first-child { font-size: 13px; }
.robot-note span:last-child { font-size: 11px; }

.interaction-area { width: min(840px, calc(100% - 48px)); margin-top: 0; }
.suggestions { gap: 12px; margin-bottom: 16px; }
.suggestions button { font-size: 16px; min-height: 46px; line-height: 1.45; padding: 11px 21px; color: #dbe8d0; }
.suggestions button span { font-size: 18px; }
.composer { padding: 10px; gap: 13px; }
.composer input, .composer input::placeholder { font-size: 17px; line-height: 1.5; }
.composer input { padding: 12px 0; }
.composer input::placeholder { color: #bdcbb2; }
.mic-button { width: 48px; height: 48px; padding: 11px 16px 11px 7px; color: #c5d8b6; }
.send-button { width: 48px; height: 48px; }
.input-caption { font-size: 13px; line-height: 1.6; color: #b0c09f; padding-top: 12px; gap: 16px; }
.input-caption > span { min-width: 0; }
.input-caption button { font-size: 14px; line-height: 1.5; color: #c0d1ac; flex-shrink: 0; }
.footer { min-height: 74px; height: auto; padding-top: 12px; padding-bottom: 12px; font-size: 12px; line-height: 1.5; letter-spacing: .7px; color: #9db18f; }
.footer button { font-size: 15px; min-height: 44px; color: #c5d8b4; }
.footer-center { font-size: 11px; }

.conversation { left: 6%; top: 5%; width: clamp(400px, 34vw, 560px); height: calc(90% - 16px); max-height: 640px; padding: 24px; }
.panel-heading { font-size: 12px; line-height: 1.6; letter-spacing: 1px; color: #bdd2ad; padding-bottom: 13px; }
.small-button { width: 44px; height: 44px; flex-shrink: 0; font-size: 30px; }
.message { padding-top: 21px; }
.app.chat-open .scene-label, .app.demo-open .scene-label { visibility: hidden; }
.message-label { font-size: 12px; line-height: 1.5; letter-spacing: 1px; color: #b4cc9f; margin-bottom: 9px; }
.message.user .message-label { color: #b2c6a0; }
.message p { font-size: 18px; line-height: 1.65; color: #edf4e7; }
.message.user p { font-size: 17px; line-height: 1.65; color: #c0d1b2; }
.message .message-source { font-size: 14px; line-height: 1.6; margin-top: 10px; color: #c2e29e; }
.message-mode { font-size: 12px; line-height: 1.6; color: #a8bf95; }
.message-action { font-size: 15px; line-height: 1.5; min-height: 44px; padding: 10px 14px; }
.small-link { font-size: 15px; line-height: 1.6; min-height: 44px; padding-top: 12px; }
.small-link span { font-size: 12px; }
.app.chat-open .robot-zone { left: 74%; transform: translate(-50%, -50%) scale(.82); }

.demo-panel { right: 6%; top: 5%; width: clamp(400px, 34vw, 480px); padding: 24px; max-height: calc(90% - 16px); }
.demo-panel > .panel-heading { position: sticky; top: 0; z-index: 2; background: #18281d; }
.demo-title { font-size: 28px; line-height: 1.3; margin-top: 22px; margin-bottom: 12px; }
.demo-copy { font-size: 17px; line-height: 1.65; color: #c1d0b6; margin-bottom: 20px; }
.doc-label { font-size: 12px; line-height: 1.6; letter-spacing: .7px; color: #b1c39d; overflow-wrap: anywhere; }
.doc-highlight { font-size: 16px; line-height: 1.7; padding: 13px; color: #d8ecca; }
.demo-question, .demo-result { font-size: 17px; line-height: 1.65; }
.demo-result { color: #e0efd2; }
.demo-result .doc-label { margin-top: 9px; }
.demo-footer { font-size: 12px; line-height: 1.6; letter-spacing: .5px; color: #adbf98; gap: 14px; }
.meeting-line, .task-row, .quiz-option, .quiz-feedback { font-size: 16px; line-height: 1.65; }
.meeting-line { color: #c4d6b6; padding: 13px 0; }
.task-row { gap: 13px; padding: 14px 0; }
.task-row small { font-size: 14px; line-height: 1.6; color: #adc59a; }
.task-check { width: 21px; height: 21px; line-height: 19px; font-size: 14px; flex-shrink: 0; }
.quiz-option { padding: 13px; min-height: 48px; }
.quiz-feedback { min-height: 26px; }
.presentation-controls { font-size: 14px; min-height: 46px; }
.presentation-controls #presentation-next { font-size: 16px; min-height: 46px; }
.presentation-controls #presentation-stop { width: 44px; height: 44px; font-size: 28px; }
.app.demo-open.chat-open .conversation { left: 4%; top: 5%; width: clamp(380px, 30vw, 490px); max-height: 640px; }
.app.demo-open.chat-open .demo-panel { right: 4%; width: clamp(380px, 30vw, 440px); }

.details-dialog { max-width: 620px; padding: 30px; }
.details-dialog .dialog-top { position: sticky; top: 0; z-index: 2; background: #142019; }
.details-dialog h2 { font-size: 30px; line-height: 1.35; }
.details-dialog p { font-size: 17px; line-height: 1.7; color: #c9d8bd; }
.source-list a { font-size: 17px; line-height: 1.6; min-height: 50px; }
.source-date { font-size: 14px !important; line-height: 1.65; color: #b3c69f !important; }
.dialog-action { font-size: 17px; line-height: 1.5; min-height: 48px; padding: 14px 18px; }
.toast { width: max-content; max-width: min(680px, calc(100% - 32px)); font-size: 16px; line-height: 1.65; padding: 15px 20px; }

@media (max-width: 1300px) { .footer-center { display: none; } }
@media (max-width: 1200px) {
  .header-caption { display: none; }
  .app.demo-open.chat-open .conversation { display: none; }
  .app.demo-open .robot-zone, .app.demo-open.chat-open .robot-zone { left: 30%; opacity: .85; transform: translate(-50%, -50%) scale(.75); }
  .app.demo-open.chat-open .demo-panel { right: 6%; width: clamp(400px, 34vw, 480px); }
}
@media (max-width: 760px) {
  .header { height: 82px; padding: 0 20px; }
  .header-actions { gap: 12px; }
  .sound-button { font-size: 14px; }
  .scene-label { font-size: 11px; }
  .greeting { top: 18px; padding: 0 20px; }
  .greeting h1 { font-size: 36px; }
  .greeting p { font-size: 16px; line-height: 1.6; max-width: 350px; margin: 0 auto; }
  .robot-zone { top: 61%; }
  .robot-tag { font-size: 12px; }
  .interaction-area { width: calc(100% - 32px); margin-top: 0; }
  .suggestions { gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
  .suggestions button { font-size: 14px; min-height: 44px; padding: 10px 8px; gap: 6px; flex: 1; justify-content: center; }
  .suggestions button span { font-size: 15px; }
  .composer { padding: 8px; gap: 9px; }
  .composer input, .composer input::placeholder { font-size: 16px; }
  .mic-button { width: 42px; height: 46px; padding: 10px 12px 10px 4px; }
  .send-button { width: 44px; height: 46px; }
  .input-caption { font-size: 12px; line-height: 1.6; flex-wrap: wrap; gap: 5px; padding-top: 9px; }
  .input-caption > span { flex-basis: 100%; }
  .input-caption button { font-size: 14px; min-height: 28px; }
  .footer { padding: 10px 20px; gap: 12px; min-height: 66px; font-size: 12px; letter-spacing: .3px; }
  .footer > span:first-child { max-width: 52%; line-height: 1.5; }
  .footer button { font-size: 14px; white-space: nowrap; }
  .conversation, .app.demo-open.chat-open .conversation { left: 16px; top: 15px; width: calc(100% - 32px); height: calc(100% - 30px); max-height: none; padding: 20px; }
  .message p { font-size: 18px; }
  .message.user p { font-size: 17px; }
  .demo-panel, .app.demo-open.chat-open .demo-panel { left: 16px; right: 16px; top: 15px; width: auto; max-height: calc(100% - 30px); padding: 20px; }
  .demo-title { font-size: 26px; }
  .demo-copy { font-size: 16px; }
  .demo-document { padding: 13px; }
  .doc-highlight { font-size: 16px; }
  .demo-footer { font-size: 12px; }
  .app.demo-open .robot-zone, .app.demo-open.chat-open .robot-zone { left: 50%; opacity: .12; }
  .details-dialog { padding: 23px; }
  .details-dialog h2 { font-size: 27px; }
  .details-dialog p, .source-list a { font-size: 16px; }
  .toast { font-size: 16px; bottom: 210px; }
}
@media (max-width: 360px) { .suggestions button span { display: none; } }
@media (max-width: 760px) and (max-height: 780px) {
  .robot-zone { width: 290px; height: 335px; top: 67%; }
  .greeting h1 { margin-top: 18px; margin-bottom: 8px; font-size: 34px; }
  .robot-tag { bottom: -3px; }
}
