/* pay dashboard. Dark only. Tokens first; no inline styles anywhere (CSP: style-src 'self'). */
:root {
  color-scheme: dark;

  /* colour: warm-neutral greys, one blue accent, five state hues */
  --bg: #202020;
  --surface: #2a2a2a;
  --surface-2: #343434;
  --surface-3: #3e3e3e;
  --inset: #1b1b1b;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #ededed;
  --text-2: #a3a3a3;
  --accent: #0c8ce9;
  --accent-solid: #0a6acc;
  --accent-solid-hover: #0b72d9;
  --accent-soft: #12283b;
  --accent-text: #62b1ff;
  --ok: #4cc38a;
  --info: #62b1ff;
  --wait: #e5b454;
  --warn: #f0954c;
  --bad: #f47a74;
  --ok-soft: rgba(76, 195, 138, 0.13);
  --info-soft: rgba(98, 177, 255, 0.13);
  --wait-soft: rgba(229, 180, 84, 0.13);
  --warn-soft: rgba(240, 149, 76, 0.13);
  --bad-soft: rgba(244, 122, 116, 0.13);
  --off-soft: rgba(255, 255, 255, 0.07);

  /* space: 4px base */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  /* radius */
  --r-card: 24px;
  --r-tile: 14px;
  --r-ctl: 12px;
  --r-pill: 999px;

  /* type: one family, fixed rem scale (ratio about 1.15), two weights */
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;

  /* motion */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 160ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scrollbar-color: #4a4a4a var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md) / 1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection {
  background: rgba(12, 140, 233, 0.4);
  color: #fff;
}
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
pre {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 10;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-ctl);
  background: var(--accent-solid);
  color: #fff;
  text-decoration: none;
}
.skip:focus {
  top: var(--s4);
}
.icon {
  flex: none;
  width: 20px;
  height: 20px;
}
.muted {
  color: var(--text-2);
}
.break {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- top bar ---------- */
.top {
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: var(--s5) var(--s5) 0;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--r-ctl);
}
.brand-name {
  color: var(--text);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mark {
  display: block;
}
.ctx {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  min-width: 0;
  font-size: var(--fs-md);
}
.ctx-k {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.ctx-v {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctx-sep {
  margin: 0 var(--s3);
  color: var(--text-2);
}
.top-right {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
}
.mid {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.mid code {
  font-size: var(--fs-md);
  font-family: var(--font);
  font-weight: 500;
}
.top-rule {
  width: 1px;
  height: 20px;
  margin: 0 var(--s3);
  background: var(--line-strong);
}

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  margin: var(--s5) auto var(--s7);
  padding: 0 var(--s4);
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-tile);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.tab[aria-current="page"] {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.tab:active {
  transform: scale(0.97);
}

/* ---------- page ---------- */
.page {
  max-width: 1088px;
  margin: 0 auto;
  padding: 0 var(--s5) 96px;
}
.page > section,
.page > .split {
  margin-top: var(--s6);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.title-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  min-width: 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
}
.h1 {
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
}
.h2 {
  margin-bottom: var(--s4);
  font-size: var(--fs-lg);
  font-weight: 500;
}
.h3 {
  margin-bottom: var(--s4);
  font-size: var(--fs-md);
  font-weight: 500;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  margin-bottom: var(--s2);
  color: var(--text-2);
  font-size: var(--fs-sm);
  text-decoration: none;
  border-radius: var(--r-ctl);
  transition: color var(--dur) var(--ease);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  text-decoration: none;
  text-underline-offset: 3px;
  border-radius: 6px;
}
.link .icon {
  width: 16px;
  height: 16px;
}

/* ---------- surfaces ---------- */
.card {
  padding: var(--s5);
  border-radius: var(--r-card);
  background: var(--surface);
}
.card + .card,
.stats,
.stack > * + * {
  margin-top: var(--s2);
}
.split > *,
.stats > .card {
  margin-top: 0;
}
.card-table {
  padding: var(--s2);
}
.card > p.label:first-child {
  margin-top: 0;
}
div > p.label:first-child {
  margin-top: 0;
}
.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-tile);
  background: var(--surface-2);
  color: var(--text-2);
}
.tile-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s2);
  align-items: start;
}
.split-preview {
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
}

