/* plan_builder_week.css — Presentation stylesheet for Program Builder B1.
   Consumes canonical --ds-* roles from instrument-tokens.css exclusively (zero palette
   literals; dark, obsidian, light, and clinical themes inherit WCAG AA contrast pairs).
   Every rule is scoped to #pbBuilder, #pbPresets, #pbEquip, #pbSplits, #pbWeek,
   dialog#pbEditDialog, or dialog#pbSwapDialog with specificity exceeding fitness-system.css
   (0,3,1) so display and tabular-monospace typography hold across all routes and themes.
   Honors D1-D15 and R1-R3. */

/* --- Shared focus, disabled, and typography rails across builder + top-level dialogs --- */
#pbBuilder,
dialog#pbEditDialog,
dialog#pbSwapDialog {
  color: var(--ds-text-1);
  font-family: var(--ds-font-text);
  min-width: 0;
}

#pbBuilder :is(button, input, select, summary):focus-visible,
dialog#pbEditDialog :is(button, input, select, summary):focus-visible,
dialog#pbSwapDialog :is(button, input, select, summary):focus-visible {
  outline: var(--ds-focus-width) solid var(--ds-focus);
  outline-offset: var(--ds-focus-offset);
}

#pbBuilder button:disabled,
dialog#pbEditDialog button:disabled,
dialog#pbSwapDialog button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* --- Builder shell & explicit state rails (#pbBuilder[data-state]) --- */
#pbBuilder {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-5);
  margin: var(--ds-space-5) 0;
}

#pbBuilder .pb-flags {
  padding: var(--ds-space-3) var(--ds-space-4);
  border: var(--ds-border-width) solid var(--ds-caution);
  border-left-width: 3px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-1);
  color: var(--ds-text-1);
  font-size: var(--ds-text-sm);
  line-height: 1.45;
}

#pbSaveMsg {
  margin: 0;
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-md);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  background: var(--ds-surface-1);
  color: var(--ds-text-1);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  line-height: 1.45;
}

#pbSaveMsg:empty {
  display: none;
}

#pbBuilder[data-state="draft"] #pbSaveMsg {
  border-color: var(--ds-caution);
  color: var(--ds-caution);
}

#pbBuilder[data-state="saved"] #pbSaveMsg {
  border-color: var(--ds-positive);
  color: var(--ds-positive);
}

#pbBuilder[data-state="save-failed"] #pbSaveMsg {
  border-color: var(--ds-danger);
  border-left-width: 4px;
  color: var(--ds-danger);
}

/* --- Equipment presets & visible editable checklist (D3, D15) --- */
#pbPresets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin: 0 0 var(--ds-space-4);
}

#pbPresets button[data-preset] {
  min-height: var(--ds-tap);
  padding: 0 var(--ds-space-4);
  border-radius: var(--ds-radius-sm);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  background: var(--ds-surface-1);
  color: var(--ds-text-1);
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  cursor: pointer;
  transition: background var(--ds-dur-fast) var(--ds-ease-out),
    border-color var(--ds-dur-fast) var(--ds-ease-out),
    color var(--ds-dur-fast) var(--ds-ease-out);
}

#pbPresets button[data-preset]:hover:not([aria-pressed="true"]) {
  background: var(--ds-surface-2);
  border-color: var(--ds-accent-text);
}

#pbPresets button[data-preset][aria-pressed="true"] {
  background: var(--ds-accent);
  border-color: var(--ds-accent);
  color: var(--ds-accent-ink);
  font-weight: var(--ds-weight-bold);
}

#pbEquip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  margin: 0;
  padding: var(--ds-space-4);
  border: var(--ds-border-width) solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface-1);
}

#pbEquip label {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  min-height: var(--ds-tap);
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-sm);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  background: var(--ds-surface-0);
  color: var(--ds-text-1);
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-sm);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color var(--ds-dur-fast) var(--ds-ease-out),
    background var(--ds-dur-fast) var(--ds-ease-out);
}

