.regedit-open { overflow: hidden; }
.regedit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 45, 66, .58);
}
.regedit-panel {
  width: min(720px, 100%);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 65px rgba(9, 27, 47, .25);
  color: #294258;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.regedit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #e3eaf2;
}
.regedit-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.regedit-head p { margin: 4px 0 0; color: #71859a; font-size: 12px; }
.regedit-close {
  width: 30px;
  height: 30px;
  flex: none;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #71859a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.regedit-close:hover { background: #f2f6fa; color: #d23d45; }
.regedit-form { display: flex; min-height: 0; flex-direction: column; }
.regedit-body { padding: 20px 22px; overflow: auto; }
.regedit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.regedit-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; }
.regedit-field.is-wide { grid-column: 1 / -1; }
.regedit-label { color: #3c5267; font-size: 13px; font-weight: 600; }
.regedit-control {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d5e0ea;
  border-radius: 5px;
  background: #fff;
  color: #294258;
  font: inherit;
}
.regedit-control:focus { outline: 2px solid #c5dcfa; border-color: #5d9ce8; }
textarea.regedit-control { min-height: 82px; resize: vertical; }
.regedit-hint { color: #7d8fa1; font-size: 12px; overflow-wrap: anywhere; }
.regedit-choices { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.regedit-choice { display: inline-flex; align-items: center; gap: 5px; color: #445a70; }
.regedit-notify-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid #d5e6f7;
  border-radius: 6px;
  background: #f5faff;
  color: #294f76;
  cursor: pointer;
}
.regedit-notify-row input { flex: none; margin: 3px 0 0; accent-color: #176bd1; }
.regedit-notify-row span { display: grid; gap: 3px; min-width: 0; }
.regedit-notify-row strong { font-size: 13px; }
.regedit-notify-row small { color: #657e97; font-size: 12px; line-height: 1.5; }
.regedit-error { margin: 14px 0 0; color: #bd293a; font-size: 13px; }
.regedit-error:empty { display: none; }
.regedit-receipt-notice {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid #b7d8ef;
  border-radius: 5px;
  background: #f3f9ff;
  color: #23557f;
  font-size: 13px;
  line-height: 1.5;
}
.regedit-receipt-notice small { color: #63809a; font-size: 12px; }
.regedit-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid #e3eaf2;
}
.regedit-footer button {
  min-height: 36px;
  padding: 7px 18px;
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
}
.regedit-secondary { border: 1px solid #cbd8e5; background: #fff; color: #40566d; }
.regedit-primary { border: 1px solid #176bd1; background: #176bd1; color: #fff; }
.regedit-footer button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 600px) {
  .regedit-overlay { padding: 12px; }
  .regedit-panel { max-height: 92vh; }
  .regedit-grid { grid-template-columns: 1fr; }
  .regedit-head, .regedit-body, .regedit-footer { padding-left: 16px; padding-right: 16px; }
}
