.demo-payment-page.krepak-addon {
  display: grid;
  width: min(100%, 36rem);
  gap: 1.15rem;
  margin: clamp(1rem, 5vh, 3rem) auto;
  padding-inline: 1rem;
  background: transparent;
}
.demo-payment-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font: 500 1.5rem/1.1 "Playfair Display", Georgia, serif;
}
.demo-payment-card {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1rem, 5vw, 2rem);
}
.demo-payment-card :is(h1, h2, p) { margin: 0; }
.demo-payment-card h1 { font-size: clamp(1.9rem, 7vw, 2.9rem); }
.demo-payment-card h2 { font-size: clamp(1.1rem, 4vw, 1.35rem); }
.demo-payment-summary,
.demo-payment-card-example,
.demo-payment-receipt {
  display: grid;
  width: 100%;
  gap: .45rem;
  padding: .85rem;
  border: 1px solid var(--krepak-line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.demo-payment-card-example { background: #fbfcfa; }
.demo-payment-card-example span { font-size: .85rem; color: var(--krepak-muted); }
.demo-payment-card-example strong { font-variant-numeric: tabular-nums; letter-spacing: .09em; }
.demo-payment-card-example small { color: var(--krepak-muted); }
.demo-payment-receipt { background: #e7f0df; }
.demo-payment-card > .wide { width: 100%; }
.demo-payment-card [role="alert"] { overflow-wrap: anywhere; }

.app-shell.admin-theme {
  --ink: #193629;
  --muted: #495f53;
  --olive: #24543f;
  --olive-soft: #e2eddc;
  --line: #d4decd;
  --surface: #fff;
  --paper: #fbfcfa;
  --cream: #f6f9f4;
  --clay: #965744;
  color: var(--ink);
  background: var(--cream);
}
.admin-theme > .sidebar {
  background: #f5f9f2;
  border-inline-end-color: var(--line);
}
.admin-theme .sidebar .sidebar-quote {
  color: var(--ink);
  background: var(--olive-soft);
}
.admin-theme .nav-item { color: var(--muted); border-radius: 12px; }
.admin-theme .nav-item:is(:hover, .active) { color: var(--ink); background: var(--olive-soft); }
.admin-theme .brand-caption, .admin-theme .sidebar-label { color: var(--muted); }
.admin-theme .reference-header, .admin-theme .topbar {
  background: var(--surface);
  border-block-end-color: var(--line);
}
.admin-theme .admin-workspace-tabs {
  background: #edf3e9;
  border-color: var(--line);
  border-radius: 13px;
}
.admin-theme .admin-workspace-tabs button {
  color: var(--muted);
  background: transparent;
  border-radius: 10px;
}
.admin-theme .admin-workspace-tabs .active {
  color: #fff;
  background: var(--olive);
}
.admin-theme :is(.card, .admin-management, .course-library-card, .course-card-editor-preview, .lesson-editor-shell) {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 6px 18px #263d2d10;
}
.admin-theme :is(.management-row, .payment-journal-event, .payment-journal-order) {
  border-color: var(--line);
}
.admin-theme :is(.course-card-form, .admin-management, .analytics-page, .course-library-create, .inspector-field)
  :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="color"], [type="range"]) {
  color: var(--ink);
  background-color: #fbfcfa;
  border-color: var(--line);
}
.admin-theme .primary-button {
  color: #fff;
  background: linear-gradient(165deg, #407455, var(--olive) 56%, #1a4331);
  border-color: #173e2d;
  border-radius: 11px;
}
.admin-theme .secondary-button {
  color: var(--olive);
  background: #edf3e9;
  border-color: var(--line);
  border-radius: 11px;
}
.admin-theme :is(button, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
