/* Medidas tiradas da referência visual: respiro de 20px, ritmo de 18px, anexo
   único de 54px. (O nome da referência saiu em 17/09/2026 — ver a nota no
   topo de studio.css.) */
.bench-recipes { margin:0 0 16px; border-bottom:1px solid var(--border); }
.reference-library { display:flex; gap:8px; align-items:center; margin:0 12px 12px; min-height:44px; }
.nav-button { text-align:left; }
.nav-button>svg { flex-shrink:0; }
#studioForm { gap:12px; }
.bench-model-facts summary { cursor:pointer; color:var(--muted); font-size:var(--text-label-size); padding:6px 0; min-height:32px; }
.reference-source-tools { display:flex; align-items:center; gap:4px; padding:4px 8px; flex-wrap:wrap; }
.reference-source-tools #addReference,.reference-source-tools .reference-library { flex:1; width:auto; min-width:120px; margin:0; padding:8px; min-height:44px; font-size:var(--text-label-size); }
.reference-source-tools #addReference { justify-content:center; }
.reference-source-tools svg { width:16px; height:16px; flex-shrink:0; }
.reference-source-tools #libraryReferences { border:0; justify-content:center; }
.reference-section>.field-note { margin:6px 0 0; }
#studioForm .prompt-input { min-height:100px; }
@media(min-width:1100px){.bench-recipes{margin-bottom:8px}}
.top-balance { white-space:nowrap; font-size:var(--text-label-size); display:flex; gap:8px; align-items:center; min-height:44px; }
.top-balance span { font-weight:600; }
.production-tool-picker { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:24px 0; }
.production-tool-picker select { max-width:100%; }
.tool-preview>img,.tool-preview>video { max-width:100%; max-height:480px; object-fit:contain; }
@media(max-width:600px){.topbar .connection-label{display:none}.topbar{gap:8px}.topbar>.row{gap:8px}.top-balance{padding:8px}.breadcrumb>span{display:none}}
.reference-library-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; max-height:50vh; overflow:auto; margin:16px 0; }
.reference-library-item { display:flex; gap:8px; align-items:start; border:1px solid var(--border); border-radius:var(--radius); padding:12px; cursor:pointer; }
.reference-library-item input { width:18px; height:18px; flex-shrink:0; }
.reference-library-item>span { display:grid; gap:8px; min-width:0; }
.reference-library-item strong { overflow-wrap:anywhere; font-size:var(--text-label-size); font-weight:500; }
.reference-library-item img { width:100%; height:96px; object-fit:cover; border-radius:4px; }
.reference-library-item small { color:var(--muted); font-size:var(--text-label-size); }
.reference-library-item:has(input:checked) { border-color:var(--fg); background:var(--surface); }
.bench-recipes summary { color:var(--muted); cursor:pointer; padding:12px 0; font-size:var(--text-label-size); min-height:44px; }
.bench-recipes[open] .preset-strip { margin:0 0 16px; }
.bench-recipes summary:focus-visible { outline:2px solid var(--fg); outline-offset:2px; }
#studioForm { padding:20px; gap:18px; max-height:none; overflow:visible; }
#studioForm .field-note:empty { display:none; }
.attachment-zone { position:relative; border:1px dashed var(--line); border-radius:4px; padding:0; min-width:0; }
.attachment-zone[data-state=ready] { border-style:solid; }
.attachment-zone.is-dragging { border-color:var(--fg); background:var(--surface); }
.attachment-zone[data-state=invalid] { border-color:#ff947d; }
.attachment-zone[data-state=invalid] [role=status] { color:#ffb6a5; }
.attachment-pick { display:flex; align-items:center; gap:12px; width:100%; padding:12px; min-height:62px; text-align:left; background:none; border:0; border-radius:4px; }
.attachment-pick span { display:grid; gap:4px; min-width:0; }
.attachment-pick strong { font-size:var(--text-label-size); font-weight:500; }
.attachment-pick small { color:var(--muted); font-size:var(--text-label-size); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.attachment-pick img { width:36px; height:36px; object-fit:cover; border-radius:2px; }
.attachment-zone[data-state=ready] .attachment-pick { padding-right:48px; }
.attachment-remove { position:absolute; top:8px; right:4px; width:40px; min-height:40px; padding:10px; background:none; border:0; }
.attachment-zone [role=status] { margin:0; padding:0 12px 10px; color:var(--muted); font-size:var(--text-label-size); line-height:1.5; }
#studioForm .settings-grid { grid-template-columns:repeat(auto-fit,minmax(76px,1fr)); gap:8px; }
#studioForm .generate-area { position:static; padding-top:16px; border-top:1px solid var(--border); }
.bench-history { margin-top:20px; }
.bench-history summary { color:var(--muted); cursor:pointer; font-size:var(--text-label-size); min-height:44px; padding:12px 0; }
@media (min-width:1100px) { .bench-grid { grid-template-columns:352px minmax(0,1fr); } }
@media (max-width:600px) { #studioForm { padding:16px; } .attachment-pick { min-height:64px; } }
/* Model facts stay with the selected model; comparison opens on demand. */
.model-card { min-width:0; padding:18px; border:1px solid var(--border); border-radius:8px; background:var(--panel); }
.model-card.is-selected { border-color:var(--fg); }
.model-card-heading { display:flex; justify-content:space-between; align-items:start; gap:12px; }
.model-card-heading h3 { margin:5px 0 0; font-size:var(--text-h3-size); line-height:1.35; }
.model-card-heading small,.model-state { color:var(--muted); font-size:var(--text-label-size); }
.model-state { white-space:nowrap; padding:3px 0; }
.model-inputs { font-size:var(--text-label-size); color:var(--muted); line-height:1.7; margin:12px 0; }
.model-capacidades { display:grid; gap:5px; margin:0 0 12px; padding:0; list-style:none; font-size:var(--text-label-size); }
.model-capacidades li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; align-items:baseline; }
.model-capacidades strong { font-weight:600; }
.model-capacidades span { color:var(--muted); }
.model-capacidades small { grid-column:1/-1; color:var(--muted); }
.model-card dl { margin:0; display:grid; gap:7px; font-size:var(--text-label-size); }
.model-card dl>div { display:flex; gap:12px; justify-content:space-between; }
.model-card dt { color:var(--muted); }
.model-card dd { margin:0; text-align:right; }
.model-card-price { font-size:var(--text-label-size); margin-top:14px; }
.model-card>button { width:100%; margin-top:14px; }
.model-card-compact { border:0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); border-radius:0; padding:10px 0; margin-top:-10px; background:transparent; }
.model-card-compact .model-card-heading { display:none; }
.model-card-compact .model-inputs { margin:0 0 10px; }
.model-card-compact .model-capacidades { margin-bottom:10px; }
.model-card-compact .model-card-price { margin-top:10px; }
.compare-models { justify-content:space-between; font-size:var(--text-label-size); padding:0; min-height:32px; margin-top:-12px; }
.model-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
#studioDialog:has(.model-cards) { width:min(920px,calc(100vw - 32px)); max-width:920px; }
.reference-section { min-width:0; }
.reference-modes { display:flex; gap:6px; margin-bottom:10px; }
.reference-modes button { flex:1; font-size:var(--text-label-size); min-height:38px; padding:8px; background:transparent; border-color:var(--border); }
.reference-modes button[aria-pressed=true] { background:var(--surface); border-color:var(--line); color:var(--fg); }
.reference-multiple .attachment-pick { padding:12px; min-height:56px; }
.reference-files { display:grid; gap:0; max-height:240px; overflow:auto; }
.reference-file { display:flex; align-items:center; gap:9px; padding:10px; border-bottom:1px solid var(--border); min-width:0; }
.reference-thumb { width:44px; height:44px; flex-shrink:0; padding:0; overflow:hidden; background:var(--surface); }
.reference-thumb img { width:100%; height:100%; object-fit:cover; }
.reference-file-info { display:grid; gap:4px; flex:1; min-width:0; }
.reference-file-info>span { font-size:var(--text-label-size); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.reference-file-info small { color:var(--muted); font-size:var(--text-label-size); }
.reference-file-info select { font-size:var(--text-label-size); padding:4px 22px 4px 7px; height:32px; }
.reference-mentions { border:1px solid var(--line); background:var(--surface); border-radius:4px; padding:4px; max-height:190px; overflow:auto; }
.reference-mentions[hidden] { display:none; }
.reference-mentions button { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; border:0; background:none; text-align:left; font-size:var(--text-label-size); }
.reference-mentions button[aria-selected=true] { background:var(--line); }
.reference-mentions small { color:var(--muted); font-size:var(--text-label-size); }
.preview-error { flex-basis:100%; margin:0; font-size:var(--text-label-size); }
@media(min-width:1100px) { .bench-grid { grid-template-columns:390px minmax(0,1fr); } }
@media(max-width:600px) { .model-cards { grid-template-columns:1fr; }.reference-modes button { min-height:44px; } }
.model-card-compact dl { display:flex; flex-wrap:wrap; gap:6px 20px; }
.model-card-compact dl>div { justify-content:start; gap:6px; }
.model-card-compact .model-inputs { font-size:var(--text-label-size); line-height:1.5; }
.model-card-compact { padding:9px 0; }
.reference-files { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:8px 8px 0; }
.reference-files:empty { padding:0; }
.reference-file { position:relative; display:grid; grid-template-columns:40px minmax(0,1fr); gap:7px; padding:6px 24px 6px 0; border:0; }
.reference-file>.btn-icon { position:absolute; top:0; right:-4px; width:28px; min-height:36px; padding:6px; }
.reference-thumb { width:40px; height:48px; }
.reference-file-info>span { font-size:var(--text-label-size); }
.reference-file-info small { font-size:var(--text-label-size); }
.reference-limits { padding:0 12px 8px; color:var(--muted); font-size:var(--text-label-size); }
.reference-limits summary { cursor:pointer; min-height:28px; padding:6px 0; }
.reference-limits p { margin:5px 0; line-height:1.6; }
.reference-multiple .attachment-pick { min-height:48px; padding:8px 12px; }
.reference-multiple .attachment-pick small { display:none; }
.post-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:65vh;overflow:auto;padding:2px}
.post-card{border:1px solid #27272a;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:8px;background:#0a0a0a}
.post-card h3,.post-card p{margin:0}.post-card p{font-size:var(--text-body-sm-size);color:#a7a7a7;line-height:1.5}.post-card small{color:#a7a7a7}.post-card button{margin-top:auto;min-height:44px}.post-card .post-reason{color:#d1d1d1}.post-card.unavailable{background:transparent}.post-open{border-color:#a7a7a7!important}
@media(max-width:600px){.post-cards{grid-template-columns:1fr}}
#studioForm { gap:12px; }
.composer-actions { display:flex; align-items:center; gap:4px; }
#studioForm .composer-actions .btn-icon { min-height:36px; width:36px; }
@media(max-width:600px){#studioForm .composer-actions .btn-icon{min-height:44px;width:44px}}
.recent-item,.asset-open{position:relative}.media-kind-badge{position:absolute;bottom:7px;left:7px;font-size:var(--text-label-size);line-height:1;padding:5px 7px;border-radius:4px;background:#030303d9;color:#fff;pointer-events:none}
#studioDialog:has(.image-lightbox){width:min(1200px,calc(100vw - 32px));max-width:1200px}.image-lightbox{max-height:75vh;overflow:auto;text-align:center}.image-lightbox img{max-width:100%;max-height:70vh;object-fit:contain}.image-lightbox.original img{max-width:none;max-height:none}

/* ── BANDEJAS TIPADAS (§17.1) — 16/09/2026 ────────────────────────────────────
   Duas bandejas nomeadas lado a lado no desktop, empilhadas no celular. Cada
   uma é um alvo de arraste próprio e carrega a legenda que diz o que o campo
   faz ("Define como começa" / "Define como termina"), que é o pedido literal do
   §17.1. A bandeja do quadro final nasce BLOQUEADA quando não há quadro
   inicial: o servidor recusa `last` sem `first`
   (a validação de referências do servidor), então um campo aceso ali seria botão que leva a
   erro. Bloqueada com motivo escrito, não bloqueada e muda. */
/*
 * 22/09/2026 — as duas bandejas viviam em 2 COLUNAS FIXAS. A coluna da Bancada tem ~370px, então
 * cada bandeja ficava com ~170px: "Biblioteca" saía cortado e o alvo de arrastar espremia. Com
 * `auto-fit`+`minmax`, elas ficam lado a lado onde cabe e EMPILHAM onde não cabe.
 */
.frame-trays { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; max-height:none; overflow:visible; padding:0; }
.frame-tray { display:grid; gap:8px; align-content:start; padding:10px; border:1px solid var(--border); border-radius:6px; background:var(--surface); min-width:0; }
.frame-tray[data-filled=true] { border-color:var(--line); }
.frame-tray.is-dragging { border-color:var(--accent-primary); background:var(--accent-primary-soft); }
.frame-tray[data-blocked=true] { opacity:.72; }
.frame-tray-head { display:grid; gap:2px; }
.frame-tray-head .field-label { margin:0; font-size:var(--text-label-size); }
.frame-tray-head small { color:var(--text-muted); font-size:var(--text-label-size); line-height:1.4; }
.frame-tray .frame-tray-drop { border:1px dashed var(--border); border-radius:4px; min-height:74px; }
.frame-tray .frame-tray-drop:disabled { cursor:not-allowed; }
.frame-tray .frame-tray-drop small { white-space:normal; }
.frame-tray .reference-file { padding:0 24px 0 0; }
.frame-tray-tools { display:flex; flex-wrap:wrap; gap:6px; }
.frame-tray-tools button { flex:1 1 110px; min-width:0; font-size:var(--text-label-size); min-height:34px; padding:6px 8px; justify-content:center; gap:5px; white-space:nowrap; }
.frame-tray-tools button svg { flex:none; }
/* Anexo preservado que o modelo/modo atual não usa (REF-02): visível, marcado e
   removível — nunca apagado por trás. */
.reference-kept { margin-top:10px; padding:8px; border:1px dashed var(--border); border-radius:6px; }
.reference-kept>.field-note { margin:0 0 6px; }
.reference-file.is-incompatible { opacity:.66; }
.reference-file.is-incompatible .reference-incompatible { color:var(--text-muted); white-space:normal; line-height:1.4; }

/* UX2: a foto é o foco; escolhas opcionais aparecem somente quando solicitadas. */
.reference-files { max-height:none; overflow:visible; }
.reference-file.reference-photo-card { display:grid; grid-template-columns:minmax(0,1fr); padding:0; gap:0; background:var(--surface-1); border:1px solid var(--border-soft); border-radius:var(--radius-sm); }
.reference-photo-card .reference-thumb { width:100%; height:116px; padding:0; border-radius:var(--radius-sm); overflow:hidden; }
.reference-photo-card .reference-thumb img { width:100%; height:100%; object-fit:contain; }
.reference-photo-card .reference-file-info { padding:8px 48px 8px 8px; min-height:44px; }
.reference-photo-card>.btn-icon { top:4px; right:4px; width:36px; min-height:36px; background:var(--surface-1); border-radius:var(--radius-sm); }
.reference-options { position:absolute; right:0; bottom:0; z-index:2; }
.reference-options>summary { list-style:none; width:44px; min-height:44px; display:grid; place-items:center; cursor:pointer; font-size:var(--text-h3-size); }
.reference-options>summary::-webkit-details-marker { display:none; }
.reference-options>summary:focus-visible { outline:2px solid var(--text-primary); outline-offset:2px; }
.reference-options-body { position:absolute; right:0; top:100%; z-index:5; width:220px; max-width:calc(100vw - 48px); display:grid; gap:8px; padding:12px; border:1px solid var(--border-soft); border-radius:var(--radius-sm); background:var(--surface-1); }
.reference-options-body select { width:100%; min-height:44px; }
.frame-tray[data-filled=true] { background:none; border:0; padding:0; }
.frame-tray .reference-file.reference-photo-card { padding:0; }
.frame-library { width:100%; justify-content:center; }
.reference-multiple[data-state=ready] { background:none; border:0; overflow:visible; }
.create-modes.create-adjustments { display:flex; justify-content:flex-end; background:none; padding:0; border:0; }
.create-adjustments button { flex:none; min-height:44px; background:var(--surface-1); color:var(--text-secondary); border:1px solid var(--border-soft); border-radius:var(--radius-sm); }
@media(max-width:620px) { .reference-photo-card>.btn-icon { width:44px; min-height:44px; } }
@media(max-width:600px) {
  .frame-trays { grid-template-columns:1fr; }
  .frame-tray-tools button { min-height:44px; font-size:var(--text-label-size); }
}

/* ┌─ UPSCALE (image5.png) — 16/09/2026 ────────────────────────────────────────┐
   │ Três colunas: fila de assets · comparação antes/depois · configurações.    │
   │ No celular vira uma coluna na MESMA ordem de leitura da foto (escolher o   │
   │ arquivo → ver → ajustar → processar), porque é a ordem da tarefa.          │
   └────────────────────────────────────────────────────────────────────────────┘ */
.upscale-grid { display:grid; grid-template-columns:260px minmax(0,1fr) 320px; gap:16px; align-items:start; margin-top:18px; }
.upscale-queue,.upscale-settings { display:grid; gap:14px; align-content:start; padding:14px; border:1px solid var(--border); border-radius:10px; background:var(--surface); min-width:0; }
.upscale-queue-head,.upscale-settings-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
/* "Salvar preset" quebrava em duas linhas ao lado de "CONFIGURAÇÕES DE UPSCALE"
   (medido em 1440, 20/09): o botão não quebra; o rótulo em caixa alta, sim. */
.upscale-queue-head .btn-quiet,.upscale-settings-head .btn-quiet { flex:none; white-space:nowrap; }
.upscale-queue-head .eyebrow,.upscale-settings-head .eyebrow { margin:0; }
.upscale-filters,.upscale-tabs,.upscale-fps { display:flex; gap:6px; }
.upscale-filters button,.upscale-tabs button,.upscale-fps button { flex:1; font-size:var(--text-label-size); min-height:34px; padding:6px 8px; background:transparent; border-color:var(--border); justify-content:center; }
.upscale-filters button[aria-pressed=true],.upscale-tabs button[aria-pressed=true],.upscale-tabs button[aria-selected=true],.upscale-fps button[aria-pressed=true] { background:var(--accent-primary); border-color:var(--accent-primary); color:var(--accent-primary-ink); }
.upscale-fps button:disabled { opacity:.5; }
.upscale-queue-list { display:grid; gap:6px; max-height:420px; overflow:auto; }
.upscale-asset { display:grid; grid-template-columns:44px minmax(0,1fr); gap:9px; align-items:center; padding:7px; text-align:left; background:transparent; border:1px solid transparent; border-radius:8px; }
.upscale-asset.is-selected { border-color:var(--accent-primary-line); background:var(--accent-primary-soft); }
.upscale-asset-thumb { display:grid; place-items:center; width:44px; height:44px; overflow:hidden; border-radius:6px; background:var(--line); }
.upscale-asset-thumb img { width:100%; height:100%; object-fit:cover; }
.upscale-asset-info { display:grid; gap:2px; min-width:0; }
.upscale-asset-info strong { font-size:var(--text-label-size); font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.upscale-asset-info small { font-size:var(--text-label-size); color:var(--text-muted); }
.upscale-stage { display:grid; gap:12px; min-width:0; }
.upscale-toggles { display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between; }
.upscale-toggles>* { flex:1 1 200px; }
/* O divisor arrastável: dois lados sobrepostos e um `clip-path` movido por
   `--split`. O `<input type=range>` é o controle REAL (teclado e leitor de tela
   funcionam); a alça é só a pintura. */
.upscale-compare { position:relative; aspect-ratio:16/9; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:var(--line); --split:50%; }
.upscale-compare.is-empty { display:grid; place-items:center; padding:24px; text-align:center; color:var(--text-muted); font-size:var(--text-body-sm-size); }
.upscale-compare-side { position:absolute; inset:0; }
.upscale-compare-side img,.upscale-compare-side video { width:100%; height:100%; object-fit:contain; background:#000; }
.upscale-compare-side.is-after { clip-path:inset(0 0 0 var(--split)); }
.upscale-compare-tag { position:absolute; bottom:8px; font-size:var(--text-label-size); line-height:1; padding:5px 7px; border-radius:4px; background:#030303d9; color:#fff; pointer-events:none; }
.upscale-compare-side.is-before .upscale-compare-tag { left:8px; }
.upscale-compare-side.is-after .upscale-compare-tag { right:8px; }
.upscale-compare-handle { position:absolute; top:0; bottom:0; left:var(--split); width:2px; background:#fff; box-shadow:0 0 0 1px #0006; pointer-events:none; }
#upscaleSplit { position:absolute; left:0; right:0; bottom:0; width:100%; margin:0; height:34px; background:transparent; }
.upscale-strip { display:flex; gap:6px; overflow-x:auto; padding-bottom:2px; }
.upscale-strip-item { flex:0 0 64px; width:64px; height:44px; padding:0; overflow:hidden; border-radius:6px; background:var(--line); display:grid; place-items:center; }
.upscale-strip-item.is-selected { outline:2px solid var(--accent-primary); outline-offset:1px; }
.upscale-strip-item img { width:100%; height:100%; object-fit:cover; }
.upscale-settings fieldset { border:0; padding:0; margin:0; display:grid; gap:8px; }
.upscale-settings legend { padding:0; }
.upscale-goal-cards { display:grid; gap:6px; }
/* O cartão de Objetivo é o MESMO componente das Opções prontas (receitas de
   Pós): a decisão de 16/09 pede as receitas "na linguagem visual da foto", e a
   linguagem da foto para escolha pré-definida é este cartão. */
.upscale-goal { display:grid; grid-template-columns:18px minmax(0,1fr); gap:9px; align-items:start; padding:9px 10px; text-align:left; background:transparent; border:1px solid var(--border); border-radius:8px; }
.upscale-goal.is-selected { border-color:var(--accent-primary); background:var(--accent-primary-soft); }
.upscale-goal:disabled { opacity:.55; cursor:not-allowed; }
.upscale-goal span { display:grid; gap:3px; min-width:0; }
.upscale-goal strong { font-size:var(--text-label-size); font-weight:500; }
.upscale-goal small { font-size:var(--text-body-sm-size); line-height:1.45; color:var(--text-muted); white-space:normal; }
.upscale-scale-row { display:flex; gap:6px; }
.upscale-scale-option { flex:1; display:grid; gap:3px; justify-items:center; padding:9px 6px; background:transparent; border:1px solid var(--border); border-radius:8px; }
.upscale-scale-option.is-selected { border-color:var(--accent-primary); background:var(--accent-primary-soft); }
.upscale-scale-option:disabled { opacity:.55; cursor:not-allowed; }
.upscale-scale-option strong { font-size:var(--text-body-size); }
.upscale-scale-option small { font-size:var(--text-label-size); color:var(--text-muted); text-align:center; }
.upscale-slider { display:grid; grid-template-columns:96px minmax(0,1fr); gap:9px; align-items:center; font-size:var(--text-label-size); }
.upscale-slider input { width:100%; }
.upscale-slider input:disabled { opacity:.5; }
.upscale-cta { display:grid; gap:6px; }
.upscale-cta .btn-primary { width:100%; justify-content:center; min-height:44px; }
@media (max-width:1180px) { .upscale-grid { grid-template-columns:230px minmax(0,1fr); } .upscale-settings { grid-column:1/-1; } }
@media (max-width:760px) {
  .upscale-grid { grid-template-columns:1fr; }
  .upscale-settings { grid-column:auto; }
  .upscale-queue-list { max-height:240px; }
  .upscale-filters button,.upscale-tabs button,.upscale-fps button { min-height:44px; }
  .upscale-slider { grid-template-columns:1fr; gap:4px; }
}
/* Os dois toggles do Upscale são controles diferentes: cada um com rótulo, e
   lado a lado no desktop, empilhados no celular. Ver a nota no HTML. */
.upscale-toggle { display:grid; gap:5px; min-width:0; }
.upscale-toggle .field-label { margin:0; font-size:var(--text-label-size); color:var(--text-muted); }

/* --- EDITAR COM IA (18/09/2026) ---
 * A tela reusa TODO o vocabulário da bancada (`upscale-grid`, `upscale-asset`, `upscale-goal`,
 * `upscale-settings`): eles descrevem a BANCADA, não o Upscale, e reusar é o que mantém as duas
 * telas iguais de verdade. A única coisa própria daqui é a âncora de expandir tela, que não existe
 * em nenhuma outra tela: 9 posições numa grade 3x3, que é como se escolhe "de onde a imagem cresce".
 */
.edit-anchors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 132px;
}
.edit-anchors button {
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: var(--text-body-sm-size);
}
.edit-anchors button.is-selected {
  border-color: var(--accent-primary);
  background: var(--accent-primary-soft);
}