@media (hover: hover) {
  #pbEquip label:hover {
    border-color: var(--ds-accent-text);
    background: var(--ds-surface-2);
  }
}

#pbEquip label:has(input:checked) {
  border-color: var(--ds-accent);
  background: var(--ds-accent-soft);
}

#pbEquip label:has(input:focus-visible) {
  outline: var(--ds-focus-width) solid var(--ds-focus);
  outline-offset: var(--ds-focus-offset);
}

#pbEquip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ds-accent);
  flex-shrink: 0;
  cursor: pointer;
}

@supports selector(:has(*)) {
  #pbEquip input[type="checkbox"]:focus-visible {
    outline: none;
  }
}

#pbEquipMsg {
  margin: var(--ds-space-2) 0 0;
  font-size: var(--ds-text-sm);
  color: var(--ds-caution);
}

#pbEquipMsg:empty {
  display: none;
}

/* --- Split comparison (D1: 2-3 named splits, one recommended + one-line reason) --- */
#pbSplits [role="radiogroup"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--ds-space-3);
}

#pbSplits label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ds-space-1);
  min-height: var(--ds-tap);
  padding: var(--ds-space-4);
  border-radius: var(--ds-radius-md);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  background: var(--ds-surface-1);
  color: var(--ds-text-1);
  font-family: var(--ds-font-text);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color var(--ds-dur-fast) var(--ds-ease-out),
    background var(--ds-dur-fast) var(--ds-ease-out);
}

@media (hover: hover) {
  #pbSplits label:hover {
    border-color: var(--ds-accent-text);
    background: var(--ds-surface-2);
  }
}

#pbSplits label:has(input[type="radio"]:checked) {
  border-color: var(--ds-accent);
  border-left-width: 3px;
  background: var(--ds-accent-soft);
}

#pbSplits label:has(input[type="radio"]:focus-visible) {
  outline: var(--ds-focus-width) solid var(--ds-focus);
  outline-offset: var(--ds-focus-offset);
}

#pbSplits input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

#pbSplits .pb-split-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#pbSplits .pb-split-rec,
#pbSplits [data-recommended="true"] > .pb-split-badge,
#pbSplits label[data-recommended="true"]:not(:has(.pb-split-rec)):not(:has(.pb-split-badge))::before {
  font-family: var(--ds-font-data);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-bold);
  letter-spacing: var(--ds-tracking-label);
  text-transform: uppercase;
  color: var(--ds-accent-text);
}

#pbSplits label[data-recommended="true"]:not(:has(.pb-split-rec)):not(:has(.pb-split-badge))::before {
  content: "Recommended";
  display: inline-block;
  margin-bottom: var(--ds-space-1);
}

#pbSplits .pb-split-name {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-bold);
  font-size: var(--ds-text-lg);
  line-height: var(--ds-leading-snug);
  color: var(--ds-text-1);
}

#pbSplits .pb-split-days {
  font-family: var(--ds-font-data);
  font-size: var(--ds-text-xs);
  color: var(--ds-text-2);
}

#pbSplits .pb-split-why {
  margin: 0;
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-sm);
  color: var(--ds-text-2);
  line-height: 1.45;
}

/* --- Weekly overview (D6, D12: vertical day list, aligned tabular numbers at 320px) --- */
#pbWeek {
  min-width: 0;
}

#pbWeek > ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}

#pbWeek li.pb-day {
  background: var(--ds-surface-1);
  border: var(--ds-border-width) solid var(--ds-border);
  border-radius: var(--ds-radius-md);
  padding: 0;
  overflow: hidden;
  min-width: 0;
}

#pbWeek li.pb-day[data-state="today"],
#pbWeek li.pb-day[data-state="next"] {
  border-color: var(--ds-accent);
  border-left-width: 3px;
}

#pbWeek li.pb-day[data-state="missed"] {
  border-color: var(--ds-caution);
  border-left-width: 3px;
}

