/* V159 UI-01 approved page-rail integration.
 * Scope: page rails, main-column growth, and the user-approved removal of the
 * duplicate page-level member subnav on My Creation. Component visuals stay in V158.
 */
.v159-ui01{
  --v159-header-left:32px;
  --v159-header-right:32px;
  --v159-page-width:calc(100vw - 64px);
}

/* USER decision 2026-08-30: the account menu lives behind the header avatar.
 * My Creation must not repeat the full member-center navigation in page content.
 */
.v159-ui01.v159-ui01-projects .member-subnav{
  display:none!important;
}

.v159-ui01.v159-ui01-projects #app>main.shell.page-content.internal-page:has(>.member-subnav){
  display:block;
}

.v159-ui01 :is(
  .v154-viral-page,
  .p05-creation-shell,
  .p02-library-page,
  .p04-detail-shell,
  .generation-page>.shell,
  .v150-workbench-host,
  #app>main.shell.page-content.internal-page
){
  box-sizing:border-box;
  width:var(--v159-page-width)!important;
  max-width:none!important;
  margin-right:var(--v159-header-right)!important;
  margin-left:var(--v159-header-left)!important;
}

@media(min-width:1200px){
  .v159-ui01 .v154-viral-layout:not(.v154-topic-workspace){
    grid-template-columns:250px minmax(0,1fr) 250px;
  }
  .v159-ui01 .p05-layout{
    grid-template-columns:150px minmax(0,1fr) 250px;
  }
  .v159-ui01 .p04-detail-grid{
    grid-template-columns:minmax(0,1fr) 250px;
  }
}

@media(max-width:767px){
  .v159-ui01{
    --v159-header-left:16px;
    --v159-header-right:16px;
    --v159-page-width:calc(100vw - 32px);
  }
}

@media(prefers-reduced-motion:reduce){
  .v159-ui01 :is(.p02-filter-sidebar,.p05-continue){transition:none!important}
}
