.pre-dialog { box-sizing: border-box; width: min(96vw, 700px); max-height: 92dvh; padding: 22px; border: 1px solid #aaa; background: #f7f7f5; color: #111; overflow-y: auto; }
.pre-dialog::backdrop { background: #0009; }
.pre-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pre-head h2 { margin: 0; font-size: 24px; }
.pre-head button { font-size: 28px; padding: 5px 12px; }
.pre-dialog button, .pre-list-item, .pre-launch, #stockSubscriptionList button { min-height: 44px; padding: 12px 16px; border: 1px solid #111; background: #111; color: #fff; cursor: pointer; font: inherit; }
.pre-dialog .pre-secondary, #stockSubscriptionList .pre-secondary { background: transparent; color: #111; }
.pre-dialog button:disabled { opacity: .5; cursor: wait; }
.pre-dialog form { display: grid; gap: 14px; padding: 20px 0; border-top: 1px solid #ccc; margin-top: 20px; }
.pre-dialog label { display: grid; gap: 8px; font-size: 14px; }
.pre-dialog input, .pre-dialog textarea, .pre-dialog select { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; font: inherit; font-size: 16px; border: 1px solid #aaa; background: #fff; color: #111; }
.pre-dialog input[type=file] { font-size: 13px; }
.pre-dialog p { line-height: 1.6; overflow-wrap: anywhere; }
.pre-dialog small { display: block; font-size: 12px; color: #555; }
.pre-dialog a { color: #111; text-decoration: underline; }
.pre-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pre-form-section { padding: 14px; border: 1px solid #ccc; background: #fff; }
.pre-form-section h3 { margin: 0 0 10px; }
.pre-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pre-choice label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border: 1px solid #bbb; }
.pre-choice input { width: auto; }
.pre-section { padding: 18px 0; border-top: 1px solid #ccc; margin-top: 18px; }
.pre-totals { display: grid; gap: 12px; margin: 16px 0; }
.pre-totals span { display: flex; justify-content: space-between; gap: 12px; }
.pre-status { padding: 10px; background: #e6e6e6; }
.pre-text { white-space: pre-wrap; }
.pre-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 14px 0; }
.pre-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #e8e8e8; }
.pre-message, .pre-payment { padding: 14px; margin: 14px 0; background: #fff; border: 1px solid #ddd; }
.pre-message.pre-manager { border-left: 3px solid #111; }
.pre-list-item { display: grid; width: 100%; gap: 8px; text-align: left; margin: 12px 0; background: transparent; color: #111; overflow-wrap: anywhere; }
#preError { color: #9b1414; white-space: pre-wrap; }
.pre-launch { width: 100%; margin: 12px 0; }
.pre-dialog [hidden], #notifyStockButton[hidden] { display: none; }
@media (max-width: 520px) { .pre-choice, .pre-columns { grid-template-columns: 1fr; } }