#pbWeek li.pb-day[data-state="done"] {
  border-color: var(--ds-positive);
}

#pbWeek li.pb-day[data-state="rest"] {
  background: var(--ds-surface-0);
  border-color: var(--ds-border);
  border-left-width: var(--ds-border-width);
}

#pbWeek li.pb-day[data-state="rest"] .pb-day-head {
  opacity: 1;
  padding: var(--ds-space-2) var(--ds-space-4);
  min-height: var(--ds-tap);
}

#pbWeek .pb-day-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px var(--ds-space-3);
  align-items: center;
  padding: var(--ds-space-4);
  min-width: 0;
}

#pbWeek .pb-day-name {
  grid-column: 1;
  margin: 0;
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-bold);
  font-size: var(--ds-text-lg);
  line-height: var(--ds-leading-snug);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ds-text-1);
  overflow-wrap: anywhere;
}

#pbWeek li.pb-day[data-state="rest"] .pb-day-name {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  color: var(--ds-text-2);
}

#pbWeek .pb-day-focus {
  grid-column: 1;
  margin: 0;
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-medium);
  color: var(--ds-text-2);
  overflow-wrap: anywhere;
}

#pbWeek .pb-nums,
#pbWeek .pb-day-nums {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 92px;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--ds-font-data);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.3;
}

#pbWeek .pb-num {
  font-family: var(--ds-font-data);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.3;
}

#pbWeek .pb-num[data-k="lifts"] {
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-text-1);
}

#pbWeek .pb-num[data-k="min"],
#pbWeek .pb-num-unit {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-2);
}

/* Optional collapsed day state when data-expanded="false" is set */
#pbWeek li.pb-day[data-expanded="false"] > ol.pb-lifts {
  display: none;
}

/* --- Exercise rows inside a training day (D2, D12, D15) --- */
#pbWeek ol.pb-lifts {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--ds-border-width) solid var(--ds-border);
  background: var(--ds-surface-0);
}

#pbWeek li.pb-lift {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-bottom: var(--ds-border-width) solid var(--ds-border);
  min-width: 0;
}

#pbWeek li.pb-lift:last-child {
  border-bottom: 0;
}

#pbWeek li.pb-lift[data-unsupported="true"] {
  border-left: 3px solid var(--ds-caution);
}

#pbWeek .pb-lift-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--ds-space-3);
  align-items: baseline;
  min-width: 0;
}

#pbWeek .pb-lift-name {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-bold);
  font-size: var(--ds-text-md);
  line-height: var(--ds-leading-snug);
  color: var(--ds-text-1);
  overflow-wrap: anywhere;
  min-width: 0;
}

#pbWeek .pb-lift-last {
  display: block;
  margin-top: 2px;
  font-family: var(--ds-font-data);
  font-size: var(--ds-text-xs);
  color: var(--ds-text-2);
}

#pbWeek .pb-lift-dose {
  font-family: var(--ds-font-data);
  font-variant-numeric: tabular-nums;
  font-weight: var(--ds-weight-bold);
  font-size: var(--ds-text-lg);
  color: var(--ds-text-1);
  text-align: right;
  white-space: nowrap;
  min-width: 78px;
}

#pbWeek .pb-lift-flag,
#pbWeek .pb-lift-note {
  margin: 0;
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-xs);
  color: var(--ds-text-2);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#pbWeek li.pb-lift[data-unsupported="true"] .pb-lift-flag {
  color: var(--ds-caution);
  font-weight: var(--ds-weight-semibold);
}

#pbWeek .pb-lift-acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  align-items: center;
  margin-top: 2px;
}

#pbWeek li.pb-lift button[data-act] {
  min-height: var(--ds-tap);
  min-width: var(--ds-tap);
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-sm);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  background: var(--ds-surface-1);
  color: var(--ds-text-1);
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-xs);
  font-weight: var(--ds-weight-semibold);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ds-dur-fast) var(--ds-ease-out),
    border-color var(--ds-dur-fast) var(--ds-ease-out);
}

