@font-face {
    font-family: "Alan Sans";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/alan-sans-latin.2e5ea52d1bc2.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: "Alan Sans";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/alan-sans-latin-ext.e5ea8f60e171.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-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/bricolage-latin.ad33cbc6d232.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: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/bricolage-latin-ext.c4c7bb6a8d9b.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-20C0, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --paper: #faf8f3;
    --band: #1c2130;
    --on-band: #faf8f3;
    --paper-deep: #efebe2;
    --ink: #1c2130;
    --ink-soft: #5f6371;
    --paper-raised: #fffdf9;
    --field: #fffefb;
    --danger: #b3261e;
    --danger-tint: #fbe4e1;
    --danger-ink: #7a1a13;
    --ok: #2e7d4a;
    --ok-tint: #d9f2e0;
    --ok-ink: #0d4a1f;
    --warn: #b88a00;
    --warn-tint: #fff0c2;
    --warn-ink: #6b4a00;
    --line: #e4dfd4;
    --line-strong: #8d8f99;
    --rule: 1px solid var(--line);
    --field-rule: 1px solid var(--line-strong);
    --lift: none;
    --radius: 10px;
    --radius-sm: 6px;
    --flow: 1rem;
    --flow-tight: 0.75rem;
    --flow-block: 1.75rem;
    --flow-block-tight: 1.25rem;
    --flow-heading: 2.5rem;
    --underline: 2px;
    --underline-offset: 3px;
    --radius-in: calc(var(--radius) - 1px);

    --font: "Alan Sans", system-ui, sans-serif;
    --font-display: "Bricolage Grotesque", "Alan Sans", system-ui, sans-serif;
    --gutter: clamp(1rem, 4vw, 2rem);
    --max: 1160px;

    --accent: #000088;
    --on-accent: #fafaf7;
    --tint: #d1d1ea;
    --deep: #000088;
}

* {
    font-family: var(--font);
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.0625rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;

    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration-thickness: var(--underline);
    text-underline-offset: var(--underline-offset);
}
a:hover {
    color: var(--deep);
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    text-wrap: balance;
}
h1,
h2,
h3,
h4,
.brand,
.price,
.fan-slip,
.hero-slip strong,
.stub-date b,
.foot-word {
    font-family: var(--font-display);
}
p {
    margin: 0 0 1em;
}

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

:focus-visible {
    outline: 3px solid var(--focus, var(--ink));
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.num {
    font-variant-numeric: tabular-nums;
}

.eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.9rem;
}

.switcher {
    --focus: var(--on-band);
    background: var(--band);
    color: var(--on-band);
    font-size: 0.85rem;
}
.switcher .wrap {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.switcher .wrap::-webkit-scrollbar {
    display: none;
}

.switcher a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    color: var(--on-band);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    opacity: 0.72;
}
.switcher a::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    background: var(--dot, var(--accent));
    flex: none;
    box-shadow: 0 0 0 1px rgba(242, 241, 236, 0.35);
}
.switcher a:hover {
    opacity: 1;
    color: var(--on-band);
}
.switcher a:first-child {
    padding-inline-start: 0;
}

.switcher a[aria-current="true"] {
    opacity: 1;
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--on-band);
}

.site-head {
    border-bottom: var(--rule);
    background: var(--paper);
}
.site-head .wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    padding-block: 1rem;
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-inline-end: auto;
}
.brand-app {
    color: var(--deep);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.brand-app:not(:empty)::before {
    content: "/";
    margin-inline-end: 0.5rem;
    color: var(--ink);
    opacity: 0.35;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    font-weight: 600;
    font-size: 0.98rem;
}
.site-nav a {
    text-decoration: none;
    padding-block: 0.25rem;
    border-bottom: 2px solid transparent;
    color: var(--ink-soft);
    transition: color 0.15s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
    border-bottom-color: var(--accent);
    color: var(--ink);
}

.site-menu {
    display: contents;
}
.site-nav {
    order: 1;
}
.head-account {
    order: 2;
}
.head-basket,
.head-login {
    order: 3;
}
.head-form {
    order: 4;
}
.site-head .menu-toggle {
    display: none;
}
.site-head .btn-bma:has(+ .btn-bma) {
    margin-inline-end: 0;
}

.btn-bma {
    --b-bg: var(--accent);
    --b-fg: var(--on-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.25rem;
    background: var(--b-bg);
    color: var(--b-fg);
    border: 1px solid color-mix(in oklab, var(--b-bg), var(--ink) 18%);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}
.btn-bma:hover {
    color: var(--b-fg);
    background: color-mix(in oklab, var(--b-bg), var(--ink) 14%);
}
.btn-bma:active {
    transform: translateY(1px);
}
.btn-bma--ink {
    --b-bg: var(--ink);
    --b-fg: var(--paper);
}
.btn-bma--paper {
    --b-bg: var(--paper);
    --b-fg: var(--ink);
}
.btn-bma--ghost {
    --b-bg: transparent;
    --b-fg: var(--ink);
    border-color: var(--line-strong);
}
.btn-bma--ghost:hover {
    background: var(--paper-deep);
    color: var(--ink);
}
.btn-bma--sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}

.hero {
    --focus: var(--on-accent);
    background: var(--accent);
    color: var(--on-accent);
    overflow: hidden;
}
.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    max-width: 16ch;
}
.hero .lede {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 38ch;
    margin: 1.25rem 0 2rem;
}
@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.4rem;
    }
}
.hero a:hover {
    color: inherit;
}
.hero .eyebrow {
    color: inherit;
    opacity: 0.75;
}
.hero .btn-bma {
    --b-bg: var(--paper);
    --b-fg: var(--ink);
    border-color: var(--paper);
}
.hero .btn-bma--ink {
    --b-bg: transparent;
    --b-fg: var(--on-accent);
    border-color: color-mix(in oklab, var(--on-accent) 55%, transparent);
}
.hero .btn-bma--ink:hover {
    background: color-mix(in oklab, var(--on-accent) 12%, transparent);
    border-color: var(--on-accent);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-slip {
    justify-self: center;
    width: min(19rem, 100%);
    display: grid;
    gap: 1.75rem;
    padding: 1.4rem;
    background: var(--paper-raised);
    color: var(--ink);
    border: var(--field-rule);
    border-radius: var(--radius);
    transform: rotate(2deg);
}
.hero-slip small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero-slip strong {
    display: block;
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--deep);
    margin-top: 0.35rem;
}
.hero-slip-bars {
    padding-top: 1.1rem;
    border-top: 1.5px dashed var(--line-strong);
}
.hero-slip-bars::before {
    content: "";
    display: block;
    height: 2.4rem;
    background: var(--ink);
    --bars: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 119 1' preserveAspectRatio='none'><rect x='0' width='1' height='1'/><rect x='2' width='2' height='1'/><rect x='5' width='1' height='1'/><rect x='9' width='1' height='1'/><rect x='12' width='2' height='1'/><rect x='15' width='2' height='1'/><rect x='18' width='1' height='1'/><rect x='20' width='2' height='1'/><rect x='24' width='1' height='1'/><rect x='26' width='1' height='1'/><rect x='30' width='2' height='1'/><rect x='33' width='4' height='1'/><rect x='40' width='1' height='1'/><rect x='42' width='3' height='1'/><rect x='48' width='1' height='1'/><rect x='52' width='2' height='1'/><rect x='56' width='1' height='1'/><rect x='58' width='1' height='1'/><rect x='62' width='4' height='1'/><rect x='67' width='1' height='1'/><rect x='70' width='1' height='1'/><rect x='74' width='1' height='1'/><rect x='78' width='1' height='1'/><rect x='82' width='4' height='1'/><rect x='87' width='1' height='1'/><rect x='91' width='2' height='1'/><rect x='94' width='1' height='1'/><rect x='96' width='2' height='1'/><rect x='99' width='2' height='1'/><rect x='102' width='2' height='1'/><rect x='105' width='2' height='1'/><rect x='110' width='2' height='1'/><rect x='114' width='2' height='1'/></svg>");
    -webkit-mask: var(--bars) 0 0 / 100% 100% no-repeat;
    mask: var(--bars) 0 0 / 100% 100% no-repeat;
}

.fan {
    position: relative;
    height: 20rem;
}
.fan-slip {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11rem;
    aspect-ratio: 3 / 4;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--tint);
    color: var(--deep);
    border: 1px solid color-mix(in oklab, var(--tint), var(--deep) 35%);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}
.fan-slip::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 3.6rem;
    border-top: 1px dashed color-mix(in oklab, var(--tint), var(--deep) 45%);
}
.fan-slip small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.fan-slip:nth-child(1) {
    transform: translate(-158%, -51%) rotate(-5deg);
}
.fan-slip:nth-child(2) {
    transform: translate(-102%, -50%) rotate(-2deg);
}
.fan-slip:nth-child(3) {
    transform: translate(-46%, -50%) rotate(2deg);
}
.fan-slip:nth-child(4) {
    transform: translate(10%, -49%) rotate(5deg);
}

.hero--page .wrap {
    display: block;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}
.hero--page h1 {
    font-size: 2.75rem;
}
@media (max-width: 640px) {
    .hero--page h1 {
        font-size: 2.1rem;
    }
}
.hero--page .lede {
    margin-bottom: 0;
}

.prose {
    max-width: 68ch;
    line-height: 1.65;
}
.prose > * + * {
    margin-top: 1rem;
}
.prose > :first-child {
    margin-top: 0;
}
.prose h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-top: 2.5rem;
}
.prose h3 {
    font-size: 1.2rem;
    margin-top: 1.75rem;
}
.prose ul,
.prose ol {
    padding-inline-start: 1.4rem;
}
.prose li + li {
    margin-top: 0.4rem;
}
.prose a {
    text-decoration: underline;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
}
.prose th,
.prose td {
    padding: 0.6rem 0.75rem 0.6rem 0;
    text-align: start;
    vertical-align: top;
    border-bottom: 1px solid var(--ink-soft);
}

.section {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.section + .section {
    border-top: var(--rule);
}
.section--tint {
    background: var(--tint);
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.section-head h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}
.section-head > :first-child {
    margin-inline-end: auto;
}
.section-head > .btn-bma {
    margin: 0;
}
.section-head p {
    margin: 0;
    max-width: 36ch;
    color: var(--ink-soft);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.chip {
    padding: 0.3rem 0.85rem;
    border: var(--rule);
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
}
.chip:hover {
    background: var(--tint);
    color: var(--ink);
}
.chip[aria-current="true"] {
    background: var(--ink);
    color: var(--paper);
}

.panels {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}
.panel {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
    min-height: 15rem;
    padding: 1.5rem;
    background: var(--tint);
    color: var(--ink);
    border: 1px solid color-mix(in oklab, var(--tint), var(--deep) 22%);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.15s ease;
}
.panel:hover {
    color: var(--ink);
    border-color: var(--deep);
}
.panel:nth-child(4n + 1) {
    grid-column: span 4;
}
.panel:nth-child(4n + 2),
.panel:nth-child(4n + 3) {
    grid-column: span 2;
}
.panel:nth-child(4n + 4) {
    grid-column: span 4;
}
.panel:last-child:nth-child(4n + 1),
.panel:last-child:nth-child(4n + 3) {
    grid-column: span 6;
}
.panel h3 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--deep);
}
.panel p {
    margin: 0.6rem 0 0;
    max-width: 32ch;
}
.panel-foot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--deep);
}
.panel:hover .panel-foot {
    text-decoration: underline;
    text-decoration-thickness: var(--underline);
    text-underline-offset: var(--underline-offset);
}
@font-face {
    font-family: bootstrap-icons;
    font-display: block;
    src: url("../vendor/bootstrap-icons/bootstrap-icons-subset.1b9a65b0c665.woff2") format("woff2");
}
.bi {
    display: inline-block;
    font-family: bootstrap-icons;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    vertical-align: -0.125em;
}
.bi-arrow-right::before {
    content: "\f138";
}
.bi-arrow-left::before {
    content: "\f12f";
}
.bi-arrow-up::before {
    content: "\f148";
}
.bi-arrow-down::before {
    content: "\f128";
}
.bi-x-lg::before {
    content: "\f659";
}
.bi-star::before {
    content: "\f588";
}
.bi-star-fill::before {
    content: "\f586";
}
.panel-foot .arrow {
    line-height: 1;
    transition: transform 0.15s ease;
}
.panel:hover .arrow {
    transform: translateX(3px);
}

