/* The Booth stays on the app's paper, with controls large enough for a phone. */
.booth-open{display:flex;align-items:center;justify-content:center;gap:10px;position:static;width:100%;margin-top:16px;min-height:58px;padding:7px 18px;border:2px solid var(--color-ink);border-radius:var(--radius-pill);background:var(--color-surface);color:var(--color-ink);font-size:1.125rem;font-weight:800;box-shadow:0 3px 14px rgba(54,43,32,.18)}
/* Float only where the side gutter has room; on phones help has its own row. */
@media(min-width:1000px){.booth-open{position:fixed;z-index:20;width:auto;margin:0;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}}
.booth-open:hover,.booth-close:hover,.booth-starters button:hover{background:var(--color-soft)}
.booth-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;height:min(94svh,780px);height:min(94dvh,780px);max-height:100%;padding:0;border:1px solid var(--color-line);border-bottom:0;border-radius:18px 18px 0 0;background:var(--color-surface);color:var(--color-ink);font-family:var(--font-body);font-size:1.125rem;line-height:1.5;box-shadow:0 0 40px rgba(54,43,32,.2);overflow:hidden}
.booth-sheet[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.booth-sheet::backdrop{background:rgba(54,43,32,.38)}
body.booth-is-open{overflow:hidden}
.booth-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid var(--color-line)}
.booth-avatar{display:block;flex-shrink:0;overflow:hidden;border:1px solid var(--color-line);border-radius:50%;background:var(--color-soft)}
.booth-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.booth-avatar-launcher{width:40px;height:40px}
.booth-avatar-header{width:52px;height:52px}
.booth-identity{display:flex;align-items:center;gap:12px;min-width:0}
.booth-identity-copy{min-width:0}
.booth-identity-copy p{margin:3px 0 0;font-size:1rem;line-height:1.35;color:var(--color-body)}
.booth-head h2{margin:0;font-family:var(--font-body);font-size:1.375rem;font-weight:800;line-height:1.3}
.booth-close{min-width:64px;min-height:48px;padding:8px 12px;border:1px solid var(--color-line);border-radius:var(--radius);background:var(--color-surface);color:var(--color-ink);font-size:1rem;font-weight:700}
.booth-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px;scroll-behavior:auto}
.booth-messages{list-style:none;padding:0;margin:0}
.booth-message{overflow-wrap:anywhere;margin:0 0 20px}
.booth-message:last-child{margin-bottom:0}
.booth-speaker{font-size:.9375rem;line-height:1.4;font-weight:800;color:var(--color-body);margin:0 0 6px}
.booth-copy{margin:0;white-space:pre-wrap}
.booth-user{margin-left:20px;padding:12px 14px;border-radius:var(--radius);background:var(--color-soft)}
.booth-user .booth-speaker{color:var(--color-ink)}
.booth-assistant+.booth-assistant{padding-top:16px;border-top:1px solid var(--color-line)}
.booth-links{list-style:none;padding:8px 0 0;margin:0}
.booth-links a{display:inline-flex;align-items:center;min-height:48px;color:var(--color-primary-strong);font-weight:700;text-underline-offset:3px;overflow-wrap:anywhere}
.booth-starters{display:flex;flex-direction:column;gap:8px;margin:20px 0 0}
.booth-starters button{min-height:48px;width:100%;padding:9px 12px;border:1px solid var(--color-line);border-radius:var(--radius);background:var(--color-surface);color:var(--color-ink);font-size:1rem;text-align:left;font-weight:700}
.booth-form{padding:12px 16px;border-top:1px solid var(--color-line);background:var(--color-surface)}
.booth-form label{display:block;font-weight:800;margin-bottom:6px}
.booth-form textarea{display:block;width:100%;min-height:70px;max-height:140px;resize:vertical;padding:10px 12px;border:2px solid var(--color-line);border-radius:var(--radius);background:var(--color-surface);color:var(--color-ink);font:inherit;line-height:1.4}
.booth-form textarea:focus{border-color:var(--color-primary)}
.booth-hint{font-size:.875rem;line-height:1.4;color:var(--color-body);margin:6px 0 0}
.booth-send{width:100%;min-height:48px;padding:10px 16px;margin-top:10px;border:0;border-radius:var(--radius-pill);background:var(--color-primary);color:var(--color-on-primary);font-size:1.0625rem;font-weight:800}
.booth-send:hover{background:var(--color-primary-strong)}
.booth-feedback{font-size:1rem;line-height:1.4;margin:8px 0 0;color:var(--color-ink);overflow-wrap:anywhere}
.booth-feedback:empty{display:none}
.booth-feedback.error{color:var(--color-primary-strong);font-weight:700}
.booth-help{display:flex;gap:12px;padding:0 16px max(8px,env(safe-area-inset-bottom));background:var(--color-surface)}
.booth-help a{display:flex;align-items:center;justify-content:center;flex:1;min-height:48px;color:var(--color-ink);font-size:1rem;font-weight:700;text-underline-offset:3px}
.booth-sheet :focus-visible,.booth-open:focus-visible{outline:3px solid var(--color-primary);outline-offset:3px}
.booth-sheet #boothTitle:focus{outline:none}
@media(min-width:640px){.booth-sheet{inset:auto max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) auto;width:440px;height:min(780px,calc(100dvh - 40px));border:1px solid var(--color-line);border-radius:14px}.booth-head,.booth-body,.booth-form{padding-left:20px;padding-right:20px}.booth-help{padding-left:20px;padding-right:20px}}
@media(max-height:500px){.booth-sheet{height:100dvh;border-radius:0}.booth-head{padding-top:4px;padding-bottom:4px}.booth-form{padding-top:8px;padding-bottom:8px}.booth-form textarea{min-height:48px;height:48px}.booth-hint{display:none}.booth-help{padding-bottom:0}}
