.studio-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 14px 18px 6px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--bg-dark); }
.studio-mode-switch button { padding: 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); font: inherit; font-size: .74rem; cursor: pointer; }
.studio-mode-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.studio-mode-hint { margin: 0 18px 14px; font-size: .65rem; line-height: 1.5; color: var(--text-muted); }
.logo-background-controls { display: grid; gap: 10px; margin-top: 12px; }
.logo-background-controls[aria-busy="true"] { opacity: .7; cursor: progress; }
.logo-background-controls .editor-artwork-adjustments { margin: 0; }
.logo-background-controls button:disabled { opacity: .4; cursor: default; }
#uploaded-thumb-preview { background: repeating-conic-gradient(#b7bdc4 0% 25%, #f1f3f5 0% 50%) 0 / 16px 16px; }
#acrylic-custom-controls { display: grid; gap: 12px; }
#acrylic-custom-controls[hidden] { display: none; }
.acrylic-detail-controls { margin: 0; }
.acrylic-detail-controls .editor-property-row { margin-bottom: 12px; }
.export-quality { display: grid; gap: 8px; width: 100%; font-size: .74rem; color: var(--text-main); }
.export-quality select { width: 100%; padding: 10px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg-dark); color: var(--text-main); font: inherit; }
.export-quality > span { color: var(--text-muted); font-size: .64rem; }
body[data-controls="simple"] #view-studio .advanced-only { display: none !important; }
body[data-controls="simple"] #view-studio .tech-spec-card { display: none; }
body[data-controls="simple"] #view-studio .studio-sidebar-right > .right-panel-section:first-child { display: none; }
body[data-controls="simple"] #view-studio .studio-sidebar-right { justify-content: flex-start; }
body[data-workspace="workshop"] :is(.studio-mode-switch, .studio-mode-hint) { display: none; }