.stubs {
    display: grid;
    gap: 1.5rem;
}
.stub {
    --stub-w: 6.25rem;
    position: relative;
    display: grid;
    grid-template-columns: var(--stub-w) 1fr auto;
    background: var(--paper-raised);
    border: var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--lift);
}
.stub::before,
.stub::after {
    content: "";
    position: absolute;
    inset-inline-start: calc(var(--stub-w) - 11px);
    width: 20px;
    height: 20px;
    background: var(--paper);
    border: var(--rule);
    border-radius: 50%;
}
.stub::before {
    top: -12px;
    clip-path: inset(50% 0 0 0);
}
.stub::after {
    bottom: -12px;
    clip-path: inset(0 0 50% 0);
}

.stub-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--accent);
    color: var(--on-accent);
    border-inline-end: 1.5px dashed var(--line-strong);
    border-start-start-radius: var(--radius-in);
    border-end-start-radius: var(--radius-in);
    padding: 1rem 0.5rem;
    line-height: 1;
}
.stub-date b {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}
.stub-date span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.stub-body {
    padding: 1.15rem 1.5rem;
}
.stub-body h3 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}
.stub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0;
}
.stub-note {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.85rem;
    background: var(--tint);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.refund-steps {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
}
.refund-steps__step {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 0.75rem;
    padding-inline-start: 0.75rem;
    border-inline-start: 3px solid var(--line);
    color: var(--ink-soft);
}
.refund-steps__step b {
    color: var(--ink);
}
.refund-steps__step--approved {
    border-inline-start-color: var(--ink);
}
.refund-steps__step--waiting {
    border-inline-start-color: var(--danger);
}
.refund-steps__step--rejected {
    border-inline-start-color: var(--danger-ink);
}
.refund-steps__comment {
    flex-basis: 100%;
    font-style: italic;
}
.stub-plan {
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.5rem 0;
    padding-inline-start: 1.25rem;
}

.stub-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
}
.price {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow-wrap: normal;
}
.price small {
    white-space: normal;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0;
}

.board {
    --focus: var(--on-band);
    background: var(--band);
    color: var(--on-band);
    border-radius: var(--radius);
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: var(--lift);
}
.board-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr 7rem 5rem 8rem;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 0;
    border-bottom: 1px dashed rgba(242, 241, 236, 0.3);
}
.board-row:last-child {
    border-bottom: 0;
}
.board-row--head {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.6;
    padding-block: 1rem 0.75rem;
    border-bottom: 1px solid rgba(242, 241, 236, 0.5);
}
.board-time {
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #f2c14e;
}
.board-dest strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.board-dest span {
    font-size: 0.9rem;
    opacity: 0.7;
}
.board-status {
    font-size: 0.9rem;
    font-weight: 700;
}
.board-status::before {
    content: "";
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    margin-inline-end: 0.5rem;
    background: #5fd0b2;
}
.board-status[data-state="low"]::before {
    background: #f2c14e;
}
.board-status[data-state="full"]::before {
    background: #e8674c;
}
.board .price {
    font-size: 1.35rem;
}
.board .price small {
    color: inherit;
    opacity: 0.6;
}
.board a:not(.btn-bma) {
    color: var(--on-band);
}
.board .btn-bma {
    --b-bg: var(--on-band);
    --b-fg: var(--band);
    color: var(--band);
    justify-content: center;
    box-shadow: var(--lift);
}
.board .btn-bma[aria-disabled="true"] {
    opacity: 0.4;
    pointer-events: none;
    box-shadow: none;
}

.roll {
    border-top: var(--rule);
}
.club {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: var(--rule);
}
.club h3 {
    font-size: 1.45rem;
    margin-bottom: 0.2rem;
}
.club p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.club-count {
    text-align: end;
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.2;
}
.club-count b {
    display: block;
    font-size: 1.5rem;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.club .price {
    font-size: 1.35rem;
    text-align: end;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1rem;
}
.product {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.75rem;
    padding-bottom: 1rem;
    text-decoration: none;
    background: var(--paper-raised);
    border: var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.product:hover {
    color: inherit;
    border-color: var(--line-strong);
}
.product-tagline {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1.1rem 1rem 1rem 2.4rem;
    background: var(--tint);
    border-bottom: 1px dashed color-mix(in oklab, var(--tint), var(--deep) 45%);
}
.product-tagline::before {
    content: "";
    position: absolute;
    inset-inline-start: 0.9rem;
    top: 50%;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--paper-raised);
    border: var(--rule);
    transform: translateY(-50%);
}
.product-tagline .price {
    font-size: 1.6rem;
}
.product-tag {
    background: var(--ink);
    color: var(--paper);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
}
.product h3 {
    padding-inline: 1rem;
    font-size: 1.15rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    hyphens: auto;
}
.product .btn-bma {
    justify-self: start;
    margin-inline: 1rem;
}

.note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--tint);
    border: var(--rule);
    border-radius: var(--radius);
}
.note p {
    margin: 0;
    font-weight: 600;
    max-width: 52ch;
}

.foot-note {
    margin-top: 1rem;
    opacity: 0.7;
}
.scan-video {
    width: 100%;
    max-width: 420px;
}
.site-foot {
    --focus: var(--on-band);
    background: var(--band);
    color: var(--on-band);
    margin-top: 0;
}
.site-foot a {
    color: var(--on-band);
    text-decoration-color: rgba(242, 241, 236, 0.4);
}
.site-foot a:hover {
    color: var(--on-band);
    text-decoration-color: var(--accent);
}
.foot-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-block: 3.5rem 2.5rem;
}
.foot-word {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}
.foot-top h2 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.6;
    margin-bottom: 0.9rem;
}
.foot-top ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}
.foot-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 2rem;
    border-top: 1px solid rgba(242, 241, 236, 0.25);
    padding-block: 1.25rem;
    font-size: 0.85rem;
    opacity: 0.7;
}
.foot-stripe {
    display: flex;
    height: 0.5rem;
}
.foot-stripe i {
    flex: 1;
    background: var(--accent);
}

.head-form {
    margin: 0;
}

.auth {
    display: flex;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
}
.auth-card {
    width: min(28rem, 100%);
    padding: 2rem;
    background: var(--paper-raised);
    border: var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--lift);
}
.auth-card h1 {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}
.auth-card .lede {
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}
.auth-card .btn-bma {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.field {
    margin-bottom: 1.1rem;
}
.field label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.field-input,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    color: var(--ink);
    background: var(--field);
    border: var(--field-rule);
    border-radius: var(--radius-sm);
}
.field-input:focus,
.field input:focus {
    outline: 3px solid var(--accent);
    outline-offset: 0;
}
.field-error,
.errorlist {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    color: var(--danger);
    font-weight: 600;
    font-size: 0.9rem;
}

.field--check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.field--check input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--accent);
    flex: none;
}
.field--check label {
    margin: 0;
    font-weight: 600;
}
.field--check .errorlist {
    flex-basis: 100%;
}

