/* ============================================================
   复刻工作台 · 原生视图样式（待办C）
   抽取自 runow.css(rep-*) + runow-ref.css，仅服务主站 #/replica 原生渲染
   ============================================================ */

/* ===== 复刻工作台（对标 RunningHub × Hypit · 2026-11-05 重写：单一定义、无 !important） ===== */
.rep-app{display:flex;flex-direction:column;gap:14px}

/* 顶部活动条 */
.rep-banner{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;
  background:linear-gradient(90deg,rgba(180,75,255,.12),rgba(120,90,255,.10));
  border:1px solid rgba(255,255,255,.10);font-size:13px}
.rep-banner__copy{display:flex;align-items:center;gap:8px;min-width:0}
.rep-dot{width:7px;height:7px;border-radius:50%;background:#5ef2a4;box-shadow:0 0 8px #5ef2a4;flex:none}
.rep-banner__sub{color:var(--studio-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-clock{display:flex;align-items:center;gap:8px;margin-left:auto}
.rep-clock__label{font-size:12px;color:var(--studio-dim)}
.rep-clock__digits{display:flex;gap:6px}
.rep-clock__part{display:flex;align-items:baseline;gap:2px;padding:2px 7px;border-radius:8px;background:rgba(0,0,0,.35)}
.rep-clock__part b{font-size:14px;font-variant-numeric:tabular-nums}
.rep-clock__part i{font-style:normal;font-size:11px;color:var(--studio-dim)}
.rep-banner__cta{padding:6px 14px;border-radius:999px;border:0;cursor:pointer;font-size:12.5px;font-weight:600;
  background:#b44bff;color:#111;flex:none}
.rep-banner__close{border:0;background:none;color:var(--studio-dim);font-size:13px;cursor:pointer;line-height:1;flex:none}

/* 布局 */
.rep-stage{display:flex;gap:18px;align-items:flex-start;width:100%;box-sizing:border-box}
.rep-home{display:flex;gap:20px;align-items:flex-start;width:100%}
.rep-rail{width:352px;flex:none;display:flex;flex-direction:column;
  max-height:calc(100vh - 190px);overflow-y:auto;padding-right:4px}
.rep-showcase{flex:1;min-width:0;display:flex;flex-direction:column;padding:20px 24px;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:18px;min-height:520px}

/* 左栏：特性视频 / 上传 / 素材 / 指令 */
.rep-feature-card{position:relative;height:172px;border-radius:14px;overflow:hidden;
  margin-bottom:12px;background:#141418;cursor:pointer}
.rep-feature-card__media{width:100%;height:100%;object-fit:cover;display:block}
.rep-feature-card__overlay{position:absolute;left:0;right:0;bottom:0;padding:14px 16px;
  background:linear-gradient(transparent,rgba(0,0,0,.82));pointer-events:none}
.rep-feature-card__overlay strong{display:block;font-size:17px;font-weight:700;margin-bottom:3px}
.rep-feature-card__overlay span{font-size:12.5px;color:rgba(255,255,255,.75)}

.rep-upload{border:1px dashed rgba(255,255,255,.16);border-radius:14px;padding:16px;
  text-align:center;cursor:pointer;margin-bottom:12px;transition:border-color .18s,background .18s}
.rep-upload:hover{border-color:rgba(180,75,255,.6);background:rgba(180,75,255,.04)}
.rep-upload.is-filled{border-style:solid;border-color:rgba(180,75,255,.45)}
.rep-upload__icon{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;margin:0 auto 8px;font-size:13px}
.rep-upload__title{font-size:14px;font-weight:600;margin-bottom:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-upload__hint{font-size:12px;color:var(--studio-dim)}

.rep-assets{border:1px dashed rgba(255,255,255,.16);border-radius:14px;padding:12px 14px;margin-bottom:16px}
.rep-assets__head{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:none;
  color:inherit;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-align:left}
.rep-assets__head b{width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-weight:400;font-size:15px;flex:none}
.rep-assets__row{display:flex;align-items:center;gap:8px;overflow-x:auto;margin-top:10px}
.rep-add{flex:none;width:46px;height:46px;border-radius:10px;border:1px dashed rgba(255,255,255,.2);
  background:transparent;color:rgba(255,255,255,.6);cursor:pointer;font-size:18px;line-height:1}
.rep-thumb{position:relative;flex:none;width:46px;height:46px;border-radius:10px;overflow:hidden;background:#1a1a1f}
.rep-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rep-thumb button{position:absolute;top:0;right:0;width:16px;height:16px;border:0;padding:0;
  border-radius:0 0 0 6px;background:rgba(0,0,0,.66);color:#fff;font-size:10px;line-height:16px;cursor:pointer}
.rep-assets__hint{font-size:12px;color:var(--studio-dim);margin-top:8px}

.rep-prompt label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.rep-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.rep-chip{padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);color:inherit;font:inherit;font-size:12px;line-height:1.4;
  cursor:pointer;transition:border-color .16s,background .16s}
.rep-chip:hover{border-color:rgba(180,75,255,.55);background:rgba(180,75,255,.08)}
.rep-prompt textarea{width:100%;box-sizing:border-box;padding:12px;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);color:inherit;
  font:inherit;font-size:13px;line-height:1.6;resize:vertical;min-height:96px}
.rep-prompt textarea::placeholder{color:rgba(255,255,255,.35)}
.rep-start{width:100%;margin-top:14px;padding:12px;font-size:15px}
.rep-free-note{display:flex;align-items:flex-start;gap:8px;margin-top:12px;
  font-size:12px;line-height:1.5;color:var(--studio-dim)}
.rep-free-tag{flex:none;padding:2px 6px;border-radius:4px;background:#b44bff;color:#000;
  font-size:11px;font-weight:600}

/* 右栏：Tab + 演示 */
.rep-tabs{display:flex;gap:10px;margin-bottom:18px;flex:none}
.rep-tabs span{display:inline-flex;align-items:center;gap:6px;padding:7px 15px;border-radius:999px;
  font-size:13.5px;color:rgba(255,255,255,.62);cursor:pointer;transition:background .18s,color .18s}
.rep-tabs span:hover{color:#fff;background:rgba(255,255,255,.07)}
.rep-tabs span.is-active{background:#f4f4f4;color:#111;font-weight:600}

.rep-demo{flex:1;display:flex;flex-direction:column;justify-content:center}
.rep-demo__title{font-size:32px;line-height:1.25;font-weight:700;margin:0 0 10px}
.rep-demo__subtitle{font-size:13.5px;line-height:1.7;color:var(--studio-dim);margin:0 0 24px;max-width:760px}
.rep-demo__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rep-demo-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.rep-demo-card__media{aspect-ratio:16/10;background:#000;overflow:hidden}
.rep-demo-card__media img,.rep-demo-card__media video{width:100%;height:100%;object-fit:cover;display:block}
.rep-demo-card__body{display:flex;gap:10px;padding:12px 14px 16px;align-items:flex-start}
.rep-demo-card__num{flex:none;padding-top:2px;font-size:12px;font-weight:700;
  color:rgba(255,255,255,.5);font-variant-numeric:tabular-nums}
.rep-demo-card__text{min-width:0}
.rep-demo-card__text strong{display:block;font-size:14px;margin-bottom:6px}
.rep-demo-card__text span{font-size:12px;line-height:1.6;color:var(--studio-dim)}
.rep-demo__dots{display:flex;justify-content:center;gap:6px;margin-top:22px}
.rep-demo__dots span{width:22px;height:4px;border-radius:2px;background:rgba(255,255,255,.2)}
.rep-demo__dots span.is-active{background:#fff}

/* 轮播（2 页：演示视频 / 三步流程） */
.rep-demo__viewport{overflow:hidden;touch-action:pan-y;border-radius:18px;outline:none;cursor:grab}
.rep-demo__viewport:active{cursor:grabbing}
.rep-demo__viewport:focus-visible{outline:2px solid rgba(180,75,255,.55);outline-offset:6px}
.rep-demo__track{display:flex;transition:transform .32s cubic-bezier(.4,0,.2,1);will-change:transform}
.rep-slide{flex:0 0 100%;min-width:0;padding:1px}
.rep-slide:not(.is-active){pointer-events:none}
.rep-demo__stage{position:relative;border-radius:16px;overflow:hidden;background:#000;
  margin-bottom:18px;border:1px solid rgba(255,255,255,.07)}
.rep-demo__video{width:100%;aspect-ratio:854/480;max-height:360px;object-fit:cover;display:block}
.rep-demo__dots button{width:22px;height:4px;border-radius:2px;border:0;padding:0;cursor:pointer;
  background:rgba(255,255,255,.2);transition:background .18s}
.rep-demo__dots button.is-active{background:#fff}
.rep-demo__dots button:hover{background:rgba(255,255,255,.45)}
.rep-demo__dots button.is-active:hover{background:#fff}

/* 对话态 */
.rep-chat{flex:1 1 56%;min-width:0;display:flex;flex-direction:column;gap:10px;padding:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px}
.rep-chat__head{display:flex;align-items:center;gap:10px}
.rep-chat__head h2{margin:0;font-size:15px}
.rep-link{margin-left:auto;border:0;background:none;color:var(--studio-dim);font-size:12px;cursor:pointer}
.rep-thread{display:flex;flex-direction:column;max-height:44vh;overflow-y:auto;padding-right:4px}
.rep-empty{font-size:13px;color:var(--studio-dim);padding:8px 0;margin:0}
.rep-ask{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.12)}
.rep-ask__label{font-size:13px;color:var(--studio-dim)}
.rep-ask textarea{width:100%;box-sizing:border-box;padding:0;border:0;background:transparent;color:inherit;
  font:inherit;font-size:13.5px;line-height:1.6;resize:vertical;min-height:64px;outline:none}
.rep-ask__foot{display:flex;gap:10px;justify-content:flex-end}
.rep-res{flex:1 1 44%;min-width:0;display:flex;flex-direction:column;padding:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px}
.rep-res__tabs{display:flex;gap:16px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.rep-res__tabs button{padding:8px 2px;border:0;border-bottom:2px solid transparent;background:none;
  color:var(--studio-dim);font-size:13px;cursor:pointer}
.rep-res__tabs button.is-active{color:inherit;border-bottom-color:#b44bff}
.rep-res .rep-demo__title{font-size:22px}
.rep-res .rep-demo__cards{grid-template-columns:1fr}

/* 作品列表 */
.rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.rep-card{display:flex;flex-direction:column;gap:4px;padding:10px;text-align:left;border-radius:12px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.08);color:inherit;cursor:pointer}
.rep-card.is-active{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.06)}
.rep-card b{font-size:13px}
.rep-card span{font-size:11px;color:var(--studio-dim);overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical}
.rep-card i{font-style:normal;font-size:10px;color:var(--studio-dim)}
.rep-card--new{align-items:center;justify-content:center;border-style:dashed;min-height:92px}

@media (max-width:1180px){
  .rep-demo__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rep-demo__cards .rep-demo-card:nth-child(3){grid-column:span 2}
}
@media (max-width:860px){
  .rep-home{flex-direction:column}
  .rep-rail{width:100%;max-height:none;overflow:visible}
  .rep-demo__cards{grid-template-columns:1fr}
  .rep-demo__cards .rep-demo-card:nth-child(3){grid-column:auto}
  .rep-stage{flex-direction:column}
  .rep-chat,.rep-res{flex:1 1 auto;width:100%}
}

/* ============================================================
   runow-ref.css — 严格对齐 runninghub.cn/runow/hypit 尺寸
   数据来源：对标站 index-D1NMX88f.css + 实测回归
   实测（对标）：.replica-demo 宽度随右栏高度线性变化
     右栏高 845 → demo 933×525
     右栏高 703 → demo 680×382
     右栏高 569 → demo 471×265
   拟合：demo_w ≈ 1.7778 × 右栏高 − 569，右栏高 ≈ min(100dvh − 164, 845)
   第 2 页三步组：宽度 = 94%（上限 1200），比单个演示大得多
   ============================================================ */

/* ---------- 两栏：360 | 20 | 1fr，左右同高 ---------- */
.rep-home{display:flex;gap:20px;align-items:stretch;width:100%}
.rep-rail{width:360px;flex:none;display:flex;flex-direction:column;gap:12px;
  padding:16px;height:clamp(440px,100dvh - 90px,900px);max-height:none;overflow-y:auto;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:18px}

/* ---------- 左上角特性视频：flex 1.15 / 最小 145，完整不裁切 ---------- */
.rep-feature-card{flex:1.15 0 145px;height:auto;min-height:145px;max-height:none;
  margin-bottom:0;border-radius:12px;overflow:hidden}
.rep-feature-card__media{width:100%;height:100%;object-fit:cover;display:block}
.rep-feature-card__overlay{bottom:14px;left:14px;right:14px;padding:0;background:none}
.rep-feature-card__overlay strong{font-size:18px;font-weight:600;line-height:1.3;margin-bottom:5px}
.rep-feature-card__overlay span{font-size:12px;line-height:1.5;opacity:.8}

/* ---------- 上传 / 素材 ---------- */
.rep-upload{flex:.7 0 92px;min-height:92px;margin-bottom:0;border-radius:13px;padding:8px 12px;
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}
.rep-upload__icon{width:30px;height:30px;margin:0 auto 2px;font-size:11px}
.rep-upload__title{font-size:13px;font-weight:500}
.rep-assets{flex:none;margin-bottom:0;border-radius:13px;padding:10px 12px}

/* ---------- 指令框：flex 1.45 / 最小 210 ---------- */
.rep-prompt{flex:1.45 0 210px;min-height:210px;display:flex;flex-direction:column;margin-bottom:0}
.rep-prompt label{font-size:13px;font-weight:500;margin-bottom:10px}
.rep-prompt textarea{flex:auto;min-height:78px;padding:12px;line-height:1.7;border-radius:12px}
.rep-chips{display:none}
.rep-start{flex:none;width:100%;height:46px;border-radius:11px;margin:10px 0 0;font-weight:600}
.rep-free-note{flex:none;margin-top:8px}

/* ---------- 右栏面板 ---------- */
.rep-showcase{flex:1;min-width:0;height:clamp(440px,100dvh - 90px,900px);min-height:0;
  display:flex;flex-direction:column;gap:12px;padding:16px 18px 20px;position:relative;overflow:hidden;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:20px}
.rep-res__tabs{position:static;inset:auto;z-index:auto;margin:0;border-bottom:0;padding:0;background:none}

/* ---------- 轮播骨架 ---------- */
.rep-demo{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.rep-demo__viewport{overflow:hidden;touch-action:pan-y;border-radius:16px;outline:none;cursor:grab}
.rep-demo__track{display:flex;align-items:center;transition:transform .32s cubic-bezier(.4,0,.2,1);will-change:transform}
.rep-slide{flex:0 0 100%;min-width:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;padding:0}
.rep-slide:not(.is-active){pointer-events:none}

/* ---------- 第 1 页：单个演示视频（小） ---------- */
.rep-demo__stage{max-width:none;margin:0 auto;border-radius:16px;overflow:hidden;background:#000;border:0;
  width:max(260px, min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px)))}
.rep-demo__video{width:100%;height:auto;aspect-ratio:854/480;max-height:none;object-fit:contain;display:block}

.rep-demo__title{font-size:clamp(22px,1.9vw,28px);font-weight:600;line-height:1.2;
  letter-spacing:-.5px;text-align:center;margin:18px auto 8px;width:min(94%,960px)}
.rep-demo__subtitle{font-size:13px;line-height:1.8;color:var(--studio-dim);
  text-align:center;margin:0 auto;max-width:760px;width:min(94%,960px)}

/* ---------- 第 2 页：三步组（大，94% / 上限 1200） ---------- */
.rep-slide:last-child .rep-demo__title,
.rep-slide:last-child .rep-demo__subtitle{width:min(94%,1200px)}
.rep-slide:last-child .rep-demo__title{margin-top:0;font-size:clamp(24px,2.25vw,36px);margin-bottom:14px}
.rep-demo__cards{width:min(94%,1200px);margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(12px,1.8vw,28px)}
.rep-demo-card{border-radius:12px}
.rep-demo-card__media{aspect-ratio:16/9;border-radius:12px}
.rep-demo-card__body{padding:14px 2px 0}
.rep-demo-card__text strong{font-size:clamp(13px,1.1vw,18px);font-weight:600;line-height:1.55}
.rep-demo-card__text span{font-size:13px;line-height:1.8}

/* ---------- 轮播点（2026-11-06 调小：点 5px、当前点 12×5 胶囊） ---------- */
.rep-demo__dots{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:14px;min-height:16px}
.rep-demo__dots button{position:relative;width:16px;height:16px;padding:0;border:0;border-radius:8px;
  background:none;cursor:pointer}
.rep-demo__dots button::after{content:"";position:absolute;top:50%;left:6px;width:5px;height:5px;
  margin-top:-2.5px;border-radius:10px;background:rgba(255,255,255,.28);transition:width .2s,left .2s,background .2s}
.rep-demo__dots button.is-active::after{width:12px;left:2px;background:rgba(255,255,255,.92)}
.rep-demo__dots button:hover::after{background:rgba(255,255,255,.55)}
.rep-demo__dots button.is-active:hover::after{background:#fff}

/* ---------- 复刻页占满视口（对标 .stage width:min(100%,2048px)） ---------- */
#view:has(.rep-app){max-width:none;width:100%;padding-left:16px;padding-right:16px}
.rep-app{max-width:none;width:100%}
.rep-home{max-width:none;width:100%}

/* ---------- 响应式 ---------- */
@media (height<=760px){
  .rep-demo__stage{width:max(240px, min(94%, calc(1.7778 * min(100dvh - 150px, 845px) - 540px)))}
  .rep-demo__title{margin-top:14px;margin-bottom:6px}
  .rep-demo-card__text span{font-size:12px}
}
@media (width<=1100px){
  .rep-rail{width:320px}
  .rep-demo__stage{width:min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px))}
}

/* ---------- 主站内嵌原生（待办C）：适配主站顶栏与内容区 ---------- */
#view:has(.rep-app){max-width:none;width:100%}
#view:has(.rep-app) .rep-rail,
#view:has(.rep-app) .rep-showcase{height:clamp(440px,100dvh - 168px,900px)}
#view:has(.rep-app) .rep-thread{max-height:42vh}

/* ---------- 2026-11-06 修复：素材预览 + 时长/清晰度选择 ---------- */
.rep-upload__video{width:100%;max-height:150px;border-radius:10px;background:#000;display:block;margin-bottom:8px;object-fit:contain}
.rep-spec{border:1px solid rgba(255,255,255,.09);border-radius:13px;padding:10px 12px;margin-bottom:14px;background:rgba(255,255,255,.02)}
.rep-spec__row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.rep-spec__row:last-of-type{margin-bottom:0}
.rep-spec__label{flex:none;width:44px;font-size:12px;color:var(--studio-dim)}
.rep-spec__opts{display:flex;flex-wrap:wrap;gap:6px}
.rep-spec__btn{padding:4px 9px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);color:inherit;font:inherit;font-size:12px;cursor:pointer;transition:border-color .15s,background .15s}
.rep-spec__btn:hover{border-color:rgba(180,75,255,.55)}
.rep-spec__btn.is-on{background:#b44bff;border-color:#b44bff;color:#111;font-weight:600}
.rep-spec__tip{margin:8px 0 0;font-size:11px;line-height:1.5;color:var(--studio-dim)}

/* ============================================================
   2026-11-06 v704：黑底 / 底部空白 / 模块可见性 / 品牌字
   ============================================================ */
/* 1) 参考视频不再整块黑底：等比裁切 + 透明底 + 限高 */
.rep-upload__video{width:100%;height:104px;max-height:104px;object-fit:cover;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:10px;display:block;margin:0 0 6px}
.rep-upload.is-filled{flex:0 0 auto;min-height:0;padding:10px 12px;gap:5px}
.rep-upload.is-filled .rep-upload__icon{display:none}
.rep-upload.is-filled .rep-upload__title{font-size:12.5px}
.rep-upload.is-filled .rep-upload__hint{font-size:11px}

/* 2) 去掉强行撑高造成的底部空白 */
.rep-app{min-height:0}
.rep-home{min-height:0}
.rep-rail{padding-bottom:0;gap:10px}

/* 3) 左栏收紧：模板/技能/Agent + 指令区尽量同屏 */
.rep-feature-card{flex:0 0 128px;min-height:128px}
.rep-upload{flex:0 0 84px;min-height:84px}
.rep-assets{padding:8px 12px}
.rep-spec{padding:8px 12px;margin-bottom:0}
.rep-spec__row{margin-bottom:6px}
.rep-spec__tip{margin:6px 0 0;font-size:10.5px}
.rep-prompt{flex:1 1 auto;min-height:130px}
.rep-prompt label{margin-bottom:6px}
.rep-prompt textarea{min-height:62px}
.rep-actions{background:#0d0d11;padding-top:8px}

/* 4) 模块块更紧凑 */
.rep-mod{margin-top:0;padding:8px 10px 10px}
.rep-mod__head{margin:4px 0 6px}
.rep-mod__tpl{flex:0 0 64px;height:50px}
.rep-mod__chip{padding:4px 10px;font-size:11px}

/* 5) 右栏内容顶部对齐，不再垂直居中留白 */
.rep-demo{justify-content:flex-start;gap:10px}
.rep-showcase{padding-bottom:14px}

/* 6) 品牌字：单行横排、完整不裁切 */
.studio-brand__word{flex-direction:row;flex-wrap:nowrap;white-space:nowrap;
  gap:2px;letter-spacing:0;max-width:100%}
.studio-brand__word b{font-size:14px}
.studio-brand__word i{font-size:11px}

/* 7) 右栏演示区：放大预览、留白居中分散（v704c） */
.rep-demo{justify-content:center}
.rep-demo__stage{width:min(94%, calc(1.7778 * (100dvh - 190px)))}
.rep-demo__title{margin-top:14px}

/* 8) 面板吃满可视高度（v704d） */
#view:has(.rep-app) .rep-rail,
#view:has(.rep-app) .rep-showcase{height:clamp(440px, 100dvh - 96px, 900px)}

/* 9) 预览区底色柔化（v704e）：视频未出帧时不再是整块纯黑 */
.rep-demo__stage{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.rep-demo-card__media{background:rgba(255,255,255,.035)}
.rep-demo__video{background:transparent}
/* ============================================================
   复刻工作台 · 原生视图样式（待办C）
   抽取自 runow.css(rep-*) + runow-ref.css，仅服务主站 #/replica 原生渲染
   ============================================================ */

/* ===== 复刻工作台（对标 RunningHub × Hypit · 2026-11-05 重写：单一定义、无 !important） ===== */
.rep-app{display:flex;flex-direction:column;gap:14px}

/* 顶部活动条 */
.rep-banner{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;
  background:linear-gradient(90deg,rgba(180,75,255,.12),rgba(120,90,255,.10));
  border:1px solid rgba(255,255,255,.10);font-size:13px}
.rep-banner__copy{display:flex;align-items:center;gap:8px;min-width:0}
.rep-dot{width:7px;height:7px;border-radius:50%;background:#5ef2a4;box-shadow:0 0 8px #5ef2a4;flex:none}
.rep-banner__sub{color:var(--studio-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-clock{display:flex;align-items:center;gap:8px;margin-left:auto}
.rep-clock__label{font-size:12px;color:var(--studio-dim)}
.rep-clock__digits{display:flex;gap:6px}
.rep-clock__part{display:flex;align-items:baseline;gap:2px;padding:2px 7px;border-radius:8px;background:rgba(0,0,0,.35)}
.rep-clock__part b{font-size:14px;font-variant-numeric:tabular-nums}
.rep-clock__part i{font-style:normal;font-size:11px;color:var(--studio-dim)}
.rep-banner__cta{padding:6px 14px;border-radius:999px;border:0;cursor:pointer;font-size:12.5px;font-weight:600;
  background:#b44bff;color:#111;flex:none}
.rep-banner__close{border:0;background:none;color:var(--studio-dim);font-size:13px;cursor:pointer;line-height:1;flex:none}

/* 布局 */
.rep-stage{display:flex;gap:18px;align-items:flex-start;width:100%;box-sizing:border-box}
.rep-home{display:flex;gap:20px;align-items:flex-start;width:100%}
.rep-rail{width:352px;flex:none;display:flex;flex-direction:column;
  max-height:calc(100vh - 190px);overflow-y:auto;padding-right:4px}
.rep-showcase{flex:1;min-width:0;display:flex;flex-direction:column;padding:20px 24px;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:18px;min-height:520px}

/* 左栏：特性视频 / 上传 / 素材 / 指令 */
.rep-feature-card{position:relative;height:172px;border-radius:14px;overflow:hidden;
  margin-bottom:12px;background:#141418;cursor:pointer}
.rep-feature-card__media{width:100%;height:100%;object-fit:cover;display:block}
.rep-feature-card__overlay{position:absolute;left:0;right:0;bottom:0;padding:14px 16px;
  background:linear-gradient(transparent,rgba(0,0,0,.82));pointer-events:none}
.rep-feature-card__overlay strong{display:block;font-size:17px;font-weight:700;margin-bottom:3px}
.rep-feature-card__overlay span{font-size:12.5px;color:rgba(255,255,255,.75)}

.rep-upload{border:1px dashed rgba(255,255,255,.16);border-radius:14px;padding:16px;
  text-align:center;cursor:pointer;margin-bottom:12px;transition:border-color .18s,background .18s}
.rep-upload:hover{border-color:rgba(180,75,255,.6);background:rgba(180,75,255,.04)}
.rep-upload.is-filled{border-style:solid;border-color:rgba(180,75,255,.45)}
.rep-upload__icon{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;margin:0 auto 8px;font-size:13px}
.rep-upload__title{font-size:14px;font-weight:600;margin-bottom:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-upload__hint{font-size:12px;color:var(--studio-dim)}

.rep-assets{border:1px dashed rgba(255,255,255,.16);border-radius:14px;padding:12px 14px;margin-bottom:16px}
.rep-assets__head{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:none;
  color:inherit;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-align:left}
.rep-assets__head b{width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-weight:400;font-size:15px;flex:none}
.rep-assets__row{display:flex;align-items:center;gap:8px;overflow-x:auto;margin-top:10px}
.rep-add{flex:none;width:46px;height:46px;border-radius:10px;border:1px dashed rgba(255,255,255,.2);
  background:transparent;color:rgba(255,255,255,.6);cursor:pointer;font-size:18px;line-height:1}
.rep-thumb{position:relative;flex:none;width:46px;height:46px;border-radius:10px;overflow:hidden;background:#1a1a1f}
.rep-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rep-thumb button{position:absolute;top:0;right:0;width:16px;height:16px;border:0;padding:0;
  border-radius:0 0 0 6px;background:rgba(0,0,0,.66);color:#fff;font-size:10px;line-height:16px;cursor:pointer}
.rep-assets__hint{font-size:12px;color:var(--studio-dim);margin-top:8px}

.rep-prompt label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.rep-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.rep-chip{padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);color:inherit;font:inherit;font-size:12px;line-height:1.4;
  cursor:pointer;transition:border-color .16s,background .16s}
.rep-chip:hover{border-color:rgba(180,75,255,.55);background:rgba(180,75,255,.08)}
.rep-prompt textarea{width:100%;box-sizing:border-box;padding:12px;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);color:inherit;
  font:inherit;font-size:13px;line-height:1.6;resize:vertical;min-height:96px}
.rep-prompt textarea::placeholder{color:rgba(255,255,255,.35)}
.rep-start{width:100%;margin-top:14px;padding:12px;font-size:15px}
.rep-free-note{display:flex;align-items:flex-start;gap:8px;margin-top:12px;
  font-size:12px;line-height:1.5;color:var(--studio-dim)}
.rep-free-tag{flex:none;padding:2px 6px;border-radius:4px;background:#b44bff;color:#000;
  font-size:11px;font-weight:600}

/* 右栏：Tab + 演示 */
.rep-tabs{display:flex;gap:10px;margin-bottom:18px;flex:none}
.rep-tabs span{display:inline-flex;align-items:center;gap:6px;padding:7px 15px;border-radius:999px;
  font-size:13.5px;color:rgba(255,255,255,.62);cursor:pointer;transition:background .18s,color .18s}
.rep-tabs span:hover{color:#fff;background:rgba(255,255,255,.07)}
.rep-tabs span.is-active{background:#f4f4f4;color:#111;font-weight:600}

.rep-demo{flex:1;display:flex;flex-direction:column;justify-content:center}
.rep-demo__title{font-size:32px;line-height:1.25;font-weight:700;margin:0 0 10px}
.rep-demo__subtitle{font-size:13.5px;line-height:1.7;color:var(--studio-dim);margin:0 0 24px;max-width:760px}
.rep-demo__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rep-demo-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.rep-demo-card__media{aspect-ratio:16/10;background:#000;overflow:hidden}
.rep-demo-card__media img,.rep-demo-card__media video{width:100%;height:100%;object-fit:cover;display:block}
.rep-demo-card__body{display:flex;gap:10px;padding:12px 14px 16px;align-items:flex-start}
.rep-demo-card__num{flex:none;padding-top:2px;font-size:12px;font-weight:700;
  color:rgba(255,255,255,.5);font-variant-numeric:tabular-nums}
.rep-demo-card__text{min-width:0}
.rep-demo-card__text strong{display:block;font-size:14px;margin-bottom:6px}
.rep-demo-card__text span{font-size:12px;line-height:1.6;color:var(--studio-dim)}
.rep-demo__dots{display:flex;justify-content:center;gap:6px;margin-top:22px}
.rep-demo__dots span{width:22px;height:4px;border-radius:2px;background:rgba(255,255,255,.2)}
.rep-demo__dots span.is-active{background:#fff}

/* 轮播（2 页：演示视频 / 三步流程） */
.rep-demo__viewport{overflow:hidden;touch-action:pan-y;border-radius:18px;outline:none;cursor:grab}
.rep-demo__viewport:active{cursor:grabbing}
.rep-demo__viewport:focus-visible{outline:2px solid rgba(180,75,255,.55);outline-offset:6px}
.rep-demo__track{display:flex;transition:transform .32s cubic-bezier(.4,0,.2,1);will-change:transform}
.rep-slide{flex:0 0 100%;min-width:0;padding:1px}
.rep-slide:not(.is-active){pointer-events:none}
.rep-demo__stage{position:relative;border-radius:16px;overflow:hidden;background:#000;
  margin-bottom:18px;border:1px solid rgba(255,255,255,.07)}
.rep-demo__video{width:100%;aspect-ratio:854/480;max-height:360px;object-fit:cover;display:block}
.rep-demo__dots button{width:22px;height:4px;border-radius:2px;border:0;padding:0;cursor:pointer;
  background:rgba(255,255,255,.2);transition:background .18s}
.rep-demo__dots button.is-active{background:#fff}
.rep-demo__dots button:hover{background:rgba(255,255,255,.45)}
.rep-demo__dots button.is-active:hover{background:#fff}

/* 对话态 */
.rep-chat{flex:1 1 56%;min-width:0;display:flex;flex-direction:column;gap:10px;padding:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px}
.rep-chat__head{display:flex;align-items:center;gap:10px}
.rep-chat__head h2{margin:0;font-size:15px}
.rep-link{margin-left:auto;border:0;background:none;color:var(--studio-dim);font-size:12px;cursor:pointer}
.rep-thread{display:flex;flex-direction:column;max-height:44vh;overflow-y:auto;padding-right:4px}
.rep-empty{font-size:13px;color:var(--studio-dim);padding:8px 0;margin:0}
.rep-ask{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.12)}
.rep-ask__label{font-size:13px;color:var(--studio-dim)}
.rep-ask textarea{width:100%;box-sizing:border-box;padding:0;border:0;background:transparent;color:inherit;
  font:inherit;font-size:13.5px;line-height:1.6;resize:vertical;min-height:64px;outline:none}
.rep-ask__foot{display:flex;gap:10px;justify-content:flex-end}
.rep-res{flex:1 1 44%;min-width:0;display:flex;flex-direction:column;padding:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px}
.rep-res__tabs{display:flex;gap:16px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.rep-res__tabs button{padding:8px 2px;border:0;border-bottom:2px solid transparent;background:none;
  color:var(--studio-dim);font-size:13px;cursor:pointer}
.rep-res__tabs button.is-active{color:inherit;border-bottom-color:#b44bff}
.rep-res .rep-demo__title{font-size:22px}
.rep-res .rep-demo__cards{grid-template-columns:1fr}

/* 作品列表 */
.rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.rep-card{display:flex;flex-direction:column;gap:4px;padding:10px;text-align:left;border-radius:12px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.08);color:inherit;cursor:pointer}
.rep-card.is-active{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.06)}
.rep-card b{font-size:13px}
.rep-card span{font-size:11px;color:var(--studio-dim);overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical}
.rep-card i{font-style:normal;font-size:10px;color:var(--studio-dim)}
.rep-card--new{align-items:center;justify-content:center;border-style:dashed;min-height:92px}

@media (max-width:1180px){
  .rep-demo__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rep-demo__cards .rep-demo-card:nth-child(3){grid-column:span 2}
}
@media (max-width:860px){
  .rep-home{flex-direction:column}
  .rep-rail{width:100%;max-height:none;overflow:visible}
  .rep-demo__cards{grid-template-columns:1fr}
  .rep-demo__cards .rep-demo-card:nth-child(3){grid-column:auto}
  .rep-stage{flex-direction:column}
  .rep-chat,.rep-res{flex:1 1 auto;width:100%}
}

/* ============================================================
   runow-ref.css — 严格对齐 runninghub.cn/runow/hypit 尺寸
   数据来源：对标站 index-D1NMX88f.css + 实测回归
   实测（对标）：.replica-demo 宽度随右栏高度线性变化
     右栏高 845 → demo 933×525
     右栏高 703 → demo 680×382
     右栏高 569 → demo 471×265
   拟合：demo_w ≈ 1.7778 × 右栏高 − 569，右栏高 ≈ min(100dvh − 164, 845)
   第 2 页三步组：宽度 = 94%（上限 1200），比单个演示大得多
   ============================================================ */

/* ---------- 两栏：360 | 20 | 1fr，左右同高 ---------- */
.rep-home{display:flex;gap:20px;align-items:stretch;width:100%}
.rep-rail{width:360px;flex:none;display:flex;flex-direction:column;gap:12px;
  padding:16px;height:clamp(440px,100dvh - 90px,900px);max-height:none;overflow-y:auto;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:18px}

/* ---------- 左上角特性视频：flex 1.15 / 最小 145，完整不裁切 ---------- */
.rep-feature-card{flex:1.15 0 145px;height:auto;min-height:145px;max-height:none;
  margin-bottom:0;border-radius:12px;overflow:hidden}
.rep-feature-card__media{width:100%;height:100%;object-fit:cover;display:block}
.rep-feature-card__overlay{bottom:14px;left:14px;right:14px;padding:0;background:none}
.rep-feature-card__overlay strong{font-size:18px;font-weight:600;line-height:1.3;margin-bottom:5px}
.rep-feature-card__overlay span{font-size:12px;line-height:1.5;opacity:.8}

/* ---------- 上传 / 素材 ---------- */
.rep-upload{flex:.7 0 92px;min-height:92px;margin-bottom:0;border-radius:13px;padding:8px 12px;
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}
.rep-upload__icon{width:30px;height:30px;margin:0 auto 2px;font-size:11px}
.rep-upload__title{font-size:13px;font-weight:500}
.rep-assets{flex:none;margin-bottom:0;border-radius:13px;padding:10px 12px}

/* ---------- 指令框：flex 1.45 / 最小 210 ---------- */
.rep-prompt{flex:1.45 0 210px;min-height:210px;display:flex;flex-direction:column;margin-bottom:0}
.rep-prompt label{font-size:13px;font-weight:500;margin-bottom:10px}
.rep-prompt textarea{flex:auto;min-height:78px;padding:12px;line-height:1.7;border-radius:12px}
.rep-chips{display:none}
.rep-start{flex:none;width:100%;height:46px;border-radius:11px;margin:10px 0 0;font-weight:600}
.rep-free-note{flex:none;margin-top:8px}

/* ---------- 右栏面板 ---------- */
.rep-showcase{flex:1;min-width:0;height:clamp(440px,100dvh - 90px,900px);min-height:0;
  display:flex;flex-direction:column;gap:12px;padding:16px 18px 20px;position:relative;overflow:hidden;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:20px}
.rep-res__tabs{position:static;inset:auto;z-index:auto;margin:0;border-bottom:0;padding:0;background:none}

/* ---------- 轮播骨架 ---------- */
.rep-demo{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.rep-demo__viewport{overflow:hidden;touch-action:pan-y;border-radius:16px;outline:none;cursor:grab}
.rep-demo__track{display:flex;align-items:center;transition:transform .32s cubic-bezier(.4,0,.2,1);will-change:transform}
.rep-slide{flex:0 0 100%;min-width:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;padding:0}
.rep-slide:not(.is-active){pointer-events:none}

/* ---------- 第 1 页：单个演示视频（小） ---------- */
.rep-demo__stage{max-width:none;margin:0 auto;border-radius:16px;overflow:hidden;background:#000;border:0;
  width:max(260px, min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px)))}
.rep-demo__video{width:100%;height:auto;aspect-ratio:854/480;max-height:none;object-fit:contain;display:block}

.rep-demo__title{font-size:clamp(22px,1.9vw,28px);font-weight:600;line-height:1.2;
  letter-spacing:-.5px;text-align:center;margin:18px auto 8px;width:min(94%,960px)}
.rep-demo__subtitle{font-size:13px;line-height:1.8;color:var(--studio-dim);
  text-align:center;margin:0 auto;max-width:760px;width:min(94%,960px)}

/* ---------- 第 2 页：三步组（大，94% / 上限 1200） ---------- */
.rep-slide:last-child .rep-demo__title,
.rep-slide:last-child .rep-demo__subtitle{width:min(94%,1200px)}
.rep-slide:last-child .rep-demo__title{margin-top:0;font-size:clamp(24px,2.25vw,36px);margin-bottom:14px}
.rep-demo__cards{width:min(94%,1200px);margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(12px,1.8vw,28px)}
.rep-demo-card{border-radius:12px}
.rep-demo-card__media{aspect-ratio:16/9;border-radius:12px}
.rep-demo-card__body{padding:14px 2px 0}
.rep-demo-card__text strong{font-size:clamp(13px,1.1vw,18px);font-weight:600;line-height:1.55}
.rep-demo-card__text span{font-size:13px;line-height:1.8}

/* ---------- 轮播点（2026-11-06 调小：点 5px、当前点 12×5 胶囊） ---------- */
.rep-demo__dots{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:14px;min-height:16px}
.rep-demo__dots button{position:relative;width:16px;height:16px;padding:0;border:0;border-radius:8px;
  background:none;cursor:pointer}
.rep-demo__dots button::after{content:"";position:absolute;top:50%;left:6px;width:5px;height:5px;
  margin-top:-2.5px;border-radius:10px;background:rgba(255,255,255,.28);transition:width .2s,left .2s,background .2s}
.rep-demo__dots button.is-active::after{width:12px;left:2px;background:rgba(255,255,255,.92)}
.rep-demo__dots button:hover::after{background:rgba(255,255,255,.55)}
.rep-demo__dots button.is-active:hover::after{background:#fff}

/* ---------- 复刻页占满视口（对标 .stage width:min(100%,2048px)） ---------- */
#view:has(.rep-app){max-width:none;width:100%;padding-left:16px;padding-right:16px}
.rep-app{max-width:none;width:100%}
.rep-home{max-width:none;width:100%}

/* ---------- 响应式 ---------- */
@media (height<=760px){
  .rep-demo__stage{width:max(240px, min(94%, calc(1.7778 * min(100dvh - 150px, 845px) - 540px)))}
  .rep-demo__title{margin-top:14px;margin-bottom:6px}
  .rep-demo-card__text span{font-size:12px}
}
@media (width<=1100px){
  .rep-rail{width:320px}
  .rep-demo__stage{width:min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px))}
}

/* ---------- 主站内嵌原生（待办C）：适配主站顶栏与内容区 ---------- */
#view:has(.rep-app){max-width:none;width:100%}
#view:has(.rep-app) .rep-rail,
#view:has(.rep-app) .rep-showcase{height:clamp(440px,100dvh - 168px,900px)}
#view:has(.rep-app) .rep-thread{max-height:42vh}

/* ---------- 2026-11-06 修复：素材预览 + 时长/清晰度选择 ---------- */
.rep-upload__video{width:100%;max-height:150px;border-radius:10px;background:#000;display:block;margin-bottom:8px;object-fit:contain}
.rep-spec{border:1px solid rgba(255,255,255,.09);border-radius:13px;padding:10px 12px;margin-bottom:14px;background:rgba(255,255,255,.02)}
.rep-spec__row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.rep-spec__row:last-of-type{margin-bottom:0}
.rep-spec__label{flex:none;width:44px;font-size:12px;color:var(--studio-dim)}
.rep-spec__opts{display:flex;flex-wrap:wrap;gap:6px}
.rep-spec__btn{padding:4px 9px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);color:inherit;font:inherit;font-size:12px;cursor:pointer;transition:border-color .15s,background .15s}
.rep-spec__btn:hover{border-color:rgba(180,75,255,.55)}
.rep-spec__btn.is-on{background:#b44bff;border-color:#b44bff;color:#111;font-weight:600}
.rep-spec__tip{margin:8px 0 0;font-size:11px;line-height:1.5;color:var(--studio-dim)}

/* ============================================================
   2026-11-06 v704：黑底 / 底部空白 / 模块可见性 / 品牌字
   ============================================================ */
/* 1) 参考视频不再整块黑底：等比裁切 + 透明底 + 限高 */
.rep-upload__video{width:100%;height:104px;max-height:104px;object-fit:cover;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:10px;display:block;margin:0 0 6px}
.rep-upload.is-filled{flex:0 0 auto;min-height:0;padding:10px 12px;gap:5px}
.rep-upload.is-filled .rep-upload__icon{display:none}
.rep-upload.is-filled .rep-upload__title{font-size:12.5px}
.rep-upload.is-filled .rep-upload__hint{font-size:11px}

/* 2) 去掉强行撑高造成的底部空白 */
.rep-app{min-height:0}
.rep-home{min-height:0}
.rep-rail{padding-bottom:0;gap:10px}

/* 3) 左栏收紧：模板/技能/Agent + 指令区尽量同屏 */
.rep-feature-card{flex:0 0 128px;min-height:128px}
.rep-upload{flex:0 0 84px;min-height:84px}
.rep-assets{padding:8px 12px}
.rep-spec{padding:8px 12px;margin-bottom:0}
.rep-spec__row{margin-bottom:6px}
.rep-spec__tip{margin:6px 0 0;font-size:10.5px}
.rep-prompt{flex:1 1 auto;min-height:130px}
.rep-prompt label{margin-bottom:6px}
.rep-prompt textarea{min-height:62px}
.rep-actions{background:#0d0d11;padding-top:8px}

/* 4) 模块块更紧凑 */
.rep-mod{margin-top:0;padding:8px 10px 10px}
.rep-mod__head{margin:4px 0 6px}
.rep-mod__tpl{flex:0 0 64px;height:50px}
.rep-mod__chip{padding:4px 10px;font-size:11px}

/* 5) 右栏内容顶部对齐，不再垂直居中留白 */
.rep-demo{justify-content:flex-start;gap:10px}
.rep-showcase{padding-bottom:14px}

/* 6) 品牌字：单行横排、完整不裁切 */
.studio-brand__word{flex-direction:row;flex-wrap:nowrap;white-space:nowrap;
  gap:2px;letter-spacing:0;max-width:100%}
.studio-brand__word b{font-size:14px}
.studio-brand__word i{font-size:11px}

/* 7) 右栏演示区：放大预览、留白居中分散（v704c） */
.rep-demo{justify-content:center}
.rep-demo__stage{width:min(94%, calc(1.7778 * (100dvh - 190px)))}
.rep-demo__title{margin-top:14px}

/* 8) 面板吃满可视高度（v704d） */
#view:has(.rep-app) .rep-rail,
#view:has(.rep-app) .rep-showcase{height:clamp(440px, 100dvh - 96px, 900px)}

/* 9) 预览区底色柔化（v704e）：视频未出帧时不再是整块纯黑 */
.rep-demo__stage{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.rep-demo-card__media{background:rgba(255,255,255,.035)}
.rep-demo__video{background:transparent}

/* ============================================================
   v705（2026-11-06）：验收前切断入口 + 轮播尺寸回退对标
   ============================================================ */
/* 1) 复刻工作台入口先切断（验收通过后删掉这三条即可恢复） */
#rwEntry{display:none !important}
.studio-nav a[href="#/replica"],
.studio-nav [data-route="replica"],
.studio-nav [data-key="replica"]{display:none !important}

/* 2) 轮播演示视频回到对标尺寸（撤销 v704c 的放大） */
.rep-demo__stage{width:max(260px, min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px)));
  max-width:902px;background:#0b0b0f;border:1px solid rgba(255,255,255,.07)}
.rep-demo__video{width:100%;height:auto;aspect-ratio:854/480;max-height:none;object-fit:contain}
.rep-demo{justify-content:center}
/* ============================================================
   复刻工作台 · 原生视图样式（待办C）
   抽取自 runow.css(rep-*) + runow-ref.css，仅服务主站 #/replica 原生渲染
   ============================================================ */

/* ===== 复刻工作台（对标 RunningHub × Hypit · 2026-11-05 重写：单一定义、无 !important） ===== */
.rep-app{display:flex;flex-direction:column;gap:14px}

/* 顶部活动条 */
.rep-banner{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;
  background:linear-gradient(90deg,rgba(180,75,255,.12),rgba(120,90,255,.10));
  border:1px solid rgba(255,255,255,.10);font-size:13px}
.rep-banner__copy{display:flex;align-items:center;gap:8px;min-width:0}
.rep-dot{width:7px;height:7px;border-radius:50%;background:#5ef2a4;box-shadow:0 0 8px #5ef2a4;flex:none}
.rep-banner__sub{color:var(--studio-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-clock{display:flex;align-items:center;gap:8px;margin-left:auto}
.rep-clock__label{font-size:12px;color:var(--studio-dim)}
.rep-clock__digits{display:flex;gap:6px}
.rep-clock__part{display:flex;align-items:baseline;gap:2px;padding:2px 7px;border-radius:8px;background:rgba(0,0,0,.35)}
.rep-clock__part b{font-size:14px;font-variant-numeric:tabular-nums}
.rep-clock__part i{font-style:normal;font-size:11px;color:var(--studio-dim)}
.rep-banner__cta{padding:6px 14px;border-radius:999px;border:0;cursor:pointer;font-size:12.5px;font-weight:600;
  background:#b44bff;color:#111;flex:none}
.rep-banner__close{border:0;background:none;color:var(--studio-dim);font-size:13px;cursor:pointer;line-height:1;flex:none}

/* 布局 */
.rep-stage{display:flex;gap:18px;align-items:flex-start;width:100%;box-sizing:border-box}
.rep-home{display:flex;gap:20px;align-items:flex-start;width:100%}
.rep-rail{width:352px;flex:none;display:flex;flex-direction:column;
  max-height:calc(100vh - 190px);overflow-y:auto;padding-right:4px}
.rep-showcase{flex:1;min-width:0;display:flex;flex-direction:column;padding:20px 24px;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:18px;min-height:520px}

/* 左栏：特性视频 / 上传 / 素材 / 指令 */
.rep-feature-card{position:relative;height:172px;border-radius:14px;overflow:hidden;
  margin-bottom:12px;background:#141418;cursor:pointer}
.rep-feature-card__media{width:100%;height:100%;object-fit:cover;display:block}
.rep-feature-card__overlay{position:absolute;left:0;right:0;bottom:0;padding:14px 16px;
  background:linear-gradient(transparent,rgba(0,0,0,.82));pointer-events:none}
.rep-feature-card__overlay strong{display:block;font-size:17px;font-weight:700;margin-bottom:3px}
.rep-feature-card__overlay span{font-size:12.5px;color:rgba(255,255,255,.75)}

.rep-upload{border:1px dashed rgba(255,255,255,.16);border-radius:14px;padding:16px;
  text-align:center;cursor:pointer;margin-bottom:12px;transition:border-color .18s,background .18s}
.rep-upload:hover{border-color:rgba(180,75,255,.6);background:rgba(180,75,255,.04)}
.rep-upload.is-filled{border-style:solid;border-color:rgba(180,75,255,.45)}
.rep-upload__icon{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;margin:0 auto 8px;font-size:13px}
.rep-upload__title{font-size:14px;font-weight:600;margin-bottom:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-upload__hint{font-size:12px;color:var(--studio-dim)}

.rep-assets{border:1px dashed rgba(255,255,255,.16);border-radius:14px;padding:12px 14px;margin-bottom:16px}
.rep-assets__head{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:none;
  color:inherit;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-align:left}
.rep-assets__head b{width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-weight:400;font-size:15px;flex:none}
.rep-assets__row{display:flex;align-items:center;gap:8px;overflow-x:auto;margin-top:10px}
.rep-add{flex:none;width:46px;height:46px;border-radius:10px;border:1px dashed rgba(255,255,255,.2);
  background:transparent;color:rgba(255,255,255,.6);cursor:pointer;font-size:18px;line-height:1}
.rep-thumb{position:relative;flex:none;width:46px;height:46px;border-radius:10px;overflow:hidden;background:#1a1a1f}
.rep-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rep-thumb button{position:absolute;top:0;right:0;width:16px;height:16px;border:0;padding:0;
  border-radius:0 0 0 6px;background:rgba(0,0,0,.66);color:#fff;font-size:10px;line-height:16px;cursor:pointer}
.rep-assets__hint{font-size:12px;color:var(--studio-dim);margin-top:8px}

.rep-prompt label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.rep-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.rep-chip{padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);color:inherit;font:inherit;font-size:12px;line-height:1.4;
  cursor:pointer;transition:border-color .16s,background .16s}
.rep-chip:hover{border-color:rgba(180,75,255,.55);background:rgba(180,75,255,.08)}
.rep-prompt textarea{width:100%;box-sizing:border-box;padding:12px;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);color:inherit;
  font:inherit;font-size:13px;line-height:1.6;resize:vertical;min-height:96px}
.rep-prompt textarea::placeholder{color:rgba(255,255,255,.35)}
.rep-start{width:100%;margin-top:14px;padding:12px;font-size:15px}
.rep-free-note{display:flex;align-items:flex-start;gap:8px;margin-top:12px;
  font-size:12px;line-height:1.5;color:var(--studio-dim)}
.rep-free-tag{flex:none;padding:2px 6px;border-radius:4px;background:#b44bff;color:#000;
  font-size:11px;font-weight:600}

/* 右栏：Tab + 演示 */
.rep-tabs{display:flex;gap:10px;margin-bottom:18px;flex:none}
.rep-tabs span{display:inline-flex;align-items:center;gap:6px;padding:7px 15px;border-radius:999px;
  font-size:13.5px;color:rgba(255,255,255,.62);cursor:pointer;transition:background .18s,color .18s}
.rep-tabs span:hover{color:#fff;background:rgba(255,255,255,.07)}
.rep-tabs span.is-active{background:#f4f4f4;color:#111;font-weight:600}

.rep-demo{flex:1;display:flex;flex-direction:column;justify-content:center}
.rep-demo__title{font-size:32px;line-height:1.25;font-weight:700;margin:0 0 10px}
.rep-demo__subtitle{font-size:13.5px;line-height:1.7;color:var(--studio-dim);margin:0 0 24px;max-width:760px}
.rep-demo__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rep-demo-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.rep-demo-card__media{aspect-ratio:16/10;background:#000;overflow:hidden}
.rep-demo-card__media img,.rep-demo-card__media video{width:100%;height:100%;object-fit:cover;display:block}
.rep-demo-card__body{display:flex;gap:10px;padding:12px 14px 16px;align-items:flex-start}
.rep-demo-card__num{flex:none;padding-top:2px;font-size:12px;font-weight:700;
  color:rgba(255,255,255,.5);font-variant-numeric:tabular-nums}
.rep-demo-card__text{min-width:0}
.rep-demo-card__text strong{display:block;font-size:14px;margin-bottom:6px}
.rep-demo-card__text span{font-size:12px;line-height:1.6;color:var(--studio-dim)}
.rep-demo__dots{display:flex;justify-content:center;gap:6px;margin-top:22px}
.rep-demo__dots span{width:22px;height:4px;border-radius:2px;background:rgba(255,255,255,.2)}
.rep-demo__dots span.is-active{background:#fff}

/* 轮播（2 页：演示视频 / 三步流程） */
.rep-demo__viewport{overflow:hidden;touch-action:pan-y;border-radius:18px;outline:none;cursor:grab}
.rep-demo__viewport:active{cursor:grabbing}
.rep-demo__viewport:focus-visible{outline:2px solid rgba(180,75,255,.55);outline-offset:6px}
.rep-demo__track{display:flex;transition:transform .32s cubic-bezier(.4,0,.2,1);will-change:transform}
.rep-slide{flex:0 0 100%;min-width:0;padding:1px}
.rep-slide:not(.is-active){pointer-events:none}
.rep-demo__stage{position:relative;border-radius:16px;overflow:hidden;background:#000;
  margin-bottom:18px;border:1px solid rgba(255,255,255,.07)}
.rep-demo__video{width:100%;aspect-ratio:854/480;max-height:360px;object-fit:cover;display:block}
.rep-demo__dots button{width:22px;height:4px;border-radius:2px;border:0;padding:0;cursor:pointer;
  background:rgba(255,255,255,.2);transition:background .18s}
.rep-demo__dots button.is-active{background:#fff}
.rep-demo__dots button:hover{background:rgba(255,255,255,.45)}
.rep-demo__dots button.is-active:hover{background:#fff}

/* 对话态 */
.rep-chat{flex:1 1 56%;min-width:0;display:flex;flex-direction:column;gap:10px;padding:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px}
.rep-chat__head{display:flex;align-items:center;gap:10px}
.rep-chat__head h2{margin:0;font-size:15px}
.rep-link{margin-left:auto;border:0;background:none;color:var(--studio-dim);font-size:12px;cursor:pointer}
.rep-thread{display:flex;flex-direction:column;max-height:44vh;overflow-y:auto;padding-right:4px}
.rep-empty{font-size:13px;color:var(--studio-dim);padding:8px 0;margin:0}
.rep-ask{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.12)}
.rep-ask__label{font-size:13px;color:var(--studio-dim)}
.rep-ask textarea{width:100%;box-sizing:border-box;padding:0;border:0;background:transparent;color:inherit;
  font:inherit;font-size:13.5px;line-height:1.6;resize:vertical;min-height:64px;outline:none}
.rep-ask__foot{display:flex;gap:10px;justify-content:flex-end}
.rep-res{flex:1 1 44%;min-width:0;display:flex;flex-direction:column;padding:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px}
.rep-res__tabs{display:flex;gap:16px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.rep-res__tabs button{padding:8px 2px;border:0;border-bottom:2px solid transparent;background:none;
  color:var(--studio-dim);font-size:13px;cursor:pointer}
.rep-res__tabs button.is-active{color:inherit;border-bottom-color:#b44bff}
.rep-res .rep-demo__title{font-size:22px}
.rep-res .rep-demo__cards{grid-template-columns:1fr}

/* 作品列表 */
.rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.rep-card{display:flex;flex-direction:column;gap:4px;padding:10px;text-align:left;border-radius:12px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.08);color:inherit;cursor:pointer}
.rep-card.is-active{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.06)}
.rep-card b{font-size:13px}
.rep-card span{font-size:11px;color:var(--studio-dim);overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical}
.rep-card i{font-style:normal;font-size:10px;color:var(--studio-dim)}
.rep-card--new{align-items:center;justify-content:center;border-style:dashed;min-height:92px}

@media (max-width:1180px){
  .rep-demo__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rep-demo__cards .rep-demo-card:nth-child(3){grid-column:span 2}
}
@media (max-width:860px){
  .rep-home{flex-direction:column}
  .rep-rail{width:100%;max-height:none;overflow:visible}
  .rep-demo__cards{grid-template-columns:1fr}
  .rep-demo__cards .rep-demo-card:nth-child(3){grid-column:auto}
  .rep-stage{flex-direction:column}
  .rep-chat,.rep-res{flex:1 1 auto;width:100%}
}

/* ============================================================
   runow-ref.css — 严格对齐 runninghub.cn/runow/hypit 尺寸
   数据来源：对标站 index-D1NMX88f.css + 实测回归
   实测（对标）：.replica-demo 宽度随右栏高度线性变化
     右栏高 845 → demo 933×525
     右栏高 703 → demo 680×382
     右栏高 569 → demo 471×265
   拟合：demo_w ≈ 1.7778 × 右栏高 − 569，右栏高 ≈ min(100dvh − 164, 845)
   第 2 页三步组：宽度 = 94%（上限 1200），比单个演示大得多
   ============================================================ */

/* ---------- 两栏：360 | 20 | 1fr，左右同高 ---------- */
.rep-home{display:flex;gap:20px;align-items:stretch;width:100%}
.rep-rail{width:360px;flex:none;display:flex;flex-direction:column;gap:12px;
  padding:16px;height:clamp(440px,100dvh - 90px,900px);max-height:none;overflow-y:auto;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:18px}

/* ---------- 左上角特性视频：flex 1.15 / 最小 145，完整不裁切 ---------- */
.rep-feature-card{flex:1.15 0 145px;height:auto;min-height:145px;max-height:none;
  margin-bottom:0;border-radius:12px;overflow:hidden}
.rep-feature-card__media{width:100%;height:100%;object-fit:cover;display:block}
.rep-feature-card__overlay{bottom:14px;left:14px;right:14px;padding:0;background:none}
.rep-feature-card__overlay strong{font-size:18px;font-weight:600;line-height:1.3;margin-bottom:5px}
.rep-feature-card__overlay span{font-size:12px;line-height:1.5;opacity:.8}

/* ---------- 上传 / 素材 ---------- */
.rep-upload{flex:.7 0 92px;min-height:92px;margin-bottom:0;border-radius:13px;padding:8px 12px;
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}
.rep-upload__icon{width:30px;height:30px;margin:0 auto 2px;font-size:11px}
.rep-upload__title{font-size:13px;font-weight:500}
.rep-assets{flex:none;margin-bottom:0;border-radius:13px;padding:10px 12px}

/* ---------- 指令框：flex 1.45 / 最小 210 ---------- */
.rep-prompt{flex:1.45 0 210px;min-height:210px;display:flex;flex-direction:column;margin-bottom:0}
.rep-prompt label{font-size:13px;font-weight:500;margin-bottom:10px}
.rep-prompt textarea{flex:auto;min-height:78px;padding:12px;line-height:1.7;border-radius:12px}
.rep-chips{display:none}
.rep-start{flex:none;width:100%;height:46px;border-radius:11px;margin:10px 0 0;font-weight:600}
.rep-free-note{flex:none;margin-top:8px}

/* ---------- 右栏面板 ---------- */
.rep-showcase{flex:1;min-width:0;height:clamp(440px,100dvh - 90px,900px);min-height:0;
  display:flex;flex-direction:column;gap:12px;padding:16px 18px 20px;position:relative;overflow:hidden;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:20px}
.rep-res__tabs{position:static;inset:auto;z-index:auto;margin:0;border-bottom:0;padding:0;background:none}

/* ---------- 轮播骨架 ---------- */
.rep-demo{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.rep-demo__viewport{overflow:hidden;touch-action:pan-y;border-radius:16px;outline:none;cursor:grab}
.rep-demo__track{display:flex;align-items:center;transition:transform .32s cubic-bezier(.4,0,.2,1);will-change:transform}
.rep-slide{flex:0 0 100%;min-width:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;padding:0}
.rep-slide:not(.is-active){pointer-events:none}

/* ---------- 第 1 页：单个演示视频（小） ---------- */
.rep-demo__stage{max-width:none;margin:0 auto;border-radius:16px;overflow:hidden;background:#000;border:0;
  width:max(260px, min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px)))}
.rep-demo__video{width:100%;height:auto;aspect-ratio:854/480;max-height:none;object-fit:contain;display:block}

.rep-demo__title{font-size:clamp(22px,1.9vw,28px);font-weight:600;line-height:1.2;
  letter-spacing:-.5px;text-align:center;margin:18px auto 8px;width:min(94%,960px)}
.rep-demo__subtitle{font-size:13px;line-height:1.8;color:var(--studio-dim);
  text-align:center;margin:0 auto;max-width:760px;width:min(94%,960px)}

/* ---------- 第 2 页：三步组（大，94% / 上限 1200） ---------- */
.rep-slide:last-child .rep-demo__title,
.rep-slide:last-child .rep-demo__subtitle{width:min(94%,1200px)}
.rep-slide:last-child .rep-demo__title{margin-top:0;font-size:clamp(24px,2.25vw,36px);margin-bottom:14px}
.rep-demo__cards{width:min(94%,1200px);margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(12px,1.8vw,28px)}
.rep-demo-card{border-radius:12px}
.rep-demo-card__media{aspect-ratio:16/9;border-radius:12px}
.rep-demo-card__body{padding:14px 2px 0}
.rep-demo-card__text strong{font-size:clamp(13px,1.1vw,18px);font-weight:600;line-height:1.55}
.rep-demo-card__text span{font-size:13px;line-height:1.8}

/* ---------- 轮播点（2026-11-06 调小：点 5px、当前点 12×5 胶囊） ---------- */
.rep-demo__dots{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:14px;min-height:16px}
.rep-demo__dots button{position:relative;width:16px;height:16px;padding:0;border:0;border-radius:8px;
  background:none;cursor:pointer}
.rep-demo__dots button::after{content:"";position:absolute;top:50%;left:6px;width:5px;height:5px;
  margin-top:-2.5px;border-radius:10px;background:rgba(255,255,255,.28);transition:width .2s,left .2s,background .2s}
.rep-demo__dots button.is-active::after{width:12px;left:2px;background:rgba(255,255,255,.92)}
.rep-demo__dots button:hover::after{background:rgba(255,255,255,.55)}
.rep-demo__dots button.is-active:hover::after{background:#fff}

/* ---------- 复刻页占满视口（对标 .stage width:min(100%,2048px)） ---------- */
#view:has(.rep-app){max-width:none;width:100%;padding-left:16px;padding-right:16px}
.rep-app{max-width:none;width:100%}
.rep-home{max-width:none;width:100%}

/* ---------- 响应式 ---------- */
@media (height<=760px){
  .rep-demo__stage{width:max(240px, min(94%, calc(1.7778 * min(100dvh - 150px, 845px) - 540px)))}
  .rep-demo__title{margin-top:14px;margin-bottom:6px}
  .rep-demo-card__text span{font-size:12px}
}
@media (width<=1100px){
  .rep-rail{width:320px}
  .rep-demo__stage{width:min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px))}
}

/* ---------- 主站内嵌原生（待办C）：适配主站顶栏与内容区 ---------- */
#view:has(.rep-app){max-width:none;width:100%}
#view:has(.rep-app) .rep-rail,
#view:has(.rep-app) .rep-showcase{height:clamp(440px,100dvh - 168px,900px)}
#view:has(.rep-app) .rep-thread{max-height:42vh}

/* ---------- 2026-11-06 修复：素材预览 + 时长/清晰度选择 ---------- */
.rep-upload__video{width:100%;max-height:150px;border-radius:10px;background:#000;display:block;margin-bottom:8px;object-fit:contain}
.rep-spec{border:1px solid rgba(255,255,255,.09);border-radius:13px;padding:10px 12px;margin-bottom:14px;background:rgba(255,255,255,.02)}
.rep-spec__row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.rep-spec__row:last-of-type{margin-bottom:0}
.rep-spec__label{flex:none;width:44px;font-size:12px;color:var(--studio-dim)}
.rep-spec__opts{display:flex;flex-wrap:wrap;gap:6px}
.rep-spec__btn{padding:4px 9px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);color:inherit;font:inherit;font-size:12px;cursor:pointer;transition:border-color .15s,background .15s}
.rep-spec__btn:hover{border-color:rgba(180,75,255,.55)}
.rep-spec__btn.is-on{background:#b44bff;border-color:#b44bff;color:#111;font-weight:600}
.rep-spec__tip{margin:8px 0 0;font-size:11px;line-height:1.5;color:var(--studio-dim)}

/* ============================================================
   2026-11-06 v704：黑底 / 底部空白 / 模块可见性 / 品牌字
   ============================================================ */
/* 1) 参考视频不再整块黑底：等比裁切 + 透明底 + 限高 */
.rep-upload__video{width:100%;height:104px;max-height:104px;object-fit:cover;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:10px;display:block;margin:0 0 6px}
.rep-upload.is-filled{flex:0 0 auto;min-height:0;padding:10px 12px;gap:5px}
.rep-upload.is-filled .rep-upload__icon{display:none}
.rep-upload.is-filled .rep-upload__title{font-size:12.5px}
.rep-upload.is-filled .rep-upload__hint{font-size:11px}

/* 2) 去掉强行撑高造成的底部空白 */
.rep-app{min-height:0}
.rep-home{min-height:0}
.rep-rail{padding-bottom:0;gap:10px}

/* 3) 左栏收紧：模板/技能/Agent + 指令区尽量同屏 */
.rep-feature-card{flex:0 0 128px;min-height:128px}
.rep-upload{flex:0 0 84px;min-height:84px}
.rep-assets{padding:8px 12px}
.rep-spec{padding:8px 12px;margin-bottom:0}
.rep-spec__row{margin-bottom:6px}
.rep-spec__tip{margin:6px 0 0;font-size:10.5px}
.rep-prompt{flex:1 1 auto;min-height:130px}
.rep-prompt label{margin-bottom:6px}
.rep-prompt textarea{min-height:62px}
.rep-actions{background:#0d0d11;padding-top:8px}

/* 4) 模块块更紧凑 */
.rep-mod{margin-top:0;padding:8px 10px 10px}
.rep-mod__head{margin:4px 0 6px}
.rep-mod__tpl{flex:0 0 64px;height:50px}
.rep-mod__chip{padding:4px 10px;font-size:11px}

/* 5) 右栏内容顶部对齐，不再垂直居中留白 */
.rep-demo{justify-content:flex-start;gap:10px}
.rep-showcase{padding-bottom:14px}

/* 6) 品牌字：单行横排、完整不裁切 */
.studio-brand__word{flex-direction:row;flex-wrap:nowrap;white-space:nowrap;
  gap:2px;letter-spacing:0;max-width:100%}
.studio-brand__word b{font-size:14px}
.studio-brand__word i{font-size:11px}

/* 7) 右栏演示区：放大预览、留白居中分散（v704c） */
.rep-demo{justify-content:center}
.rep-demo__stage{width:min(94%, calc(1.7778 * (100dvh - 190px)))}
.rep-demo__title{margin-top:14px}

/* 8) 面板吃满可视高度（v704d） */
#view:has(.rep-app) .rep-rail,
#view:has(.rep-app) .rep-showcase{height:clamp(440px, 100dvh - 96px, 900px)}

/* 9) 预览区底色柔化（v704e）：视频未出帧时不再是整块纯黑 */
.rep-demo__stage{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.rep-demo-card__media{background:rgba(255,255,255,.035)}
.rep-demo__video{background:transparent}
/* ============================================================
   复刻工作台 · 原生视图样式（待办C）
   抽取自 runow.css(rep-*) + runow-ref.css，仅服务主站 #/replica 原生渲染
   ============================================================ */

/* ===== 复刻工作台（对标 RunningHub × Hypit · 2026-11-05 重写：单一定义、无 !important） ===== */
.rep-app{display:flex;flex-direction:column;gap:14px}

/* 顶部活动条 */
.rep-banner{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;
  background:linear-gradient(90deg,rgba(180,75,255,.12),rgba(120,90,255,.10));
  border:1px solid rgba(255,255,255,.10);font-size:13px}
.rep-banner__copy{display:flex;align-items:center;gap:8px;min-width:0}
.rep-dot{width:7px;height:7px;border-radius:50%;background:#5ef2a4;box-shadow:0 0 8px #5ef2a4;flex:none}
.rep-banner__sub{color:var(--studio-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-clock{display:flex;align-items:center;gap:8px;margin-left:auto}
.rep-clock__label{font-size:12px;color:var(--studio-dim)}
.rep-clock__digits{display:flex;gap:6px}
.rep-clock__part{display:flex;align-items:baseline;gap:2px;padding:2px 7px;border-radius:8px;background:rgba(0,0,0,.35)}
.rep-clock__part b{font-size:14px;font-variant-numeric:tabular-nums}
.rep-clock__part i{font-style:normal;font-size:11px;color:var(--studio-dim)}
.rep-banner__cta{padding:6px 14px;border-radius:999px;border:0;cursor:pointer;font-size:12.5px;font-weight:600;
  background:#b44bff;color:#111;flex:none}
.rep-banner__close{border:0;background:none;color:var(--studio-dim);font-size:13px;cursor:pointer;line-height:1;flex:none}

/* 布局 */
.rep-stage{display:flex;gap:18px;align-items:flex-start;width:100%;box-sizing:border-box}
.rep-home{display:flex;gap:20px;align-items:flex-start;width:100%}
.rep-rail{width:352px;flex:none;display:flex;flex-direction:column;
  max-height:calc(100vh - 190px);overflow-y:auto;padding-right:4px}
.rep-showcase{flex:1;min-width:0;display:flex;flex-direction:column;padding:20px 24px;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:18px;min-height:520px}

/* 左栏：特性视频 / 上传 / 素材 / 指令 */
.rep-feature-card{position:relative;height:172px;border-radius:14px;overflow:hidden;
  margin-bottom:12px;background:#141418;cursor:pointer}
.rep-feature-card__media{width:100%;height:100%;object-fit:cover;display:block}
.rep-feature-card__overlay{position:absolute;left:0;right:0;bottom:0;padding:14px 16px;
  background:linear-gradient(transparent,rgba(0,0,0,.82));pointer-events:none}
.rep-feature-card__overlay strong{display:block;font-size:17px;font-weight:700;margin-bottom:3px}
.rep-feature-card__overlay span{font-size:12.5px;color:rgba(255,255,255,.75)}

.rep-upload{border:1px dashed rgba(255,255,255,.16);border-radius:14px;padding:16px;
  text-align:center;cursor:pointer;margin-bottom:12px;transition:border-color .18s,background .18s}
.rep-upload:hover{border-color:rgba(180,75,255,.6);background:rgba(180,75,255,.04)}
.rep-upload.is-filled{border-style:solid;border-color:rgba(180,75,255,.45)}
.rep-upload__icon{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;margin:0 auto 8px;font-size:13px}
.rep-upload__title{font-size:14px;font-weight:600;margin-bottom:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-upload__hint{font-size:12px;color:var(--studio-dim)}

.rep-assets{border:1px dashed rgba(255,255,255,.16);border-radius:14px;padding:12px 14px;margin-bottom:16px}
.rep-assets__head{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:none;
  color:inherit;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-align:left}
.rep-assets__head b{width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-weight:400;font-size:15px;flex:none}
.rep-assets__row{display:flex;align-items:center;gap:8px;overflow-x:auto;margin-top:10px}
.rep-add{flex:none;width:46px;height:46px;border-radius:10px;border:1px dashed rgba(255,255,255,.2);
  background:transparent;color:rgba(255,255,255,.6);cursor:pointer;font-size:18px;line-height:1}
.rep-thumb{position:relative;flex:none;width:46px;height:46px;border-radius:10px;overflow:hidden;background:#1a1a1f}
.rep-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rep-thumb button{position:absolute;top:0;right:0;width:16px;height:16px;border:0;padding:0;
  border-radius:0 0 0 6px;background:rgba(0,0,0,.66);color:#fff;font-size:10px;line-height:16px;cursor:pointer}
.rep-assets__hint{font-size:12px;color:var(--studio-dim);margin-top:8px}

.rep-prompt label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.rep-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.rep-chip{padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);color:inherit;font:inherit;font-size:12px;line-height:1.4;
  cursor:pointer;transition:border-color .16s,background .16s}
.rep-chip:hover{border-color:rgba(180,75,255,.55);background:rgba(180,75,255,.08)}
.rep-prompt textarea{width:100%;box-sizing:border-box;padding:12px;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);color:inherit;
  font:inherit;font-size:13px;line-height:1.6;resize:vertical;min-height:96px}
.rep-prompt textarea::placeholder{color:rgba(255,255,255,.35)}
.rep-start{width:100%;margin-top:14px;padding:12px;font-size:15px}
.rep-free-note{display:flex;align-items:flex-start;gap:8px;margin-top:12px;
  font-size:12px;line-height:1.5;color:var(--studio-dim)}
.rep-free-tag{flex:none;padding:2px 6px;border-radius:4px;background:#b44bff;color:#000;
  font-size:11px;font-weight:600}

/* 右栏：Tab + 演示 */
.rep-tabs{display:flex;gap:10px;margin-bottom:18px;flex:none}
.rep-tabs span{display:inline-flex;align-items:center;gap:6px;padding:7px 15px;border-radius:999px;
  font-size:13.5px;color:rgba(255,255,255,.62);cursor:pointer;transition:background .18s,color .18s}
.rep-tabs span:hover{color:#fff;background:rgba(255,255,255,.07)}
.rep-tabs span.is-active{background:#f4f4f4;color:#111;font-weight:600}

.rep-demo{flex:1;display:flex;flex-direction:column;justify-content:center}
.rep-demo__title{font-size:32px;line-height:1.25;font-weight:700;margin:0 0 10px}
.rep-demo__subtitle{font-size:13.5px;line-height:1.7;color:var(--studio-dim);margin:0 0 24px;max-width:760px}
.rep-demo__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rep-demo-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.rep-demo-card__media{aspect-ratio:16/10;background:#000;overflow:hidden}
.rep-demo-card__media img,.rep-demo-card__media video{width:100%;height:100%;object-fit:cover;display:block}
.rep-demo-card__body{display:flex;gap:10px;padding:12px 14px 16px;align-items:flex-start}
.rep-demo-card__num{flex:none;padding-top:2px;font-size:12px;font-weight:700;
  color:rgba(255,255,255,.5);font-variant-numeric:tabular-nums}
.rep-demo-card__text{min-width:0}
.rep-demo-card__text strong{display:block;font-size:14px;margin-bottom:6px}
.rep-demo-card__text span{font-size:12px;line-height:1.6;color:var(--studio-dim)}
.rep-demo__dots{display:flex;justify-content:center;gap:6px;margin-top:22px}
.rep-demo__dots span{width:22px;height:4px;border-radius:2px;background:rgba(255,255,255,.2)}
.rep-demo__dots span.is-active{background:#fff}

/* 轮播（2 页：演示视频 / 三步流程） */
.rep-demo__viewport{overflow:hidden;touch-action:pan-y;border-radius:18px;outline:none;cursor:grab}
.rep-demo__viewport:active{cursor:grabbing}
.rep-demo__viewport:focus-visible{outline:2px solid rgba(180,75,255,.55);outline-offset:6px}
.rep-demo__track{display:flex;transition:transform .32s cubic-bezier(.4,0,.2,1);will-change:transform}
.rep-slide{flex:0 0 100%;min-width:0;padding:1px}
.rep-slide:not(.is-active){pointer-events:none}
.rep-demo__stage{position:relative;border-radius:16px;overflow:hidden;background:#000;
  margin-bottom:18px;border:1px solid rgba(255,255,255,.07)}
.rep-demo__video{width:100%;aspect-ratio:854/480;max-height:360px;object-fit:cover;display:block}
.rep-demo__dots button{width:22px;height:4px;border-radius:2px;border:0;padding:0;cursor:pointer;
  background:rgba(255,255,255,.2);transition:background .18s}
.rep-demo__dots button.is-active{background:#fff}
.rep-demo__dots button:hover{background:rgba(255,255,255,.45)}
.rep-demo__dots button.is-active:hover{background:#fff}

/* 对话态 */
.rep-chat{flex:1 1 56%;min-width:0;display:flex;flex-direction:column;gap:10px;padding:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px}
.rep-chat__head{display:flex;align-items:center;gap:10px}
.rep-chat__head h2{margin:0;font-size:15px}
.rep-link{margin-left:auto;border:0;background:none;color:var(--studio-dim);font-size:12px;cursor:pointer}
.rep-thread{display:flex;flex-direction:column;max-height:44vh;overflow-y:auto;padding-right:4px}
.rep-empty{font-size:13px;color:var(--studio-dim);padding:8px 0;margin:0}
.rep-ask{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.12)}
.rep-ask__label{font-size:13px;color:var(--studio-dim)}
.rep-ask textarea{width:100%;box-sizing:border-box;padding:0;border:0;background:transparent;color:inherit;
  font:inherit;font-size:13.5px;line-height:1.6;resize:vertical;min-height:64px;outline:none}
.rep-ask__foot{display:flex;gap:10px;justify-content:flex-end}
.rep-res{flex:1 1 44%;min-width:0;display:flex;flex-direction:column;padding:16px;
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px}
.rep-res__tabs{display:flex;gap:16px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.rep-res__tabs button{padding:8px 2px;border:0;border-bottom:2px solid transparent;background:none;
  color:var(--studio-dim);font-size:13px;cursor:pointer}
.rep-res__tabs button.is-active{color:inherit;border-bottom-color:#b44bff}
.rep-res .rep-demo__title{font-size:22px}
.rep-res .rep-demo__cards{grid-template-columns:1fr}

/* 作品列表 */
.rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.rep-card{display:flex;flex-direction:column;gap:4px;padding:10px;text-align:left;border-radius:12px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.08);color:inherit;cursor:pointer}
.rep-card.is-active{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.06)}
.rep-card b{font-size:13px}
.rep-card span{font-size:11px;color:var(--studio-dim);overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical}
.rep-card i{font-style:normal;font-size:10px;color:var(--studio-dim)}
.rep-card--new{align-items:center;justify-content:center;border-style:dashed;min-height:92px}

@media (max-width:1180px){
  .rep-demo__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rep-demo__cards .rep-demo-card:nth-child(3){grid-column:span 2}
}
@media (max-width:860px){
  .rep-home{flex-direction:column}
  .rep-rail{width:100%;max-height:none;overflow:visible}
  .rep-demo__cards{grid-template-columns:1fr}
  .rep-demo__cards .rep-demo-card:nth-child(3){grid-column:auto}
  .rep-stage{flex-direction:column}
  .rep-chat,.rep-res{flex:1 1 auto;width:100%}
}

/* ============================================================
   runow-ref.css — 严格对齐 runninghub.cn/runow/hypit 尺寸
   数据来源：对标站 index-D1NMX88f.css + 实测回归
   实测（对标）：.replica-demo 宽度随右栏高度线性变化
     右栏高 845 → demo 933×525
     右栏高 703 → demo 680×382
     右栏高 569 → demo 471×265
   拟合：demo_w ≈ 1.7778 × 右栏高 − 569，右栏高 ≈ min(100dvh − 164, 845)
   第 2 页三步组：宽度 = 94%（上限 1200），比单个演示大得多
   ============================================================ */

/* ---------- 两栏：360 | 20 | 1fr，左右同高 ---------- */
.rep-home{display:flex;gap:20px;align-items:stretch;width:100%}
.rep-rail{width:360px;flex:none;display:flex;flex-direction:column;gap:12px;
  padding:16px;height:clamp(440px,100dvh - 90px,900px);max-height:none;overflow-y:auto;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:18px}

/* ---------- 左上角特性视频：flex 1.15 / 最小 145，完整不裁切 ---------- */
.rep-feature-card{flex:1.15 0 145px;height:auto;min-height:145px;max-height:none;
  margin-bottom:0;border-radius:12px;overflow:hidden}
.rep-feature-card__media{width:100%;height:100%;object-fit:cover;display:block}
.rep-feature-card__overlay{bottom:14px;left:14px;right:14px;padding:0;background:none}
.rep-feature-card__overlay strong{font-size:18px;font-weight:600;line-height:1.3;margin-bottom:5px}
.rep-feature-card__overlay span{font-size:12px;line-height:1.5;opacity:.8}

/* ---------- 上传 / 素材 ---------- */
.rep-upload{flex:.7 0 92px;min-height:92px;margin-bottom:0;border-radius:13px;padding:8px 12px;
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}
.rep-upload__icon{width:30px;height:30px;margin:0 auto 2px;font-size:11px}
.rep-upload__title{font-size:13px;font-weight:500}
.rep-assets{flex:none;margin-bottom:0;border-radius:13px;padding:10px 12px}

/* ---------- 指令框：flex 1.45 / 最小 210 ---------- */
.rep-prompt{flex:1.45 0 210px;min-height:210px;display:flex;flex-direction:column;margin-bottom:0}
.rep-prompt label{font-size:13px;font-weight:500;margin-bottom:10px}
.rep-prompt textarea{flex:auto;min-height:78px;padding:12px;line-height:1.7;border-radius:12px}
.rep-chips{display:none}
.rep-start{flex:none;width:100%;height:46px;border-radius:11px;margin:10px 0 0;font-weight:600}
.rep-free-note{flex:none;margin-top:8px}

/* ---------- 右栏面板 ---------- */
.rep-showcase{flex:1;min-width:0;height:clamp(440px,100dvh - 90px,900px);min-height:0;
  display:flex;flex-direction:column;gap:12px;padding:16px 18px 20px;position:relative;overflow:hidden;
  background:#0d0d11;border:1px solid rgba(255,255,255,.07);border-radius:20px}
.rep-res__tabs{position:static;inset:auto;z-index:auto;margin:0;border-bottom:0;padding:0;background:none}

/* ---------- 轮播骨架 ---------- */
.rep-demo{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}
.rep-demo__viewport{overflow:hidden;touch-action:pan-y;border-radius:16px;outline:none;cursor:grab}
.rep-demo__track{display:flex;align-items:center;transition:transform .32s cubic-bezier(.4,0,.2,1);will-change:transform}
.rep-slide{flex:0 0 100%;min-width:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;padding:0}
.rep-slide:not(.is-active){pointer-events:none}

/* ---------- 第 1 页：单个演示视频（小） ---------- */
.rep-demo__stage{max-width:none;margin:0 auto;border-radius:16px;overflow:hidden;background:#000;border:0;
  width:max(260px, min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px)))}
.rep-demo__video{width:100%;height:auto;aspect-ratio:854/480;max-height:none;object-fit:contain;display:block}

.rep-demo__title{font-size:clamp(22px,1.9vw,28px);font-weight:600;line-height:1.2;
  letter-spacing:-.5px;text-align:center;margin:18px auto 8px;width:min(94%,960px)}
.rep-demo__subtitle{font-size:13px;line-height:1.8;color:var(--studio-dim);
  text-align:center;margin:0 auto;max-width:760px;width:min(94%,960px)}

/* ---------- 第 2 页：三步组（大，94% / 上限 1200） ---------- */
.rep-slide:last-child .rep-demo__title,
.rep-slide:last-child .rep-demo__subtitle{width:min(94%,1200px)}
.rep-slide:last-child .rep-demo__title{margin-top:0;font-size:clamp(24px,2.25vw,36px);margin-bottom:14px}
.rep-demo__cards{width:min(94%,1200px);margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(12px,1.8vw,28px)}
.rep-demo-card{border-radius:12px}
.rep-demo-card__media{aspect-ratio:16/9;border-radius:12px}
.rep-demo-card__body{padding:14px 2px 0}
.rep-demo-card__text strong{font-size:clamp(13px,1.1vw,18px);font-weight:600;line-height:1.55}
.rep-demo-card__text span{font-size:13px;line-height:1.8}

/* ---------- 轮播点（2026-11-06 调小：点 5px、当前点 12×5 胶囊） ---------- */
.rep-demo__dots{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:14px;min-height:16px}
.rep-demo__dots button{position:relative;width:16px;height:16px;padding:0;border:0;border-radius:8px;
  background:none;cursor:pointer}
.rep-demo__dots button::after{content:"";position:absolute;top:50%;left:6px;width:5px;height:5px;
  margin-top:-2.5px;border-radius:10px;background:rgba(255,255,255,.28);transition:width .2s,left .2s,background .2s}
.rep-demo__dots button.is-active::after{width:12px;left:2px;background:rgba(255,255,255,.92)}
.rep-demo__dots button:hover::after{background:rgba(255,255,255,.55)}
.rep-demo__dots button.is-active:hover::after{background:#fff}

/* ---------- 复刻页占满视口（对标 .stage width:min(100%,2048px)） ---------- */
#view:has(.rep-app){max-width:none;width:100%;padding-left:16px;padding-right:16px}
.rep-app{max-width:none;width:100%}
.rep-home{max-width:none;width:100%}

/* ---------- 响应式 ---------- */
@media (height<=760px){
  .rep-demo__stage{width:max(240px, min(94%, calc(1.7778 * min(100dvh - 150px, 845px) - 540px)))}
  .rep-demo__title{margin-top:14px;margin-bottom:6px}
  .rep-demo-card__text span{font-size:12px}
}
@media (width<=1100px){
  .rep-rail{width:320px}
  .rep-demo__stage{width:min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px))}
}

/* ---------- 主站内嵌原生（待办C）：适配主站顶栏与内容区 ---------- */
#view:has(.rep-app){max-width:none;width:100%}
#view:has(.rep-app) .rep-rail,
#view:has(.rep-app) .rep-showcase{height:clamp(440px,100dvh - 168px,900px)}
#view:has(.rep-app) .rep-thread{max-height:42vh}

/* ---------- 2026-11-06 修复：素材预览 + 时长/清晰度选择 ---------- */
.rep-upload__video{width:100%;max-height:150px;border-radius:10px;background:#000;display:block;margin-bottom:8px;object-fit:contain}
.rep-spec{border:1px solid rgba(255,255,255,.09);border-radius:13px;padding:10px 12px;margin-bottom:14px;background:rgba(255,255,255,.02)}
.rep-spec__row{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.rep-spec__row:last-of-type{margin-bottom:0}
.rep-spec__label{flex:none;width:44px;font-size:12px;color:var(--studio-dim)}
.rep-spec__opts{display:flex;flex-wrap:wrap;gap:6px}
.rep-spec__btn{padding:4px 9px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);color:inherit;font:inherit;font-size:12px;cursor:pointer;transition:border-color .15s,background .15s}
.rep-spec__btn:hover{border-color:rgba(180,75,255,.55)}
.rep-spec__btn.is-on{background:#b44bff;border-color:#b44bff;color:#111;font-weight:600}
.rep-spec__tip{margin:8px 0 0;font-size:11px;line-height:1.5;color:var(--studio-dim)}

/* ============================================================
   2026-11-06 v704：黑底 / 底部空白 / 模块可见性 / 品牌字
   ============================================================ */
/* 1) 参考视频不再整块黑底：等比裁切 + 透明底 + 限高 */
.rep-upload__video{width:100%;height:104px;max-height:104px;object-fit:cover;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:10px;display:block;margin:0 0 6px}
.rep-upload.is-filled{flex:0 0 auto;min-height:0;padding:10px 12px;gap:5px}
.rep-upload.is-filled .rep-upload__icon{display:none}
.rep-upload.is-filled .rep-upload__title{font-size:12.5px}
.rep-upload.is-filled .rep-upload__hint{font-size:11px}

/* 2) 去掉强行撑高造成的底部空白 */
.rep-app{min-height:0}
.rep-home{min-height:0}
.rep-rail{padding-bottom:0;gap:10px}

/* 3) 左栏收紧：模板/技能/Agent + 指令区尽量同屏 */
.rep-feature-card{flex:0 0 128px;min-height:128px}
.rep-upload{flex:0 0 84px;min-height:84px}
.rep-assets{padding:8px 12px}
.rep-spec{padding:8px 12px;margin-bottom:0}
.rep-spec__row{margin-bottom:6px}
.rep-spec__tip{margin:6px 0 0;font-size:10.5px}
.rep-prompt{flex:1 1 auto;min-height:130px}
.rep-prompt label{margin-bottom:6px}
.rep-prompt textarea{min-height:62px}
.rep-actions{background:#0d0d11;padding-top:8px}

/* 4) 模块块更紧凑 */
.rep-mod{margin-top:0;padding:8px 10px 10px}
.rep-mod__head{margin:4px 0 6px}
.rep-mod__tpl{flex:0 0 64px;height:50px}
.rep-mod__chip{padding:4px 10px;font-size:11px}

/* 5) 右栏内容顶部对齐，不再垂直居中留白 */
.rep-demo{justify-content:flex-start;gap:10px}
.rep-showcase{padding-bottom:14px}

/* 6) 品牌字：单行横排、完整不裁切 */
.studio-brand__word{flex-direction:row;flex-wrap:nowrap;white-space:nowrap;
  gap:2px;letter-spacing:0;max-width:100%}
.studio-brand__word b{font-size:14px}
.studio-brand__word i{font-size:11px}

/* 7) 右栏演示区：放大预览、留白居中分散（v704c） */
.rep-demo{justify-content:center}
.rep-demo__stage{width:min(94%, calc(1.7778 * (100dvh - 190px)))}
.rep-demo__title{margin-top:14px}

/* 8) 面板吃满可视高度（v704d） */
#view:has(.rep-app) .rep-rail,
#view:has(.rep-app) .rep-showcase{height:clamp(440px, 100dvh - 96px, 900px)}

/* 9) 预览区底色柔化（v704e）：视频未出帧时不再是整块纯黑 */
.rep-demo__stage{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.rep-demo-card__media{background:rgba(255,255,255,.035)}
.rep-demo__video{background:transparent}

/* ============================================================
   v705（2026-11-06）：验收前切断入口 + 轮播尺寸回退对标
   ============================================================ */
/* 1) 复刻工作台入口先切断（验收通过后删掉这三条即可恢复） */
#rwEntry{display:none !important}
.studio-nav a[href="#/replica"],
.studio-nav [data-route="replica"],
.studio-nav [data-key="replica"]{display:none !important}

/* 2) 轮播演示视频回到对标尺寸（撤销 v704c 的放大） */
.rep-demo__stage{width:max(260px, min(94%, calc(1.7778 * min(100dvh - 164px, 845px) - 569px)));
  max-width:902px;background:#0b0b0f;border:1px solid rgba(255,255,255,.07)}
.rep-demo__video{width:100%;height:auto;aspect-ratio:854/480;max-height:none;object-fit:contain}
.rep-demo{justify-content:center}

/* ============================================================
   v706：复刻台功能菜单条 + 左栏收紧
   ============================================================ */
.rep-subnav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 4px}
.rep-subnav__item{display:inline-flex;align-items:center;height:34px;padding:0 16px;border-radius:999px;
  font-size:13.5px;color:rgba(255,255,255,.66);text-decoration:none;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);
  transition:background .16s,color .16s,border-color .16s}
.rep-subnav__item:hover{color:#fff;background:rgba(124,92,255,.18);border-color:rgba(139,107,255,.5)}
.rep-subnav__item.is-on{color:#111;background:#f4f4f4;border-color:#f4f4f4;font-weight:600}
/* 上传了参考视频后收起特性视频，把空间让给模板/技能/Agent/参数 */
.rep-rail:has(.rep-upload.is-filled) .rep-feature-card{display:none}
.rep-mod__tpl{flex:0 0 56px;height:44px}


/* ===== 2026-11-13 复刻工作台双 Tab（对标 CreatOK：结构复刻 / 换人换物） ===== */
.rep-flow{display:flex;gap:6px;padding:5px;border-radius:13px;
  background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);margin-bottom:2px}
.rep-flow__btn{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;
  padding:9px 6px;border:0;border-radius:9px;background:transparent;cursor:pointer;
  color:var(--studio-dim,#9a9a9a);transition:background .18s,color .18s;font:inherit;line-height:1.2}
.rep-flow__btn:hover{background:rgba(255,255,255,.05);color:#e8e8e8}
.rep-flow__btn.is-on{background:rgba(180,75,255,.16);color:#fff;
  box-shadow:inset 0 0 0 1px rgba(180,75,255,.42)}
.rep-flow__btn i{font-style:normal;font-size:13px;opacity:.9}
.rep-flow__btn b{font-size:13px;font-weight:600;white-space:nowrap}
.rep-flow__btn em{font-style:normal;font-size:10.5px;opacity:.62;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* 人物替换表单 */
.rep-cast{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)}
.rep-cast__note{font-size:12.5px;line-height:1.65;color:var(--studio-ink-soft,#c9c9c9)}
.rep-cast__warn{font-size:12px;line-height:1.6;padding:8px 10px;border-radius:9px;
  background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.3);color:#fbbf24}
.rep-cast__row{display:flex;flex-direction:column;gap:7px}
.rep-cast__label{font-size:12.5px;font-weight:600;color:#e6e6e6}
.rep-cast__label b{color:#f87171;font-weight:700}
.rep-cast__pick{position:relative;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:6px;min-height:96px;padding:10px;border-radius:12px;
  border:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.02);
  cursor:pointer;transition:border-color .18s,background .18s}
.rep-cast__pick:hover{border-color:rgba(180,75,255,.6);background:rgba(180,75,255,.05)}
.rep-cast__pick.is-filled{border-style:solid;border-color:rgba(180,75,255,.45)}
.rep-cast__pick img{width:72px;height:72px;object-fit:cover;border-radius:10px;display:block}
.rep-cast__pick span{font-size:22px;color:var(--studio-dim,#8a8a8a);line-height:1}
.rep-cast__pick em{font-style:normal;font-size:11.5px;color:var(--studio-dim,#9a9a9a)}
.rep-cast__check{display:flex;align-items:center;gap:7px;font-size:12.5px;
  color:var(--studio-ink-soft,#c9c9c9);cursor:pointer;user-select:none}
.rep-cast__check input{width:14px;height:14px;accent-color:#b44bff;cursor:pointer}
.rep-cast__meta{font-size:11.5px;color:var(--studio-dim,#8f8f8f)}

@media (max-width:720px){
  .rep-flow__btn em{display:none}
  .rep-flow__btn b{font-size:12.5px}
  .rep-cast{padding:12px;gap:9px}
  .rep-cast__pick{min-height:84px}
  .rep-cast__pick img{width:60px;height:60px}
}