/* Uma etapa por vez, com rótulos que cabem na lateral. */
body[data-workspace="studio"] .studio-sidebar-left { background: var(--bg-surface); }
body[data-workspace="studio"] #studio-new-project { width: auto; gap: 5px; padding: 0 10px; font: inherit; font-size: .65rem; }
body[data-has-image="false"] #studio-art-status { color: var(--text-muted); background: var(--bg-elevated); }
body[data-workspace="studio"] .param-subtabs { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; background: transparent; flex-shrink: 0; }
body[data-workspace="studio"] .psub-btn { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 35px; padding: 6px 10px; text-align: left; font-size: .76rem; font-weight: 500; background: transparent; border: 1px solid transparent; color: var(--text-muted); }
body[data-workspace="studio"] .psub-btn:hover { background: var(--bg-elevated); }
body[data-workspace="studio"] .psub-btn.active { background: var(--accent-soft); color: var(--accent); border-color: var(--border-strong); }
.studio-step-number { display: inline-grid; place-items: center; width: 21px; height: 21px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: .65rem; flex-shrink: 0; }
body[data-workspace="studio"] .psub-btn > svg { margin-left: auto; width: 13px; height: 13px; opacity: .6; }
.studio-section-heading { padding-bottom: 18px; }
.studio-section-heading h3 { font-size: .92rem; margin-bottom: 6px; }
.studio-section-heading p { font-size: .71rem; line-height: 1.6; color: var(--text-muted); }
body[data-workspace="studio"] .studio-controls-scroll { padding: 18px 16px; scrollbar-width: thin; }
body[data-workspace="studio"] .param-group-pane { gap: 16px; }
body[data-workspace="studio"] .control-group { gap: 12px; }
body[data-workspace="studio"] .control-label { font-size: .74rem; font-weight: 600; }
.studio-source-switch .control-label { display: none; }
.studio-source-switch { padding-bottom: 0; border-bottom: 0; }
body[data-workspace="studio"] .seg-btn { font-weight: 500; font-size: .72rem; line-height: 1.4; }
body[data-workspace="studio"] .seg-btn.active { background: var(--accent-soft); color: var(--accent); }
body[data-workspace="studio"] .upload-dropzone { height: 158px; min-height: 158px; border: 1px dashed var(--border-strong); background: var(--bg-dark); border-radius: 12px; }
body[data-workspace="studio"] .upload-dropzone:not(.has-image) .dropzone-overlay { opacity: 1; background: transparent; color: var(--text-main); }
body[data-workspace="studio"] .upload-dropzone .dropzone-overlay strong { font-size: .76rem; }
body[data-workspace="studio"] .upload-dropzone .dropzone-overlay span { font-size: .65rem; color: var(--text-muted); }
body[data-workspace="studio"] img[hidden] { display: none; }
body[data-has-image="false"] #logo-background-controls, body[data-has-artwork="false"] .studio-position-controls { display: none; }
body[data-workspace="studio"] .studio-neon-style button { width: 100%; padding: 12px; background: var(--accent-soft); border-color: var(--border-strong); color: var(--accent); }
.studio-neon-style button:disabled { opacity: .45; cursor: default; }
.studio-next-step { width: 100%; padding: 12px 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: .72rem; cursor: pointer; }
.studio-empty-state { position: absolute; z-index: 6; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(360px, calc(100% - 32px)); display: flex; align-items: center; flex-direction: column; gap: 14px; padding: 32px 22px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 18px; background: var(--bg-surface); color: var(--text-main); }
.studio-empty-state[hidden] { display: none; }
.studio-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.studio-empty-icon svg { width: 24px; height: 24px; }
.studio-empty-state h3 { font-size: 1rem; }
.studio-empty-state p { color: var(--text-muted); font-size: .76rem; line-height: 1.7; }
.studio-empty-state button { padding: 12px 18px; border: 0; border-radius: 8px; font: inherit; font-size: .75rem; cursor: pointer; }
.studio-empty-upload { background: var(--accent); color: #061d22; font-weight: 600 !important; }
.studio-empty-state .studio-empty-text { padding: 0; color: var(--text-muted); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
body[data-has-artwork="false"] #viewport-3d:is([data-mode="sheet"], [data-mode="split"]) .stage-comparison-container { visibility: hidden; }
body[data-workspace="workshop"] :is(.studio-empty-state, .studio-section-heading) { display: none; }
@media (max-width: 700px) {
  body[data-workspace="studio"] .param-subtabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 12px; }
  body[data-workspace="studio"] .psub-btn { font-size: .71rem; gap: 8px; }
  body[data-workspace="studio"] .psub-btn:last-child { grid-column: 1 / -1; }
  body[data-workspace="studio"] .studio-controls-scroll { max-height: 540px; }
}

.logo-style-dialog { width: min(1000px, calc(100vw - 32px)); max-height: 92dvh; margin: auto; padding: 0; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--bg-surface); color: var(--text-main); box-shadow: 0 24px 100px #0009; }
.logo-style-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.logo-style-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; }
.logo-style-eyebrow { color: var(--accent); font-size: .64rem; letter-spacing: 2px; font-weight: 700; margin-bottom: 8px; }
.logo-style-header h2 { font-size: 1.3rem; line-height: 1.4; }
#logo-style-filename { margin-top: 7px; color: var(--text-muted); font-size: .73rem; overflow-wrap: anywhere; }
.logo-style-close { width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 6px; background: var(--bg-elevated); color: var(--text-main); font-size: 24px; cursor: pointer; }
.logo-style-content { padding: 0 24px 22px; }
.logo-style-input-label { display: flex; align-items: center; gap: 12px; font-size: .75rem; }
.logo-style-input-label select { min-width: 0; flex: 1; padding: 9px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg-dark); color: var(--text-main); font: inherit; }
.logo-style-status { margin: 12px 0 18px; min-height: 2.7em; color: var(--text-muted); font-size: .74rem; line-height: 1.5; }
.logo-style-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.logo-style-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 9px 9px 12px; border: 2px solid var(--border-subtle); border-radius: 12px; background: var(--bg-dark); cursor: pointer; }
.logo-style-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.logo-style-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.logo-style-card input { position: absolute; bottom: 45px; right: 12px; width: 16px; height: 16px; accent-color: var(--accent); }
.logo-style-card canvas { display: block; width: 100%; height: auto; aspect-ratio: 680 / 450; border-radius: 7px; background: linear-gradient(#001c08aa, #001004aa), url('/assets/foliage-photo-v2.jpg') center / cover; }
.logo-style-card strong { padding: 0 25px 0 2px; font-size: .85rem; }
.logo-style-description { padding: 0 2px; color: var(--text-muted); font-size: .69rem; line-height: 1.5; }
.logo-style-recommended { position: absolute; top: 16px; left: 16px; padding: 4px 7px; border-radius: 5px; background: #062c30ed; color: #8ff6ff; font-size: .58rem; }
.logo-style-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border-subtle); background: var(--bg-surface); }
.logo-style-footer button { padding: 11px 16px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-elevated); color: var(--text-main); font: inherit; font-size: .78rem; cursor: pointer; }
#logo-style-apply { background: var(--designi-blue); border-color: transparent; color: white; font-weight: 600; }
.logo-style-dialog button:disabled { opacity: .5; cursor: wait; }
.logo-style-adjustments { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 14px 22px; margin: 22px 0 0; padding: 16px; border: 1px solid var(--border-strong); border-radius: 12px; }
.logo-style-adjustments legend { padding: 0 6px; font-size: .8rem; font-weight: 600; }
.logo-style-adjustments label { display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 10px; font-size: .76rem; }
.logo-style-adjustments input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.logo-style-adjustments output { color: var(--accent); font-variant-numeric: tabular-nums; }
.logo-style-adjustments p { grid-column: 1 / -1; color: var(--text-muted); font-size: .71rem; line-height: 1.5; }
.logo-style-adjustments button { grid-column: 1 / -1; justify-self: end; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--bg-elevated); color: var(--text-main); font: inherit; font-size: .7rem; cursor: pointer; }
#logo-style-live-preview { grid-column: 1; grid-row: 1 / 3; width: 100%; align-self: center; border-radius: 8px; background: linear-gradient(#001c08aa, #001004aa), url('/assets/foliage-photo-v2.jpg') center / cover; }
.logo-style-adjustments:disabled { opacity: .5; }
@media (max-width: 640px) {
  .logo-style-adjustments { grid-template-columns: 1fr; padding: 12px; }
  #logo-style-live-preview { grid-row: auto; }
  .logo-style-dialog { width: calc(100vw - 20px); max-height: 94dvh; }
  .logo-style-header { padding: 18px 14px 12px; gap: 8px; }
  .logo-style-header h2 { font-size: 1rem; }
  .logo-style-content { padding: 0 12px 16px; }
  .logo-style-input-label { align-items: stretch; flex-direction: column; gap: 7px; }
  .logo-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .logo-style-card { padding: 6px 6px 10px; gap: 7px; }
  .logo-style-card strong { font-size: .74rem; }
  .logo-style-description { font-size: .63rem; }
  .logo-style-card input { bottom: 49px; right: 8px; width: 13px; height: 13px; }
  .logo-style-recommended { top: 10px; left: 10px; font-size: .52rem; }
  .logo-style-footer { padding: 12px; }
  .logo-style-footer button { flex: 1; padding: 11px 8px; }
}