.auth-card h1 + p {
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}
.auth-card p {
    margin-bottom: 1rem;
}
.auth-card form + p {
    margin-top: var(--flow-block-tight);
}
.auth-card .btn-bma + .btn-bma {
    margin-top: 0.9rem;
}
.auth-card--wide {
    width: min(40rem, 100%);
}
.auth-card h2 {
    font-size: 1.4rem;
    margin: 1.75rem 0 0.5rem;
}
.auth-card section > ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.messages {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.messages .form-alert {
    margin-bottom: 0;
}
main > .messages {
    max-width: var(--max);
    width: 100%;
    margin: 1.25rem auto 0;
    padding-inline: var(--gutter);
    box-sizing: border-box;
}

.field-help {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.field-help a {
    font-weight: 700;
}
.field-help ul {
    margin: 0;
    padding-inline-start: 1.1rem;
}
.auth-links {
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.form-alert {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--tint);
    border: var(--rule);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.form-alert--error {
    background: #fbe4e1;
    border-color: var(--danger);
    color: #7a1a13;
}
@media (pointer: coarse) {
    main :is(p, li, td, dd, span, small) > a:not(.btn-bma) {
        padding-block: 0.45rem;
    }
}

.form-alert--done {
    position: relative;
    padding-inline-start: 2.4rem;
    background: var(--paper-raised);
}
.form-alert--pending {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    background: var(--paper-raised);
}
.form-alert--pending p {
    margin: 0;
}
.form-alert--done::before {
    content: "\f633" / "";
    position: absolute;
    inset-inline-start: 1rem;
    font-family: bootstrap-icons;
    font-weight: normal;
}

.email-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.35rem 1.25rem;
    margin-bottom: 1.5rem;
}
.email-meta dt {
    font-weight: 600;
}
.email-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.attachment-list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.email-frame {
    display: block;
    width: 100%;
    height: 75vh;
    border: var(--rule);
    background: #fff;
}
.email-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 1rem;
    border: var(--rule);
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .hero .wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    .fan {
        height: 16rem;
    }
    .hero-slip {
        display: none;
    }
    .fan {
        left: 1.5rem;
    }
    .fan-slip {
        width: 6.75rem;
        padding: 0.85rem;
        font-size: 1rem;
    }
    .fan-slip:nth-child(1) {
        transform: translate(-170%, -52%) rotate(-8deg);
    }
    .fan-slip:nth-child(2) {
        transform: translate(-108%, -50%) rotate(-3deg);
    }
    .fan-slip:nth-child(3) {
        transform: translate(-46%, -50%) rotate(3deg);
    }
    .fan-slip:nth-child(4) {
        transform: translate(16%, -48%) rotate(8deg);
    }
    .panel,
    .panel:nth-child(n) {
        grid-column: span 6;
        min-height: 12rem;
    }
    .foot-top {
        grid-template-columns: 1fr 1fr;
    }
    .foot-top > :first-child {
        grid-column: span 2;
    }
}

@media (max-width: 960px) {
    .js .site-head:has(.menu-toggle) .menu-toggle {
        display: inline-flex;
        order: 4;
    }
    .js .site-head:has(.menu-toggle) .site-menu {
        display: none;
    }
    .site-menu,
    .js .site-head.is-open .site-menu {
        display: flex;
        flex-direction: column;
        flex: 1 1 100%;
        order: 5;
    }
    .site-menu .site-nav {
        display: contents;
    }
    .site-menu .head-account {
        order: -1;
    }
    .site-menu .head-form {
        order: 99;
    }
    .site-head .site-menu :is(a, button) {
        display: block;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0.8rem 0;
        border: 0;
        border-top: 1px dashed var(--line-strong);
        border-radius: 0;
        background: none;
        box-shadow: none;
        transform: none;
        color: var(--ink);
        font-size: 1.05rem;
        font-weight: 600;
        text-align: start;
    }
    .site-head .site-menu :is(a, button):hover {
        background: none;
        color: var(--deep);
    }
    .site-head.is-open .menu-toggle {
        --b-bg: var(--ink);
        --b-fg: var(--paper);
    }
}

@media (max-width: 640px) {
    .site-head .wrap {
        gap: 0.5rem;
        padding-block: 0.6rem;
    }
    .brand {
        font-size: 1.2rem;
        white-space: nowrap;
        min-width: 0;
    }
    .site-head .btn-bma--sm {
        padding-inline: 0.6rem;
    }
    @media (max-width: 359px) {
        .brand {
            font-size: 1.05rem;
            gap: 0.3rem;
        }
        .brand-app:not(:empty)::before {
            margin-inline-end: 0.3rem;
        }
        .site-head .btn-bma--sm,
        .child-switch .btn-bma--sm {
            padding-inline: 0.45rem;
            font-size: 0.82rem;
        }
        .child-switch form {
            gap: 0.4rem;
        }
    }
    .stub-body h3 {
        overflow-wrap: anywhere;
    }
    .site-nav {
        order: 3;
        flex: 1 1 100%;
    }
    .btn-bma,
    .btn-bma--sm {
        min-height: 2.75rem;
        justify-content: center;
    }
    .switcher .wrap {
        gap: 0;
        justify-content: space-between;
    }
    .switcher a {
        padding: 0.8rem 0.45rem;
        gap: 0.4rem;
        font-size: 0.8rem;
    }
    .switcher a:last-child {
        padding-inline-end: 0;
    }
    @media (max-width: 359px) {
        .switcher a {
            padding-inline: 0.3rem;
            gap: 0.3rem;
            font-size: 0.75rem;
        }
    }
    .switcher a::before {
        width: 0.5rem;
        height: 0.5rem;
    }
    .stub {
        --stub-w: 4.75rem;
        grid-template-columns: var(--stub-w) minmax(0, 1fr);
    }
    .stub-date b {
        font-size: 1.9rem;
    }
    .stub-body {
        padding: 1rem;
    }
    .stub-body h3 {
        font-size: 1.3rem;
    }
    .stub-buy {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.6rem 1rem;
        border-top: 1.5px dashed var(--line-strong);
        padding: 0.8rem 1rem;
    }

    .board {
        padding-inline: 1rem;
    }
    .board-row {
        grid-template-columns: 4.25rem 1fr auto;
        gap: 0.35rem 1rem;
    }
    .board-row--head {
        display: none;
    }
    .board-time {
        grid-row: 1 / span 3;
        align-self: start;
        font-size: 1.2rem;
    }
    .board-dest {
        grid-column: 2 / -1;
    }
    .board-dest strong {
        font-size: 1.2rem;
    }
    .board-status {
        grid-column: 2 / -1;
        grid-row: 2;
    }
    .board .price {
        grid-column: 2;
        grid-row: 3;
    }
    .board-row > .btn-bma {
        grid-column: 3;
        grid-row: 3;
        justify-self: end;
    }

    .club {
        grid-template-columns: 1fr auto;
        gap: 0.5rem 1rem;
    }
    .club > div:first-child,
    .club-count {
        grid-column: 1 / -1;
        text-align: start;
    }
    .club-count b {
        display: inline;
        font-size: 1.1rem;
        margin-inline-end: 0.3rem;
    }
    .club .price {
        text-align: start;
    }
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    color: var(--ink-soft);
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0s linear 0.2s;
}
.page-loader.is-loading {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease;
}
.page-loader__spinner {
    width: 2.75rem;
    height: 2.75rem;
    border: 4px solid var(--tint);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: page-loader-spin 0.8s linear infinite;
    will-change: transform;
}
@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.page-loader.is-leaving {
    opacity: 1;
    visibility: visible;
    background: var(--paper);
    transition: opacity 0.15s ease;
}
.page-loader.is-leaving:not(.is-loading) > * {
    opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.18s;
    }
    html.is-arriving body {
        animation: page-arrive 0.22s ease;
    }
}
@keyframes page-arrive {
    from {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
    .page-loader__spinner {
        animation: page-loader-spin 2s linear infinite !important;
    }
    html {
        scroll-behavior: auto;
    }
}

.section .wrap > .dues {
    padding: 0;
}
.dues {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.due {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--paper-raised);
    border: var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--lift);
}
.due-body h3 {
    font-size: 1.15rem;
    margin: 0 0 0.2rem;
}
.due-body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.dues-total {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1rem 0 0;
    font-weight: 700;
}
.dues-empty {
    color: var(--ink-soft);
}
.due.coming-up {
    grid-template-columns: 1fr;
}
.due-body h3 a {
    color: inherit;
}
@media (max-width: 640px) {
    .due {
        grid-template-columns: 1fr auto;
    }
    .due .btn-bma {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2100;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transform: translateY(-200%);
}
.skip-link:focus {
    transform: none;
}

.password-wrap {
    position: relative;
}
.field .password-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    padding-right: 4.5rem;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    transform: translateY(-50%);
    min-height: 2.25rem;
    padding: 0 0.75rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-soft);
    font-weight: 600;
}
.password-toggle:hover {
    color: var(--ink);
    background: var(--tint);
}

form[aria-busy="true"] button:not([type="button"]):not([type="reset"]),
form[aria-busy="true"] input[type="submit"] {
    opacity: 0.6;
    cursor: progress;
}

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

.scan-counter {
    font-size: 1.4rem;
}
.scan-banner {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: var(--rule);
    font-size: 1.15rem;
    margin: 1rem 0;
}
.scan-banner--ok {
    background: #d9f2e0;
    color: #0d4a1f;
}
.scan-banner--warn {
    background: #fff0c2;
    color: #6b4a00;
}
.scan-banner--bad {
    background: #f9d6d2;
    color: #7a1208;
}
.scan-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}
.scan-list li {
    padding: 0.65rem 0;
    border-bottom: 1px dashed currentColor;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}
.child-switch {
    border-bottom: var(--rule);
    padding: 0.85rem 0;
}
.child-switch form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
}
.child-switch-label {
    font-weight: 600;
}
@media (max-width: 640px) {
    .child-switch form {
        row-gap: 0.5rem;
    }
    .child-switch-label {
        flex-basis: 100%;
        font-size: 0.9rem;
    }
}

.section .wrap > * {
    margin-block: 0;
}
.section .wrap > * + * {
    margin-top: var(--flow);
}
.section
    .wrap
    > :is(
        .hero-actions,
        .stats,
        .overview-groups,
        .overview-more,
        .card-form,
        .table-responsive,
        .dt-container,
        table,
        form,
        .section-head,
        .update-list,
        .row-list,
        .doc-list,
        .link-list,
        .manage-grid,
        details,
        .form-section,
        .email-preview,
        .tab-row,
        .form-alert
    )
    + *,
.section
    .wrap
    > :not(h1, h2, h3, .eyebrow, .stub-meta)
    + :is(
        .hero-actions,
        .stats,
        .overview-groups,
        .overview-more,
        .card-form,
        .table-responsive,
        .dt-container,
        table,
        form,
        .section-head,
        .update-list,
        .row-list,
        .doc-list,
        .link-list,
        .manage-grid,
        details,
        .form-section,
        .email-preview,
        .tab-row,
        .form-alert
    ) {
    margin-top: var(--flow-block);
}
.section .wrap > :is(*, .x) + h2 {
    margin-top: var(--flow-heading);
}
.section .wrap > h2 + * {
    margin-top: var(--flow-tight);
}
.section .wrap > .eyebrow + h1 {
    margin-top: var(--flow-tight);
}
.section .wrap > h1 + .stub-meta {
    margin-top: var(--flow-tight);
}
.section .wrap > .stub-meta + .stub-meta {
    margin-top: 0.35rem;
}
.section .wrap > .stub-meta + :not(.stub-meta, h2) {
    margin-top: var(--flow-block-tight);
}
.section .wrap > h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.section .wrap > ul,
.section .wrap > ol {
    padding-inline-start: 1.25rem;
}
.section .wrap > ul li + li {
    margin-top: 0.35rem;
}
.btn-bma:has(+ .btn-bma) {
    margin-inline-end: 0.75rem;
}
:is(p, td, div:not([class])) > .btn-bma,
:is(p, td, div:not([class])) > form > .btn-bma {
    margin-block: 0.2rem;
}
label + .btn-bma {
    margin-inline-start: 0.75rem;
}
p:has(> label + .btn-bma) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
p > label + .btn-bma {
    margin: 0;
}
.btn-bma + a:not(.btn-bma) {
    margin-inline-start: 1rem;
}
:is(
        .hero-actions,
        .child-switch form,
        .filter-actions,
        .lookup-form,
        .stub-buy form,
        .section-head,
        .stub-buy,
        .action-bar
    )
    > .btn-bma {
    margin-inline: 0;
}
.dt-container {
    margin-bottom: 1.5rem;
}
.dt-container .dt-search {
    margin-bottom: 0.75rem;
}
.dt-container .dt-search input {
    margin-left: 0.5rem;
}
.dt-container .dt-info {
    padding-top: 0.75rem;
}
.dt-container th.dt-orderable-asc,
.dt-container th.dt-orderable-desc {
    cursor: pointer;
}
.cell-list {
    margin: 0;
    padding-left: 1.1rem;
}
.trip-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat {
    border: var(--rule);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    background: var(--paper);
}
.stat h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}
.stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}
.stat p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
a.stat--link {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.stat--link h3 {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
a.stat--link:hover {
    background: var(--tint);
}
.waitlist-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}
.waitlist-mode .form-label {
    margin: 0;
}
.waitlist-mode .form-select {
    width: auto;
    max-width: 100%;
}
.attention-list {
    list-style: none;
    padding: 0;
}
.attention-list li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--line-strong);
}
.attention-list a {
    margin-left: 0.75rem;
}
.attention-list .attention-parts {
    list-style: none;
    margin: 0.3rem 0 0 1.25rem;
    padding: 0;
}
.attention-list .attention-parts li {
    padding: 0.1rem 0;
    border-bottom: 0;
    color: var(--ink-soft);
}
.refunds-waiting {
    margin: 1.5rem 0 2rem;
}

.panel h3 {
    overflow-wrap: anywhere;
}
.panels--tools .panel:nth-child(4n + 2) h3,
.panels--tools .panel:nth-child(4n + 3) h3 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.tool-panel {
    position: relative;
}
.tool-panel h3 {
    padding-inline-end: 2.5rem;
}
.panel-link {
    color: inherit;
    text-decoration: none;
}
.panel-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}
.tool-panel:hover .panel-link {
    color: inherit;
}
.panel-link:focus-visible {
    outline: none;
}
.tool-panel:has(.panel-link:focus-visible) {
    outline: 3px solid var(--focus, var(--ink));
    outline-offset: 3px;
}
.fav-form {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 1;
    margin: 0;
}
.fav-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--deep);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.fav-toggle:hover {
    border-color: currentColor;
}
.fav-toggle:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.tool-group:not([hidden]) ~ .tool-group {
    margin-top: 3.5rem;
}
.tool-filter .field-input {
    flex: 1 1 16rem;
}
.tool-count {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.8rem;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}
.bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--ink-soft);
}
.tool-digest {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: var(--rule);
    color: var(--ink-soft);
}
.tool-group[hidden],
.panels--tools .panel[hidden] {
    display: none;
}
.tool-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: var(--rule);
}
.tool-group-head h2 {
    margin: 0;
}
.tool-group-head p {
    margin: 0;
    color: var(--ink-soft);
}

