/* Sidebar layout for the working copy. The original home page remains unchanged. */
:root {
  --sidebar-width: 240px;
}

body.sidebar-collapsed {
  --sidebar-width: 60px;
}

body.sidebar-layout::before,
body.sidebar-layout::after {
  display: none;
}

body.sidebar-layout .canvas-frame {
  width: calc(100% - var(--sidebar-width));
  margin: 132px 0 0 var(--sidebar-width);
}
body.sidebar-layout .assets-view-frame,
body.sidebar-layout .projects-view-frame,
body.sidebar-layout .account-view-frame {
  position: fixed;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  height: 100vh;
  border: 0;
  background: #242527;
}
body.sidebar-layout .projects-view-frame { background: var(--page-bg); color-scheme: dark; }
body.sidebar-layout .account-view-frame { background: var(--page-bg); color-scheme: dark; }
body.sidebar-layout .assets-view-frame[hidden] { display: none; }
body.sidebar-layout .assets-view-frame.preview-open { z-index: 85; }
body.sidebar-layout .projects-view-frame[hidden] { display: none; }
body.sidebar-layout .account-view-frame[hidden] { display: none; }
body.sidebar-layout.account-view-active .canvas-frame,
body.sidebar-layout.account-view-active .footer-rule,
body.sidebar-layout.account-view-active .creation-landing,
body.sidebar-layout.account-view-active #creatorBridgeFrame,
body.sidebar-layout.projects-view-active .canvas-frame,
body.sidebar-layout.projects-view-active .footer-rule,
body.sidebar-layout.assets-view-active .canvas-frame,
body.sidebar-layout.assets-view-active .footer-rule { display: none; }

/* Move every section after the composer by the same amount, preserving their
   existing gaps and reserving the full offset before the footer. */
body.sidebar-layout {
  --creator-height: 295px;
  --creator-gallery-gap: 100px;
  --creator-extra-height: calc(20px + 134px + var(--creator-height) + var(--creator-gallery-gap) - 358px);
}
body.sidebar-layout .homepage-main {
  height: calc(var(--homepage-content-height, 6820px) + var(--creator-extra-height));
}
body.sidebar-layout .hero {
  height: calc(318px + var(--creator-extra-height));
  background: transparent;
  overflow: visible;
}
body.sidebar-layout .hero-art,
body.sidebar-layout .hero-media { display: none !important; }
body.sidebar-layout .homepage-main > section:not(.hero),
body.sidebar-layout .homepage-main > .motion-heading {
  transform: translateY(var(--creator-extra-height));
}
body.sidebar-layout .creator-bridge {
  position: relative;
  width: min(1090px, 100%);
  height: var(--creator-height);
  margin: 134px auto 0;
}
/* The idle editor moves with the document. Open overlays expand this same
   frame to the viewport, without reparenting or reloading its contents. */
body.sidebar-layout #creatorBridgeFrame {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: block;
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
  clip-path: inset(100%);
  visibility: hidden;
  color-scheme: normal;
}
body.sidebar-layout #creatorBridgeFrame.is-overlay-host { position: fixed; }
body.sidebar-layout #creatorBridgeFrame.is-ready { visibility: visible; }
body.sidebar-layout .creator-bridge-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}
body.sidebar-layout .creator-bridge-loading[hidden] { display: none; }
body.sidebar-layout #creatorBridgeRetry {
  border: 1px solid #454749;
  border-radius: 10px;
  padding: 8px 14px;
  background: #27292b;
  color: #eee;
  cursor: pointer;
}

body.sidebar-layout .site-canvas {
  width: 1920px;
}

body.sidebar-layout .site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #0e1013;
}

