.asr-original-register-entry {
  display: none !important;
}

.asr-route-entry-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 14px;
  margin: 14px 20px 16px;
  padding: 14px;
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(31, 45, 61, 0.05);
}

.asr-route-entry-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 10px;
}

.asr-route-entry-copy b {
  margin-bottom: 5px;
  color: #26364d;
  font-size: 15px;
}

.asr-route-entry-copy span {
  color: #8a97aa;
  font-size: 12px;
  line-height: 1.65;
}

.asr-route-entry-panel > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid #d7e4f4;
  border-radius: 12px;
  background: #f8fbff;
  color: #2f4059;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.asr-route-entry-panel > button:hover {
  border-color: #79adff;
  box-shadow: 0 7px 18px rgba(64, 135, 255, 0.12);
  transform: translateY(-1px);
}

.asr-route-entry-panel > button[data-registration-route="research"] {
  border-color: #d9d5fb;
  background: #fbfaff;
}

.asr-route-entry-panel > button[data-registration-route="research"]:hover {
  border-color: #9a8cef;
  box-shadow: 0 7px 18px rgba(119, 90, 210, 0.12);
}

.asr-route-entry-panel > button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf3ff;
  color: #3479e8;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
}

.asr-route-entry-panel > button[data-registration-route="research"] i {
  background: #f0edff;
  color: #6c54cc;
}

.asr-route-entry-panel > button span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.asr-route-entry-panel > button b {
  margin-bottom: 5px;
  font-size: 14px;
}

.asr-route-entry-panel > button small {
  overflow: hidden;
  color: #7c8a9e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asr-route-entry-panel > button em {
  color: #4489eb;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.asr-route-entry-panel > button[data-registration-route="research"] em {
  color: #735bd1;
}

html.asr-register-modal-open,
html.asr-register-modal-open body {
  overflow: hidden !important;
}

.asr-register-mask {
  position: fixed;
  z-index: 4200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(2px);
}

.asr-register-dialog {
  display: flex;
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 16px;
  background: #f5f7fb;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
}

.asr-register-dialog-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 22px;
  border-bottom: 1px solid #e2e8f2;
  background: #fff;
}

.asr-register-dialog-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.asr-register-dialog-head b {
  color: #24324a;
  font-size: 17px;
}

.asr-register-dialog-head span {
  margin-top: 4px;
  color: #95a1b2;
  font-size: 12px;
}

.asr-register-dialog-head > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8591a3;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.asr-register-dialog-head > button:hover {
  background: #f1f4f8;
  color: #3b4758;
}

.asr-register-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 20px 22px;
}

.asr-register-route-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.asr-register-route-option {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  color: #48566b;
  text-align: left;
  cursor: pointer;
}

.asr-register-route-option:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.asr-register-route-option.is-active {
  border-color: #5a9bf5;
  background: #f1f7ff;
  box-shadow: inset 0 0 0 1px rgba(64, 137, 238, 0.18);
}

.asr-register-route-option[data-route="research"].is-active {
  border-color: #846fda;
  background: #f7f5ff;
  box-shadow: inset 0 0 0 1px rgba(116, 87, 207, 0.16);
}

.asr-route-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 11px;
  border-radius: 10px;
  background: #edf4ff;
  color: #3e7edb;
  font-weight: 700;
}

.asr-register-route-option[data-route="research"] .asr-route-option-icon {
  background: #f0edff;
  color: #6e56c7;
}

.asr-register-route-option > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.asr-register-route-option b {
  color: #2e3d53;
  font-size: 14px;
}

.asr-register-route-option small {
  margin-top: 3px;
  color: #8b98aa;
  font-size: 12px;
}

.asr-register-section {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dfe6f0;
  border-radius: 13px;
  background: #fff;
}

.asr-register-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.asr-register-section-head > div {
  display: flex;
  align-items: center;
}

.asr-register-section-head b {
  color: #2d3b50;
  font-size: 14px;
}

.asr-register-section-head small {
  color: #909bad;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.asr-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  border-radius: 7px;
  background: #edf4ff;
  color: #3e7fe0;
  font-size: 12px;
  font-weight: 700;
}

.asr-register-common-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.asr-report-mode-card {
  display: grid;
  gap: 10px;
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  background: #f8fbff;
}

.asr-report-mode-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.asr-report-mode-card b {
  color: #34445a;
  font-size: 13px;
}

.asr-report-mode-card small {
  margin-top: 4px;
  color: #7e8ca0;
  font-size: 12px;
  line-height: 1.5;
}

