#rp-weave-page{
  position:absolute;
  inset:0;
  z-index:42;
  overflow:hidden;
  background:linear-gradient(160deg,#fff7fb 0%,#f2f6ff 48%,#fff0f7 100%);
  color:#4c3d54;
}

#rp-weave-root{
  height:100%;
}

#rp-weave-page button,
#rp-weave-page input,
#rp-weave-page textarea,
#rp-weave-page select{
  font:inherit;
  box-sizing:border-box;
}

#rp-weave-page button{
  cursor:pointer;
}

#rp-weave-page button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.rp-weave-shell{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px;
  box-sizing:border-box;
  overflow:hidden;
}

.rp-weave-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex:0 0 auto;
}

.rp-weave-topbar h1{
  margin:0;
  color:#c05080;
  font-size:1.35rem;
  letter-spacing:.04em;
}

.rp-weave-kicker{
  color:#a57590;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.rp-weave-back,
.rp-weave-primary,
.rp-weave-secondary,
.rp-weave-ghost{
  border:none;
  border-radius:12px;
  min-height:38px;
  padding:8px 14px;
  font-weight:700;
}

.rp-weave-back,
.rp-weave-secondary{
  color:#c05080;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(214,124,165,.25);
}

.rp-weave-primary{
  color:#fff;
  background:linear-gradient(135deg,#d86098,#f08ab3);
  box-shadow:0 8px 18px rgba(208,80,144,.18);
}

.rp-weave-ghost{
  color:#9b5f7c;
  background:rgba(255,255,255,.55);
}

.rp-weave-status{
  flex:0 0 auto;
  min-height:20px;
  padding:8px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(214,124,165,.16);
  color:#7d5c70;
  font-size:.84rem;
}

.rp-weave-status-error{
  color:#a73552;
  background:rgba(255,235,240,.9);
}

.rp-weave-status-success{
  color:#337a55;
  background:rgba(235,255,244,.9);
}

.rp-weave-layout{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(260px,.9fr) minmax(280px,1fr) minmax(320px,1.15fr);
  gap:12px;
}

.rp-weave-card{
  min-height:0;
  overflow:auto;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(214,124,165,.18);
  border-radius:18px;
  padding:14px;
  box-shadow:0 10px 30px rgba(120,70,100,.08);
}

.rp-weave-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.rp-weave-player-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.rp-weave-player-user-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin:-2px 0 10px;
  padding:6px 8px;
  border-radius:12px;
  background:rgba(255,255,255,.34);
}

.rp-weave-user-avatar-toggle{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:32px;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.62);
  color:#9b5f7c;
  font-size:.78rem;
  font-weight:700;
  white-space:nowrap;
}

.rp-weave-user-avatar-toggle input{
  width:auto;
  margin:0;
}

.rp-weave-user-avatar-select{
  width:auto;
  max-width:170px;
  min-height:32px;
  padding:4px 8px;
  border:1px solid rgba(214,124,165,.22);
  border-radius:999px;
  background:rgba(255,255,255,.7);
  color:#7d5c70;
  font-size:.78rem;
  font-weight:700;
}

.rp-weave-fullscreen-toggle{
  width:38px;
  min-width:38px;
  height:38px;
  padding:0;
  font-size:1.25rem;
  line-height:1;
}

.rp-weave-card-title{
  color:#c05080;
  font-size:1rem;
  font-weight:800;
  margin-bottom:10px;
}

.rp-weave-subtitle{
  margin-top:16px;
}

.rp-weave-muted,
.rp-weave-note,
.rp-weave-empty{
  color:#8a7080;
  font-size:.82rem;
  line-height:1.55;
}

.rp-weave-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#6a5261;
  font-size:.84rem;
  font-weight:700;
  margin-bottom:10px;
}

.rp-weave-field input,
.rp-weave-field textarea,
.rp-weave-field select,
.rp-weave-save-row input{
  width:100%;
  border:1px solid rgba(214,124,165,.22);
  border-radius:12px;
  background:rgba(255,255,255,.82);
  color:#4c3d54;
  outline:none;
  padding:10px 12px;
  line-height:1.45;
}

.rp-weave-field textarea{
  resize:vertical;
}

.rp-weave-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.rp-weave-checks{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:4px 0 12px;
  color:#6a5261;
  font-size:.84rem;
}

.rp-weave-checks label{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,232,241,.75);
}

.rp-weave-source-block{
  margin:10px 0 12px;
}

.rp-weave-tier-select{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.rp-weave-tier-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.rp-weave-tier-card{
  min-width:0;
  padding:10px;
  border:1px solid rgba(214,124,165,.18);
  border-radius:8px;
  background:rgba(255,250,253,.66);
  color:#5c4a5f;
}

.rp-weave-tier-card.rp-weave-tier-active{
  border-color:rgba(192,80,128,.5);
  background:rgba(255,238,246,.9);
  box-shadow:0 6px 16px rgba(192,80,128,.08);
}

.rp-weave-tier-card label{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:4px 8px;
  align-items:start;
  cursor:pointer;
}

.rp-weave-tier-card input{
  margin-top:3px;
}

.rp-weave-tier-card b,
.rp-weave-tier-card span{
  min-width:0;
}

.rp-weave-tier-card b{
  color:#c05080;
}

.rp-weave-tier-card span,
.rp-weave-tier-card p,
.rp-weave-tier-card summary{
  font-size:.78rem;
  line-height:1.5;
}

.rp-weave-tier-card span{
  grid-column:2;
  color:#7d5c70;
}

.rp-weave-tier-card details,
.rp-weave-tier-card p{
  margin:8px 0 0;
}

.rp-weave-tier-card summary{
  cursor:pointer;
  color:#9b5f7c;
  font-weight:800;
}

.rp-weave-production-custom{
  padding:10px;
  border:1px solid rgba(214,124,165,.16);
  border-radius:8px;
  background:rgba(255,255,255,.48);
}

.rp-weave-source-title{
  color:#6a5261;
  font-size:.84rem;
  font-weight:800;
  margin-bottom:7px;
}

.rp-weave-source-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:132px;
  overflow:auto;
  padding:8px;
  border:1px solid rgba(214,124,165,.18);
  border-radius:14px;
  background:rgba(255,250,253,.62);
}

.rp-weave-source-item{
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:#5c4a5f;
  font-size:.82rem;
  line-height:1.4;
}

.rp-weave-source-item input{
  flex:0 0 auto;
  margin-top:2px;
}

.rp-weave-source-item b{
  display:block;
}

.rp-weave-source-item small{
  display:block;
  color:#98778a;
  font-size:.74rem;
}

.rp-weave-project-list,
.rp-weave-task-list,
.rp-weave-save-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.rp-weave-project-item,
.rp-weave-save-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-align:left;
  border:1px solid rgba(214,124,165,.18);
  border-radius:14px;
  background:rgba(255,255,255,.7);
  color:#57475a;
  padding:10px 12px;
}

.rp-weave-project-active{
  border-color:rgba(208,80,144,.55);
  background:rgba(255,235,244,.95);
}

.rp-weave-project-title{
  font-weight:800;
}

.rp-weave-project-meta,
.rp-weave-save-item small{
  color:#98778a;
  font-size:.76rem;
}

.rp-weave-actions,
.rp-weave-player-controls,
.rp-weave-save-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.rp-weave-save-row input{
  flex:1 1 140px;
}

.rp-weave-task-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:9px 10px;
  border-radius:13px;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(214,124,165,.14);
}

.rp-weave-task-name{
  color:#5c4a5f;
  font-weight:800;
  font-size:.86rem;
}

.rp-weave-task-error{
  color:#a73552;
  font-size:.76rem;
  line-height:1.45;
  margin-top:3px;
  word-break:break-word;
}

.rp-weave-task-item>div:first-child{
  flex:1 1 auto;
  min-width:0;
}

.rp-weave-task-error-reason{
  font-weight:700;
}

.rp-weave-task-error-meta,
.rp-weave-task-error-check{
  margin-top:3px;
  color:#825568;
}

.rp-weave-task-error-check{
  color:#9a3957;
}

.rp-weave-task-error-details{
  margin-top:6px;
  max-width:100%;
}

.rp-weave-task-error-details summary{
  width:max-content;
  max-width:100%;
  cursor:pointer;
  color:#8a526b;
  font-weight:700;
}

.rp-weave-task-error-details pre{
  box-sizing:border-box;
  max-width:100%;
  max-height:180px;
  overflow:auto;
  margin:6px 0 0;
  padding:7px 8px;
  border-radius:8px;
  background:rgba(112,54,79,.08);
  color:#6e4457;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:11px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;
}

.rp-weave-task-skip-body{
  margin-top:6px;
  padding:7px 8px;
  border-radius:8px;
  background:rgba(112,54,79,.06);
}

.rp-weave-task-skip-row+.rp-weave-task-skip-row{
  margin-top:3px;
}

.rp-weave-task-bulk{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 10px;
  border-radius:13px;
  background:rgba(255,245,249,.78);
  border:1px dashed rgba(192,80,128,.28);
}

.rp-weave-task-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:7px;
}
.rp-weave-task-retry,
.rp-weave-task-config{
  margin-top:7px;
  border:none;
  border-radius:999px;
  padding:5px 10px;
  color:#fff;
  background:linear-gradient(135deg,#c05080,#e17aa4);
  font-size:.76rem;
  font-weight:800;
}

.rp-weave-task-actions .rp-weave-task-retry,
.rp-weave-task-actions .rp-weave-task-config{
  margin-top:0;
}

.rp-weave-task-config{
  color:#8d4060;
  background:rgba(255,245,249,.95);
  border:1px solid rgba(192,80,128,.24);
}

.rp-weave-task-retry-all{
  margin-top:0;
}

.rp-weave-task-pill{
  flex:0 0 auto;
  color:#8d6078;
  background:rgba(255,230,240,.75);
  border-radius:999px;
  padding:3px 8px;
  font-size:.74rem;
}

.rp-weave-task-success .rp-weave-task-pill{
  color:#357554;
  background:rgba(225,250,235,.9);
}

.rp-weave-task-failed .rp-weave-task-pill{
  color:#a73552;
  background:rgba(255,225,232,.9);
}

.rp-weave-task-running .rp-weave-task-pill{
  color:#8a6500;
  background:rgba(255,244,206,.95);
}

.rp-weave-task-skipped .rp-weave-task-pill{
  color:#6f6470;
  background:rgba(238,236,240,.95);
}

.rp-weave-player-card{
  position:relative;
  display:flex;
  flex-direction:column;
}

.rp-weave-player-card #rp-user-avatar-float{
  z-index:12!important;
}

.rp-weave-player-card #rp-shared-pixi-global-canvas{
  position:absolute!important;
  left:0!important;
  top:0!important;
  width:100%!important;
  height:100%!important;
  z-index:12!important;
}

