/* Visual novel stage & cast UI: calm roster, clean stage preview, core 6 expressions first, tucked options. */
.wl-stg { color: var(--wl-text); font-family: var(--wl-font-ui); font-size: var(--t-ui); }
.wl-stg-quiet { margin: 0; color: var(--wl-text-3); font-size: var(--t-help); line-height: 1.5; }
.wl-stg-note { margin: 8px 0 0; color: var(--wl-text-2); font-size: var(--t-help); line-height: 1.5; }
.wl-stg-note.is-error { color: var(--wl-danger); }
.wl-stg-label { color: var(--wl-text-2); font-size: var(--t-help); }
.wl-stg-count { color: var(--wl-text-3); font-family: var(--wl-font-mono); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-stg-grow { flex: 1 1 0; min-width: 0; }
.wl-stg-spin svg { animation: wl-stg-spin .9s linear infinite; }
.is-waiting > .wl-stg-spin svg, .is-waiting .wl-stg-tile-pic > .wl-stg-spin svg { animation: none; opacity: .45; }
@keyframes wl-stg-spin { to { transform: rotate(360deg); } }

/* Buttons & pills */
body .wl-stg .wl-stg-btn, body .wl-stg .st-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 10px; border: 1px solid var(--wl-line); border-radius: var(--r-md); background: none; box-shadow: none; color: var(--wl-text-2); font-size: var(--t-help); font-weight: 500; white-space: nowrap; cursor: pointer; min-width: 0; transition: background-color var(--wl-quick) var(--wl-ease), color var(--wl-quick) var(--wl-ease), border-color var(--wl-quick) var(--wl-ease); }
body .wl-stg .wl-stg-btn:hover:not(:disabled), body .wl-stg .st-pill:hover:not(:disabled) { background: var(--wl-raised); color: var(--wl-text); }
body .wl-stg .wl-stg-btn:disabled, body .wl-stg .st-pill:disabled { opacity: .45; cursor: default; }
body .wl-stg .wl-stg-btn.is-open { background: var(--wl-raised); border-color: var(--wl-line-strong); color: var(--wl-text); }
body .wl-stg .wl-stg-btn.is-danger { border-color: transparent; background: var(--wl-danger); color: var(--wl-on-accent); }
body .wl-stg .wl-stg-btn.is-quiet { height: 28px; padding: 0 8px; border-color: transparent; color: var(--wl-text-3); }
body .wl-stg .wl-stg-btn.is-quiet:hover:not(:disabled) { color: var(--wl-text); background: var(--wl-raised); }
body .wl-stg .wl-stg-btn.is-main { height: 32px; border-color: var(--wl-line-strong); background: var(--wl-raised); color: var(--wl-text); font-size: var(--t-ui); font-weight: 600; }
body .wl-stg .wl-stg-btn.is-main:hover:not(:disabled) { background: color-mix(in srgb, var(--wl-text) 10%, var(--wl-raised)); }
body .wl-stg .wl-stg-btn.is-primary { border-color: transparent; background: var(--wl-accent); color: var(--wl-on-accent); font-weight: 600; }
body .wl-stg .wl-stg-btn.is-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--wl-accent) 84%, var(--wl-text)); color: var(--wl-on-accent); }
.wl-stg .st-pill svg, .wl-stg .wl-stg-btn svg, .wl-stg .wl-stg-make svg { width: 14px; height: 14px; display: block; }
.wl-stg .st-pill > span:not(.wt-glyph) { overflow: hidden; text-overflow: ellipsis; }
.wl-stg .st-pill.st-painter { flex: 0 1 auto; }
.wl-stg .st-painter > .st-price { display: none; }
body .wl-stg .wl-stg-make { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: var(--wl-accent); color: var(--wl-on-accent); box-shadow: none; font-size: var(--t-ui); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color var(--wl-quick) var(--wl-ease), transform var(--wl-quick) var(--wl-ease); }
body .wl-stg .wl-stg-make:hover:not(:disabled) { background: color-mix(in srgb, var(--wl-accent) 84%, var(--wl-text)); }
body .wl-stg .wl-stg-make:active:not(:disabled) { transform: scale(.97); }
body .wl-stg .wl-stg-make:disabled { background: var(--wl-raised); color: var(--wl-text-3); cursor: default; }
body .wl-stg .wl-stg-make.is-stop { background: var(--wl-raised); color: var(--wl-text); }
body .wl-stg .wl-stg-opts-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }

