html.pc-flow-v1 .pc56-workspace-tabs,
html.pc-flow-v1 #pc56AiDraftPanel { display:none!important }
html.pc-flow-v1 .editor-card { display:block!important }
.pc-flow-catalog { display:grid; gap:12px; margin:0 0 16px }
.pc-flow-catalog-head { display:grid; gap:4px }
.pc-flow-catalog-head strong { color:#f7f8ff; font-size:15px }
.pc-flow-catalog-head small,.pc-flow-template-card>small { color:#9aa8cb; font-size:11px; line-height:1.4 }
.pc-flow-grid { display:grid; gap:9px }
.pc-flow-grid:empty { display:none }
.pc-flow-subhead { color:#bbaaff; font-size:11px; margin:5px 0 0 }
.pc-flow-template-card,.pc-flow-assistant {
  border:1px solid rgba(108,130,218,.3); border-radius:17px;
  background:linear-gradient(145deg,rgba(18,23,50,.97),rgba(10,14,33,.98));
  padding:13px; display:grid; gap:10px
}
.pc-flow-template-head { display:flex; align-items:center; justify-content:space-between; gap:8px }
.pc-flow-template-head strong { color:#f6f7ff; font-size:13px }
.pc-flow-heart { flex:0 0 auto; border:0; background:transparent; color:#ec76ad; font-size:23px; min-width:38px; min-height:38px }
.creator-template-row-head .pc-flow-heart { margin-left:auto }
.pc-flow-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.pc-flow-row>* { min-width:0 }
.pc-flow-row>.pc-flow-primary,.pc-flow-row>.pc-flow-secondary { flex:1 1 auto }
.pc-flow-primary,.pc-flow-secondary,.pc-flow-film {
  border-radius:12px; min-height:42px; padding:8px 12px;
  color:#fff; font-size:12px; font-weight:750; cursor:pointer
}
.pc-flow-primary { border:1px solid #7979ff; background:linear-gradient(110deg,#325ed1,#7c42d2) }
.pc-flow-secondary { border:1px solid rgba(116,141,221,.4); background:rgba(39,47,83,.6) }
.pc-flow-primary:disabled,.pc-flow-secondary:disabled,.pc-flow-film:disabled { opacity:.55; cursor:wait }
.pc-flow-origin { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#baaaff; font-size:11px; padding:7px 2px }
.pc-flow-origin[hidden],.pc-flow-overlay[hidden],.pc-flow-generated[hidden] { display:none!important }
.pc-flow-link { border:0; background:none; color:#95baff; text-decoration:underline; font-size:11px; padding:8px }
.pc-flow-assistant { margin-top:12px; margin-bottom:14px }
.pc-flow-shelf { display:grid; gap:9px; margin:10px 0 16px; padding:12px; border:1px solid rgba(108,130,218,.28); border-radius:15px; background:#121a37 }
.pc-flow-shelf .pc-flow-row { justify-content:space-between }
.pc-flow-shelf strong { color:#f4f6ff; font-size:12px }
.pc-flow-scenario-list { display:grid; gap:6px; max-height:220px; overflow-y:auto }
.pc-flow-scenario-list>small { color:#a4b1d0; font-size:11px }
.pc-flow-scenario-row { display:flex; align-items:center; gap:7px; border-top:1px solid rgba(130,150,220,.18); padding:6px 0 }
.pc-flow-scenario-row>strong { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.pc-flow-scenario-row .pc-flow-secondary { min-height:35px; padding:4px 8px }
.pc-flow-assistant-head { display:grid; gap:3px }
.pc-flow-assistant-head strong { color:#f6f7ff; font-size:14px }
.pc-flow-assistant-head small { color:#a6b2d2; font-size:10px }
.pc-flow-commands .pc-flow-secondary { flex:1 1 110px; min-height:36px; padding:6px 7px }
.pc-flow-task,.pc-flow-result,.pc-flow-field input,.pc-flow-select {
  display:block; box-sizing:border-box; width:100%; border:1px solid rgba(120,145,220,.45);
  border-radius:12px; background:#0c1229; color:#f6f7ff; padding:11px;
  font:inherit; font-size:13px; outline:0
}
.pc-flow-task:focus,.pc-flow-result:focus,.pc-flow-field input:focus,.pc-flow-select:focus { border-color:#90aaff }
.pc-flow-task,.pc-flow-result { resize:vertical; line-height:1.5 }
.pc-flow-cost { color:#a7b7d8; font-size:10px; line-height:1.35 }
.pc-flow-status { color:#b5c3e2; font-size:11px; margin:0; line-height:1.4 }
.pc-flow-status[data-error=true] { color:#ff9ba7 }
.pc-flow-generated { display:grid; gap:10px; border-top:1px solid rgba(127,151,220,.3); padding-top:12px }
.pc-flow-generated>strong { color:#f4f5ff; font-size:12px }
.pc-flow-film { width:100%; border:1px solid #49a9c3; background:linear-gradient(115deg,#146d87,#4451b7) }
.pc-flow-overlay {
  position:fixed; inset:0; z-index:30000;
  background:rgba(2,5,18,.79); display:flex; align-items:flex-end; justify-content:center;
  padding:10px 10px max(12px,env(safe-area-inset-bottom)); box-sizing:border-box
}
.pc-flow-sheet {
  box-sizing:border-box; width:min(100%,560px); max-height:calc(100dvh - 24px);
  overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  display:grid; align-content:start; gap:13px;
  padding:16px 15px max(18px,env(safe-area-inset-bottom));
  border:1px solid rgba(119,146,232,.42); border-radius:20px;
  background:#111730; box-shadow:0 14px 45px rgba(0,0,0,.5)
}
.pc-flow-sheet-head { display:flex; align-items:center; justify-content:space-between; gap:12px }
.pc-flow-sheet-head strong { color:#fff; font-size:17px }
.pc-flow-close { flex:0 0 42px; height:42px; border:1px solid rgba(120,140,220,.35); border-radius:11px; background:#222b49; color:#fff; font-size:23px }
.pc-flow-sample { border:1px solid rgba(120,140,220,.3); border-radius:12px; padding:9px; color:#ccd9f3 }
.pc-flow-sample summary { cursor:pointer; font-size:11px }
.pc-flow-sample p { white-space:pre-wrap; line-height:1.5; font-size:12px }
.pc-flow-field { display:grid; gap:5px }
.pc-flow-field span { color:#c4d1ed; font-size:11px; font-weight:700 }
.pc-flow-select { flex:1 1 125px; min-height:42px }
@media (min-width:720px) { .pc-flow-overlay { align-items:center } .pc-flow-grid { grid-template-columns:repeat(2,minmax(0,1fr)) } }


/* v2: focused template creation flow; settings and result occupy the same sheet slot. */
.pc-flow-compose-view{display:grid;gap:10px}
.pc-flow-compose-view[hidden],.pc-flow-generated-main[hidden]{display:none!important}
.pc-flow-generate-row{grid-template-columns:1fr!important}
.pc-flow-generate{width:100%;min-height:48px}
.pc-flow-generated-main{gap:10px}
.pc-flow-generated-main .pc-flow-result{min-height:260px;margin-top:4px}
.pc-flow-save-template{width:100%;min-height:42px}
.pc-flow-result-actions{grid-template-columns:1fr 1.15fr}

.pc-flow-result-accept{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.pc-flow-result-accept svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