.asr-report-mode-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.asr-report-mode-option {
  display: flex;
  min-width: 0;
  min-height: 57px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid #d5e0ee;
  border-radius: 8px;
  background: #fff;
  color: #58677b;
  cursor: pointer;
  text-align: left;
}

.asr-report-mode-option b {
  color: inherit;
  font-size: 13px;
}

.asr-report-mode-option small {
  margin-top: 2px;
  color: #94a0b1;
  font-size: 11px;
}

.asr-report-mode-option.is-active {
  border-color: #4384ee;
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px #4384ee;
  color: #246bd9;
}

.asr-report-mode-option:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.asr-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.asr-field > span {
  margin-bottom: 6px;
  color: #59677b;
  font-size: 12px;
  font-weight: 600;
}

.asr-field.is-required > span::before {
  margin-right: 3px;
  color: #f05b63;
  content: '*';
}

.asr-field input,
.asr-field select,
.asr-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e0eb;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #334156;
  font: inherit;
  font-size: 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.asr-field input,
.asr-field select {
  height: 38px;
  padding: 0 10px;
}

.asr-field textarea {
  min-height: 68px;
  padding: 9px 10px;
  resize: vertical;
}

.asr-field input:focus,
.asr-field select:focus,
.asr-field textarea:focus {
  border-color: #6ba4ee;
  box-shadow: 0 0 0 3px rgba(64, 137, 238, 0.1);
}

.asr-field input:disabled,
.asr-field select:disabled,
.asr-field textarea:disabled {
  border-color: #e2e7ef;
  background: #f3f5f8;
  color: #7d899a;
  cursor: not-allowed;
}

.asr-research-name {
  max-width: 620px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #ddd8fa;
  border-radius: 10px;
  background: #faf9ff;
}

.asr-bulk-photo-generator {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #b8d5fa;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
  box-shadow: 0 5px 16px rgba(58, 126, 220, 0.07);
}

.asr-bulk-photo-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.asr-bulk-photo-copy > div {
  display: flex;
  flex-direction: column;
}

.asr-bulk-photo-copy b {
  color: #275d9f;
  font-size: 14px;
}

.asr-bulk-photo-copy span {
  margin-top: 4px;
  color: #397acb;
  font-size: 12px;
  font-weight: 600;
}

.asr-bulk-photo-copy > small {
  max-width: 470px;
  color: #718299;
  font-size: 11px;
  line-height: 1.65;
  text-align: right;
}

.asr-bulk-photo-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: end;
  gap: 12px;
}

.asr-bulk-photo-dropzone {
  display: flex;
  box-sizing: border-box;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px dashed #6ba4ed;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  color: #3276ce;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.asr-bulk-photo-dropzone:hover,
.asr-bulk-photo-dropzone.is-dragover {
  border-color: #2876df;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(56, 131, 232, 0.11);
}

.asr-bulk-photo-dropzone.is-uploading {
  cursor: wait;
  opacity: 0.62;
}

.asr-bulk-photo-dropzone > input {
  display: none;
}

.asr-bulk-photo-dropzone > i {
  margin-right: 11px;
  font-size: 27px;
  font-style: normal;
  line-height: 1;
}

.asr-bulk-photo-dropzone > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.asr-bulk-photo-dropzone b {
  font-size: 13px;
}

.asr-bulk-photo-dropzone small {
  margin-top: 3px;
  color: #8090a4;
  font-size: 11px;
}

.asr-bulk-photo-progress,
.asr-bulk-photo-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11px;
}

.asr-bulk-photo-progress {
  background: #e5f1ff;
  color: #3274c8;
}

.asr-bulk-photo-message {
  background: #edf8f2;
  color: #347353;
  line-height: 1.55;
}

.asr-item-batch input:disabled {
  border-style: dashed;
  background: #f7f8fa;
}

.asr-register-item-list {
  display: grid;
  gap: 12px;
}

.asr-register-item-card {
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 11px;
  background: #fbfcfe;
}

.asr-register-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 13px;
  border-bottom: 1px solid #e7ebf2;
  background: #f5f8fc;
}

.asr-register-item-head > div {
  display: flex;
  align-items: baseline;
}

.asr-register-item-head span {
  color: #34445c;
  font-size: 13px;
  font-weight: 700;
}

.asr-register-item-head small {
  max-width: 420px;
  margin-left: 10px;
  overflow: hidden;
  color: #8b97a8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asr-item-remove {
  border: 0;
  background: transparent;
  color: #df6267;
  font-size: 12px;
  cursor: pointer;
}

