.ob-dialog {
  box-sizing: border-box;
  width: min(32rem, calc(100vw - 2rem));
  max-height: min(84vh, 48rem);
  max-height: min(84dvh, 48rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #e0deea;
  border-radius: 14px;
  background: #fff;
  color: #1c202d;
  box-shadow: 0 26px 90px #17132833;
  font-family: inherit;
  font-size: 1rem;
}
.ob-dialog::backdrop { background: #17142366; backdrop-filter: blur(3px); }
.ob-dialog [hidden] { display: none !important; }
.ob-dialog .ob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem 1rem;
  border-bottom: 1px solid #edeaf1;
}
.ob-dialog h2, .ob-dialog h3, .ob-dialog p { margin: 0; }
.ob-dialog h2 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
.ob-dialog h3 { font-size: .99rem; font-weight: 650; }
.ob-dialog .ob-body { display: grid; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; }
.ob-dialog .ob-space { color: #665394; font-size: .88rem; font-weight: 600; }
.ob-dialog .ob-section, .ob-dialog .ob-confirm {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #e8e5ef;
  border-radius: 12px;
}
.ob-dialog .ob-copy { flex: 1; }
.ob-dialog .ob-copy p, .ob-dialog .ob-confirm p {
  margin-top: .38rem;
  color: #626675;
  font-size: .89rem;
  line-height: 1.6;
}
.ob-dialog .ob-button {
  flex: none;
  min-height: 2.45rem;
  padding: .45rem .85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.38;
  white-space: nowrap;
  cursor: pointer;
}
.ob-dialog .ob-outline { border-color: #d9d5e3; background: #fff; color: #393448; }
.ob-dialog .ob-outline:hover { border-color: #a797c6; background: #f7f5fb; }
.ob-dialog .ob-primary { background: #7051c7; color: #fff; }
.ob-dialog .ob-primary:hover { background: #5b40b0; }
.ob-dialog .ob-close {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  min-height: 0;
  background: #f3f2f7;
  color: #625f6d;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}
.ob-dialog .ob-close:hover { background: #eae7f2; }
.ob-dialog .ob-button:focus-visible { outline: 3px solid #ae98e2; outline-offset: 3px; }
.ob-dialog .ob-confirm { display: block; background: #f7f4fc; border-color: #dbd2ed; }
.ob-dialog .ob-filename { overflow-wrap: anywhere; }
.ob-dialog .ob-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.ob-dialog .ob-feedback { color: #53456f; font-size: .89rem; line-height: 1.55; }
.ob-dialog .ob-error { color: #a53440; }
.ob-dialog .ob-feedback:empty { display: none; }
@media (max-width: 420px) {
  .ob-dialog .ob-header { padding: 1rem; }
  .ob-dialog .ob-body { padding: 1rem; gap: .75rem; }
  .ob-dialog .ob-section { flex-wrap: wrap; align-items: flex-start; gap: .65rem; }
  .ob-dialog .ob-copy { flex-basis: 100%; }
  .ob-dialog .ob-button { min-height: 2.75rem; }
  .ob-dialog .ob-close { width: 2.75rem; }
}
