.h3-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(17 24 39 / 48%);
}

.h3-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #dde2e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(17 24 39 / 24%);
  color: #1f2937;
}

.h3-dialog header,
.h3-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}

.h3-dialog header { border-bottom: 1px solid #e5e7eb; }
.h3-dialog footer { justify-content: flex-end; border-top: 1px solid #e5e7eb; }
.h3-dialog header span { color: #8a94a3; font-size: 12px; }
.h3-dialog h2 { margin: 4px 0 0; font-size: 20px; }
.h3-dialog-body { padding: 20px 22px; }
.h3-dialog-body > p { margin: 0 0 14px; line-height: 1.7; }

.h3-dialog button {
  min-height: 34px;
  border: 1px solid #d7dce2;
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  cursor: pointer;
}

.h3-dialog-close {
  width: 34px;
  padding: 0 !important;
  border: 0 !important;
  font-size: 24px;
}

.h3-dialog .h3-dialog-primary {
  border-color: #e8503f;
  background: #e8503f;
  color: #fff;
}

.h3-guidance {
  margin: 14px 0;
  border-left: 3px solid #e8503f;
  padding: 10px 12px;
  background: #fff6f4;
  line-height: 1.65;
}

.h3-command { margin: 16px 0; }
.h3-command > span { display: block; margin-bottom: 7px; font-weight: 600; }
.h3-command button { margin-top: 8px; }
.h3-dialog details { margin-top: 14px; }
.h3-dialog summary { cursor: pointer; color: #4b5563; font-weight: 600; }

.h3-dialog pre {
  overflow: auto;
  margin: 8px 0 0;
  border-radius: 6px;
  padding: 12px;
  background: #111827;
  color: #f3f4f6;
  font: 12px/1.6 Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 640px) {
  .h3-dialog-backdrop { padding: 12px; }
  .h3-dialog { max-height: calc(100vh - 24px); }
}
