.demo-work-area-page {
  color: rgba(230, 233, 237, 1);
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 120, 154, .3) 0, rgba(0, 120, 154, .16) 20%, rgba(0, 120, 154, .08) 34%, rgba(0, 17, 38, 0) 58%),
    rgba(0, 17, 38, 1);
}

.demo-work-area-page > .site-header--shared { display: block; position: relative; z-index: 20; flex: 0 0 auto; width: 100%; background: transparent; }
.demo-work-area-page .demo-shell { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; background: transparent; }
.demo-work-area-page .work-area-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 52% 48%, rgba(0, 120, 154, .28), rgba(0, 17, 38, 0) 58%); }
/* Demo history stays expanded: reserve its full width, including at 1025–1199px
   where the regular workspace deliberately uses an overlapping collapsed rail. */
.demo-work-area-page .demo-layout { grid-template-columns: var(--work-area-side-panel-width) minmax(0, 1fr) var(--work-area-side-panel-width); height: calc(100% - 32px); }
.demo-work-area-page .work-area-panel--left { min-height: 0; }
.demo-work-area-page .demo-sidebar { cursor: default; }
.demo-login-button { flex: 0 0 auto; margin-top: auto; }

.demo-work-area-page .demo-center { min-width: 0; min-height: 0; }
.demo-create-screen { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.demo-create-screen.is-generating { justify-content: flex-start; }
.demo-create-screen__content { display: none; flex: 1 1 auto; min-height: 0; width: 100%; margin: 0 0 8px; overflow-y: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 16px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 16px), transparent 100%); }
.demo-create-screen.is-generating .demo-create-screen__content { display: block; }
.demo-create-screen__content-inner { width: min(100%, 960px); margin-inline: auto; }
.demo-chat-messages { width: 100%; max-height: none; overflow: visible; gap: 64px; }
.demo-create-screen__inner { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; width: min(100%, 960px); margin: auto; }
.demo-create-screen.is-generating .demo-create-screen__inner { width: 100%; margin: 0 auto; }
.work-area-create-screen__generated-demo-image { display: block; width: auto; max-width: min(100%, 640px); max-height: 52vh; height: auto; border-radius: 12px; object-fit: contain; }
.demo-chat-followup { margin-top: 8px; color: rgba(168, 179, 194, 1); }
.demo-chat-message .work-area-create-screen__message-actions button:disabled { opacity: .35; cursor: default; }
.demo-image-action-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .demo-image-action-desktop { display: none !important; }
  .demo-image-action-touch { display: flex; }
}
.demo-chat-followup a { color: #48deaa; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.demo-chat-followup a:hover, .demo-chat-followup a:focus-visible { color: #7df2c7; }
.demo-center-intro { margin: 0 0 62px; text-align: center; }
.demo-center-intro .work-area-center-title { margin: 0 0 12px; font-size: clamp(24px, 2vw, 34px); line-height: 1.25; }
.demo-center-intro p { margin: 0; color: rgba(168, 179, 194, 1); font-size: 14px; }
.demo-message__error { display: block; margin-top: 8px; color: #ffb4ab; }
.demo-composer { display: block; margin: 0; }
.demo-composer .work-area-prompt-box__top { height: clamp(180px, 23vh, 300px); padding: 14px 16px; }
.demo-composer .work-area-prompt-box__input { font-size: 15px; line-height: 1.5; }
.demo-composer__bottom { justify-content: space-between; min-height: 72px; }
.demo-enhance-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; color: #48deaa; font-size: 13px; }
.demo-enhance-indicator > span { color: rgba(168, 179, 194, 1); }
.demo-enhance-indicator.is-disabled { color: rgba(168, 179, 194, .62); }
.demo-enhance-indicator.is-disabled > span { color: rgba(168, 179, 194, .72); }
.demo-composer__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.demo-composer .work-area-prompt-box__generate { gap: 10px; min-width: 162px; min-height: 52px; padding: 10px 16px; border-radius: 8px; }
.demo-composer .work-area-prompt-box__generate-label { font-size: 14px; }
.demo-composer .work-area-prompt-box__generate-icon { width: 22px; height: 22px; }
.demo-composer [name="enhance_prompt"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.demo-composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 2px 0; color: rgba(129, 144, 163, 1); font-size: 11px; }
.demo-protection { color: inherit; }
.demo-note { margin: 16px 0 0; color: rgba(129, 144, 163, 1); font-size: 12px; line-height: 1.5; text-align: center; }
.demo-note a { color: #48deaa; text-decoration: none; }
.demo-unavailable { padding: 16px 18px; border: 1px solid rgba(234, 179, 8, .5); border-radius: 8px; color: #f5d98c; background: rgba(120, 83, 10, .15); }
.demo-unavailable a { color: #48deaa; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.demo-unavailable a:hover, .demo-unavailable a:focus-visible { color: #7df2c7; }
.demo-unavailable a:focus-visible { outline: 2px solid #e6e9ed; outline-offset: 3px; }

.demo-work-area-page .demo-settings-panel { display: flex; min-height: 0; }
.demo-work-area-page .site-nav__dropdown-empty { display: block; padding: 8px 10px; color: rgba(168, 179, 194, .8); font-size: 13px; text-align: center; }
.demo-work-area-page .demo-settings { display: flex; flex: 1 1 auto; flex-direction: column; width: 100%; height: 100%; min-height: 0; padding: 16px; border: 1px solid rgba(60, 74, 94, 1); border-radius: 8px; background: rgba(7, 27, 46, 1); overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
.demo-work-area-settings { display: flex; flex: 0 0 auto; flex-direction: column; gap: 24px; width: 100%; }
.demo-settings__heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.demo-settings .demo-settings__heading { display: flex !important; }
.demo-settings__heading .work-area-right-panel__title { margin: 0; }
.demo-settings__heading .work-area-responsive-panel-heading__close { display: none; }
.demo-settings__heading .work-area-right-panel__reset:disabled { opacity: 1; cursor: default; }
.demo-model-select { z-index: 4; margin-bottom: 24px; }
.demo-model-select.is-open .work-area-right-panel__select-button-icon { transform: rotate(90deg); }
.demo-model-select .work-area-right-panel__select-button { min-height: 58px; }
.demo-model-option { position: relative; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 54px; color: rgba(168, 179, 194, .72); cursor: default; text-align: left; font: inherit; }
.demo-model-option__name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-model-option__access { display: block; max-width: 100%; color: rgba(168, 179, 194, .82); font-size: 11px; line-height: 14px; }
.demo-model-option.is-active { padding-right: 38px; }
.demo-model-option.is-active .work-area-right-panel__select-option-check { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.demo-model-option:disabled { opacity: 1; }
.demo-model-option[aria-disabled="true"]:not(.is-active) { opacity: .68; }
.demo-model-option[aria-disabled="true"]:not(.is-active)::before { display: none; }
.demo-model-option[aria-disabled="true"]:not(.is-active):hover { border-color: rgba(60, 74, 94, .72); }
.demo-generation-settings { flex: 0 0 auto; margin-bottom: 4px; }
.demo-generation-settings .work-area-right-panel__video-generation-settings-title { margin-bottom: 14px; }
.demo-generation-settings .work-area-right-panel__video-setting-summary { min-height: 96px; }
.demo-quality-options { margin-top: 8px; }
.demo-quality-option { color: rgba(168, 179, 194, .72); text-align: left; font: inherit; }
.demo-quality-option:disabled { opacity: 1; cursor: default; }
.demo-quality-option.is-active { color: rgba(230, 233, 237, 1); }
.demo-quality-lock { margin-left: auto; opacity: .6; }
.demo-aspect-options { position: static; margin-top: 8px; }
.demo-aspect-options[hidden] { display: none !important; }
.demo-aspect-options .work-area-right-panel__select-option { cursor: pointer; }
.demo-aspect-options .work-area-right-panel__select-option:not(.is-active) { color: rgba(168, 179, 194, .8); }
.demo-thinking .work-area-right-panel__setting-title { cursor: default; }
.demo-thinking .work-area-right-panel__setting-chip { color: rgba(168, 179, 194, .58); cursor: default; }
.demo-thinking .work-area-right-panel__setting-chip:disabled { opacity: 1; }
.demo-thinking .work-area-right-panel__setting-chip.is-active { color: rgba(230, 233, 237, 1); }
.demo-thinking { flex: 0 0 auto; margin-top: 18px; }
.demo-thinking .work-area-right-panel__setting-title-row { margin-bottom: 0; }
.demo-thinking .work-area-right-panel__setting-toggle { cursor: pointer; opacity: 1; }
.demo-thinking .work-area-right-panel__setting-help-button { cursor: default; opacity: .72; }
.demo-thinking__value { margin-left: auto; color: rgba(168, 179, 194, .72); font-size: 12px; white-space: nowrap; }
.demo-concurrency { flex: 0 0 auto; margin-top: 20px; }
.demo-concurrency .work-area-right-panel__concurrency-label { color: rgba(168, 179, 194, .72); }
.demo-fixed-enhancer { flex: 0 0 auto; margin-top: 22px; }
.demo-fixed-enhancer .work-area-right-panel__prompt-enhancer-label { color: rgba(168, 179, 194, .82); }
.demo-fixed-enhancer .work-area-right-panel__prompt-enhancer-toggle:disabled { opacity: .82; cursor: default; }

@media (max-width: 1024px) {
  .demo-work-area-page .demo-layout { grid-template-columns: minmax(0, 1fr); gap: 0; height: calc(100% - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: 8px auto; padding-top: 72px; }
  .demo-work-area-page .demo-tablet-topbar { display: flex; position: absolute; top: 0; left: 0; right: 0; z-index: 6; width: 100%; padding: 7px; border: 1px solid rgba(60, 74, 94, 1); border-radius: 8px; background: rgba(7, 27, 46, 1); }
  .demo-work-area-page .work-area-panel--left,
  .demo-work-area-page .work-area-panel--right { display: none; }
  .demo-work-area-page .work-area-layout--menu-open .work-area-panel--left,
  .demo-work-area-page .work-area-layout--filters-open .work-area-panel--right { position: absolute; top: 72px; left: 0; right: 0; z-index: 4; display: block; width: 100%; height: calc(100% - 72px); min-height: 0; }
  .demo-work-area-page .work-area-layout--menu-open .demo-sidebar,
  .demo-work-area-page .work-area-layout--filters-open .demo-settings { width: 100%; max-width: 100%; height: 100%; box-shadow: 0 18px 48px rgba(0, 0, 0, .22); }
  .demo-work-area-page .work-area-layout--menu-open .demo-sidebar { cursor: default; }
  .demo-work-area-page .work-area-layout--filters-open .demo-settings { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 20px; }
  .demo-work-area-page .demo-settings__heading .work-area-responsive-panel-heading__close { display: inline-flex; margin-left: auto; }
  .demo-center-intro { margin-bottom: 28px; }
}

@media (max-width: 640px) {
  .demo-work-area-page .demo-shell { overflow: hidden; }
  .demo-work-area-page .demo-layout { display: grid; width: auto; height: calc(100% - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 0; margin: env(safe-area-inset-top) max(0px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0px, env(safe-area-inset-left)); padding: 80px 0 0; }
  .demo-work-area-page .demo-tablet-topbar { top: 8px; left: 16px; right: 16px; width: auto; }
  .demo-work-area-page .work-area-layout--menu-open .work-area-panel--left,
  .demo-work-area-page .work-area-layout--filters-open .work-area-panel--right { top: 80px; left: 16px; right: 16px; width: auto; height: calc(100% - 80px); }
  .demo-work-area-page .demo-settings { max-height: none; padding: 16px; }
  .demo-work-area-page .demo-sidebar { padding: 12px; }
  .demo-work-area-page .work-area-layout--menu-open .demo-sidebar { display: flex; flex-direction: column; }
  .demo-work-area-page .work-area-layout--menu-open .demo-sidebar .work-area-sidebar__button-label { max-width: 180px; margin-left: 12px; opacity: 1; transform: none; }
  .demo-work-area-page .work-area-layout--menu-open .demo-history { flex: 1 1 auto; min-height: 0; }
  .demo-model-select .work-area-right-panel__select-dropdown { max-height: 270px; }
  .demo-generation-settings .work-area-right-panel__video-generation-settings-title { font-size: 21px; }
  .demo-create-screen__content-inner { padding: 24px 0 12px; }
  .demo-create-screen__inner { width: 100%; }
  .demo-center-intro { margin-bottom: 24px; }
  .demo-center-intro .work-area-center-title { font-size: 22px; }
  .demo-center-intro p { font-size: 12px; }
  .demo-composer .work-area-prompt-box__top { height: 160px; }
  .demo-composer__bottom { min-height: 60px; }
  .demo-enhance-indicator { flex: 0 0 auto; padding-left: 4px; font-size: 11px; }
  .demo-enhance-indicator > span { display: none; }
  .demo-composer .work-area-prompt-box__generate { min-width: 132px; min-height: 44px; gap: 6px; padding: 8px; }
  .demo-composer .work-area-prompt-box__generate-label { font-size: 11px; }
  .demo-composer .work-area-prompt-box__generate-icon { width: 18px; height: 18px; }
  .demo-composer__foot { align-items: flex-start; flex-direction: column; }
  .demo-note { margin-top: 12px; }
}
