@charset "UTF-8";

/* One application shell shared by the public dashboard and every workspace. */
.wb-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  display: flex;
  width: 272px;
  max-width: 272px;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding: 22px 16px 16px;
  overflow: hidden;
  border-right: 1px solid var(--wb-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 28%),
    var(--wb-sidebar);
  color: var(--wb-text);
  font-family: var(--wb-font);
}

.wb-brand {
  display: flex;
  min-width: 0;
  min-height: 54px;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 14px;
  color: var(--wb-text);
  text-decoration: none;
}

.wb-brand__logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  background: var(--wb-panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.wb-brand__logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.wb-brand__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.wb-brand__copy strong {
  overflow: hidden;
  color: var(--wb-text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-brand__copy small {
  color: var(--wb-text-faint);
  font-size: 11px;
  font-weight: 600;
}

.wb-sidebar__nav {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 19px;
  padding-top: 14px;
  overflow: auto;
  scrollbar-width: none;
}

.wb-sidebar__nav::-webkit-scrollbar {
  display: none;
}

.wb-nav-group {
  display: grid;
  gap: 4px;
}

.wb-nav-group > p {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--wb-text-faint);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.wb-nav-link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--wb-text-soft);
  font: 700 14px/1 var(--wb-font);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.wb-nav-link:hover,
.wb-nav-link:focus-visible {
  border-color: var(--wb-line);
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: var(--wb-text);
  transform: translateX(2px);
}

html[data-theme="light"] .wb-nav-link:hover,
html[data-theme="light"] .wb-nav-link:focus-visible,
html.jn-light-mode .wb-nav-link:hover,
html.jn-light-mode .wb-nav-link:focus-visible {
  background: rgba(22, 31, 44, 0.035);
}

.wb-nav-link.is-active,
.wb-nav-button[aria-expanded="true"] {
  border-color: var(--wb-line);
  background: var(--wb-panel-strong);
  color: var(--wb-text);
}

.wb-nav-link.is-active::before,
.wb-nav-button[aria-expanded="true"]::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -12px;
  width: 3px;
  border-radius: 99px;
  background: var(--wb-accent);
  box-shadow: 0 0 16px rgba(46, 214, 189, 0.52);
  content: "";
}

.wb-nav-link__icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
}

.wb-nav-link__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* Compact model switcher shared by chat, image, video and audio composers. */
.wb-model-quick-select {
  position: relative;
  width: auto;
  min-width: 132px;
  max-width: min(190px, calc(100vw - 44px));
  height: 34px;
  flex: 0 0 auto;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--wb-text);
}

/* app.css applies a desktop-only light chat style with higher specificity. */
html:not(.jn-light-mode):not([data-theme="light"]) body.front-creative-page:not(.page-admin) .wb-model-quick-select.front-model-select,
html[data-theme="dark"] body.front-creative-page:not(.page-admin) .wb-model-quick-select.front-model-select {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: var(--wb-text);
  -webkit-text-fill-color: var(--wb-text);
}

html body.front-creative-page .wb-model-quick-select > .wb-model-quick-select__trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: 750 12px/1 var(--wb-font);
  cursor: pointer;
}

html:not(.jn-light-mode):not([data-theme="light"]) body.front-creative-page:not(.page-admin) .wb-model-quick-select.front-model-select > .wb-model-quick-select__trigger,
html[data-theme="dark"] body.front-creative-page:not(.page-admin) .wb-model-quick-select.front-model-select > .wb-model-quick-select__trigger {
  background: transparent;
  color: var(--wb-text);
  -webkit-text-fill-color: var(--wb-text);
}

html body.front-creative-page .wb-model-quick-select > .wb-model-quick-select__trigger:hover,
html body.front-creative-page .wb-model-quick-select > .wb-model-quick-select__trigger:focus-visible,
.wb-model-quick-select.is-portal-open > .wb-model-quick-select__trigger {
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--wb-text);
}