.asr-item-remove:disabled {
  cursor: wait;
  opacity: 0.45;
}

.asr-register-item-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 13px;
}

.asr-item-remark {
  grid-column: span 2;
}

.asr-item-product-title {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  gap: 9px;
  margin: 1px -2px -1px;
  padding-top: 10px;
  border-top: 1px dashed #dce3ed;
  color: #536176;
}

.asr-item-product-title b {
  font-size: 12px;
}

.asr-item-product-title small {
  color: #929dad;
  font-size: 11px;
}

.asr-research-number {
  grid-column: span 2;
}

.asr-item-photo-field {
  grid-column: 1 / -1;
}

.asr-item-photos {
  padding: 10px;
  border: 1px dashed #ccd8e7;
  border-radius: 9px;
  background: #fff;
}

.asr-item-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asr-item-photo {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  width: 210px;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #f8fafc;
}

.asr-item-photo img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

.asr-item-photo span {
  overflow: hidden;
  padding: 0 7px;
  color: #637084;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asr-item-photo button[data-action="remove-photo"] {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e06469;
  cursor: pointer;
}

.asr-item-photo button[data-action="remove-photo"]:disabled {
  cursor: wait;
  opacity: 0.4;
}

.asr-item-photo-preview { display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; line-height: 0; border-radius: 4px; }
.asr-item-photo-preview:focus-visible { outline: 2px solid #409eff; outline-offset: 2px; }

.asr-photo-upload {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 11px;
  border: 1px solid #bcd3f3;
  border-radius: 8px;
  background: #f3f8ff;
  color: #397bd9;
  font-size: 12px;
  cursor: pointer;
}

.asr-photo-upload input {
  display: none;
}

.asr-photo-upload i {
  margin-right: 6px;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.asr-photo-upload.is-uploading {
  cursor: wait;
  opacity: 0.65;
}

.asr-photo-progress {
  display: inline-block;
  margin-left: 10px;
  color: #4b86da;
  font-size: 12px;
}

.asr-photo-binding-tip {
  display: inline-block;
  margin-left: 10px;
  color: #9aa5b4;
  font-size: 11px;
}

.asr-register-add-row {
  margin-top: 12px;
}

.asr-register-add-row button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px dashed #8cb8ed;
  border-radius: 8px;
  background: #f5f9ff;
  color: #3f80d8;
  font-size: 12px;
  cursor: pointer;
}

.asr-register-add-row button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.asr-register-add-row span {
  color: #9a7c40;
  font-size: 12px;
}

.asr-register-sync-choice {
  flex: 0 0 auto;
  padding: 16px 22px;
  border-top: 1px solid #c9d9ee;
  background: #f3f7fd;
  color: #33465e;
  font-size: 13px;
  line-height: 1.6;
}

.asr-register-sync-choice p {
  margin: 5px 0 12px;
  color: #637084;
}

.asr-register-sync-choice > div {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.asr-register-sync-choice button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #fff;
  color: #33465e;
  font: inherit;
  cursor: pointer;
}

.asr-register-sync-choice .asr-register-submit {
  border-color: #397fe2;
  background: #397fe2;
  color: #fff;
}

.asr-register-dialog-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 22px;
  border-top: 1px solid #e0e6ef;
  background: #fff;
  box-shadow: 0 -6px 18px rgba(31, 45, 61, 0.04);
}

.asr-register-form-message {
  visibility: hidden;
  max-width: 68%;
  color: #e34f59;
  font-size: 12px;
}

.asr-register-form-message.is-visible {
  visibility: visible;
}

.asr-register-dialog-footer > div:last-child {
  display: flex;
  gap: 9px;
}

.asr-register-dialog-footer button {
  min-width: 90px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.asr-register-cancel {
  border: 1px solid #d5dde8;
  background: #fff;
  color: #637084;
}

.asr-register-save-only {
  border: 1px solid #8db6ee;
  background: #f5f9ff;
  color: #3275d3;
}

.asr-register-submit {
  border: 1px solid #397fe2;
  background: #397fe2;
  color: #fff;
  box-shadow: 0 5px 12px rgba(57, 127, 226, 0.2);
}

.asr-register-submit:disabled,
.asr-register-save-only:disabled,
.asr-register-cancel:disabled {
  cursor: wait;
  opacity: 0.62;
}

.asr-list-route-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
}