.panel[data-shade="deep"] {
    --accent: #000088;
    --on-accent: #fafaf7;
}
.panel[data-shade="mid"] {
    --accent: #3a3fc4;
    --on-accent: #fafaf7;
}
.panel[data-shade="tint"] {
    --accent: #d1d1ea;
    --on-accent: #1b1c21;
}
.panel[data-shade="pale"] {
    --accent: #ecebf6;
    --on-accent: #1b1c21;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.form-control,
.form-select,
.field select,
.field textarea {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink);
    background-color: var(--field);
    border: var(--field-rule);
    border-radius: var(--radius-sm);
    box-shadow: none;
}
.form-control:focus,
.form-select:focus,
.field select:focus,
.field textarea:focus {
    color: var(--ink);
    background-color: var(--field);
    border-color: var(--ink);
    outline: 3px solid var(--accent);
    outline-offset: 0;
    box-shadow: none;
}
:where(main) select:not([class], [multiple]) {
    max-width: 100%;
    padding: 0.6rem 2.4rem 0.6rem 0.85rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink);
    background: var(--field)
        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231b1c21' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")
        no-repeat right 0.8rem center / 14px 10px;
    border: var(--field-rule);
    border-radius: var(--radius-sm);
    appearance: none;
}
:where(main) select:not([class], [multiple]):focus {
    outline: 3px solid var(--accent);
    outline-offset: 0;
}
:where(main) input:is([type="checkbox"], [type="radio"]):not([class]) {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    vertical-align: -0.2rem;
    accent-color: var(--accent);
}
:where(main) label:has(> input[type="checkbox"]:not([class])) {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
}
:where(main) label:has(> input[type="checkbox"]:not([class])) > input {
    flex: none;
    margin-top: 0.15rem;
}
.form-control::placeholder {
    color: var(--ink-soft);
    opacity: 0.8;
}
.form-control:disabled,
.form-select:disabled {
    background-color: var(--paper-deep);
    color: var(--ink-soft);
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0;
    margin-bottom: 0.6rem;
}
.form-check-input,
.field--check input {
    flex: none;
    float: none;
    width: 1.35rem;
    height: 1.35rem;
    margin: 0.1rem 0 0;
    background-color: var(--field);
    border: var(--field-rule);
    accent-color: var(--accent);
}
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--ink);
}
.form-check-input:focus {
    box-shadow: none;
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}
.form-check-label small {
    color: var(--ink-soft);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: var(--paper-deep);
    --bs-table-color: var(--ink);
    --bs-table-border-color: var(--ink);
    border: var(--rule);
    font-size: 0.95rem;
}
.table > thead {
    --bs-table-bg: var(--ink);
    --bs-table-color: var(--paper);
    --bs-table-border-color: var(--ink);
}
.table > thead > tr > th {
    font-weight: 700;
    white-space: nowrap;
}
.data-table td:first-child {
    white-space: nowrap;
}
.table > :not(caption) > * > * {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
}
.table-sm > :not(caption) > * > * {
    padding: 0.45rem 0.65rem;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: var(--rule);
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.alert-warning {
    background: #fff0c2;
    color: #6b4a00;
}
.alert-danger {
    background: var(--danger-tint);
    border-color: var(--danger);
    color: var(--danger-ink);
}

.btn-bma[disabled],
.btn-bma[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.paid-lede {
    max-width: 60ch;
    margin-bottom: 1.75rem;
}
.stub--paid {
    max-width: 44rem;
}
.stub--paid .stub-date b {
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}
.paid-lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.paid-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-weight: 600;
    border-bottom: 1px dashed var(--line-strong);
}
.paid-lines .num {
    white-space: nowrap;
}
.chart {
    margin: 0 0 2rem;
}
.chart-title {
    margin: 0 0 0.5rem;
    font-weight: 700;
}
.chart-box {
    position: relative;
    height: 16rem;
}
.chart-box--bars {
    height: calc(var(--bars, 4) * 2rem + 3rem);
    max-height: 32rem;
}
.chart-numbers {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.chart-numbers summary {
    cursor: pointer;
    color: var(--ink-soft);
}
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    gap: 0 2rem;
}
.paid-line-detail {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink-soft);
}
.paid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin: 0;
}
.paid-meta dt {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.paid-meta dd {
    margin: 0;
    font-weight: 700;
}
.paid-next {
    margin-top: 2rem;
}

.lookup-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    max-width: 40rem;
    margin-bottom: 2rem;
}
.lookup-form .field {
    flex: 1 1 16rem;
    margin: 0;
}
.lookup-results {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.lookup-results li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--line-strong);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
.filter-form #div_id_q,
.filter-form .filter-actions {
    grid-column: 1 / -1;
}
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stub:not(:has(> .stub-date)) {
    grid-template-columns: minmax(0, 1fr) auto;
}
.stub:not(:has(> .stub-date))::before,
.stub:not(:has(> .stub-date))::after {
    display: none;
}
@media (max-width: 640px) {
    .stub:not(:has(> .stub-date)) {
        grid-template-columns: minmax(0, 1fr);
    }
}
.stubs + :is(p, form, h2, .price) {
    margin-top: 1.75rem;
}
.stub-buy form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.stub-buy input[type="number"] {
    width: 4.5rem;
    padding: 0.45rem 0.6rem;
    font-size: 1rem;
    color: var(--ink);
    background: var(--field);
    border: var(--field-rule);
    border-radius: var(--radius-sm);
}

.table-responsive > .dt-container > .row > * {
    padding-inline: 0;
}

@media (max-width: 640px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stat strong {
        font-size: 1.5rem;
    }
}

.inline-form {
    display: inline;
}

.section form h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    margin: 2rem 0 0.75rem;
}
.section
    form:not(
        .lookup-form,
        .filter-form,
        .inline-form,
        .row-actions,
        .table-actions form,
        .action-bar form,
        .row-actions form,
        .bulk-bar
    )
    > .btn-bma {
    margin-top: 1.25rem;
}
.section
    form:not(
        .lookup-form,
        .filter-form,
        .inline-form,
        .row-actions,
        .table-actions form,
        .action-bar form,
        .row-actions form,
        .bulk-bar
    )
    > :is(.mb-3, .field):has(+ .btn-bma) {
    margin-bottom: 0 !important;
}
.section .card-form > .btn-bma:nth-child(1 of :not(input[type="hidden"])) {
    margin-top: 0;
}
.field .field-input[type="date"],
.field input[type="date"] {
    max-width: 16rem;
}
.field--check {
    margin-bottom: 0.6rem;
}
.field--check {
    align-items: flex-start;
}
.field--check label strong {
    font-weight: 700;
}
fieldset.field legend {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.6rem;
}
.stub + :is(p, form) {
    margin-top: 1.75rem;
}

main :is(p, li, a, dd, h1, h2, h3) {
    overflow-wrap: anywhere;
}
main td :is(p, a) {
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    .site-nav {
        margin-inline-start: -0.4rem;
    }
    .site-nav a {
        padding: 0.6rem 0.4rem;
    }
    .section-head:has(> .btn-bma, > form) {
        gap: 0.75rem;
    }
    .section-head > :first-child:has(~ .btn-bma, ~ form) {
        flex-basis: 100%;
    }
    .chip {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        padding-inline: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.25rem;
    }
}

@media (max-width: 380px) {
    .cf-turnstile {
        zoom: 0.9;
    }
    .board-row {
        grid-template-columns: 4rem minmax(0, 1fr) auto;
        gap: 0.35rem 0.75rem;
    }
    .board-time {
        font-size: 1.1rem;
    }
    .board .price {
        font-size: 1.4rem;
    }
}
@media (max-width: 340px) {
    .cf-turnstile {
        zoom: 0.8;
    }
}

.stub-buy img {
    display: block;
    max-width: 100%;
    height: auto;
}
.stub-buy:has(> img:only-child) {
    align-items: center;
}
@media (max-width: 640px) {
    .stub-buy:has(> img:only-child) {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .site-head .btn-bma--sm {
        padding-inline: 0.5rem;
        font-size: 0.85rem;
    }
}

.form-check .form-check-input {
    float: none;
    margin-left: 0;
}

.err-foot {
    border-top: var(--rule);
    padding-block: 1.25rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.err-foot .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 2rem;
}
.err-section {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
}
.err-ticket {
    --stub-w: clamp(9rem, 22vw, 13rem);
    position: relative;
    display: grid;
    grid-template-columns: var(--stub-w) minmax(0, 1fr);
    max-width: 54rem;
    margin-inline: auto;
    background: var(--paper-raised);
    border: var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--lift);
}
.err-ticket::before,
.err-ticket::after {
    content: "";
    position: absolute;
    inset-inline-start: calc(var(--stub-w) - 11px);
    width: 20px;
    height: 20px;
    background: var(--paper);
    border: var(--rule);
    border-radius: 50%;
}
.err-ticket::before {
    top: -12px;
    clip-path: inset(50% 0 0 0);
}
.err-ticket::after {
    bottom: -12px;
    clip-path: inset(0 0 50% 0);
}
.err-stub {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0.75rem;
    background: var(--accent);
    color: var(--on-accent);
    border-inline-end: 1.5px dashed var(--line-strong);
    border-start-start-radius: var(--radius-in);
    border-end-start-radius: var(--radius-in);
    line-height: 1;
    text-align: center;
}
.err-stub small {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.err-stub b {
    font-size: clamp(3rem, 8vw, 4.75rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}
.err-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}
.err-body h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.err-text {
    max-width: 44ch;
}
.err-text p {
    margin-bottom: 0.6rem;
}
.err-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1.5px dashed var(--line-strong);
}

@media (max-width: 640px) {
    .err-ticket {
        grid-template-columns: minmax(0, 1fr);
    }
    .err-ticket::before,
    .err-ticket::after {
        content: none;
    }
    .err-stub {
        position: relative;
        flex-direction: row;
        gap: 1rem;
        padding: 1.5rem 1rem;
        border-inline-end: 0;
        border-bottom: 1.5px dashed var(--line-strong);
        border-radius: var(--radius-in) var(--radius-in) 0 0;
    }
    .err-stub::before,
    .err-stub::after {
        content: "";
        position: absolute;
        bottom: -12px;
        width: 20px;
        height: 20px;
        background: var(--paper);
        border: var(--rule);
        border-radius: 50%;
    }
    .err-stub::before {
        inset-inline-start: -12px;
        clip-path: inset(0 50% 0 0);
    }
    .err-stub::after {
        inset-inline-end: -12px;
        clip-path: inset(0 0 0 50%);
    }
    .err-actions .btn-bma {
        flex: 1 1 100%;
        justify-content: center;
        min-height: 2.75rem;
    }
}

