/* A compact creation surface and an image-led discovery space.
   Shared controls retain the same meaning in the light shop and dark film room. */
body[data-space] {
  --accent: #496b65;
  --accent-soft: #e6efec;
  --creation-canvas: #f7f8fa;
  --creation-panel: #fff;
  --creation-field: #f1f3f5;
  --creation-ink: #22272e;
  --creation-muted: #69717c;
  --creation-rule: #e1e5e9;
  --creation-selected: #e9eeed;
  --creation-focus: #376c61;
  --creation-action: #27332f;
  --creation-on-action: #fff;
  background: var(--creation-canvas);
}
body[data-space="drama"] {
  --creation-canvas: #111314;
  --creation-panel: #202629;
  --creation-field: #292f31;
  --creation-ink: #f1f4f4;
  --creation-muted: #a1adb0;
  --creation-rule: #343e41;
  --creation-selected: #2c3536;
  --creation-focus: #afd5cb;
  --creation-action: #e6f2ee;
  --creation-on-action: #192a24;
  --edit-canvas: #111314;
}
body[data-space] .app-shell, body[data-space] .main { background: var(--creation-canvas); }
body[data-space] .sidebar { width: 220px; padding: 25px 16px 22px; background: var(--creation-panel); border-color: var(--creation-rule); }
body[data-space="drama"] .sidebar { background: #181b1c; }
body[data-space] .main-shell { margin-left: 220px; }
body[data-space] .sidebar-brand-row { margin-bottom: 28px; }
body[data-space] .brand { padding: 0 4px; gap: 8px; }
body[data-space] .brand img { width: 35px; height: 30px; }
body[data-space] .brand strong { color: var(--creation-ink); font-size: 16px; letter-spacing: -.4px; }
body[data-space] .space-switch-trigger { min-height: 66px; padding: 12px 10px; border: 1px solid var(--creation-rule); border-radius: 12px; color: var(--creation-ink); background: var(--creation-canvas); }
body[data-space] .space-label strong { font-size: 14px; }
body[data-space] .space-label small { color: var(--creation-muted); font-size: 11px; }
body[data-space] .nav-button { min-height: 47px; padding-inline: 14px; border-radius: 9px; color: var(--creation-muted); font-size: 14px; }
body[data-space] .nav-button.active { color: var(--creation-ink); background: var(--creation-selected); box-shadow: none; }
body[data-space] .nav-button.active svg { color: var(--creation-focus); }
body[data-space] .sidebar-bottom button { padding-inline: 12px; color: var(--creation-muted); font-size: 12px; }
body[data-space] .sidebar-bottom button:last-child { border-color: var(--creation-rule); }
body[data-space] .topbar { height: 60px; padding-inline: 32px; border-color: transparent; background: var(--creation-canvas); }
body[data-space] .topbar-title { color: var(--creation-muted); font-size: 13px; }
body[data-space] .demo-chip { min-height: 34px; border-color: var(--creation-rule); color: var(--creation-muted); }
body[data-space] .main.view-home { max-width: 1456px; padding: 8px 32px 48px; }
body[data-space] .site-legal { color: var(--creation-muted); border-color: var(--creation-rule); }

.creation-home { width: 100%; min-width: 0; max-width: 1360px; margin-inline: auto; color: var(--creation-ink); }
.creation-home--discover { position: relative; isolation: isolate; }
.creation-home--discover::before { content: ''; position: absolute; z-index: -1; pointer-events: none; top: -68px; left: 5%; width: 90%; height: 385px; background: radial-gradient(ellipse at 52% 5%, #9bbbc71a, transparent 65%); }
.creation-home--drama::before { background: radial-gradient(ellipse at 52% 5%, #7baba71a, transparent 68%); }
.platform-heading { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 76px; margin: 0 auto 10px; padding-inline: 50px; text-align: center; }
.platform-heading > div { min-width: 0; }
.platform-heading h1 { margin: 0; color: var(--creation-ink); font-size: clamp(25px, 2.2vw, 31px); line-height: 1.45; font-weight: 550; letter-spacing: -.8px; text-wrap: balance; }
.creation-lead { margin-top: 8px; color: var(--creation-muted); font-size: 13px; line-height: 1.8; }
.platform-heading .platform-mascot { position: absolute; right: max(0px, calc((100% - 860px) / 2)); top: 8px; width: 44px; height: 52px; border-radius: 16px; background: #eae7ee; }
.platform-heading .platform-mascot img { width: 39px; height: 77px; left: 3px; top: 0; }
.platform-mascot .commerce-mascot-play { width: 20px; height: 20px; background: #567b73; }
.creation-home .platform-composer { max-width: 880px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; color: var(--creation-ink); background: none; }
.creation-task-list { display: flex; align-items: center; justify-content: center; gap: 3px; width: fit-content; max-width: 100%; margin: 0 auto 18px; padding: 4px; border-radius: 26px; background: var(--creation-field); }
.creation-home .creation-task { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 142px; min-height: 39px; padding: 8px 22px; border: 1px solid transparent; border-radius: 22px; color: var(--creation-muted); background: none; font-size: 13px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.creation-home .creation-task[aria-pressed="true"] { color: var(--creation-ink); background: var(--creation-panel); border-color: var(--creation-rule); box-shadow: 0 1px 4px #11111108; }
.creation-home--drama .creation-task[aria-pressed="true"] { color: #20322c; border-color: #dceee7; background: linear-gradient(115deg, #f2f0ee 5%, #dfefe8 55%, #e7f0f7); }
.platform-input-surface { position: relative; padding: 15px 20px 10px; border: 1px solid var(--creation-rule); border-radius: 22px; color: var(--creation-ink); background: var(--creation-panel); box-shadow: 0 7px 28px #24324206; }
.creation-home--drama .platform-input-surface { background: linear-gradient(120deg, #21292c, #222829 65%, #202529); box-shadow: 0 12px 42px #0000000d; }
.platform-input-surface:focus-within { border-color: var(--creation-focus); box-shadow: 0 0 0 3px #78a1940d; }
.creation-input-region { display: flex; align-items: flex-start; gap: 16px; min-width: 0; min-height: 88px; }
.creation-upload-slot { flex: 0 0 66px; width: 66px; padding-top: 4px; }
.platform-upload-field { margin: 0; }
.creation-home .platform-upload { position: relative; display: grid; place-items: center; width: 66px; height: 80px; min-height: 0; margin: 0; padding: 0; overflow: hidden; border: 1px dashed #b5bfc6; border-radius: 9px; color: var(--creation-muted); background: #f2f4f6; }
.creation-home--drama .platform-upload { border-color: #59666a; background: #313b3f; }
.platform-upload .upload-icon { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 0; border-radius: 0; color: inherit; background: none; }
.platform-upload .upload-icon svg { transform: translateY(-7px); }
.platform-upload-label { position: absolute; bottom: 7px; left: 0; width: 100%; color: var(--creation-muted); font-size: 10px; text-align: center; }
.platform-upload > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--creation-field); }
.platform-upload .replace-photo { position: absolute; inset: auto 0 0; padding: 4px 2px; color: #fff; background: #17241fcc; font-size: 10px; text-align: center; }
.creation-upload-slot .form-error { width: 210px; max-width: calc(100vw - 90px); font-size: 12px; line-height: 1.6; }
.creation-prompt-body { flex: 1; min-width: 0; }
.creation-prompt-body .field { min-width: 0; margin: 0; }
.creation-home .creation-prompt-body input, .creation-home .creation-prompt-body textarea,
.creation-home .creation-prompt { display: block; width: 100%; min-height: 0; margin: 0; padding: 4px 0; border: 0; border-radius: 0; outline: none; color: var(--creation-ink); background: none; box-shadow: none; font-size: 15px; line-height: 1.8; }
.creation-home .creation-prompt-body input { height: 34px; font-weight: 550; }
.creation-home .creation-prompt-body textarea { min-height: 54px; height: 54px; max-height: 240px; resize: vertical; }
.creation-home .creation-prompt { min-height: 80px; height: 80px; max-height: 300px; resize: vertical; }
.creation-home--drama .creation-prompt-body .creation-prompt { min-height: 80px; height: 80px; }
.creation-home .creation-prompt-body input::placeholder, .creation-home .creation-prompt-body textarea::placeholder,
.creation-home .creation-prompt::placeholder { color: var(--creation-muted); opacity: 1; font-weight: 400; }
.creation-home .creation-prompt-body :is(input,textarea):focus, .creation-home .creation-prompt:focus { outline: none; border: 0; box-shadow: none; }
.creation-home .creation-prompt-body [aria-invalid="true"] { box-shadow: inset 0 -1px #c5555b; }
.creation-composer-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 23px; color: var(--creation-muted); font-size: 11px; line-height: 1.7; }
.creation-composer-meta .studio-prompt-count { color: var(--creation-muted); font-size: 11px; }
.creation-composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding-top: 8px; }
.creation-composer-tools { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; gap: 6px 17px; }
.creation-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 0; color: var(--creation-focus); font-size: 12px; line-height: 1.7; font-weight: 500; }
.creation-home .creation-primary { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 19px; border: 1px solid transparent; border-radius: 24px; color: var(--creation-on-action); background: var(--creation-action); box-shadow: none; font-size: 13px; line-height: 1.7; font-weight: 600; white-space: nowrap; }
.creation-home .creation-primary:hover { filter: brightness(.94); }
body[data-space="commerce"] .creation-home .creation-primary { border-radius: 24px; }
.creation-home .creation-primary:disabled { opacity: .5; filter: none; }
.creation-note { margin-top: 9px; color: var(--creation-muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.platform-input-surface > .creation-note { margin-top: 4px; padding-top: 0; border: 0; font-size: 10px; }
.creation-advanced.platform-settings { position: relative; margin: 0; padding: 0; border: 0; }
.platform-settings > summary { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 8px 0; color: var(--creation-muted); font-size: 12px; line-height: 1.7; list-style: none; cursor: pointer; }
.platform-settings > summary::-webkit-details-marker { display: none; }
.platform-settings[open] > summary > svg { transform: rotate(180deg); }
.platform-settings > div { position: absolute; z-index: 8; top: calc(100% + 5px); left: 0; display: grid; gap: 3px; width: 260px; max-width: calc(100vw - 80px); padding: 13px 17px; border: 1px solid var(--creation-rule); border-radius: 13px; color: var(--creation-ink); background: var(--creation-panel); box-shadow: 0 12px 40px #00000020; }
.platform-settings > div > .creation-secondary { justify-content: flex-start; }
.platform-settings .creation-note { margin-top: 2px; }
.creation-advanced-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.creation-layout-chooser { margin-top: 30px; padding-top: 8px; border-top: 1px solid var(--creation-rule); }
.creation-layout-chooser > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; color: var(--creation-muted); font-size: 13px; cursor: pointer; list-style: none; }
.creation-layout-chooser > summary::-webkit-details-marker { display: none; }
.creation-layout-chooser .commerce-layouts { padding-top: 20px; }
.creation-recent { margin-top: 36px; padding-top: 4px; border-top: 1px solid var(--creation-rule); }
.creation-home .resume-card { margin-bottom: 0; border: 0; }
.creation-home .resume-icon { color: var(--creation-focus); background: var(--creation-selected); }

/* The media wall is the second half of the creative surface, never a decorative poster. */
.creation-home .lt-showcase { --lt-ink: var(--creation-ink); --lt-muted: var(--creation-muted); --lt-rule: var(--creation-rule); --lt-panel: var(--creation-panel); --lt-accent: var(--creation-focus); max-width: none; margin: 35px 0 0; }
.creation-home .lt-showcase-header { align-items: center; margin: 0 0 15px; gap: 16px; }
.creation-home .lt-showcase-header h2 { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 600; letter-spacing: -.2px; }
.creation-home .lt-showcase-kicker { display: none; }
.creation-home .lt-showcase-header p:last-child { display: inline; margin: 0 0 0 12px; color: var(--creation-muted); font-size: 11px; line-height: 1.8; }
.creation-home .lt-showcase-header > div { display: flex; align-items: baseline; flex-wrap: wrap; }
.creation-home .lt-showcase-count { color: var(--creation-muted); font-size: 11px; }
.creation-home .lt-showcase-featured { display: none; }
.creation-home .lt-library-head { margin: 0; padding: 0 0 14px; gap: 0; }
.creation-home .lt-library-head > h3 { display: none; }
.creation-home .lt-showcase-filters { max-width: 100%; width: 100%; gap: 9px; }
.creation-home .lt-filter { min-height: 37px; padding: 7px 14px; border: 1px solid var(--creation-rule); border-radius: 9px; color: var(--creation-muted); background: none; font-size: 12px; }
.creation-home .lt-filter.is-active { border-color: var(--creation-rule); color: var(--creation-ink); background: var(--creation-selected); }
.creation-home .lt-library-result { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.creation-home .lt-work-grid { display: block; column-count: 3; column-gap: 15px; margin-top: 0; }
.creation-home .lt-work-card { display: inline-block; width: 100%; margin-bottom: 15px; vertical-align: top; break-inside: avoid; }
.creation-home .lt-work-open { position: relative; overflow: hidden; border-radius: 13px; background: var(--creation-field); }
.creation-home .lt-work-media { width: 100%; aspect-ratio: var(--lt-ratio,4 / 5); min-height: 180px; overflow: hidden; border: 0; border-radius: 13px; background: var(--creation-field); }
.creation-home .lt-work-media::after { position: absolute; content: ''; inset: 55% 0 0; background: linear-gradient(transparent, #000000b3); pointer-events: none; }
.creation-home .lt-work-cover { height: 100%; object-fit: cover; }
.creation-home .lt-work-copy { position: absolute; z-index: 1; right: 14px; bottom: 13px; left: 14px; padding: 0; pointer-events: none; }
.creation-home .lt-work-copy strong { color: #fff; font-size: 14px; line-height: 1.6; font-weight: 550; text-shadow: 0 1px 5px #0006; }
.creation-home .lt-work-copy small { margin-top: 2px; color: #e0e4e4; font-size: 11px; }
.creation-home .lt-work-meta { display: none; }
.creation-home .lt-work-type { z-index: 1; top: 12px; left: 12px; padding: 5px 7px; border: 1px solid #ffffff20; border-radius: 5px; color: #fff; background: #171b1d80; font-size: 10px; backdrop-filter: blur(10px); }
.creation-home .lt-work-play { z-index: 2; top: 11px; right: 11px; bottom: auto; width: 28px; height: 28px; border-color: #ffffff80; font-size: 9px; background: #12181b88; }
.creation-home .lt-work-open:focus-visible { outline: 3px solid var(--creation-focus); outline-offset: 4px; }
.creation-home .lt-grid-empty { min-height: 180px; padding: 40px; border: 0; }
.creation-home .lt-showcase-dialog { border-radius: 18px; }
.creation-home .lt-detail-copy h2 { font-family: inherit; font-size: 28px; font-weight: 550; }
.creation-image-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 180px; padding: 20px; color: #656c78; background: #edf0f5; font-size: 14px; }
.creation-image-alert p { margin: 0 0 8px; }
.creation-example-video { display: block; width: 100%; max-height: 62vh; background: #000; object-fit: contain; }
.creation-example-modal-note { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.creation-home :is(button,summary):focus-visible { outline: 3px solid var(--creation-focus); outline-offset: 4px; }

@media (hover: hover) {
  .creation-home .creation-task:not([aria-pressed="true"]):hover { color: var(--creation-ink); }
  .creation-home .lt-work-open:hover .lt-work-cover { transform: scale(1.025); }
  .creation-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  body[data-space] .main.view-home { padding-inline: 24px; }
  .creation-home .lt-work-grid { column-count: 3; }
  .creation-home .lt-work-media { min-height: 150px; }
  .platform-heading { padding-inline: 45px; }
}
@media (max-width: 760px) {
  body[data-space] .main-shell { margin-left: 0; }
  body[data-space] .topbar { height: 62px; padding-inline: 12px; gap: 5px; border-color: var(--creation-rule); }
  body[data-space] .topbar-left { gap: 2px; }
  body[data-space] .mobile-brand { gap: 4px; font-size: 13px; }
  body[data-space] .mobile-brand > img { width: 29px; height: 26px; }
  body[data-space] .top-actions { gap: 3px; }
  body[data-space] .space-top-switch { padding-inline: 8px; color: var(--creation-ink); font-size: 12px; }
  body[data-space] .main.view-home { padding: 20px 16px 32px; }
  body[data-space] .main.view-home + .bottom-nav + .site-legal { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body[data-space] .bottom-nav { border-color: var(--creation-rule); background: var(--creation-canvas); }
  body[data-space] .bottom-nav button { color: var(--creation-muted); }
  body[data-space] .bottom-nav button.active { color: var(--creation-focus); }
  .platform-heading { align-items: flex-start; min-height: 72px; margin-bottom: 16px; padding-inline: 0 42px; text-align: left; }
  .platform-heading h1 { font-size: 25px; letter-spacing: -.6px; }
  .creation-lead { margin-top: 6px; font-size: 12px; }
  .platform-heading .platform-mascot { top: 3px; right: 0; width: 37px; height: 47px; border-radius: 14px; }
  .platform-heading .platform-mascot img { width: 34px; height: 66px; left: 2px; }
  .creation-home .platform-composer { max-width: none; }
  .creation-task-list { width: 100%; margin-bottom: 13px; padding: 3px; }
  .creation-home .creation-task { flex: 1 1 0; min-width: 0; min-height: 40px; gap: 5px; padding: 8px 6px; font-size: 12px; }
  .creation-home .creation-task > svg { width: 16px; height: 16px; }
  .platform-input-surface { padding: 15px 14px 11px; border-radius: 18px; }
  .creation-input-region { gap: 12px; min-height: 114px; }
  .creation-upload-slot { width: 52px; flex-basis: 52px; }
  .creation-home .platform-upload { width: 52px; height: 66px; border-radius: 8px; }
  .creation-home .creation-prompt-body input { font-size: 16px; height: 35px; }
  .creation-home .creation-prompt-body textarea { min-height: 76px; height: 76px; font-size: 16px; line-height: 1.7; }
  .creation-home .creation-prompt { min-height: 104px; height: 104px; font-size: 16px; line-height: 1.8; }
  .creation-home--drama .creation-prompt-body .creation-prompt { min-height: 104px; height: 104px; }
  .creation-composer-toolbar { align-items: center; gap: 10px; padding-top: 12px; }
  .creation-composer-tools { gap: 0 13px; }
  .creation-advanced.platform-settings { position: static; }
  .platform-settings > div { top: calc(100% + 6px); right: 0; left: 0; width: auto; max-width: none; }
  .creation-secondary, .platform-settings > summary { min-height: 44px; font-size: 11px; }
  .creation-home .creation-primary { min-height: 44px; padding: 10px 15px; gap: 7px; font-size: 12px; }
  .creation-composer-meta { font-size: 10px; }
  .creation-composer-meta .studio-prompt-count { font-size: 10px; }
  .creation-note { font-size: 11px; }
  .creation-home .lt-showcase { margin-top: 28px; }
  .creation-home .lt-showcase-header { align-items: flex-start; margin-bottom: 13px; gap: 8px; }
  .creation-home .lt-showcase-header h2 { font-size: 18px; }
  .creation-home .lt-showcase-header > div { display: block; }
  .creation-home .lt-showcase-header p:last-child { display: block; margin: 3px 0 0; font-size: 11px; }
  .creation-home .lt-showcase-count { margin-top: 5px; font-size: 10px; white-space: nowrap; }
  .creation-home .lt-showcase-filters { margin: 0; padding: 3px 3px 8px; gap: 7px; }
  .creation-home .lt-library-head { margin: 0; padding-bottom: 5px; }
  .creation-home .lt-filter { min-height: 39px; padding: 8px 12px; font-size: 11px; }
  .creation-home .lt-work-grid { column-count: 2; column-gap: 10px; }
  .creation-home .lt-work-card { margin-bottom: 10px; }
  .creation-home .lt-work-open, .creation-home .lt-work-media { border-radius: 10px; }
  .creation-home .lt-work-media { min-height: 145px; }
  .creation-home .lt-work-copy { left: 10px; right: 10px; bottom: 10px; }
  .creation-home .lt-work-copy strong { font-size: 12px; }
  .creation-home .lt-work-copy small { font-size: 10px; }
  .creation-home .lt-work-type { top: 8px; left: 8px; padding: 4px 5px; font-size: 8px; }
  .creation-home .lt-work-play { top: 7px; right: 7px; width: 24px; height: 24px; }
  .creation-recent { margin-top: 27px; }
  .creation-layout-chooser { margin-top: 24px; }
}
@media (max-width: 360px) {
  body[data-space] .main.view-home { padding-inline: 12px; }
  body[data-space] .topbar { padding-inline: 7px; }
  body[data-space] .mobile-brand > img { display: none; }
  .platform-heading h1 { font-size: 23px; }
  .platform-heading { padding-right: 36px; }
  .platform-input-surface { padding-inline: 12px; }
  .creation-input-region { gap: 9px; }
  .creation-home .creation-task { font-size: 11px; gap: 4px; padding-inline: 4px; }
  .creation-home .creation-task > svg { width: 14px; height: 14px; }
  .creation-composer-tools { gap: 0 10px; }
  .creation-home .creation-primary { padding-inline: 12px; font-size: 11px; }
  .creation-secondary, .platform-settings > summary { font-size: 10px; }
  .creation-home .lt-work-media { min-height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .creation-home *, .creation-home *::before, .creation-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
