:root {
    --ink: #1f2c46;
    --wine: #8b2730;
    --gold: #d9a43b;
    --cream: #fff8ec;
    --paper: #ffffff;
    --muted: #667085;
    --line: #e7d8bf;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fffaf0 0%, #f7f3ea 55%, #ffffff 100%);
}
a { color: inherit; text-decoration: none; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px min(28px, 4vw);
    padding-left: clamp(24px, 3vw, 52px);
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; min-width: 0; }
.brand span {
    font-size: 18px;
    line-height: 1.05;
    white-space: nowrap;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand .brand-logos {
    width: min(230px, 30vw);
    height: 46px;
    object-fit: contain;
}
.menu-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.menu-button {
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--wine);
    background: #fffdf8;
    font-weight: 900;
    cursor: pointer;
}
.site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
}
.site-nav > a,
.nav-dropdown > summary {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 8px;
    padding: 7px 8px;
    white-space: nowrap;
}
.site-nav > a:hover,
.nav-dropdown > summary:hover {
    background: #fff5df;
    color: var(--wine);
}
.nav-dropdown {
    position: relative;
}
.nav-dropdown > summary {
    cursor: pointer;
    list-style: none;
}
.nav-dropdown > summary::-webkit-details-marker {
    display: none;
}
.nav-dropdown > summary::after {
    content: "v";
    margin-left: 6px;
    color: var(--gold);
    font-size: 11px;
}
.nav-dropdown[open] > summary {
    background: #fff5df;
    color: var(--wine);
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(31,44,70,.14);
}
.nav-dropdown-menu a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink);
    white-space: nowrap;
}
.nav-dropdown-menu a:hover {
    background: #fff5df;
    color: var(--wine);
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(280px, 400px);
    gap: clamp(56px, 7vw, 96px);
    align-items: center;
    min-height: calc(100vh - 170px);
    padding: clamp(28px, 4vw, 58px) 0;
}
.hero-copy {
    max-width: 640px;
}
.hero-copy h1 { font-size: clamp(28px, 3.5vw, 43px); line-height: 1.04; margin: 18px 0 22px; color: var(--wine); }
.hero-copy p { font-size: 17px; line-height: 1.38; max-width: 620px; }
.hero-copy .school-name {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}
.hero-art img { width: 100%; filter: drop-shadow(0 22px 40px rgba(31,44,70,.15)); }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; line-height: 1.35; color: var(--gold); font-weight: 900; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
    border: 0;
    min-height: 42px;
    padding: 11px 17px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.btn.primary { background: var(--wine); color: white; box-shadow: 0 12px 22px rgba(139,39,48,.22); }
