:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f3f6fa;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #1859b7; }
.shell { width: min(1080px, calc(100% - 32px)); margin: 42px auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.brand { margin: 0; font-size: 25px; letter-spacing: -.02em; }
.subtle { color: #647089; font-size: 14px; }
.grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 22px; align-items: start; }
.card { background: #fff; border: 1px solid #dfe5ee; border-radius: 14px; padding: 22px; box-shadow: 0 8px 28px rgba(25, 39, 70, .06); }
.card h2 { margin: 0 0 18px; font-size: 18px; }
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 650; }
input { width: 100%; border: 1px solid #bdc8d8; border-radius: 9px; padding: 11px 12px; font: inherit; }
input:focus { outline: 3px solid rgba(26, 103, 210, .16); border-color: #1a67d2; }
button, .button { border: 0; border-radius: 9px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.primary { background: #1464d2; color: white; }
.secondary { background: #e9eef6; color: #25324a; }
.danger { background: #a52b2b; color: white; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.notice { border-radius: 9px; padding: 12px 14px; margin-bottom: 18px; background: #eaf3ff; color: #184b89; }
.notice.error { background: #fff0f0; color: #962626; }
.status { display: inline-block; border-radius: 999px; padding: 3px 9px; background: #eef1f5; font-size: 12px; font-weight: 700; }
.status.paid { color: #136d3c; background: #e5f6ec; }
.status.failed, .status.declined, .status.cancelled, .status.expired { color: #982828; background: #ffebeb; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border-bottom: 1px solid #e5eaf1; padding: 11px 8px; text-align: left; vertical-align: top; }
th { color: #5d687c; font-weight: 650; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.login { width: min(430px, calc(100% - 32px)); margin: 12vh auto; }
.detail { display: grid; grid-template-columns: 160px 1fr; gap: 10px; margin: 0; }
.detail dt { color: #667188; }
.detail dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 780px) { .grid { grid-template-columns: 1fr; } .detail { grid-template-columns: 1fr; gap: 3px; } .detail dd { margin-bottom: 8px; } }

