
        :root {
          --ink: #231f20;
          --muted: #6b6157;
          --paper: #fffdfa;
          --wash: #f6f3ee;
          /* The masthead and the left pane. Beige, not the brand colour: a
             full-bleed brand panel turns one accent into the whole page. */
          --panel: #efe9df;
          --rule: #e8e1d6;
          --rule-strong: #cfc4b4;
          --field: #ffffff;
          /* Semantic, not a brand slot. Money that has arrived is green
             whatever colour a campus picks for itself. */
          --paid: #008142;
          --warn: #855700;
          --stop: #9e3627;
          --radius: 16px;
        }
        * { box-sizing: border-box; }
        html { -webkit-text-size-adjust: 100%; }
        body {
          margin: 0;
          background: var(--wash);
          color: var(--ink);
          font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
          font-size: 16px;
          line-height: 1.5;
          -webkit-font-smoothing: antialiased;
        }

        .band {
          background: var(--panel);
          color: var(--ink);
          border-bottom: 1px solid var(--rule);
          padding: 13px 20px;
          display: flex;
          align-items: center;
          gap: 11px;
        }
        .band__logo {
          max-height: 36px; max-width: 220px; height: auto; width: auto;
          display: block; flex: none;
          background: #fff; border-radius: 7px; padding: 3px;
          box-shadow: 0 1px 2px rgba(35,31,32,.07);
        }


        main { max-width: 34rem; margin: 0 auto; padding: 20px 16px 56px; }

        .sheet {
          background: var(--paper);
          border-radius: var(--radius);
          box-shadow: 0 1px 2px rgba(23,23,28,.06), 0 8px 24px -12px rgba(23,23,28,.18);
          padding: 24px 20px;
          margin-bottom: 16px;
        }

        .eyebrow {
          font-size: 12px; font-weight: 600; letter-spacing: .12em;
          text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
        }
        h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 700; }
        h2 { font-size: 17px; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 650; }
        .where { color: var(--muted); margin: 0 0 2px; }
        .lede { color: var(--muted); margin: 10px 0 0; }

        .price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0; }
        .price__amount { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
        .price__unit { color: var(--muted); font-size: 14px; }

        .field { margin-top: 18px; }
        label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
        .hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
        input, select {
          width: 100%; padding: 13px 14px; font-size: 16px; color: var(--ink);
          background: var(--field); border: 1px solid var(--rule-strong);
          border-radius: 10px; font-family: inherit;
        }
        input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
          outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
          outline-offset: 2px;
        }
        .check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; }
        .check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
        .check label { font-weight: 400; font-size: 14px; margin: 0; color: var(--muted); }
        .check a { color: var(--brand); }

        button, .btn {
          display: block; width: 100%; margin-top: 22px; padding: 15px 18px;
          font: inherit; font-size: 16px; font-weight: 650; text-align: center;
          color: var(--on-brand, #fff); background: var(--brand); border: 0; border-radius: 10px;
          text-decoration: none; cursor: pointer;
        }
        .btn--quiet { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--rule); }

        .note { font-size: 13px; color: var(--muted); margin: 12px 0 0; text-align: center; }
        /* Red, because an asterisk that matches the label is not a warning. */
        .req { color: var(--stop); margin-left: 2px; font-weight: 700; }

        /* After payment: the ticket beside the thanks, rather than the
           thanks pushing the ticket off a laptop screen. */
        .result { display: grid; gap: 16px; align-items: stretch; }
        @media (min-width: 860px) { .result { grid-template-columns: 1fr 1fr; } }
        .result .ticket, .result .panel { margin-bottom: 0; }
        /* Equal height, with the shorter card's content centred rather than
           stranded at the top of a tall white box. */
        .result .panel {
          display: flex; flex-direction: column; justify-content: center;
        }
        .result .ticket { display: flex; flex-direction: column; }
        .result .ticket__top { flex: 1 1 auto; }
        .result .panel { padding: 32px 24px; }
        .result .panel h1 { font-size: 30px; }

        /* The centred card used after payment and when booking is closed. */
        .panel {
          background: var(--paper); border-radius: var(--radius); text-align: center;
          padding: 44px 24px 38px; margin-bottom: 16px;
          box-shadow: 0 1px 2px rgba(23,23,28,.06), 0 8px 24px -12px rgba(23,23,28,.18);
        }
        .panel__logo {
          max-width: min(100%, 320px); max-height: 92px; width: auto; height: auto;
          display: block; margin: 0 auto 20px;
        }
        .panel h1 { color: var(--ink); font-size: 34px; margin: 0 0 14px; }
        /* Green belongs to the page that says the money arrived, and to no
           other. A closed-booking page in success green reads as a success. */
        .panel--paid h1 { color: var(--paid); }
        .panel .lede { margin: 0 auto; max-width: 32rem; }
        .panel .lede + .lede { margin-top: 10px; }
        .panel .btn, .panel button {
          display: inline-block; width: auto; min-width: 11rem; margin-top: 26px;
        }
        /* The page listing what is on: one card per event, like the
           dashboard the coordinators already read. */
        .list-head { margin: 4px 0 18px; }
        .list-head h1 { margin: 0 0 6px; }
        .cards { display: grid; gap: 16px; }
        @media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }

        .card-link {
          display: flex; flex-direction: column; gap: 2px;
          background: var(--paper); border: 1px solid var(--rule);
          border-radius: var(--radius); padding: 22px 20px 18px;
          text-decoration: none; color: inherit;
          box-shadow: 0 1px 2px rgba(35,31,32,.05), 0 8px 24px -16px rgba(35,31,32,.18);
        }
        .card-link:hover { border-color: var(--rule-strong); }
        .card-link h2 { font-size: 21px; margin: 0 0 4px; }
        .card-link .where { margin: 0; }
        .card-link__go {
          margin-top: 16px; color: var(--brand); font-weight: 650; font-size: 15px;
        }

        /* The countdown. Numerals are tabular so the pill does not jiggle
           once a second as the digits change width. */
        .countdown {
          display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
          margin: 14px 0 2px; padding: 8px 14px;
          background: color-mix(in srgb, var(--brand) 8%, var(--paper));
          border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
          border-radius: 999px;
        }
        .countdown[data-past] { display: none; }
        .countdown__label {
          font-size: 12px; font-weight: 700; letter-spacing: .08em;
          text-transform: uppercase; color: var(--brand);
        }
        .countdown__clock { display: inline-flex; align-items: baseline; gap: 8px; }
        .countdown__unit {
          font-size: 11px; font-weight: 600; letter-spacing: .06em;
          color: var(--muted); display: inline-flex; align-items: baseline; gap: 2px;
        }
        .countdown__unit b {
          font-size: 17px; font-weight: 750; color: var(--ink);
          font-variant-numeric: tabular-nums;
        }

        .actions { text-align: center; }
        .actions .btn { display: inline-block; width: auto; min-width: 11rem; }
        .error {
          background: #fdecea; color: var(--stop); border-radius: 10px;
          padding: 12px 14px; font-size: 14px; margin: 0 0 4px;
        }
        .field .error { margin: 6px 0 0; }

        /* The ticket: a stub torn from a sheet. */
        .ticket { background: var(--paper); border-radius: var(--radius); overflow: hidden;
                  box-shadow: 0 1px 2px rgba(23,23,28,.06), 0 10px 30px -14px rgba(23,23,28,.22);
                  margin-bottom: 16px; }
        .ticket__top { padding: 26px 20px 22px; }
        .ticket__status { font-size: 12px; font-weight: 700; letter-spacing: .14em;
                          text-transform: uppercase; margin: 0 0 10px; }
        .ticket__status--paid { color: var(--paid); }
        .ticket__status--pending { color: var(--warn); }
        .ticket__status--stopped { color: var(--stop); }
        .admits { margin: 22px 0 0; display: flex; align-items: baseline; gap: 10px; }
        .admits__n { font-size: 46px; font-weight: 750; line-height: 1; letter-spacing: -.03em; }
        .admits__label { font-size: 12px; font-weight: 600; letter-spacing: .12em;
                         text-transform: uppercase; color: var(--muted); }

        .tear { position: relative; height: 22px; background: var(--paper); }
        .tear::before, .tear::after {
          content: ""; position: absolute; top: 0; width: 22px; height: 22px;
          background: var(--wash); border-radius: 50%;
        }
        .tear::before { left: -11px; }
        .tear::after { right: -11px; }
        .tear__line {
          position: absolute; left: 16px; right: 16px; top: 50%;
          border-top: 2px dashed var(--rule);
        }

        .stub { padding: 4px 20px 26px; display: flex; gap: 18px; align-items: center; }
        .stub img { width: 108px; height: 108px; flex: none; display: block;
                    image-rendering: pixelated; }
        .serial {
          font-family: ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
          font-size: 21px; font-weight: 600; letter-spacing: .06em; margin: 0 0 6px;
          word-break: break-all;
        }

        .rows { width: 100%; border-collapse: collapse; font-size: 15px; }
        .rows th { text-align: left; font-weight: 400; color: var(--muted); padding: 7px 0; }
        .rows td { text-align: right; font-weight: 600; padding: 7px 0; }
        .rows tr + tr th, .rows tr + tr td { border-top: 1px solid var(--rule); }

        .pulse { animation: pulse 1.8s ease-in-out infinite; }
        @keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .45 } }
        @media (prefers-reduced-motion: reduce) { .pulse { animation: none } }

        /* Landscape on a laptop: the whole form visible without scrolling.
           One column on phones, where side-by-side fields are unusable. */
        .grid { display: grid; gap: 0 20px; }
        .span-2 { grid-column: 1 / -1; }
        @media (min-width: 720px) {
          main { max-width: 52rem; }
          .grid { grid-template-columns: 1fr 1fr; }
        }

        /* A dialling code is four characters; a mobile number is ten digits.
           The boxes are sized accordingly. */
        .phone { display: flex; gap: 8px; }
        .phone select {
          width: auto; flex: 0 0 5.6rem; padding-left: 10px; padding-right: 6px;
          text-overflow: ellipsis;
        }
        .phone input { flex: 1 1 auto; min-width: 0; }

        /* The booking screen: the event on the left, the form on the right.
           Two panes that each scroll on their own, so a long description
           never pushes the Pay button off a laptop screen. */
        .split { display: grid; min-height: 100dvh; }
        .split__intro {
          background: var(--panel); color: var(--ink);
          border-right: 1px solid var(--rule);
          padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px;
        }
        .split__form { padding: 26px 16px; display: flex; align-items: center;
                       justify-content: center; }
        .split__form .sheet { width: 100%; max-width: 38rem; margin: 0; }

        @media (min-width: 900px) {
          .split { grid-template-columns: 40fr 60fr; height: 100dvh; }
          .split__intro, .split__form { overflow-y: auto; }
          .split__intro { padding: 44px 44px 36px; }
          .split__form { padding: 28px 34px; }
        }

        /* A logo is either a crest, roughly square, or a wordmark three or
           four times wider than it is tall. Capping both axes lets each take
           the dimension it needs: the crest fills the height, the wordmark
           fills the width, and neither is squeezed into the other's shape. */
        .intro__logo {
          /* The panel is a flex column, whose children stretch to its width
             by default — which pulled a square crest out to a wide smear.
             This is what keeps the image its own shape. */
          align-self: flex-start;
          max-width: min(100%, 360px); max-height: 96px; width: auto; height: auto;
          background: #fff; border-radius: 12px; padding: 8px 12px; display: block;
          box-shadow: 0 1px 3px rgba(35,31,32,.08);
        }
        .intro__campus { font-size: 19px; font-weight: 700; margin: 6px 0 0;
                         letter-spacing: -.01em; }
        .intro__rule { width: 52px; height: 4px; border-radius: 2px;
                       background: var(--accent); margin: 2px 0 4px; }
        .split__intro h1 { font-size: 32px; margin: 0; color: inherit; }
        .intro__meta { margin: 0; color: var(--muted); font-size: 15px; }
        /* pre-wrap, because the details block is a list of dates, names and
           phone numbers that an admin typed with line breaks that matter. */
        .intro__body { white-space: pre-wrap; margin: 10px 0 0; color: var(--muted);
                       font-size: 15px; line-height: 1.55; }
        /* On a phone the form is the point, so the masthead is kept small
           enough that the first field is reachable without a long scroll.
           A long details block scrolls inside itself rather than pushing
           the whole form below the fold. */
        @media (max-width: 899px) {
          .split__intro { padding: 20px 18px 18px; gap: 7px; }
          .intro__logo { max-width: min(100%, 250px); max-height: 66px; }
          .intro__campus { font-size: 16px; margin-top: 2px; }
          .intro__rule { width: 40px; height: 3px; }
          .split__intro h1 { font-size: 23px; }
          .intro__meta { font-size: 14px; }
          .intro__body { font-size: 14px; margin-top: 4px;
                         max-height: 9.5em; overflow-y: auto; }
          .split__form { padding: 18px 14px 32px; align-items: flex-start; }
        }

        /* Tighter than a standalone sheet: this card has to fit a laptop. */
        .split__form .field { margin-top: 13px; }
        .split__form h2 { margin-bottom: 10px; }
        .split__form button { margin-top: 16px; padding: 13px 18px; }
        .split__form .check { margin-top: 16px; }
        .split__form .note { margin-top: 8px; }

        .choices { display: grid; gap: 8px; margin-top: 2px; }
        .choice { display: flex; gap: 10px; align-items: flex-start; }
        .choice input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
        .choice label { font-weight: 400; font-size: 15px; margin: 0; }

        @media (max-width: 400px) {
          h1 { font-size: 26px; }
          .stub { gap: 14px; }
          .stub img { width: 92px; height: 92px; }
        }
      