.btn.ghost { background: white; color: var(--wine); border: 1px solid var(--line); }
.btn.danger { background: #fff; color: #9b1c31; border: 1px solid rgba(155, 28, 49, .34); }
.btn.disabled-link { opacity: .55; cursor: not-allowed; color: var(--muted); }
.btn.gold {
    background: var(--gold);
    color: white;
    box-shadow: 0 12px 22px rgba(217,164,59,.22);
}
.btn.text-link {
    background: transparent;
    color: var(--wine);
    border: 0;
    min-height: 30px;
    padding: 2px 4px;
    box-shadow: none;
}
.landing-actions .text-link {
    flex-basis: 100%;
    justify-content: flex-start;
}
.btn.locked { background: #ece7dc; color: #817869; cursor: default; }
.btn.enrolled { background: #003f7f; color: white; cursor: default; box-shadow: 0 10px 18px rgba(0,63,127,.18); }
.alert { padding: 14px 16px; border: 1px solid #f1a0a6; background: #fff1f2; color: #9f1239; border-radius: 8px; margin-bottom: 18px; }
.success-alert { border-color: #86efac; background: #ecfdf3; color: #166534; }
.panel {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 18px 42px rgba(31,44,70,.08);
}
.panel.narrow { max-width: 560px; margin: 30px auto; }
.form, .inline-form { display: grid; gap: 16px; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; }
.external-register {
    max-width: 900px;
    margin: 30px auto;
}
.external-form {
    margin-top: 18px;
}
.form-grid {
    display: grid;
    gap: 16px;
}
.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.other-institution {
    display: none;
}
label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: var(--muted); }
fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 0;
}
legend {
    padding: 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.permission-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}
.permission-options label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}
.permission-options input {
    width: auto;
}
input, select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fffdf8;
}
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    color: var(--ink);
    background: #fffdf8;
    resize: vertical;
}
.page-head, .section-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}
.page-head h1, .panel h1 {
    margin: 4px 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
}
.help-copy {
    max-width: 760px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.45;
}
.external-access-panel .help-copy {
    margin-bottom: 18px;
}
.field-note {
    display: block;
    margin: 3px 0 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.day-list {
    display: grid;
    gap: 28px;
}
.day-group {
    padding-top: 6px;
}
.day-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin: 0 0 14px;
    padding: 0 2px 12px;
    border-bottom: 2px solid var(--line);
}
.day-heading h2 {
    margin: 0;
    font-size: 24px;
    color: var(--wine);
    line-height: 1;
}
.day-heading div > span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}
.day-heading > span {
    color: var(--muted);
    font-weight: 900;
    font-size: 14px;
}
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.activity-card {
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 12px;
    align-content: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    height: 260px;
    overflow: hidden;
}
.activity-card.selected { border-color: var(--gold); box-shadow: inset 0 0 0 2px rgba(217,164,59,.2); }
.activity-card h2, .activity-card h3 {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.activity-card p, .passport p { color: var(--muted); margin: 4px 0; font-size: 14px; }
.activity-card-qr {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.activity-card-qr .mini-qr {
    width: 58px;
    height: 58px;
}
.tag {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: #f3e5c2;
    color: #7a4f00;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}
.capacity { font-weight: 900; color: var(--wine); }
.activity-card .btn,
.activity-card form {
    width: 100%;
    align-self: end;
}
.activity-card .btn {
    min-height: 42px;
    padding: 10px 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
}
.passport-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}
.passport-actions h1 {
    margin: 4px 0 0;
    font-size: clamp(24px, 2.5vw, 30px);
    color: var(--wine);
}
.passport-book {
    display: grid;
    grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.passport-pages {
    min-width: 0;
}
.passport-cover {
    position: sticky;
    top: 96px;
    width: 100%;
    max-width: 350px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(31,44,70,.08);
}
.passport-cover .seal { width: 148px; height: 148px; object-fit: contain; }
.passport-cover h1 { color: var(--wine); margin: 12px 0 6px; font-size: 34px; line-height: 1; }
.booklet-cover {
    position: sticky;
    overflow: hidden;
    min-height: 600px;
    background:
        linear-gradient(90deg, rgba(31,44,70,.12) 0 14px, transparent 14px),
        radial-gradient(circle at 85% 12%, rgba(217,164,59,.18), transparent 34%),
        linear-gradient(145deg, #fffdf8, #fff8ec);
}
.booklet-cover::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(217,164,59,.45);
    border-radius: 8px;
    pointer-events: none;
}
.passport-identity {
    display: grid;
    gap: 4px;
    margin: 18px 0 4px;
    color: var(--muted);
}
.passport-identity strong {
    color: var(--ink);
}
.passport-token {
    overflow-wrap: anywhere;
    font-size: 11px;
    letter-spacing: .04em;
}
.qr { width: 190px; height: 190px; margin-top: 18px; }
.passport-pages {
    display: grid;
    gap: 24px;
}
.passport-page {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 26px 26px 28px 36px;
    background:
        linear-gradient(90deg, rgba(139,39,48,.12) 0 10px, transparent 10px),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,250,240,.94));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(31,44,70,.08);
}
.passport-page::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px dashed rgba(217,164,59,.38);
    border-radius: 8px;
    pointer-events: none;
}
.page-ribbon {
    position: absolute;
    top: -60px;
    right: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 28px solid rgba(217,164,59,.18);
}
.passport-page-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.passport-page-head h2 {
    margin: 0;
    font-size: 24px;
    color: var(--wine);
    line-height: 1;
}
.passport-page-head div > span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}
.passport-page-head > span {
    color: var(--muted);
    font-weight: 900;
}
.passport-action-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}
.passport-validated-section {
    margin-top: 30px;
    display: grid;
    gap: 18px;
}
.passport-validated-section .section-title {
    align-items: end;
}
.passport-validated-section .section-title > span {
    color: var(--muted);
    font-weight: 900;
}
.validated-list-page {
    min-height: auto;
}
.validated-activity-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.validated-activity-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(198, 145, 45, .35);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 253, 248, .96), rgba(255, 247, 229, .78)),
        #fffdf8;
    box-shadow: 0 14px 32px rgba(38, 49, 75, .06);
}
.validated-activity-row strong,
.validated-activity-row span {
    display: block;
}
.validated-activity-row strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.15;
}
.validated-activity-row span {
    color: var(--muted);
    font-weight: 800;
    margin-top: 5px;
}
.validated-stamp-mark {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.86);
    border: 1px dashed #d8c9a8;
    overflow: hidden;
}
.validated-stamp-mark img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    opacity: .92;
    transform: rotate(-7deg);
}
.validated-stamp-meta {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(198, 145, 45, .22);
}
.validated-stamp-meta span {
    margin: 0;
    color: var(--wine);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.validated-stamp-meta strong {
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}
.compact-empty {
    min-height: 220px;
}
.passport-stamps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.passport-stamp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 14px;
    align-items: center;
    min-height: 156px;
    padding: 14px;
    background: rgba(255,255,255,.78);
    border: 1px dashed #c9b88e;
    border-radius: 8px;
}
.passport-stamp.no-proof {
    grid-template-columns: 1fr;
}
.stamp-proof {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}
.registration-qr {
    width: 104px;
    height: 104px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 4px;
}
.validation-qr {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.passport-stamp.validated {
    border-style: solid;
    border-color: var(--gold);
    background: #fffdf8;
}
.passport-stamp h3 {
    margin: 8px 0 4px;
    font-size: 16px;
}
.passport-stamp p {
    color: var(--muted);
    margin: 4px 0;
}
.empty-page {
    display: grid;
    place-content: center;
    text-align: center;
}
.stamp-list { display: grid; gap: 14px; }
.stamp-slot {
    display: grid;
    grid-template-columns: 1fr 138px;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px dashed #c9b88e;
    border-radius: 8px;
    padding: 18px;
}
.stamp-slot.validated { border-style: solid; border-color: var(--gold); background: #fffdf8; }
.stamp-slot h3 { margin: 8px 0; font-size: 22px; }
.stamp-mark {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 2px dashed #d8c9a8;
    display: grid;
    place-items: center;
    text-align: center;
    color: #a49370;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
}
.stamp-mark img {
    width: 142px;
    height: 142px;
    object-fit: cover;
    opacity: .88;
    transform: rotate(-7deg);
}
.empty { padding: 30px; background: white; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.muted { color: var(--muted); }
.special-call-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.special-call-card {
    display: grid;
    gap: 18px;
    align-content: space-between;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 18px 42px rgba(31,44,70,.06);
}
.special-call-card h2 {
    margin: 6px 0 10px;
    color: var(--wine);
    font-size: 24px;
    line-height: 1.08;
}
.special-call-card p {
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}
.call-meta {
    display: grid;
    gap: 8px;
    margin: 0;
}
.call-meta div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}
.call-meta dt {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.call-meta dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}
.special-form-panel {
    max-width: 960px;
    margin: 0 auto;
}
.receipt-box {
    display: grid;
    gap: 6px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf2;
}
.receipt-box span {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.receipt-box strong {
    color: var(--wine);
    font-size: 24px;
}
.receipt-box p {
    margin: 0;
    color: var(--muted);
}
.recovery-results {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.recovery-result {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fffdf8;
}
.recovery-result div {
    display: grid;
    gap: 4px;
}
.recovery-result span {
    color: var(--muted);
}
.team-members-fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}
.team-members-fieldset legend {
    color: var(--wine);
    font-weight: 900;
    padding: 0 8px;
}
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}
.small-btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}
.special-admin-calls {
    margin-bottom: 18px;
}
.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
}
.admin-form.compact-form {
    grid-template-columns: 1.2fr 1.2fr .8fr auto;
    align-items: end;
}
.attendance-settings-form {
    grid-template-columns: repeat(4, minmax(108px, 1fr)) auto;
    align-items: end;
    margin: 0;
}
.attendance-settings-form label {
    min-width: 0;
}
.validator-form {
    grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 1fr) minmax(220px, 1fr) minmax(160px, .7fr) auto;
    align-items: end;
}
.worker-picker {
    grid-column: span 2;
}
.form-note {
    margin: 12px 0 0;
    font-size: 13px;
}
.admin-form .btn,
.admin-form .preview-logo {
    align-self: end;
}
.admin-table {
    display: grid;
    gap: 14px;
}
.admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}
.admin-day-list .admin-table {
    margin-bottom: 8px;
}
.admin-row p {
    margin: 6px 0 0;
    color: var(--muted);
}
.tab-settings-list,
.participant-dashboard-grid {
    display: grid;
    gap: 14px;
}
.participant-feature-settings {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.tab-setting-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
    cursor: pointer;
}
.tab-setting-row input {
    width: 22px;
    height: 22px;
    accent-color: var(--wine);
}
.tab-setting-row strong,
.participant-dashboard-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
}
.tab-setting-row small,
.participant-dashboard-card span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.35;
}
.tab-setting-row em {
    color: var(--wine);
    font-style: normal;
    font-weight: 900;
}
.participant-dashboard-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
}
.participant-dashboard-card:hover {
    border-color: var(--gold);
    box-shadow: 0 14px 28px rgba(31,44,70,.08);
}
.admin-row.manual-detail-row {
    grid-template-columns: 1fr;
}
.disabled-row {
    opacity: .55;
}
.activity-admin-main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.activity-logo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fffaf0;
}
.large-logo {
    width: 64px;
    height: 64px;
}
.preview-logo {
    width: 84px;
    height: 84px;
}
.mini-qr {
    width: 86px;
    height: 86px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.activity-qr-card {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--wine);
    font-weight: 900;
    font-size: 12px;
}
.locked-certificate-panel h2 {
    margin: 8px 0;
    color: var(--wine);
}
.certificate-list-page {
    display: grid;
    gap: 22px;
}
.certificate-preview-card {
    display: grid;
    gap: 14px;
}
.certificate-sheet {
    position: relative;
    overflow: hidden;
    width: min(816px, 100%);
    aspect-ratio: 8.5 / 11;
    min-height: auto;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(31,44,70,.08);
}
.certificate-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .18;
}
.certificate-content {
    position: relative;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto;
    gap: 10px;
    padding: clamp(28px, 5vw, 56px);
    text-align: center;
}
.certificate-place {
    justify-self: end;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}