/* ---- Character stage pane (On stage & beside Cast) ---- */
.wt-entry-page.wl-stg-page { max-width: 1080px; padding-top: 26px; container: stgpage / inline-size; }
.wl-stg-page.is-embedded { container: stgpane / inline-size; }
.wl-stg-pane-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; min-width: 0; margin-bottom: 20px; }
.wl-stg-pane-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.wl-stg-pane-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.wl-stg-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.wl-stg-left { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.is-embedded .wl-stg-left { top: 0; }
.wl-stg-under { display: contents; }

/* Stage preview */
.wl-stg-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--wl-line); border-radius: var(--r-lg); background: var(--wl-inset); }
.wl-stg-preview-place { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.wl-stg-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--wl-bg) 78%, transparent) 0, transparent 60%); pointer-events: none; }
.wl-stg-preview-figure { position: absolute; top: 4%; bottom: 0; right: 4%; width: 56%; height: 96%; object-fit: cover; object-position: center top; opacity: 0; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 34%), linear-gradient(90deg, transparent 0, #000 22%, #000 80%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(0deg, transparent 0, #000 34%), linear-gradient(90deg, transparent 0, #000 22%, #000 80%, transparent 100%); mask-composite: intersect; }
.wl-stg-preview-figure.is-ready { opacity: 1; animation: wl-fade var(--wl-short) var(--wl-ease-out); }
.wl-stg-preview-figure.is-shown { animation: none; }
.wl-stg-preview.is-left .wl-stg-preview-figure { right: auto; left: 4%; }
.wl-stg-preview-figure.is-cutout { top: 5%; right: 0; width: 64%; height: 95%; object-fit: contain; object-position: center bottom; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .45)); }
.wl-stg-preview.is-left .wl-stg-preview-figure.is-cutout { left: 0; }
.wl-stg-preview-figure.is-cutout.is-cut-side { -webkit-mask: var(--wl-cut-mask) center bottom / contain no-repeat; mask: var(--wl-cut-mask) center bottom / contain no-repeat; }
.wl-stg-preview-box { position: absolute; z-index: 1; left: 5%; right: 5%; bottom: 5%; padding: 10px 14px 11px; border: 1px solid var(--wl-line); border-radius: var(--r-md); background: var(--wl-surface); box-shadow: var(--wl-elev-card); }
.wl-stg-preview-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; min-width: 0; }
.wl-stg-preview-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.wl-stg-preview-mood { flex: none; padding: 0 7px; border: 1px solid var(--wl-line); border-radius: var(--r-pill); color: var(--wl-text-3); font-size: 11.5px; font-style: italic; line-height: 17px; }
.wl-stg-preview-box p { margin: 0; color: var(--wl-text); font-family: var(--wl-font-story, inherit); font-size: 14px; line-height: 1.5; }

.wl-stg-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--wl-line); border-radius: var(--r-md); }
body .wl-stg .wl-stg-seg button { height: 24px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; box-shadow: none; color: var(--wl-text-3); font-size: var(--t-help); font-weight: 500; cursor: pointer; }
body .wl-stg .wl-stg-seg button[aria-pressed="true"] { background: var(--wl-raised); color: var(--wl-text); }
body .wl-stg .wl-stg-seg button:disabled { opacity: .45; cursor: default; }

/* Compact single-expression action strip */
.wl-stg-detail { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--wl-line); border-radius: var(--r-md); background: var(--wl-surface); }
.wl-stg-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.wl-stg-detail-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wl-stg-detail-title strong { font-size: var(--t-ui); font-weight: 600; color: var(--wl-text); }
.wl-stg-detail-meta { color: var(--wl-text-3); font-size: 12px; }
.wl-stg-detail-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wl-stg-detail-acts .wl-stg-btn.is-main { flex: 1 1 auto; justify-content: center; }
.wl-stg-detail > .wl-stg-ask { margin: 0; }