#pbWeek li.pb-lift button[data-act]:hover:not(:disabled) {
  background: var(--ds-surface-2);
  border-color: var(--ds-accent-text);
}

#pbWeek li.pb-lift button[data-act="swap"] {
  border-color: var(--ds-accent);
  color: var(--ds-accent-text);
}

#pbWeek li.pb-lift button[data-act="remove"] {
  border-color: var(--ds-border);
  color: var(--ds-danger);
}

#pbWeek li.pb-lift button[data-act="remove"]:hover:not(:disabled) {
  border-color: var(--ds-danger);
}

/* --- Action bar (#pbUndo, #pbSave, #pbStart) & dialog action rows --- */
#pbBuilder .pb-actions-row,
#pbBuilder .pb-week-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  align-items: center;
  justify-content: space-between;
}

dialog#pbEditDialog .pb-actions-row,
dialog#pbSwapDialog .pb-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-2);
  align-items: center;
  justify-content: flex-end;
}

#pbUndo,
#pbSave,
#pbStart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ds-tap);
  padding: var(--ds-space-2) var(--ds-space-4);
  border-radius: var(--ds-radius-sm);
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: background var(--ds-dur-fast) var(--ds-ease-out),
    color var(--ds-dur-fast) var(--ds-ease-out),
    border-color var(--ds-dur-fast) var(--ds-ease-out);
}

#pbUndo {
  background: transparent;
  color: var(--ds-text-2);
  border: var(--ds-border-width) solid var(--ds-border-strong);
}

#pbUndo:hover:not(:disabled) {
  color: var(--ds-text-1);
  background: var(--ds-surface-2);
}

#pbSave {
  background: var(--ds-surface-1);
  color: var(--ds-text-1);
  border: var(--ds-border-width) solid var(--ds-border-strong);
}

#pbSave:hover:not(:disabled) {
  background: var(--ds-surface-2);
  border-color: var(--ds-accent);
}

#pbStart {
  min-height: 48px;
  padding: var(--ds-space-2) var(--ds-space-5);
  background: var(--ds-accent);
  color: var(--ds-accent-ink);
  border: var(--ds-border-width) solid var(--ds-accent);
  font-weight: var(--ds-weight-bold);
  white-space: normal;
  overflow-wrap: anywhere;
}

#pbStart:hover:not(:disabled) {
  background: var(--ds-text-1);
  color: var(--ds-surface-0);
  border-color: var(--ds-text-1);
}

/* --- Editor & Swap Dialogs (dialog#pbEditDialog, dialog#pbSwapDialog) --- */
dialog#pbEditDialog,
dialog#pbSwapDialog {
  width: min(520px, calc(100vw - 24px));
  max-height: min(86vh, 720px);
  padding: var(--ds-space-5);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  border-top: 3px solid var(--ds-accent);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface-1);
  color: var(--ds-text-1);
  box-shadow: var(--ds-elev-3);
  overflow-y: auto;
}

dialog#pbEditDialog::backdrop,
dialog#pbSwapDialog::backdrop {
  background: var(--ds-shadow-color);
  backdrop-filter: blur(2px);
}

dialog#pbEditDialog h2,
dialog#pbSwapDialog h2,
dialog#pbEditDialog h3,
dialog#pbSwapDialog h3 {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-bold);
  font-size: var(--ds-text-xl);
  line-height: var(--ds-leading-snug);
  margin: 0 0 var(--ds-space-3);
  overflow-wrap: anywhere;
}

dialog#pbEditDialog form,
dialog#pbSwapDialog form {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
}

dialog#pbEditDialog label,
dialog#pbSwapDialog label {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-sm);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ds-text-2);
}