.asr-list-route-summary > span {
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid #bcd6f5;
  border-radius: 5px;
  background: #eef6ff;
  color: #3d7bc9;
}

.asr-list-route-summary.is-research > span {
  border-color: #d4caf8;
  background: #f3f0ff;
  color: #6d58bf;
}

.asr-list-route-summary b {
  flex: 0 0 auto;
  color: #7d899a;
  font-size: 10px;
  font-weight: 500;
}

.asr-list-route-summary small {
  min-width: 0;
  overflow: hidden;
  color: #98a3b2;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .asr-route-entry-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asr-route-entry-copy {
    grid-column: 1 / -1;
  }

  .asr-register-common-grid,
  .asr-register-item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asr-research-number {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .asr-route-entry-panel,
  .asr-register-route-switch,
  .asr-bulk-photo-controls {
    grid-template-columns: 1fr;
  }

  .asr-bulk-photo-copy {
    flex-direction: column;
    gap: 7px;
  }

  .asr-bulk-photo-copy > small {
    max-width: none;
    text-align: left;
  }

  .asr-register-mask {
    padding: 0;
  }

  .asr-register-dialog {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .asr-register-common-grid,
  .asr-register-item-grid {
    grid-template-columns: 1fr;
  }

  .asr-item-remark,
  .asr-item-product-title,
  .asr-research-number,
  .asr-item-photo-field {
    grid-column: auto;
  }

  .asr-register-section-head,
  .asr-register-dialog-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .asr-register-section-head small {
    text-align: left;
  }

  .asr-register-dialog-footer {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .asr-register-form-message {
    max-width: 100%;
  }

  .asr-register-dialog-footer > div:last-child {
    align-self: flex-end;
  }
}

/* Registration stays task-focused: required fields and photos first, optional
   metadata and the separate one-photo/one-sample workflow on demand. */
.asr-register-compact {
  width: min(1080px, calc(100vw - 40px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.asr-register-compact .asr-register-dialog-head {
  min-height: 68px;
  padding: 12px 20px;
  box-sizing: border-box;
}

.asr-register-compact .asr-register-dialog-body { padding: 12px 20px; }
.asr-register-compact .asr-register-route-switch {
  display: inline-flex;
  gap: 3px;
  margin: 0 0 2px;
  padding: 3px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #eaf0f7;
}
.asr-register-compact .asr-register-route-option {
  justify-content: center;
  min-height: 34px;
  padding: 6px 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #637187;
}
.asr-register-compact .asr-register-route-option b { font-size: 13px; }
.asr-register-compact .asr-register-route-option.is-active {
  background: #fff;
  color: #2467b1;
  box-shadow: 0 1px 4px #20385014;
}
.asr-register-compact .asr-register-route-option:focus-visible,
.asr-register-compact summary:focus-visible,
.asr-register-compact .asr-photo-upload:focus-within {
  outline: 2px solid #4088df;
  outline-offset: 2px;
}
.asr-register-compact .asr-register-section { margin-top: 10px; padding: 12px; border-radius: 10px; }
.asr-register-compact .asr-register-section-head { margin-bottom: 10px; gap: 12px; align-items: flex-start; }
.asr-register-compact .asr-register-section-head b { font-size: 14px; }
.asr-register-compact .asr-register-count { margin-left: 10px; color: #78879a; font-size: 12px; font-weight: 400; }
.asr-register-compact .asr-register-common-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.asr-register-compact .asr-field input,
.asr-register-compact .asr-field select { height: 36px; border-radius: 6px; }
.asr-register-compact .asr-field textarea { border-radius: 6px; }
.asr-register-compact summary { cursor: pointer; font-size: 13px; color: #52667e; line-height: 1.6; }
.asr-register-compact summary::marker { color: #8090a3; font-size: 11px; }
.asr-register-compact summary > span { margin-left: 10px; color: #8290a1; font-size: 12px; font-weight: 400; }
.asr-register-compact .asr-register-rule { max-width: 65%; text-align: right; }
.asr-register-compact .asr-register-rule summary { font-size: 12px; }
.asr-register-compact .asr-register-rule p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #637187; }
.asr-register-compact .asr-bulk-photo-generator {
  padding: 8px 12px;
  margin: 0 0 10px;
  background: #f7faff;
  box-shadow: none;
  border: 1px solid #e0e8f3;
  border-radius: 7px;
}
.asr-register-compact .asr-bulk-photo-generator > summary { font-weight: 600; color: #3e6b9c; }
.asr-register-compact .asr-bulk-photo-copy { margin: 10px 0; gap: 12px; }
.asr-register-compact .asr-bulk-photo-copy > small { max-width: 52%; font-size: 12px; }
.asr-register-compact .asr-bulk-photo-controls { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.asr-register-compact .asr-bulk-photo-dropzone { min-height: 60px; padding: 8px 12px; }
.asr-register-compact .asr-register-item-card { background: #fff; border-radius: 8px; }
.asr-register-compact .asr-register-item-head { min-height: 36px; padding: 0 12px; background: #f6f8fb; }
.asr-register-compact .asr-register-item-head span { font-size: 13px; }
.asr-register-compact .asr-register-item-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.asr-register-compact .asr-research-number { grid-column: auto; }
.asr-register-compact .asr-research-name { padding: 0; margin: 0 0 12px; border: 0; background: none; max-width: none; }
.asr-register-compact .asr-item-photos { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0; border: 0; background: none; }
.asr-register-compact .asr-item-photo-list { display: contents; }
.asr-register-compact .asr-item-photo {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 76px;
  height: 76px;
  min-height: 0;
  padding: 4px;
  overflow: visible;
  background: #f8fafc;
}
.asr-register-compact .asr-item-photo img { width: 66px; height: 66px; object-fit: contain; border-radius: 4px; }
.asr-register-compact .asr-item-photo > span { display: none; }
.asr-register-compact .asr-item-photo button[data-action="remove-photo"] {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border: 1px solid #efdadd;
  border-radius: 50%;
  background: #fff;
  line-height: 18px;
}
.asr-register-compact .asr-photo-upload { margin: 0; min-height: 36px; font-size: 13px; }
.asr-register-compact .asr-photo-upload input,
.asr-register-compact .asr-bulk-photo-dropzone input {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.asr-register-compact .asr-bulk-photo-dropzone:focus-within { outline: 2px solid #4088df; outline-offset: 2px; }
.asr-register-compact .asr-photo-binding-tip { margin: 0; color: #7d8a9b; font-size: 12px; }
.asr-register-compact .asr-photo-progress { flex-basis: 100%; }
.asr-register-compact .asr-item-extra { padding: 8px 12px; border-top: 1px solid #edf0f5; }
.asr-register-compact .asr-item-extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 2fr); gap: 12px; margin-top: 10px; }
.asr-register-compact .asr-item-extra-grid.is-research { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.asr-register-compact .asr-item-remark { grid-column: auto; }
.asr-register-compact .asr-register-add-row { margin-top: 10px; }
.asr-register-compact .asr-item-extra-grid textarea { min-height: 60px; }
.asr-register-compact .asr-register-dialog-footer { padding: 12px 20px; min-height: 60px; box-sizing: border-box; }

@media (max-width: 900px) {
  .asr-register-compact .asr-register-common-grid,
  .asr-register-compact .asr-register-item-grid,
  .asr-register-compact .asr-item-extra-grid,
  .asr-register-compact .asr-item-extra-grid.is-research { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asr-register-compact .asr-item-remark { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .asr-register-compact { width: 100vw; max-height: 100dvh; }
  .asr-register-compact .asr-register-dialog-head { padding: 12px 14px; }
  .asr-register-compact .asr-register-dialog-body { padding: 12px; }
  .asr-register-compact .asr-register-section { padding: 12px; }
  .asr-register-compact .asr-register-section-head { flex-direction: row; }
  .asr-register-compact .asr-register-rule { max-width: 62%; }
  .asr-register-compact .asr-register-item-grid,
  .asr-register-compact .asr-item-extra-grid,
  .asr-register-compact .asr-item-extra-grid.is-research,
  .asr-register-compact .asr-bulk-photo-controls { grid-template-columns: minmax(0, 1fr); }
  .asr-register-compact .asr-register-item-head small { display: none; }
  .asr-register-compact .asr-photo-binding-tip { flex-basis: 100%; }
  .asr-register-compact .asr-bulk-photo-copy > small { max-width: none; }
  .asr-register-compact summary > span { margin-left: 6px; }
  .asr-register-compact .asr-register-dialog-footer { padding: 10px 12px; }
}
.asr-research-number-preview {
  display: block;
  color: #426480;
  line-height: 1.65;
  margin-top: 7px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.asr-number-expand {
  align-self: flex-start;
  width: max-content;
  margin-top: 7px;
  padding: 5px 10px;
  border: 1px solid #b9cfe6;
  border-radius: 6px;
  background: #f3f8ff;
  color: #2b628f;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
