/*
 * Admin pages: pastel raffle tickets. Each section is a ticket with a stub
 * (one label, one number) torn off along a perforation. Colours and fonts
 * come from /theme.css, so every campaign theme restyles these pages too.
 * Mobile first: the stub sits on top on phones and moves left from 36rem.
 */
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('gabarito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('gabarito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink-soft: color-mix(in srgb, var(--text) 22%, transparent);
  --ink-line: color-mix(in srgb, var(--text) 32%, transparent);
  /* Input borders: at least 3:1 against the field (WCAG 1.4.11). */
  --field-line: color-mix(in srgb, var(--text) 55%, var(--lift));
  --shadow: 0 1px 2px color-mix(in srgb, var(--shade) 10%, transparent),
    0 8px 20px -6px color-mix(in srgb, var(--shade) 22%, transparent);
  --radius: 1.1rem;
  --notch: 1.25rem;
  color-scheme: var(--scheme);
  accent-color: var(--accent);
  scrollbar-color: var(--ink-line) transparent;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

body.admin {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  caret-color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}

/* ── Page frame ─────────────────────────────────────────────────────────── */

main,
.topbar {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

main {
  display: grid;
  gap: 1.25rem;
  padding-block: 0.5rem 4rem;
}

main.narrow {
  width: min(100% - 2rem, 28rem);
  padding-top: clamp(2rem, 12vh, 7rem);
}

.narrow .topbar {
  width: 100%;
  margin-inline: 0;
  padding: 0 0 0.5rem;
}

/* The action (Sign out) stays beside the heading, lined up with its first line, at every width. */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-block: 1.75rem 1rem;
}

.topbar > form {
  flex: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-logo {
  height: 3rem;
  max-width: 8rem;
  object-fit: contain;
}

.brand .muted {
  margin: 0.15rem 0 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

p {
  margin: 0 0 0.85rem;
  max-width: 68ch;
}

a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--accent);
}

a:hover {
  text-decoration-color: currentColor;
}

code {
  font-size: 0.9em;
  padding: 0.05em 0.35em;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Next step ──────────────────────────────────────────────────────────── */

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 2px dashed var(--ink-line);
  background: color-mix(in srgb, var(--bg) 35%, var(--lift));
}

.next p {
  margin: 0;
  flex: 1 1 22rem;
  font-size: 1.05rem;
}

/* ── Tickets ────────────────────────────────────────────────────────────── */

.tickets {
  display: grid;
  gap: 1.25rem;
  /* The shadow sits on the group, so it follows the notches cut into each ticket. */
  filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--shade) 10%, transparent))
    drop-shadow(0 6px 10px color-mix(in srgb, var(--shade) 13%, transparent));
}

/*
 * A ticket: the stub is the full-colour stock, the body a lighter tone of it.
 * Two half-circle notches are cut (masked) where the perforation meets the edge.
 * Phones: stub on top, a fixed height so the notches know where the seam is.
 */
.ticket {
  --paper: var(--ticket-1);
  --seam: 3.75rem;
  --notch-r: calc(var(--notch) / 2);
  position: relative;
  display: grid;
  grid-template-rows: var(--seam) 1fr;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--paper);
  -webkit-mask:
    radial-gradient(circle at 0 var(--seam), #0000 var(--notch-r), #000 calc(var(--notch-r) + 0.5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--seam), #0000 var(--notch-r), #000 calc(var(--notch-r) + 0.5px)) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 var(--seam), #0000 var(--notch-r), #000 calc(var(--notch-r) + 0.5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--seam), #0000 var(--notch-r), #000 calc(var(--notch-r) + 0.5px)) right / 51% 100% no-repeat;
}

.tickets > .ticket:nth-child(5n + 2) {
  --paper: var(--ticket-2);
}
.tickets > .ticket:nth-child(5n + 3) {
  --paper: var(--ticket-3);
}
.tickets > .ticket:nth-child(5n + 4) {
  --paper: var(--ticket-4);
}
.tickets > .ticket:nth-child(5n + 5) {
  --paper: var(--ticket-5);
}

/* The stub: one label and one number, separated by the perforation. */
.stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0 1.25rem;
}

