.desktop-admin {
  width: min(100% - 2rem, 75rem);
  margin-inline: auto;
}

.app-admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}

.desktop-admin {
  --app-ink: #123042;
  --app-muted: #405763;
  --app-border: #e2d8ce;
  --app-accent: #773651;
  color: var(--app-ink);
  padding-block: clamp(1.35rem, 3vw, 3rem) 3rem;
  line-height: 1.72;
}

.desktop-admin h1 {
  font-size: clamp(2rem, 5vw, 3.45rem);
  line-height: 1.13;
  margin: 0 0 1rem;
}

.desktop-admin h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.45;
  margin: 0 0 1rem;
}

.desktop-admin h3 { margin: 0 0 .35rem; }
.desktop-admin p { margin: 0 0 .85rem; }
.desktop-admin p:last-child { margin-bottom: 0; }
/* The image and typography in this preview are from the desktop app cover. */
.app-cover-preview {
  isolation: isolate;
  overflow: hidden;
  display: grid !important;
  place-items: center;
  background: #240c10;
}
.app-cover-curtain, .app-cover-preview::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.app-cover-curtain { object-fit: cover; object-position: center; }
.app-cover-preview::after {
  content: "";
  background: radial-gradient(ellipse at center, #20060eb0, #23090e40 54%, transparent 76%),
    linear-gradient(180deg, #2110130f, #240b116b 62%, #16070be0);
}
.app-cover-content { padding: .85rem; text-align: center; }
.app-cover-logo {
  width: clamp(2.5rem, 6vw, 4.25rem);
  height: auto;
  margin: 0 auto .85rem;
  border-radius: 50%;
  box-shadow: 0 6px 16px #13060ba8;
}
.app-cover-grade {
  margin: 0 0 .4rem;
  color: #f6d4aa;
  font: 750 clamp(.53rem, 1.1vw, .75rem)/1.35 system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.app-cover-title {
  margin: 0;
  color: #fff9ef;
  font: 500 clamp(1.8rem, 4.1vw, 3.9rem)/1.07 Georgia, "Times New Roman", serif;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.app-cover-title em { color: #f6d4aa; }
.app-activation-section { max-inline-size: 50rem; }
@media (max-width: 900px) {
  .desktop-app-page #primary-nav[data-desktop-menu-open] {
    display: flex;
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
  }
}

.app-button, .desktop-admin a.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  background: var(--app-accent);
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.app-button:hover { filter: brightness(1.12); }
.app-button:disabled { cursor: wait; opacity: .65; }
.desktop-admin a { color: var(--app-accent); text-underline-offset: .2em; }
.desktop-admin :focus-visible { outline: 3px solid #ac6a0b; outline-offset: 3px; }

.app-form-row {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-admin-section {
  background: #fffdfa;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  padding: clamp(1rem, 2.5vw, 1.65rem);
}
.app-activation form { display: grid; gap: .95rem; width: 100%; margin-top: 1.2rem; }
.app-activation label, .desktop-admin label { display: grid; gap: .3rem; font-weight: 680; min-width: 0; }
.app-activation input, .app-activation select, .app-activation textarea, .desktop-admin textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .5rem .65rem;
  border: 1px solid var(--theme-line, #b8c1c7);
  border-radius: .55rem;
  background: #fff;
  color: var(--theme-ink, var(--app-ink));
  font: inherit;
}
.app-activation textarea, .desktop-admin textarea { resize: vertical; overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.app-payment summary { cursor: pointer; color: var(--theme-teal); font-weight: 700; }
.app-pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: .65rem; }
.app-pay-grid figure { text-align: center; margin: 0; }
.app-pay-grid img { width: 100%; max-width: 12rem; height: auto; }
.app-feedback { padding: .65rem .85rem; background: #edf6f4; border-radius: .55rem; }
p.app-error { color: #8d2139; background: #fceef0; }
.app-admin-section { margin-top: 1rem; }
.app-admin-section dt { color: var(--app-muted); font-weight: 650; }
.app-admin-section dd { margin: 0; overflow-wrap: anywhere; }
.app-admin-list { display: grid; gap: .6rem; padding: 0; list-style: none; }
.app-admin-list a {
  display: grid;
  gap: .15rem;
  padding: .75rem 1rem;
  background: #fffdfa;
  border: 1px solid var(--app-border);
  border-radius: .65rem;
  overflow-wrap: anywhere;
}
.app-admin-list span { color: var(--app-muted); }
.app-admin-actions { margin-top: 1rem; }
.app-admin-slip { display: block; max-width: 100%; max-height: 38rem; margin-top: 1rem; object-fit: contain; }

@media (max-width: 45rem) {
  .app-form-row { grid-template-columns: minmax(0, 1fr); }
}