.rp-weave-player-card:fullscreen,
.rp-weave-player-card:-webkit-full-screen,
.rp-weave-player-card.rp-weave-player-immersive{
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right))
    max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
  border:none;
  border-radius:0;
  overflow:auto;
  background:#fff7fb;
  box-sizing:border-box;
  z-index:100001;
}

.rp-weave-player-card.rp-weave-player-immersive{
  position:fixed;
  inset:0;
}

.rp-weave-player-card:fullscreen .rp-weave-stage,
.rp-weave-player-card:-webkit-full-screen .rp-weave-stage,
.rp-weave-player-card.rp-weave-player-immersive .rp-weave-stage{
  min-height:min(56vh,620px);
}

.rp-weave-player-card:fullscreen .rp-weave-live2d-stage,
.rp-weave-player-card:-webkit-full-screen .rp-weave-live2d-stage,
.rp-weave-player-card.rp-weave-player-immersive .rp-weave-live2d-stage{
  min-height:min(42vh,480px);
}

.rp-weave-live2d-stage{
  display:none;
  min-height:clamp(240px,38vh,420px);
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
  position:relative;
}

.rp-weave-live2d-stage.rp-weave-live2d-active{
  display:flex;
}

.rp-weave-player-card:not(.rp-weave-is-fullscreen) .rp-weave-live2d-stage{
  display:none;
  min-height:0;
  height:0;
}

.rp-weave-live2d-user-canvas{
  width:min(72%,320px);
  height:clamp(240px,38vh,420px);
  flex:0 0 auto;
}

.rp-weave-stage{
  flex:1 1 auto;
  min-height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  padding:16px;
  background:linear-gradient(155deg,rgba(67,47,77,.92),rgba(99,64,93,.9));
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.rp-weave-line{
  width:100%;
}

.rp-weave-speaker{
  display:inline-flex;
  margin-bottom:8px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#ffd8e6;
  font-size:.82rem;
  font-weight:800;
}

.rp-weave-text{
  font-size:1rem;
  line-height:1.8;
  white-space:pre-wrap;
}

.rp-weave-line-thought .rp-weave-text{
  color:#f0dff0;
  font-style:italic;
}

.rp-weave-line-stage .rp-weave-text{
  color:#d8efff;
}

.rp-weave-phone-toast-layer{
  position:relative;
  z-index:46;
  flex:0 0 auto;
  display:flex;
  justify-content:flex-end;
  width:100%;
  max-width:100%;
  margin:10px 0 12px;
  pointer-events:none;
}

.rp-weave-phone-toast-layer:empty{
  display:none;
}

.rp-weave-phone-toast-layer .rp-weave-phone-notice{
  pointer-events:auto;
}

.rp-weave-phone-notice{
  width:min(440px,100%);
  margin:0;
  padding:14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(20,32,36,.92),rgba(42,58,54,.88));
  box-shadow:0 16px 38px rgba(0,0,0,.26),inset 0 0 0 1px rgba(255,255,255,.05);
  display:flex;
  flex-direction:column;
  gap:8px;
}

.rp-weave-phone-notice-meta{
  color:#9ff0c2;
  font-size:.78rem;
  font-weight:800;
}

.rp-weave-phone-notice-title{
  color:#fff;
  font-size:1rem;
  font-weight:800;
}

.rp-weave-phone-notice-preview{
  color:rgba(255,255,255,.86);
  font-size:.92rem;
  line-height:1.6;
  white-space:pre-wrap;
}

.rp-weave-phone-notice-hint{
  color:rgba(210,255,226,.82);
  font-size:.78rem;
}

.rp-weave-phone-notice-open{
  align-self:flex-start;
  padding:8px 12px;
  border:0;
  border-radius:8px;
  background:#07c160;
  color:#fff;
  font-size:.88rem;
  font-weight:800;
  cursor:pointer;
}

@media (max-width:560px){
  .rp-weave-phone-toast-layer{
    margin:8px 0 10px;
  }
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-phone-toast-layer{
  position:absolute;
  top:max(62px,env(safe-area-inset-top) + 50px);
  right:max(12px,env(safe-area-inset-right));
  width:min(360px,calc(100% - 24px));
  max-width:none;
  margin:0;
}

.rp-weave-media-image{
  display:block;
  max-width:100%;
  max-height:360px;
  margin-top:14px;
  border-radius:16px;
  object-fit:contain;
  box-shadow:0 12px 28px rgba(0,0,0,.24);
}

.rp-weave-media-video{
  display:block;
  width:100%;
  max-height:420px;
  margin-top:14px;
  border-radius:16px;
  background:#111;
  box-shadow:0 12px 28px rgba(0,0,0,.24);
}

.rp-weave-media-audio{
  display:block;
  width:100%;
  margin-top:14px;
  accent-color:#d86098;
}

.rp-weave-director-panel:empty{
  display:none;
}

.rp-weave-director-card{
  margin-top:16px;
  padding:16px;
  border:1px solid rgba(216,96,152,.22);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,245,250,.9),rgba(245,250,255,.86));
}

.rp-weave-director-title{
  font-weight:800;
  color:#8a2d62;
  margin-bottom:6px;
}

.rp-weave-director-note,
.rp-weave-director-section{
  font-size:.86rem;
  line-height:1.6;
  color:#6a5266;
}

.rp-weave-director-section{
  margin-top:12px;
}

.rp-weave-director-section p,
.rp-weave-director-section ul{
  margin:6px 0 0;
}

.rp-weave-director-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.rp-weave-director-section .rp-weave-review-issue-list{
  display:grid;
  gap:8px;
  max-height:min(42vh,360px);
  margin:6px 0 0;
  padding:0 4px 0 0;
  overflow-y:auto;
  overscroll-behavior:contain;
  list-style:none;
}

.rp-weave-review-issue{
  padding:10px 12px;
  border-left:3px solid rgba(216,96,152,.55);
  border-radius:12px;
  background:rgba(255,255,255,.72);
  overflow-wrap:anywhere;
}

.rp-weave-review-issue.is-functional{
  border-left-color:#d34c62;
}

.rp-weave-review-group-title{
  margin:0 0 6px;
  color:#8a2d62;
  font-weight:700;
}

.rp-weave-review-issue-choice{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:0 0 4px;
  cursor:pointer;
}

.rp-weave-review-quality-choice{
  width:16px;
  height:16px;
  margin:2px 0 0;
  accent-color:#8a2d62;
  flex:0 0 auto;
}

.rp-weave-choice-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

.rp-weave-player-card:not(.rp-weave-is-fullscreen) .rp-weave-choice-list{
  max-height:min(42vh,24rem);
  overflow-y:auto;
  overscroll-behavior:contain;
}

.rp-weave-choice{
  flex:0 0 auto;
  width:100%;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#fff,#ffeaf2);
  color:#c05080;
  padding:11px 13px;
  text-align:left;
  font-weight:800;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
}

.rp-weave-ending{
  width:100%;
  text-align:center;
  color:#ffe5f0;
  font-size:1.1rem;
  font-weight:900;
}

.rp-weave-error{
  color:#ffe4e4;
}

.rp-weave-history{
  margin-top:12px;
  color:#6a5261;
  font-size:.84rem;
}

.rp-weave-history summary{
  cursor:pointer;
  font-weight:800;
  color:#c05080;
}

.rp-weave-history-line{
  padding:7px 0;
  border-bottom:1px solid rgba(214,124,165,.12);
  line-height:1.55;
}

.rp-weave-history-line b{
  display:inline-block;
  min-width:54px;
  color:#a55f7c;
  margin-right:8px;
}

@media (max-width:920px){
  #rp-weave-page{
    overflow:auto;
  }
  #rp-weave-root{
    height:auto;
    min-height:100%;
  }
  .rp-weave-shell{
    height:auto;
    min-height:100%;
    overflow:visible;
  }
  .rp-weave-layout{
    flex:0 0 auto;
    min-height:auto;
    display:flex;
    flex-direction:column;
    overflow:visible;
  }
  .rp-weave-card{
    flex:0 0 auto;
    min-height:auto;
    overflow:visible;
  }
  .rp-weave-live2d-stage,
  .rp-weave-live2d-user-canvas{
    min-height:280px;
    height:280px;
  }
}

@media (max-width:560px){
  .rp-weave-topbar,
  .rp-weave-card-head{
    align-items:flex-start;
  }
  .rp-weave-tier-grid{
    grid-template-columns:1fr;
  }
  .rp-weave-player-controls,
  .rp-weave-actions,
  .rp-weave-save-row{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .rp-weave-player-controls > *,
  .rp-weave-actions > *,
  .rp-weave-save-row > *{
    min-width:0;
    width:100%;
  }
  .rp-weave-save-row input{
    grid-column:1 / -1;
  }
  .rp-weave-director-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .rp-weave-director-actions > *{
    min-width:0;
    width:100%;
    white-space:normal;
  }
  .rp-weave-player-card:fullscreen .rp-weave-stage,
  .rp-weave-player-card:-webkit-full-screen .rp-weave-stage,
  .rp-weave-player-card.rp-weave-player-immersive .rp-weave-stage{
    min-height:44vh;
  }
  .rp-weave-player-card:fullscreen .rp-weave-live2d-stage,
  .rp-weave-player-card:-webkit-full-screen .rp-weave-live2d-stage,
  .rp-weave-player-card.rp-weave-player-immersive .rp-weave-live2d-stage{
    min-height:34vh;
  }
}

.rp-weave-stage-visual,
.rp-weave-scene-layer,
.rp-weave-sprite-layer,
.rp-weave-cg-layer{
  position:absolute;
  inset:0;
  pointer-events:none;
}

.rp-weave-stage-visual{
  display:none;
  overflow:hidden;
}

.rp-weave-scene-layer{
  z-index:1;
  overflow:hidden;
  perspective:1400px;
}

.rp-weave-scene-frame{
  position:absolute;
  inset:0;
  transform-origin:left center;
  backface-visibility:hidden;
}

.rp-weave-scene-incoming{
  z-index:2;
}

.rp-weave-scene-outgoing{
  z-index:1;
}

.rp-weave-scene-layer[data-rp-weave-transition="fade"] .rp-weave-scene-outgoing{
  animation:rp-weave-scene-fade-out .46s ease both;
}

.rp-weave-scene-layer[data-rp-weave-transition="fade"] .rp-weave-scene-incoming{
  animation:rp-weave-scene-fade-in .46s ease both;
}

@keyframes rp-weave-scene-fade-out{from{opacity:1}to{opacity:0}}
@keyframes rp-weave-scene-fade-in{from{opacity:0}to{opacity:1}}

.rp-weave-scene-layer[data-rp-weave-transition="page"] .rp-weave-scene-outgoing{
  animation:rp-weave-scene-page-out .58s cubic-bezier(.55,.05,.35,1) both;
}

.rp-weave-scene-layer[data-rp-weave-transition="page"] .rp-weave-scene-incoming{
  animation:rp-weave-scene-page-in .58s cubic-bezier(.55,.05,.35,1) both;
}

.rp-weave-scene-layer[data-rp-weave-transition="slide"] .rp-weave-scene-outgoing{
  animation:rp-weave-scene-slide-out .5s cubic-bezier(.4,0,.2,1) both;
}

.rp-weave-scene-layer[data-rp-weave-transition="slide"] .rp-weave-scene-incoming{
  animation:rp-weave-scene-slide-in .5s cubic-bezier(.4,0,.2,1) both;
}

@keyframes rp-weave-scene-page-out{from{transform:rotateY(0);opacity:1}to{transform:rotateY(88deg);opacity:.18}}
@keyframes rp-weave-scene-page-in{from{transform:rotateY(-88deg);opacity:.18}to{transform:rotateY(0);opacity:1}}
@keyframes rp-weave-scene-slide-out{from{transform:translateX(0)}to{transform:translateX(-14%);opacity:.35}}
@keyframes rp-weave-scene-slide-in{from{transform:translateX(100%)}to{transform:translateX(0)}}

@media (prefers-reduced-motion:reduce){
  .rp-weave-scene-frame{
    animation:none!important;
    transition:none!important;
  }
}
}