.wrap--form > * {
    max-width: 48rem;
}
.form-intro {
    max-width: 40rem;
    color: var(--ink-soft);
}
.staff-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.form-section {
    min-width: 0;
    margin: 0;
    padding: 0 0 0.1rem;
    background: var(--paper-raised);
    border: var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--lift);
}
.form-section > .form-section-head {
    margin: 0;
    border-radius: var(--radius-in) var(--radius-in) 0 0;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--on-accent);
    background: var(--accent);
    border-bottom: var(--rule);
}
.form-section-blurb {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
}
.form-cell {
    min-width: 0;
}
.form-cell[hidden] {
    display: none;
}
.form-cell--wide {
    grid-column: 1 / -1;
}
.form-cell .mb-3 {
    margin-bottom: 1.1rem !important;
}
:is(.form-cell, .card-form) .form-check {
    flex-wrap: wrap;
}
.form-cell--wide .form-check {
    display: inline-flex;
    margin-inline-end: 1.1rem;
}
.form-text {
    flex-basis: 100%;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.form-check .form-text {
    padding-inline-start: 1.95rem;
    margin-top: 0;
}
:is(.form-cell, .card-form) .form-check-label {
    font-weight: 700;
}
.form-check-label {
    flex: 1 1 0;
    min-width: 0;
}
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    background-image: none;
}
.invalid-feedback {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--danger);
}
.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    background: var(--paper);
    border-top: var(--rule);
}
.form-actions .btn-bma {
    margin-top: 0;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .form-actions .btn-bma {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.card-form {
    max-width: 40rem;
    padding: 1.5rem 1.5rem 1.25rem;
    background: var(--paper-raised);
    border: var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--lift);
}
.card-form .mb-3 {
    margin-bottom: 1.1rem !important;
}
.card-form > .btn-bma {
    margin-top: 0.5rem;
    margin-inline-end: 0.6rem;
}
@media (max-width: 640px) {
    .card-form {
        padding-inline: 1rem;
        box-shadow: var(--lift);
    }
}

.plans {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.plan {
    overflow: hidden;
    background: var(--paper-raised);
    border: var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--lift);
}
.plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding: 0.8rem 1.5rem;
    color: var(--on-accent);
    background: var(--accent);
    border-bottom: var(--rule);
}
.plan-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: inherit;
}
.plan-balance {
    margin: 0;
    font-weight: 700;
}
.plan-rows {
    margin: 0 1.5rem;
    padding: 0;
    list-style: none;
}
.plan-row {
    display: grid;
    grid-template-columns: minmax(7rem, 1fr) minmax(0, 1.5fr) auto auto;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.7rem 0;
    border-top: 1.5px dashed var(--line-strong);
}
.plan-row:first-child {
    border-top: 0;
}
.plan-row--paid {
    color: var(--ink-soft);
}
.plan-row--this {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
    font-weight: 700;
    background: var(--paper-deep);
}
.plan-sums {
    display: grid;
    justify-content: end;
    gap: 0.2rem;
    margin: 0 1.5rem;
    padding: 0.7rem 0 1rem;
    border-top: var(--rule);
}
.plan-sums div {
    display: grid;
    grid-template-columns: auto 7rem;
    gap: 1rem;
    text-align: end;
}
.plan-sums dt,
.plan-sums dd {
    margin: 0;
}
.plan-sums-owed {
    font-weight: 800;
}
.plan-note {
    margin: 0 1.5rem 1rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.plan-row--overdue .plan-when {
    font-weight: 700;
    color: var(--danger);
}
.plan-amount {
    text-align: end;
    font-weight: 700;
}
.plan-all {
    margin: 1rem 1.5rem 1.25rem;
}
@media (max-width: 640px) {
    .plan {
        box-shadow: var(--lift);
    }
    .plan-head {
        padding-inline: 1rem;
    }
    .plan-rows {
        margin-inline: 1rem;
    }
    .plan-all,
    .plan-sums,
    .plan-note {
        margin-inline: 1rem;
    }
    .plan-row {
        grid-template-columns: 1fr auto;
    }
    .plan-when {
        grid-row: 2;
        grid-column: 1;
    }
    .plan-row form,
    .plan-row > span:last-child {
        grid-row: 2;
        grid-column: 2;
    }
}

.repeater {
    display: grid;
    gap: 0.6rem;
}
.repeater-head,
.repeater-row {
    display: grid;
    gap: 0.6rem;
    align-items: center;
}
.repeater--2 :is(.repeater-head, .repeater-row) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 2.5rem;
}
.repeater--3 :is(.repeater-head, .repeater-row) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 2.5rem;
}
/* Kinds of ticket on an event: one card per ticket, in three lines. */
.repeater--tickets .repeater-head {
    display: none;
}
.repeater--tickets .repeater-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.repeater--tickets .repeater-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 0.9rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    align-items: end;
}
.repeater--tickets .repeater-cell {
    min-width: 0;
}
.repeater--tickets .repeater-cell--off {
    display: none;
}
.repeater--tickets .repeater-cell:nth-of-type(1) {
    grid-area: 1 / 1 / 2 / 4;
}
.repeater--tickets .repeater-cell:nth-of-type(2) {
    grid-area: 1 / 4 / 2 / 5;
}
.repeater--tickets .repeater-cell:nth-of-type(6) {
    grid-area: 1 / 5 / 2 / 7;
}
.repeater--tickets .repeater-cell:nth-of-type(3) {
    grid-area: 2 / 1 / 3 / 2;
}
.repeater--tickets .repeater-cell:nth-of-type(4) {
    grid-area: 2 / 2 / 3 / 3;
}
.repeater--tickets .repeater-cell:nth-of-type(5) {
    grid-area: 2 / 3 / 3 / 4;
}
.repeater--tickets .repeater-cell:nth-of-type(7) {
    grid-area: 2 / 4 / 3 / 6;
}
.repeater--tickets .repeater-cell:nth-of-type(8),
.repeater--tickets .repeater-cell:nth-of-type(9) {
    grid-area: 3 / 1 / 4 / 4;
}
.repeater--tickets .repeater-remove {
    grid-area: 2 / 6 / 3 / 7;
    justify-self: end;
}
@media (max-width: 640px) {
    .repeater--tickets .repeater-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .repeater--tickets .repeater-cell:nth-of-type(n),
    .repeater--tickets .repeater-remove {
        grid-area: auto;
        grid-column: auto;
    }
    .repeater--tickets .repeater-cell:nth-of-type(1),
    .repeater--tickets .repeater-cell:nth-of-type(6),
    .repeater--tickets .repeater-cell:nth-of-type(8),
    .repeater--tickets .repeater-cell:nth-of-type(9),
    .repeater--tickets .repeater-remove {
        grid-column: 1 / -1;
    }
}
.repeater-head {
    font-size: 0.85rem;
    font-weight: 700;
}
.repeater-rows {
    display: grid;
    gap: 0.6rem;
}
.repeater-remove {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    line-height: 1;
    color: var(--ink);
    background: var(--field);
    border: var(--rule);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.repeater-remove:hover,
.repeater-remove:focus-visible {
    background: var(--danger-tint);
}
.repeater > [data-repeater-add] {
    justify-self: start;
}
.repeater--questions .repeater-head {
    display: none;
}
.repeater--questions .repeater-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.repeater--questions .repeater-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    padding: 0.75rem;
    background: var(--paper-raised);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}
.repeater--questions .repeater-cell:first-child,
.repeater--questions .repeater-cell[data-show-when] {
    grid-column: 1 / -1;
}
.repeater--questions .repeater-actions {
    grid-row: 2;
    grid-column: -2 / -1;
}
.repeater--questions .repeater-rows {
    gap: 0.75rem;
}
.preview > * {
    margin-block: 0;
}
.preview > * + * {
    margin-top: var(--flow);
}
.preview > :is(.card-form, .row-list, .form-alert) + *,
.preview > :not(h2) + :is(.card-form, .row-list) {
    margin-top: var(--flow-block);
}
.preview > * + h2 {
    margin-top: var(--flow-heading);
}
.preview > h2 + * {
    margin-top: var(--flow-tight);
}
.preview > h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.preview .row-list li > span {
    flex: 1 1 16rem;
}
.repeater--parent-questions .repeater-head {
    display: none;
}
.repeater--parent-questions .repeater-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.repeater--parent-questions .repeater-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    padding: 0.75rem;
    background: var(--paper-raised);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}
.repeater--parent-questions .repeater-cell:nth-of-type(1),
.repeater--parent-questions .repeater-cell:nth-of-type(4),
.repeater--parent-questions .repeater-cell:nth-of-type(5),
.repeater--parent-questions .repeater-cell:nth-of-type(6),
.repeater--parent-questions .repeater-cell:nth-of-type(7) {
    grid-column: 1 / -1;
}
.repeater-picture {
    display: grid;
    gap: 0.5rem;
    justify-items: start;
}
.repeater-picture-preview {
    max-width: min(100%, 20rem);
    max-height: 12rem;
    height: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}
.repeater-picture-status:empty {
    display: none;
}
.repeater-picture-status {
    font-size: 0.85rem;
}
.form-block--picture {
    margin: 0 0 1.25rem;
}
.form-block--picture img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
.repeater--parent-questions .repeater-cell:nth-of-type(2) {
    grid-row: 2;
    grid-column: 1;
}
.repeater--parent-questions .repeater-cell:nth-of-type(3) {
    grid-row: 2;
    grid-column: 2;
}
.repeater--parent-questions .repeater-actions {
    grid-row: 2;
    grid-column: 3;
    justify-self: end;
}
.repeater--parent-questions .repeater-cell--off {
    display: none;
}
.repeater--parent-questions .repeater-rows {
    gap: 0.75rem;
}
.repeater--declarations .repeater-head {
    display: none;
}
.repeater--declarations .repeater-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
}
.repeater--declarations .repeater-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 0.75rem;
    background: var(--paper-raised);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}
.repeater--declarations .repeater-cell:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
}
.repeater--declarations .repeater-rows {
    gap: 0.75rem;
}
.repeater-actions {
    display: flex;
    gap: 0.3rem;
}
.repeater-move {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--ink);
    background: var(--field);
    border: var(--rule);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.repeater-move:hover,
.repeater-move:focus-visible {
    background: var(--tint);
}
.repeater-row:first-child .repeater-move[data-repeater-move="-1"],
.repeater-row:last-child .repeater-move[data-repeater-move="1"] {
    visibility: hidden;
}
.repeater-cell--off {
    visibility: hidden;
}

.form-section--fold > summary {
    display: flex;
    border-radius: var(--radius-in);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
    background: var(--paper-raised);
    cursor: pointer;
    list-style: none;
}
.form-section--fold > summary:hover {
    background: var(--tint);
}
.form-section--fold[open] > summary {
    color: var(--on-accent);
    border-radius: var(--radius-in) var(--radius-in) 0 0;
    background: var(--accent);
    border-bottom: var(--rule);
}
.form-section--fold > summary::-webkit-details-marker {
    display: none;
}
.form-section--fold > summary:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: -6px;
}
.form-section-title {
    min-width: 0;
}
.form-section-state {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.75rem;
}
.form-section-tag {
    padding: 0.15rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ink);
    background: var(--field);
    border: var(--rule);
    border-radius: var(--radius-sm);
}
.form-section-tag--set {
    color: var(--paper);
    background: var(--ink);
}
.form-section-state::after {
    content: "\f64d" / "";
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    font-family: bootstrap-icons;
    font-size: 1.1rem;
    font-weight: normal;
    line-height: 1;
    color: var(--paper);
    background: var(--ink);
    border: var(--rule);
    border-radius: var(--radius-sm);
}
.form-section--fold[open] > summary .form-section-state::after {
    content: "\f63b" / "";
}

.form-section > :not(.form-section-head, summary) {
    margin-inline: 1.5rem;
}
.form-section > :is(.form-section-head, summary) + * {
    margin-top: 1.25rem;
}
@media (max-width: 640px) {
    .form-section {
        box-shadow: var(--lift);
    }
    .form-section > .form-section-head,
    .form-section--fold > summary {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    .form-section > :not(.form-section-head, summary) {
        margin-inline: 1rem;
    }
}

.repeater-label {
    display: none;
}
@media (max-width: 640px) {
    .repeater-head {
        display: none;
    }
    .repeater-label {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
        font-weight: 700;
    }
    .repeater :is(.repeater-row) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.75rem;
        border: 1.5px dashed var(--line-strong);
        border-radius: var(--radius-sm);
    }
    .repeater .repeater-cell {
        grid-column: 1 / -1;
    }
    .repeater--3 .repeater-cell:nth-of-type(n + 2) {
        grid-column: auto;
    }
    .repeater .repeater-remove,
    .repeater .repeater-actions {
        grid-column: 1 / -1;
        justify-self: end;
    }
    .repeater .repeater-actions .repeater-remove {
        grid-column: auto;
    }
    .repeater-cell--off {
        display: none;
    }
    .repeater--questions .repeater-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .repeater--questions .repeater-actions {
        grid-row: auto;
        grid-column: auto;
    }
    .repeater--parent-questions .repeater-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .repeater--parent-questions .repeater-row > .repeater-cell,
    .repeater--parent-questions .repeater-actions {
        grid-row: auto;
        grid-column: 1 / -1;
    }
}