.stub-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stub-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ticket-body {
  min-width: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  border-top: 3px dotted var(--ink-line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: color-mix(in srgb, var(--paper) 50%, var(--lift));
}

.ticket-body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 36rem) {
  .ticket {
    --seam: calc(8.5rem + 1.5px);
    grid-template-rows: none;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    -webkit-mask:
      radial-gradient(circle at var(--seam) 0, #0000 var(--notch-r), #000 calc(var(--notch-r) + 0.5px)) top / 100% 51% no-repeat,
      radial-gradient(circle at var(--seam) 100%, #0000 var(--notch-r), #000 calc(var(--notch-r) + 0.5px)) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle at var(--seam) 0, #0000 var(--notch-r), #000 calc(var(--notch-r) + 0.5px)) top / 100% 51% no-repeat,
      radial-gradient(circle at var(--seam) 100%, #0000 var(--notch-r), #000 calc(var(--notch-r) + 0.5px)) bottom / 100% 51% no-repeat;
  }

  .stub {
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.25rem 0.75rem;
    text-align: center;
  }

  .stub-value {
    font-size: 2.6rem;
  }

  .stub-value.word {
    font-size: 1.75rem;
  }

  .ticket-body {
    padding: 1.5rem 1.75rem 1.6rem;
    border-top: 0;
    border-left: 3px dotted var(--ink-line);
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}

@media (min-width: 64rem) {
  .tickets:not(.solo) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tickets .ticket.wide {
    grid-column: 1 / -1;
  }

  /* On a campaign, Draw takes the whole middle row; Check and Delete share the row below. */
  .tickets .ticket.middle-row {
    grid-row: 2;
  }
}

.tickets > .ticket.danger {
  /* Derived from the theme's ground, tinted with the danger red. */
  --paper: color-mix(in srgb, var(--danger) 12%, var(--bg));
}

/* In one column Delete comes last, with room around it. */
@media (max-width: 63.99rem) {
  .tickets > .ticket.danger {
    margin-top: 1.5rem;
  }
}

.ticket.danger .stub-label,
.ticket.danger h2 {
  color: var(--danger);
}


/* ── Forms ──────────────────────────────────────────────────────────────── */

form.inline,
.inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.inline input {
  flex: 1 1 14rem;
  min-width: 0;
}

.inline button {
  flex: 0 0 auto;
}

/* On phones, buttons fill the row so they're easy to hit. */
@media (max-width: 35.99rem) {
  .inline button,
  .next .button {
    flex: 1 1 100%;
  }

  .ticket-body button,
  .ticket-body .button {
    width: 100%;
  }
}

form.stack,
.stack {
  display: grid;
  gap: 0.6rem;
}

.stack .inline {
  margin-bottom: 0;
}

label {
  font-weight: 700;
  font-size: 0.95rem;
}

input,
select {
  min-height: 3rem;
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 0.8rem;
  border: 2px solid var(--field-line);
  background: var(--lift);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px keeps phones from zooming in on focus */
  transition: border-color 150ms ease-out;
}

input::placeholder {
  color: color-mix(in srgb, var(--muted) 85%, var(--lift));
}

/* A drawn chevron: the native arrow ignores the theme, and the CSP allows no image URLs. */
select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: right 1.3rem center, right 0.95rem center;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

input:hover,
select:hover {
  border-color: var(--text);
}

select:focus,
input:focus {
  border-color: var(--text);
}

/* Ink, not the pastel accent: the ring must stand out 3:1 on every ticket. */
input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

input[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: var(--danger);
}

input[type='number'].short {
  width: 7rem;
}

/* ── The campaign form ──────────────────────────────────────────────────── */

main.form-page,
.topbar:has(+ main.form-page) {
  width: min(100% - 2rem, 46rem);
}

.lead {
  margin: 0;
  font-size: 1.1rem;
  text-wrap: pretty;
}

.error-summary ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}

.error-summary a {
  color: inherit;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}

.field:last-child {
  margin-bottom: 0;
}

/* Fields side by side. The row carries the spacing, so a field that ends the
   row isn't stretched to match its neighbour's margin, which pushed its input down. */
.field-row {
  display: grid;
  gap: 1.1rem 1rem;
  margin: 0 0 1.1rem;
}

.field-row:last-child {
  margin-bottom: 0;
}

.field-row > .field {
  margin: 0;
  /* When only one of them shows an error, keep both inputs level. */
  align-content: start;
}

@media (min-width: 36rem) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-wrap: pretty;
}

.ticket-body > .hint {
  margin-bottom: 0.9rem;
}

.field-error {
  margin: 0;
  font-size: 0.9rem;
}

/* A checkbox with its label beside it, and the hint underneath the label. */
.field.check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.7rem;
}

.field.check input {
  width: 1.5rem;
  height: 1.5rem;
  min-height: 0;
  margin: 0.05rem 0 0;
  accent-color: var(--text);
}

.field.check > :not(input) {
  grid-column: 2;
}

/* Picking a colour set recolours the whole form page (see /theme.css): ease it in. */
body.admin:has(.campaign-form),
.campaign-form .ticket,
.campaign-form .ticket-body,
.campaign-form .stub {
  transition: background-color 300ms ease-out, color 300ms ease-out;
}

fieldset.looks {
  min-width: 0;
  padding: 0;
  border: 0;
}

fieldset.looks legend {
  padding: 0;
  margin-bottom: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.look-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Each colour set is a little card: four chips and a name; the radio itself stays visible for clarity. */
.look-option {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
  min-height: 3rem;
  padding: 0.5rem 0.8rem 0.5rem 0.6rem;
  border: 2px solid var(--field-line);
  border-radius: 0.8rem;
  background: var(--lift);
  font-weight: 700;
  cursor: pointer;
}

.look-option:hover,
.look-option:has(input:checked) {
  border-color: var(--text);
}

.look-option:has(input:checked) {
  box-shadow: inset 0 0 0 1px var(--text);
}

.look-option:has(input:focus-visible) {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.look-option input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  margin: 0;
  accent-color: var(--text);
}

.look-chips {
  display: inline-flex;
}

.look-chips i {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -0.3rem;
  border: 2px solid var(--lift);
  border-radius: 50%;
  /* A faint ring, so samples close to the page colour (dark on dark) still show. */
  box-shadow: 0 0 0 1px var(--ink-soft);
}

.look-chips i:first-child {
  margin-left: 0;
}

.look-chips i:nth-child(1) {
  background: var(--s1);
}

.look-chips i:nth-child(2) {
  background: var(--s2);
}

.look-chips i:nth-child(3) {
  background: var(--s3);
}

.look-chips i:nth-child(4) {
  background: var(--s4);
}

.look-name {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 35.99rem) {
  .form-actions button {
    flex: 1 1 100%;
  }
}

/* ── Campaign list ──────────────────────────────────────────────────────── */

.page-actions {
  display: flex;
  justify-content: flex-end;
}

.ticket-link {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* The whole ticket is clickable through its title link. */
.ticket:has(.ticket-link) {
  cursor: pointer;
}

.ticket-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.rule-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.rule-list li + li {
  margin-top: 0.3rem;
}

.entry-url {
  margin-top: 1rem;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.55rem 1.25rem;
  border: 2px solid var(--text);
  border-radius: 0.8rem;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--shade) 45%, transparent);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 160ms ease-out, background-color 160ms ease-out;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px -6px color-mix(in srgb, var(--shade) 50%, transparent);
}

button:active,
.button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px -2px color-mix(in srgb, var(--shade) 45%, transparent);
}