/* Inline look/custom mood form */
.wl-stg-form-title { font-size: var(--t-ui); font-weight: 600; }
.wl-stg-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body .wl-stg .wl-stg-field input, body .wl-stg .wl-stg-field textarea { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 0 10px; border: 1px solid var(--wl-line); border-radius: var(--r-md); background: var(--wl-inset); box-shadow: none; color: var(--wl-text); font-family: inherit; font-size: var(--t-ui); line-height: 1.45; transition: border-color var(--wl-quick) var(--wl-ease); }
body .wl-stg .wl-stg-field input { height: 32px; }
body .wl-stg .wl-stg-field textarea { min-height: 72px; padding: 7px 10px; resize: vertical; }
body .wl-stg .wl-stg-field input:focus, body .wl-stg .wl-stg-field textarea:focus { border-color: var(--wl-selection); outline: none; }
.wl-stg-field ::placeholder { color: var(--wl-text-3); opacity: .8; }
.wl-stg-field small { color: var(--wl-text-3); font-size: 11.5px; line-height: 1.45; }

/* Right column: expressions grid + primary make bar */
.wl-stg-right { min-width: 0; }
.wl-stg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wl-stg-head h2 { margin: 0; padding: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--wl-text); }
.wl-stg-bar { display: flex; flex-direction: column; gap: 8px; }
.wl-stg-makeset { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
.wl-stg-make-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wl-stg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; border: 1px solid var(--wl-line); border-radius: var(--r-md); background: var(--wl-inset); }
.wl-stg-bar.is-bulk .wl-stg-opts { grid-template-columns: minmax(0, 1fr); }
.wl-stg-opts > .st-painter { grid-column: 1 / -1; }
.wl-stg-opts > .st-painter:nth-child(2) { grid-column: auto; }
body .wl-stg .wl-stg-opts > .st-pill { width: 100%; }
body .wl-stg .wl-stg-opts > .st-pill > span:not(.wt-glyph, .st-price) { flex: 1 1 auto; text-align: left; white-space: nowrap; }

.wl-stg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
body .wl-stg .wl-stg-tile { display: flex; flex-direction: column; align-items: stretch; gap: 5px; height: auto; min-width: 0; padding: 5px 5px 7px; border: 1px solid transparent; border-radius: var(--r-md); background: none; box-shadow: none; color: var(--wl-text); text-align: center; cursor: pointer; transition: background-color var(--wl-quick) var(--wl-ease), border-color var(--wl-quick) var(--wl-ease); }
body .wl-stg .wl-stg-tile:hover { background: var(--wl-raised); }
body .wl-stg .wl-stg-tile.is-picked { border-color: var(--wl-selection); background: var(--wl-selection-soft); }
body .wl-stg .wl-stg-tile.is-drop { border-color: var(--wl-selection); border-style: dashed; }
.wl-stg-tile-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--wl-line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--wl-inset) 80%, var(--wl-surface)); color: var(--wl-text-3); }
.wl-stg-tile.has-face .wl-stg-tile-pic { border-color: var(--wl-line-strong); }
.wl-stg-tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.wl-stg-tile-pic svg { width: 16px; height: 16px; display: block; }
.wl-stg-tile-pic .wl-stg-spin { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--wl-bg) 72%, transparent); color: var(--wl-text); }
.wl-stg-tile.is-failed .wl-stg-tile-pic { color: var(--wl-danger); border-color: var(--wl-danger); }
.wl-stg-tile.is-waiting .wl-stg-tile-pic img, .wl-stg-tile.is-painting .wl-stg-tile-pic img { opacity: .45; }
.wl-stg-tile strong { font-size: 12.5px; font-weight: 500; line-height: 1.25; color: var(--wl-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-stg-tile.is-picked strong, .wl-stg-tile.has-face strong { color: var(--wl-text); font-weight: 600; }

.wl-stg-grid-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--wl-line); }

@container stgpage (max-width: 720px) {
  .wl-stg-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wl-stg-left { position: static; }
}
@container stgpane (max-width: 620px) {
  .wl-stg-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wl-stg-left { position: static; }
  .wl-stg-preview { aspect-ratio: 16 / 10; }
}