.ts-wrapper.form-select.focus,
.ts-wrapper.form-control.focus {
    border-color: var(--ink);
    outline: 3px solid var(--accent);
    outline-offset: 0;
}
.ts-wrapper .ts-control,
.ts-wrapper.form-select .ts-control {
    padding-block: 0.7rem;
    padding-inline-start: 0.85rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink);
}
.ts-control input {
    color: var(--ink);
}
.ts-wrapper.form-select.focus .ts-control,
.ts-wrapper.form-control.focus .ts-control {
    box-shadow: none !important;
}
.ts-wrapper .ts-dropdown,
.ts-wrapper .ts-dropdown.form-select,
.ts-wrapper .ts-dropdown.form-control {
    margin-top: 6px;
    padding: 0;
    color: var(--ink);
    background: var(--field);
    border: var(--field-rule);
    border-radius: var(--radius-sm);
    box-shadow: var(--lift);
}
.ts-dropdown .ts-dropdown-content {
    padding: 0.25rem 0;
}
.ts-dropdown .option,
.ts-dropdown .create,
.ts-dropdown .no-results {
    padding: 0.6rem 0.85rem;
}
.ts-dropdown .active,
.ts-dropdown .active.create {
    color: var(--ink);
    background-color: var(--tint);
}
.ts-dropdown .create,
.ts-dropdown .no-results {
    color: var(--ink-soft);
}
.ts-dropdown .create strong {
    color: var(--ink);
}
.ts-dropdown [data-selectable] .highlight {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: var(--underline);
    text-underline-offset: var(--underline-offset);
    background: none;
}

.card-form--wide {
    max-width: 52rem;
}
.card-form > :is(h2, h3) {
    margin-bottom: 0.75rem;
}
.card-form > :is(h2, h3):nth-child(1 of :not(input[type="hidden"])) {
    margin-top: 0;
}
.card-form > :last-child {
    margin-bottom: 0;
}
.card-form .field:last-of-type {
    margin-bottom: 1.1rem;
}

.plan-head .stub-meta,
.plan-head .stub-meta span {
    color: inherit;
}

.viewing-as {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: var(--danger-tint);
    color: var(--danger-ink);
    border-top: var(--rule);
}
.viewing-as-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-block: 0.75rem;
}
.viewing-as p {
    margin: 0;
    font-weight: 700;
}

.plan-summary {
    margin: 0.75rem 0 0;
    font-weight: 700;
}
.plan-summary--ok {
    color: var(--ink);
}
.plan-summary--off {
    color: var(--danger-ink);
}
.plan-spread {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
}
.plan-spread label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.plan-spread input[type="number"] {
    width: 4.5rem;
}
.plan-spread input[type="date"] {
    width: auto;
}

.questions-library {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}
.questions-library .form-select {
    width: auto;
    max-width: 100%;
}
.questions-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--field);
}
.questions-preview-head {
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.questions-preview-field + .questions-preview-field {
    margin-top: 0.75rem;
}
.questions-preview-field .form-label {
    margin-bottom: 0.25rem;
}
.scope-years {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-left: 1.75rem;
}
.scope-years .form-text {
    flex-basis: 100%;
}

.perm-picker {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.perm-picker-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}
.perm-picker-tools .btn-bma + .btn-bma {
    margin-inline-start: 0;
}
.perm-area-body {
    margin: 0;
    padding: 0.25rem 1.25rem 1rem;
}
.card-form fieldset.field > legend {
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 700;
}
.approval-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 26rem;
}
.approval-form .form-control {
    flex: 1 1 12rem;
    width: auto;
    min-width: 0;
}
.stub-buy .approval-form {
    justify-content: flex-end;
}
@media (max-width: 640px) {
    .stub-buy .approval-form {
        justify-content: flex-start;
        max-width: none;
    }
}

.badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: 0.1em;
    color: var(--ink);
    background: var(--field);
    border: var(--rule);
    border-radius: var(--radius-sm);
}

.dt-container > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin: 0 0 0.75rem;
}
.dt-container > .row:last-child {
    margin: 0.75rem 0 0;
}
.dt-container > .row > * {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}
.dt-container > .row > .col-12:has(> table) {
    display: block;
    flex: 1 1 100%;
}
.dt-container .dt-search,
.dt-container .dt-length,
.dt-container .dt-info,
.dt-container .dt-paging {
    margin: 0;
    text-align: left;
}
.dt-container .dt-length select {
    min-width: 5rem;
    margin-inline: 0.5rem;
}
.dt-container .dt-paging .pagination {
    flex-wrap: wrap;
    margin: 0;
}
.data-table td[data-order],
.data-table td.num {
    white-space: nowrap;
}
@media (max-width: 640px) {
    .dt-container > .row > :has(> .dt-search) {
        flex: 1 1 100%;
    }
    .dt-container .dt-search {
        display: flex;
        align-items: center;
        flex: 1 1 100%;
    }
    .dt-container .dt-search input {
        flex: 1 1 auto;
        width: auto;
        margin-left: 0.5rem;
    }
}
@media (max-width: 640px) {
    .dt-container > .row > .ms-auto {
        margin-left: 0;
    }
}
.data-table .dt-type-numeric:not(.num):not(.text-end) {
    text-align: left;
}

.register-table td {
    vertical-align: middle;
    transition: background-color 0.3s;
}

.register-table th.dt-type-numeric {
    text-align: left;
}

.register-table th.dt-type-numeric .dt-column-header {
    flex-direction: row;
}

.register-table tr.is-just-marked > td,
.register-table tr.is-unchecked > td {
    background: var(--tint);
}

.register-name {
    font-weight: 600;
}

.register-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.register-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    border: var(--rule);
    border-radius: 999px;
    background: var(--field);
    cursor: pointer;
    font-size: 0.95rem;
}

.register-choice input {
    accent-color: var(--accent);
}

.register-choice:has(input:checked) {
    background: var(--accent);
    color: var(--on-accent);
}

.register-choice:has(input:focus-visible) {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.scan-box {
    margin-bottom: 1.5rem;
}

.scan-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scan-row .form-control {
    flex: 1 1 12rem;
    min-height: 44px;
}

.scan-row > .btn-bma {
    margin: 0;
}

.scan-box video {
    width: 100%;
    max-width: 420px;
    margin-top: 0.75rem;
    border: var(--rule);
}

.session-list li.is-cancelled a {
    text-decoration: line-through;
}

.register-grid td,
.register-grid th {
    white-space: nowrap;
}

.form-pair {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.club-attendance {
    margin-bottom: 1.5rem;
}

.choice-form fieldset label {
    display: block;
    min-height: 44px;
    padding: 0.5rem 0;
}

.pay-page > * {
    max-width: 40rem;
}

.pay-picture {
    display: block;
    width: 100%;
    max-height: 18rem;
    object-fit: cover;
    border: var(--rule);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.pay-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border: var(--rule);
    border-radius: var(--radius);
    background: var(--paper-raised);
}

.pay-summary dt {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.pay-summary dd {
    margin: 0;
}

.target-bar {
    height: 0.75rem;
    border: var(--rule);
    border-radius: 999px;
    overflow: hidden;
    background: var(--field);
}

.target-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
}

.budget-list {
    list-style: none;
    padding: 0;
}

.budget-list li {
    margin-bottom: 1rem;
}

.budget-list p {
    margin: 0 0 0.25rem;
}

:is(.form-cell, .card-form) fieldset > legend.form-label {
    font-size: 1rem !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
:is(.form-cell, .card-form) .form-check:has(> input[type="radio"]),
.card-form .form-check:has(> input[type="checkbox"][name="student"]) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    max-width: 36rem;
    margin: 0 0 0.6rem;
    padding: 0.65rem 0.9rem;
    border: var(--field-rule);
    border-radius: var(--radius);
    background: var(--field);
    cursor: pointer;
}
:is(.form-cell, .card-form) .form-check:has(> input[type="radio"]) .form-check-label,
.card-form .form-check:has(> input[type="checkbox"][name="student"]) .form-check-label {
    flex: 1;
    cursor: pointer;
    font-weight: 600;
}
:is(.form-cell, .card-form) .form-check:has(> input[type="radio"]:checked),
.card-form .form-check:has(> input[type="checkbox"][name="student"]:checked) {
    background: var(--tint);
}
:is(.form-cell, .card-form) .form-check:has(> input[type="radio"]:checked) .form-check-label {
    font-weight: 700;
}
:is(.form-cell, .card-form) .form-check:has(> input[type="radio"]:focus-visible) {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}
:is(.form-cell, .card-form) .form-check:has(> input[type="radio"]:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-cell--wide .form-check:has(> input[type="radio"]) {
    display: flex;
    margin-inline-end: 0;
}
:is(.form-cell, .card-form) fieldset:has(input[type="radio"]) .form-text {
    margin-top: 0.75rem;
    max-width: 36rem;
}

.wallet-design {
    display: grid;
    gap: 2rem;
    align-items: start;
}
@media (min-width: 60rem) {
    .wallet-design {
        grid-template-columns: minmax(0, 1fr) 20rem;
    }
    .wallet-preview {
        position: sticky;
        top: 1rem;
    }
}
.wallet-preview {
    --pass-bg: #c93a1f;
    --pass-text: #fff8f2;
    --pass-label: #fff8f2;
    --pass-google-text: #ffffff;
    display: grid;
    gap: 0.75rem;
}
.wallet-preview [hidden] {
    display: none !important;
}
.wallet-preview-title {
    font-size: 1rem;
    margin: 0.5rem 0 0;
}
.wallet-apple,
.wallet-google {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 0.75rem;
    background: var(--pass-bg);
    color: var(--pass-text);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
}
.wallet-google {
    border-radius: 1.25rem;
    background: var(--pass-google-bg, var(--pass-bg));
    color: var(--pass-google-text);
    overflow: hidden;
}
.wallet-apple-head,
.wallet-google-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.75rem;
    font-weight: 600;
}
.wallet-apple-logo {
    max-height: 1.75rem;
    max-width: 8rem;
}
.wallet-apple {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.wallet-apple-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.wallet-apple-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px);
    transform: scale(1.15);
}
.wallet-apple:has(.wallet-apple-strip:not([hidden])) .wallet-apple-bg {
    display: none;
}
.wallet-test {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 2rem;
}
.wallet-test select {
    min-width: 0;
    max-width: 100%;
}
.wallet-google-wide img {
    display: block;
    max-width: 100%;
    max-height: 2.5rem;
}
.wallet-google:has(.wallet-google-wide:not([hidden])) .wallet-google-head {
    display: none;
}
.wallet-apple-header {
    margin-left: auto;
    text-align: right;
    font-weight: 400;
}
.wallet-google-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: contain;
    background: rgb(255 255 255 / 0.9);
}
.wallet-apple-strip {
    margin: 0 -0.9rem;
}
.wallet-apple-hero {
    position: relative;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}
