/* Assets page tools (js/asset-tools.js, js/model-preview.js). The windows are the app's own dialogs (.shell-dialog) and the
   blocks of the panel its own components (.as-type, .as-kv, details.as-more, .btn): only the layout is added here. */

/* ---- "Générer" window ---- */
.shell-dialog.ast-dialog { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.ast-types { margin-bottom: 14px; }
.ast-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ast-field { display: flex; flex-direction: column; gap: 6px; }
.ast-field .field { width: 100%; box-sizing: border-box; }
.ast-textarea { resize: vertical; min-height: 64px; font: inherit; line-height: 1.4; }
.ast-actions { align-items: center; margin-top: 4px; }
.ast-cost { margin-right: auto; font-family: var(--font-mono); font-size: 13.5px; color: var(--t2); }
.ast-cost:empty { display: none; }
.ast-results { display: flex; flex-direction: column; gap: 10px; }
.ast-results:empty { display: none; }
.ast-result { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--solid-2); }
.ast-result-title { margin: 0; font-size: 14.5px; font-weight: 600; }
.ast-result-image { max-width: 100%; max-height: 220px; border-radius: var(--radius-sm); object-fit: contain; align-self: flex-start; }
.ast-result .btn { align-self: flex-start; }
.ast-audio { width: 100%; color-scheme: dark; }

/* ---- block added to the asset panel: the way into the studio ---- */
.ast-open .btn { width: 100%; justify-content: center; min-height: 40px; }
.ast-player { display: flex; flex-direction: column; gap: 6px; }

/* the dialog body is a flex row elsewhere: here it is one column */
.shell-dialog.ast-dialog .shell-dialog-body { display: block; }
.ast-panel { width: 100%; }

/* « Voir en détail » and « Afficher l'aperçu 3D »: full-width buttons, like « Livrer dans Unity » */
.asset-preview-3d-bar .btn { flex: 1 1 100%; justify-content: center; min-height: 38px; }
.shell-dialog.ast-dialog .field, .ast-edit .field { max-width: none; width: 100%; }
.ast-edit .as-actions-row > .ast-scale { width: 76px; }

/* « Design » button of an asset card: the main way into the asset */
.asset-card-design {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 0; border-radius: var(--radius-full); background: #F5F5F7; color: #0C0D10;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.asset-card-design:hover { background: #FFFFFF; transform: translateY(-1px); }
.asset-card-design:focus-visible { outline: 2px solid #F5F5F7; outline-offset: 2px; }