/* ---- System → Visual novel split frame ---- */
.wl-sys.wl-stg-vn { width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; container: stgvn / inline-size; }
.wl-sys-page:has(> .wl-sys.wl-stg-vn), .wl-sys-main:has(> .wl-sys.wl-stg-vn) { overflow: hidden !important; }
.wl-stg-frame { display: grid; grid-template-columns: clamp(270px, 28%, 340px) minmax(0, 1fr); height: 100%; min-height: 0; }
.wl-stg-listpane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--wl-line); }
.wl-stg-listscroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 12px 20px 18px; scrollbar-gutter: stable; }
.wl-stg-vn-head { margin: 28px 6px 10px; }
.wl-stg-vn-head h1 { margin: 0; padding: 0; font-family: var(--wl-font-ui); font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.wl-stg-vn-head p { margin: 5px 0 0; color: var(--wl-text-3); font-size: 12.5px; line-height: 1.48; }
.wl-stg-pane { min-width: 0; min-height: 0; overflow: auto; padding: 28px 36px 56px; scrollbar-gutter: stable; }
.wl-stg-pane-body { max-width: 880px; margin: 0 auto; }
.wl-stg-frame.is-empty { grid-template-columns: minmax(0, 1fr); }
.wl-stg-frame.is-empty > .wl-stg-pane { display: none; }
.wl-stg-frame.is-empty > .wl-stg-listpane { border-right: 0; }
body .wl-stg .wl-stg-back { display: none; margin-bottom: 14px; padding-left: 6px; }

/* Sticky search & filter */
.wl-stg-tools { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin: 0 -12px 0 -18px; padding: 10px 18px 10px 24px; border-bottom: 1px solid var(--wl-line); background: linear-gradient(var(--wl-sheet, transparent), var(--wl-sheet, transparent)), var(--wl-bg); }
.wl-stg-tools[hidden] { display: none; }
.wl-stg-find { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 5px 0 10px; border: 1px solid var(--wl-line); border-radius: var(--r-md); background: var(--wl-inset); color: var(--wl-text-3); cursor: text; transition: border-color var(--wl-quick) var(--wl-ease); }
.wl-stg-find:focus-within { border-color: var(--wl-selection); }
.wl-stg-find svg { width: 14px; height: 14px; display: block; }
body .wl-stg .wl-stg-find input { flex: 1 1 0; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; color: var(--wl-text); font-family: inherit; font-size: var(--t-ui); }
.wl-stg-find ::placeholder { color: var(--wl-text-3); opacity: .8; }
body .wl-stg .wl-stg-find-clear { display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--r-sm); background: none; box-shadow: none; color: var(--wl-text-3); cursor: pointer; }
body .wl-stg .wl-stg-find-clear:hover { background: var(--wl-raised); color: var(--wl-text); }
.wl-stg-find input:placeholder-shown + .wl-stg-find-clear { visibility: hidden; }
.wl-stg-filter { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wl-stg-check { flex: none; width: 15px; height: 15px; margin: 0; accent-color: var(--wl-accent); cursor: pointer; }
.wl-stg-which { display: flex; flex: 1 1 0; min-width: 0; }
body .wl-stg .wl-stg-which button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 1 1 0; min-width: 0; padding: 0 7px; }
body .wl-stg .wl-stg-which button > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .wl-stg .wl-stg-which button[aria-pressed="true"] .wl-stg-count { color: var(--wl-text-2); }
body .wl-stg .wl-stg-sel-btn { height: 28px; padding: 0 9px; font-size: 12px; }