button.secondary,
.button.secondary {
  background: var(--lift);
  color: var(--text);
}

/* A quiet outlined button (Sign out): clearly a button, but lighter than the main actions. */
button.ghost {
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border-color: var(--ink-line);
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: none;
}

button.ghost:hover {
  border-color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
  box-shadow: none;
  transform: none;
}

button.ghost:active {
  box-shadow: none;
  transform: none;
}

button.destructive {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--danger-text);
}

/* ── Facts, pills, notices ──────────────────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(8rem, 100%), 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0 0 1rem;
}

.facts dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.facts dd {
  margin: 0.1rem 0 0;
  font-weight: 700;
}

.facts dd.big {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}

.facts .highlight {
  padding: 0.5rem 0.75rem;
  margin: -0.5rem -0.75rem;
  border-radius: 0.8rem;
  background: var(--lift);
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
}

.pill.open {
  background: #bfeed6;
  color: #144d33;
}

.pill.upcoming {
  background: #ffe9a6;
  color: #574100;
}

.pill.closed {
  background: var(--text);
  color: var(--bg);
}

.notice {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 0.9rem;
  background: #fff;
  color: #2d2340;
  box-shadow: var(--shadow);
}

.ticket .notice {
  margin-bottom: 1rem;
  box-shadow: none;
}

.notice.ok {
  background: #d3f2e2;
}

.notice.error {
  background: #ffdce6;
  color: #7d1837;
}

.notice.warn {
  background: color-mix(in srgb, #ffe58a 60%, white);
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.rules {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 2px dotted var(--ink-soft);
}

/* ── Draws table ────────────────────────────────────────────────────────── */

table.draws {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.draws th,
.draws td {
  text-align: left;
  padding: 0.6rem 0.4rem;
  border-top: 2px dotted var(--ink-soft);
  vertical-align: top;
}

.draws th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  border-top: 0;
}

.draws td:last-child {
  text-align: right;
}

.draws a {
  display: inline-block;
  padding-block: 0.3rem; /* at least a 24px target */
}

.draws .handle {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ── Draw page ──────────────────────────────────────────────────────────── */

.winner {
  display: inline-block;
  max-width: 100%;
  margin: 0.25rem 0 0.75rem;
  padding: 0.15em 0.45em;
  border-radius: 0.6rem;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1rem + 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transform: rotate(-1.5deg);
}

details.secret {
  margin-top: 0.5rem;
}

details.secret summary {
  display: inline-block;
  cursor: pointer;
  font-weight: 800;
  padding: 0.6rem 0.2rem;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.password {
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  background: var(--lift);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.redraw {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 3px dotted var(--ink-line);
}

.post {
  overflow-wrap: anywhere;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 1.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Windows high contrast: backgrounds drop out, so give tickets and pills an outline. */
@media (forced-colors: active) {
  .ticket,
  .next,
  .notice,
  .pill,
  .winner {
    border: 2px solid CanvasText;
  }

  .ticket-body {
    border-color: CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .button,
  input,
  body.admin:has(.campaign-form),
  .campaign-form .ticket,
  .campaign-form .ticket-body,
  .campaign-form .stub {
    transition: none;
  }

  button:hover,
  .button:hover,
  button:active,
  .button:active {
    transform: none;
  }
}