.wallet-apple-thumb img {
    display: block;
    max-width: 4.5rem;
    max-height: 4.5rem;
    object-fit: contain;
}
.wallet-apple-hero:has(.wallet-apple-strip:not([hidden])) {
    display: block;
}
.wallet-apple-hero:has(.wallet-apple-strip:not([hidden])) .wallet-apple-thumb {
    display: none;
}
.wallet-preview[data-align="PKTextAlignmentCenter"] .wallet-apple .wallet-row {
    justify-content: space-around;
    text-align: center;
}
.wallet-preview[data-align="PKTextAlignmentRight"] .wallet-apple .wallet-row {
    justify-content: flex-end;
    text-align: right;
}
.wallet-apple-hero:has(.wallet-apple-strip:not([hidden])) .wallet-field--primary {
    position: absolute;
    inset: auto 0 0.4rem;
}
.wallet-apple-hero--clear:has(.wallet-apple-strip:not([hidden])) .wallet-field--primary,
.wallet-apple:not(:has(.wallet-apple-hero--clear .wallet-apple-strip:not([hidden])))
    .wallet-field--title-below {
    display: none;
}
.wallet-apple-strip img,
.wallet-google-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 375 / 98;
    object-fit: cover;
}
.wallet-google-hero {
    margin: 0 -0.9rem -0.9rem;
}
.wallet-google-hero img {
    aspect-ratio: 1032 / 336;
}
.wallet-google-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.wallet-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.wallet-field {
    display: grid;
    min-width: 0;
}
.wallet-field--primary .wallet-value {
    font-size: 1.4rem;
    line-height: 1.2;
}
.wallet-label {
    color: var(--pass-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.wallet-google .wallet-label {
    color: inherit;
    opacity: 0.8;
}
.wallet-value {
    overflow-wrap: anywhere;
}
.wallet-qr {
    justify-self: center;
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0.35rem;
    border-radius: 0.4rem;
    background: #ffffff;
    color: #1b1c21;
    font-size: 0.75rem;
}
.wallet-qr img {
    width: 6.5rem;
    height: 6.5rem;
}
.wallet-contrast {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    background: var(--danger-tint);
    color: var(--danger-ink);
}

.manage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 2.5rem;
    align-items: start;
    margin-top: 2.5rem;
}
.manage-main > h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    margin: 2.25rem 0 0.75rem;
}
.manage-main > h2:first-child {
    margin-top: 0;
}
.manage-side {
    display: grid;
    gap: 1.5rem;
}
.manage-side .card-form {
    max-width: none;
    margin-top: 0;
}
.manage-side h2 {
    font-size: 1.4rem;
}
.manage-qr img {
    display: block;
    margin-block: 0.5rem;
}
.manage-qr a {
    overflow-wrap: anywhere;
}
.manage-fold {
    margin-top: 1.5rem;
}
.manage-fold-body {
    padding: 1.25rem 1.5rem;
}
@media (max-width: 900px) {
    .manage-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.table-actions {
    min-width: 13rem;
    text-align: end;
}
.table-actions:has(> :only-child) {
    min-width: 0;
}
.table-actions > * {
    margin: 0.2rem 0 0.2rem 0.4rem;
    vertical-align: middle;
}
.table-actions form {
    display: inline-block;
    vertical-align: middle;
}
.table-actions .btn-bma {
    white-space: nowrap;
}

@media print {
    .dt-container > .row:has(.dt-search, .dt-paging, .dt-info),
    .table-actions {
        display: none !important;
    }
}

.row-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 40rem;
    border-top: 1.5px dashed var(--line-strong);
}
.section .wrap > .row-list {
    padding: 0;
}
.row-list li > :last-child:not(:first-child) {
    margin-inline-start: auto;
}
.row-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1.5px dashed var(--line-strong);
}
.section .wrap > .row-list li + li {
    margin-top: 0;
}
.row-list strong {
    margin-inline-end: 0.5rem;
    font-weight: 700;
}
.row-list .stub-meta {
    margin-top: 0.15rem;
}
.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.row-actions form {
    margin: 0;
}
.row-actions .btn-bma {
    margin: 0;
}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
}
.action-bar form {
    margin: 0;
}
.action-bar .btn-bma {
    margin: 0;
}
.action-bar + * {
    margin-top: 0.5rem;
}
.action-note {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.chips--groups {
    margin-bottom: 0;
}
.chips-label {
    align-self: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
}
.row-list--steps li {
    flex-wrap: nowrap;
    align-items: flex-start;
}
.row-list--steps .row-text {
    flex: 1 1 auto;
    min-width: 0;
}
.row-list--steps .btn-bma {
    flex: none;
}
.row-list--steps strong {
    display: block;
    margin: 0;
}
.row-for::after {
    content: " \00b7 ";
}
.row-state {
    font-weight: 700;
}
.is-done .row-state,
.row-for {
    color: var(--ink-soft);
    font-weight: 400;
}
.needs-change .row-state {
    color: var(--danger);
}
.row-why {
    margin: 0.4rem 0 0;
    padding-inline-start: 0.75rem;
    border-inline-start: 3px solid var(--danger);
    overflow-wrap: anywhere;
}
@media (max-width: 480px) {
    .row-list--steps li {
        flex-wrap: wrap;
    }
    .row-list--steps .row-text {
        flex-basis: 100%;
    }
}
.due-body p + p {
    margin-top: 0.5rem;
}
.row-list li:not(.is-done) > span {
    font-weight: 600;
}
.row-list li.is-done > span {
    color: var(--ink-soft);
}
.row-list li.is-done strong {
    color: var(--ink);
}

.doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.section .wrap > .doc-list {
    padding: 0;
}
.doc-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
}
.doc-list a {
    font-weight: 700;
}

.guide-list li {
    margin-bottom: 1rem;
}
.guide-list li p {
    flex-basis: 100%;
    margin: 0;
}

.form-note {
    margin: 0.9rem 0 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.scan-tool > :not(h1, .scan-list, ul) {
    max-width: 34rem;
}
.scan-tool select {
    width: 100%;
}

.form-control[type="color"] {
    width: 6rem;
    height: 2.95rem;
    padding: 0.3rem;
    cursor: pointer;
}
.form-control[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.form-control[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 3px;
}
.form-control[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 3px;
}

.card-form > textarea + * {
    margin-top: 0.9rem;
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.stubs + .link-row {
    margin-top: 1.75rem;
}

.guest-note {
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px dashed var(--line-strong);
    font-size: 0.95rem;
}

.table-responsive {
    position: relative;
}

.classify-form {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 40rem;
}
.classify-form > :is(select, .ts-wrapper) {
    flex: 1 1 14rem;
    min-width: 0;
}

.table code {
    overflow-wrap: anywhere;
}
details pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .table-cards,
    .table-cards tbody,
    .table-cards tr,
    .table-cards :is(td, tbody th) {
        display: block;
        width: 100%;
    }
    .table-cards thead {
        display: none;
    }
    .table-cards tbody tr {
        padding-block: 0.4rem;
        border-bottom: var(--rule);
    }
    .table-cards tbody tr:last-child {
        border-bottom: 0;
    }
    .table.table-cards > :not(caption) > * > * {
        padding: 0.3rem 0.85rem;
        border-bottom: 0;
    }
    .table.table-cards tbody :is(td, th) {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .table-cards [data-label] > * {
        min-width: 0;
    }
    .table-cards [data-label] {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 0.15rem 1rem;
        text-align: start;
        white-space: normal;
    }
    .table-cards [data-label]::before {
        content: attr(data-label);
        flex: none;
        max-width: 45%;
        font-weight: 700;
        text-align: start;
    }
    .table-cards tbody tr > :first-child {
        font-weight: 700;
    }
    .table-cards tbody tr > :first-child[data-label]::before {
        content: none;
    }
    .table-cards tbody tr > :first-child[data-label] {
        display: block;
        text-align: start;
    }
    .table-cards td.table-actions {
        min-width: 0;
        padding-top: 0.5rem;
    }
    .table-cards td.table-actions > *,
    .table-cards td.table-actions .btn-bma {
        margin: 0;
    }
    .table-cards td.table-actions form {
        display: flex;
    }
    .table-cards td.table-actions,
    .table-cards td.table-actions[data-label] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        text-align: start;
    }
    .table-cards td.table-actions[data-label]::before {
        content: none;
    }
    .table-cards td:empty {
        display: none;
    }
}

.manage-main .table > thead > tr > th {
    white-space: normal;
}

.help-topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 0.5rem 2.5rem;
    margin-bottom: 2.5rem;
}
.help-topics h3 {
    font-size: 1.15rem;
    margin: 1rem 0 0.75rem;
}
.help-steps {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}
.help-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem 2.5rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--paper-deep);
}
.help-step:first-child {
    padding-top: 0;
}
@media (min-width: 52rem) {
    .help-step {
        grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    }
    .help-steps--wide .help-step {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    }
}
.help-step h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-top: 0;
}
.help-step-number {
    color: var(--deep);
}
.help-note {
    padding: 0.9rem 1.1rem;
    background: var(--tint);
    border-radius: var(--radius-in);
}
.help-note p {
    margin: 0;
}
.help-note p + p {
    margin-top: 0.5rem;
}
.help-picture {
    margin: 0;
}
.help-picture img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--paper-deep);
    border-radius: var(--radius);
    background: var(--paper-raised);
}
.help-picture--small {
    max-width: 16rem;
    margin: 0.5rem 0 1rem;
}
.help-picture figcaption {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 0.3rem;
}
.help-actions,
.help-step-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.help-actions {
    margin-top: 2rem;
}
.help-marks {
    margin-bottom: 1.5rem;
}
.help-marks summary {
    cursor: pointer;
    font-weight: 700;
}
@media print {
    .help-actions,
    .lookup-form {
        display: none;
    }
    .help-step {
        break-inside: avoid;
    }
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}
.rich-button {
    min-height: 2.5rem;
    padding: 0.3rem 0.7rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--field);
    border: var(--field-rule);
    border-radius: var(--radius-sm);
}
.rich-button:hover {
    background: var(--paper-deep);
}
.rich-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 1px;
}
.rich-area {
    min-height: 9rem;
    max-height: 32rem;
    overflow-y: auto;
}
.rich-link {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.rich-link[hidden] {
    display: none;
}
.rich-link .form-label {
    flex-basis: 100%;
    margin: 0;
}
.rich-link input {
    flex: 1 1 14rem;
}
.rich-table,
.rich-picture {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.rich-table[hidden],
.rich-picture[hidden] {
    display: none;
}
.rich-table .form-label,
.rich-picture .form-label,
.rich-picture .form-text {
    flex-basis: 100%;
    margin: 0;
}
.rich-table input {
    flex: 0 1 6rem;
}
.rich-picture input {
    flex: 1 1 14rem;
}
.rich-text img,
.rich-area img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: var(--flow) 0;
    border-radius: var(--radius-sm);
}
.rich-text table,
.rich-area table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: var(--flow) 0;
}
.rich-text th,
.rich-text td,
.rich-area th,
.rich-area td {
    min-width: 6rem;
    padding: 0.4rem 0.6rem;
    border: var(--rule);
    text-align: left;
    vertical-align: top;
}
.rich-text th,
.rich-area th {
    background: var(--paper-deep);
}
.rich-text h2,
.rich-area h2 {
    margin: 1.4rem 0 0.5rem;
    font-size: 1.3rem;
}
.rich-text hr,
.rich-area hr {
    border: 0;
    border-top: var(--rule);
    margin: var(--flow-block) 0;
}
.item-cover {
    display: block;
    width: 100%;
    max-height: 22rem;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--flow);
}
.list-thumb {
    display: block;
    width: 100%;
    max-width: 9rem;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}
.product .list-thumb {
    max-width: none;
}
.rich-text > :first-child,
.rich-area > :first-child {
    margin-top: 0;
}
.rich-text > :last-child,
.rich-area > :last-child {
    margin-bottom: 0;
}
.rich-text h3,
.rich-area h3 {
    margin: 1.2rem 0 0.4rem;
    font-size: 1.15rem;
}
.rich-text ul,
.rich-text ol,
.rich-area ul,
.rich-area ol {
    padding-left: 1.4rem;
}
.rich-text a,
.rich-area a {
    color: var(--deep);
    text-decoration: underline;
    text-decoration-thickness: var(--underline);
    text-underline-offset: var(--underline-offset);
    overflow-wrap: anywhere;
}
.pay-after {
    margin: 1.5rem 0;
    padding: 1rem 1.1rem;
    background: var(--paper-raised);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}
.pay-after-head {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}
.pay-contact {
    font-size: 0.95rem;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: var(--rule);
}
.pay-page > .rich-text {
    margin-bottom: 1.5rem;
}
.pay-page > .card-form {
    margin-top: 1.5rem;
}

