/* SalesVidGen — Premium v3 step ④ Scenes: the look book as a sheet of tall plates (one per place,
   captioned like a printed look book). UX4: one status line, one grid, one Change button per card; the three ways
   only on a first visit or inside "Start the scenes over…". App theme tokens only, so every
   theme carries over. Colour only carries meaning: accent = chosen / drawing, yellow = check this,
   green = in use, red = could not be made. */

.sc-root { display: grid; gap: 2.2rem; font-variant-numeric: lining-nums; }
.sc-h { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--text-primary); }
.sc-msg { color: var(--error); font-size: 0.88rem; line-height: 1.45; }
.sc-top-msg { padding: 0.7rem 0.95rem; border-radius: var(--radius-sm); background: var(--error-bg); }
/* The app styles every <label> as a small capitals caption; these labels are plain sentences. */
.sc-root label, .sc-label, .sc-role-label { text-transform: none; letter-spacing: 0; }
.sc-label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text-secondary); margin: 0 0 0.35rem; }
.sc-opt { font-weight: 400; color: var(--text-tertiary); }
.sc-intro { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.6; max-width: 60ch; }
.sc-note { font-size: 0.8rem; line-height: 1.45; color: var(--text-tertiary); }

/* ---------- The look book ---------- */
.sc-book-head { display: grid; gap: 0.6rem; justify-items: start; margin-bottom: 1.1rem; }
.sc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.sc-status:empty { display: none; }
.sc-status-line { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.5; max-width: 60ch; }
.sc-status-line.is-ok { color: var(--success); font-weight: 600; }
.sc-status-line.is-ok::before { content: '✓ '; }
.sc-status-line.is-bad { color: var(--error); font-weight: 600; }
.sc-plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem 0.9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
.sc-plate { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.sc-plate-fig { margin: 0; display: grid; gap: 0.55rem; }
.sc-plate-pic { position: relative; display: grid; place-items: center; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-surface); }
.sc-plate-pic img { width: 100%; height: 100%; object-fit: cover; }
.sc-plate-name { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.25; color: var(--text-primary); overflow-wrap: anywhere; }
.sc-plate-state { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 0.35rem 0.55rem; border-radius: 6px; background: var(--bg-base); color: var(--text-primary); font-size: 0.78rem; font-weight: 700; text-align: center; }
.sc-plate:not(.is-done) .sc-plate-pic { border-style: dashed; border-color: var(--border-strong); }
.sc-plate.is-waiting .sc-plate-state { color: var(--text-tertiary); }
.sc-plate.is-working .sc-plate-pic, .sc-plate.is-checking .sc-plate-pic, .sc-plate.is-redrawing .sc-plate-pic { border-color: var(--accent); background: var(--accent-subtle); animation: scBreathe 2.4s ease-in-out infinite; }
.sc-plate.is-working .sc-plate-state { color: var(--accent); }
.sc-plate.is-checking .sc-plate-state, .sc-plate.is-redrawing .sc-plate-state { color: var(--warning); }
.sc-plate.is-failed .sc-plate-pic { border-color: var(--error); background: var(--error-bg); }
.sc-plate.is-failed .sc-plate-state { color: var(--error); }
.sc-plate:not(.is-done) .sc-plate-pic img { opacity: 0.55; }
@keyframes scBreathe { 50% { opacity: 0.65; } }
.sc-warn { padding: 0.45rem 0.6rem; border-left: 3px solid var(--warning); border-radius: 0 6px 6px 0; background: var(--warning-bg); color: var(--text-primary); font-size: 0.8rem; line-height: 1.45; }

/* ---------- The three ways ---------- */
.sc-ways { display: grid; gap: 0; min-width: 0; }
.sc-ways > .sc-h { margin-bottom: 0.35rem; }
.sc-ways > .sc-intro { margin-bottom: 1.1rem; }
.sc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1.5rem; }
.sc-tab { display: grid; gap: 0.2rem; align-content: start; padding: 0.8rem 0.9rem 0.85rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s var(--ease); }
.sc-tab:hover { border-color: var(--accent); color: var(--text-primary); }
.sc-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-tab.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-subtle); color: var(--text-primary); }
.sc-tab-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.sc-tab-sub { font-size: 0.8rem; color: var(--text-tertiary); font-variant-numeric: lining-nums tabular-nums; }
.sc-tab.is-on .sc-tab-sub { color: var(--text-secondary); }
.sc-none { display: grid; gap: 0.7rem; justify-items: start; color: var(--text-secondary); }

