/* AI 生图成片：模板库 / 分镜审核 / 对话草图卡片 */
.st-wizard > *, .st-wizard .g2f > * { min-width: 0; }
.st-picker > summary { cursor: pointer; list-style: none; flex-wrap: wrap; }
.st-picker > summary::-webkit-details-marker { display: none; }
.st-picker:not([open]) > summary { margin-bottom: 0; }
.st-chosen { font-size: 12px; font-weight: 500; color: var(--accent); }
.st-toggle { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.st-filters { margin-bottom: 12px; }
.st-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.st-tpl { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; text-align: left; padding: 8px; border-radius: 10px; border: 1px solid var(--line, #e3e5ea);
  background: var(--bg-2, #fff); cursor: pointer; color: var(--ink, #172326); font: inherit; }
.st-tpl:hover { border-color: var(--accent, #5b6cf0); }
.st-tpl:focus-visible, .st-picker > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.st-tpl.on { border-color: var(--accent, #5b6cf0); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #5b6cf0) 25%, transparent); }
.st-tpl > b { font-size: 13px; line-height: 1.4; }
.st-tpl small { font-size: 12px; color: var(--muted, #8a8f98); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-meta { margin-top: auto; font-size: 11.5px; color: var(--muted, #8a8f98); }
.st-cov { display: block; flex: none; width: 100%; aspect-ratio: 16 / 9; border-radius: 7px; position: relative; overflow: hidden; background: var(--bg-3); }
.st-cov img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-cov-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--muted); background: linear-gradient(135deg, var(--accent-soft), var(--bg-3)); }
.st-cov-fallback .ic { width: 30px; height: 30px; }
.st-cov-label { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 5px; color: #fff; background: rgba(12, 18, 30, .78); font-size: 10px; }
.st-wizard .summary { max-height: calc(100dvh - var(--top-h) - 28px); overflow-y: auto; }
.st-wizard .summary .row > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.st-fill { width: 100%; justify-content: center; margin-top: 6px; }
.st-flow { margin: 12px 0 8px; font-size: 12px; }
.st-help { font-size: 12px; color: var(--muted); }
.st-help > summary { cursor: pointer; }
.st-help p { margin: 8px 0 0; }
.st-error { padding: 10px 12px; margin: 12px 0; border: 1px solid var(--cut); border-radius: 8px; background: var(--cut-soft); color: var(--ink); overflow-wrap: anywhere; font-size: 12.5px; }
.st-wizard input[type=url], .st-wizard input[type=file] { width: 100%; min-width: 0; }
.st-wizard input[type=url] { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-3); color: var(--ink); font: inherit; }
.st-wizard input[aria-invalid="true"], .st-wizard textarea[aria-invalid="true"] { border-color: var(--cut); }
#stContent { scroll-margin-top: 12px; }
@media (min-width: 981px) and (max-width: 1180px) { .st-wizard { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; } }
@media (max-width: 980px) { .st-wizard .summary { position: static; max-height: none; overflow: visible; } }
@media (max-width: 540px) { .st-page .sec { padding: 14px; } .st-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-tpl > b { font-size: 12px; } .st-meta { font-size: 10px; } }
@media (max-width: 380px) { .st-tpls { grid-template-columns: 1fr; } }
.st-ups { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }

.st-review { margin: 16px 0; padding: 14px; border: 1px solid var(--line, #e3e5ea); border-radius: 12px; background: var(--bg-2, #fff); }
.st-rh { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.st-rh .dim { font-size: 12.5px; }
.st-ra { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.st-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.st-shots.v { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.st-shot { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.st-img { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; }
.st-shots.v .st-img { aspect-ratio: 9 / 16; }
.st-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-no { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: rgba(0,0,0,.7); color: #fff;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.st-k { position: absolute; right: 6px; top: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(255,255,255,.88); color: #222; font-size: 11.5px; }
.st-bad, .st-pend, .st-ok { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; color: #fff; }
.st-bad { background: #d33; } .st-pend { background: rgba(0,0,0,.7); } .st-ok { background: #1a9a5b; }
.st-tx { font-size: 12.5px; line-height: 1.45; }
.st-scr { font-size: 11.5px; color: var(--muted, #8a8f98); }
.st-act { display: flex; gap: 4px; flex-wrap: wrap; }
.st-act .btn { padding: 2px 8px; }
.st-chat { margin-top: 8px; }
.st-chat .st-shots { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.st-chat .st-tx { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
.st-chat .plan-act { margin-top: 10px; }
