:root {
  --paper: #f6f2ec;
  --paper-deep: #ebe4db;
  --surface: #fffdfb;
  --ink: #292522;
  --ink-soft: #625b55;
  --ink-faint: #817973;
  --chrome: #211f1e;
  --chrome-soft: #302d2b;
  --rose: #a8564d;
  --rose-dark: #8b433c;
  --rose-soft: #f1dfda;
  --sage: #4f6d48;
  --sage-soft: #e7eee3;
  --amber: #815c2d;
  --amber-soft: #f3e9d7;
  --danger: #a13f39;
  --danger-soft: #f5e3df;
  --line: rgba(41, 37, 34, 0.14);
  --line-strong: rgba(41, 37, 34, 0.24);
  --shadow: 0 18px 44px -30px rgba(41, 37, 34, 0.42);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #c4786e;
  outline-offset: 3px;
}

.shell {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.account-header {
  min-height: 68px;
  position: relative;
  z-index: 20;
  background: var(--chrome);
  color: #f8f3ed;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  color: #fffaf5;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: #dc8d82;
}

.header-actions,
.session-actions {
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-actions {
  justify-content: flex-end;
  gap: 18px;
}

.session-actions {
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.header-studio-link,
.logout-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #e8e1da;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.header-studio-link {
  padding: 0 4px;
}

.logout-button {
  padding: 0 10px;
}

.header-studio-link:hover,
.logout-button:hover {
  background: var(--chrome-soft);
  color: #fff;
}

.header-studio-link svg,
.logout-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.header-email {
  max-width: 220px;
  overflow: hidden;
  color: #bdb5ae;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

main {
  min-height: calc(100vh - 136px);
}

.state-view {
  min-height: calc(100vh - 136px);
}

.state-shell,
.login-layout,
.auth-flow-layout,
.error-shell {
  min-height: calc(100vh - 136px);
}

.state-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 80px;
  padding-block: 64px;
}

.kicker,
.section-number {
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.loading-copy h1,
.login-intro h1,
.auth-flow-intro h1,
.error-shell h1,
.dashboard-heading h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
}

.loading-copy > p:last-child,
.login-intro > p:last-child,
.auth-flow-intro > p:last-child,
.error-shell > p:not(.kicker) {
  max-width: 460px;
  margin-top: 17px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.loading-mark {
  width: 34px;
  height: 3px;
  display: block;
  margin-bottom: 34px;
  background: var(--rose);
  transform-origin: left center;
  animation: loading-mark 1.2s ease-in-out infinite alternate;
}

@keyframes loading-mark {
  from { transform: scaleX(0.35); opacity: 0.55; }
  to { transform: scaleX(1); opacity: 1; }
}

.loading-layout {
  display: grid;
  gap: 14px;
}

.skeleton {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  animation: skeleton-pulse 1.3s ease-in-out infinite alternate;
}

.skeleton-wide {
  min-height: 130px;
}

.skeleton-short {
  min-height: 82px;
}

.skeleton-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@keyframes skeleton-pulse {
  from { opacity: 0.45; }
  to { opacity: 0.9; }
}

.login-layout,
.auth-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  align-items: center;
  gap: 96px;
  padding-block: 68px;
}

.login-intro,
.auth-flow-intro {
  max-width: 560px;
}

.login-panel,
.auth-flow-panel {
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-form,
.auth-flow-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.field-label-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.field input:hover {
  border-color: rgba(41, 37, 34, 0.4);
}

.field input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(168, 86, 77, 0.12);
}

.field input::placeholder {
  color: #948b84;
}

.field input:user-invalid {
  border-color: var(--danger);
}

.auth-notice,
.form-error,
.form-note,
.inline-alert,
.quiet-note {
  padding: 11px 13px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-notice {
  margin-bottom: 18px;
  border: 1px solid rgba(79, 109, 72, 0.26);
  background: var(--sage-soft);
  color: #365331;
}

.form-error,
.inline-alert {
  border: 1px solid rgba(161, 63, 57, 0.22);
  background: var(--danger-soft);
  color: #7e2f2b;
}

.form-note {
  color: var(--ink-soft);
  font-size: 11px;
}

.login-legal {
  margin-top: 20px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.65;
}

.login-legal a {
  color: var(--rose-dark);
  text-underline-offset: 2px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.button-primary {
  background: var(--rose);
  color: #fff;
}

.button-primary:hover {
  background: var(--rose-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink-soft);
  background: rgba(41, 37, 34, 0.04);
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.text-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-action:hover {
  color: var(--ink);
}

.text-action svg {
  width: 15px;
  height: 15px;
}

.auth-progress {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
}

.auth-progress-mark {
  width: 42px;
  height: 3px;
  display: block;
  background: var(--rose);
  transform-origin: left center;
  animation: loading-mark 1.2s ease-in-out infinite alternate;
}

.auth-progress p,
.auth-flow-result p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.auth-flow-result {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
}

.auth-flow-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
}

.auth-flow-icon svg {
  width: 20px;
  height: 20px;
}

.auth-flow-submit {
  width: 100%;
}

.auth-back-button {
  margin-top: 18px;
}

.error-shell {
  max-width: 690px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 72px;
}

.error-icon,
.empty-icon {
  display: grid;
  place-items: center;
}

.error-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
}

.error-icon svg {
  width: 22px;
  height: 22px;
}

.error-shell .button {
  margin-top: 28px;
}

.dashboard-shell {
  padding-block: 54px 88px;
}

.inline-alert {
  margin-bottom: 22px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.dashboard-heading h1 {
  font-size: 50px;
}

.account-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 12px;
}

.account-identity svg {
  width: 15px;
  height: 15px;
  color: var(--rose-dark);
}

.identity-divider {
  width: 1px;
  height: 13px;
  background: var(--line-strong);
}

.new-project-button {
  flex: 0 0 auto;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--chrome);
  color: #fffaf5;
}

.summary-strip > div {
  min-width: 0;
  padding: 22px 25px;
}

.summary-strip > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-strip dt {
  color: #bdb5ae;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-strip dd {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.content-section {
  padding-top: 64px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.section-number {
  font-size: 10px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 600;
  line-height: 1;
}

.section-heading > p {
  color: var(--ink-faint);
  font-size: 11px;
}

.project-list {
  display: grid;
  gap: 13px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  padding: 24px;
}

.project-main {
  min-width: 0;
}

.project-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-index {
  flex: 0 0 auto;
  color: var(--rose-dark);
  font-family: var(--font-display);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.project-title-line h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
}

.status-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.status-badge.is-published {
  background: var(--sage-soft);
  color: #35552f;
}

.status-badge.is-attention,
.status-badge.is-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-badge.is-draft,
.status-badge.is-unpublished,
.status-badge.is-neutral {
  background: #eee9e3;
  color: #625a54;
}

.status-badge.is-failed,
.status-badge.is-canceled,
.status-badge.is-refunded {
  background: var(--danger-soft);
  color: #7e2f2b;
}

.project-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 11px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-meta span + span::before {
  width: 3px;
  height: 3px;
  content: "";
  margin-right: 7px;
  border-radius: 50%;
  background: #a9a19a;
}

.project-meta svg {
  width: 14px;
  height: 14px;
  color: var(--ink-faint);
}

.project-usage {
  width: min(430px, 100%);
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.project-usage-head {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.project-usage-label {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.project-usage-action {
  flex: 0 0 auto;
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.project-usage-action:hover {
  color: var(--rose);
}

.project-usage-track {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4dfd8;
}

.project-usage-track span {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--sage);
}

.project-usage.is-low .project-usage-label {
  color: var(--amber);
}

.project-usage.is-low .project-usage-track span {
  background: #a77a3f;
}

.project-usage.is-empty {
  width: min(460px, 100%);
  padding: 10px 11px;
  border: 1px solid rgba(161, 63, 57, 0.2);
  border-radius: 6px;
  background: var(--danger-soft);
}

.project-usage.is-empty .project-usage-label {
  color: #7e2f2b;
}

.project-usage.is-empty .project-usage-track {
  background: rgba(161, 63, 57, 0.16);
}

.project-usage.is-empty .project-usage-track span {
  background: var(--danger);
}

.project-note {
  margin-top: 11px;
  color: var(--ink-faint);
  font-size: 11px;
}

.project-actions {
  display: flex;
  align-items: center;
  align-self: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.project-actions .button {
  min-width: 124px;
}

.site-delete-button {
  border-color: rgba(161, 63, 57, 0.42);
  color: var(--danger);
}

.site-delete-button:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.empty-state {
  display: grid;
  justify-items: start;
  padding: 38px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 253, 251, 0.5);
}

.empty-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-dark);
}

.empty-icon svg {
  width: 19px;
  height: 19px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.empty-state p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.empty-state .button {
  margin-top: 22px;
}

.empty-state-compact {
  padding: 30px;
}

.quiet-note {
  margin: -7px 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.6);
  color: var(--ink-soft);
}

.payment-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.payment-table th,
.payment-table td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: middle;
}

.payment-table th {
  background: #eeebe7;
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-table th:nth-child(1) { width: 18%; }
.payment-table th:nth-child(2) { width: 27%; }
.payment-table th:nth-child(3) { width: 20%; }
.payment-table th:nth-child(4) { width: 20%; }
.payment-table th:nth-child(5) { width: 15%; text-align: right; }

.payment-table td {
  overflow-wrap: anywhere;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.payment-table tbody tr:first-child td {
  border-top: 0;
}

.payment-table td:last-child {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.payment-project {
  color: var(--ink);
  font-weight: 600;
}

.payment-table .status-badge {
  margin-left: 0;
}

.payment-limit-note {
  margin: 12px 0 0;
  border: 0;
  background: transparent;
  text-align: right;
}

.account-footer {
  min-height: 68px;
  background: var(--chrome);
  color: #bdb5ae;
}

.footer-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
}

.footer-inner > span {
  color: #f4ede6;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.footer-inner nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .state-shell {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .loading-layout {
    max-width: 620px;
  }

  .login-layout,
  .auth-flow-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .login-intro,
  .login-panel,
  .auth-flow-intro,
  .auth-flow-panel {
    width: min(520px, 100%);
  }

  .project-card article {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .shell {
    padding-inline: 16px;
  }

  .account-header,
  .header-inner {
    min-height: 62px;
  }

  .brand {
    font-size: 24px;
  }

  .header-actions {
    gap: 8px;
  }

  .session-actions {
    gap: 4px;
    padding-left: 7px;
  }

  .header-email {
    display: none;
  }

  .header-studio-link,
  .logout-button {
    padding-inline: 8px;
  }

  .header-studio-link span {
    display: none;
  }

  .state-view,
  .state-shell,
  .login-layout,
  .auth-flow-layout,
  .error-shell {
    min-height: calc(100vh - 130px);
  }

  .state-shell,
  .login-layout,
  .auth-flow-layout,
  .error-shell {
    padding-block: 44px;
  }

  .loading-copy h1,
  .login-intro h1,
  .auth-flow-intro h1,
  .error-shell h1,
  .dashboard-heading h1 {
    font-size: 37px;
  }

  .loading-layout {
    display: none;
  }

  .login-panel,
  .auth-flow-panel {
    padding: 24px 19px;
  }

  .field-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .field-label-row .text-action {
    min-height: 32px;
  }

  .dashboard-shell {
    padding-block: 36px 64px;
  }

  .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 24px;
  }

  .new-project-button {
    width: 100%;
  }

  .account-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .identity-divider {
    display: none;
  }

  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
  }

  .summary-strip > div {
    padding: 17px 12px;
  }

  .summary-strip dt {
    font-size: 8px;
  }

  .summary-strip dd {
    font-size: 28px;
  }

  .content-section {
    padding-top: 48px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .project-card article {
    padding: 20px 17px;
  }

  .project-title-line {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-title-line h3 {
    width: calc(100% - 34px);
    font-size: 23px;
  }

  .status-badge {
    margin-left: 34px;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .project-meta span + span::before {
    display: none;
  }

  .project-usage-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .project-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .project-actions .button {
    width: 100%;
  }

  .empty-state {
    padding: 30px 22px;
  }

  .payment-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .payment-table,
  .payment-table tbody,
  .payment-table tr,
  .payment-table td {
    display: block;
    width: 100%;
  }

  .payment-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .payment-table tbody {
    display: grid;
    gap: 11px;
  }

  .payment-table tr {
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .payment-table td,
  .payment-table tbody tr:first-child td {
    display: grid;
    grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 7px 0;
    border: 0;
    text-align: left;
  }

  .payment-table td::before {
    content: attr(data-label);
    color: var(--ink-faint);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .payment-table td:last-child {
    text-align: left;
  }

  .payment-table .status-badge {
    width: fit-content;
    margin-left: 0;
  }

  .payment-limit-note {
    text-align: left;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .footer-inner nav {
    justify-content: flex-start;
    gap: 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
