/* 爆款复刻的输入面板（tools/remake/panel.js）专用的样式；按钮、选项、提交按钮这些共用零件的样式在 apps/web/public/app.css */

/* 左栏：所有输入放在一屏内 */
.composer.is-flash { animation: flash 1.2s ease-out; }
.composer { position: sticky; top: 72px; display: flex; flex-direction: column; max-height: calc(100dvh - 88px); overflow: auto; }
.step { padding: 12px 18px; border-bottom: 1px solid var(--line-weak); }
.step-no { font: 500 10px var(--font-mono); color: var(--t500); font-variant-numeric: tabular-nums; }
/* 01 / 02 图片：参考图和商品图并排，高度跟着屏幕高度收放 */
.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; --upload-h: clamp(108px, 18vh, 160px); }
.upload-col { min-width: 0; }
.drop {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--upload-h);
  border: 2px dashed var(--lime-line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.drop:hover { background: var(--field); }
.drop.is-over { border-color: var(--lime); background: var(--lime-soft); }
.drop.has-image { border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.drop > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.drop-empty { padding: 0 8px; text-align: center; pointer-events: none; }
.drop-empty b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; color: var(--lime); }
.drop-empty b::before { content: "+ "; }
.drop-empty small { font-size: 10.5px; color: var(--t400); }
.drop-tools { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.drop:hover .drop-tools, .drop:focus-within .drop-tools { opacity: 1; }
.chip-btn { padding: 3px 8px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: rgba(0, 0, 0, 0.75); color: var(--t200); font-size: 10.5px; cursor: pointer; }
.chip-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.products { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: var(--upload-h); }
.slot { position: relative; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, 0.3); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot-no { position: absolute; left: 3px; bottom: 3px; padding: 0 4px; border-radius: 3px; background: rgba(0, 0, 0, 0.7); font: 600 9px/14px var(--font-mono); color: var(--t200); }
.slot-remove { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 12px; line-height: 18px; cursor: pointer; opacity: 0; transition: opacity 0.15s, background-color 0.15s; }
.slot:hover .slot-remove, .slot-remove:focus-visible { opacity: 1; }
.slot-remove:hover { background: rgba(244, 63, 94, 0.8); }
.slot-add { display: grid; place-items: center; border: 2px dashed var(--lime-line); background: none; color: var(--lime); font-size: 18px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.slot-add:hover { background: var(--field); }
.products.is-over .slot-add { border-color: var(--lime); background: var(--lime-soft); }
.slot-add.wide { grid-column: 1 / -1; grid-row: 1 / -1; align-content: center; gap: 2px; padding: 0 8px; font-size: 12px; font-weight: 500; line-height: 1.5; text-align: center; }
.slot-add.wide small { display: block; font-size: 10.5px; font-weight: 400; color: var(--t400); }
/* 03 我的模特：选填，标签、小方格、提示排一行，少占左栏的高度 */
.person-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.person-row .field-label { margin: 0; }
.person-row .field-hint { margin: 0; }
.person-drop { width: 44px; height: 44px; flex: none; border-radius: 6px; }
.person-plus { font-size: 18px; color: var(--lime); pointer-events: none; }
.person-drop:hover .slot-remove, .person-drop:focus-within .slot-remove { opacity: 1; }
/* 04 / 05 文字 */
.texts { display: flex; flex-direction: column; gap: 12px; }
.seg-ratio { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.seg-ratio button { flex-direction: column; justify-content: center; gap: 3px; padding: 6px 0 4px; font-size: 11px; line-height: 1.2; }
.ratio-shape { display: block; height: 12px; max-width: 20px; border: 1.5px solid currentColor; border-radius: 2px; opacity: 0.8; }
.ratio-auto { width: 12px; border-style: dashed; }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
.stepper button { width: 28px; height: 30px; border: 0; background: none; color: var(--t200); font-size: 15px; cursor: pointer; }
.stepper button:hover:not(:disabled) { color: var(--lime); }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper output { min-width: 20px; text-align: center; font: 500 13px var(--font-mono); color: var(--t100); font-variant-numeric: tabular-nums; }
.composer-foot { position: sticky; bottom: 0; padding: 10px 18px; border-top: 1px solid var(--line); background: #151618; }
.empty-flow { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--t500); font-size: 16px; }
.ph {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 8px, rgba(255, 255, 255, 0.08) 8px 16px);
  font-size: 11px;
  color: var(--t400);
}
.ph-lime { border-color: var(--lime-line); background-image: repeating-linear-gradient(45deg, rgba(180, 255, 80, 0.05) 0 8px, rgba(180, 255, 80, 0.1) 8px 16px); color: var(--lime); }
@media (hover: none) {
  .drop-tools, .slot-remove { opacity: 1; transform: none; }
}
@media (min-width: 961px) and (max-height: 740px) {
  .uploads { --upload-h: clamp(100px, 16vh, 160px); }
  .step { padding: 10px 18px; }
  .texts { gap: 8px; }
  .seg-ratio button { gap: 2px; padding: 4px 0 3px; }
}
@media (max-width: 960px) {
  .composer { position: static; max-height: none; overflow: visible; }
  .composer-foot { position: sticky; bottom: 0; border-radius: 0 0 10px 10px; }
}
@media (max-width: 640px) {
  .ph { width: 72px; }
}
