.merchant-plates-page { min-width: 0; }
.merchant-plates-page [hidden] { display: none !important; }
.plate-page-head { margin-bottom: 18px; }
.plate-page-head h2 { margin: 0 0 6px; font-size: 20px; }
.plate-create-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; max-width: 600px; padding: 16px; margin: 0 auto 18px; background: #fff; border: 1px solid #dde5ef; border-radius: 12px; }
.plate-create-form label { flex: 1 1 220px; display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
.plate-create-form input { width: 100%; min-width: 0; }
.plate-create-form [role="alert"] { width: 100%; margin: 0; color: #b42318; font-size: 13px; }
.merchant-plate-preview { min-width: 0; max-width: 600px; margin: 0 auto; padding: 22px; border: 1px solid #dce4ef; border-radius: 12px; background: #f8fafc; }
.merchant-plate-card { width: 100%; max-width: 360px; margin: auto; text-align: center; padding: 28px 22px 24px; background: #fff; border: 1px solid #dbe5ef; border-radius: 14px; box-sizing: border-box; color: #162b40; }
.plate-card-brand { display: inline-block; padding: 6px 12px; border-radius: 18px; background: #edf6ff; color: #2664bc; font-size: 12px; letter-spacing: 1px; }
.merchant-plate-card h3 { margin: 17px 0 7px; font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.plate-card-name { margin: 0; color: #6e7d8f; font-size: 12px; overflow-wrap: anywhere; }
.plate-qr-frame { width: min(100%, 246px); aspect-ratio: 1; margin: 20px auto; background: #f5f7fa; border-radius: 4px; }
.plate-qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.plate-qr-frame img[hidden] { display: none; }
.plate-card-instruction { display: block; font-size: 16px; line-height: 1.5; }
.plate-card-note { margin: 8px 0 0; color: #738295; font-size: 11px; }
.plate-preview-status { min-height: 20px; margin: 14px 0; text-align: center; font-size: 12px; color: #66768a; line-height: 1.6; overflow-wrap: anywhere; }
.plate-tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.plate-tools button { font-size: 12px; }
.plate-fixed-link { display: grid; gap: 7px; margin-top: 18px; color: #65748a; font-size: 12px; }
.plate-fixed-link input { width: 100%; min-width: 0; font-size: 11px; background: white; text-overflow: ellipsis; }
.plate-preview-empty, .plate-page-message { padding: 30px 18px; color: #63748a; text-align: center; font-size: 13px; line-height: 1.8; }
.plate-preview-empty { min-height: 280px; display: grid; align-content: center; }
.plate-preview-empty strong { font-size: 17px; color: #263b51; }
.plate-page-message { border: 1px solid #dce4ef; border-radius: 12px; background: white; }
.plate-page-message p { overflow-wrap: anywhere; }
.merchant-plate-print { display: none; }
@media (max-width: 720px) {
  .plate-page-head h2 { font-size: 18px; }
  .merchant-plate-preview { padding: 16px 12px; }
  .merchant-plate-card { padding: 24px 16px; }
  .merchant-plate-card h3 { font-size: 19px; }
  .plate-create-form { padding: 12px; }
  .plate-create-form button { width: 100%; }
  .plate-tools button { flex: 1 1 100px; min-width: 0; }
}
@media print {
  .merchant-plates-page { display: none !important; }
  body[data-plate-print] > :not(.merchant-plate-print) { display: none !important; }
  body[data-plate-print] { background: white !important; margin: 0 !important; }
  body[data-plate-print] > .merchant-plate-print { display: block !important; padding: 12mm; }
  .merchant-plate-print .merchant-plate-card { max-width: 110mm; width: 110mm; break-inside: avoid; border: 1px solid #999; box-shadow: none; }
  .merchant-plate-print .plate-qr-frame { width: 75mm; }
}