.declaration {
    margin: 1.5rem 0;
    padding-top: 1.25rem;
    border-top: var(--rule);
}
.card-form > .declaration:first-child,
.card-form > input[type="hidden"] + .declaration {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.declaration-head {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
}
.declaration-text {
    padding: 0.9rem 1.1rem;
    background: var(--paper);
    border: var(--rule);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}
.declaration-text > :last-child {
    margin-bottom: 0;
}
.declaration-part {
    margin-top: 1.1rem;
}
.declaration-part-head {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}
.declaration-part .form-check {
    margin-top: 0.6rem;
}
.declaration-docs {
    margin: 1rem 0 0.4rem;
    font-weight: 600;
}
.signature-field {
    margin: 1.25rem 0 1.1rem;
}
.signature-pad {
    position: relative;
    height: 11rem;
    background: #fffefb;
    border: var(--field-rule);
    border-radius: var(--radius-sm);
    touch-action: none;
    cursor: crosshair;
}
.signature-pad.is-invalid {
    border-color: var(--danger);
}
.signature-pad canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}
.signature-line {
    position: absolute;
    right: 8%;
    bottom: 2.25rem;
    left: 8%;
    border-bottom: 1px dashed #8d8f99;
    pointer-events: none;
}
.signature-pad::after {
    content: "Sign here";
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #5f6371;
    pointer-events: none;
}
.signature-pad.has-signature::after {
    display: none;
}
.signature-pad.is-locked {
    cursor: not-allowed;
    background: var(--paper-deep);
}
.signature-pad.is-locked::after {
    content: attr(data-locked-text);
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    color: var(--ink);
}
.signature-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}
.signature-picture {
    display: block;
    max-width: 12rem;
    height: auto;
    background: #fffefb;
    border: var(--rule);
    border-radius: var(--radius-sm);
}

.confirm-dialog {
    max-width: min(32rem, calc(100vw - 2 * var(--gutter)));
    padding: var(--flow-block-tight);
    border: var(--rule);
    border-radius: var(--radius);
    background: var(--paper-raised);
    color: var(--ink);
}
.confirm-dialog::backdrop {
    background: rgb(0 0 0 / 0.45);
}
.confirm-dialog h2 {
    margin-top: 0;
    font-size: 1.35rem;
}
.confirm-dialog p {
    margin-bottom: var(--flow-tight);
}
.send-warning {
    padding: 0.5rem 0.75rem;
    border-left: 4px solid var(--warn);
    background: var(--warn-tint);
    color: var(--warn-ink);
}
.send-count-input {
    max-width: 10rem;
    font-variant-numeric: tabular-nums;
}
.confirm-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: var(--flow);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --paper: #14161d;
        --band: #0b0d12;
        --on-band: #ebe9e3;
        --paper-deep: #1d2029;
        --ink: #ebe9e3;
        --ink-soft: #a9adb9;
        --paper-raised: #1b1e27;
        --field: #20232d;
        --danger: #ff8a80;
        --danger-tint: #3a1715;
        --danger-ink: #ffc4bd;
        --ok: #6fcf8f;
        --ok-tint: #15301e;
        --ok-ink: #bdeccb;
        --warn: #e0b84a;
        --warn-tint: #33290f;
        --warn-ink: #f5dc9a;
        --line: #2e323d;
        --line-strong: #707482;
    }
    :root[data-app="central"],
    :root [data-app="central"] {
        --accent: #8a90ff;
        --on-accent: #10121a;
        --tint: #24284d;
        --deep: #c3c6ff;
    }
    :root[data-app="events"],
    :root [data-app="events"] {
        --accent: #ff7a5c;
        --on-accent: #10121a;
        --tint: #3b1f18;
        --deep: #ffb3a1;
    }
    :root[data-app="trips"],
    :root [data-app="trips"] {
        --accent: #2fbfa9;
        --on-accent: #10121a;
        --tint: #13332e;
        --deep: #8ee5d8;
    }
    :root[data-app="clubs"],
    :root [data-app="clubs"] {
        --accent: #e9a92a;
        --on-accent: #10121a;
        --tint: #3a2d10;
        --deep: #f6cf78;
    }
    :root[data-app="shop"],
    :root [data-app="shop"] {
        --accent: #ec6aa3;
        --on-accent: #10121a;
        --tint: #3b1a2a;
        --deep: #f7a9cc;
    }
    :root[data-app="aw"],
    :root [data-app="aw"] {
        --accent: #a48cf0;
        --on-accent: #10121a;
        --tint: #2a2142;
        --deep: #cfc2ff;
    }
    .form-alert--error {
        background: var(--danger-tint);
        color: var(--danger-ink);
    }
    .alert-warning,
    .scan-banner--warn {
        background: #3b2f0d;
        color: #ffe08a;
    }
    .scan-banner--ok {
        background: #10331c;
        color: #9be3b1;
    }
    .scan-banner--bad {
        background: #3e1612;
        color: #ffb4ab;
    }
    img:not([src$=".svg"]) {
        filter: brightness(0.92);
    }
    .signature-picture,
    .wallet-qr img {
        filter: none;
    }
}

.api-guide__layout {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 3rem;
}
.api-guide__toc {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 1.5rem);
    align-self: start;
    font-size: 0.95rem;
}
.api-guide__toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}
.api-guide__toc a {
    color: var(--ink);
    text-decoration: none;
}
.api-guide__toc a:hover,
.api-guide__toc a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}
.api-guide__body {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
.api-guide__body > * {
    max-width: 58rem;
}
.api-guide__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 0.75rem;
}
.api-guide__head h1 {
    margin: 0 0 0.75rem;
}
.api-guide__status {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    border: var(--rule);
    font-size: 0.9rem;
}
.api-guide__status.is-off {
    background: var(--danger-tint);
    color: var(--danger-ink);
}
.api-guide__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}
.api-swagger {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem 1rem;
    border: var(--rule);
    border-radius: var(--radius);
    background: #fff;
    color: #1c2130;
    color-scheme: light;
    overflow-x: auto;
}
.api-swagger .swagger-ui .wrapper {
    padding: 0;
}
.api-guide code,
.api-code pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
}
.api-guide :not(pre) > code {
    background: var(--paper-deep);
    padding: 0.05em 0.35em;
    border-radius: 4px;
    overflow-wrap: anywhere;
}
.api-guide__flow {
    list-style: none;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.api-guide__flow li {
    margin: 0 !important;
    padding: 0.9rem 1rem;
    border: var(--rule);
    border-radius: var(--radius);
    background: var(--paper-raised);
    display: grid;
    gap: 0.35rem;
    align-content: start;
}
.api-guide__flow span {
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.api-guide__endpoint span {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--accent);
    color: var(--on-accent);
}
.api-guide__note {
    border-inline-start: 3px solid var(--accent);
    background: var(--paper-raised);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.api-guide__note--private {
    border-color: var(--ink);
}
.api-guide__small {
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.api-fields td:first-child {
    white-space: nowrap;
}
.api-fields td {
    vertical-align: top;
}
.api-examples {
    display: grid;
    gap: 0.6rem;
}
.api-example {
    border: var(--rule);
    border-radius: var(--radius);
    background: var(--paper-raised);
    padding: 0.2rem 1rem;
}
.api-example summary {
    cursor: pointer;
    padding: 0.6rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    align-items: baseline;
}
.api-example__title {
    font-weight: 700;
}
.api-example__request,
.api-example__file {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
}
.api-example__text {
    margin: 0 0 0.75rem;
}
.api-code {
    position: relative;
    margin-bottom: 1rem;
}
.api-code pre {
    margin: 0;
    padding: 1rem;
    background: var(--paper-deep);
    color: var(--ink);
    border: var(--rule);
    border-radius: var(--radius-sm);
    overflow: auto;
    max-height: 32rem;
    line-height: 1.5;
}
.api-code__copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}
@media (max-width: 860px) {
    .api-guide__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    .api-guide__toc {
        position: static;
        border: var(--rule);
        border-radius: var(--radius);
        padding: 1rem;
    }
    .api-guide__toc ol,
    .api-guide__flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .api-guide__flow {
        grid-template-columns: minmax(0, 1fr);
    }
}

.overview-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.overview-group h2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.overview-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.overview-group li {
    padding: 0.55rem 0;
    border-bottom: var(--rule);
}
.overview-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: var(--rule);
    color: var(--ink-soft);
}
.overview-more form {
    margin: 0;
}
.btn-link {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: var(--underline);
    text-underline-offset: var(--underline-offset);
    cursor: pointer;
}
.btn-link:hover {
    color: var(--deep);
}
@media (max-width: 640px) {
    .btn-link {
        padding-block: 0.6rem;
    }
}

.update-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.update-list li {
    padding: 1rem 0;
    border-bottom: var(--rule);
}
.update-list li:first-child {
    border-top: var(--rule);
}
.update-when {
    margin: 0 0 0.35rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.update-text {
    margin: 0;
}
.update-subject {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}
.update-text img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.75rem 0;
    border-radius: var(--radius-sm);
}
.update-list form {
    margin: 0.5rem 0 0;
}

.tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.choice-swap {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}
.table-actions .choice-swap {
    display: inline-flex;
}
.choice-swap .form-select {
    width: auto;
    min-width: 4.5rem;
    flex-shrink: 0;
}
.email-preview {
    margin: 1.5rem 0;
}
.email-preview h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.email-preview .stub-meta {
    margin-bottom: 0.75rem;
}
.email-frame--short {
    height: 32rem;
}
.update-text > :last-child {
    margin-bottom: 0;
}

.wording-email {
    border-top: var(--rule);
}
.wording-email > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.wording-email > summary::-webkit-details-marker {
    display: none;
}
.wording-email > summary:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}
.wording-email[open] > summary {
    color: var(--deep);
}
.wording-email > .card-form,
.wording-email > .wording-test {
    margin-bottom: 1rem;
}
.wording-test {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}
.wording-test .form-text {
    margin: 0;
}
.wording-group > .wording-email:last-child {
    margin-bottom: 1rem;
}

.first-time {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--line-strong);
}
.first-time h2 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}
.first-time p {
    margin: 0;
    color: var(--ink-soft);
}

.delivery-problem {
    color: var(--danger);
}

.tap-screen {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    padding: 1.5rem 1rem;
}
.tap-head,
.tap-main,
.tap-foot {
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
}
.tap-head h1 {
    margin: 0;
}
.tap-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.tap-prompt {
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin: 2rem 0;
}
.tap-banner {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    padding: 2rem 1rem;
}
.tap-nocard summary,
.tap-foot summary {
    cursor: pointer;
    padding: 0.75rem 0;
    min-height: 44px;
}
.tap-nocard summary {
    font-size: 1.25rem;
    font-weight: 600;
}
.tap-results .tap-pick {
    width: 100%;
    text-align: left;
    font-size: 1.15rem;
}
.tap-staff form,
.tap-foot form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.tap-staff input,
.tap-foot input {
    max-width: 18rem;
}
.tap-foot {
    font-size: 0.9rem;
}
.tap-reader {
    position: fixed;
    left: -100px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.register-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border: 1px solid currentColor;
    border-radius: 999px;
}

.plan-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.plan-step {
    padding: 0.1rem 0.45rem;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: nowrap;
    background: var(--field);
    border: var(--rule);
    border-radius: var(--radius-sm);
}
.plan-step--paid {
    color: var(--ink-soft);
    background: var(--paper-deep);
}
.plan-step--overdue {
    font-weight: 700;
    color: var(--danger-ink);
    background: var(--danger-tint);
    border-color: var(--danger);
}

.pay-key {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 var(--flow-tight);
    padding: 0;
    list-style: none;
}
.pay-grid td {
    vertical-align: middle;
}
.pay-box {
    display: block;
    min-width: 7.5rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1.35;
    white-space: nowrap;
    border: 1px solid;
    border-radius: var(--radius-sm);
}
.pay-key .pay-box {
    display: inline-block;
    min-width: 0;
}
button.pay-box {
    width: auto;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
}
button.pay-box[aria-pressed="true"] {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.pay-box--paid {
    color: var(--ok-ink);
    background: var(--ok-tint);
    border-color: var(--ok);
}
.pay-box--soon {
    color: var(--warn-ink);
    background: var(--warn-tint);
    border-color: var(--warn);
}
.pay-box--later {
    color: var(--ink-soft);
    background: var(--field);
    border-color: var(--line-strong);
}
.pay-box--overdue {
    font-weight: 700;
    color: var(--danger-ink);
    background: var(--danger-tint);
    border-color: var(--danger);
}
