.text-layout{grid-template-columns:minmax(0,1fr) minmax(320px,380px)}
.text-chat h2{font-size:20px;margin:0 0 8px}.text-chat{margin-top:16px}.text-messages{max-height:360px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;margin:16px 0}.text-message{padding:12px;border-radius:12px;background:#f0f3ef}.text-message.user{background:#e7eef7;margin-left:20px}.text-message p{white-space:pre-wrap;margin:6px 0;font-size:14px;line-height:1.6}.text-message small{font-weight:700}.text-chat textarea{width:100%;resize:vertical;padding:12px}.text-chat button{margin-top:8px}.text-study .order-pane{overflow:visible}.text-study .shop-layout{align-items:start}.research-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.text-mobile-preview #kiosk-content{max-width:560px;margin:auto}.text-mobile-preview .text-layout{grid-template-columns:1fr}.text-mobile-preview .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.text-mobile-preview .order-pane{position:static}.text-study .guide-avatar,.text-study .ai-emblem{display:none}
@media(max-width:900px){.text-layout{grid-template-columns:1fr}.text-study .order-pane{position:static}.text-study .menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.text-study .task-bar{flex-wrap:wrap}.text-study .menu-heading h1{font-size:24px}.text-study .text-messages{max-height:320px}.text-study .shop-layout{display:grid}.text-study .order-pane{width:auto}}
@media(max-width:480px){.likert:has(label:nth-child(9)){gap:2px}.likert:has(label:nth-child(9)) label span{min-width:24px;font-size:13px}.text-chat{padding:16px}.text-study .product-body h2{font-size:16px}.text-study .task-bar{font-size:12px}}

/* The same AI panel leads in R/P, keeping the first reply reachable on small screens. */
.text-mobile-preview .text-layout{display:flex;flex-direction:column}.text-mobile-preview .text-layout>.menu-pane{width:100%}.text-mobile-preview .text-layout>.order-pane{display:contents}.text-mobile-preview .text-chat{order:-1;width:100%;box-sizing:border-box}.text-mobile-preview .basket-panel{width:100%;box-sizing:border-box}
@media(max-width:900px){.text-study .text-layout{display:flex;flex-direction:column}.text-study .text-layout>.menu-pane{width:100%}.text-study .text-layout>.order-pane{display:contents}.text-study .text-chat{order:-1;width:100%;box-sizing:border-box}.text-study .basket-panel{width:100%;box-sizing:border-box}}
