/* detail-page-parity: content-area parity only. Public sidebar/topbar stay owned by p3-3-shell.css. */
.app.mode-product-listing.mode-detail-page-v1{
  --shell-sidebar-width:var(--rt-sidebar-width,248px);
  --shell-topbar-height:56px;
  --detail-workbench-width:448px;
  --detail-panel-width:400px;
}

.app.mode-product-listing.mode-detail-page-v1 .workspace{
  position:absolute;
  top:var(--shell-topbar-height);
  right:8px;
  bottom:24px;
  left:16px;
  width:auto;
  height:auto;
  min-height:0;
  display:grid;
  grid-template-columns:var(--detail-workbench-width) minmax(0,1fr);
  gap:0;
  padding:0;
  border:1px solid #292929;
  border-radius:12px;
  background:#151515;
  overflow:hidden;
}
.app.mode-product-listing.mode-detail-page-v1 .workspace > .gallery{display:none!important}

.app.mode-product-listing.mode-detail-page-v1 .workspace > .canvas{
  width:var(--detail-workbench-width);
  height:100%;
  min-height:0;
  padding:23px 24px 132px 23px;
  border:0;
  border-right:1px solid #292929;
  border-radius:0;
  background:#151515;
  overflow-y:auto;
  scrollbar-width:none;
}
.app.mode-product-listing.mode-detail-page-v1 .workspace > .canvas::-webkit-scrollbar{display:none}
.app.mode-product-listing.mode-detail-page-v1 .workspace > .canvas > #canvas{
  width:var(--detail-panel-width);
  height:auto;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
}
.app.mode-product-listing.mode-detail-page-v1 .feature{width:var(--detail-panel-width);max-width:none;margin:0;padding:0}
.app.mode-product-listing.mode-detail-page-v1 .feature-grid.wide.detail-page-workflow{display:block;width:var(--detail-panel-width)}
.app.mode-product-listing.mode-detail-page-v1 .feature-head,
.app.mode-product-listing.mode-detail-page-v1 .feature-summary{display:none!important}

