.express-form select[name="express_company"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.express-form .express-scan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #c8dbef;
  background: rgba(243, 249, 255, .8);
  line-height: 1.35;
}
.express-form .express-scan-btn:focus-visible {
  border-color: #3e8ee8;
  outline: 2px solid rgba(62, 142, 232, .22);
  outline-offset: 2px;
  background: #eaf4ff;
}
.express-form .express-scan-hint {
  flex: 1 1 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
}
.express-scan-hint:empty { display: none; }

.express-scan-dialog {
  width: min(540px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 26px;
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid #fff;
  border-radius: 24px;
  color: #233c57;
  background: rgba(248, 252, 255, .98);
  box-shadow: 0 24px 80px rgba(37, 64, 92, .22);
}
.express-scan-dialog::backdrop {
  background: rgba(31, 52, 76, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.express-scan-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.express-scan-dialog__header h2 { margin: 4px 0 0; font-size: 21px; }
.express-scan-dialog__eyebrow { margin: 0; color: #6b839e; font-size: 12px; }
.express-scan-dialog__header button { flex: 0 0 auto; padding: 7px 12px; font-size: 13px; }
.express-scan-dialog__target {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #d3e3f5;
  border-radius: 14px;
  background: #edf5ff;
  overflow-wrap: anywhere;
}
.express-scan-dialog__target > span { color: #66819f; font-size: 12px; }
.express-scan-dialog__target strong { color: #2065ac; font-size: 18px; }
.express-scan-dialog__target p { margin: 0; font-size: 14px; }
.express-scan-dialog__intro { margin: 12px 0; color: #65809b; font-size: 13px; }
.express-scan-dialog__dropzone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 166px;
  padding: 22px 12px;
  border: 1.5px dashed #9ebfe5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  color: #3279c4;
  white-space: normal;
}
.express-scan-dialog__dropzone small { color: #738ca6; font-size: 12px; font-weight: 400; }
.express-scan-dialog__dropzone img { width: 92px; height: 64px; object-fit: contain; border-radius: 6px; }
.express-scan-dialog__dropzone.is-dragging,
.express-scan-dialog__dropzone:focus-visible { outline: 3px solid #cde3fc; outline-offset: 2px; background: #eef7ff; }
.express-scan-dialog__status { margin: 12px 0; min-height: 20px; color: #587894; font-size: 13px; overflow-wrap: anywhere; }
.express-scan-dialog__result { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin: 16px 0; }
.express-scan-dialog__result label { display: grid; gap: 6px; min-width: 0; font-size: 12px; color: #587894; }
.express-scan-dialog__result :is(select, input) { width: 100%; min-width: 0; max-width: 100%; height: 42px; padding: 8px; box-sizing: border-box; font-size: 14px; }
.express-scan-dialog__footer { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 18px; }
.express-scan-dialog__footer span { flex: 1 1 150px; color: #738ca6; font-size: 12px; }
.express-scan-dialog__footer button { font-size: 14px; }
@media (max-width: 600px) {
  .express-scan-dialog { padding: 20px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .express-scan-dialog__result { grid-template-columns: 1fr; }
  .express-scan-dialog__dropzone { min-height: 136px; padding: 18px 10px; }
  .express-scan-dialog__footer { gap: 10px; }
  .express-scan-dialog__footer button { width: 100%; }
}
