/* BOT54: conversation gets the available viewport; consent remains explicit. */
.chat-toolbar{display:flex;align-items:center;gap:8px}.memory-panel{flex:0 0 auto;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.memory-panel summary{padding:8px 14px;cursor:pointer}.memory-panel[open]{max-height:24%;overflow:auto}.conversation-links{display:contents}
@media(max-width:760px){
 html:has(.chat-standalone){height:100%;overflow:hidden}.chat-standalone{height:var(--chat-viewport-height,100dvh);overflow:hidden}
 .chat-standalone>header,.chat-standalone main>.eyebrow,.chat-standalone h1,.chat-standalone main>.intro,.chat-standalone main>footer{display:none}
 .chat-standalone main{max-width:none;padding:0;margin:0;height:100%;display:flex;flex-direction:column}
 .chat-standalone .panel{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;border:0;border-radius:0;overflow:hidden}
 .chat-standalone #status{margin:0;border-radius:0;flex:0 0 auto;padding:7px 14px;font-size:12px}
 .chat-standalone .panelhead{padding:4px 12px;min-height:48px;flex:0 0 auto}.chat-standalone .panelhead h2{font-size:15px}
 .chat-standalone .quiet{min-height:44px;font-size:13px;padding:6px 10px}
 .chat-standalone .ai-notice{padding:10px 14px;font-size:12px;max-height:38%;overflow:auto;flex:0 0 auto}.chat-standalone .check{font-size:13px;align-items:center;min-height:44px}.chat-standalone .check input{width:20px;height:20px;margin:0}
 .chat-standalone .messages{flex:1 1 auto;min-height:0;max-height:none;padding:16px 14px;overscroll-behavior:contain;scroll-padding:16px}
 .chat-standalone .bubble{max-width:100%;font-size:16px;line-height:1.7;padding:12px 14px;flex-shrink:0}
 .chat-standalone .chips{flex:0 0 auto;padding:6px 12px;flex-wrap:nowrap;overflow-x:auto;gap:7px}.chat-standalone .chips button{white-space:nowrap;min-height:40px;font-size:12px}
 .chat-standalone .composer{flex:0 0 auto;padding:8px 12px;gap:8px}.chat-standalone .composer input{font-size:16px;min-height:46px;padding:9px 10px}.chat-standalone .primary{font-size:14px;min-height:46px;padding:8px 14px}
 .chat-standalone .conversation-actions{flex:0 0 auto;padding:0 14px}.chat-standalone .conversation-actions:has(>#retry[hidden]):has(>#handoff[hidden]){display:none}
 .chat-standalone .conversation-links{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:0 14px calc(env(safe-area-inset-bottom));flex:0 0 auto;background:#fff}
 .chat-standalone .next-step,.chat-standalone .intake{padding:0;border:0;flex:1;min-width:0;background:none;display:block}.chat-standalone .next-step>div,.chat-standalone .intake h2,.chat-standalone .intake p{display:none}
 .chat-standalone .link-button,.chat-standalone .intake a{display:flex;align-items:center;min-height:44px;font-size:12px;padding:0;border:0;border-radius:0;white-space:normal;text-align:left;text-decoration:underline;background:none}.chat-standalone .intake a{justify-content:flex-end}
 .chat-standalone[data-chat-ready="true"] #status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;padding:0;border:0}
 .chat-standalone[data-has-conversation="true"] .chips{display:none}
}
@media(max-width:760px) and (max-height:500px){.chat-standalone[data-chat-ready="true"] .chips,.chat-standalone[data-chat-ready="true"] .conversation-links{display:none}.chat-standalone .panelhead{min-height:44px;padding-block:0}.chat-standalone .bubble{padding:10px 12px}}

/* BOT93: compact footer actions;44px touch targets preserve conversation space. */
.chat-standalone .conversation-links{display:flex;align-items:center;gap:8px;padding:0 12px env(safe-area-inset-bottom);border-top:1px solid #edf2ef;background:#fff;flex:0 0 auto}
.chat-standalone .conversation-links .next-step,.chat-standalone .conversation-links .intake{display:block;flex:1;min-width:0;padding:0;border:0;background:none}
.chat-standalone .conversation-links .next-step>div,.chat-standalone .conversation-links .intake h2,.chat-standalone .conversation-links .intake p{display:none}
.chat-standalone .conversation-links #main-quote,.chat-standalone .conversation-links #staff-contact{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:0;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#56685f;font-size:13px;font-weight:600;line-height:1.3;text-align:center;text-decoration:none;white-space:nowrap;letter-spacing:-.015em}
.chat-standalone .conversation-links #main-quote::before,.chat-standalone .conversation-links #staff-contact::before{content:"";position:absolute;inset:4px 0;z-index:-1;border:1px solid #e1e8e3;border-radius:10px;background:#f6f8f6;transition:background .15s ease,border-color .15s ease}
.chat-standalone .conversation-links #staff-contact{color:#176c4a;font-weight:700}
.chat-standalone .conversation-links #staff-contact::before{background:#eaf5ee;border-color:#cfe6d7}
.chat-standalone .conversation-links #main-quote:hover::before{background:#edf2ee;border-color:#cbd9cf}
.chat-standalone .conversation-links #staff-contact:hover::before{background:#dceee3;border-color:#b3d5c0}
.chat-standalone .conversation-links a:active::before{background:#d6e9dd}
@media(prefers-reduced-motion:reduce){.chat-standalone .conversation-links a::before{transition:none}}