.rp-weave-cg-layer{
  z-index:20;
}

.rp-weave-sprite-layer{
  z-index:12;
}

.rp-weave-stage-media,
.rp-weave-cg-media{
  width:100%;
  height:100%;
  object-fit:cover;
}

.rp-weave-sprite-layer{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:2vw;
  padding:4vh 4vw 0;
}

.rp-weave-sprite{
  height:90%;
  flex:1 1 0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}

.rp-weave-sprite-media{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.32));
}

.rp-weave-cg-layer:has(.rp-weave-cg-media){
  background:#05040a;
}

.rp-weave-cg-layer .rp-weave-cg-media{
  object-fit:contain;
}

.rp-weave-immersive-menu{
  display:none;
}

.rp-weave-ui-style-panel{
  display:none;
}

.rp-weave-ui-style-panel.show{
  display:grid;
  position:absolute;
  z-index:86;
  top:72px;
  left:50%;
  width:min(320px,calc(100% - 28px));
  gap:8px;
  padding:14px;
  transform:translateX(-50%);
  border:1px solid rgba(255,255,255,.24);
  border-radius:16px;
  color:#fff;
  background:rgba(20,16,30,.94);
  box-shadow:0 18px 50px rgba(0,0,0,.32);
  backdrop-filter:blur(18px);
}

.rp-weave-ui-style-title{
  font-weight:800;
  text-align:center;
}

.rp-weave-ui-style-panel button{
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.08);
  cursor:pointer;
}