/* ---------- overview ---------- */
.received {
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.received-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.received-grid dt,
.stat-label {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.received-grid dd,
.stat-value {
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  margin: 0;
}
.stat-sub {
  color: var(--text-2);
  font-size: var(--fs-xs);
}
.list {
  padding: var(--s2) var(--s5);
}
.attn {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  padding: var(--s4) 0;
  font-size: var(--fs-sm);
}
.attn + .attn {
  border-top: 1px solid var(--line);
}
.attn-icon {
  flex: none;
  color: var(--warn);
}
.attn-main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.attn time {
  flex: none;
  color: var(--text-2);
  font-size: var(--fs-xs);
}

/* ---------- tables ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table th {
  padding: var(--s3) var(--s4);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.table td {
  padding: 14px var(--s4);
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.table .num {
  text-align: right;
  white-space: nowrap;
}
.table time {
  white-space: nowrap;
}
.row-link {
  display: inline-block;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}
.note {
  max-width: 32ch;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.actions {
  width: 1%;
  white-space: nowrap;
}
.ref {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  max-width: 100%;
}
.quiet {
  padding: var(--s5) var(--s4);
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s4);
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.badge .icon {
  width: 16px;
  height: 16px;
}
.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge-info {
  background: var(--info-soft);
  color: var(--info);
}
.badge-wait {
  background: var(--wait-soft);
  color: var(--wait);
}
.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge-bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.badge-off {
  background: var(--off-soft);
  color: var(--text-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 0 var(--s4);
  border: 0;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.btn:active,
.icon-btn:active {
  transform: scale(0.97);
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--accent-solid);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-small {
  min-height: 32px;
  padding: 0 var(--s3);
  font-size: var(--fs-xs);
}
.btn-small .icon {
  width: 16px;
  height: 16px;
}
.btn-block {
  width: 100%;
  min-height: 44px;
}
.icon-btn {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.icon-btn[data-copied] {
  color: var(--ok);
}
.icon-btn[data-copied]::after {
  content: "Copied";
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  padding: 2px var(--s2);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
  font: 500 var(--fs-xs) / 1.5 var(--font);
  pointer-events: none;
}
@media (hover: hover) {
  .tab:hover:not([aria-current]) {
    background: var(--surface-2);
  }
  .btn:hover {
    background: var(--surface-3);
  }
  .btn-primary:hover {
    background: var(--accent-solid-hover);
  }
  .btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .icon-btn:hover {
    background: var(--surface-2);
    color: var(--text);
  }
  .link:hover,
  .row-link:hover {
    text-decoration: underline;
  }
  .row-link:hover {
    color: var(--accent-text);
  }
  .back:hover {
    color: var(--text);
  }
  .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
  }
}

/* ---------- forms ---------- */
.form {
  display: grid;
  gap: var(--s5);
}
.narrow {
  max-width: 560px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field-grow {
  flex: 1 1 240px;
}
.label {
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 500;
}
p.label {
  margin: var(--s4) 0 6px;
}
.h3 + p.label {
  margin-top: 0;
}
.meta-label {
  margin: var(--s5) 0 6px;
}
.hint {
  color: var(--text-2);
  font-size: var(--fs-xs);
}
.hint code {
  overflow-wrap: anywhere;
}
.cli {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  max-width: 80ch;
}
.field-error {
  color: var(--bad);
  font-size: var(--fs-xs);
}
.input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--inset);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease);
}
.input::placeholder {
  color: #8f8f8f;
  opacity: 1;
}
.input:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}
.input[aria-invalid="true"] {
  border-color: var(--bad);
}
.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.filters .btn {
  min-height: 44px;
}
.filters .select {
  min-width: 168px;
}
.form-actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}
.color-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.color {
  appearance: none;
  width: 44px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--inset);
  cursor: pointer;
}
.color::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color::-webkit-color-swatch {
  border: 0;
  border-radius: 7px;
}
.color::-moz-color-swatch {
  border: 0;
  border-radius: 7px;
}
.copy-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 4px 4px 4px 14px;
  border-radius: var(--r-ctl);
  background: var(--inset);
  font-size: var(--fs-sm);
}
.copy-row code {
  flex: 1;
  min-width: 0;
  padding: var(--s2) 0;
}
.copy-row + p,
p + .copy-row {
  margin-top: var(--s3);
}
.pre {
  padding: var(--s3) 14px;
  border-radius: var(--r-ctl);
  background: var(--inset);
  font: var(--fs-xs) / 1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- flash, empty ---------- */
.flash {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-bottom: var(--s5);
  padding: var(--s3) var(--s4);
  border-radius: 16px;
  font-size: var(--fs-sm);
}
.flash .icon {
  margin-top: 1px;
}
.flash-ok {
  background: var(--ok-soft);
}
.flash-ok .icon {
  color: var(--ok);
}
.flash-error {
  background: var(--bad-soft);
}
.flash-error .icon {
  color: var(--bad);
}
.login-card .flash {
  margin-bottom: 0;
}
.empty {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  padding: var(--s7) var(--s4);
  text-align: center;
}
.empty-title {
  margin-top: var(--s2);
  font-weight: 500;
}
.empty-body {
  max-width: 46ch;
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.empty .btn {
  margin-top: var(--s3);
}

/* ---------- invoice detail ---------- */
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 48px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.dl-row:first-child {
  border-top: 0;
}
.dl-row dt {
  flex: none;
  color: var(--text-2);
}
.dl-row dd {
  min-width: 0;
  text-align: right;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  font-size: var(--fs-sm);
}
.timeline time {
  color: var(--text-2);
  font-size: var(--fs-xs);
}
.dot {
  justify-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
}
.timeline li:last-child .dot {
  background: var(--accent);
}
.timeline li + li::before {
  content: "";
  position: absolute;
  left: 9.5px;
  top: -14px;
  width: 1px;
  height: 28px;
  background: var(--line-strong);
}

/* ---------- webhooks, settings ---------- */
.secret {
  display: flex;
  gap: var(--s4);
  margin-bottom: var(--s2);
}
.secret-main {
  flex: 1;
  min-width: 0;
}
.secret .h3 {
  margin-bottom: var(--s1);
}
.preview {
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
}
.preview-frame {
  width: 100%;
  height: 660px;
  border: 0;
  border-radius: 16px;
  background: var(--inset);
}
.row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
  font-size: var(--fs-sm);
}
.row + .row {
  border-top: 1px solid var(--line);
}
.rows .row:first-child {
  padding-top: 0;
}
.row-main {
  flex: 1;
  min-width: 0;
}

/* ---------- signed-out ---------- */
.solo {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: var(--s5) var(--s4);
}
.solo > .card {
  width: min(480px, 100%);
}
.login {
  width: min(420px, 100%);
}
.brand-lg {
  display: flex;
  justify-content: center;
  margin-bottom: var(--s5);
}
.login-card {
  display: grid;
  gap: var(--s4);
  padding: var(--s6);
}

/* ---------- narrow screens ---------- */
@media (max-width: 900px) {
  .split,
  .split-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  .ctx-k,
  .mid,
  .top-rule {
    display: none;
  }
  .ctx-sep {
    margin: 0 var(--s1);
  }
}
@media (max-width: 640px) {
  :root {
    --r-card: 20px;
  }
  .top {
    gap: var(--s4);
    padding: var(--s4) var(--s4) 0;
    min-height: 60px;
  }
  .tabs {
    gap: var(--s1);
    margin: var(--s4) auto var(--s6);
  }
  .tab {
    flex: 1;
    padding: 0 var(--s2);
    font-size: var(--fs-sm);
  }
  .page {
    padding: 0 var(--s4) var(--s8);
  }
  .card {
    padding: var(--s4);
  }
  .login-card {
    padding: var(--s5);
  }
  .received {
    align-items: flex-start;
  }
  .received > .tile {
    display: none;
  }
  .received-grid,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .received-grid {
    gap: var(--s3);
  }
  .received-grid > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--s4);
  }
  .received-grid dd {
    font-size: var(--fs-xl);
  }
  .filters .field,
  .filters .btn {
    flex: 1 1 100%;
  }
  .btn,
  .btn-small {
    min-height: 44px;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  .page-head .btn {
    flex: 1 1 100%;
  }
  .attn {
    flex-wrap: wrap;
  }
  .attn time {
    flex-basis: 100%;
    padding-left: 36px;
  }

  /* tables become a stack of cards: one row per card, the column name in front of each value */
  .card-table:has(.table) {
    padding: 0;
    background: none;
    border-radius: 0;
  }
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }
  .table tr {
    padding: var(--s1) var(--s4);
    border-radius: var(--r-card);
    background: var(--surface);
  }
  .table tr + tr {
    margin-top: var(--s2);
  }
  .table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    min-height: 44px;
    padding: var(--s2) 0;
    text-align: right;
  }
  .table td:first-child {
    border-top: 0;
  }
  .table td::before {
    content: attr(data-label);
    flex: none;
    color: var(--text-2);
    font-size: var(--fs-xs);
    text-align: left;
  }
  .table .actions {
    width: auto;
    padding: var(--s2) 0 var(--s3);
  }
  .table .actions::before {
    content: none;
  }
  .actions form,
  .actions .btn {
    width: 100%;
  }
  .note {
    max-width: none;
  }
  .row-link {
    max-width: 20ch;
    padding: 10px 0;
  }
  .row-wrap {
    flex-wrap: wrap;
    row-gap: var(--s2);
  }
  .row-wrap .row-main {
    flex-basis: calc(100% - 60px);
  }
  .row-wrap .badge {
    margin-left: 60px;
  }
  .dl-row {
    align-items: flex-start;
    padding: var(--s3) 0;
  }
  .preview-frame {
    height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation: none !important;
  }
  .btn:active,
  .icon-btn:active,
  .tab:active {
    transform: none;
  }
}
