/* Standalone public experience. The workspace client remains independent. */
.app-header, #sidebar, #delegationCard, #startSummary, .floating-orb, #view-workspace { display: none !important; }
.app-body, .app-main { width: 100%; }
.view-ready { max-width: 1120px; width: 100%; padding: 48px 32px 40px; gap: 32px; }
.chat-setup { max-width: 100%; gap: 16px; }
.public-scenes-title { margin: 0; font-size: 18px; font-weight: 500; color: var(--muted, #566171); }
#demoPicker { width: 100%; overflow: visible; }
#demoWorkspaces { display: flex; flex-wrap: nowrap; gap: 18px; overflow-x: auto; padding: 5px 4px 16px; scroll-snap-type: x proximity; }
#demoWorkspaces .scene-card { flex: 0 0 238px; width: 238px; scroll-snap-align: start; text-align: left; }
#demoWorkspaces .scene-art { height: 148px; }
#demoWorkspaces .scene-title { font-size: 19px; }
#demoWorkspaces .scene-subtitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.public-recording-note { margin: 0; font-size: 12px; color: #6a7380; text-align: center; }
.scene-dialog { width: min(1060px, calc(100vw - 48px)); max-width: none; height: min(850px, calc(100dvh - 64px)); max-height: none; padding: 0; border: 1px solid #dce0e7; border-radius: 24px; background: #fff; color: #20252e; box-shadow: 0 24px 90px #10182838; }
.scene-dialog::backdrop { background: #17203066; backdrop-filter: blur(4px); }
.scene-dialog .ws-detail { position: static; height: 100%; max-height: none; box-sizing: border-box; border: 0; border-radius: 24px; padding: 24px; overflow-y: auto; }
.scene-dialog .ws-detail-head { align-items: center; flex-wrap: wrap; }
.scene-dialog .ws-detail-name h2 { font-size: 27px; }
.public-dialog-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.public-dialog-actions .page-cta { display: inline-flex !important; }
.public-dialog-actions .icon-btn { font-size: 26px; }
.scene-dialog .ready-preview { min-height: 380px; flex: 1 0 380px; }
.scene-dialog #wsDetailActions:empty { display: none; }
@media (max-width: 600px) {
 .view-ready { padding: 26px 16px 32px; }
 #demoWorkspaces .scene-card { flex-basis: 205px; width: 205px; }
 .scene-dialog { width: calc(100vw - 24px); height: calc(100dvh - 32px); border-radius: 18px; }
 .scene-dialog .ws-detail { padding: 16px; }
 .scene-dialog .ws-detail-name h2 { font-size: 22px; }
 .public-dialog-actions { gap: 4px; }
}

.public-wordmark { padding: 26px 32px 0; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; color: #20252e; }
.public-wordmark span { font-weight: 400; }
@media (max-width: 600px) { .public-wordmark { padding: 22px 20px 0; font-size: 28px; } }

/* Keep the public landing page compact, with the orb as its start control. */
#start { display: none !important; }
.public-wordmark { padding: 20px 28px 0; font-size: 28px; flex: none; }
.app-main > .view-ready { min-height: 100%; box-sizing: border-box; justify-content: center; }
.view-ready { max-width: 1000px; padding: 18px 28px 24px; gap: clamp(16px, 3vh, 28px); }
.chat-hero { padding-top: 0; gap: 12px; }
.chat-hero h1 { font-size: clamp(22px, 2.6vw, 30px); }
.orb-slot-hero { width: clamp(120px, 25dvh, 200px); margin: 10px 0 0; }
.chat-setup { gap: 10px; }
.public-scenes-title { font-size: 16px; }
#demoWorkspaces { gap: 14px; padding-bottom: 10px; }
#demoWorkspaces .scene-card { flex: 0 0 164px; width: 164px; }
#demoWorkspaces .scene-art { height: clamp(76px, 14dvh, 100px); aspect-ratio: auto; }
#demoWorkspaces .scene-title { font-size: 16px; }
#demoWorkspaces .scene-subtitle { font-size: 12px; }
.public-recording-note { font-size: 11px; }
@media (max-width: 600px) {
 .public-wordmark { padding: 16px 20px 0; font-size: 26px; }
 .view-ready { padding: 16px 16px 20px; gap: 18px; }
 #demoWorkspaces .scene-card { flex-basis: 150px; width: 150px; }
}
@media (max-height: 560px) {
 .view-ready { gap: 12px; padding-block: 12px; }
 .chat-hero { gap: 6px; }
 .orb-slot-hero { width: 100px; margin: 4px 0 0; }
}

/* Lift the prompt while keeping the orb and scene rail in place. */
.chat-hero h1 { position: relative; top: -24px; }
#orb[data-place="stage"][data-state="idle"] .orb-face {
 background: radial-gradient(circle at 35% 25%, #6198ff, #326cf0 60%, #2452d6) !important;
 box-shadow: 0 0 30px rgb(55 112 246 / 22%);
 animation: public-orb-breath 3.8s ease-in-out infinite;
}
#orb[data-place="stage"][data-state="idle"] .orb-face > span {
 animation: public-orb-dot 3.8s ease-in-out infinite;
}
#orb[data-place="stage"][data-state="idle"] .orb-face > span:nth-child(2) { animation-delay: -.22s; }
#orb[data-place="stage"][data-state="idle"] .orb-face > span:nth-child(3) { animation-delay: -.44s; }
#orb[data-place="stage"][data-state="idle"] .orb-face > span:nth-child(4) { animation-delay: -.66s; }
@keyframes public-orb-breath {
 0%, 100% { scale: .96; box-shadow: 0 0 22px rgb(55 112 246 / 16%); }
 50% { scale: 1.045; box-shadow: 0 0 48px rgb(55 112 246 / 32%); }
}
@keyframes public-orb-dot { 0%, 100% { scale: 1 1; opacity: .85; } 50% { scale: 1 1.45; opacity: 1; } }
@media (max-height: 560px) { .chat-hero h1 { top: -8px; } }
@media (prefers-reduced-motion: reduce) {
 #orb[data-place="stage"][data-state="idle"] .orb-face,
 #orb[data-place="stage"][data-state="idle"] .orb-face > span { animation: none; }
}

.public-wordmark { align-self: flex-start; text-decoration: none; }
.public-wordmark:focus-visible { outline: 2px solid #326cf0; outline-offset: 4px; border-radius: 4px; }

.public-attach-button { display: none; }
.conversation-layout[data-preview="full"] .public-attach-button { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; }
.public-attach-dialog { width: min(560px, calc(100vw - 40px)); border: 1px solid #dce0e7; border-radius: 20px; padding: 24px; color: #20252e; background: white; }
.public-attach-dialog::backdrop { background: #17203066; backdrop-filter: blur(4px); }
.public-attach-dialog h2 { margin: 0 0 20px; font-size: 22px; }
.public-attach-dialog > .icon-btn { position: absolute; top: 18px; right: 18px; font-size: 24px; }
.public-attach-dialog .composer { width: 100%; }
.public-attach-dialog textarea { min-height: 140px; }