.certificate-kicker {
    margin: 42px 0 0;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}
.certificate-to {
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1;
}
.certificate-content h2 {
    justify-self: center;
    width: 100%;
    margin: 0;
    color: #000;
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.02;
    text-align: center;
}
.certificate-copy {
    width: min(760px, 100%);
    margin: 0 auto;
    color: var(--ink);
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(17px, 2.2vw, 24px);
    line-height: 1.45;
}
.certificate-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: end;
    text-align: left;
}
.certificate-footer span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.certificate-footer strong {
    color: var(--wine);
}
.certificate-footer img {
    width: 132px;
    height: 132px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}
.certificate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.certificate-delivery-card {
    display: grid;
    gap: 22px;
    max-width: 920px;
    margin-inline: auto;
}
.certificate-delivery-card h2 {
    margin: 4px 0 0;
    color: var(--wine);
    font-size: 30px;
}
.certificate-delivery-details {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr);
    gap: 14px;
}
.certificate-delivery-details div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
}
.certificate-delivery-details span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.certificate-delivery-details strong {
    color: var(--ink);
}
.certificate-issued-list {
    display: grid;
    gap: 14px;
}
.certificate-issued-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf8;
}
.certificate-issued-item span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.certificate-issued-item strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}
.certificate-issued-item small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 800;
}
.verification-page {
    display: grid;
    place-items: center;
    min-height: 60vh;
}
.certificate-verification-card {
    width: min(720px, 100%);
}
.certificate-verification-card h1 {
    color: var(--wine);
    overflow-wrap: anywhere;
}
.verification-status {
    display: inline-flex;
    width: fit-content;
    margin: 8px 0 20px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #e9f7ef;
    color: #176c48;
    font-weight: 900;
}
.verification-data {
    display: grid;
    gap: 12px;
    margin: 0;
}
.verification-data div {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.verification-data dt {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.verification-data dd {
    margin: 0;
    font-weight: 800;
}
.certificate-admin-list {
    display: grid;
    gap: 12px;
}
.certificate-visibility-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}
.certificate-visibility-panel h2 {
    margin: 4px 0;
    font-size: 22px;
}
.certificate-visibility-panel .help-copy {
    margin: 6px 0 0;
}
.certificate-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}
.certificate-admin-row p {
    margin: 5px 0 0;
    color: var(--muted);
}
.certificate-issued {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}
.certificate-issued strong {
    color: var(--wine);
}
.admin-enrollment-layout {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr);
    gap: 18px;
    align-items: start;
}
.admin-enrollment-participants,
.current-activity-list,
.manual-activity-form {
    display: grid;
    gap: 10px;
}
.participant-pick {
    display: grid;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
}
.participant-pick.active {
    border-color: var(--wine);
    background: #fff7e8;
}
.participant-pick span,
.participant-pick small,
.current-activity-list span,
.manual-activity-option small,
.manual-activity-option em {
    color: var(--muted);
}
.manual-current-list {
    margin-bottom: 18px;
}
.current-activity-list span {
    padding: 9px 0;
    border-top: 1px solid var(--line);
}
.manual-day-group {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.manual-day-group h3 {
    margin: 0;
    color: var(--wine);
}
.manual-day-group h3 span {
    color: var(--muted);
    font-size: 15px;
}
.manual-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.manual-activity-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}
.manual-activity-option span {
    display: grid;
    gap: 3px;
}
.manual-activity-option.already {
    background: #fff7e8;
    border-color: rgba(217,164,59,.55);
}
.manual-activity-option.inactive {
    opacity: .58;
}
.station-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.station-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 170px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}
.station-card.inactive {
    background: #fffaf0;
}
.station-card h2 {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.15;
}
.station-card .status-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3ead7;
    color: #8a6d3b;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}