.rp-weave-ui-style-panel button.active,
.rp-weave-ui-style-panel button[aria-pressed="true"]{
  border-color:rgba(255,255,255,.7);
  background:linear-gradient(135deg,#d86098,#7b6fd0);
  box-shadow:0 8px 22px rgba(123,111,208,.32);
}

.rp-weave-persona-modal{
  display:none;
  position:absolute;
  inset:0;
  z-index:92;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(10,8,18,.58);
  backdrop-filter:blur(8px);
}

.rp-weave-persona-modal.show{
  display:flex;
}

.rp-weave-persona-dialog{
  width:min(620px,100%);
  max-height:min(80vh,720px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.32);
  border-radius:18px;
  color:#4f4058;
  background:linear-gradient(155deg,#fff9fc,#f3f1ff);
  box-shadow:0 24px 70px rgba(15,10,30,.36);
}

.rp-weave-persona-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid rgba(123,111,208,.16);
}

.rp-weave-persona-head button{
  border:0;
  background:transparent;
  font-size:1.5rem;
  cursor:pointer;
}

.rp-weave-persona-body{
  padding:16px;
}

.rp-weave-persona-summary{
  display:grid;
  grid-template-columns:minmax(120px,190px) 1fr;
  gap:16px;
  align-items:start;
}

.rp-weave-persona-preview{
  display:flex;
  width:100%;
  aspect-ratio:3/4;
  align-items:center;
  justify-content:center;
  object-fit:contain;
  border-radius:14px;
  color:#8a7695;
  background:rgba(123,111,208,.09);
}

.rp-weave-persona-summary dl{
  display:grid;
  grid-template-columns:max-content 1fr;
  gap:9px 12px;
  margin:0;
}

.rp-weave-persona-summary dt{
  color:#8b6e82;
  font-weight:800;
}

.rp-weave-persona-summary dd{
  margin:0;
}

.rp-weave-persona-description{
  margin-top:16px;
  padding:14px;
  border-radius:12px;
  background:rgba(255,255,255,.72);
}

.rp-weave-persona-description p,
.rp-weave-persona-empty{
  white-space:pre-wrap;
  line-height:1.7;
}

@media (max-width:560px){
  .rp-weave-player-card:not(.rp-weave-is-fullscreen) .rp-weave-persona-modal{
    position:fixed;
  }
  .rp-weave-persona-modal{
    padding:8px;
  }
  .rp-weave-persona-dialog{
    max-height:92vh;
  }
  .rp-weave-persona-summary{
    grid-template-columns:1fr;
  }
  .rp-weave-persona-preview{
    max-height:36vh;
  }
}

.rp-weave-player-card[data-weave-ui-mode="gradient"]{
  --rp-weave-primary:#ff67b3;
  --rp-weave-secondary:#6d70ff;
  --rp-weave-text-color:#fff;
  --rp-weave-panel-color:rgba(32,24,70,.84);
  border-color:rgba(171,142,255,.72);
  background:
    radial-gradient(circle at 14% 14%,rgba(255,103,179,.32),transparent 38%),
    radial-gradient(circle at 86% 20%,rgba(88,190,255,.3),transparent 40%),
    linear-gradient(145deg,#251d4c,#17152f 58%,#361b4c);
}

.rp-weave-player-card[data-weave-ui-mode="gradient"] .rp-weave-stage{
  border-color:rgba(196,172,255,.42);
  background:linear-gradient(145deg,rgba(29,29,72,.9),rgba(83,34,93,.82));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 20px 55px rgba(19,14,52,.35);
}

.rp-weave-player-card[data-weave-ui-mode="gradient"] .rp-weave-player-controls button,
.rp-weave-player-card[data-weave-ui-mode="gradient"] .rp-weave-choice{
  border-color:rgba(255,255,255,.24);
  color:#fff;
  background:linear-gradient(135deg,rgba(255,92,174,.9),rgba(99,101,255,.92));
}

.rp-weave-player-card[data-weave-ui-mode="gradient"] .rp-weave-immersive-menu{
  background:linear-gradient(155deg,rgba(44,31,91,.96),rgba(91,37,92,.94));
}

.rp-weave-menu-toggle{
  display:none;
}

.rp-weave-player-progress{
  display:none;
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen){
  max-height:min(78vh,720px);
  overflow:auto;
  overscroll-behavior:contain;
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-card-head{
  align-items:flex-start;
  flex-wrap:wrap;
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-player-head-actions{
  width:100%;
  justify-content:space-between;
  flex-wrap:wrap;
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-player-controls,
.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-save-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-player-controls > *,
.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-save-row > *{
  width:100%;
  min-width:0;
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-save-row input{
  grid-column:1 / -1;
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-stage{
  min-height:220px;
  max-height:min(38vh,320px);
  overflow:auto;
  padding:12px;
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) > #rp-phone-ov.show{
  position:relative;
  top:auto;
  left:auto;
  right:auto;
  bottom:auto;
  width:100%;
  height:min(68vh,620px);
  max-height:min(68vh,620px);
  margin:10px 0;
  border-radius:16px;
  overflow:hidden;
  flex:0 0 auto;
}

.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-live2d-stage,
.rp-weave-player-card.rp-weave-portrait-container:not(.rp-weave-is-fullscreen) .rp-weave-live2d-user-canvas{
  min-height:240px;
  height:240px;
}

.rp-weave-player-card.rp-weave-is-fullscreen{
  --rp-weave-primary:#d86b9b;
  --rp-weave-secondary:#7b6fd0;
  --rp-weave-text-color:#fff7fb;
  --rp-weave-panel-color:rgba(28,20,38,.82);
  position:fixed;
  inset:0;
  isolation:isolate;
  overflow:hidden;
  padding:0;
  background:#100d18;
  color:var(--rp-weave-text-color);
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-card-head{
  position:absolute;
  inset:0 0 auto;
  z-index:60;
  margin:0;
  padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 0;
  pointer-events:none;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-card-title,
.rp-weave-player-card.rp-weave-is-fullscreen #rp-weave-player-state,
.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-fullscreen-toggle{
  display:none;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-player-user-controls{
  display:none;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-player-head-actions{
  margin-left:auto;
  pointer-events:auto;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-menu-toggle{
  display:block;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:50%;
  color:#fff;
  background:rgba(20,16,30,.58);
  backdrop-filter:blur(12px);
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-stage-visual{
  display:block;
  z-index:auto;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-live2d-stage{
  display:flex;
  position:absolute;
  inset:0;
  z-index:12;
  min-height:0;
  pointer-events:none;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-stage{
  position:absolute;
  z-index:30;
  left:clamp(12px,7vw,110px);
  right:clamp(12px,7vw,110px);
  bottom:calc(max(60px,env(safe-area-inset-bottom) + 52px) + 18px);
  min-height:0;
  border:1px solid rgba(255,255,255,.2);
  border-radius:18px;
  padding:18px 22px;
  align-items:flex-start;
  justify-content:flex-start;
  background:var(--rp-weave-panel-color);
  color:var(--rp-weave-text-color);
  box-shadow:0 14px 50px rgba(0,0,0,.38);
  backdrop-filter:blur(14px);
  cursor:pointer;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-speaker{
  background:linear-gradient(135deg,var(--rp-weave-primary),var(--rp-weave-secondary));
  color:#fff;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-player-controls{
  position:absolute;
  z-index:40;
  left:50%;
  bottom:max(10px,env(safe-area-inset-bottom));
  transform:translateX(-50%);
  display:grid;
  grid-template-columns:auto minmax(90px,auto) auto;
  align-items:center;
  gap:10px;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-player-controls > :nth-child(n+4){
  display:none;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-player-progress{
  display:block;
  min-width:90px;
  color:#fff;
  text-align:center;
  font-size:.78rem;
  text-shadow:0 2px 8px rgba(0,0,0,.8);
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-player-controls button{
  min-width:86px;
  border:1px solid rgba(255,255,255,.24);
  color:#fff;
  background:rgba(20,16,30,.66);
  backdrop-filter:blur(12px);
}

.rp-weave-sprite-edit-bar,
.rp-weave-sprite-size-panel{
  display:none;
  position:absolute;
  z-index:64;
  pointer-events:auto;
  align-items:center;
  gap:8px;
  color:#fff;
  background:rgba(20,16,30,.72);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  backdrop-filter:blur(14px);
}

.rp-weave-sprite-edit-bar{
  left:50%;
  top:max(14px,env(safe-area-inset-top));
  transform:translateX(-50%);
  padding:7px 14px;
  border-radius:16px;
  font-size:.78rem;
}

.rp-weave-sprite-size-panel{
  left:max(12px,env(safe-area-inset-left));
  top:max(62px,env(safe-area-inset-top) + 54px);
  padding:8px 10px;
  border-radius:14px;
  font-size:.76rem;
}

.rp-weave-sprite-size-panel input{
  width:150px;
  accent-color:var(--rp-weave-primary);
}

.rp-weave-sprite-size-panel button{
  border:0;
  border-radius:10px;
  padding:4px 9px;
  color:#fff;
  background:rgba(255,255,255,.16);
  cursor:pointer;
}

.rp-weave-static-sprite-wrap{
  position:relative;
  pointer-events:none;
}

.rp-weave-sprite > .rp-weave-static-sprite-wrap{
  width:auto;
  height:100%;
  max-width:100%;
  aspect-ratio:.52;
  flex:0 1 auto;
}

.rp-weave-static-sprite-wrap > [data-sprite-inner]{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
}

.rp-weave-player-card.rp-weave-sprite-editing .rp-weave-stage-visual,
.rp-weave-player-card.rp-weave-sprite-editing .rp-weave-sprite-layer{
  pointer-events:none;
}

.rp-weave-player-card.rp-weave-sprite-editing .rp-weave-stage-visual,
.rp-weave-player-card.rp-weave-sprite-editing .rp-weave-live2d-stage{
  overflow:visible;
}

.rp-weave-player-card.rp-weave-sprite-editing .rp-weave-sprite-layer,
.rp-weave-player-card.rp-weave-sprite-editing .rp-weave-live2d-stage{
  z-index:41;
}

.rp-weave-player-card.rp-weave-sprite-editing [data-weave-sprite-edit-target]{
  pointer-events:auto!important;
  cursor:grab;
  touch-action:none;
}

.rp-weave-player-card.rp-weave-sprite-editing [data-weave-sprite-edit-target].rp-weave-sprite-active{
  cursor:grabbing;
}

.rp-weave-sprite-resize-handle{
  display:none;
  position:absolute;
  right:-12px;
  bottom:-12px;
  z-index:3;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.62);
  border-radius:50%;
  color:#fff;
  background:rgba(20,16,30,.76);
  box-shadow:0 8px 22px rgba(0,0,0,.3);
  cursor:nwse-resize;
  user-select:none;
  -webkit-user-select:none;
}

.rp-weave-player-card.rp-weave-sprite-editing [data-weave-sprite-edit-target].rp-weave-sprite-active .rp-weave-sprite-resize-handle{
  display:flex;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-save-row,
.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-save-list,
.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-history{
  display:none;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-save-list.show,
.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-history[open]{
  display:block;
  position:absolute;
  z-index:72;
  inset:12vh 8vw;
  overflow:auto;
  padding:18px;
  border-radius:18px;
  color:#fff;
  background:rgba(20,16,30,.9);
  backdrop-filter:blur(18px);
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-immersive-menu.show{
  display:grid;
  position:absolute;
  z-index:80;
  top:max(62px,env(safe-area-inset-top) + 54px);
  right:max(12px,env(safe-area-inset-right));
  width:min(280px,calc(100vw - 24px));
  max-height:calc(100vh - 90px);
  overflow:auto;
  gap:6px;
  padding:10px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:16px;
  background:rgba(20,16,30,.9);
  backdrop-filter:blur(18px);
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-immersive-menu button{
  border:0;
  border-radius:10px;
  padding:11px 12px;
  color:#fff;
  text-align:left;
  background:rgba(255,255,255,.08);
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-choice-list{
  display:none;
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-choice-list.show{
  display:flex;
  position:absolute;
  z-index:70;
  inset:0;
  margin:0;
  padding:18vh min(14vw,180px);
  justify-content:center;
  justify-content:safe center;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:rgba(9,7,14,.55);
  backdrop-filter:blur(8px);
}

.rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-choice{
  max-width:720px;
  margin:0 auto;
  color:#fff;
  background:linear-gradient(135deg,var(--rp-weave-primary),var(--rp-weave-secondary));
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-card-head{
  padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 0;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-menu-toggle{
  width:38px;
  height:38px;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-stage{
  left:8px;
  right:8px;
  bottom:calc(max(54px,env(safe-area-inset-bottom) + 48px) + 8px);
  max-height:min(38%,280px);
  overflow:auto;
  padding:12px;
  border-radius:14px;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-speaker{
  margin-bottom:5px;
  padding:3px 8px;
  font-size:.74rem;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-text{
  font-size:.9rem;
  line-height:1.55;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-player-controls{
  width:calc(100% - 16px);
  bottom:max(6px,env(safe-area-inset-bottom));
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:6px;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-player-controls button{
  width:100%;
  min-width:0;
  padding:8px 6px;
  font-size:.8rem;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-player-progress{
  min-width:58px;
  font-size:.7rem;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-immersive-menu.show{
  top:max(52px,env(safe-area-inset-top) + 44px);
  right:max(8px,env(safe-area-inset-right));
  width:calc(100% - 16px);
  max-height:calc(100% - max(64px,env(safe-area-inset-top) + 56px) - max(8px,env(safe-area-inset-bottom)));
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-choice-list.show{
  overflow:auto;
  justify-content:flex-start;
  padding:max(64px,env(safe-area-inset-top) + 54px) 10px max(70px,env(safe-area-inset-bottom) + 60px);
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-choice{
  flex:0 0 auto;
  padding:10px 12px;
  font-size:.88rem;
}

.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-save-list.show,
.rp-weave-player-card.rp-weave-is-fullscreen.rp-weave-portrait-container .rp-weave-history[open]{
  inset:max(58px,env(safe-area-inset-top) + 48px) 8px max(62px,env(safe-area-inset-bottom) + 52px);
  padding:12px;
}

.rp-weave-phone-replies{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}

.rp-weave-phone-reply,
.rp-weave-phone-readonly{
  padding:9px 12px;
  border:1px solid #d0d0d0;
  border-radius:8px;
  color:#075f36;
  background:#fff;
}

@media (max-width:560px){
  .rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-stage{
    left:10px;
    right:10px;
    bottom:74px;
    padding:14px;
    border-radius:14px;
  }
  .rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-choice-list.show{
    padding:14vh 14px;
  }
  .rp-weave-player-card.rp-weave-is-fullscreen .rp-weave-player-controls{
    width:calc(100% - 20px);
    grid-template-columns:1fr auto 1fr;
  }
}

/* 万序默认管理主题：只在万序页面内生效。 */
#rp-weave-page{
  --weave-bg:#060708;
  --weave-panel:rgba(12,15,19,.84);
  --weave-panel-strong:rgba(8,10,13,.94);
  --weave-text:#eee9df;
  --weave-muted:#aaa59d;
  --weave-gold:#d7bd84;
  --weave-gold-bright:#f2dfaa;
  --weave-line:rgba(215,189,132,.32);
  --weave-focus:#f4dea6;
  --weave-error:#ef8d91;
  --weave-success:#91c9a8;
  --weave-running:#9fbde7;
  isolation:isolate;
  background:var(--weave-bg);
  color:var(--weave-text);
}

#rp-weave-page::before,
#rp-weave-page::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}

#rp-weave-page::before{
  z-index:-2;
  background:url("../assets/home-experience/v2-assets/opening-theater-stage.webp") center/cover no-repeat;
  filter:saturate(.55) contrast(1.12) brightness(.36);
  opacity:.38;
}

#rp-weave-page::after{
  z-index:-1;
  background:url("../assets/weave-story/default-ui/textures/subtle-noise.png"),radial-gradient(circle at 50% 12%,rgba(210,190,150,.08),transparent 36%),linear-gradient(90deg,rgba(3,4,6,.86),rgba(5,7,9,.68) 48%,rgba(3,4,6,.9));
  opacity:.94;
}

#rp-weave-page #rp-weave-root{
  position:relative;
  z-index:1;
}

/* 万序顶栏 */
#rp-weave-page .rp-weave-topbar{
  min-height:96px;
  margin:0 -18px 12px;
  padding:0 clamp(18px,3vw,46px);
  border-bottom:1px solid var(--weave-line);
  background:linear-gradient(180deg,rgba(7,9,12,.9),rgba(7,9,12,.68));
  box-shadow:0 14px 34px rgba(0,0,0,.24);
  backdrop-filter:blur(18px);
}

#rp-weave-page .rp-weave-topbar-brand{
  position:absolute;
  top:0;
  left:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:clamp(320px,36vw,430px);
  height:104px;
  transform:translateX(-50%);
  text-align:center;
  pointer-events:none;
  isolation:isolate;
}

#rp-weave-page .rp-weave-topbar-brand::before,
#rp-weave-page .rp-weave-topbar-brand::after{
  content:"";
  position:absolute;
  z-index:0;
  border:1px solid rgba(215,189,132,.42);
  border-radius:50%;
  pointer-events:none;
}

#rp-weave-page .rp-weave-topbar-brand::before{
  inset:2px 0;
  background:radial-gradient(ellipse at center,rgba(7,9,12,.88) 0%,rgba(7,9,12,.66) 58%,rgba(7,9,12,0) 78%);
  box-shadow:inset 0 0 18px rgba(215,189,132,.06),0 0 12px rgba(215,189,132,.12);
}

#rp-weave-page .rp-weave-topbar-brand::after{
  inset:10px 20px;
  border-color:rgba(215,189,132,.2);
}

#rp-weave-page .rp-weave-brand-art{
  position:relative;
  z-index:1;
  display:block;
  width:clamp(180px,18vw,210px);
  height:auto;
  max-width:100%;
  object-fit:contain;
  filter:drop-shadow(0 0 10px rgba(255,246,218,.16));
}

#rp-weave-page .rp-weave-topbar h1{
  color:var(--weave-text);
  font-family:"Noto Serif SC","Songti SC",serif;
  font-size:clamp(1.2rem,2vw,1.72rem);
  font-weight:500;
  letter-spacing:.18em;
}

#rp-weave-page .rp-weave-kicker{
  color:var(--weave-gold);
  letter-spacing:.22em;
}

#rp-weave-page .rp-weave-top-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}

/* 万序三栏工作区与表单 */
#rp-weave-page .rp-weave-shell{
  gap:0;
  padding:0 18px 18px;
  overflow:hidden;
}
#rp-weave-page .rp-weave-workspace-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding-right:3px;
  scrollbar-color:var(--weave-line) transparent;
}
#rp-weave-page .rp-weave-layout{
  min-height:calc(100vh - 112px);
  grid-template-columns:minmax(184px,220px) minmax(470px,1fr) minmax(300px,350px);
  gap:18px;
}
#rp-weave-page .rp-weave-layout > .rp-weave-card{
  border:1px solid var(--weave-line);
  border-radius:4px;
  background:linear-gradient(145deg,var(--weave-panel),rgba(9,11,15,.72));
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 20px 50px rgba(0,0,0,.34);
  color:var(--weave-text);
  backdrop-filter:blur(16px);
  scrollbar-color:var(--weave-line) transparent;
}
#rp-weave-page .rp-weave-layout .rp-weave-card-title,
#rp-weave-page .rp-weave-layout .rp-weave-source-title{
  color:var(--weave-gold-bright);
  font-family:"Noto Serif SC","Songti SC",serif;
  letter-spacing:.08em;
}
#rp-weave-page .rp-weave-layout .rp-weave-field{
  color:#d2cbbd;
}
#rp-weave-page .rp-weave-layout .rp-weave-field input,
#rp-weave-page .rp-weave-layout .rp-weave-field textarea,
#rp-weave-page .rp-weave-layout .rp-weave-field select{
  border-color:var(--weave-line);
  border-radius:3px;
  background:rgba(4,7,11,.72);
  color:var(--weave-text);
}

/* 万序动态制作表单：清除旧主题的粉白底。 */
#rp-weave-page .rp-weave-layout .rp-weave-source-title,
#rp-weave-page .rp-weave-layout .rp-weave-tier-card b,
#rp-weave-page .rp-weave-layout .rp-weave-director-title{
  color:var(--weave-gold-bright);
}
#rp-weave-page .rp-weave-layout .rp-weave-source-list,
#rp-weave-page .rp-weave-layout .rp-weave-production-custom,
#rp-weave-page .rp-weave-layout .rp-weave-director-card{
  border:1px solid var(--weave-line);
  border-radius:3px;
  background:rgba(5,8,11,.64);
}
#rp-weave-page .rp-weave-layout .rp-weave-source-item,
#rp-weave-page .rp-weave-layout .rp-weave-source-item small,
#rp-weave-page .rp-weave-layout .rp-weave-tier-card,
#rp-weave-page .rp-weave-layout .rp-weave-tier-card span,
#rp-weave-page .rp-weave-layout .rp-weave-tier-card p,
#rp-weave-page .rp-weave-layout .rp-weave-tier-card summary,
#rp-weave-page .rp-weave-layout .rp-weave-director-note,
#rp-weave-page .rp-weave-layout .rp-weave-director-section{
  color:var(--weave-muted);
}
#rp-weave-page .rp-weave-layout .rp-weave-tier-card{
  border-color:rgba(215,189,132,.18);
  border-radius:3px;
  background:rgba(255,255,255,.025);
}
#rp-weave-page .rp-weave-layout .rp-weave-tier-card.rp-weave-tier-active{
  border-color:var(--weave-gold);
  background:rgba(215,189,132,.1);
  box-shadow:inset 3px 0 var(--weave-gold);
}
#rp-weave-page .rp-weave-layout .rp-weave-checks{color:var(--weave-muted)}
#rp-weave-page .rp-weave-layout .rp-weave-checks label{
  border:1px solid rgba(215,189,132,.16);
  border-radius:3px;
  background:rgba(255,255,255,.035);
}
#rp-weave-page .rp-weave-layout .rp-weave-review-issue{
  border-radius:3px;
  color:var(--weave-text);
  background:rgba(255,255,255,.035);
}
#rp-weave-page .rp-weave-layout .rp-weave-review-group-title{color:var(--weave-gold)}
#rp-weave-page .rp-weave-layout .rp-weave-review-issue-choice{color:var(--weave-text)}
#rp-weave-page .rp-weave-layout .rp-weave-review-quality-choice{accent-color:var(--weave-gold)}
#rp-weave-page .rp-weave-layout .rp-weave-media-audio{accent-color:var(--weave-gold)}

/* 万序按钮、触控与键盘焦点 */
#rp-weave-page .rp-weave-topbar .rp-weave-back,
#rp-weave-page .rp-weave-topbar .rp-weave-ghost,
#rp-weave-page .rp-weave-layout .rp-weave-primary,
#rp-weave-page .rp-weave-layout .rp-weave-secondary,
#rp-weave-page .rp-weave-layout .rp-weave-ghost{
  min-height:44px;
  border:1px solid var(--weave-line);
  border-radius:3px;
  color:var(--weave-text);
  background:rgba(12,15,19,.72);
  box-shadow:inset 0 1px rgba(255,255,255,.035);
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}
#rp-weave-page .rp-weave-topbar .rp-weave-back{
  width:44px;
  padding:0;
  background:url("../assets/weave-story/default-ui/icons/back.png") center/24px no-repeat,rgba(8,10,13,.5);
  font-size:0;
}
#rp-weave-page #rp-weave-project-refresh{width:44px;padding:0;background:url("../assets/weave-story/default-ui/icons/refresh.png") center/24px no-repeat,rgba(12,15,19,.72);font-size:0}
#rp-weave-page .rp-weave-layout .rp-weave-primary{
  border-color:rgba(230,204,146,.54);
  color:#fff7e4;
  background:linear-gradient(135deg,rgba(155,123,66,.72),rgba(78,60,35,.86));
  box-shadow:inset 0 1px rgba(255,248,220,.22),0 10px 24px rgba(0,0,0,.2);
}
#rp-weave-page #rp-weave-project-create{
  width:auto;
  min-width:132px;
  min-height:44px;
  background:rgba(12,15,19,.72);
  align-self:auto;
  margin:0;
  padding:8px 18px;
  font-family:inherit;
  font-size:.9rem;
  letter-spacing:.06em;
}
#rp-weave-page .rp-weave-topbar button:not(:disabled):hover,
#rp-weave-page .rp-weave-layout button:not(:disabled):hover{
  border-color:var(--weave-gold-bright);
  background-color:rgba(215,189,132,.14);
  box-shadow:0 0 0 1px rgba(215,189,132,.1),0 10px 24px rgba(0,0,0,.22);
}
#rp-weave-page button:focus-visible,
#rp-weave-page input:focus-visible,
#rp-weave-page textarea:focus-visible,
#rp-weave-page select:focus-visible,
#rp-weave-page summary:focus-visible,
#rp-weave-page a:focus-visible{
  outline:2px solid var(--weave-focus);
  outline-offset:3px;
}
#rp-weave-page input::placeholder,
#rp-weave-page textarea::placeholder{
  color:#7f7c77;
  opacity:1;
}

/* 万序导航、篇章档案与任务状态 */
#rp-weave-page .rp-weave-nav-card{
  display:flex;
  flex-direction:column;
  padding:14px 10px;
  overflow:hidden;
}
#rp-weave-page .rp-weave-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}
#rp-weave-page .rp-weave-nav-link{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px 10px 50px;
  border:1px solid transparent;
  border-radius:3px;
  color:#cfc7b8;
  background-position:12px center;
  background-size:28px;
  background-repeat:no-repeat;
  text-decoration:none;
}
#rp-weave-page .rp-weave-nav-link:hover,
#rp-weave-page .rp-weave-nav-link.is-active{
  border-color:var(--weave-line);
  color:var(--weave-gold-bright);
  background-color:rgba(215,189,132,.08);
}
#rp-weave-page .rp-weave-nav-link[data-weave-nav="create"]{background-image:url("../assets/weave-story/default-ui/icons/quill.png")}
#rp-weave-page .rp-weave-nav-link[data-weave-nav="library"]{background-image:url("../assets/weave-story/default-ui/icons/library.png")}
#rp-weave-page .rp-weave-nav-link[data-weave-nav="tasks"]{background-image:url("../assets/weave-story/default-ui/icons/tasks.png")}
#rp-weave-page .rp-weave-nav-mark{
  margin-top:auto;
  padding:16px 8px 4px;
  color:#77746e;
  font-size:.72rem;
  line-height:1.6;
  text-align:center;
}
#rp-weave-page .rp-weave-project-item{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:4px 12px;
  min-height:92px;
  border-color:rgba(215,189,132,.2);
  border-radius:3px;
  background:rgba(5,8,11,.62);
  color:var(--weave-text);
}
#rp-weave-page .rp-weave-project-item::before{
  content:"";
  grid-row:1 / 3;
  width:58px;
  height:78px;
  background:url("../assets/weave-story/default-ui/covers/citadel.webp") center/cover;
  box-shadow:0 0 0 1px var(--weave-line);
}
#rp-weave-page .rp-weave-project-item:nth-child(3n+2)::before{background-image:url("../assets/weave-story/default-ui/covers/archive.webp")}
#rp-weave-page .rp-weave-project-item:nth-child(3n)::before{background-image:url("../assets/weave-story/default-ui/covers/eclipse.webp")}
#rp-weave-page .rp-weave-project-active{
  border-color:var(--weave-gold);
  background:rgba(215,189,132,.1);
  box-shadow:inset 3px 0 var(--weave-gold);
}
#rp-weave-page .rp-weave-layout .rp-weave-project-meta,
#rp-weave-page .rp-weave-layout .rp-weave-muted,
#rp-weave-page .rp-weave-layout .rp-weave-note,
#rp-weave-page .rp-weave-layout .rp-weave-empty{
  color:var(--weave-muted);
}
#rp-weave-page .rp-weave-task-item{
  border-color:rgba(215,189,132,.16);
  border-radius:3px;
  background:rgba(5,8,11,.58);
}
#rp-weave-page .rp-weave-task-name{color:var(--weave-text)}
#rp-weave-page .rp-weave-task-success .rp-weave-task-pill{color:var(--weave-success);background:rgba(50,112,75,.2)}
#rp-weave-page .rp-weave-task-failed .rp-weave-task-pill{color:var(--weave-error);background:rgba(130,45,52,.2)}
#rp-weave-page .rp-weave-task-running .rp-weave-task-pill{color:var(--weave-running);background:rgba(53,84,127,.2)}
#rp-weave-page .rp-weave-status{
  border-color:var(--weave-line);
  border-radius:3px;
  color:var(--weave-muted);
  background:rgba(7,9,12,.8);
}