/* Clean cast rows (no empty dashed boxes) */
.wl-stg-table { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.wl-stg-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 6px 9px; padding: 6px 8px; border-radius: var(--r-md); transition: background-color var(--wl-quick) var(--wl-ease); }
.wl-stg-row.has-check { grid-template-columns: 16px minmax(0, 1fr); }
.wl-stg-row:hover { background: color-mix(in srgb, var(--wl-raised) 55%, transparent); }
.wl-stg-row.is-open { background: var(--wl-raised); }
.wl-stg-row.is-checked { background: var(--wl-selection-soft); }
body .wl-stg .wl-stg-who { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: auto; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--wl-text); text-align: left; cursor: pointer; }
.wl-stg-portrait { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: var(--wl-inset); color: var(--wl-text-3); }
.wl-stg-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.wl-stg-portrait svg { width: 15px; height: 15px; display: block; }
.wl-stg-who-words { display: flex; flex-direction: column; gap: 1px; flex: 1 1 0; min-width: 0; }
.wl-stg-who-words strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--wl-text); }
.wl-stg-row.is-open .wl-stg-who-words strong { font-weight: 600; }
.wl-stg-who-words small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wl-text-3); font-size: 11px; }
.wl-stg-row-badge { flex: none; color: var(--wl-text-3); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl-stg-row-badge.is-ready { padding: 2px 7px; border-radius: 999px; background: var(--wl-inset); border: 1px solid var(--wl-line); color: var(--wl-text-2); font-family: var(--wl-font-mono); font-size: 10.5px; }

/* Mini strip shown ONLY for characters with ready/in-progress faces */
.wl-stg-row > .wl-stg-strip { padding-left: 42px; }
.wl-stg-row.has-check > .wl-stg-strip { grid-column: 2; }
.wl-stg-strip { display: flex; flex-wrap: wrap; gap: 4px; }
body .wl-stg .wl-stg-mini { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 22px; height: 22px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--wl-line); border-radius: 5px; background: var(--wl-inset); box-shadow: none; color: var(--wl-text-2); }
body .wl-stg button.wl-stg-mini { cursor: pointer; transition: border-color var(--wl-quick) var(--wl-ease), transform var(--wl-quick) var(--wl-ease); }
body .wl-stg button.wl-stg-mini:hover { border-color: var(--wl-selection); transform: scale(1.1); }
.wl-stg-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.wl-stg-mini.is-waiting img, .wl-stg-mini.is-painting img { opacity: .4; }
body .wl-stg .wl-stg-mini.is-failed { border-color: var(--wl-danger); }
.wl-stg-mini .wl-stg-spin { position: relative; z-index: 1; }
.wl-stg-mini svg { width: 11px; height: 11px; display: block; }
.wl-stg-hint { padding: 14px 8px 0; }

/* Bulk actions bar */
.wl-stg-barhost { flex: none; padding: 0 12px; }
.wl-stg-barhost:empty { display: none; }
.wl-stg-bar.is-bulk { flex-direction: column; align-items: stretch; gap: 8px; margin: 0 0 12px; padding: 10px; border: 1px solid var(--wl-line); border-radius: var(--r-lg); background: var(--wl-surface); box-shadow: var(--wl-elev-pop); }
.wl-stg-bar-head { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 24px; padding-left: 2px; }
.wl-stg-bar-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
body .wl-stg .wl-stg-bar-set > .wl-stg-btn { justify-content: center; width: 100%; padding: 0 6px; }
body .wl-stg .wl-stg-bar-set > .wl-stg-btn > span { overflow: hidden; text-overflow: ellipsis; }
.wl-stg-bar.is-bulk:has(> .wl-stg-ask) { flex-flow: row wrap; align-items: center; }
.wl-stg-chosen, .wl-stg-ask { margin-right: 6px; color: var(--wl-text); font-size: var(--t-ui); font-weight: 600; }
.wl-stg-chosen { margin-right: 0; white-space: nowrap; }
.wl-stg-ask { flex: 1 1 100%; font-weight: 500; line-height: 1.45; }
.wl-stg-barhost > .wl-stg-note { margin: -4px 4px 10px; }

@container stgvn (max-width: 820px) {
  .wl-stg-frame { grid-template-columns: minmax(0, 1fr); }
  .wl-stg-listpane { border-right: 0; }
  .wl-stg-frame:not(.is-detail) > .wl-stg-pane, .wl-stg-frame.is-detail > .wl-stg-listpane { display: none; }
  body .wl-stg .wl-stg-back { display: inline-flex; }
  .wl-stg-listscroll { padding: 0 10px 16px 14px; }
  .wl-stg-vn-head { margin-top: 20px; }
  .wl-stg-tools { margin: 0 -10px 0 -14px; padding: 10px 16px 10px 18px; }
  .wl-stg-pane { padding: 18px 18px 56px; }
}
@media (prefers-reduced-motion: reduce) { .wl-stg-spin svg { animation: none; } .wl-stg-preview-figure.is-ready { animation: none; } body .wl-stg button.wl-stg-mini:hover { transform: none; } }
