/* 输入采用同一套圆角、描边和标签，不引入自定义下拉框或表单框架。 */
.fields { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 460; color: #555559; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid #d7d7dc; border-radius: 9px; padding: 10px 11px; background: var(--paper); color: var(--ink); font-size: 13px; min-height: 42px; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.7; }
.field small { font-size: 11px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--muted); }
.inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 12px; }
.check input { margin: 5px 0 0; accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
input[type="range"] { accent-color: var(--accent); padding: 0; border: 0; }
fieldset { border: 1px solid var(--line); border-radius: 9px; min-width: 0; padding: 14px; }
legend { font-size: 12px; color: var(--muted); }

/* 纸面阴影只放在照片和真实成品上，表单面板保持轻量。 */
.photo-stage { min-height: 390px; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius); padding: 36px; perspective: 1800px; }
.cover { margin: 0; background: var(--paper); width: 100%; max-width: 560px; padding: 10px 10px 13px; border-radius: 3px; border: 1px solid #e7e7ea; box-shadow: var(--paper-shadow); transform: rotate(-1deg); }
.cover img { width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.cover figcaption { font-size: 11px; color: var(--muted); padding: 13px 4px 0; overflow-wrap: anywhere; }
.empty-photo { font-size: 13px; text-align: center; color: var(--muted); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 28px; }
.print { min-width: 0; padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.print img { width: 100%; height: 250px; object-fit: contain; border-radius: 5px; background: var(--surface); }
/* 浏览器无法解码时保留原文件下载，不借助转码生成假预览。 */
.preview-unavailable { min-height: 250px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: var(--surface); border-radius: 5px; color: var(--muted); font-size: 12px; }
.preview-unavailable[hidden], .original-preview img[hidden] { display: none; }
.order-cover .original-preview { width: 100%; height: 100%; }
.order-cover .preview-unavailable { height: 100%; }
.print p { font-size: 11px; color: var(--muted); margin: 13px 3px; line-height: 1.8; overflow-wrap: anywhere; }
.print .row { gap: 10px; margin: 12px 3px 0; }
.print .button { font-size: 11px; min-height: 35px; padding: 7px 11px; }
.print.chosen { border-color: #6a6a70; box-shadow: 0 0 0 1px #6a6a70; }
.thumbs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.thumbs button { border: 2px solid transparent; background: var(--paper); padding: 4px; border-radius: 7px; }
.thumbs img { width: 74px; height: 54px; object-fit: cover; border-radius: 3px; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.retouch-image { position: relative; touch-action: none; }
.retouch-image img { max-height: 600px; width: 100%; object-fit: contain; }
.region { position: absolute; border: 2px solid var(--paper); outline: 2px solid var(--accent); background: rgb(254 254 254 / 12%); pointer-events: none; }