.wb-model-quick-select__symbol,
.wb-model-quick-select__chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.wb-model-quick-select__symbol {
  color: var(--wb-accent);
}

.wb-model-quick-select__chevron {
  width: 12px;
  height: 12px;
  margin-left: auto;
  flex-basis: 12px;
  color: var(--wb-text-faint);
  transition: transform 160ms ease;
}

.wb-model-quick-select.is-portal-open .wb-model-quick-select__chevron {
  transform: rotate(180deg);
}

.wb-model-quick-select .front-param-value {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.front-creative-page .front-param-portal.wb-model-quick-select__popover {
  z-index: 2147483646;
  display: grid;
  gap: 5px;
  padding: 8px;
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(22, 25, 31, 0.98);
  color: var(--wb-text);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

html body.front-creative-page .front-param-portal.wb-model-quick-select__popover::before,
html body.front-creative-page .front-param-portal.wb-model-quick-select__popover::after,
html body.front-creative-page .front-param-portal.wb-model-quick-select__popover .wb-model-quick-select__option::after {
  display: none !important;
  content: none !important;
}

.wb-model-quick-select__heading {
  display: grid;
  gap: 4px;
  padding: 7px 9px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wb-model-quick-select__heading strong {
  color: var(--wb-text);
  font: 750 13px/1.2 var(--wb-font);
}

.wb-model-quick-select__heading span {
  color: var(--wb-text-faint);
  font: 600 11px/1.35 var(--wb-font);
}

html body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr) auto 15px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--wb-text-soft);
  text-align: left;
  cursor: pointer;
}

html body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option:hover,
html body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: var(--wb-text);
}

html body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option.is-selected {
  border-color: rgba(46, 214, 189, 0.24);
  background: rgba(46, 214, 189, 0.085);
  color: var(--wb-text);
}

.wb-model-quick-select__option-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--wb-accent);
  font: 800 12px/1 var(--wb-font);
}

.wb-model-quick-select__option-icon img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.wb-model-quick-select__option-icon img.is-light-monochrome-icon {
  filter: brightness(0) invert(1);
}

.wb-model-quick-select__option-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

