@import url("/shared/theme.css?v=1.0.0");

:root {
  --desktop-canvas-min: 1280px;
  --workbench-content-max: 1280px;
  --workbench-sidebar: 280px;
  --workbench-sidebar-rail: 76px;
  --workbench-rail-bg: var(--theme-soft);
  --workbench-rail-text: var(--theme-on-accent);
  --workbench-rail-muted: var(--theme-on-accent);
  --workbench-line: #dbe4e9;
  --workbench-line-strong: #cbd9df;
  --workbench-surface: #ffffff;
  --workbench-surface-soft: #f6f9fa;
  --workbench-text: #1f2d35;
  --workbench-muted: #687985;
  --workbench-accent: var(--theme-accent);
  --workbench-accent-soft: var(--theme-soft);
}

.sidebar-command-rail { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (hover: hover) and (pointer: fine) {
  #appShell.app-shell {
    grid-template-columns: var(--workbench-sidebar-rail) minmax(0, 1fr) !important;
  }

  .app-shell > .workspace {
    grid-column: 2 / -1 !important;
    grid-row: 1 !important;
  }

  .app-shell > .sidebar {
    position: fixed !important;
    z-index: 1200;
    top: 0 !important;
    left: 0;
    display: flex;
    width: var(--workbench-sidebar-rail) !important;
    min-width: var(--workbench-sidebar-rail) !important;
    height: 100vh !important;
    padding: 12px 10px !important;
    overflow: visible !important;
    flex-direction: column;
    transform: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    border-right: 1px solid var(--theme-border) !important;
    background: var(--workbench-rail-bg) !important;
    box-shadow: none;
    transition:
      width 180ms ease,
      min-width 180ms ease,
      padding 180ms ease,
      box-shadow 150ms ease;
    will-change: width;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar {
    width: var(--workbench-sidebar) !important;
    min-width: var(--workbench-sidebar) !important;
    padding: 12px 14px !important;
    overflow: hidden !important;
    box-shadow: 18px 0 38px rgba(18, 34, 42, 0.18);
  }

  .app-shell > .sidebar .brand {
    display: grid;
    width: 56px;
    min-height: 62px;
    margin: 0 0 10px;
    padding: 0 5px 10px;
    grid-template-columns: 44px 0 0;
    align-items: center;
    gap: 0;
    overflow: visible;
    border-bottom: 1px solid var(--theme-border);
    background: transparent;
    transition: width 180ms ease, grid-template-columns 180ms ease, gap 180ms ease, padding 180ms ease;
  }

  .sidebar-brand-toggle,
  .sidebar-rail-button,
  .app-shell > .sidebar .nav-group-toggle {
    position: relative;
    display: grid;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    align-items: center;
    justify-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--workbench-rail-muted);
    cursor: pointer;
    appearance: none;
    transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
  }

  .sidebar-rail-button[hidden] {
    display: none !important;
  }

  .sidebar-brand-toggle:hover,
  .sidebar-brand-toggle:focus-visible,
  .sidebar-rail-button:hover,
  .sidebar-rail-button:focus-visible,
  .app-shell > .sidebar .nav-group-toggle:hover,
  .app-shell > .sidebar .nav-group-toggle:focus-visible {
    border-color: var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-on-accent);
    outline: 0;
  }

  .app-shell > .sidebar .nav-group.current > .nav-group-toggle,
  .app-shell > .sidebar .nav-group:has(.page-tab.active) > .nav-group-toggle {
    border-color: var(--theme-accent);
    background: var(--theme-accent);
    color: var(--theme-on-accent);
  }

  .app-shell > .sidebar .nav-group.current > .nav-group-toggle::before,
  .app-shell > .sidebar .nav-group:has(.page-tab.active) > .nav-group-toggle::before {
    position: absolute;
    top: 11px;
    left: -11px;
    width: 3px;
    height: 24px;
    border-radius: 0 2px 2px 0;
    background: var(--theme-accent);
    content: "";
  }

  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .sidebar-brand-toggle::after,
  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .sidebar-rail-button::after,
  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .nav-group-toggle::after {
    position: absolute;
    z-index: 1300;
    top: 50%;
    left: calc(100% + 13px);
    min-width: max-content;
    padding: 7px 9px;
    border: 1px solid #d6e0e4;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22, 39, 48, 0.16);
    color: #213039;
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(5px, -50%);
    transition: opacity 120ms ease, transform 120ms ease;
    white-space: nowrap;
  }

  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .sidebar-brand-toggle:hover::after,
  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .sidebar-brand-toggle:focus-visible::after,
  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .sidebar-rail-button:hover::after,
  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .sidebar-rail-button:focus-visible::after,
  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .nav-group-toggle:hover::after,
  .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .nav-group-toggle:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .sidebar-rail-button[aria-disabled="true"] {
    cursor: default;
    opacity: 0.36;
  }

  .sidebar-rail-button[aria-disabled="true"]::after {
    display: none;
  }

  .sidebar-brand-toggle {
    min-width: 44px;
    width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
    border-color: var(--theme-border);
    background: #fff;
    overflow: visible;
  }

  .sidebar-brand-toggle:hover,
  .sidebar-brand-toggle:focus-visible {
    border-color: var(--theme-border);
    background: #fff;
  }

  .sidebar-brand-toggle img {
    width: 100%;
    height: 100%;
    padding: 2px;
    object-fit: contain;
  }

  .app-shell > .sidebar .sidebar-brand-copy,
  .app-shell > .sidebar .sidebar-panel-pin {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .app-shell > .sidebar .sidebar-brand-copy {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 100ms ease;
  }

  .app-shell > .sidebar .sidebar-brand-copy h1 {
    overflow: hidden;
    color: var(--theme-on-accent);
    font-size: 17px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-shell > .sidebar .page-tabs {
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 8px;
    overflow: visible !important;
  }

  .app-shell > .sidebar .nav-group {
    width: 46px;
    min-height: 46px;
    flex: 0 0 auto;
    overflow: visible;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
  }

  .app-shell > .sidebar .nav-group-toggle {
    grid-template-columns: 20px 0 0;
    gap: 0;
    padding: 0;
    justify-content: center;
    color: var(--workbench-rail-muted);
    text-align: left;
  }

  .app-shell > .sidebar .nav-group-toggle > .nav-group-icon,
  .sidebar-rail-actions .menu-line-icon,
  .sidebar-panel-pin .menu-line-icon {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
  }

  .app-shell > .sidebar .nav-group-toggle > .nav-group-icon {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
  }

  .app-shell > .sidebar .nav-group-toggle .menu-line-icon,
  .sidebar-rail-actions .menu-line-icon,
  .sidebar-panel-pin .menu-line-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .app-shell > .sidebar .nav-group-toggle > span:not(.nav-group-icon),
  .app-shell > .sidebar .nav-group-toggle > i,
  .app-shell > .sidebar .nav-group-body {
    display: none !important;
  }

  .sidebar-rail-actions {
    position: relative;
    display: flex;
    width: 46px;
    padding: 11px 0 0;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
  }

  .sidebar-rail-actions::before {
    position: absolute;
    top: 0;
    left: 5px;
    width: 36px;
    height: 1px;
    background: var(--theme-border);
    content: "";
  }

  .sidebar-action-label {
    display: none;
  }

  .sidebar-user-avatar {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #536970;
    border-radius: 50%;
    color: var(--theme-on-accent);
    font-size: 12px;
    font-weight: 800;
  }

  .app-shell > .sidebar > .panel.compact {
    display: none;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .brand {
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 0 0 10px;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .sidebar-brand-copy,
  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .sidebar-panel-pin {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-panel-pin {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-soft);
    color: var(--theme-on-accent);
    cursor: pointer;
  }

  .sidebar-panel-pin:hover,
  .sidebar-panel-pin:focus-visible {
    border-color: var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-on-accent);
    outline: 0;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .page-tabs {
    gap: 8px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #40545c transparent;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group {
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    background: var(--theme-soft);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group-toggle {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 44px;
    grid-template-columns: 24px minmax(0, 1fr) 10px;
    gap: 10px;
    padding: 9px 10px;
    justify-content: stretch;
    justify-items: stretch;
    border: 0;
    border-radius: 0;
    background: var(--theme-soft);
    color: var(--theme-on-accent);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group-toggle > span:not(.nav-group-icon) {
    display: grid !important;
    min-width: 0;
    align-items: center;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group-toggle > i {
    display: block !important;
    align-self: center;
    border-color: var(--theme-on-accent);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group.current > .nav-group-toggle,
  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group:has(.page-tab.active) > .nav-group-toggle {
    border-color: transparent;
    background: var(--theme-brand);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group.open > .nav-group-toggle {
    background: var(--theme-brand);
    color: var(--theme-on-accent);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group.open > .nav-group-body {
    display: grid !important;
    gap: 7px;
    padding: 8px;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-soft);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-submenu {
    border-color: var(--theme-border);
    background: var(--theme-soft);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-submenu-toggle {
    background: var(--theme-soft);
    color: var(--theme-on-accent);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-submenu.open > .nav-submenu-toggle {
    background: var(--theme-soft);
    color: var(--theme-on-accent);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-submenu-body {
    border-color: var(--theme-border);
    background: var(--theme-soft);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .page-tab {
    color: var(--theme-on-accent);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .page-tab:hover {
    border-color: var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-on-accent);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .page-tab.active {
    border-color: var(--theme-accent);
    background: var(--theme-brand);
    color: var(--theme-on-accent);
    box-shadow: none;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .sidebar-rail-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .sidebar-rail-button {
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 0 10px;
    justify-items: start;
    color: var(--theme-on-accent);
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .sidebar-action-label {
    display: block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar > .panel.compact {
    display: grid;
    flex: 0 0 auto;
    gap: 6px;
    margin: 6px 0 0;
    padding: 8px;
    border-color: var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-on-accent);
  }

  .sidebar-account-main {
    display: grid;
    min-width: 0;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }

  .sidebar-account-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--theme-border);
    border-radius: 50%;
    background: var(--theme-soft);
    color: var(--theme-on-accent);
    font-size: 12px;
    font-weight: 800;
  }

  .sidebar-account-identity {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .sidebar-account-identity > strong {
    overflow: hidden;
    color: var(--theme-on-accent);
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-account-identity > span {
    display: flex;
    min-width: 0;
    gap: 4px;
    overflow: hidden;
    color: var(--theme-on-accent);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-account-identity i {
    color: #526a73;
    font-style: normal;
  }

  .sidebar-account-main > button {
    min-width: 44px;
    height: 30px;
    min-height: 30px;
    padding: 0 9px;
    border-color: var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-on-accent);
    font-size: 11px;
  }

  .sidebar-account-main > button:hover,
  .sidebar-account-main > button:focus-visible {
    border-color: var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-on-accent);
  }

  .sidebar-account-api {
    display: block;
    min-width: 0;
    padding-left: 38px;
    overflow: hidden;
    color: var(--theme-strong);
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #appShell.app-shell.sidebar-pinned {
    grid-template-columns: var(--workbench-sidebar) minmax(0, 1fr) !important;
  }

  #appShell.app-shell.sidebar-pinned > .workspace {
    grid-column: 2 / -1 !important;
  }

  #appShell.app-shell.sidebar-pinned > .sidebar-command-rail {
    display: none;
  }

  #appShell.app-shell.sidebar-pinned > .sidebar {
    position: sticky !important;
    z-index: 70;
    grid-column: 1;
    grid-row: 1;
    box-shadow: none;
  }

  #appShell.app-shell.sidebar-pinned .sidebar-panel-pin {
    border-color: var(--theme-border);
    background: var(--theme-soft);
    color: var(--theme-on-accent);
  }

  #appShell.app-shell.sidebar-pinned .sidebar-panel-pin .menu-line-icon {
    transform: rotate(180deg);
  }

  #appShell.app-shell.sidebar-pinned > .sidebar.inert,
  #appShell.app-shell.sidebar-pinned > .sidebar[inert] {
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell > .sidebar {
    transition: none !important;
  }
}

/* The workbench is a desktop production tool. Narrow screens retain the desktop
   canvas instead of switching to a separate mobile information architecture. */
html,
body {
  min-width: var(--desktop-canvas-min);
}

body {
  overflow-x: auto;
  background: #edf2f4;
}

.app-shell {
  display: grid !important;
  grid-template-columns: var(--workbench-sidebar) minmax(0, 1fr) !important;
  align-items: start !important;
  width: 100% !important;
  min-width: var(--desktop-canvas-min);
}

.sidebar {
  position: sticky !important;
  top: 0 !important;
  width: var(--workbench-sidebar) !important;
  min-width: var(--workbench-sidebar) !important;
  height: 100vh !important;
  overflow-y: auto !important;
  border-right: 1px solid var(--workbench-line) !important;
  background: #f8fafb !important;
}

.workspace {
  width: 100% !important;
  min-width: 0 !important;
  padding: 24px 28px 42px !important;
}

.unified-workspace {
  width: 100% !important;
  max-width: var(--workbench-content-max) !important;
  min-width: 0;
  margin: 0 auto !important;
  color: var(--workbench-text);
}

.unified-workspace.hidden {
  display: none !important;
}

.unified-workspace,
.unified-workspace * {
  letter-spacing: 0;
}

/* 新品开发需要在老板手机上完成审批；仅在该视图激活时解除桌面画布下限。 */
@media (max-width: 760px) {
  html:has(#strategyProductDevelopmentView.active),
  body:has(#strategyProductDevelopmentView.active) {
    min-width: 0;
    overflow-x: hidden;
  }

  .app-shell:has(#strategyProductDevelopmentView.active) {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
  }

  .app-shell:has(#strategyProductDevelopmentView.active) > .sidebar {
    display: none !important;
  }

  .app-shell:has(#strategyProductDevelopmentView.active) > .workspace {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  #strategyAdvisorWorkspace:has(#strategyProductDevelopmentView.active) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 10px !important;
  }

  #strategyAdvisorWorkspace:has(#strategyProductDevelopmentView.active) > .strategy-topbar,
  #strategyAdvisorWorkspace:has(#strategyProductDevelopmentView.active) > #strategyViewTabs {
    display: none !important;
  }
}

/* Unified page header */
.unified-workspace > :is(
  .studio-topbar,
  .comic-production-topbar,
  .completion-topbar,
  .fursuit-topbar,
  .product-refresh-topbar,
  .storybook-topbar,
  .eye-piece-topbar,
  .etsy-pricing-topbar,
  .customer-audit-topbar,
  .admin-topbar
),
#competitorWorkspace .competitor-area > .topline:first-child,
#pawOrderWorkspace .paw-order-form > .topline:first-child,
#generationWorkspace .input-area > .topline:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  min-height: 96px;
  margin: 0 0 14px !important;
  padding: 17px 20px !important;
  border: 1px solid var(--workbench-line) !important;
  border-radius: 8px !important;
  background: var(--workbench-surface) !important;
  box-shadow: none !important;
}

.unified-workspace > :is(
  .studio-topbar,
  .comic-production-topbar,
  .completion-topbar,
  .fursuit-topbar,
  .product-refresh-topbar,
  .storybook-topbar,
  .eye-piece-topbar,
  .etsy-pricing-topbar,
  .customer-audit-topbar,
  .admin-topbar
) > div:first-child,
#competitorWorkspace .competitor-area > .topline:first-child > div:first-child,
#pawOrderWorkspace .paw-order-form > .topline:first-child > div:first-child,
#generationWorkspace .input-area > .topline:first-child > div:first-child {
  min-width: 0;
}

.unified-workspace > :is(
  .studio-topbar,
  .comic-production-topbar,
  .completion-topbar,
  .fursuit-topbar,
  .product-refresh-topbar,
  .storybook-topbar,
  .eye-piece-topbar,
  .etsy-pricing-topbar,
  .customer-audit-topbar,
  .admin-topbar
) h2,
#competitorWorkspace .competitor-area > .topline:first-child h2,
#pawOrderWorkspace .paw-order-form > .topline:first-child h2,
#generationWorkspace .input-area > .topline:first-child h2 {
  margin: 3px 0 4px !important;
  color: var(--workbench-text) !important;
  font-size: 27px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
}

.unified-workspace > :is(
  .studio-topbar,
  .comic-production-topbar,
  .completion-topbar,
  .fursuit-topbar,
  .product-refresh-topbar,
  .storybook-topbar,
  .eye-piece-topbar,
  .etsy-pricing-topbar,
  .customer-audit-topbar,
  .admin-topbar
) p:last-child,
#competitorWorkspace .competitor-area > .topline:first-child p,
#pawOrderWorkspace .paw-order-form > .topline:first-child p,
#generationWorkspace .input-area > .topline:first-child p {
  max-width: 820px;
  margin: 0 !important;
  color: var(--workbench-muted) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.unified-workspace :is(
  .studio-kicker,
  .completion-kicker,
  .workspace-kicker,
  .production-page-eyebrow,
  .comic-production-kicker
) {
  color: var(--theme-strong) !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 750 !important;
}

/* Shared step navigation for page-based workflows */
.unified-workspace :is(
  .studio-steps,
  .comic-production-steps,
  .fursuit-steps,
  .storybook-steps
) {
  width: 100%;
  margin: 0 0 14px !important;
  border: 1px solid var(--workbench-line) !important;
  border-radius: 8px !important;
  background: var(--workbench-surface) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.unified-workspace :is(
  .studio-steps > span,
  .comic-production-steps > button,
  .fursuit-steps > button,
  .storybook-steps > button
) {
  min-height: 52px !important;
  border: 0 !important;
  border-right: 1px solid var(--workbench-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.unified-workspace :is(
  .studio-steps > span:last-child,
  .comic-production-steps > button:last-child,
  .fursuit-steps > button:last-child,
  .storybook-steps > button:last-child
) {
  border-right: 0 !important;
}

.unified-workspace :is(
  .studio-steps > span.active,
  .comic-production-steps > button.active,
  .fursuit-steps > button.active,
  .storybook-steps > button.active
) {
  color: var(--theme-strong) !important;
  background: var(--workbench-accent-soft) !important;
  box-shadow: inset 0 -3px 0 var(--workbench-accent) !important;
}

/* Stable desktop two-column work areas */
.comic-production-layout,
.completion-layout,
.fursuit-layout {
  grid-template-columns: minmax(0, 1fr) 310px !important;
  align-items: start !important;
}

.product-refresh-layout {
  grid-template-columns: minmax(0, 1fr) 350px !important;
  align-items: start !important;
}

.paw-order-layout {
  grid-template-columns: minmax(0, 1fr) 390px !important;
  align-items: start !important;
}

.etsy-pricing-layout {
  grid-template-columns: minmax(0, 1fr) 390px !important;
  align-items: start !important;
}

.comic-production-side,
.completion-side,
.fursuit-side,
.paw-preview-panel,
.etsy-pricing-result {
  position: sticky !important;
  top: 18px !important;
}

.paw-preview-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
}

.paw-preview-head h3 {
  white-space: nowrap;
}

.paw-preview-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  width: 100%;
}

.paw-preview-actions .paw-download-custom-toggle {
  grid-column: 1 / -1;
}

.paw-preview-actions button {
  width: 100%;
  min-width: 0;
}

/* One panel language across every module. Existing business markup stays intact. */
.unified-workspace :is(
  .studio-panel,
  .comic-production-panel,
  .completion-panel,
  .fursuit-screen,
  .product-refresh-step,
  .workflow-block,
  .paw-step,
  .storybook-screen,
  .eye-piece-step,
  .etsy-pricing-panel,
  .customer-audit-step,
  .admin-panel
) {
  border: 1px solid var(--workbench-line) !important;
  border-radius: 8px !important;
  background: var(--workbench-surface) !important;
  box-shadow: none !important;
}

.unified-workspace :is(
  .completion-panel,
  .fursuit-screen,
  .product-refresh-step,
  .workflow-block,
  .paw-step,
  .eye-piece-step,
  .etsy-pricing-panel,
  .customer-audit-step,
  .admin-panel
) {
  margin-bottom: 12px;
}

.unified-workspace :is(
  .completion-panel-head,
  .fursuit-section-head,
  .product-refresh-step-head,
  .block-heading,
  .paw-step-head,
  .storybook-section-head,
  .eye-piece-step-heading,
  .etsy-pricing-panel-head,
  .customer-audit-step-head
) h3 {
  color: var(--workbench-text) !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 720 !important;
}

.unified-workspace :is(
  .completion-panel-head,
  .fursuit-section-head,
  .product-refresh-step-head,
  .block-heading,
  .paw-step-head,
  .storybook-section-head,
  .eye-piece-step-heading,
  .etsy-pricing-panel-head,
  .customer-audit-step-head
) p {
  color: var(--workbench-muted) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

.unified-workspace :is(
  .completion-step,
  .product-refresh-step-head > span,
  .fursuit-section-head > span,
  .eye-piece-step-heading > b,
  .etsy-pricing-panel-head > b,
  .customer-audit-step-head > b
) {
  border: 1px solid #b9d6df !important;
  border-radius: 999px !important;
  color: var(--theme-strong) !important;
  background: var(--workbench-accent-soft) !important;
  box-shadow: none !important;
}

/* Controls */
.unified-workspace button,
.unified-workspace input,
.unified-workspace select,
.unified-workspace textarea {
  border-radius: 6px !important;
}

.unified-workspace button {
  min-height: 38px;
  box-shadow: none !important;
}

.unified-workspace button.small {
  min-height: 32px;
}

.unified-workspace :is(input:not([type="radio"]):not([type="checkbox"]):not([type="color"]), select) {
  min-height: 40px;
}

.unified-workspace :is(input, select, textarea) {
  border-color: var(--workbench-line-strong) !important;
  background-color: #fff;
}

.unified-workspace :is(input, select, textarea):focus {
  border-color: var(--workbench-accent) !important;
  outline: 2px solid rgba(var(--theme-rgb), 0.13) !important;
  outline-offset: 0;
}

/* Main action rows stay at the end of their current workflow screen. */
.unified-workspace :is(
  .production-action-bar,
  .fursuit-screen-actions,
  .product-refresh-generate,
  .storybook-screen-actions,
  .eye-piece-actions,
  .customer-audit-action-row
) {
  position: static !important;
  border-top: 1px solid var(--workbench-line) !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Task, result and history areas use a quieter supporting hierarchy. */
.unified-workspace :is(
  .production-task-center,
  .studio-history,
  .comic-production-side > section,
  .completion-side > section,
  .fursuit-side > section,
  .product-refresh-history,
  .competitor-history,
  .paw-custom-task-panel,
  .storybook-history-section,
  .eye-piece-history,
  .customer-audit-history
) {
  border: 1px solid var(--workbench-line) !important;
  border-radius: 8px !important;
  background: var(--workbench-surface) !important;
  box-shadow: none !important;
}

.unified-workspace :is(
  .studio-history,
  .product-refresh-history,
  .storybook-history-section,
  .customer-audit-history
) {
  margin-top: 14px !important;
}

.unified-workspace :is(
  .comic-empty,
  .completion-empty,
  .fursuit-empty,
  .customer-audit-empty
) {
  border: 1px dashed var(--workbench-line-strong) !important;
  border-radius: 6px !important;
  color: var(--workbench-muted) !important;
  background: var(--workbench-surface-soft) !important;
}

/* Older hero-style modules follow the same desktop content width. */
#competitorWorkspace,
#pawOrderWorkspace,
#storyBookWorkspace,
#generationWorkspace {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#competitorWorkspace > .input-area,
#generationWorkspace > .input-area,
#pawOrderWorkspace .paw-order-form,
#storyBookWorkspace {
  min-width: 0;
}

#competitorWorkspace > .input-area,
#generationWorkspace > .input-area {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The desktop sidebar never expands into an in-page mobile menu. */
.sidebar .brand,
.sidebar .page-tabs,
.sidebar > .panel {
  width: auto !important;
}

.sidebar .page-tabs {
  overflow: visible !important;
}

/* Feature modules load only when opened, while the shared shell stays usable. */
.feature-module-status {
  width: 100%;
  max-width: var(--workbench-content-max);
  min-height: 88px;
  margin: 0 auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--workbench-line);
  border-radius: 8px;
  background: var(--workbench-surface);
  color: var(--workbench-text);
}

.feature-module-status.hidden {
  display: none !important;
}

.feature-module-status strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.feature-module-status p {
  margin: 0;
  color: var(--workbench-muted);
  font-size: 13px;
  line-height: 1.55;
}

.feature-module-status[data-state="error"] {
  border-color: #e8b8b5;
  background: #fffafa;
}

.feature-module-status[data-state="error"] strong {
  color: #a83b35;
}

.feature-module-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #d5e7ec;
  border-top-color: var(--workbench-accent);
  border-radius: 50%;
  animation: feature-module-spin 0.7s linear infinite;
}

.feature-module-status[data-state="error"] .feature-module-spinner {
  display: none;
}

.unified-workspace.feature-module-pending {
  display: none !important;
}

@keyframes feature-module-spin {
  to { transform: rotate(360deg); }
}

/* WORKBENCH_DARK_THEME: generated by scripts/build-workbench-dark-theme.mjs */
@media screen {
@media (hover: hover) and (pointer: fine) {
:where(:root[data-theme="dark"]) .app-shell > .sidebar { border-right-color: hsl(22 48% 38%) !important; background-color: #1a1b1f !important; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar { box-shadow: 18px 0 38px rgba(0, 0, 0, 0.22); }
:where(:root[data-theme="dark"]) .app-shell > .sidebar .brand { border-bottom-color: hsl(22 48% 38%); }
:where(:root[data-theme="dark"]) .sidebar-brand-toggle,
:where(:root[data-theme="dark"]) .sidebar-rail-button,
:where(:root[data-theme="dark"]) .app-shell > .sidebar .nav-group-toggle { color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-brand-toggle:hover,
:where(:root[data-theme="dark"]) .sidebar-brand-toggle:focus-visible,
:where(:root[data-theme="dark"]) .sidebar-rail-button:hover,
:where(:root[data-theme="dark"]) .sidebar-rail-button:focus-visible,
:where(:root[data-theme="dark"]) .app-shell > .sidebar .nav-group-toggle:hover,
:where(:root[data-theme="dark"]) .app-shell > .sidebar .nav-group-toggle:focus-visible { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell > .sidebar .nav-group.current > .nav-group-toggle,
:where(:root[data-theme="dark"]) .app-shell > .sidebar .nav-group:has(.page-tab.active) > .nav-group-toggle { border-color: #f1641e; background-color: #f1641e; color: #222222; }
:where(:root[data-theme="dark"]) .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .sidebar-brand-toggle::after,
:where(:root[data-theme="dark"]) .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .sidebar-rail-button::after,
:where(:root[data-theme="dark"]) .app-shell:not(.sidebar-revealed):not(.sidebar-pinned) .nav-group-toggle::after { border-color: #484b53; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22); color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-brand-toggle { border-color: hsl(22 48% 38%); background-color: #222327; }
:where(:root[data-theme="dark"]) .sidebar-brand-toggle:hover,
:where(:root[data-theme="dark"]) .sidebar-brand-toggle:focus-visible { border-color: hsl(22 48% 38%); background-color: #222327; }
:where(:root[data-theme="dark"]) .app-shell > .sidebar .sidebar-brand-copy h1 { color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell > .sidebar .nav-group-toggle { color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-rail-actions::before { background-color: hsl(22 42% 18%); }
:where(:root[data-theme="dark"]) .sidebar-user-avatar { border-color: #484b53; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-panel-pin { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-panel-pin:hover,
:where(:root[data-theme="dark"]) .sidebar-panel-pin:focus-visible { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group { border-color: hsl(22 48% 38%); background-color: #1a1b1f; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group-toggle { background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group-toggle > i { border-color: #484b53; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group.current > .nav-group-toggle,
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group:has(.page-tab.active) > .nav-group-toggle { background-color: #f1641e; color: #222222; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group.open > .nav-group-toggle { background-color: #f1641e; color: #222222; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-group.open > .nav-group-body { border-top-color: hsl(22 48% 38%); background-color: #1a1b1f; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-submenu { border-color: hsl(22 48% 38%); background-color: #1a1b1f; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-submenu-toggle { background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-submenu.open > .nav-submenu-toggle { background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .nav-submenu-body { border-color: hsl(22 48% 38%); background-color: #1a1b1f; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .page-tab { color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .page-tab:hover { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .page-tab.active { border-color: #f1641e; background-color: #f1641e; color: #222222; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar .sidebar-rail-button { color: #f0f0f2; }
:where(:root[data-theme="dark"]) .app-shell:is(.sidebar-revealed, .sidebar-pinned) > .sidebar > .panel.compact { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-account-avatar { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-account-identity > strong { color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-account-identity > span { color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-account-identity i { color: hsl(196 38% 76%); }
:where(:root[data-theme="dark"]) .sidebar-account-main > button { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-account-main > button:hover,
:where(:root[data-theme="dark"]) .sidebar-account-main > button:focus-visible { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .sidebar-account-api { color: #ffad7a; }
:where(:root[data-theme="dark"]) #appShell.app-shell.sidebar-pinned .sidebar-panel-pin { border-color: hsl(22 48% 38%); background-color: #1a1b1f; color: #f0f0f2; }
}
:where(:root[data-theme="dark"]) body { background-color: #1a1b1f; }
:where(:root[data-theme="dark"]) .sidebar { border-right-color: #484b53 !important; background-color: #27292e !important; }
:where(:root[data-theme="dark"]) .unified-workspace { color: #f0f0f2; }
:where(:root[data-theme="dark"]) .unified-workspace > :is(
  .studio-topbar,
  .comic-production-topbar,
  .completion-topbar,
  .fursuit-topbar,
  .product-refresh-topbar,
  .storybook-topbar,
  .eye-piece-topbar,
  .etsy-pricing-topbar,
  .customer-audit-topbar,
  .admin-topbar
),
:where(:root[data-theme="dark"]) #competitorWorkspace .competitor-area > .topline:first-child,
:where(:root[data-theme="dark"]) #pawOrderWorkspace .paw-order-form > .topline:first-child,
:where(:root[data-theme="dark"]) #generationWorkspace .input-area > .topline:first-child { border-color: #484b53 !important; background-color: #222327 !important; }
:where(:root[data-theme="dark"]) .unified-workspace > :is(
  .studio-topbar,
  .comic-production-topbar,
  .completion-topbar,
  .fursuit-topbar,
  .product-refresh-topbar,
  .storybook-topbar,
  .eye-piece-topbar,
  .etsy-pricing-topbar,
  .customer-audit-topbar,
  .admin-topbar
) h2,
:where(:root[data-theme="dark"]) #competitorWorkspace .competitor-area > .topline:first-child h2,
:where(:root[data-theme="dark"]) #pawOrderWorkspace .paw-order-form > .topline:first-child h2,
:where(:root[data-theme="dark"]) #generationWorkspace .input-area > .topline:first-child h2 { color: #f0f0f2 !important; }
:where(:root[data-theme="dark"]) .unified-workspace > :is(
  .studio-topbar,
  .comic-production-topbar,
  .completion-topbar,
  .fursuit-topbar,
  .product-refresh-topbar,
  .storybook-topbar,
  .eye-piece-topbar,
  .etsy-pricing-topbar,
  .customer-audit-topbar,
  .admin-topbar
) p:last-child,
:where(:root[data-theme="dark"]) #competitorWorkspace .competitor-area > .topline:first-child p,
:where(:root[data-theme="dark"]) #pawOrderWorkspace .paw-order-form > .topline:first-child p,
:where(:root[data-theme="dark"]) #generationWorkspace .input-area > .topline:first-child p { color: #c0c3cc !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .studio-kicker,
  .completion-kicker,
  .workspace-kicker,
  .production-page-eyebrow,
  .comic-production-kicker
) { color: #ffad7a !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .studio-steps,
  .comic-production-steps,
  .fursuit-steps,
  .storybook-steps
) { border-color: #484b53 !important; background-color: #222327 !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .studio-steps > span,
  .comic-production-steps > button,
  .fursuit-steps > button,
  .storybook-steps > button
) { border-right-color: #484b53 !important; background-color: #222327 !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .studio-steps > span.active,
  .comic-production-steps > button.active,
  .fursuit-steps > button.active,
  .storybook-steps > button.active
) { color: #ffad7a !important; background-color: #1a1b1f !important; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 1) !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .studio-panel,
  .comic-production-panel,
  .completion-panel,
  .fursuit-screen,
  .product-refresh-step,
  .workflow-block,
  .paw-step,
  .storybook-screen,
  .eye-piece-step,
  .etsy-pricing-panel,
  .customer-audit-step,
  .admin-panel
) { border-color: #484b53 !important; background-color: #222327 !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .completion-panel-head,
  .fursuit-section-head,
  .product-refresh-step-head,
  .block-heading,
  .paw-step-head,
  .storybook-section-head,
  .eye-piece-step-heading,
  .etsy-pricing-panel-head,
  .customer-audit-step-head
) h3 { color: #f0f0f2 !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .completion-panel-head,
  .fursuit-section-head,
  .product-refresh-step-head,
  .block-heading,
  .paw-step-head,
  .storybook-section-head,
  .eye-piece-step-heading,
  .etsy-pricing-panel-head,
  .customer-audit-step-head
) p { color: #c0c3cc !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .completion-step,
  .product-refresh-step-head > span,
  .fursuit-section-head > span,
  .eye-piece-step-heading > b,
  .etsy-pricing-panel-head > b,
  .customer-audit-step-head > b
) { border-color: hsl(194 37% 38%) !important; color: #ffad7a !important; background-color: #1a1b1f !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(input, select, textarea) { border-color: #484b53 !important; background-color: #222327; }
:where(:root[data-theme="dark"]) .unified-workspace :is(input, select, textarea):focus { border-color: #f1641e !important; outline-color: rgba(241, 100, 30, 0.13) !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .production-action-bar,
  .fursuit-screen-actions,
  .product-refresh-generate,
  .storybook-screen-actions,
  .eye-piece-actions,
  .customer-audit-action-row
) { border-top-color: #484b53 !important; background-color: #222327 !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .production-task-center,
  .studio-history,
  .comic-production-side > section,
  .completion-side > section,
  .fursuit-side > section,
  .product-refresh-history,
  .competitor-history,
  .paw-custom-task-panel,
  .storybook-history-section,
  .eye-piece-history,
  .customer-audit-history
) { border-color: #484b53 !important; background-color: #222327 !important; }
:where(:root[data-theme="dark"]) .unified-workspace :is(
  .comic-empty,
  .completion-empty,
  .fursuit-empty,
  .customer-audit-empty
) { border-color: #484b53 !important; color: #c0c3cc !important; background-color: #27292e !important; }
:where(:root[data-theme="dark"]) .feature-module-status { border-color: #484b53; background-color: #222327; color: #f0f0f2; }
:where(:root[data-theme="dark"]) .feature-module-status p { color: #c0c3cc; }
:where(:root[data-theme="dark"]) .feature-module-status[data-state="error"] { border-color: hsl(4 48% 38%); background-color: #222327; }
:where(:root[data-theme="dark"]) .feature-module-status[data-state="error"] strong { color: hsl(3 52% 76%); }
:where(:root[data-theme="dark"]) .feature-module-spinner { border-color: #484b53; border-top-color: #f1641e; }
}
/* WORKBENCH_DARK_THEME_END */