.app.mode-product-listing.mode-detail-page-v1 .panel{
  width:var(--detail-panel-width);
  margin:0;
  padding:0;
  border:1px solid #303030;
  border-radius:12px;
  background:#181818;
  box-shadow:none;
  color:#e8e8e8;
}
.app.mode-product-listing.mode-detail-page-v1 .panel + .panel{margin-top:18px}
.app.mode-product-listing.mode-detail-page-v1 .panel h3{
  height:48px;
  min-height:48px;
  margin:0;
  padding:0 17px;
  border-bottom:1px solid #303030;
  background:#181818;
}
.app.mode-product-listing.mode-detail-page-v1 .listing-section-toggle{font-size:14px;font-weight:700;color:#eee}
.app.mode-product-listing.mode-detail-page-v1 .listing-section-count,
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-count{font-size:13px;color:#aaa}
.app.mode-product-listing.mode-detail-page-v1 .listing-section-body{padding:16px 17px}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-head{height:20px;margin:0 0 8px;font-size:14px}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-card{
  min-height:164px;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-grid{min-height:164px}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-list:empty{display:none}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-drop{
  min-height:164px;
  border:2px dashed #585858;
  border-radius:10px;
  background:#1c1c1c;
}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-cloud{margin-bottom:8px}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-drop strong{font-size:14px}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-drop > span{font-size:12px;color:#999}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-actions{margin-top:12px}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-drop > *{transform:translateY(-3px)}
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-file,
.app.mode-product-listing.mode-detail-page-v1 .listing-upload-library{
  height:32px;
  min-height:32px;
  padding:0 12px;
  border:1px solid #333;
  border-radius:7px;
  background:#292929;
  color:#eee;
}
.app.mode-product-listing.mode-detail-page-v1 .listing-split{gap:12px;margin-top:6px;padding-top:16px;border-top:1px solid #2c2c2c}
.app.mode-product-listing.mode-detail-page-v1 .listing-split{width:354px;grid-template-columns:171px 171px}
.app.mode-product-listing.mode-detail-page-v1 .listing-split .field,
.app.mode-product-listing.mode-detail-page-v1 .listing-split .listing-combobox,
.app.mode-product-listing.mode-detail-page-v1 .listing-split .listing-combobox-button{width:171px}
.app.mode-product-listing.mode-detail-page-v1 .field label{margin-bottom:10px;font-size:14px;color:#eee}
.app.mode-product-listing.mode-detail-page-v1 .listing-combobox-button{
  height:40px;
  min-height:40px;
  border:1px solid #2b2b2b;
  border-radius:8px;
  background:#171717;
  color:#eee;
  transform:translateY(-1px);
}

.app.mode-product-listing.mode-detail-page-v1 [data-listing-section="detail-style"] h3{justify-content:flex-start;gap:8px}
.app.mode-product-listing.mode-detail-page-v1 [data-listing-section="detail-style"] .listing-section-toggle{width:250px;flex:0 0 250px}
.app.mode-product-listing.mode-detail-page-v1 .listing-parse-button{
  width:96px;
  height:32px;
  min-height:32px;
  padding:0 12px;
  border:1px solid #555;
  border-radius:8px;
  background:#363636;
  color:#fff;
  white-space:nowrap;
  flex:0 0 96px;
}
.app.mode-product-listing.mode-detail-page-v1 .listing-parse-button span:last-child br{display:none}
.app.mode-product-listing.mode-detail-page-v1 .listing-points-card{
  margin-top:0;
  width:354px;
  padding:0;
  border:1px solid #242424;
  border-radius:9px;
  background:#1b1b1b;
  overflow:hidden;
}
.app.mode-product-listing.mode-detail-page-v1 .listing-points-head{height:44px;padding:0 11px;border-bottom:1px solid #303030}
.app.mode-product-listing.mode-detail-page-v1 .listing-ai-button{height:24px;min-height:24px;padding:0 10px;border-radius:6px;background:#303030}
.app.mode-product-listing.mode-detail-page-v1 .listing-points-card .textarea{
  width:330px;
  height:118px;
  min-height:118px;
  margin:0 12px;
  padding:12px;
  border:0;
  border-radius:0;
  background:#1b1b1b;
  color:#ddd;
  resize:none;
  font-size:14px;
  line-height:1.6;
}
.app.mode-product-listing.mode-detail-page-v1 .listing-points-card + .field{margin-top:16px}
.app.mode-product-listing.mode-detail-page-v1 .chips{gap:0;padding:0 5px}
.app.mode-product-listing.mode-detail-page-v1 .chips .chip{
  width:160px;
  height:32px;
  min-height:32px;
  justify-content:center;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent;
  color:#a8a8a8;
}
.app.mode-product-listing.mode-detail-page-v1 .chips .chip.active{border-bottom-color:#eee;background:transparent;color:#fff}
.app.mode-product-listing.mode-detail-page-v1 .listing-style-panel .empty-result{min-height:48px;padding:12px;border:0;background:#171717;color:#888}
.app.mode-product-listing.mode-detail-page-v1 .listing-toolbar .batch{width:100%;height:32px;border-radius:8px;background:#242424}

.app.mode-product-listing.mode-detail-page-v1 .detail-actions-section{display:none!important}
.app.mode-product-listing.mode-detail-page-v1 .detail-fixed-actions{
  position:fixed;
  left:296px;
  bottom:25px;
  z-index:55;
  width:400px;
  height:101px;
  display:block;
  margin:0;
  padding:16px 0 8px;
  border:0;
  border-top:1px solid #292929;
  border-radius:0;
  background:#151515;
  box-shadow:none;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-fixed-state,
.app.mode-product-listing.mode-detail-page-v1 #detailGenerateButton{display:none!important}
.app.mode-product-listing.mode-detail-page-v1 #detailPreviewButton{
  width:399px;
  height:40px;
  min-height:40px;
  border:1px solid #aaa;
  border-radius:7px;
  background:#aaa;
  color:#171717;
  font-size:14px;
  font-weight:600;
  margin-left:1px;
}
.app.mode-product-listing.mode-detail-page-v1 #detailPreviewButton:disabled{border-color:#aaa;background:#aaa;color:#555;opacity:1}
.app.mode-product-listing.mode-detail-page-v1 #detailPreviewButton:focus,
.app.mode-product-listing.mode-detail-page-v1 #detailPreviewButton:focus-visible{outline:none;box-shadow:none}
.app.mode-product-listing.mode-detail-page-v1 .detail-fixed-actions .listing-preview-reason{
  height:20px;
  margin-top:8px;
  color:#999;
  text-align:center;
  font-size:12px;
  line-height:20px;
}

.app.mode-product-listing.mode-detail-page-v1 .workspace > .history{
  width:auto!important;
  max-width:none!important;
  min-width:0;
  height:100%;
  min-height:0;
  padding:16px 16px 64px;
  border:0;
  border-radius:0;
  background:#151515;
  overflow:auto;
  scrollbar-width:none;
  color:#eee;
}
.app.mode-product-listing.mode-detail-page-v1 .workspace > .history::-webkit-scrollbar{display:none}
.app.mode-product-listing.mode-detail-page-v1 .detail-right-rail{display:block;min-height:100%}
.app.mode-product-listing.mode-detail-page-v1 .detail-right-head{height:40px;justify-content:flex-start}
.app.mode-product-listing.mode-detail-page-v1 .detail-right-head > .badge{display:none}
.app.mode-product-listing.mode-detail-page-v1 .detail-right-tabs{
  height:40px;
  display:flex;
  gap:0;
  padding:4px;
  border:0;
  border-radius:8px;
  background:#1f1f1f;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-right-tabs .chip{
  height:32px;
  min-height:32px;
  padding:0 12px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#aaa;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-right-tabs .chip.active{background:#292929;color:#fff}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-menu{
  width:28px;
  height:32px;
  padding:0;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--rt-muted);
  cursor:pointer;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-list{display:block;background:transparent}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-card,
.app.mode-product-listing.mode-detail-page-v1 .detail-history-card.generated-result{
  width:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-preview,
.app.mode-product-listing.mode-detail-page-v1 .detail-history-card.generated-result .detail-history-preview{
  width:100%;
  height:auto;
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-preview .detail-result-flow{padding:0;background:transparent}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-preview .detail-original-stage{
  min-height:0;
  padding:14px 0 0;
  border:0;
  border-radius:0;
  background:transparent;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-preview .detail-original-intro{display:none}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-preview .detail-original-long-grid{
  width:870px;
  max-width:none;
  grid-template-columns:repeat(4,198px);
  gap:26px;
  transform:translateX(7px);
}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-preview .detail-original-sheet{width:198px;height:458px;min-height:0}
.app.mode-product-listing.mode-detail-page-v1 .detail-history-body{margin-top:18px;border:1px solid #2b2b2b;background:#181818;color:#ddd}
.app.mode-product-listing.mode-detail-page-v1 #statusPanel{border:0;background:transparent}
.app.mode-product-listing.mode-detail-page-v1 .detail-original-stage{gap:0;padding:0}
.app.mode-product-listing.mode-detail-page-v1 .detail-original-intro{
  margin:76px auto 24px;
  padding:0;
  border:0;
  background:transparent;
  text-align:center;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-original-intro strong{display:block;margin:0 0 8px;color:#f1f1f1;font-size:28px;line-height:1.2}
.app.mode-product-listing.mode-detail-page-v1 .detail-original-intro p{margin:0;color:#999;font-size:16px;line-height:1.5}
.app.mode-product-listing.mode-detail-page-v1 .detail-original-long-grid{
  display:grid;
  width:870px;
  grid-template-columns:repeat(4,198px);
  justify-content:center;
  align-items:start;
  gap:26px;
  transform:translateX(7px);
}
.app.mode-product-listing.mode-detail-page-v1 .detail-original-sheet{
  width:198px;
  height:458px;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:#eee;
  overflow:hidden;
  box-shadow:none;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-original-sheet-art{
  width:100%;
  height:100%;
  min-height:0;
  padding:0;
  background:#eee;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-original-sheet-art > :not(.detail-p4-raster-image){display:none!important}
.app.mode-product-listing.mode-detail-page-v1 .detail-p4-raster-image{
  position:static;
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:top center;
  opacity:1;
  filter:none;
}

.app.mode-product-listing.mode-detail-page-v1 .detail-asset-picker{
  top:122px;
  left:576px;
  width:768px;
  height:575px;
  max-height:none;
  transform:none;
  border-radius:12px;
  padding:0;
  overflow:hidden;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-head{
  height:53px;
  padding:0 24px;
  border-bottom:1px solid #292929;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-head strong{font-size:18px}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-head .asset-btn{
  width:28px;
  height:28px;
  min-height:28px;
  padding:0;
  border:0;
  background:transparent;
  font-size:22px;
  font-weight:400;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-tabs{
  height:49px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 16px;
  border-bottom:1px solid #292929;
  white-space:nowrap;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-tabs > span{
  height:32px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:7px;
  color:#aaa;
  font-size:14px;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-tabs > span.active{background:#292929;color:#fff}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-tabs > span:nth-last-child(2){margin-left:auto}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-grid{
  height:402px;
  display:grid;
  grid-template-columns:repeat(6,116px);
  grid-auto-rows:116px;
  gap:8px;
  padding:24px 16px 14px;
  overflow:hidden;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-item{
  width:116px;
  height:116px;
  min-height:116px;
  padding:0;
  border:1px solid #292929;
  border-radius:8px;
  overflow:hidden;
  background:#242424;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-upload-tile,
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-skeleton{
  width:116px;
  height:116px;
  min-height:116px;
  border-radius:8px;
  background:#242424;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-upload-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0;
  border:1px dashed #666;
  color:#d4d4d4;
  font-size:14px;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-upload-icon{
  font-size:28px;
  line-height:1;
  color:#bdbdbd;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-skeleton{
  display:block;
  border:1px solid #292929;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-item img{
  width:100%;
  height:100%;
  aspect-ratio:auto;
  border-radius:7px;
  object-fit:cover;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-item > span{display:none}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-footer{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  height:69px;
  min-height:69px;
  margin:0;
  padding:0 24px;
  border-top:1px solid #292929;
  background:#1c1c1c;
}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-footer > span{visibility:hidden}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-footer .asset-btn,
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-footer .batch{height:36px;min-height:36px;border-radius:7px}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-footer .batch{background:#aaa;color:#222}
.app.mode-product-listing.mode-detail-page-v1 .detail-picker-footer .batch:disabled{background:#aaa;color:#555;opacity:1}

@media(max-width:1500px){
  .app.mode-product-listing.mode-detail-page-v1 .detail-original-long-grid{grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}
  .app.mode-product-listing.mode-detail-page-v1 .detail-original-sheet{width:100%}
}