html body.front-creative-page .wb-model-quick-select__option-copy strong {
  overflow: hidden;
  color: inherit;
  font: 750 13px/1.2 var(--wb-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-model-quick-select__option-copy small {
  overflow: hidden;
  color: var(--wb-text-faint);
  font: 550 11px/1.3 var(--wb-font);
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.front-creative-page .wb-model-quick-select__option-price {
  color: #e9b949;
  font: 700 10px/1 var(--wb-font);
  white-space: nowrap;
}

.wb-model-quick-select__option-check {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  opacity: 0;
  color: var(--wb-accent);
}

.wb-model-quick-select__option-check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.wb-model-quick-select__option.is-selected .wb-model-quick-select__option-check {
  opacity: 1;
}

html[data-theme="light"] .wb-model-quick-select,
html.jn-light-mode .wb-model-quick-select {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
}

html[data-theme="light"] body.front-creative-page .front-param-portal.wb-model-quick-select__popover,
html.jn-light-mode body.front-creative-page .front-param-portal.wb-model-quick-select__popover {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.98);
  color: #111827;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16), inset 0 1px rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .wb-model-quick-select__heading,
html.jn-light-mode .wb-model-quick-select__heading {
  border-bottom-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option,
html.jn-light-mode body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option {
  color: #526070;
}

html[data-theme="light"] body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option:hover,
html.jn-light-mode body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option:hover,
html[data-theme="light"] body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option.is-selected,
html.jn-light-mode body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option.is-selected {
  border-color: rgba(13, 148, 136, 0.2);
  background: rgba(13, 148, 136, 0.08);
  color: #172033;
}

html[data-theme="light"] .wb-model-quick-select__option-icon,
html.jn-light-mode .wb-model-quick-select__option-icon {
  border-color: rgba(15, 23, 42, 0.09);
  background: rgba(15, 23, 42, 0.035);
}

@media (max-width: 860px) {
  .wb-model-quick-select {
    min-width: 124px;
    max-width: 154px;
  }

  html body.front-creative-page .wb-model-quick-select > .wb-model-quick-select__trigger {
    padding-inline: 8px;
    font-size: 11px;
  }

  html body.front-creative-page .front-param-portal.wb-model-quick-select__popover .front-param-option.wb-model-quick-select__option {
    min-height: 54px;
    grid-template-columns: 32px minmax(0, 1fr) auto 15px;
    gap: 8px;
    padding: 7px 8px;
  }

  .wb-model-quick-select__option-icon {
    width: 32px;
    height: 32px;
  }
}

.wb-sidebar__account {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
  margin-top: auto;
  padding: 17px 10px 2px;
  border-top: 1px solid var(--wb-line);
}

.wb-sidebar__account > strong {
  color: var(--wb-text);
  font-size: 13px;
}

.wb-sidebar__account > p {
  margin: 0 0 5px;
  color: var(--wb-text-faint);
  font-size: 11px;
  line-height: 1.5;
}

.wb-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wb-account-actions a,
.wb-account-primary {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--wb-line-strong);
  border-radius: 8px;
  background: var(--wb-panel-strong);
  color: var(--wb-text);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.wb-account-actions a.is-primary,
.wb-account-primary {
  border-color: var(--wb-accent);
  background: var(--wb-accent);
  color: #05231f;
}

/* Workspace-specific shell: the global sidebar remains stable between routes. */
body.front-creative-page {
  --front-menu-expanded-width: 272px;
  --front-menu-collapsed-width: 272px;
  --front-menu-width: 272px;
  --front-menu-offset: 272px;
}

body.front-creative-page .front-creative-menu.wb-workspace-sidebar {
  width: 272px;
  max-width: 272px;
  padding: 22px 16px 16px;
  overflow: hidden;
  border-right: 1px solid var(--wb-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 28%),
    var(--wb-sidebar);
  box-shadow: none;
}

body.front-creative-page .wb-workspace-sidebar .wb-sidebar__nav {
  width: 100%;
}

body.front-creative-page .wb-workspace-account {
  width: 100%;
  flex: 0 0 auto;
  gap: 7px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--wb-line);
}

body.front-creative-page .wb-workspace-account .front-creative-account-main,
body.front-creative-page .wb-workspace-account .front-creative-recharge {
  border-color: var(--wb-line);
  border-radius: 10px;
}

body.front-creative-page .wb-workspace-account .front-creative-account-main {
  background: var(--wb-panel);
  box-shadow: none;
}

body.front-creative-page .wb-workspace-account .front-creative-recharge {
  box-shadow: none;
}

/* The model catalogue belongs to the changing workspace area, not global navigation. */
.wb-model-rail {
  position: fixed;
  inset: 0 auto 0 272px;
  z-index: 118;
  display: flex;
  width: 292px;
  max-width: calc(100vw - 272px);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  padding: 14px 14px 10px;
  overflow: hidden;
  border-right: 1px solid var(--wb-line-strong);
  background: color-mix(in srgb, var(--wb-sidebar) 96%, transparent);
  color: var(--wb-text);
  box-shadow: 22px 0 60px rgba(0, 0, 0, 0.32);
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 220ms;
}

body.wb-model-rail-open .wb-model-rail {
  transform: translateX(0);
  visibility: visible;
}

.wb-model-rail__head {
  display: flex;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--wb-line);
}

.wb-model-rail__head > div {
  display: grid;
  gap: 2px;
}

.wb-model-rail__head span {
  color: var(--wb-text-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wb-model-rail__head strong {
  color: var(--wb-text);
  font-size: 15px;
  font-weight: 800;
}

.wb-model-rail__head button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--wb-line);
  border-radius: 9px;
  background: var(--wb-panel);
  color: var(--wb-text-soft);
  cursor: pointer;
}

.wb-model-rail__head button:hover,
.wb-model-rail__head button:focus-visible {
  border-color: var(--wb-line-strong);
  outline: none;
  color: var(--wb-text);
}

.wb-model-rail__head svg,
.wb-model-rail-fab svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.front-creative-page .wb-model-rail .workspace-model-navigation,
body.front-creative-page.front-creative-menu-collapsed .wb-model-rail .workspace-model-navigation,
body.front-creative-page.is-sidebar-collapsed .wb-model-rail .workspace-model-navigation {
  display: flex !important;
  min-height: 0;
  flex: 1 1 auto;
  padding: 14px 0 0;
}

.wb-model-rail .workspace-model-navigation__primary {
  margin-bottom: 14px;
}

.wb-model-rail-backdrop {
  position: fixed;
  inset: 0 0 0 272px;
  z-index: 117;
  background: rgba(3, 5, 8, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.wb-model-rail-open .wb-model-rail-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.wb-model-rail-fab {
  display: none;
}

.wb-mobile-nav {
  display: none;
}

@media (min-width: 901px) {
  body.front-creative-page.front-creative-menu-collapsed,
  body.front-creative-page.is-sidebar-collapsed,
  body.front-creative-page.front-creative-menu-expanded {
    --front-menu-width: 272px;
    --front-menu-offset: 272px;
  }

  body.front-creative-page.front-creative-menu-collapsed .front-creative-menu.wb-workspace-sidebar,
  body.front-creative-page.is-sidebar-collapsed .front-creative-menu.wb-workspace-sidebar {
    width: 272px;
    max-width: 272px;
    padding: 22px 16px 16px;
  }
}

@media (max-width: 900px) {
  body.front-creative-page,
  body.front-creative-page.front-creative-menu-collapsed,
  body.front-creative-page.front-creative-menu-expanded,
  body.front-creative-page.is-sidebar-collapsed {
    --front-menu-expanded-width: 0px;
    --front-menu-collapsed-width: 0px;
    --front-menu-width: 0px;
    --front-menu-offset: 0px;
  }

  body.front-creative-page .front-creative-menu.wb-workspace-sidebar,
  body.front-creative-page.front-creative-menu-expanded .front-creative-menu.wb-workspace-sidebar,
  body.front-creative-page.is-mobile-menu-open .front-creative-menu.wb-workspace-sidebar,
  .wb-sidebar {
    display: none;
    width: 0;
    max-width: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
  }

  .wb-model-rail {
    inset: 0 auto 0 0;
    z-index: 9402;
    width: min(340px, 88vw);
    max-width: 88vw;
    padding: 14px 14px calc(74px + env(safe-area-inset-bottom));
  }

  .wb-model-rail-backdrop {
    inset: 0;
    z-index: 9401;
  }

  .wb-model-rail-fab {
    position: fixed;
    right: 14px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    z-index: 9301;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--wb-line-strong);
    border-radius: 999px;
    background: var(--wb-panel);
    color: var(--wb-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    font: 750 11px/1 var(--wb-font);
  }

  body.wb-model-rail-open .wb-model-rail-fab {
    opacity: 0;
    pointer-events: none;
  }

  .wb-mobile-nav,
  .wb-app-mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 9400;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 62px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--wb-line);
    background: color-mix(in srgb, var(--wb-sidebar) 94%, transparent);
    box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px);
  }

  .wb-mobile-nav a,
  .wb-app-mobile-nav a {
    display: grid;
    min-width: 0;
    place-items: center;
    gap: 2px;
    color: var(--wb-text-faint);
    font: 700 10px/1 var(--wb-font);
    text-decoration: none;
  }

  .wb-mobile-nav a.is-active,
  .wb-app-mobile-nav a.is-active {
    color: var(--wb-accent);
  }

  .wb-mobile-nav svg,
  .wb-app-mobile-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-model-rail,
  .wb-model-rail-backdrop,
  .wb-nav-link {
    transition-duration: 0.01ms !important;
  }
}
