:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #77736d;
  --gold: #a98231;
  --gold-bright: #c9a227;
  --gold-pale: #f4ead2;
  --cream: #faf8f4;
  --canvas: #f2f1ef;
  --surface: #ffffff;
  --line: #dfdcd5;
  --line-soft: #ebe8e2;
  --ok: #1f6b45;
  --ok-bg: #e8f2ec;
  --warn: #79570c;
  --warn-bg: #fbf2df;
  --bad: #972f2f;
  --bad-bg: #f8ebeb;
  --info: #2b4a7a;
  --info-bg: #eaeff7;
  --focus: #8a6412;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card:
    0 1px 2px rgba(19, 17, 13, 0.05),
    0 8px 24px rgba(19, 17, 13, 0.045),
    0 24px 60px rgba(19, 17, 13, 0.04);
  --shadow-drawer:
    -2px 0 8px rgba(19, 17, 13, 0.05),
    -20px 0 54px rgba(19, 17, 13, 0.13);
}

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

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

p {
  line-height: 1.7;
}

[hidden] {
  display: none !important;
}

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

.clipboard-proxy {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

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

:focus-visible {
  outline: 3px solid rgba(169, 130, 49, 0.42);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--gold-bright);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
}

.brand__mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__name {
  max-width: 260px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.brand--inverse {
  color: #fff;
}

.brand--payment {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.brand--payment .brand__mark,
.brand--payment .brand__mark img {
  width: 70px;
  height: 70px;
}

.brand--payment .brand__name {
  max-width: none;
  font-size: 18px;
  letter-spacing: 0.24em;
}

.brand--payment .brand__name::after {
  display: block;
  width: 72px;
  height: 1px;
  margin: 10px auto 0;
  background: var(--gold);
  content: "";
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 4px 9px;
  color: #5b554c;
  background: #f5f2ec;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.5;
  text-transform: uppercase;
}

.environment-badge__dot {
  width: 6px;
  height: 6px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.12);
}

.environment-badge--inverse {
  color: #ccc6bc;
  background: #242424;
  border-color: #3a3a3a;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

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

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

.button--primary {
  color: #fff;
  background: #1c1c1c;
  border-color: #1c1c1c;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 6px 18px rgba(0, 0, 0, 0.12);
}

.button--primary:hover:not(:disabled) {
  background: #050505;
  border-color: #050505;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.13),
    0 10px 26px rgba(0, 0, 0, 0.16);
}

.button--primary:disabled {
  color: #aba8a2;
  background: #dedcd8;
  border-color: #dedcd8;
  box-shadow: none;
}

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

.button--secondary:hover:not(:disabled) {
  background: var(--cream);
  border-color: #cac5ba;
}

.button--full {
  width: 100%;
}

.button__loading {
  display: none;
  align-items: center;
  gap: 9px;
}

.is-loading .button__content {
  display: none;
}

.is-loading .button__loading {
  display: inline-flex;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.spinner--dark {
  color: var(--ink);
  border-color: #dad6ce;
  border-top-color: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.field {
  min-width: 0;
  margin-bottom: 17px;
}

.field > label,
.create-success > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.6;
}

.label-with-optional span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.required-mark {
  color: var(--gold);
}

.input-wrap {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid #d6d2ca;
  border-radius: var(--radius);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 63, 0.13);
}

.field.is-invalid .input-wrap {
  background: #fffafa;
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(151, 47, 47, 0.08);
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  line-height: 1.5;
}

.input-wrap input::placeholder {
  color: #a39f97;
  opacity: 1;
}

.input-wrap select {
  padding-right: 28px;
  appearance: none;
}

.input-wrap--select::after {
  position: absolute;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #7c776f;
  border-bottom: 1.5px solid #7c776f;
  content: "";
  pointer-events: none;
  transform: rotate(45deg) translateY(-2px);
}

.input-wrap--amount > span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.input-wrap--amount input {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.input-icon {
  flex: 0 0 auto;
  color: #aaa59d;
}

.field-error,
.field-hint {
  min-height: 0;
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
}

.field-error {
  display: none;
  color: var(--bad);
  font-weight: 650;
}

.field.is-invalid .field-error,
.field-error:not(:empty) {
  display: block;
}

.field-hint {
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  align-items: start;
}

.field-grid--postal {
  grid-template-columns: 1.4fr 1fr;
}

.notice {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.6;
}

.notice--warning {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: #ead6a8;
}

/* Payment page */

.page--payment {
  background:
    radial-gradient(circle at 50% 0%, rgba(176, 141, 63, 0.09), transparent 34rem),
    var(--canvas);
}

.payment-stage {
  width: 100%;
  min-height: 100vh;
  padding: 48px 24px 72px;
}

.payment-card {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 34px 36px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.payment-card__environment {
  position: absolute;
  top: 18px;
  right: 18px;
}

.payment-brand {
  display: flex;
  justify-content: center;
  padding: 4px 130px 0;
}

.payment-intro {
  margin: 20px auto 25px;
  text-align: center;
}

.payment-intro h1 {
  margin: 0 0 5px;
  font-size: clamp(29px, 6vw, 34px);
  font-weight: 720;
}

.payment-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.checkout-order {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkout-order__copy {
  min-width: 0;
}

.checkout-order h2 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 680;
}

.checkout-order p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.checkout-order p strong {
  color: var(--ink);
}

.product-thumbnail {
  position: relative;
  width: 82px;
  height: 60px;
  overflow: hidden;
  background: linear-gradient(160deg, #8b5a32 0%, #6b4022 58%, #462814 100%);
  border: 1px solid rgba(66, 36, 16, 0.7);
  border-radius: 5px;
  box-shadow:
    inset 0 2px 7px rgba(255, 255, 255, 0.18),
    inset 0 -5px 11px rgba(0, 0, 0, 0.32),
    0 4px 9px rgba(76, 41, 19, 0.16);
}

.product-thumbnail__lid {
  position: absolute;
  inset: 8px 8px 21px;
  background: linear-gradient(180deg, #9b693c, #744523);
  border: 1px solid rgba(42, 24, 12, 0.42);
  border-radius: 3px;
}

.product-thumbnail__dial {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 13px;
  height: 13px;
  background: #eee8db;
  border: 1.5px solid #9a7748;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #d6c9b2;
  transform: translateX(-50%);
}

.checkout-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  margin: 0 0 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkout-amount dt {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 680;
}

.checkout-amount dd {
  margin: 0;
  text-align: right;
}

.checkout-amount dd strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.checkout-amount dd span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.payment-form {
  margin: 0;
}

.form-section {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-section--billing {
  padding-top: 24px;
  margin-top: 7px;
  border-top: 1px solid var(--line-soft);
}

.form-section__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.form-section legend {
  display: block;
  padding: 0;
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 720;
  line-height: 1.2;
}

.form-section__subline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.card-schemes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 1px;
}

.card-scheme {
  display: inline-flex;
  height: 21px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: #fff;
  border-radius: 3px;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
}

.card-scheme--visa {
  background: #1a1f71;
}

.card-scheme--amex {
  background: #006fcf;
}

.card-scheme--discover {
  background: #ed6b23;
}

.card-scheme--mastercard {
  gap: 0;
  padding: 0 5px;
  background: #f7f6f3;
  border: 1px solid var(--line);
}

.card-scheme--mastercard i {
  width: 13px;
  height: 13px;
  background: #eb001b;
  border-radius: 50%;
}

.card-scheme--mastercard i + i {
  margin-left: -5px;
  background: #f79e1b;
  opacity: 0.93;
}

.input-wrap--card input {
  padding-right: 84px;
  font-family: var(--mono);
  letter-spacing: 0.035em;
}

.card-brand {
  position: absolute;
  right: 11px;
  display: inline-flex;
  height: 25px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  color: #65615a;
  background: #f6f4f0;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.card-brand__glyph {
  width: 13px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.card-brand[data-brand="visa"] {
  color: #fff;
  background: #1a1f71;
  border-color: #1a1f71;
}

.card-brand[data-brand="mastercard"] {
  color: #fff;
  background: #c9182b;
  border-color: #c9182b;
}

.card-brand[data-brand="amex"] {
  color: #fff;
  background: #006fcf;
  border-color: #006fcf;
}

.card-brand[data-brand="discover"] {
  color: #fff;
  background: #e85c18;
  border-color: #e85c18;
}

.avs-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  background: #f7f5f0;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  font-size: 11.5px;
}

.avs-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--gold);
}

.avs-note p {
  margin: 0;
  line-height: 1.65;
}

.avs-note strong {
  color: var(--ink);
}

.consent-section {
  padding: 22px 0 0;
  margin: 5px 0 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.check-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 9px;
}

.check-field input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.check-field label {
  font-size: 12.5px;
  line-height: 1.65;
}

.check-field a {
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.consent-section > .field-error {
  margin: -5px 0 8px 30px;
}

.payment-submit {
  margin-top: 17px;
}

.button--pay {
  width: 100%;
  min-height: 51px;
  padding: 13px 20px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.button--pay .button__content {
  align-items: center;
  gap: 8px;
}

.submit-status {
  min-height: 0;
  margin: 9px 0 0;
  color: var(--bad);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
  text-align: center;
}

.submit-status:empty {
  margin: 0;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.secure-note svg {
  flex: 0 0 auto;
}

.payment-meta {
  display: grid;
  gap: 4px;
  padding-top: 18px;
  margin-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.payment-meta strong {
  color: var(--ink-soft);
  font-weight: 650;
}

/* Login */

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.85fr);
}

.login-story {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px clamp(42px, 6vw, 92px);
  color: #fff;
  background:
    radial-gradient(circle at 25% 30%, rgba(201, 162, 39, 0.12), transparent 33rem),
    #161616;
}

.login-story__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.login-story__content {
  width: min(100%, 720px);
  padding: 80px 0;
}

.login-story__content h1 {
  max-width: 660px;
  margin: 0 0 25px;
  color: #fff;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.login-story__content > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  color: #c8c3b9;
  font-size: 17px;
  line-height: 1.8;
}

.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 58px;
  background: #37342f;
  border: 1px solid #37342f;
  border-radius: var(--radius);
  overflow: hidden;
}

.login-proof-grid > div {
  min-height: 112px;
  padding: 23px;
  background: #1d1d1d;
}

.login-proof-grid strong,
.login-proof-grid span {
  display: block;
}

.login-proof-grid strong {
  margin-bottom: 5px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 17px;
}

.login-proof-grid span {
  color: #aaa59c;
  font-size: 11.5px;
  line-height: 1.6;
}

.login-story__footnote {
  margin: 0;
  color: #77736c;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  padding: 64px clamp(38px, 5vw, 80px);
  background: var(--cream);
  place-items: center;
}

.login-panel__inner {
  width: min(100%, 430px);
}

.login-panel h2 {
  margin: 0 0 8px;
  font-size: 38px;
  font-weight: 680;
}

.login-panel__intro {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form .field {
  margin-bottom: 19px;
}

.button--auth {
  width: 100%;
  min-height: 49px;
  margin-top: 5px;
}

.auth-error {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 13px;
  margin: 0 0 16px;
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid #e9cccc;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.auth-error svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.login-help {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 22px;
  margin-top: 27px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.login-help > svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--gold);
}

.login-help p,
.login-help strong,
.login-help span {
  display: block;
  margin: 0;
}

.login-help strong {
  color: var(--ink);
  font-size: 12px;
}

.login-help span {
  font-size: 11.5px;
}

/* Small legal/support pages */

.page--legal {
  background:
    radial-gradient(circle at 50% 0%, rgba(176, 141, 63, 0.1), transparent 32rem),
    var(--canvas);
}

.legal-shell {
  display: grid;
  min-height: 100vh;
  padding: 72px 24px;
  place-items: center;
}

.legal-card {
  width: min(100%, 720px);
  padding: clamp(30px, 6vw, 54px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 680;
}

.legal-card p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.legal-back:hover {
  color: var(--ink);
}

/* Admin */

.admin-app {
  min-height: 100vh;
  background: var(--canvas);
}

.admin-topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(24px, 4vw, 64px);
  color: #fff;
  background: #161616;
  border-bottom: 1px solid #2e2e2e;
}

.admin-brand {
  text-decoration: none;
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-account__name {
  margin-left: 4px;
  font-size: 12.5px;
  font-weight: 650;
}

.admin-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  color: var(--gold-bright);
  background: #2c2c2c;
  border: 1px solid #484848;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  place-items: center;
}

.role-chip {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.role-chip--administrator {
  color: var(--gold-bright);
  border: 1px solid var(--gold);
}

.role-chip--agent {
  color: #c9c4bc;
  background: #2f2f2f;
  border: 1px solid #454545;
}

.role-chip--super-admin {
  color: #161616;
  background: var(--gold-bright);
}

.logout-form {
  display: flex;
  margin: 0 0 0 2px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  place-items: center;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--line);
}

.icon-button--inverse {
  color: #aaa69f;
}

.icon-button--inverse:hover {
  color: #fff;
  background: #282828;
  border-color: #424242;
}

.admin-tabs {
  display: flex;
  min-height: 49px;
  gap: 2px;
  align-items: stretch;
  padding: 0 clamp(24px, 4vw, 64px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.admin-tab--active {
  color: var(--ink);
  border-bottom-color: var(--gold);
  font-weight: 750;
}

.admin-tab--disabled {
  cursor: default;
}

.admin-main {
  width: min(100%, 1440px);
  padding: 36px clamp(24px, 4vw, 64px) 72px;
  margin: 0 auto;
}

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

.admin-heading h1 {
  margin: 0 0 5px;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: 680;
}

.admin-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-callout {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  background: #f7f5f0;
  border: 1px solid #e3ddd0;
  border-radius: var(--radius);
  font-size: 12px;
}

.admin-callout svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--gold);
}

.admin-callout p {
  margin: 0;
  line-height: 1.6;
}

.admin-callout strong {
  color: var(--ink);
}

.admin-callout--compact {
  margin: 5px 0 0;
}

.admin-callout--warning {
  margin: 17px 0 0;
  color: var(--warn);
  background: var(--warn-bg);
  border-color: #e8d6aa;
}

.admin-notice {
  padding: 12px 15px;
  margin-bottom: 20px;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid #cce2d5;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 650;
}

.admin-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.035),
    0 8px 24px rgba(0, 0, 0, 0.025);
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) auto;
  gap: 10px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.search-control,
.select-control {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #aaa59d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-control:focus-within,
.select-control:focus-within {
  color: var(--ink-soft);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 63, 0.11);
}

.search-control input,
.select-control select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-control input::placeholder {
  color: #97928a;
}

.select-control {
  position: relative;
}

.select-control select {
  padding-right: 18px;
  appearance: none;
}

.select-control::after {
  position: absolute;
  right: 13px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: rotate(45deg) translateY(-2px);
}

.filter-count {
  min-width: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: right;
}

.table-scroller {
  overflow-x: auto;
}

.links-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.links-table th {
  padding: 12px 14px 9px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.links-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.55;
  vertical-align: middle;
}

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

.link-row {
  transition: background-color 140ms ease;
}

.link-row:hover {
  background: #fdfcf9;
}

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
}

.table-primary,
.table-secondary {
  display: block;
}

.table-primary {
  max-width: 230px;
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-secondary {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.table-amount {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.table-muted {
  color: var(--muted);
  font-size: 11.5px;
}

.status-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}

.status-pill--pending {
  color: var(--info);
  background: var(--info-bg);
}

.status-pill--paid {
  color: var(--ok);
  background: var(--ok-bg);
}

.status-pill--processing {
  color: var(--warn);
  background: var(--warn-bg);
}

.status-pill--declined {
  color: var(--bad);
  background: var(--bad-bg);
}

.status-pill--expired,
.status-pill--cancelled {
  color: #696762;
  background: #f0efec;
}

.table-actions > div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.button--table {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--ink-soft);
  background: #fff;
  border-color: var(--line);
  font-size: 10.5px;
  white-space: nowrap;
}

.button--table:hover {
  color: var(--ink);
  background: var(--cream);
  border-color: #cbc6bd;
}

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

.empty-table-row td {
  padding: 0;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 72px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  color: var(--gold);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
}

.empty-state strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
}

.empty-state span:last-child {
  font-size: 11.5px;
}

.filtered-empty {
  display: grid;
  justify-items: center;
  padding: 64px 24px;
  color: var(--muted);
  text-align: center;
}

.filtered-empty strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(11, 10, 8, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.side-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  display: grid;
  width: min(92vw, 500px);
  height: 100dvh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-drawer);
  transform: translateX(104%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.side-drawer.is-open {
  transform: translateX(0);
}

.side-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 24px 21px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.side-drawer__header h2 {
  margin: 0 0 4px;
  font-size: 23px;
  font-weight: 680;
}

.side-drawer__header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.side-drawer__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 23px 24px 32px;
}

.side-drawer__footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  background: #fcfcfb;
  border-top: 1px solid var(--line);
}

.side-drawer__footer--detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.create-confirmation h3,
.create-success h3 {
  margin: 0 0 5px;
  font-size: 25px;
  font-weight: 680;
}

.create-confirmation > p:not(.eyebrow),
.create-success > p:not(.eyebrow) {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 12px;
}

.confirmation-list,
.detail-list {
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

.confirmation-list > div,
.detail-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.confirmation-list dt,
.detail-list dt {
  color: var(--muted);
  font-size: 11px;
}

.confirmation-list dd,
.detail-list dd {
  max-width: 68%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.confirmation-list > div:first-child dd {
  font-family: var(--serif);
  font-size: 18px;
}

.create-success {
  padding-top: 24px;
  text-align: center;
}

.create-success__icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid #c8dfd1;
  border-radius: 50%;
  place-items: center;
}

.create-success > label {
  margin-top: 25px;
  text-align: left;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.copy-field input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10px;
  outline: 0;
}

.detail-loading {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px;
  margin-bottom: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-hero > div span,
.detail-hero > div strong {
  display: block;
}

.detail-hero > div span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-hero > div strong {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.2;
}

.attempt-section {
  margin-top: 27px;
}

.attempt-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.attempt-section__heading h3 {
  margin: 0;
  font-size: 17px;
}

.attempt-section__heading span {
  color: var(--muted);
  font-size: 10px;
}

.attempt-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.attempt-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 11px;
  padding-bottom: 18px;
}

.attempt-item:not(:last-child)::before {
  position: absolute;
  top: 11px;
  bottom: -2px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.attempt-item__dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  background: var(--muted);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.attempt-item--approved .attempt-item__dot {
  background: var(--ok);
}

.attempt-item--declined .attempt-item__dot,
.attempt-item--error .attempt-item__dot {
  background: var(--bad);
}

.attempt-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.attempt-item__top strong {
  font-size: 11.5px;
  text-transform: capitalize;
}

.attempt-item__top time {
  color: var(--muted);
  font-size: 9.5px;
}

.attempt-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.attempt-empty {
  padding: 22px;
  color: var(--muted);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 11px;
  text-align: center;
}

.drawer-error {
  padding: 12px 13px;
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid #e7cbcb;
  border-radius: var(--radius);
  font-size: 12px;
}

.toast-region {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  display: grid;
  width: min(calc(100vw - 48px), 360px);
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  color: #fff;
  background: #1c1c1c;
  border: 1px solid #353535;
  border-radius: var(--radius);
  box-shadow:
    0 3px 9px rgba(0, 0, 0, 0.14),
    0 14px 35px rgba(0, 0, 0, 0.16);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--error {
  background: #702020;
  border-color: #8f3434;
}

/* Terminal states */

.page--terminal {
  background: #161616;
}

.terminal-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  padding: 30px clamp(24px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 50% 43%, rgba(176, 141, 63, 0.13), transparent 31rem),
    #161616;
}

.terminal-header,
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.terminal-card {
  width: min(100%, 580px);
  align-self: center;
  justify-self: center;
  padding: 46px 46px 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9d5ce;
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.14),
    0 20px 70px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.terminal-card__icon {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid #c7ddcf;
  border-radius: 50%;
  place-items: center;
}

.terminal-card__icon svg {
  width: 48px;
  height: 48px;
}

.terminal-shell--expired .terminal-card__icon {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: #e7d4a5;
}

.terminal-shell--processing .terminal-card__icon {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: #e7d4a5;
}

.terminal-shell--cancelled .terminal-card__icon,
.terminal-shell--not_found .terminal-card__icon {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: #e9cccc;
}

.terminal-card h1 {
  margin: 0 0 13px;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 680;
}

.terminal-card__message {
  max-width: 440px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.receipt {
  margin: 0 0 27px;
  border-top: 1px solid var(--line);
}

.receipt > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.receipt dt {
  color: var(--muted);
  font-size: 11px;
}

.receipt dd {
  max-width: 70%;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.button--terminal {
  min-width: min(100%, 240px);
}

.terminal-card__footnote {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.terminal-footer {
  color: #8f8b84;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
    padding: 34px 32px 48px;
  }

  .login-story__content {
    padding: 80px 0 64px;
  }

  .login-story__content h1 {
    font-size: clamp(44px, 10vw, 68px);
  }

  .login-panel {
    min-height: auto;
    padding: 72px 32px;
  }

  .admin-account__name {
    display: none;
  }

  .admin-filters {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 210px);
  }

  .filter-count {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .table-scroller {
    overflow: visible;
  }

  .links-table {
    min-width: 0;
  }

  .links-table thead {
    display: none;
  }

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

  .link-row {
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }

  .links-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 7px 0;
    border: 0;
  }

  .links-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .table-primary {
    max-width: none;
    white-space: normal;
  }

  .table-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr !important;
    padding-top: 13px !important;
  }

  .table-actions::before {
    display: none;
  }

  .table-actions > div {
    justify-content: flex-start;
  }

  .empty-table-row {
    display: block !important;
  }

  .empty-table-row td::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .payment-stage {
    padding: 14px 12px 28px;
  }

  .payment-card {
    padding: 26px 20px 22px;
  }

  .payment-card__environment {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
  }

  .payment-brand {
    padding: 0;
  }

  .brand--payment .brand__mark,
  .brand--payment .brand__mark img {
    width: 62px;
    height: 62px;
  }

  .brand--payment .brand__name {
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  .checkout-order {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .product-thumbnail {
    width: 70px;
    height: 54px;
  }

  .checkout-order h2 {
    font-size: 18px;
  }

  .checkout-amount dt {
    font-size: 17px;
  }

  .checkout-amount dd strong {
    font-size: 25px;
  }

  .form-section__heading {
    display: grid;
    gap: 11px;
  }

  .card-schemes {
    justify-content: flex-start;
  }

  .field-grid,
  .field-grid--postal {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .field-grid--postal > div[aria-hidden="true"] {
    display: none;
  }

  .admin-topbar {
    padding: 12px 17px;
  }

  .admin-topbar .brand__name {
    display: none;
  }

  .admin-topbar .brand__mark,
  .admin-topbar .brand__mark img {
    width: 38px;
    height: 38px;
  }

  .role-chip {
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-tabs {
    padding: 0 10px;
  }

  .admin-main {
    padding: 28px 14px 52px;
  }

  .admin-heading {
    display: grid;
    gap: 18px;
  }

  .admin-heading .button {
    width: 100%;
  }

  .admin-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .filter-count {
    grid-column: auto;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .links-table td {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .side-drawer {
    width: 100%;
    max-width: none;
  }

  .side-drawer__header {
    padding: 20px 18px 17px;
  }

  .side-drawer__body {
    padding: 20px 18px 28px;
  }

  .side-drawer__footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .side-drawer__footer--detail {
    grid-template-columns: 1fr;
  }

  .toast-region {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: calc(100vw - 28px);
  }

  .login-story,
  .login-panel {
    padding-right: 22px;
    padding-left: 22px;
  }

  .login-story__top {
    align-items: flex-start;
  }

  .login-story__top .brand__name {
    display: none;
  }

  .login-story__content {
    padding: 64px 0 50px;
  }

  .login-story__content h1 {
    font-size: 45px;
  }

  .login-proof-grid {
    grid-template-columns: 1fr;
  }

  .login-proof-grid > div {
    min-height: auto;
  }

  .terminal-shell {
    padding: 22px 16px;
  }

  .terminal-header .brand__name {
    display: none;
  }

  .terminal-card {
    padding: 36px 22px 30px;
    margin: 35px 0;
  }

  .terminal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .checkout-order {
    grid-template-columns: 1fr;
  }

  .product-thumbnail {
    width: 82px;
    height: 60px;
  }

  .checkout-amount {
    align-items: flex-end;
  }

  .checkout-amount dt {
    max-width: none;
    white-space: nowrap;
  }

  .input-wrap--card input {
    padding-right: 50px;
    font-size: 12px;
  }

  .card-brand__name {
    display: none;
  }

  .card-brand {
    padding: 0 6px;
  }

  .payment-meta strong {
    display: block;
  }

  .admin-account {
    gap: 6px;
  }

  .role-chip {
    max-width: 85px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 8px;
  }

  .links-table td {
    grid-template-columns: 80px minmax(0, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .environment-badge__dot,
  .status-pill i,
  .attempt-item__dot {
    border: 1px solid currentColor;
  }

  .product-thumbnail {
    border: 2px solid CanvasText;
  }
}