/* 默认阅读 UI：必须与 gradient / import 模式隔离。 */
.rp-weave-player-card[data-weave-ui-mode="default"]{
  --rp-weave-primary:#d7bd84;
  --rp-weave-secondary:#6f6759;
  --rp-weave-text-color:#f2eee6;
  --rp-weave-panel-color:rgba(5,8,11,.9);
  border-color:rgba(215,189,132,.42);
  color:var(--rp-weave-text-color);
  background:#05070a url("../assets/weave-story/default-ui/reader/chapter-transition.webp") center/cover no-repeat;
  box-shadow:inset 0 0 80px rgba(0,0,0,.5),0 22px 60px rgba(0,0,0,.4);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-card-title,
.rp-weave-player-card[data-weave-ui-mode="default"] #rp-weave-player-state{
  color:#d7bd84;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-player-user-controls{
  min-height:52px;
  border:1px solid rgba(215,189,132,.24);
  border-radius:3px;
  background:rgba(5,8,11,.72);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-user-avatar-toggle,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-user-avatar-select{
  min-height:44px;
  border:1px solid rgba(215,189,132,.24);
  border-radius:3px;
  color:#ded8cb;
  background:rgba(255,255,255,.045);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-user-avatar-toggle input{
  accent-color:#d7bd84;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-save-row input{
  min-height:44px;
  border-color:rgba(215,189,132,.28);
  border-radius:3px;
  color:#eee7d8;
  background:rgba(5,8,11,.76);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-save-row button{
  min-height:44px;
  border:1px solid rgba(215,189,132,.32);
  border-radius:3px;
  color:#e8dfcd;
  background:rgba(8,11,14,.82);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-save-row input::placeholder{
  color:#817d75;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-stage{
  border:0;
  border-radius:0;
  padding:clamp(28px,4vw,46px) clamp(32px,5vw,58px);
  color:var(--rp-weave-text-color);
  background-image:url("../assets/weave-story/default-ui/reader/dialogue-frame.png"),linear-gradient(145deg,rgba(4,7,10,.9),rgba(12,15,18,.82));
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  box-shadow:0 20px 50px rgba(0,0,0,.36);
  backdrop-filter:blur(12px);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-speaker{
  min-width:180px;
  min-height:42px;
  justify-content:center;
  margin:-18px 0 8px;
  padding:11px 34px;
  border-radius:0;
  color:#fff5d9;
  background:url("../assets/weave-story/default-ui/reader/nameplate.png") center/100% 100% no-repeat;
  text-shadow:0 2px 8px #000;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-text{
  color:#eeeae2;
  font-family:"Noto Serif SC","Songti SC",serif;
  line-height:1.9;
  text-shadow:0 2px 7px rgba(0,0,0,.8);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-line-thought .rp-weave-text,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-line-stage .rp-weave-text{color:#c9c5bd}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-choice{
  min-height:58px;
  border:0;
  border-radius:0;
  padding:14px 48px;
  color:#eae5da;
  background:url("../assets/weave-story/default-ui/reader/choice-default.png") center/100% 100% no-repeat;
  text-align:center;
  text-shadow:0 2px 7px #000;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-choice:hover,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-choice:focus-visible{
  color:#fff8df;
  background-image:url("../assets/weave-story/default-ui/reader/choice-hover.png");
  filter:drop-shadow(0 0 10px rgba(230,205,142,.28));
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-choice:active,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-choice.is-selected,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-choice[aria-pressed="true"]{
  color:#1a1711;
  background-image:url("../assets/weave-story/default-ui/reader/choice-selected.png");
  text-shadow:0 1px rgba(255,255,255,.4);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-immersive-menu,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-immersive-menu.show,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-ui-style-panel{
  border:0;
  border-radius:0;
  color:#eee8da;
  background-image:url("../assets/weave-story/default-ui/reader/menu-frame.png"),linear-gradient(rgba(5,8,11,.96),rgba(5,8,11,.96));
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  box-shadow:0 24px 60px rgba(0,0,0,.48);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-immersive-menu.show{
  padding:18px 14px 22px;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-immersive-menu button{
  min-height:44px;
  border-bottom:1px solid rgba(215,189,132,.16);
  color:#ded8cb;
  background:transparent;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-immersive-menu button:hover{color:#fff2c8;background:rgba(215,189,132,.1)}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-save-list.show,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-history[open]{
  border:1px solid rgba(215,189,132,.38);
  background-image:linear-gradient(rgba(5,8,11,.82),rgba(5,8,11,.92)),url("../assets/weave-story/default-ui/reader/save-placeholder.webp");
  background-position:center;
  background-size:cover;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-empty::before{
  content:"";
  display:block;
  width:72px;
  height:72px;
  margin:0 auto 12px;
  background:url("../assets/weave-story/default-ui/reader/loading-seal.png") center/contain no-repeat;
}

/* 默认阅读 UI 的播放器交互层 */
.rp-weave-player-card[data-weave-ui-mode="default"].rp-weave-is-fullscreen{
  background:#040609 url("../assets/weave-story/default-ui/reader/chapter-transition.webp") center/cover no-repeat;
}
.rp-weave-player-card[data-weave-ui-mode="default"].rp-weave-is-fullscreen::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:radial-gradient(circle at 50% 42%,transparent 25%,rgba(2,4,7,.42) 76%,rgba(0,0,0,.72));
}
.rp-weave-player-card[data-weave-ui-mode="default"].rp-weave-is-fullscreen .rp-weave-stage{
  max-height:min(38vh,320px);
  overflow:auto;
  border:0;
  padding:32px clamp(36px,5vw,62px);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-player-controls button,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-menu-toggle,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-fullscreen-toggle{
  min-width:44px;
  min-height:44px;
  border:1px solid rgba(215,189,132,.42);
  border-radius:3px;
  color:#eee7d8;
  background:linear-gradient(145deg,rgba(10,13,16,.9),rgba(23,22,19,.82));
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 10px 24px rgba(0,0,0,.28);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-player-controls button:hover,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-menu-toggle:hover,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-fullscreen-toggle:hover{
  border-color:#ecd79e;
  color:#fff7df;
  background-color:rgba(215,189,132,.14);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-menu-toggle{
  font-size:0;
  background-image:url("../assets/weave-story/default-ui/icons/materials.png");
  background-position:center;
  background-size:26px;
  background-repeat:no-repeat;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-fullscreen-toggle{
  font-size:0;
  background-image:url("../assets/weave-story/default-ui/icons/fullscreen.png");
  background-position:center;
  background-size:26px;
  background-repeat:no-repeat;
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-phone-notice{
  border-color:rgba(215,189,132,.42);
  border-radius:3px;
  background:linear-gradient(145deg,rgba(5,9,12,.96),rgba(14,19,19,.92));
  box-shadow:0 18px 46px rgba(0,0,0,.42);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-phone-notice-meta{color:#d7bd84}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-phone-notice-open{
  min-height:44px;
  border:1px solid rgba(215,189,132,.46);
  border-radius:3px;
  color:#f3ead5;
  background:rgba(120,94,50,.58);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-save-item,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-history-line{
  border-color:rgba(215,189,132,.18);
  color:#e2ddd3;
  background:rgba(5,8,11,.66);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-history,
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-history summary{color:#d7bd84}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-ui-style-panel button{
  min-height:44px;
  border-color:rgba(215,189,132,.24);
  border-radius:3px;
  color:#e8e0d1;
  background:rgba(255,255,255,.045);
}
.rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-empty::before{animation:rp-weave-default-seal 12s linear infinite}
@keyframes rp-weave-default-seal{to{transform:rotate(360deg)}}

/* 万序管理区响应式与无障碍 */
#rp-weave-page [hidden]{
  display:none!important;
}

#rp-weave-page,
#rp-weave-page #rp-weave-root,
#rp-weave-page .rp-weave-shell{
  height:100vh;
  height:100dvh;
  min-height:100vh;
  min-height:100dvh;
  max-height:100vh;
  max-height:100dvh;
  overflow:hidden;
}

#rp-weave-page #rp-weave-root{
  width:100%;
}

#rp-weave-page .rp-weave-shell{
  display:flex;
  flex-direction:column;
}

#rp-weave-page .rp-weave-topbar{
  position:relative;
  flex:0 0 auto;
  min-height:56px;
  margin:0 -18px 10px;
  padding:6px clamp(18px,3vw,46px);
}

#rp-weave-page .rp-weave-topbar .rp-weave-nav{
  flex:0 1 620px;
  min-width:360px;
  display:flex;
  flex-direction:row;
  gap:6px;
  margin:0 auto;
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
}

#rp-weave-page .rp-weave-topbar .rp-weave-nav-link{
  flex:1 1 0;
  min-width:0;
  min-height:44px;
  justify-content:center;
  padding:8px 14px 8px 40px;
  background-position:10px center;
  background-size:24px;
}

#rp-weave-page .rp-weave-api-chip{
  max-width:210px;
  padding:6px 10px;
  overflow:hidden;
  border:1px solid rgba(215,189,132,.18);
  border-radius:999px;
  color:var(--weave-muted);
  background:rgba(255,255,255,.025);
  font-size:.74rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

#rp-weave-page .rp-weave-api-chip.is-ready{color:var(--weave-success)}
#rp-weave-page .rp-weave-api-chip.is-error{color:var(--weave-error)}

#rp-weave-page .rp-weave-visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

#rp-weave-page .rp-weave-status{
  flex:0 0 auto;
}

#rp-weave-page .rp-weave-workspace-scroll{
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  overflow:hidden;
  padding:0;
}

#rp-weave-page .rp-weave-layout{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  overflow:hidden;
}

#rp-weave-page .rp-weave-layout > *,
#rp-weave-page .rp-weave-view-host,
#rp-weave-page .rp-weave-view-host > [data-weave-workspace-view]{
  min-width:0;
  min-height:0;
  box-sizing:border-box;
}

#rp-weave-page .rp-weave-nav-card{
  height:auto;
  overflow:hidden;
}

#rp-weave-page .rp-weave-nav-link{
  appearance:none;
  border-color:rgba(215,189,132,.08);
  background-color:rgba(255,255,255,.025);
}

#rp-weave-page .rp-weave-view-host{
  height:100%;
  overflow:hidden;
}

#rp-weave-page .rp-weave-view-host > [data-weave-workspace-view]{
  display:flex;
  height:100%;
  max-height:100%;
  flex-direction:column;
  overflow:hidden;
}

#rp-weave-page .rp-weave-view-host > .rp-weave-card{
  border:1px solid var(--weave-line);
  border-radius:4px;
  color:var(--weave-text);
  background:linear-gradient(145deg,var(--weave-panel),rgba(9,11,15,.72));
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 20px 50px rgba(0,0,0,.34);
  scrollbar-color:var(--weave-line) transparent;
}

#rp-weave-page .rp-weave-archive-current{
  display:flex;
  align-items:flex-start;
  gap:4px;
}

#rp-weave-page .rp-weave-project-detail > .rp-weave-card-head{
  display:block;
}

#rp-weave-page .rp-weave-project-detail > .rp-weave-card-head > .rp-weave-card-title{
  margin-bottom:8px;
}

