
/* Backup settings and confirmation keep their title and actions in view. */
.ux-dialog[data-kind="settings"],
.ux-dialog[data-kind="backup-confirm"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ux-dialog:is([data-kind="settings"], [data-kind="backup-confirm"]) > .ux-dialog-head,
.ux-dialog:is([data-kind="settings"], [data-kind="backup-confirm"]) > .ux-dialog-footer {
  flex: 0 0 auto;
}
.ux-dialog:is([data-kind="settings"], [data-kind="backup-confirm"]) > .ux-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ux-backup-section {
  margin-top: 22px;
  padding: 18px 0;
  border-bottom: 1px solid #ffffff0b;
}
.ux-backup-section h3 {
  margin: 0 0 7px;
  color: #dedbd2;
  font-size: 14px;
  font-weight: 500;
}
.ux-dialog-body .ux-backup-section p {
  color: #a7b3bb;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.ux-backup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 15px 0 10px;
}
.ux-backup-actions .ux-btn {
  width: 100%;
  min-width: 0;
  padding: 10px 5px;
  white-space: normal;
  letter-spacing: 0;
  font-size: 12px;
}
.ux-backup-secondary {
  color: #d8d5cb;
  background: #101922;
  border-color: #596570;
}
.ux-backup-secondary:hover { background: #23313e; }
.ux-backup-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin-bottom: 7px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #cbbfa8;
  font: 12px/1.6 "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  cursor: pointer;
}
.ux-backup-share svg { width: 17px; height: 17px; }
.ux-dialog-body .ux-backup-section .ux-backup-note {
  color: #83939e;
  font-size: 11px;
}
.ux-dialog-body .ux-backup-file {
  color: #e2d4b8;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ux-dialog-body .ux-backup-date {
  margin-top: 4px;
  color: #8fa1ad;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.ux-backup-summary { margin: 18px 0 0; }
.ux-backup-summary > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #ffffff0b;
  font-size: 12px;
}
.ux-backup-summary dt { color: #a7b3bb; }
.ux-backup-summary dd { margin: 0; color: #dedbd2; overflow-wrap: anywhere; }
.ux-dialog button:disabled { opacity: .5; cursor: default; }
body.large-text .ux-backup-section h3 { font-size: 16px; }
body.large-text .ux-dialog-body .ux-backup-section p,
body.large-text .ux-backup-actions .ux-btn,
body.large-text .ux-backup-share,
body.large-text .ux-backup-summary > div,
body.large-text .ux-dialog-body .ux-backup-file { font-size: 14px; }
body.large-text .ux-dialog-body .ux-backup-section .ux-backup-note,
body.large-text .ux-dialog-body .ux-backup-date { font-size: 12px; }
@media (max-width: 380px) {
  .ux-backup-summary > div { grid-template-columns: 94px minmax(0, 1fr); }
  .ux-dialog[data-kind="backup-confirm"] h2 { font-size: 21px; }
}

