.dx { margin: var(--s6) 0; overflow: hidden; }
html.embed .dx { margin: 0; }
.dx-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5); border-bottom: 1px solid var(--line);
}
.dx-head h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: var(--s1); }
.dx-head p { font-size: 15px; max-width: 72ch; }

.dx-level { display: flex; align-items: center; gap: var(--s2); font-weight: 700; color: var(--gold); white-space: nowrap; }
.dx-level output { min-width: 2.5ch; text-align: center; color: var(--text); font-size: 18px; }
.dx-step {
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r1); background: var(--surface-2); color: var(--gold-hi);
  font: 700 20px/1 var(--font-body); box-shadow: var(--shadow-1);
  transition: transform .25s var(--spring), border-color .2s var(--ease);
}
.dx-step:hover { border-color: var(--gold-hi); }
.dx-step:active { transform: scale(.92); }

.dx-table { width: 100%; border-collapse: collapse; }
.dx-table th, .dx-table td { padding: var(--s3) var(--s4); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.dx-table thead th { font-size: 14px; font-weight: 700; color: var(--gold); background: var(--surface-2); }
.dx-table thead th img { display: inline-block; vertical-align: -3px; margin-right: var(--s2); border-radius: 3px; }
.dx-table thead th:first-child { width: 34%; }
.dx-table tbody th { font-weight: 700; }
.dx-range { color: var(--gold-hi); font-weight: 600; font-size: 14px; margin-left: var(--s1); }
.dx-table td b { display: block; font-size: 16px; }
.dx-table td small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.dx-table tbody tr { transition: opacity .2s var(--ease); }
.dx-table tbody tr:hover { background: var(--surface-2); }
.dx-table tbody tr.is-past { opacity: .5; }
.dx-foot { padding: var(--s4) var(--s5); color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .dx-head { padding: var(--s4); }
  .dx-table thead { display: none; }
  .dx-table, .dx-table tbody, .dx-table tr, .dx-table th, .dx-table td { display: block; width: 100%; }
  .dx-table tbody tr { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
  .dx-table tbody th, .dx-table td { padding: var(--s1) 0; border: 0; }
  .dx-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
  .dx-foot { padding: var(--s4); }
}