/* Photo picker */
.sc-flash { margin-bottom: 1rem; padding: 0.65rem 0.9rem; border-radius: var(--radius-sm); background: var(--success-bg); color: var(--text-primary); font-size: 0.88rem; line-height: 1.45; }
.sc-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.sc-photo { display: grid; gap: 0.5rem; min-width: 0; align-content: start; }
.sc-photo-pick { position: relative; display: block; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-surface); cursor: pointer; }
.sc-photo-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.sc-photo-pick img { width: 100%; height: 100%; object-fit: cover; }
.sc-photo-pick:hover { border-color: var(--accent); }
.sc-photo-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-photo-tick { position: absolute; top: 0.5rem; left: 0.5rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, 0.35); color: transparent; font-size: 0.85rem; font-weight: 700; }
.sc-photo.is-on .sc-photo-pick { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.sc-photo.is-on .sc-photo-tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-photo-new { position: absolute; top: 0.55rem; right: 0.55rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--bg-base); color: var(--text-primary); font-size: 0.72rem; font-weight: 700; }
.sc-role { display: grid; gap: 0.25rem; margin: 0; font-weight: 400; }
.sc-role-label { font-size: 0.78rem; color: var(--text-tertiary); }
.sc-role select { width: 100%; font-size: 0.88rem; }
.sc-photo:not(.is-on) .sc-role select { opacity: 0.75; }
.sc-pick-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.sc-pick-count { color: var(--text-secondary); font-size: 0.9rem; font-variant-numeric: lining-nums tabular-nums; }
.sc-pick-why { margin-top: 0.5rem; text-align: right; }
.sc-pick-msg { margin-top: 0.4rem; text-align: right; }

/* Project photos arranged by the system: one plate per place-type, the photo the system chose and why. A place
   drawn from another photo shows that photo faded in a dashed frame; a place with no photo is red-dashed. */
.sa-root { display: grid; gap: 1.2rem; }
.sa-mode { margin: 0 0 1rem; }
.sa-plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.sa-plate { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.sa-pic { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; margin: 0 0 0.35rem; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-surface); cursor: pointer; }
.sa-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-pic:hover { border-color: var(--accent); }
.sa-pic:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sa-plate.is-open .sa-pic { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
/* SS1: a place drawn to complete the set: dashed accent, the picture it is drawn from faded; drawn earlier: solid accent. */
.sa-plate.is-draw .sa-pic { border: 1.5px dashed var(--accent); background: var(--accent-subtle); }
.sa-plate.is-draw .sa-pic img { opacity: 0.38; filter: grayscale(0.6); }
.sa-plate.is-ready .sa-pic { border: 1.5px solid var(--accent); }
.sa-plate.is-ready .sa-tag { top: auto; bottom: 0.5rem; transform: translateX(-50%); }
.sa-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--bg-base); color: var(--accent); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.sa-name { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.25; color: var(--text-primary); overflow-wrap: anywhere; }
.sa-why { font-size: 0.8rem; line-height: 1.45; color: var(--text-secondary); }
.sa-warn { font-size: 0.8rem; line-height: 1.45; color: var(--text-primary); padding-left: 0.55rem; border-left: 3px solid var(--warning); }
.sa-change { align-self: flex-start; margin-top: auto; }
.sa-choose { grid-column: 1 / -1; display: grid; gap: 0.8rem; padding: 1rem; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg-surface); }
.sa-choose-h { font-weight: 600; color: var(--text-primary); }
.sa-sheet { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); }
.sa-opt { display: grid; gap: 0.3rem; min-width: 0; }
.sa-opt-pick { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-base); cursor: pointer; }
.sa-opt-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-opt-pick:hover { border-color: var(--accent); }
.sa-opt-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sa-opt.is-on .sa-opt-pick { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }
.sa-opt-what { font-size: 0.74rem; color: var(--text-tertiary); overflow-wrap: anywhere; }
.sa-choose-foot { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sa-reading { display: grid; gap: 0.45rem; max-width: 30rem; color: var(--text-primary); font-size: 0.92rem; }
.sa-bar { display: block; height: 6px; border-radius: 999px; background: var(--border-color); overflow: hidden; }
.sa-bar > span { display: block; height: 100%; background: var(--accent); transition: width 0.4s var(--ease); }
.sa-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; padding: 0.6rem 0.8rem; border-left: 3px solid var(--warning); border-radius: 0 6px 6px 0; background: var(--warning-bg); color: var(--text-primary); font-size: 0.86rem; line-height: 1.45; }
.sa-root.is-quoting .sa-plates, .sa-root.is-quoting .sa-plan { opacity: 0.6; transition: opacity 0.2s var(--ease); }
/* SS1: the whole set at a glance before paying — one small frame per picture the script needs. */
.sa-plan { display: grid; gap: 0.55rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-surface); }
.sa-plan-h { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; color: var(--text-primary); }
.sa-plan-sum { font-size: 0.92rem; line-height: 1.45; color: var(--text-secondary); }
.sa-plan-pkg { font-size: 0.8rem; line-height: 1.45; color: var(--text-tertiary); max-width: 70ch; }
.sa-root .sc-pick-foot { margin-top: 0.4rem; }

