@import url('/base.css');
@import url('/notifications.css');
@import url('/model-library.css');
@import url('/workspace.css');
@import url('/image-workspace.css');
@import url('/workspace-layout.css');
@import url('/document.css');
@import url('/garment.css');
@import url('/smart.css');
@import url('/smart-batch.css');
@import url('/morph-select.css');
@import url('/icons.css');
@import url('/mode-accordion.css');
@import url('/single-tryon.css');

/* Free-mode attachment and model triggers: quiet until hovered. */
#composer #add-image,
#image-composer #image-add,
#composer #model-button,
#image-composer #image-model-button {
  border:0;
  background:transparent;
  box-shadow:none;
  transition:background-color .18s ease,box-shadow .18s ease;
}
#composer #model-button,
#image-composer #image-model-button { border-radius:999px; }
#composer #add-image:hover:not(:disabled),
#image-composer #image-add:hover:not(:disabled),
#composer #model-button:hover:not(:disabled),
#image-composer #image-model-button:hover:not(:disabled) {
  background:#f3f3f3;
  box-shadow:0 2px 6px #0000000d;
}

/* Chat and image welcome copy share the same centered position and scale. */
#welcome, #image-welcome { max-width: 800px; margin: clamp(28px, 7vh, 90px) auto 30px; padding-bottom: 0; text-align: center; }
#welcome .eyebrow, #image-welcome .placeholder-kicker { display: block; line-height: 20px; margin: 0; font-size: 9px; letter-spacing: 2.8px; font-weight: 400; }
#welcome h1, #image-welcome h2 { font-size: 28px; line-height: 1.55; font-weight: 500; letter-spacing: 2px; margin: 16px 0 12px; }
#welcome .intro, #image-welcome p { font-size: 12px; line-height: 1.8; margin: 0 0 23px; }
@media (max-width:750px) { #welcome, #image-welcome { margin-top: 32px; } }

/* Content hierarchy: controls explain the action; details remain available on demand. */
#welcome h1,#image-welcome h2 { margin:0; letter-spacing:0; }
.composer-note { justify-content:center; margin-top:10px; }
.composer-note>span:first-child { display:inline; }
.ui-details { color:#78858e; font-size:12px; line-height:1.7; margin:12px 0; min-width:0; }
.ui-details>summary { cursor:pointer; width:fit-content; max-width:100%; border-radius:5px; }
.ui-details>summary:focus-visible { outline:2px solid #a9bfdc; outline-offset:4px; }
.ui-details>p { margin:8px 0 0; overflow-wrap:anywhere; }
.ui-details[open] { padding-bottom:4px; }
.ui-fee { font-size:12px; color:#858c92; line-height:1.7; margin:10px 0; }
#image-model-info { display:inline-block; margin:6px 0 0; }
#image-model-info #image-channel-note { margin:6px 0 0; }
.image-job-meta { align-items:flex-start; flex-wrap:wrap; gap:8px 14px; }
.image-job-details { margin:0; font-size:11px; }
.image-job-details small { display:block; overflow-wrap:anywhere; }
.image-job-details p { margin-top:6px; }
.garment-heading { margin-bottom:18px; }
.garment-heading #tryon-title { margin:0; }
.smart-mode-bar { margin:0 0 20px; }
.smart-mode-bar>strong { font-size:15px; font-weight:500; }
.garment-steps { margin-top:0; padding:16px 0; }
#pose-stage { margin-top:18px; }
#pose-stage .garment-layout { margin-top:18px; }
.outfit-next-bar>button:last-child,.outfit-next-bar>.garment-actions:last-child { margin-left:auto; }
.garment-help:empty,.garment-notice:empty,#smart-skirt-status:empty,#smart-progress:empty,#pose-progress:empty,#garment-next-hint:empty { display:none; }
.pose-reference-strip { display:grid; gap:10px; margin:14px 0 20px; }
.pose-reference-strip.three-references { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.pose-reference-strip figure { margin:0; min-width:0; text-align:center; position:relative; }
.pose-reference-strip figure:has(>button[hidden])::before { content:''; display:block; height:110px; background:#f7f8f9; border-radius:10px; }
.pose-reference-strip button,#pose-reference-strip #pose-reference { display:block; width:100%; height:110px; margin:0; padding:4px; border:1px solid #e7ecef; border-radius:10px; background:#fff; cursor:zoom-in; }
.pose-reference-strip button:disabled { opacity:1; cursor:default; }
.pose-reference-strip img,#pose-reference-strip #pose-reference-image { display:block; width:100%; height:100%; object-fit:contain; border-radius:7px; }
.pose-reference-strip:not(.three-references) #pose-reference { height:220px; }
.pose-reference-strip figcaption { font-size:11px; color:#75828a; margin-top:6px; }
.pose-reference-strip small { position:absolute; inset:42px 0 auto; color:#9aa4ab; font-size:11px; pointer-events:none; }
#pose-background-label,#tryon-reference-order { font-size:11px; color:#7a8993; margin:0 0 8px; }
.outfit-material-field:has(img:not([hidden])) { position:relative; padding-left:62px; min-height:66px; }
.outfit-material-field>img { position:absolute; top:0; left:0; width:50px; height:64px; object-fit:contain; border:1px solid #e7ecef; border-radius:8px; background:#fff; }
.library-form>.ui-details { grid-column:1/-1; margin:0; }
.library-form h3 { margin:0 0 4px; }
.library-candidate.is-selected { border-color:#87b1fa; box-shadow:0 0 0 1px #87b1fa; }
.library-select[aria-pressed=true]::before { content:'✓'; margin-right:6px; }
.library-stage>.ui-fee { margin:10px 0 0; }
.library-heading h2 { margin-top:0; }
#model-library-view>.library-heading { margin-bottom:24px; }
.history-retention { margin-bottom:4px; }
.result-history>.ui-details { margin:0 0 18px; }
@media(max-width:760px){
 .mode-card { padding-block:20px; }
 .garment-heading { margin-bottom:16px; }
 .garment-heading #tryon-title { font-size:24px; }
 .smart-mode-bar { gap:12px; }
 .outfit-next-bar { gap:12px; }
 .pose-reference-strip.three-references button,#pose-reference-strip.three-references #pose-reference { height:132px; }
 .ui-details { font-size:12px; }
 #pose-stage #pose-empty,#smart-pose-stage #smart-pose-empty { min-height:180px; }
}
