.tool-guide { margin-top: 22px; }
.tool-guide ol { padding-left: 1.45rem; color: var(--subtle); }
.tool-guide li + li { margin-top: .3rem; }
.file-button { cursor: pointer; }
.dropzone:focus-within { outline: 2px solid #7487ff; outline-offset: 2px; }
.file-button:hover { background: var(--blue-hover); }
.pagination { margin-top: 14px; }
.tab[aria-current="page"] { color: #2d46c2; background: #e8edff; border-color: #d9e1ff; font-weight: 690; }
.qr-page { width: min(100%, 570px); }
.qr-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.qr-cards-single { grid-template-columns: minmax(0, 276px); }
.qr-card {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 24px 14px;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 5px 24px #1f32600a;
  text-align: center;
}
.qr-card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 17px;
  border-radius: 16px;
  background: #effbf1;
  color: #17823c;
  position: relative;
}
.qr-card-icon::before { content: ""; width: 14px; height: 21px; border: 2px solid currentColor; border-radius: 4px; }
.qr-card-icon::after { content: ""; position: absolute; bottom: 18px; width: 3px; height: 2px; border-radius: 2px; background: currentColor; }
.qr-card-alipay .qr-card-icon { background: #f0f7ff; color: #206fd8; }
.qr-card-alipay .qr-card-icon::before {
  width: 20px;
  height: 20px;
  mask: linear-gradient(#000 0 0) left top / 7px 7px no-repeat,
        linear-gradient(#000 0 0) right top / 7px 7px no-repeat,
        linear-gradient(#000 0 0) left bottom / 7px 7px no-repeat,
        linear-gradient(#000 0 0) right bottom / 7px 7px no-repeat;
}
.qr-card-alipay .qr-card-icon::after { bottom: 26px; width: 12px; }
.qr-card h2 { margin: 0; font-size: 1.15rem; }
.qr-card p { margin: 4px 0 20px; color: var(--subtle); font-size: .82rem; }
.qr-frame {
  display: grid;
  place-items: center;
  align-self: end;
  width: min(172px, 100%);
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 16px #1f32600e, inset 0 0 0 1px #eceef3;
}
.qr-image { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.qr-unavailable { color: var(--subtle); font-size: .86rem; }
@media (max-width: 520px) {
  .qr-cards { grid-template-columns: minmax(0, 1fr); }
}
.result-preview { overflow-wrap: anywhere; max-height: 55vh; overflow: auto; }
.result-actions { margin-top: 14px; }
#sms-message { margin: 0 0 14px; }
#sms-message:empty, #copy-status:empty { display: none; }
#reorder-preview { margin-top: 14px; }
#thumbnail-status:empty { display: none; }
.reorder-thumb { width: 115px; overflow: hidden; }
.reorder-thumb canvas { display: block; width: auto; max-width: 100%; height: 93px; object-fit: contain; margin: 0 auto 5px; border: 1px solid var(--line); background: #fff; }
.reorder-thumb strong { display: block; }
.reorder-thumb .button { padding-inline: 5px; margin-inline: 2px; }
.watermark-preview {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9ff;
}
.watermark-preview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.watermark-preview-head h2 { margin: 0; font-size: 1rem; }
.watermark-preview-head .form-field { width: min(100%, 240px); margin: 0; }
.watermark-preview canvas {
  display: block;
  max-width: 100%;
  max-height: min(480px, 55vh);
  margin-inline: auto;
  background: conic-gradient(#edf1f6 25%, #fff 0 50%, #edf1f6 0 75%, #fff 0) 0 0 / 20px 20px;
}
#watermark-preview-status:empty { display: none; }