/* Upload + AI set */
.sc-upload, .sc-ai { display: grid; gap: 1rem; justify-items: start; max-width: 40rem; }
.sc-file { position: relative; margin: 0; cursor: pointer; }
.sc-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.sc-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-file:has(input:disabled) { opacity: 0.5; pointer-events: none; }
.sc-places { width: 100%; }
.sc-place-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sc-place-list li { padding: 0.3rem 0.7rem; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.82rem; color: var(--text-primary); }
.sc-field { display: grid; width: 100%; margin: 0; font-weight: 400; }
.sc-field textarea { width: 100%; resize: vertical; min-height: 5.5rem; }
.sc-count { justify-self: end; margin-top: 0.25rem; font-size: 0.75rem; color: var(--text-tertiary); font-variant-numeric: lining-nums tabular-nums; }
.sc-refs { display: grid; gap: 0.55rem; justify-items: start; }
.sc-ref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sc-ref-list:empty { display: none; }
.sc-ref-list li { display: grid; gap: 0.2rem; width: 72px; }
.sc-ref-list img { width: 72px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.sc-ref-x { border: 0; background: none; padding: 0.1rem 0; font: inherit; font-size: 0.76rem; color: var(--text-secondary); text-decoration: underline; cursor: pointer; }
.sc-ref-x:hover { color: var(--error); }
.sc-ref-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-make { padding: 0.8rem 1.4rem; margin-top: 0.3rem; font-variant-numeric: lining-nums; }

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .sc-tabs { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .sc-tab { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.75rem; padding: 0.75rem 0.9rem; }
  .sc-tab-sub { text-align: right; }
  .sc-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 0.65rem; }
  .sc-plate-name { font-size: 0.98rem; }
  .sc-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.6rem; }
  .sc-pick-foot .btn, .sc-make { width: 100%; justify-content: center; }
  .sc-pick-why, .sc-pick-msg { text-align: left; }
  .sc-upload, .sc-ai { justify-items: stretch; }
  .sc-file { justify-content: center; }
  /* Phone: each place is a row — the photo on the left, what and why on the right. */
  .sa-plates { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .sa-plate { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 0.85rem; row-gap: 0.2rem; align-content: start; }
  .sa-plate > .zv-badge-host { grid-row: 1 / span 6; align-self: start; }
  .sa-plate > :not(.zv-badge-host) { grid-column: 2; }
  .sa-change { justify-self: start; margin-top: 0.3rem; }
  .sa-pic { margin: 0; }
  .sa-tag { font-size: 0.7rem; padding: 0.25rem 0.5rem; white-space: normal; text-align: center; width: max-content; max-width: 90%; }
  .sa-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sa-plan { padding: 0.85rem 0.8rem 0.9rem; }
}
@media (max-width: 340px) { .sc-plates, .sc-photos { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .sc-plate .sc-plate-pic { animation: none !important; }
  .sc-tab { transition: none; }
  .sa-bar > span { transition: none; }
  .sa-root.is-quoting .sa-plates, .sa-root.is-quoting .sa-plan { transition: none; }
}


/* ---------- UX4 (Jerry 22 Oct: "人家会卡在这边, 不敢用"): one grid, small chips, one Change button per card ---------- */
.sc-book-wrap { display: grid; gap: 1.1rem; }
.sc-book-wrap > .sc-status { margin: 0; }
.sc-plate .sc-plate-fig { gap: 0.4rem; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; }
.sc-chip { display: inline-flex; align-items: center; padding: 0.12rem 0.5rem; border: 1px solid var(--border-color); border-radius: 0.7rem;
  max-width: 100%; font-size: 0.72rem; font-weight: 500; line-height: 1.35; color: var(--text-secondary); overflow-wrap: anywhere; }
.sc-chip.is-ai { border-color: var(--accent); color: var(--accent); }
.sc-chip.is-warn { border-color: transparent; background: var(--warning-bg); color: var(--text-primary); }
.sc-chip.is-warn::before { content: ''; width: 0.4rem; height: 0.4rem; margin-right: 0.35rem; border-radius: 50%; background: var(--warning); }
.sc-change { align-self: stretch; justify-content: center; margin-top: auto; }
/* A quiet text button: "Start the scenes over…", "Pick the photos myself", "Try again". */
.sc-link { padding: 0.35rem 0; border: 0; background: none; font: inherit; font-size: 0.88rem; color: var(--text-secondary);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sc-link:hover:not(:disabled) { color: var(--accent); }
.sc-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.sc-link:disabled { opacity: 0.5; cursor: not-allowed; }
.sc-over-row { margin: -0.6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.sa-foot { justify-content: space-between; }
.sa-foot .sa-use { margin-left: auto; }
.sa-alert .sc-link { padding: 0; font-size: inherit; color: var(--text-primary); }

/* The step ④ windows on the .pl-dialog shell: a head that stays, the body scrolls. */
.pl-dialog.sc-dlg { margin: auto; padding: 0; overflow: hidden; }
.pl-dialog.sc-dlg[open] { display: flex; flex-direction: column; }
.sc-dlg-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem 0.8rem;
  border-bottom: 1px solid var(--border-color); }
.sc-dlg-title { font-family: var(--font-display); font-size: 1.2rem; overflow-wrap: anywhere; }
.sc-dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.25rem 1.1rem; }
.sc-dlg.is-busy .sc-dlg-body { cursor: progress; }
.sc-dlg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-dialog.sc-sheet { width: min(34rem, calc(100vw - 32px)); }
.sc-sheet-top { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; margin-bottom: 0.9rem; }
.sc-sheet-pic { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.sc-sheet-about { display: grid; gap: 0.5rem; min-width: 0; align-content: start; }
.sc-sheet-name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; color: var(--text-primary); overflow-wrap: anywhere; }
.sc-opt-btn .pl-text strong { color: var(--text-primary); }
.sc-sheet-notes { list-style: none; margin: 0; padding: 0 0 0 0.6rem; display: grid; gap: 0.25rem; border-left: 3px solid var(--warning);
  font-size: 0.84rem; line-height: 1.45; color: var(--text-primary); }
.sc-sheet .pl-sub { margin: 0 0 0.7rem; }
.sc-opt { display: grid; gap: 0; }
.pl-choice.sc-opt-btn { grid-template-columns: minmax(0, 1fr) auto; }
.sc-opt.is-open .sc-opt-btn { border-color: var(--accent); background: var(--accent-subtle); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.sc-opt-price { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.pl-text .sc-opt-why { margin-top: 0.3rem; font-size: 0.78rem; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.sc-opt-body { display: grid; gap: 0.6rem; justify-items: start; padding: 0.85rem; border: 1px solid var(--accent); border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.sc-opt-body[hidden] { display: none; }
.sc-opt-body .ask-ai { width: 100%; }
.sc-opt-body .ask-ai-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-opt-body .sa-sheet { width: 100%; }
.sc-photo-plan { font-size: 0.86rem; line-height: 1.45; color: var(--text-primary); }
.sc-photo-plan:empty { display: none; }
.pl-dialog.sc-over { width: min(60rem, calc(100vw - 32px)); height: min(52rem, calc(100vh - 48px)); max-height: none; }
/* In the window the one button stays in reach while the plan scrolls. */
.sc-over .sa-foot { position: sticky; bottom: 0; z-index: 2; margin: 0 -1.25rem; padding: 0.8rem 1.25rem; background: var(--bg-base); }
.sc-over .sc-dlg-body { padding-bottom: 0; }
.sc-over .sa-use-why, .sc-over .sa-msg { padding-bottom: 0.8rem; }
.sc-over .sc-upload, .sc-over .sc-ai, .sc-over .sc-none, .sc-over .sc-pick-msg { padding-bottom: 1rem; }
.sc-over-warn { margin: 0 0 1.1rem; padding: 0.6rem 0.85rem; border-left: 3px solid var(--warning); border-radius: 0 6px 6px 0;
  background: var(--warning-bg); font-size: 0.88rem; line-height: 1.5; color: var(--text-primary); max-width: 70ch; }
@media (max-width: 720px) {
  .pl-dialog.sc-dlg { width: 100%; max-width: 100%; padding: 0; margin: auto 0 0; max-height: calc(100dvh - 24px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .pl-dialog.sc-over { height: calc(100dvh - 24px); }
  .sc-dlg-head { padding: 0.9rem 16px 0.7rem; }
  .sc-dlg-body { padding: 0.9rem 16px calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .sc-opt-body .btn-primary { width: 100%; justify-content: center; }
  .sa-foot { flex-direction: column-reverse; align-items: stretch; }
  .sa-foot .sa-self { align-self: center; }
  .sc-over .sa-foot { margin: 0 -16px; padding: 0.7rem 16px; }
}