#rp-weave-page #rp-weave-project-current{
  flex:1 1 auto;
  min-width:0;
}

/* 新建正篇：页脚固定，只有向导正文滚动 */
#rp-weave-page .rp-weave-create-card > .rp-weave-card-title,
#rp-weave-page .rp-weave-create-card > .rp-weave-note,
#rp-weave-page .rp-weave-wizard-progress,
#rp-weave-page .rp-weave-wizard-footer{
  flex:0 0 auto;
}

#rp-weave-page .rp-weave-wizard-progress{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:10px 0;
}

#rp-weave-page .rp-weave-wizard-progress span{
  min-width:0;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid rgba(215,189,132,.16);
  border-radius:3px;
  color:var(--weave-muted);
  background:rgba(255,255,255,.025);
}

#rp-weave-page .rp-weave-wizard-progress span b{
  color:inherit;
}

#rp-weave-page .rp-weave-wizard-progress .is-active,
#rp-weave-page .rp-weave-wizard-progress .is-complete{
  border-color:var(--weave-gold);
  color:var(--weave-gold-bright);
  background:rgba(215,189,132,.08);
}

#rp-weave-page .rp-weave-wizard-body{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:2px 4px 12px 0;
  scrollbar-color:var(--weave-line) transparent;
}

#rp-weave-page .rp-weave-wizard-body .rp-weave-source-list{
  max-height:none;
  overflow:visible;
}

