/* Homepage-only adaptation of the chat application's light composer. */
.homepage-chat { min-width: 0; width: 100%; align-self: center; }
.homepage-chat .model-map { width: min(100%, 330px); min-height: 0; aspect-ratio: 1; margin: -42px auto 28px; padding: 28px; }
.homepage-chat .hero-brand-symbol { width: min(92%, 270px); }
.homepage-composer { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; width: 100%; min-height: 62px; margin: 0; padding: 8px; border: 1px solid #cbd9de; border-radius: 31px; background: #fff; color: #16242b; box-shadow: 0 14px 40px rgba(29, 67, 79, .16); transition: border-color .15s ease, box-shadow .15s ease; }
.homepage-composer:focus-within { border-color: rgba(0, 184, 250, .62); box-shadow: 0 0 0 3px rgba(0, 143, 194, .22), 0 14px 40px rgba(29, 67, 79, .16); }
.homepage-chat button, .homepage-chat textarea { font: inherit; }
.homepage-chat button { cursor: pointer; border: 0; }
.homepage-chat button:focus-visible { outline: 2px solid #008fc2; outline-offset: 3px; }
.homepage-chat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.homepage-composer textarea { display: block; width: 100%; min-width: 0; min-height: 44px; max-height: 180px; margin: 0; padding: 9px 7px; border: 0; border-radius: 0; background: transparent; color: #16242b; resize: none; line-height: 26px; font-size: 14px; direction: rtl; unicode-bidi: plaintext; text-align: right; }
.homepage-composer textarea::placeholder { color: #71858e; }
.homepage-composer textarea:focus { outline: none; box-shadow: none; }
.homepage-composer-tools { position: relative; }
.homepage-composer-plus, .homepage-composer-send { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.homepage-composer-plus { color: #536771; background: transparent; transition: transform .15s ease; }
.homepage-composer-plus:hover, .homepage-composer-plus[aria-expanded="true"] { background: #e3edf0; color: #16242b; }
.homepage-composer-plus[aria-expanded="true"] { transform: rotate(45deg); }
.homepage-composer-send { color: #fff; background: #008fc2; }
.homepage-composer-send svg { width: 19px; height: 19px; }
.homepage-composer-send:hover { filter: brightness(1.08); }
.homepage-composer-send:disabled { color: #71858e; background: #e2ecef; opacity: .72; cursor: default; }
.homepage-composer-menu { position: absolute; z-index: 18; inset-inline-start: 0; bottom: calc(100% + 18px); width: min(340px, calc(100vw - 64px)); display: grid; gap: 2px; padding: 7px; border: 1px solid #cbd9de; border-radius: 18px; background: #edf3f5; box-shadow: 0 28px 80px rgba(29, 67, 79, .18); }
.homepage-composer-menu > button { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 58px; padding: 7px 9px; border-radius: 12px; background: transparent; color: #16242b; text-align: start; }
.homepage-composer-menu > button:hover, .homepage-composer-menu > button[aria-pressed="true"] { background: #e3edf0; }
.homepage-composer-menu svg { justify-self: center; color: #006c94; }
.homepage-composer-menu strong, .homepage-composer-menu small { display: block; }
.homepage-composer-menu strong { font-size: 12px; font-weight: 650; }
.homepage-composer-menu small { margin-top: 1px; color: #536771; font-size: 10px; }
.homepage-composer-mode { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 36px; margin: 10px auto 0; padding: 0 10px 0 4px; border: 1px solid rgba(0, 143, 194, .32); border-radius: 999px; background: rgba(0, 143, 194, .12); color: #006c94; font-size: 11px; font-weight: 650; }
.homepage-composer-mode button { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; }
.homepage-composer-mode button:hover { background: #e3edf0; }
.homepage-composer-hint { margin: 9px 0 0; color: #536771; text-align: center; font-size: 11px; line-height: 1.8; }
.homepage-chat [hidden] { display: none; }
@media (max-width: 1000px) { .homepage-chat { max-width: 620px; margin-inline: auto; } .homepage-chat .model-map { margin-top: 0; } }
@media (max-width: 600px) { .homepage-chat .model-map { width: 240px; padding: 22px; margin-bottom: 22px; } .homepage-composer textarea { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .homepage-composer, .homepage-composer-plus { transition: none; } }