body.sidebar-layout .home-version-history {
  position: absolute;
  left: 30px;
  bottom: 16px;
  z-index: 20;
  color: #ffffff45;
  font: 300 8px/1.5 var(--font-ui, sans-serif);
}
body.sidebar-collapsed .home-version-history { display: none; }
.home-version-history summary {
  list-style: none;
  cursor: pointer;
  padding: 5px 0;
}
.home-version-history summary::-webkit-details-marker { display: none; }
.home-version-history summary:hover,
.home-version-history[open] summary { color: #ffffff8c; }
.home-version-history nav {
  position: absolute;
  bottom: 27px;
  left: -8px;
  width: 116px;
  padding: 6px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #15171b;
  box-shadow: 0 6px 22px #0005;
}
.home-version-history nav a {
  display: block;
  padding: 6px 8px;
  border-radius: 10px;
  color: #ffffff80;
  font: inherit;
  text-decoration: none;
}
.home-version-history nav a:hover { background: #ffffff08; color: #ddd; }
.home-version-history :is(summary, a):focus-visible { outline: 1px solid #9bcdf2; outline-offset: 2px; }

body.sidebar-layout .site-header .brand {
  left: 30px;
  top: 28px;
  height: 48px;
  gap: 10px;
  font-size: 16.8px;
}

body.sidebar-layout .brand-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

body.sidebar-layout .sidebar-toggle {
  position: absolute;
  z-index: 1;
  top: 36px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 6px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.66);
  cursor: pointer;
}

body.sidebar-layout .sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

body.sidebar-layout .sidebar-toggle:hover,
body.sidebar-layout .sidebar-toggle:focus-visible {
  background: #292b30;
  color: #fff;
}

body.sidebar-layout .sidebar-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.sidebar-layout .sidebar-toggle::after,
body.sidebar-collapsed .primary-nav a::after {
  position: absolute;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: #292b30;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

body.sidebar-layout .sidebar-toggle::after {
  content: attr(aria-label);
  top: calc(100% + 8px);
  left: 0;
}

body.sidebar-layout .sidebar-toggle:hover::after,
body.sidebar-layout .sidebar-toggle:focus-visible::after,
body.sidebar-collapsed .primary-nav a:hover::after,
body.sidebar-collapsed .primary-nav a:focus-visible::after {
  opacity: 1;
}

body.sidebar-layout .primary-nav {
  top: 112px;
  left: 16px;
  width: 208px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  color: rgba(255,255,255,.66);
  white-space: normal;
  max-height: calc(100vh - 128px);
  overflow: visible;
}

/* Hide the sidebar creation entry and its image/video submenu. */
body.sidebar-layout .primary-nav > :is(.create-nav, .create-options) {
  display: none !important;
}

body.sidebar-layout .primary-nav a,
body.sidebar-layout .primary-nav .nav-link,
body.sidebar-layout .primary-nav .create-nav {
  position: relative;
  min-height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 14px 0 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  transition: background .18s ease, color .18s ease;
}

body.sidebar-layout .primary-nav .create-nav {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

body.sidebar-layout .nav-icon {
  position: absolute;
  left: 13px;
  width: 26px;
  height: 26px;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

body.sidebar-layout .primary-nav a:hover,
body.sidebar-layout .primary-nav .nav-link:hover,
body.sidebar-layout .primary-nav .create-nav:hover,
body.sidebar-layout .primary-nav a:focus-visible,
body.sidebar-layout .primary-nav .nav-link:focus-visible,
body.sidebar-layout .primary-nav .create-nav:focus-visible {
  background: rgba(255,255,255,.1);
  color: #fff;
}

body.sidebar-layout .primary-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* Keep the selected navigation glyph and its original shape; only tint the SVG. */
body.sidebar-layout .primary-nav a[aria-current="page"] .nav-icon {
  color: #8bdcff;
}

body.sidebar-layout .primary-nav a:focus-visible {
  outline-color: #fff;
  outline-offset: -2px;
}

body.sidebar-layout .create-options {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(100% + 12px);
  width: 92px;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: #292b30;
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
}

body.sidebar-layout .create-options::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -13px;
  width: 13px;
  content: '';
}

body.sidebar-layout .create-options[hidden] { display: none; }

body.sidebar-layout .create-option {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.58);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

body.sidebar-layout .create-option:hover,
body.sidebar-layout .create-option:focus-visible,
body.sidebar-layout .create-option.is-selected {
  background: rgba(255,255,255,.1);
  color: #fff;
}

body.sidebar-collapsed .site-header .brand {
  left: 16px;
  width: 28px;
  pointer-events: none;
}

body.sidebar-collapsed .site-header .brand span,
body.sidebar-collapsed .nav-label {
  display: none;
}

body.sidebar-collapsed .site-header .brand {
  visibility: hidden;
}

body.sidebar-collapsed .brand-logo {
  visibility: visible;
}

body.sidebar-collapsed .sidebar-toggle {
  top: 34px;
  right: 12px;
  width: 36px;
  height: 36px;
}

body.sidebar-collapsed .sidebar-toggle svg {
  opacity: 0;
}

body.sidebar-collapsed .sidebar-toggle:hover svg,
body.sidebar-collapsed .sidebar-toggle:focus-visible svg {
  opacity: 1;
}

body.sidebar-collapsed .sidebar-toggle:hover + .brand .brand-logo,
body.sidebar-collapsed .sidebar-toggle:focus-visible + .brand .brand-logo {
  visibility: hidden;
}

body.sidebar-collapsed .primary-nav {
  left: 9px;
  width: 42px;
  overflow: visible;
}

body.sidebar-collapsed .primary-nav a {
  width: 42px;
  height: 42px;
  padding: 0;
}

body.sidebar-collapsed .primary-nav .create-nav {
  width: 42px;
  height: 42px;
  padding: 0;
}


body.sidebar-collapsed .nav-icon {
  left: 8px;
}

body.sidebar-collapsed .primary-nav a::after {
  content: attr(data-tooltip);
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
}

body.sidebar-layout .account-actions {
  position: fixed;
  z-index: 10;
  top: 10.8px;
  right: var(--content-right-gap, 32px);
  transform: scale(.7);
  transform-origin: top right;
}

body.sidebar-layout .avatar-link {
  border: 1px solid rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0;
  background: transparent;
}

body.sidebar-layout .account-menu {
  position: fixed;
  z-index: 80;
  top: 6vh;
  right: 18px;
  width: min(348px, calc(100vw - 24px));
  max-height: calc(94vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #eee;
}
body.sidebar-layout .account-menu-card { padding: 14px; border: 1px solid #555; border-radius: 10px; background: #1d1e1d; box-shadow: 0 18px 45px #000b; font-family: var(--font-ui, "PingFang SC", "Microsoft YaHei", sans-serif); font-size: 13px; line-height: 1.35; }
body.sidebar-layout .account-profile, body.sidebar-layout .account-membership, body.sidebar-layout .account-balance, body.sidebar-layout .account-storage { border-radius: 10px; background: #262726; padding: 12px; margin-bottom: 9px; }
body.sidebar-layout .account-profile { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.sidebar-layout .account-profile-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
body.sidebar-layout .account-profile-copy { min-width: 0; }
body.sidebar-layout .account-profile strong, body.sidebar-layout .account-profile small { display: block; white-space: nowrap; }
body.sidebar-layout .account-profile strong { font-size: 14px; font-weight: 600; }
body.sidebar-layout .account-profile small { color: #888; margin-top: 5px; }
body.sidebar-layout .account-team { flex: 0 0 auto; margin-left: auto; padding: 4px 0 4px 8px; color: #ddd; background: none; border: 0; white-space: nowrap; font-size: 13px; }
body.sidebar-layout .account-membership { background: #182A48; }
body.sidebar-layout .account-membership { position: relative; }
body.sidebar-layout .account-membership > div:first-child { display: flex; align-items: center; min-height: 28px; padding-right: 104px; }
body.sidebar-layout .account-membership strong, body.sidebar-layout .account-membership span { margin-right: 10px; }
body.sidebar-layout .account-membership strong { font-size: 14px; }
body.sidebar-layout .account-membership span, body.sidebar-layout .account-membership p { color: #aaa; font-size: 12px; }
body.sidebar-layout .account-membership button { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 10px; background: linear-gradient(90deg, #2A70E3 0%, #2643B9 100%); color: #fff; padding: 7px 12px; white-space: nowrap; font-size: 13px; line-height: 1.2; }
body.sidebar-layout .membership-line { height: 4px; margin: 11px 0 13px; border-radius: 10px; background: #2A70E3; }
body.sidebar-layout .account-membership p { margin: 0; }.account-membership p span { float: right; }
body.sidebar-layout .account-balance { border: 1px solid #555; background: transparent; }.account-balance strong { color: #0099F2; font-size: 14px; }.account-balance span { float: right; color: #bbb; white-space: nowrap; }.account-balance p { margin: 8px 0 0; color: #aaa; font-size: 12px; white-space: nowrap; }
body.sidebar-layout .account-storage { border: 1px solid #555; background: transparent; }.account-storage span, .account-storage b { color: #aaa; }.account-storage b { float: right; font-size: 12px; }.account-storage strong { display: block; font-size: 16px; margin-top: 8px; }.account-storage small { color: #888; font-size: 12px; }
body.sidebar-layout .account-menu-links { display: grid; gap: 1px; padding: 4px 0 0; }.account-menu-links button { min-height: 31px; padding: 6px 8px; border: 0; text-align: left; color: #eee; background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }.account-menu-links button:hover { color: #0099F2; }.account-menu-links i { float: right; font-style: normal; color: #aaa; font-size: 11px; }
@media (max-width: 600px) {
  body.sidebar-layout .account-menu { top: 6dvh; right: 8px; width: min(340px, calc(100vw - 16px)); max-height: calc(94dvh - 24px); }
  body.sidebar-layout .account-menu-card { padding: 11px; }
}

body.sidebar-layout .homepage-main,
body.sidebar-layout .site-footer {
  width: 1920px;
  margin-left: 0;
}

body.sidebar-layout .footer-brand {
  left: 159px;
}

body.sidebar-layout .footer-rule {
  left: var(--sidebar-width);
  transform: none;
}

body.sidebar-layout .film-stills {
  display: flex;
  gap: var(--film-gap);
  padding: 0 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

body.sidebar-layout .film-stills::-webkit-scrollbar { display: none; }

body.sidebar-layout .film-stills.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

body.sidebar-layout .film-status {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 16px;
  pointer-events: none;
}

body.sidebar-layout .film-status[hidden] { display: none; }

body.sidebar-layout .film-still,
body.sidebar-layout .film-case.second-row {
  flex: 0 0 var(--film-small-width);
  min-width: var(--film-small-width);
  scroll-snap-align: start;
}

body.sidebar-layout .film-case.second-row {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
}

body.sidebar-layout .film-cases { display: none; }

body.sidebar-layout .film-carousel-controls {
  position: absolute;
  z-index: 4;
  top: 833px;
  right: 69px;
  display: flex;
  gap: 8px;
}

body.sidebar-layout .film-carousel-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(0,0,0,.56);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

body.sidebar-layout .film-carousel-arrow:disabled {
  opacity: .28;
  cursor: default;
  transform: none;
}

body.sidebar-layout .film-carousel-arrow:hover,
body.sidebar-layout .film-carousel-arrow:focus-visible {
  border-color: var(--accent-lime);
  background: linear-gradient(90deg, #2A70E3 0%, #2643B9 100%);
  color: #fff;
  transform: scale(1.05);
}

body.sidebar-layout .film-carousel-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
-offset: 3px;
}
s ease, border-color .18s ease, transform .18s ease;
}

body.sidebar-layout .film-carousel-arrow:disabled {
  opacity: .28;
  cursor: default;
  transform: none;
}

body.sidebar-layout .film-carousel-arrow:hover,
body.sidebar-layout .film-carousel-arrow:focus-visible {
  border-color: var(--accent-lime);
  background: linear-gradient(90deg, #2A70E3 0%, #2643B9 100%);
  color: #fff;
  transform: scale(1.05);
}

body.sidebar-layout .film-carousel-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
-offset: 3px;
}
line: 2px solid #fff;
  outline-offset: 3px;
}
-offset: 3px;
}