#rp-weave-page .rp-weave-wizard-step{
  min-width:0;
}

#rp-weave-page .rp-weave-foundation-grid{
  height:100%;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(280px,320px) minmax(0,1fr);
  grid-template-rows:auto auto minmax(0,1fr);
  gap:12px 16px;
  align-items:stretch;
}

#rp-weave-page .rp-weave-foundation-grid .rp-weave-field{
  min-width:0;
  min-height:0;
  margin:0;
}

#rp-weave-page .rp-weave-foundation-title{grid-column:1;grid-row:1}
#rp-weave-page .rp-weave-foundation-persona{grid-column:1;grid-row:2}
#rp-weave-page .rp-weave-foundation-protagonist{grid-column:1;grid-row:3}

#rp-weave-page .rp-weave-foundation-prompt{
  grid-column:2;
  grid-row:1 / 4;
}

#rp-weave-page .rp-weave-foundation-prompt textarea,
#rp-weave-page .rp-weave-foundation-protagonist textarea{
  flex:1 1 auto;
  min-height:0;
  resize:none;
}

#rp-weave-page .rp-weave-foundation-prompt textarea{
  min-height:clamp(360px,54vh,720px);
}

#rp-weave-page .rp-weave-foundation-protagonist textarea{
  min-height:180px;
}

#rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="2"]{
  height:100%;
  min-height:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:minmax(0,1fr) auto;
  gap:12px 16px;
}

#rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="2"] > .rp-weave-source-block{
  min-height:0;
  display:flex;
  flex-direction:column;
  margin:0;
}

#rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="2"] .rp-weave-source-list{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow:auto;
}

#rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="2"] > .rp-weave-field{
  grid-column:1 / -1;
  margin:0;
}

#rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="3"]{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,320px);
  gap:12px 18px;
  align-content:start;
}

#rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="3"] > :not(.rp-weave-production-summary){
  grid-column:1;
}

#rp-weave-page .rp-weave-production-summary{
  position:sticky;
  top:0;
  grid-column:2;
  grid-row:1;
  align-self:start;
  min-width:0;
  padding:14px;
  border:1px solid var(--weave-line);
  border-radius:3px;
  background:rgba(5,8,11,.72);
}

#rp-weave-page .rp-weave-production-summary .rp-weave-note{
  margin:10px 0 0;
  line-height:1.75;
}

#rp-weave-page .rp-weave-wizard-footer{
  min-height:56px;
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding-top:8px;
  border-top:1px solid var(--weave-line);
}

#rp-weave-page #rp-weave-wizard-prev{grid-column:1}
#rp-weave-page #rp-weave-wizard-next{grid-column:2}

#rp-weave-page .rp-weave-wizard-footer > .rp-weave-note{
  min-width:0;
  grid-column:3;
  margin:0;
}

#rp-weave-page #rp-weave-project-create{
  width:auto;
  min-width:132px;
  min-height:44px;
  grid-column:4;
  align-self:auto;
  margin:0;
}

/* 我的正篇：桌面列表与详情双栏 */
#rp-weave-page .rp-weave-library-head{
  flex:0 0 auto;
}

#rp-weave-page .rp-weave-library-layout{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);
  gap:14px;
  overflow:hidden;
}

#rp-weave-page .rp-weave-library-list-pane,
#rp-weave-page .rp-weave-project-detail{
  min-width:0;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-color:var(--weave-line) transparent;
}

#rp-weave-page .rp-weave-library-list-pane{
  padding-right:4px;
}

#rp-weave-page .rp-weave-project-detail{
  padding-left:14px;
  border-left:1px solid var(--weave-line);
}

#rp-weave-page .rp-weave-project-detail-close{
  display:none;
}

/* 制作任务：摘要与操作固定，列表独立滚动 */
#rp-weave-page .rp-weave-task-summary{
  flex:0 0 auto;
}

#rp-weave-page .rp-weave-task-panel > .rp-weave-task-actions{
  flex:0 0 auto;
  margin:0 0 10px;
}

#rp-weave-page .rp-weave-task-empty{
  flex:0 0 auto;
}

#rp-weave-page .rp-weave-task-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding-right:4px;
  scrollbar-color:var(--weave-line) transparent;
}

/* 统一触控尺寸 */
#rp-weave-page button{
  min-height:44px;
  touch-action:manipulation;
}

#rp-weave-page input:not([type="checkbox"]):not([type="radio"]),
#rp-weave-page select,
#rp-weave-page textarea,
#rp-weave-page summary,
#rp-weave-page .rp-weave-checks label,
#rp-weave-page .rp-weave-source-item,
#rp-weave-page .rp-weave-user-avatar-toggle{
  min-height:44px;
  box-sizing:border-box;
}

#rp-weave-page .rp-weave-menu-toggle,
#rp-weave-page .rp-weave-fullscreen-toggle,
#rp-weave-page .rp-weave-reader-close,
#rp-weave-page .rp-weave-persona-head button{
  min-width:44px;
}

/* 阅读器是独立整页覆盖层 */
#rp-weave-page #rp-weave-reader-region{
  position:fixed;
  inset:0;
  z-index:1200;
  min-width:0;
  margin:0;
  padding:clamp(10px,2vw,20px);
  overflow:hidden;
  box-sizing:border-box;
  background:#05070a;
  animation:rp-weave-reader-enter .18s ease-out;
}

#rp-weave-page #rp-weave-reader-region > .rp-weave-player-card{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  max-width:none;
  max-height:none;
  margin:0;
  box-sizing:border-box;
  overflow:auto;
}

#rp-weave-page .rp-weave-player-card.rp-weave-is-fullscreen{
  width:100%;
  height:100vh;
  height:100dvh;
  max-height:100vh;
  max-height:100dvh;
  overflow:hidden;
}

#rp-weave-page #rp-weave-reader-region > .rp-weave-player-card.rp-weave-is-fullscreen{
  overflow:hidden;
}

@keyframes rp-weave-reader-enter{
  from{opacity:0}
  to{opacity:1}
}

@keyframes rp-weave-detail-enter{
  from{opacity:0;transform:translateX(18px)}
  to{opacity:1;transform:translateX(0)}
}

@media (max-width:1280px){
  #rp-weave-page .rp-weave-shell{
    padding:0 12px 12px;
  }

  #rp-weave-page .rp-weave-topbar{
    margin:0 -12px 12px;
    padding-inline:18px;
  }
}

@media (max-width:1080px){
  #rp-weave-page .rp-weave-layout{
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }

  #rp-weave-page .rp-weave-library-layout{
    grid-template-columns:minmax(230px,.85fr) minmax(0,1.15fr);
  }
}

@media (max-width:920px){
  #rp-weave-page .rp-weave-shell{
    padding:0 12px 12px;
  }

  #rp-weave-page .rp-weave-topbar{
    margin:0 -12px 10px;
    padding-inline:18px;
  }

  #rp-weave-page .rp-weave-layout{
    display:flex;
    height:100%;
    min-height:0;
    flex-direction:column;
    gap:10px;
    overflow:hidden;
  }

  #rp-weave-page .rp-weave-nav-card{
    position:sticky;
    top:0;
    z-index:10;
    flex:0 0 auto;
    height:auto;
    padding:8px;
    overflow:hidden;
  }

  #rp-weave-page .rp-weave-nav{
    flex-direction:row;
    gap:6px;
  }

  #rp-weave-page .rp-weave-nav-link{
    flex:1 1 0;
    min-width:0;
  }

  #rp-weave-page .rp-weave-nav-mark{
    display:none;
  }

  #rp-weave-page .rp-weave-view-host{
    flex:1 1 0;
    height:100%;
    min-height:0;
    overflow:hidden;
  }

  #rp-weave-page .rp-weave-view-host > [data-weave-workspace-view]{
    min-height:0;
    overflow:hidden;
  }

  #rp-weave-page .rp-weave-library-layout{
    grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);
  }
}

