.demo-explore { --explore-sidebar-width: 188px; }
.demo-explore .demo-workspace { position: relative; }
.demo-explore-return { justify-content: space-between; gap: 12px; height: 44px; padding-inline: 12px; }
.demo-explore-wordmark { min-width: 0; margin-inline-end: auto; }
.demo-explore-wordmark img { width: 24px; height: 24px; }
.demo-explore-wordmark [role="img"] > span { font-size: 18px; }
.demo-explore-return > button { flex-shrink: 0; font-size: 14px; padding: 6px 8px; }
.demo-explore-sidebar-header { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; height: 44px; padding-inline: 8px; }
.demo-explore-sidebar-header [data-sidebar="trigger"] { position: static; translate: none; }
.demo-explore .demo-sidebar { flex-basis: var(--explore-sidebar-width); width: var(--explore-sidebar-width); }
.demo-explore .demo-sidebar-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.demo-explore .demo-sidebar-top { overflow: visible; }
.demo-explore .demo-project { padding-top: 24px; overflow: visible; }
.demo-explore .demo-thread-list [data-explore-thread][data-selected="true"] { background: var(--state-active); }
.demo-explore .demo-panels { position: relative; }
.demo-explore .demo-chat > [data-explore-timeline] { flex: 1 !important; width: 100%; height: 100%; min-width: 0; }
.demo-explore .thread-scrollbar { overscroll-behavior: contain; }
.demo-explore .demo-chat [data-timeline-row-list] { gap: 24px; }
.demo-explore [contenteditable="true"] { caret-color: var(--primary); min-height: 36px; }
.demo-explore [contenteditable="true"]:empty::before { content: "Ask a follow-up"; color: var(--subtle-foreground); pointer-events: none; }
.demo-explore .demo-chat [data-promptbox-editor-scroll] { min-height: 60px !important; max-height: min(180px, 30dvh) !important; overflow-y: auto; }
.demo-explore [data-explore-compact] [data-promptbox-editor-scroll] { min-height: 40px !important; max-height: 64px !important; }
.demo-local-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-local-reply { padding-block: 4px; }
.demo-explore-download { display: inline; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.demo-explore-download:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 2px; }
.demo-explore-dimmer { position: absolute; z-index: 80; inset: 0; border: 0; background: rgb(0 0 0 / .52); }
.demo-explore-popover { position: absolute; z-index: 120; inset: 68px max(16px, calc((100% - 440px) / 2)) auto; max-height: calc(100% - 92px); overflow: auto; padding: 24px; background: var(--popover); color: var(--popover-foreground); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / .24); }
.demo-explore-popover h2 { margin: 0 32px 12px 0; font-size: 18px; font-weight: 600; }
.demo-explore-popover p { margin: 0 0 20px; color: var(--muted-foreground); font-size: 14px; line-height: 1.55; }
.demo-explore-popover-close { position: absolute; inset-inline-end: 8px; top: 8px; width: 32px; height: 32px; padding: 0; }
.demo-explore-popover input { width: 100%; min-width: 0; margin-bottom: 12px; padding: 9px 12px; font: inherit; color: var(--foreground); background: var(--background); border: 1px solid var(--input); border-radius: 6px; }
.demo-explore-popover input:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.demo-explore-options { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 20px; }
.demo-explore-options button { justify-content: flex-start; white-space: normal; text-align: start; }
.demo-explore-page { flex: 1; min-width: 0; padding: 0 24px 24px; overflow-y: auto; }
.demo-explore-page-header { display: flex; align-items: center; min-height: 44px; margin-inline: -12px; }
.demo-explore-page h1 { margin: 36px 0 12px; font-size: 24px; font-weight: 600; }
.demo-explore-page p { max-width: 60ch; margin-bottom: 24px; color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }
.demo-explore-resource { display: flex; width: 100%; justify-content: flex-start; margin-bottom: 24px; border-block: 1px solid var(--border-seam); border-radius: 0; padding-block: 16px; }
.demo-explore .demo-browser { flex: 1; }
.demo-explore.is-browser-maximized .demo-chat, .demo-explore.is-browser-maximized .demo-explore-page { display: none; }
.demo-explore .demo-browser [data-testid="browser-tab-nav-controls"] { padding-inline-end: 8px; }
.demo-explore .demo-browser input { min-width: 0; }
.demo-explore .demo-browser [class~="group/tab-pill"][data-selected="true"] { background: var(--state-active); color: var(--foreground); }
.demo-explore-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px), (max-height: 500px) and (max-width: 1024px) {
  .demo-explore .demo-brand { display: flex; height: 44px; }
  .demo-explore .demo-sidebar { position: absolute; z-index: 90; inset: 0 auto 0 0; display: flex; width: min(76vw, 320px); height: 100%; border-inline-end: 1px solid var(--border-seam); }
  .demo-explore.is-collapsed .demo-sidebar { display: none; }
  .demo-explore .demo-sidebar-top [data-sidebar-navigation-item] button { min-height: 36px; }
  .demo-explore .demo-sidebar-footer [data-footer-item] button, .demo-explore .demo-sidebar-footer [data-footer-item] a { min-height: 36px; min-width: 36px; }
  .demo-explore .demo-browser { position: absolute; z-index: 75; inset: 0; border: 0; background: var(--sidebar); }
  .demo-explore[data-browser-open="true"] .demo-explore-page { display: none; }
  .demo-explore .demo-browser aside > div:first-child { display: block; }
  .demo-explore .demo-chat [data-promptbox-editor-scroll] { font-size: 16px; line-height: 1.7; padding-top: 12px; }
  .demo-explore .demo-chat [data-promptbox-action-row] { gap: 4px; padding-inline-start: 8px; }
  .demo-explore .demo-chat [data-promptbox-action-row] > div { gap: 0; }
  .demo-explore-popover { inset: 44px 12px auto; max-height: calc(100% - 56px); padding: 20px; }
  .demo-explore-popover input { font-size: 16px; }
  .demo-explore-options button { min-height: 40px; }
}