.station-card p {
    color: var(--muted);
    margin: 4px 0;
    font-size: 14px;
}
.validate-search {
    margin-bottom: 18px;
}
.report-filters {
    margin-bottom: 18px;
}
.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.report-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 16px;
    background: white;
    color: var(--wine);
    font-weight: 900;
}
.report-tabs a.active {
    background: var(--wine);
    color: white;
    border-color: var(--wine);
}
.report-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.report-summary.single {
    grid-template-columns: minmax(180px, 280px);
}
.report-summary article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}
.report-summary strong {
    display: block;
    color: var(--wine);
    font-size: 30px;
    line-height: 1;
}
.report-summary span {
    color: var(--muted);
    font-weight: 900;
}
.report-panel {
    margin-bottom: 18px;
}
.report-panel h2 {
    margin: 4px 0 0;
    font-size: 24px;
}
.export-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.export-actions .btn {
    min-height: 38px;
    padding: 9px 14px;
}
.report-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
}
.report-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: white;
    font-size: 12px;
}
.report-table th,
.report-table td {
    padding: 10px;
    border-bottom: 1px solid #efe4d1;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.report-table th {
    color: var(--wine);
    background: #fff8ec;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.report-table th:nth-child(1),
.report-table td:nth-child(1) {
    width: 44px;
}
.report-table th:nth-child(2),
.report-table td:nth-child(2) {
    width: 82px;
}
.report-table th:nth-child(3),
.report-table td:nth-child(3) {
    width: 23%;
}
.report-table th:nth-child(4),
.report-table td:nth-child(4) {
    width: 20%;
}
.report-table th:nth-child(5),
.report-table td:nth-child(5) {
    width: 105px;
}
.report-table th:nth-child(6),
.report-table td:nth-child(6) {
    width: 15%;
}
.report-table td span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.2;
}
.report-table td strong {
    line-height: 1.2;
}
.report-table tbody tr:nth-child(even) {
    background: #fffdf8;
}
.special-report-table th:nth-child(2),
.special-report-table td:nth-child(2) {
    width: 14%;
}
.special-report-table th:nth-child(3),
.special-report-table td:nth-child(3) {
    width: 17%;
}
.special-report-table th:nth-child(4),
.special-report-table td:nth-child(4) {
    width: 22%;
}
.special-report-table th:nth-child(7),
.special-report-table td:nth-child(7) {
    width: 170px;
}
.result-form {
    display: grid;
    gap: 8px;
}
.result-form select,
.result-form input {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 7px 8px;
    font: inherit;
    font-size: 12px;
    background: #fffdf9;
}
.external-report-table th:nth-child(3),
.external-report-table td:nth-child(3) {
    width: 22%;
}
.external-report-table th:nth-child(4),
.external-report-table td:nth-child(4) {
    width: 16%;
}
.external-report-table th:nth-child(5),
.external-report-table td:nth-child(5) {
    width: 20%;
}
.stats-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.stats-summary article {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 12px 26px rgba(31,44,70,.04);
}
.stats-summary strong {
    display: block;
    color: #003f7f;
    font-size: 28px;
    line-height: 1;
}
.stats-summary span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.stat-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
}
.stat-card {
    min-height: 190px;
}
.chart-list {
    display: grid;
    gap: 10px;
}
.chart-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1.4fr) 44px;
    gap: 10px;
    align-items: center;
}
.chart-label {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chart-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #efe7d7;
}
.chart-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}
.chart-row strong {
    color: var(--wine);
    font-size: 13px;
    text-align: right;
}
.vertical-chart {
    display: flex;
    gap: 14px;
    align-items: end;
    min-height: 142px;
}
.vertical-bar-item {
    display: grid;
    grid-template-rows: auto 96px auto;
    gap: 7px;
    min-width: 0;
    flex: 1;
    text-align: center;
}
.vertical-bar-item strong {
    color: var(--wine);
    font-size: 13px;
}
.vertical-track {
    display: flex;
    align-items: end;
    height: 96px;
    overflow: hidden;
    border-radius: 8px 8px 4px 4px;
    background: #efe7d7;
}
.vertical-track span {
    display: block;
    width: 100%;
    border-radius: inherit;
}
.vertical-label {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.zip-download-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.4fr);
    gap: 18px;
    align-items: center;
}
.zip-download-panel h2 {
    margin: 0 0 6px;
}
.zip-batch-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 10px;
}
.zip-batch-actions .btn {
    min-height: 52px;
    display: grid;
    gap: 2px;
    line-height: 1.05;
}
.zip-batch-actions .btn span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.station {
    display: grid;
    gap: 18px;
}
.station-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 18px 42px rgba(31,44,70,.08);
}
.station-hero h1 {
    margin: 8px 0;
    font-size: clamp(26px, 4vw, 40px);
    color: var(--wine);
    line-height: 1;
}
.station-meta {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}
.station-qr {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 900;
}
.station-qr > img:not(.activity-logo) {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.scanner-panel {
    background: var(--wine);
    color: white;
    border-radius: 8px;
    padding: 22px;
}
.scanner-panel label {
    color: white;
    font-size: 16px;
}
.scanner-panel input {
    margin-top: 8px;
    min-height: 64px;
    font-size: 24px;
    border-color: rgba(255,255,255,.5);
}
.scanner-panel p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.82);
}
.scan-result {
    display: grid;
    gap: 4px;
    border-radius: 8px;
    padding: 16px;
    font-size: 18px;
}
.scan-result.success {
    background: #ecfdf3;
    border: 1px solid #86efac;
    color: #166534;
}
.participant-ticket {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 18px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}
.participant-ticket h2 {
    margin: 8px 0;
    font-size: 30px;
}
.recent-scan-panel {
    padding: 18px;
}
.scan-counter {
    display: grid;
    justify-items: end;
    gap: 2px;
    color: var(--wine);
}
.scan-counter strong {
    font-size: 34px;
    line-height: 1;
}
.scan-counter span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.recent-scan-note {
    margin: -8px 0 12px;
}
.recent-scan-list {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.recent-scan-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 120px 120px;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.recent-scan-row:last-child {
    border-bottom: 0;
}
.recent-scan-row strong {
    color: var(--ink);
}
.recent-scan-row span {
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 1180px) {
    .topbar {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .brand .brand-logos { width: min(210px, 42vw); }
    .brand span { font-size: 16px; white-space: normal; }
    .menu-button { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: stretch;
        gap: 8px;
        padding-top: 10px;
    }
    .menu-check:checked ~ .site-nav {
        display: grid;
        grid-template-columns: 1fr;
    }
    .site-nav > a,
    .nav-dropdown > summary {
        min-height: 42px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fffdf8;
        color: var(--ink);
        text-align: center;
        padding: 8px;
        white-space: normal;
    }
    .nav-dropdown {
        display: grid;
        gap: 8px;
        position: static;
    }
    .nav-dropdown > summary::after {
        content: "";
        margin: 0;
    }
    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        padding: 8px;
        box-shadow: none;
        background: rgba(255,253,248,.72);
    }
    .nav-dropdown:not([open]) .nav-dropdown-menu {
        display: none;
    }
    .nav-dropdown-menu a {
        min-height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: white;
        text-align: center;
    }
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
        gap: 42px;
        padding-top: 36px;
    }
    .hero-copy h1 {
        font-size: clamp(28px, 4.5vw, 40px);
    }
    .hero-copy p {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .hero, .passport-book { grid-template-columns: 1fr; }
    main { width: min(100% - 48px, 1180px); padding-top: 28px; }
    .hero {
        gap: 36px;
        min-height: auto;
        padding: 28px 0 42px;
    }
    .hero-copy h1 {
        font-size: clamp(32px, 9vw, 40px);
        line-height: 1.05;
        margin: 18px 0 24px;
    }
    .hero-copy p {
        font-size: 16px;
        line-height: 1.42;
    }
    .hero-copy .school-name {
        font-size: 15px;
        line-height: 1.25;
    }
    .actions {
        gap: 14px;
        margin-top: 30px;
    }
    .actions .btn {
        width: 100%;
    }
    .passport-cover { position: relative; top: auto; max-width: none; }
    .activity-grid,
    .special-call-grid,
    .station-grid,
    .stamp-slot,
    .passport-stamp,
    .passport-stamps-grid { grid-template-columns: 1fr; }
    .activity-card { height: auto; min-height: 220px; }
    .inline-form, .page-head, .section-title, .passport-actions { grid-template-columns: 1fr; display: grid; align-items: stretch; }
    .passport-action-tabs { justify-content: stretch; }
    .passport-action-tabs .btn { width: 100%; }
    .validated-activity-list,
    .validated-activity-row { grid-template-columns: 1fr; }
    .tab-setting-row { grid-template-columns: auto minmax(0, 1fr); }
    .tab-setting-row em { grid-column: 2; }
    .validated-stamp-mark { margin: 0 auto; }
    .validated-stamp-meta {
        grid-column: auto;
        display: grid;
        justify-items: center;
        text-align: center;
    }
    .validated-stamp-meta strong { text-align: center; }
    .recovery-result { display: grid; align-items: stretch; }
    .form-grid.two,
    .form-grid.three { grid-template-columns: 1fr; }
    .admin-form,
    .admin-form.compact-form,
    .attendance-settings-form,
    .validator-form,
    .admin-row,
    .certificate-visibility-panel,
    .certificate-admin-row,
    .certificate-footer,
    .certificate-issued-item,
    .station-hero,
    .participant-ticket,
    .report-summary { grid-template-columns: 1fr; }
    .admin-enrollment-layout,
    .manual-activity-grid { grid-template-columns: 1fr; }
    .certificate-sheet,
    .certificate-content {
        min-height: auto;
    }
    .certificate-delivery-details { grid-template-columns: 1fr; }
    .certificate-place,
    .certificate-footer,
    .certificate-issued {
        text-align: center;
        justify-items: center;
    }
    .row-actions { justify-content: stretch; }
    .zip-download-panel { grid-template-columns: 1fr; }
    .zip-batch-actions { grid-template-columns: 1fr; }
    .worker-picker { grid-column: auto; }
    .row-actions .btn, .row-actions form, .row-actions button,
    .zip-batch-actions .btn { width: 100%; }
    .brand .brand-logos { width: min(210px, 48vw); }
    .brand span { font-size: 16px; line-height: 1.05; }
    .topbar { align-items: center; }
    .menu-check:checked ~ .site-nav { grid-template-columns: 1fr; }
    .validation-qr { width: 100%; }
    .report-tabs { display: grid; grid-template-columns: 1fr; }
    .export-actions { justify-content: stretch; }
    .export-actions .btn { width: 100%; }
    .stats-summary,
    .stats-grid { grid-template-columns: 1fr; }
    .team-members-grid { grid-template-columns: 1fr; }
    .recent-scan-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .chart-row {
        grid-template-columns: 1fr 56px;
    }
    .chart-label,
    .chart-track {
        grid-column: 1 / -1;
    }
    .report-table,
    .report-table thead,
    .report-table tbody,
    .report-table tr,
    .report-table th,
    .report-table td {
        display: block;
        width: 100% !important;
    }
    .report-table thead {
        display: none;
    }
    .report-table tr {
        border-bottom: 1px solid var(--line);
        padding: 10px 0;
    }
    .report-table td {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 10px;
        border-bottom: 0;
        padding: 7px 10px;
    }
    .report-table td::before {
        content: attr(data-label);
        color: var(--wine);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
}

@media print {
    body {
        background: white;
    }
    .topbar,
    .page-head,
    .certificate-actions,
    .alert {
        display: none !important;
    }
    main {
        width: 100%;
        padding: 0;
    }
    .certificate-preview-card {
        display: block;
    }
    .certificate-sheet {
        width: 100%;
        min-height: 100vh;
        border: 0;
        box-shadow: none;
        page-break-after: always;
    }
}

@media (min-width: 641px) and (max-width: 1180px) {
    .activity-grid,
    .station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .passport-stamps-grid,
    .passport-stamp { grid-template-columns: 1fr; }
    .stamp-proof { grid-template-columns: 128px 132px; align-items: center; justify-content: center; }
    .brand .brand-logos { width: min(220px, 28vw); }
    .topbar { align-items: center; }
}