@media (max-width:560px){
  #rp-weave-page .rp-weave-shell{
    padding:0;
  }

  #rp-weave-page .rp-weave-topbar{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    min-height:64px;
    margin:0;
    gap:8px;
    padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 10px max(10px,env(safe-area-inset-left));
  }

  #rp-weave-page .rp-weave-back{
    grid-column:1;
    grid-row:1;
  }

  #rp-weave-page .rp-weave-top-actions{
    grid-column:3;
    grid-row:1;
    justify-self:end;
  }

  #rp-weave-page .rp-weave-topbar-brand{
    position:static;
    top:auto;
    display:flex;
    grid-column:2;
    grid-row:1;
    width:100%;
    height:56px;
    justify-self:center;
    transform:none;
  }

  #rp-weave-page .rp-weave-topbar-brand::before,
  #rp-weave-page .rp-weave-topbar-brand::after{
    display:block;
  }

  #rp-weave-page .rp-weave-topbar-brand::before{
    inset:1px 0;
  }

  #rp-weave-page .rp-weave-topbar-brand::after{
    inset:6px 8px;
  }

  #rp-weave-page .rp-weave-brand-art{
    width:min(28vw,116px);
    max-width:100%;
  }

  #rp-weave-page .rp-weave-status{
    margin:0 10px 8px;
  }

  #rp-weave-page .rp-weave-workspace-scroll{
    padding:0;
  }

  #rp-weave-page .rp-weave-layout{
    gap:0;
  }

  #rp-weave-page .rp-weave-view-host{
    order:1;
  }

  #rp-weave-page .rp-weave-view-host > .rp-weave-card{
    border-radius:0;
  }

  #rp-weave-page .rp-weave-nav-card{
    order:2;
    top:auto;
    bottom:0;
    border-right:0;
    border-bottom:0;
    border-left:0;
    border-radius:0;
    padding:6px;
    padding-bottom:max(6px,env(safe-area-inset-bottom));
  }

  #rp-weave-page .rp-weave-nav{
    gap:4px;
  }

  #rp-weave-page .rp-weave-nav-link{
    min-height:64px;
    justify-content:center;
    padding:34px 4px 6px;
    background-position:center 5px;
    background-size:26px;
    font-size:.74rem;
    text-align:center;
  }

  #rp-weave-page .rp-weave-grid{
    grid-template-columns:1fr;
  }

  #rp-weave-page .rp-weave-wizard-progress{
    gap:4px;
  }

  #rp-weave-page .rp-weave-wizard-progress span{
    gap:4px;
    padding:4px;
    font-size:.74rem;
  }

  #rp-weave-page .rp-weave-wizard-footer{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #rp-weave-page #rp-weave-wizard-prev,
  #rp-weave-page #rp-weave-wizard-next{
    width:100%;
    grid-column:auto;
    order:1;
  }

  #rp-weave-page #rp-weave-project-create{
    width:100%;
    min-width:0;
    grid-column:1 / -1;
    order:2;
  }

  #rp-weave-page .rp-weave-wizard-footer > .rp-weave-note{
    grid-column:1 / -1;
    order:3;
  }

  #rp-weave-page .rp-weave-library-layout{
    display:block;
    height:100%;
  }

  #rp-weave-page .rp-weave-library-list-pane{
    height:100%;
    padding:0;
  }

  #rp-weave-page .rp-weave-project-detail{
    display:none;
    position:fixed;
    inset:0;
    z-index:1100;
    width:100vw;
    height:100vh;
    height:100dvh;
    max-height:100dvh;
    padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
    border:0;
    overflow:auto;
    box-sizing:border-box;
    color:var(--weave-text);
    background:#090c10;
  }

  #rp-weave-page .rp-weave-archive-card.is-detail-open .rp-weave-project-detail{
    display:block;
    animation:rp-weave-detail-enter .2s ease-out;
  }

  #rp-weave-page .rp-weave-project-detail-close{
    position:sticky;
    top:0;
    z-index:1;
    display:inline-flex;
    align-items:center;
    margin-bottom:10px;
  }

  #rp-weave-page .rp-weave-task-panel > .rp-weave-task-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #rp-weave-page #rp-weave-reader-region{
    padding:0;
  }

  #rp-weave-page #rp-weave-reader-region > .rp-weave-player-card{
    border:0;
    border-radius:0;
  }

  #rp-weave-page #rp-weave-reader-region > .rp-weave-player-card > .rp-weave-card-head{
    flex-wrap:wrap;
    gap:6px;
  }

  #rp-weave-page #rp-weave-reader-region .rp-weave-player-head-actions{
    min-width:0;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
}

@media (max-width:720px){
  #rp-weave-page .rp-weave-topbar{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:auto;
    min-height:auto;
    gap:4px;
    padding:max(6px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) 6px max(4px,env(safe-area-inset-left));
  }

  #rp-weave-page .rp-weave-topbar .rp-weave-nav{
    position:static;
    grid-column:2;
    grid-row:1;
    width:100%;
    min-width:0;
    order:0;
    margin:0;
    padding:0;
    border:0;
    justify-content:center;
    gap:3px;
  }

  #rp-weave-page .rp-weave-topbar .rp-weave-nav-link{
    flex:1 1 0;
    min-width:0;
    min-height:40px;
    padding:5px 3px 5px 22px;
    background-position:4px center;
    background-size:15px;
    font-size:.66rem;
    line-height:1.1;
    white-space:nowrap;
  }

  #rp-weave-page .rp-weave-topbar .rp-weave-back,
  #rp-weave-page #rp-weave-project-refresh{width:40px;min-height:40px;padding:0;background-position:center;background-size:18px;font-size:0;white-space:nowrap}
  #rp-weave-page .rp-weave-top-actions{margin:0;gap:0;justify-self:end}

  #rp-weave-page .rp-weave-api-chip{display:none}

  #rp-weave-page .rp-weave-wizard-progress{
    display:flex;
    justify-content:center;
    gap:4px;
    margin:4px 0 6px;
  }

  #rp-weave-page .rp-weave-wizard-progress span{
    flex:0 1 auto;
    min-width:88px;
    min-height:40px;
    padding:4px 7px;
    font-size:.76rem;
    line-height:1.1;
  }

  #rp-weave-page .rp-weave-wizard-footer{min-height:auto;display:flex;flex-wrap:wrap;gap:6px;padding-top:6px}
  #rp-weave-page #rp-weave-wizard-prev,
  #rp-weave-page #rp-weave-wizard-next,
  #rp-weave-page #rp-weave-project-create{
    flex:0 0 auto;
    width:auto;
    min-width:84px;
    min-height:40px;
    grid-column:auto;
    order:1;
    padding:6px 14px;
  }
  #rp-weave-page #rp-weave-project-create{min-width:112px}
  #rp-weave-page .rp-weave-wizard-footer > .rp-weave-note{flex:1 1 100%;grid-column:auto;order:2}

  #rp-weave-page .rp-weave-foundation-grid{
    height:auto;
    grid-template-columns:1fr;
    grid-template-rows:auto auto auto auto;
  }

  #rp-weave-page .rp-weave-foundation-title{grid-column:1;grid-row:1}
  #rp-weave-page .rp-weave-foundation-persona{grid-column:1;grid-row:2}
  #rp-weave-page .rp-weave-foundation-prompt{grid-column:1;grid-row:3}
  #rp-weave-page .rp-weave-foundation-protagonist{grid-column:1;grid-row:4}
  #rp-weave-page .rp-weave-foundation-prompt textarea{min-height:40vh}
  #rp-weave-page .rp-weave-foundation-protagonist textarea{min-height:140px}

  #rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="2"],
  #rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="3"]{
    grid-template-columns:1fr;
  }

  #rp-weave-page .rp-weave-wizard-step[data-weave-wizard-step="2"]{
    height:auto;
    grid-template-rows:auto;
  }

  #rp-weave-page .rp-weave-production-summary{
    position:static;
    grid-column:1;
    grid-row:auto;
  }
}

@media (prefers-reduced-motion:reduce){
  #rp-weave-page .rp-weave-back,
  #rp-weave-page .rp-weave-primary,
  #rp-weave-page .rp-weave-secondary,
  #rp-weave-page .rp-weave-ghost,
  #rp-weave-page .rp-weave-nav-link,
  #rp-weave-page .rp-weave-project-detail,
  #rp-weave-page #rp-weave-reader-region{
    transition:none!important;
    animation:none!important;
  }

  #rp-weave-page .rp-weave-wizard-body,
  #rp-weave-page .rp-weave-library-list-pane,
  #rp-weave-page .rp-weave-project-detail,
  #rp-weave-page .rp-weave-task-scroll{
    scroll-behavior:auto!important;
  }

  #rp-weave-page #rp-weave-project-create:hover{
    transform:none;
  }

  .rp-weave-player-card[data-weave-ui-mode="default"] .rp-weave-empty::before{
    animation:none;
  }
}

/* 总导演审核报告：从制作任务中打开的独立阅读层。 */
#rp-weave-page #rp-weave-review-region{
  position:fixed;
  inset:0;
  z-index:1300;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(14px,3vw,42px);
  overflow:hidden;
  box-sizing:border-box;
  background:rgba(2,4,7,.8);
  backdrop-filter:blur(10px);
  animation:rp-weave-review-enter .18s ease-out;
}

#rp-weave-page .rp-weave-review-dialog{
  display:flex;
  flex-direction:column;
  width:min(1120px,100%);
  height:min(860px,100%);
  min-width:0;
  max-height:100%;
  border:1px solid var(--weave-line);
  border-radius:6px;
  overflow:hidden;
  color:var(--weave-text);
  background:linear-gradient(145deg,rgba(10,13,18,.98),rgba(4,6,9,.98));
  box-shadow:0 28px 90px rgba(0,0,0,.56),inset 0 1px 0 rgba(255,255,255,.04);
}

#rp-weave-page .rp-weave-review-dialog-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex:0 0 auto;
  padding:18px clamp(18px,3vw,30px);
  border-bottom:1px solid var(--weave-line);
  background:rgba(255,255,255,.025);
}

#rp-weave-page .rp-weave-review-dialog-head .rp-weave-card-title{
  color:var(--weave-gold-bright);
}

#rp-weave-page .rp-weave-review-dialog-body{
  flex:1 1 auto;
  min-height:0;
  padding:clamp(18px,3vw,34px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-color:var(--weave-line) transparent;
}

#rp-weave-page .rp-weave-review-dialog .rp-weave-director-card{
  max-width:920px;
  margin:0 auto;
  padding:clamp(18px,2.5vw,30px);
  border:1px solid var(--weave-line);
  border-radius:4px;
  background:rgba(5,8,11,.68);
}

#rp-weave-page .rp-weave-review-dialog .rp-weave-director-title,
#rp-weave-page .rp-weave-review-dialog .rp-weave-review-group-title{
  color:var(--weave-gold-bright);
}

#rp-weave-page .rp-weave-review-dialog .rp-weave-director-note,
#rp-weave-page .rp-weave-review-dialog .rp-weave-director-section{
  color:var(--weave-muted);
  font-size:.94rem;
  line-height:1.75;
}

#rp-weave-page .rp-weave-review-dialog .rp-weave-review-issue-list{
  display:grid;
  gap:12px;
  max-height:none;
  margin:10px 0 0;
  padding:0;
  overflow:visible;
}

#rp-weave-page .rp-weave-review-dialog .rp-weave-review-issue{
  padding:16px 18px;
  border:1px solid rgba(215,189,132,.16);
  border-left:3px solid var(--weave-gold);
  border-radius:3px;
  background:rgba(255,255,255,.035);
}

#rp-weave-page .rp-weave-review-dialog .rp-weave-review-issue.is-functional{
  border-left-color:var(--weave-error);
}

#rp-weave-page .rp-weave-review-entry{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 12px;
  padding:13px 15px;
  border:1px solid var(--weave-line);
  border-left:3px solid var(--weave-gold);
  border-radius:3px;
  background:rgba(215,189,132,.06);
}

#rp-weave-page .rp-weave-review-entry b{
  color:var(--weave-gold-bright);
}

@keyframes rp-weave-review-enter{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

@media (max-width:560px){
  #rp-weave-page #rp-weave-review-region{
    padding:0;
  }

  #rp-weave-page .rp-weave-review-dialog{
    width:100%;
    height:100dvh;
    max-height:100dvh;
    border:0;
    border-radius:0;
  }

  #rp-weave-page .rp-weave-review-dialog-head{
    padding:14px;
  }

  #rp-weave-page .rp-weave-review-dialog-body{
    padding:14px;
  }

  #rp-weave-page .rp-weave-review-entry{
    align-items:stretch;
    flex-direction:column;
  }

  #rp-weave-page .rp-weave-task-panel > .rp-weave-task-actions [data-weave-review-open]{
    grid-column:1 / -1;
  }
}

@media (prefers-reduced-motion:reduce){
  #rp-weave-page #rp-weave-review-region{
    animation:none!important;
  }
}