dialog#pbEditDialog :is(input, select) {
  min-height: var(--ds-tap);
  height: var(--ds-tap);
  line-height: 1.2;
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-sm);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  background: var(--ds-surface-0);
  color: var(--ds-text-1);
  font-family: var(--ds-font-data);
  font-size: var(--ds-text-md);
}

dialog#pbSwapDialog .pb-alts {
  list-style: none;
  margin: 0 0 var(--ds-space-3);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
}

dialog#pbSwapDialog button[data-alt-index] {
  width: 100%;
  min-height: 52px;
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-sm);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  background: var(--ds-surface-0);
  color: var(--ds-text-1);
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-2);
  cursor: pointer;
}

dialog#pbSwapDialog button[data-alt-index]:hover {
  border-color: var(--ds-accent);
  background: var(--ds-surface-2);
}

dialog#pbSwapDialog .pb-alt-name {
  font-family: var(--ds-font-display);
  font-weight: var(--ds-weight-bold);
  color: var(--ds-text-1);
  overflow-wrap: anywhere;
}

dialog#pbSwapDialog .pb-alt-last {
  font-family: var(--ds-font-data);
  font-size: var(--ds-text-xs);
  color: var(--ds-accent-text);
  white-space: nowrap;
}

dialog#pbEditDialog button:not([data-alt-index]):not([type="submit"]),
dialog#pbSwapDialog button:not([data-alt-index]):not([type="submit"]) {
  min-height: var(--ds-tap);
  padding: 0 var(--ds-space-4);
  border-radius: var(--ds-radius-sm);
  border: var(--ds-border-width) solid var(--ds-border-strong);
  background: var(--ds-surface-0);
  color: var(--ds-text-1);
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-semibold);
  cursor: pointer;
}

dialog#pbEditDialog button:not([data-alt-index]):not([type="submit"]):hover:not(:disabled),
dialog#pbSwapDialog button:not([data-alt-index]):not([type="submit"]):hover:not(:disabled) {
  background: var(--ds-surface-2);
  border-color: var(--ds-accent);
}

dialog#pbEditDialog button[type="submit"],
dialog#pbSwapDialog button[type="submit"] {
  min-height: var(--ds-tap);
  padding: 0 var(--ds-space-4);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-accent);
  border: var(--ds-border-width) solid var(--ds-accent);
  color: var(--ds-accent-ink);
  font-family: var(--ds-font-text);
  font-size: var(--ds-text-sm);
  font-weight: var(--ds-weight-bold);
  cursor: pointer;
}

dialog#pbEditDialog button[type="submit"]:hover:not(:disabled),
dialog#pbSwapDialog button[type="submit"]:hover:not(:disabled) {
  background: var(--ds-text-1);
  border-color: var(--ds-text-1);
  color: var(--ds-surface-0);
}

/* --- Narrow-screen polish (320px - 480px) --- */
@media (max-width: 480px) {
  #pbEquip {
    padding: var(--ds-space-3);
  }
  #pbWeek .pb-day-head {
    padding: var(--ds-space-3);
    gap: 2px var(--ds-space-2);
  }
  #pbWeek .pb-nums,
  #pbWeek .pb-day-nums {
    min-width: 78px;
  }
  #pbWeek li.pb-lift {
    padding: var(--ds-space-3);
  }
  #pbWeek .pb-lift-dose {
    font-size: var(--ds-text-md);
    min-width: 68px;
  }
  #pbStart {
    width: 100%;
    padding: var(--ds-space-2) var(--ds-space-4);
  }
  dialog#pbEditDialog,
  dialog#pbSwapDialog {
    padding: var(--ds-space-4);
  }
  dialog#pbSwapDialog button[data-alt-index] {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  dialog#pbSwapDialog .pb-alt-last {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pbBuilder *,
  dialog#pbEditDialog,
  dialog#pbEditDialog *,
  dialog#pbSwapDialog,
  dialog#pbSwapDialog * {
    transition: none !important;
    animation: none !important;
  }
}
