:root {
  color-scheme: light;
  --ink: #111714;
  --muted: #5e6862;
  --line: #dce2de;
  --line-strong: #cbd4ce;
  --surface: #ffffff;
  --surface-soft: #f7f9f7;
  --surface-tint: #f0f5f1;
  --green: #0b5a2a;
  --green-dark: #073f1e;
  --green-light: #e9f5ed;
  --warning: #9a5b00;
  --warning-light: #fff7e6;
  --danger: #9e2c2c;
  --danger-light: #fdf0f0;
  --shadow: 0 12px 32px rgb(17 23 20 / 7%);
  --radius: 10px;
  --sidebar: 248px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

:focus-visible {
  outline: 3px solid rgb(11 90 42 / 28%);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-large {
  min-height: auto;
  padding: 0;
  border: 0;
  font-size: 22px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #166536, #073e1d);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.sidebar nav {
  display: grid;
  gap: 4px;
  padding: 22px 14px;
}

.sidebar nav a {
  padding: 12px 14px;
  border-radius: 8px;
  color: #35413a;
  font-weight: 560;
}

.sidebar nav a:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.sidebar nav a.is-active {
  background: var(--surface-tint);
  color: var(--green-dark);
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.sidebar-footer p {
  display: grid;
  margin: 0 0 10px;
}

.sidebar-footer span {
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
  font-weight: 650;
}

.admin-main {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.topbar {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  color: var(--muted);
}

.page-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.breadcrumb {
  margin: 0 0 7px !important;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric,
.panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric {
  min-height: 160px;
  padding: 22px;
}

.metric-label {
  margin: 0;
  color: #3e4943;
  font-weight: 620;
}

.metric-value {
  display: block;
  margin: 20px 0 8px;
  font-size: 38px;
  font-weight: 520;
  line-height: 1;
  letter-spacing: -0.035em;
}

.metric-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.dot-success {
  background: #14802e;
}

.dot-warning {
  background: #da8d00;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.panel-heading {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.detail-card h2,
.action-panel h2 {
  margin: 0;
  font-size: 17px;
}

.health-pill,
.environment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #31513c;
  font-size: 12px;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #fbfcfb;
  color: #455149;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafcfb;
}

.empty-cell,
.empty-state {
  padding: 44px 20px;
  color: var(--muted);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef1ef;
  color: #4d5851;
  font-size: 11px;
  font-weight: 680;
}

.badge-active,
.badge-published,
.badge-success,
.badge-completed {
  background: var(--green-light);
  color: var(--green);
}

.badge-suspended,
.badge-paused,
.badge-running,
.badge-initializing,
.badge-initialized,
.badge-received,
.badge-processing,
.badge-refund_pending,
.badge-refund_processing {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-revoked,
.badge-failed,
.badge-denied,
.badge-payment_failed,
.badge-refund_failed,
.badge-refund_unknown {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-paid,
.badge-processed,
.badge-refunded {
  background: var(--green-light);
  color: var(--green);
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: #2f3b34;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.1;
}

.button:hover {
  border-color: #aebbb2;
  text-decoration: none;
}

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

.button-primary:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.button-warning {
  border-color: #e7bf74;
  background: var(--warning-light);
  color: #774700;
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button-danger-outline {
  border-color: #e2adad;
  color: var(--danger);
}

.button-block {
  width: 100%;
}

.button-small {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.button-quiet {
  border-color: transparent;
  background: transparent;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
}

textarea {
  resize: vertical;
}

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

.field label,
.inline-action label {
  color: #354039;
  font-size: 12px;
  font-weight: 680;
}

.field-help {
  margin: -2px 0 3px;
  color: var(--muted);
  font-size: 12px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto auto;
  gap: 10px;
  margin-bottom: 14px;
}

.payment-filter {
  grid-template-columns: minmax(260px, 1fr) 210px auto auto;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.pagination {
  display: flex;
  gap: 4px;
}

.pagination a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: #344039;
}

.pagination a.is-active {
  background: var(--green);
  color: #fff;
}

.key-link {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 650;
}

.row-action {
  font-weight: 650;
}

.form-panel {
  max-width: 900px;
  padding: 24px;
}

.stack-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-full,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(280px, 0.8fr);
  gap: 18px;
}

.detail-card,
.action-panel {
  padding: 22px;
}

.definition-list {
  margin: 18px 0 0;
}

.definition-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 1.2fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.definition-list div:last-child {
  border-bottom: 0;
}

.definition-list dt {
  color: var(--muted);
}

.definition-list dd {
  margin: 0;
  font-weight: 580;
  overflow-wrap: anywhere;
}

.action-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.inline-action {
  display: grid;
  gap: 6px;
}

.inline-action > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.action-panel form + form {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.audit-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.secret-reveal,
.info-banner,
.alert {
  margin-bottom: 18px;
  border: 1px solid #b9d5c2;
  border-radius: var(--radius);
  background: var(--green-light);
}

.secret-reveal {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}

.secret-reveal p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.secret-reveal code {
  padding: 10px;
  border-radius: 6px;
  background: rgb(255 255 255 / 68%);
  font-weight: 700;
}

.info-banner,
.alert {
  padding: 13px 16px;
}

.alert-danger {
  border-color: #e5b8b8;
  background: var(--danger-light);
  color: var(--danger);
}

.alert-warning {
  border-color: #e7bf74;
  background: var(--warning-light);
  color: #774700;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  padding: 11px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 650;
}

.tabs a.is-active {
  border-color: var(--green);
  color: var(--green);
}

.rollout {
  width: 70px;
  height: 6px;
  appearance: none;
  border: 0;
  vertical-align: middle;
}

.rollout::-webkit-progress-bar {
  border-radius: 99px;
  background: #e7ebe8;
}

.rollout::-webkit-progress-value {
  border-radius: 99px;
  background: var(--green);
}

.rollout::-moz-progress-bar {
  border-radius: 99px;
  background: var(--green);
}

.compact-form {
  display: grid;
  grid-template-columns: 62px 105px auto;
  gap: 6px;
}

.compact-form input,
.compact-form select {
  min-height: 30px;
  padding: 4px 6px;
}

details summary {
  color: var(--green);
  cursor: pointer;
}

pre {
  max-width: 520px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.operation-card {
  min-height: auto;
}

.operation-status {
  display: block;
  margin: 16px 0 8px;
  font-size: 22px;
}

.payment-metrics .metric-value {
  font-size: clamp(26px, 2.5vw, 36px);
}

.payment-detail-grid {
  margin-bottom: 18px;
}

.payment-trace {
  grid-template-columns: 1fr 1fr;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(50px, 9vw, 150px);
  padding: clamp(30px, 7vw, 100px);
  background:
    radial-gradient(circle at 10% 80%, rgb(11 90 42 / 10%), transparent 34%),
    #f8faf8;
}

.auth-brand {
  max-width: 560px;
}

.auth-brand h1 {
  margin: 34px 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.status-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.auth-panel {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.auth-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--line);
}

.auth-steps li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.auth-steps li.is-active,
.auth-steps li.is-complete {
  border-color: var(--green);
  color: var(--green);
}

.auth-steps li.is-active span,
.auth-steps li.is-complete span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.otp-input {
  font-size: 22px;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-align: center;
}

.back-link {
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 48px));
  padding: 13px 17px;
  border: 1px solid #b9d5c2;
  border-radius: 8px;
  background: #f1faf4;
  box-shadow: var(--shadow);
  color: var(--green-dark);
}

.environment {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 4;
  color: rgb(94 104 98 / 45%);
  font-size: 10px;
  pointer-events: none;
}

.error-page {
  max-width: 620px;
  margin: 12vh auto;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.error-page h1 {
  margin: 0 0 10px;
  font-size: 36px;
}

.error-page p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--muted);
}

.eyebrow {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.checkout-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 84%, rgb(11 90 42 / 9%), transparent 34%),
    #f8faf8;
}

.checkout-shell {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  grid-template-columns: minmax(280px, 0.85fr) minmax(480px, 1.15fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
  margin: 0 auto;
  padding: 48px 0;
}

.checkout-summary {
  position: sticky;
  top: 48px;
}

.checkout-summary h1,
.checkout-message h1 {
  margin: 24px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.checkout-summary .eyebrow {
  margin: 44px 0 0;
}

.checkout-price {
  margin: 0;
  color: var(--green);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.checkout-tax {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.checkout-merchant {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.checkout-points {
  display: grid;
  gap: 13px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.checkout-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344039;
  font-weight: 580;
}

.checkout-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-panel,
.checkout-message {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.checkout-panel {
  padding: clamp(24px, 4vw, 42px);
}

.checkout-panel h2 {
  margin: 0 0 5px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.checkout-form [hidden] {
  display: none !important;
}

.price-region {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.price-region legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price-option {
  position: relative;
  cursor: pointer;
}

.price-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.price-option span {
  display: grid;
  gap: 3px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.price-option b {
  color: var(--green);
  font-size: 20px;
}

.price-option small {
  color: var(--muted);
}

.price-option input:checked + span {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgb(11 90 42 / 12%);
}

.price-option input:focus-visible + span {
  outline: 3px solid rgb(11 90 42 / 22%);
  outline-offset: 2px;
}

.checkout-consents {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkout-consents label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: #3e4943;
  cursor: pointer;
  font-size: 12px;
}

.checkout-consents input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.checkout-message {
  grid-column: 1 / -1;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 64px);
}

.checkout-message > p:not(.eyebrow, .result-status, .checkout-note) {
  color: var(--muted);
}

.seller-disclosure {
  margin: 26px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.seller-disclosure h2,
.policy-section h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.seller-disclosure > p,
.policy-section p {
  color: #465149;
  line-height: 1.7;
}

.policy-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 24px 0;
  font-size: 12px;
}

.result-card {
  width: min(780px, 100%);
}

.result-status {
  margin: 22px 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 650;
}

.result-success {
  border-color: #b9d5c2;
  background: var(--green-light);
  color: var(--green-dark);
}

.result-warning {
  border-color: #e7bf74;
  background: var(--warning-light);
  color: #774700;
}

.result-danger {
  border-color: #e5b8b8;
  background: var(--danger-light);
  color: var(--danger);
}

.license-delivery {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #b9d5c2;
  border-radius: 10px;
  background: var(--green-light);
}

.license-delivery p {
  margin: 0;
  font-weight: 700;
}

.license-delivery code {
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 750;
}

.license-delivery small {
  color: var(--muted);
}

.refund-request {
  margin: 24px 0;
}

@media (max-width: 1100px) {
  .metric-grid,
  .operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .action-panel {
    max-width: none;
  }
}

@media (max-width: 800px) {
  :root {
    --sidebar: 0px;
  }

  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar .brand,
  .sidebar-footer {
    display: none;
  }

  .sidebar nav {
    display: flex;
    overflow-x: auto;
    padding: 9px 12px;
  }

  .sidebar nav a {
    flex: 0 0 auto;
    padding: 9px 11px;
  }

  .topbar {
    height: 52px;
    padding: 0 16px;
  }

  .page-content {
    padding: 20px 16px;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px;
  }

  .checkout-shell {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 0;
  }

  .checkout-summary {
    position: static;
    max-width: 760px;
  }

  .checkout-summary .eyebrow {
    margin-top: 28px;
  }

  .auth-brand h1 {
    margin-top: 24px;
    font-size: 38px;
  }
}

@media (max-width: 540px) {
  .metric-grid,
  .operation-grid,
  .stack-form,
  .filter-bar,
  .checkout-form {
    grid-template-columns: 1fr;
  }

  .price-region {
    grid-template-columns: 1fr;
  }

  .page-header,
  .table-footer,
  .secret-reveal {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header {
    display: flex;
  }

  .secret-reveal {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-card,
  .action-panel,
  .form-panel {
    padding: 18px;
  }

  .definition-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .topbar > span:last-child {
    display: none;
  }

  .checkout-shell {
    width: min(100% - 28px, 720px);
    align-items: start;
  }

  .checkout-summary h1,
  .checkout-message h1 {
    font-size: 36px;
  }

  .checkout-panel,
  .checkout-message {
    padding: 24px 18px;
  }
}
