/* McSport Accreditation theme */
:root {
  color-scheme: light;
  --brand: #a32923;
  --brand-dark: #84211d;
  --brand-soft: #fbefed;
  --action: #395982;
  --action-dark: #294469;
  --ink: #262c35;
  --muted: #58616e;
  --line: #dce0e5;
  --line-strong: #c7cdd6;
  --canvas: #e8ebee;
  --surface: #fff;
  --wash: #f4f5f6;
  --row-alt: #f9fafb;
  --radius: 5px;
  --stage: 1620px;
  --gutter: clamp(14px, 4vw, 74px);
  font: 14px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
.linked-accreditations { width: min(1120px, 100% - 28px); margin: 24px auto; }
.linked-accreditations .panel { padding: clamp(12px, 3vw, 24px); }
.linked-accreditations .linked-heading { margin: 12px 0 18px; }
.linked-accreditations .linked-list { margin-top: 12px; }
.linked-accreditations .linked-status { min-height: 1.45em; margin: 10px 0; }
.linked-accreditations .linked-error { color: var(--brand-dark); }
.linked-accreditations .linked-zones { border: 1px solid var(--line); }
.linked-accreditations .linked-zones .toolbar { gap: 6px 14px; }
.linked-accreditations .linked-zones input { min-height: auto; }
.linked-accreditations .linked-zones label { display: inline-flex; gap: 4px; align-items: center; }
.linked-accreditations details { margin: 12px 0; }
#linked-print { position: fixed; left: -10000px; top: 0; }
.linked-sheet { width: 210mm; height: 296.8mm; display: grid; place-items: center; }
.linked-sheet > div { display: grid; grid-template-columns: repeat(var(--columns), var(--card-width)); grid-template-rows: repeat(var(--lines), var(--card-height)); gap: 2mm; }
.linked-sheet article { display: flex; flex-direction: column; gap: 1mm; padding: 2mm; border: .3mm solid #395982; border-radius: 2mm; overflow: hidden; overflow-wrap: anywhere; font: 9pt/1.15 sans-serif; }
.linked-sheet article header { background: #294469; color: white; padding: 1.5mm; }
.linked-sheet article h2 { font-size: 11pt; }
.linked-sheet article p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linked-sheet article footer { margin-top: auto; text-align: center; }
.linked-sheet .badge-barcode { display: block; height: 5mm; width: 100%; }
.linked-print-images { display: flex; gap: 2mm; }
.linked-print-images img { width: 8mm; height: 9mm; object-fit: contain; }
@media print {
  @page linked-sheet { size: A4 portrait; margin: 0; }
  body:has(#linked-print) > :not(#linked-print) { display: none !important; }
  #linked-print { position: static; }
  .linked-sheet { page: linked-sheet; break-after: page; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .linked-sheet:last-child { break-after: auto; }
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a { color: var(--action-dark); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { color: var(--brand-dark); font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: 16px; font-weight: 700; line-height: 1.3; }
h3 { font-size: 14px; }
small { font-size: 12px; }
:where(button, a, summary, input, select, textarea, .tablewrap):focus-visible {
  outline: 2px solid var(--action); outline-offset: 3px;
}
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 10; top: 8px; left: 8px; background: white; padding: 9px 12px; }
.icon { display: inline-flex; flex: none; vertical-align: middle; }
.icon svg { width: 17px; height: 17px; }

/* Header and event context */
.top { background: var(--surface); border-bottom: 1px solid var(--line-strong); position: relative; z-index: 2; }
.top-inner, .stage { max-width: var(--stage); margin-inline: auto; width: calc(100% - 2 * var(--gutter)); }
.top-inner { min-height: 58px; display: flex; align-items: stretch; gap: 18px; }
.brand { display: flex; align-items: center; align-self: center; gap: 9px; flex: none; color: var(--ink); }
.brand-mark {
  width: 35px; height: 35px; display: grid; place-items: center; border-radius: var(--radius);
  color: white; background: var(--brand); border: 1px solid var(--brand-dark);
}
.brand-mark .icon svg { width: 24px; height: 24px; }
.brand strong { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -.03em; }
.brand small { display: block; font-size: 10px; line-height: 1.3; color: var(--muted); }
.nav { display: flex; align-items: stretch; flex: 1; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.nav button, .top-menu summary, .menu-items button {
  display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0 10px;
  background: transparent; color: var(--brand-dark); font-weight: 650; white-space: nowrap;
}
.nav button { position: relative; border-bottom: 3px solid transparent; padding-top: 3px; font-size: 13px; }
.nav button:hover, .nav button[aria-current] { background: var(--brand-soft); color: var(--brand-dark); }
.nav button[aria-current] { border-bottom-color: var(--brand); }
.nav button:focus-visible { outline-offset: -4px; }
.top-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.top-menu { position: relative; }
.top-menu summary { list-style: none; min-height: 36px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.top-menu summary::-webkit-details-marker, .advanced-filters summary::-webkit-details-marker { display: none; }
.top-menu summary:hover, .top-menu[open] summary { background: var(--wash); }
.top-menu[open] summary .icon:last-child { transform: rotate(180deg); }
.menu-items {
  position: absolute; top: calc(100% + 6px); right: 0; width: 208px; display: grid; gap: 2px;
  background: var(--surface); padding: 5px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: 0 6px 24px #2631421f;
}
.menu-items button { color: var(--ink); min-height: 36px; text-align: left; border-radius: var(--radius); }
.menu-items button:hover, .menu-items button[aria-current] { color: var(--brand-dark); background: var(--brand-soft); }
.menu-items small { padding: 7px 10px; color: var(--muted); }
.account-profile select { max-width: 172px; font-size: 12px; min-height: 36px; }
.stage { background: var(--surface); min-height: calc(100vh - 59px); box-shadow: 0 0 0 1px #19233208; }
.event-banner { display: flex; align-items: stretch; min-height: 79px; color: white; background: #5d656f; }
.event-mark {
  align-self: stretch; width: clamp(72px, 11vw, 160px); flex: none; display: grid; place-items: center;
  background: var(--brand); border-right: 1px solid #ffffff26;
}
.event-mark .icon {
  padding: 7px; border: 1px solid #ffffff82; border-radius: var(--radius); color: white;
}
.event-mark .icon svg { width: 28px; height: 28px; }
.event-information { display: grid; align-content: center; min-width: 0; padding: 12px 20px; gap: 4px; }
.event-information h2 { font-size: clamp(18px, 2vw, 26px); letter-spacing: -.025em; }
.event-information p { color: #f0f2f5; font-size: 12px; }
.event-information p .icon { margin-right: 4px; }
.event-information p .icon svg { width: 13px; height: 13px; }
.event-divider { margin-inline: 4px; }
.event-switch { margin-left: auto; align-self: center; min-width: 0; display: grid; gap: 3px; padding: 10px 18px; }
.event-switch span { font-size: 11px; font-weight: 650; }
.event-switch select { max-width: min(290px, 26vw); min-height: 33px; }
.stage-footer {
  margin-top: 26px; border-top: 1px solid var(--line); padding: 13px clamp(12px, 2.5vw, 34px);
  display: flex; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 11px;
}

/* Page and shared controls */
.content { padding: 19px clamp(12px, 2.5vw, 34px) 0; }
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead p { color: var(--muted); margin-top: 4px; }
.pagehead h1:focus, #results-heading:focus, .content:focus { outline: none; }
.button, .bare {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--action);
  border-radius: var(--radius); min-height: 35px; padding: 6px 12px; background: var(--surface);
  color: var(--action-dark); font-weight: 650; text-decoration: none; white-space: nowrap;
}
.button:hover, .bare:hover { background: #eef3f8; }
.button.primary { background: var(--brand); border-color: var(--brand); color: white; }
.button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.search-button { background: var(--action); border-color: var(--action); color: white; }
.search-button:hover { background: var(--action-dark); }
.bare { min-height: 30px; border-color: transparent; padding-inline: 5px; }
.icon-button { padding: 5px; width: 34px; min-width: 34px; }
.icon-button.row-action { width: 32px; min-width: 32px; min-height: 30px; border-color: var(--line-strong); }
.danger { color: #a32636; }
.button.danger { border-color: #b64f59; }
.button.danger:hover { background: #fce8e9; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-header {
  min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  flex-wrap: wrap; padding: 8px 14px; background: var(--wash); border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}
.panel-header h2 { color: var(--brand-dark); }
.panel-pad { padding: 15px; }
.stack { display: grid; gap: 13px; }
.twocol { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(210px, 1fr); gap: 14px; }
.toolbar, .form-actions { display: flex; align-items: flex-end; gap: 7px; flex-wrap: wrap; }
.form-actions { justify-content: flex-end; }
.field { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 650; }
.field small, .muted { color: var(--muted); }
input, select, textarea {
  color: var(--ink); background: var(--surface); min-height: 34px; padding: 6px 8px; max-width: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 400;
}
.field :is(input,select,textarea) { width: 100%; font-size: 14px; }
input::placeholder { color: #687280; }
textarea { min-height: 70px; resize: vertical; }
input:is([type=checkbox],[type=radio]) { accent-color: var(--action); width: 15px; height: 15px; min-height: auto; margin: 0; }
fieldset { border: 1px solid var(--line-strong); border-radius: var(--radius); min-width: 0; }
legend { padding-inline: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.gridform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
.full { grid-column: 1 / -1; }
.checklist { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; }
.checklist label { display: inline-flex; align-items: center; gap: 6px; }
.empty { padding: 30px 16px; color: var(--muted); text-align: center; }
.empty .button { margin-top: 9px; }

/* Search and tables */
.search-panel { margin-bottom: 15px; }
.search-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.advanced-filters summary {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none;
  color: var(--action-dark); font-size: 12px; font-weight: 700;
}
.advanced-filters[open] summary { margin-bottom: 9px; }
.advanced-filters[open] summary .icon { transform: rotate(180deg); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; padding: 10px 14px; }
.count {
  display: inline-block; padding: 1px 6px; margin-left: 4px; background: var(--brand-soft);
  border: 1px solid #edcfcc; color: var(--brand-dark); border-radius: var(--radius); font-size: 11px;
  vertical-align: 1px; font-variant-numeric: tabular-nums;
}
.status-filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; border: 0; margin: 0; padding: 0;
}
.status-filters label, .result-controls, .result-controls label, .pagination-controls, .pagination-controls label {
  display: flex; align-items: center; gap: 5px;
}
.status-filters label { cursor: pointer; min-height: 27px; }
.status-count { color: var(--muted); font-size: 11px; }
.result-controls { gap: 10px; flex-wrap: wrap; }
.result-controls label, .pagination-controls label { color: var(--muted); font-size: 12px; }
.result-controls select, .pagination-controls input { min-height: 30px; padding: 3px 6px; font-size: 12px; }
.tablewrap { overflow: auto; min-width: 0; max-height: 62vh; }
.tablewrap:focus-visible { outline-offset: -2px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.request-table { min-width: 740px; }
.compact-table, .directory-table { min-width: 450px; }
td, th { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  position: sticky; z-index: 1; top: 0; white-space: nowrap; color: #394551; background: #e9edf0;
  font-size: 11px; font-weight: 750; letter-spacing: .015em;
}
td { font-size: 13px; overflow-wrap: anywhere; }
td:last-child, th:last-child { padding-right: 16px; }
.request-table td:first-child { min-width: 142px; }
.request-table td:last-child, .request-table th:last-child { text-align: right; }
tbody tr:nth-child(even) td { background: var(--row-alt); }
tbody tr:hover td, tbody tr:focus-within td { background: #edf3f8; }
td .sub { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; }
td .ref { font-variant-numeric: tabular-nums; }
.zones-text { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 100px; padding: 3px 7px;
  background: #eef0f2; color: #3b4652; font-size: 11px; line-height: 1.3; font-weight: 700; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pending, .pill.review { background: #fff4da; color: #6d4d0c; }
.pill.approved, .pill.issued { background: #e5f4eb; color: #216247; }
.pill.rejected, .pill.revoked { background: #fce9e8; color: #98282d; }
.pill.changes { background: #e9effa; color: #34547f; }
.pagination {
  padding: 8px 14px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px; color: var(--muted); background: var(--wash); font-size: 12px;
}
.pagination-controls { gap: 7px; }
.pagination-controls input { width: 52px; }
.directory-search .field { min-width: 140px; }
.directory-search .field > input { min-height: 35px; }

/* Dashboard, forms and mobile control */
.quick-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 15px; }
.quick-links button {
  min-height: 81px; display: grid; justify-items: center; place-content: center; gap: 7px; padding: 8px;
  color: var(--brand-dark); background: white; border: 1px solid #d49e99;
  border-radius: var(--radius); font-size: 13px; font-weight: 700;
}
.quick-links button:hover { background: var(--brand-soft); border-color: var(--brand); }
.quick-links .icon svg { width: 28px; height: 28px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 15px; }
.metric {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); color: var(--ink);
  min-height: 47px; padding: 8px 10px; text-align: left;
}
.metric:hover { background: #eef3f8; border-color: var(--line-strong); }
.metric .icon { color: var(--brand); }
.metric span:not(.icon) { font-size: 12px; font-weight: 650; }
.metric b { color: var(--brand-dark); font-size: 20px; font-variant-numeric: tabular-nums; }
.line-item { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; justify-content: space-between; align-items: center; }
.line-item:last-child { border-bottom: 0; }
.line-item span { color: var(--muted); font-size: 12px; }
progress { width: 100%; height: 8px; accent-color: var(--brand); }
.stat-line { display: grid; gap: 6px; margin: 0 0 12px; }
.stat-line div { display: flex; justify-content: space-between; gap: 8px; }
dialog {
  padding: 0; width: min(700px, calc(100% - 22px)); max-height: calc(100% - 22px);
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); box-shadow: 0 12px 46px #222a3654;
}
dialog::backdrop { background: #18212e77; }
.modal-body { padding: 15px 18px 18px; }
.modal-title {
  display: flex; justify-content: space-between; align-items: center; gap: 9px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line); color: var(--brand-dark);
}
.modal-title h2 { font-size: 19px; overflow-wrap: anywhere; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0; }
.record div { padding: 8px; background: var(--wash); border-radius: var(--radius); }
.record dt { color: var(--muted); font-size: 11px; }
.record dd { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.statusbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; }
.statusbox.ok { background: #e5f4eb; color: #216247; }
.statusbox.no { background: #fce9e8; color: #98282d; }
.notice { background: #fff4da; color: #63490e; padding: 9px 12px; border-radius: var(--radius); }
.public { max-width: 650px; margin: 8vh auto; padding: 0 15px; }
.public .brand { margin-bottom: 16px; }
.badgeimg { width: 160px; height: 160px; object-fit: contain; display: block; margin: 0 auto; }
#toast { display: none; position: fixed; z-index: 100; top: 20px; right: 20px; max-width: min(420px, 90vw); background: #273748; color: white; padding: 10px 13px; border-radius: var(--radius); }
video { width: 100%; max-height: 240px; background: #222a35; border-radius: var(--radius); }
.scan-result:not(:empty) { min-height: 44px; }

@media (max-width: 1060px) {
  .top-inner { gap: 10px; }
  .nav button { padding-inline: 8px; }
  .top-actions { gap: 4px; }
  .account-profile select { max-width: 140px; }
  .result-controls { gap: 7px; }
}
@media (max-width: 900px) {
  .top-inner { flex-wrap: wrap; justify-content: space-between; gap: 0 8px; padding-top: 7px; }
  .nav { order: 3; flex-basis: 100%; min-height: 44px; }
  .top-actions { margin-left: auto; }
  .twocol { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .top-inner, .stage { width: 100%; }
  .top-inner { padding-inline: 11px; }
  .nav button { font-size: 12px; min-height: 44px; }
  .top-menu summary { padding-inline: 6px; font-size: 12px; }
  .top-menu summary .icon:first-child { display: none; }
  .account-profile select { width: 112px; font-size: 11px; }
  .event-banner { flex-wrap: wrap; min-height: 0; }
  .event-mark { width: 54px; }
  .event-mark .icon { border: 0; }
  .event-information { flex: 1; padding: 9px 12px; }
  .event-switch { grid-template-columns: auto minmax(0,1fr); align-items: center; width: 100%; padding: 7px 11px; background: #505863; }
  .event-switch select { width: 100%; max-width: none; }
  .content { padding-top: 13px; }
  .pagehead h1 { font-size: 23px; }
  .panel-header, .panel-pad, .results-bar, .pagination { padding-inline: 10px; }
  .quick-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .quick-links button { min-height: 66px; }
  .quick-links .icon svg { width: 23px; height: 23px; }
  .metrics { gap: 7px; }
  .metric { padding-inline: 6px; gap: 4px; }
  .metric .icon svg { width: 14px; height: 14px; }
  .metric b { font-size: 17px; }
  .result-controls { width: 100%; }
  .result-controls label { white-space: nowrap; }
  .results-bar { gap: 7px; }
  .results-bar .toolbar { width: 100%; }
  .results-bar .toolbar .button { flex: 1; font-size: 12px; }
  .modal-body { padding-inline: 11px; }
  .gridform { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Deposit forms and identity records */
[hidden] { display: none !important; }
.portrait {
  display: inline-grid; place-items: center; vertical-align: middle; width: 35px; height: 42px;
  object-fit: cover; background: var(--wash); border: 1px solid var(--line-strong);
  border-radius: var(--radius); color: var(--muted); flex: none;
}
.portrait-large { width: 82px; height: 99px; }
.placeholder-portrait .icon svg { width: 19px; height: 19px; }
.portrait-large .icon svg { width: 31px; height: 31px; }
.photo-field { padding: 10px 12px; }
.photo-tools { display: flex; align-items: flex-start; gap: 13px; flex-wrap: wrap; }
.photo-tools .stack { gap: 7px; min-width: min(100%, 245px); }
.photo-tools input { max-width: 330px; }
.photo-field [data-photo-status]:not(:empty) { margin-top: 7px; }
.photo-field [data-photo-video] { display: block; margin-top: 9px; }
.photo-field [data-photo-shot] { margin-top: 7px; }
.person-extra { border-top: 1px solid var(--line); padding-top: 9px; }
.read-value { padding: 7px 8px; font-weight: 500; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); }
.checkline, .record-heading, .linked-portrait { display: flex; align-items: center; gap: 8px; }
.checkline { align-self: center; font-size: 13px; }
.inline-add { color: var(--action-dark); min-height: 29px; padding-inline: 0; text-align: left; }
.field > select[multiple] { min-height: 70px; }
.extended-table { min-width: 1100px; }
.extended-table td:nth-child(1), .extended-table th:nth-child(1) { width: 44px; text-align: center; }
.extended-table td:nth-child(2), .extended-table th:nth-child(2) { width: 58px; text-align: center; }
.extended-table td:nth-child(3) { min-width: 155px; }
.row-tools { justify-content: flex-end; flex-wrap: nowrap; }
.directory-table td .toolbar { flex-wrap: nowrap; }

/* Identification and account recovery */
.access-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 2fr; background: white; }
.access-side {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  gap: 40px; background: #a8261e; color: white; text-align: right; padding: clamp(26px,4.6vh,58px) clamp(28px,9vw,175px) 24px 24px;
}
.access-brand { width: min(100%, 292px); }
.access-picture { width: 100%; aspect-ratio: 1; position: relative; margin: 0 0 44px auto; }
.access-picture img {
  width: 100%; height: 100%; object-fit: cover; object-position: 47% center; display: block;
  border: 4px solid white; border-radius: 50%;
}
.access-medallion {
  position: absolute; right: -4%; bottom: -12%; border-radius: 50%; width: 42%; aspect-ratio: 1;
  display: grid; place-items: center; background: white; color: var(--brand);
}
.access-medallion .icon svg { width: clamp(28px,4vw,58px); height: auto; }
.access-brand > strong { display: block; font-size: clamp(21px,2.1vw,31px); line-height: 1.1; }
.access-brand > p { margin-top: 24px; font-size: clamp(16px,1.6vw,23px); line-height: 1.25; }
.access-side footer { font-size: 11px; }
.access-side footer strong { display: block; text-transform: uppercase; }
.access-side footer a { color: white; margin-left: 6px; }
.access-content { min-width: 0; }
.access-strip { border-bottom: 1px solid var(--line); min-height: 48px; display: flex; }
.access-strip span { display: grid; place-items: center; min-width: 132px; border-top: 3px solid var(--brand); font-weight: 650; }
.access-panel { width: min(100% - 40px, 478px); margin: clamp(40px,7vh,80px) auto 36px; text-align: center; }
.access-panel h1 { font-size: clamp(26px,2.2vw,32px); font-weight: 600; margin-bottom: 30px; outline: none; }
.access-form { display: grid; justify-items: center; gap: 13px; }
.access-form label { display: block; width: 100%; }
.access-form input { width: 100%; border-radius: 0; min-height: 38px; padding: 8px 12px; }
.access-form input[readonly] { color: var(--ink); background: white; }
.access-form .danger:empty { display: none; }
.access-submit {
  margin-top: 25px; min-width: 136px; min-height: 34px; padding: 5px 18px; border-radius: 40px;
  border: 2px solid #65739e; background: white; color: var(--action-dark); font-weight: 600;
}
.access-submit:hover { background: #edf2f8; }
.access-links { display: grid; justify-items: center; gap: 4px; margin-top: 22px; }
.access-link { background: transparent; border: 0; color: var(--action-dark); padding: 3px 5px; }
.access-link:hover { text-decoration: underline; }
.access-demo { margin-top: 12px; font-size: 12px; color: var(--muted); }
.access-languages { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; margin-top: clamp(26px,8vh,88px); }
.access-languages [aria-pressed="true"] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.access-signature { display: flex; justify-content: center; margin-top: clamp(20px,6vh,65px); }
.event-announcement { margin-bottom: 15px; }
.event-announcement p { white-space: pre-wrap; }
.event-switch .button { background: #fff; border-color: #fff; }
.account-profile { padding: 4px 9px; }
.account-profile select { width: 100%; max-width: none; }
.season-list { display: grid; gap: 10px; max-height: 46vh; overflow: auto; }
.season-group { border: 1px solid var(--line); border-radius: var(--radius); }
.season-group summary { background: var(--wash); cursor: pointer; padding: 9px 11px; font-weight: 650; }
.season-events { display: grid; padding: 5px; gap: 3px; }
.event-choice {
  border: 1px solid transparent; background: white; color: var(--ink); border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; min-width: 0;
}
.event-choice:hover, .event-choice[aria-current] { border-color: var(--line); background: var(--brand-soft); }
.event-choice > span:nth-child(2) { min-width: 0; flex: 1; }
.event-choice small { display: block; color: var(--muted); }
.event-choice[hidden], .season-group[hidden] { display: none; }
@media(max-width: 720px) {
  .access-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .access-side { padding: 16px; text-align: left; gap: 6px; align-items: stretch; }
  .access-brand { display: grid; width: auto; grid-template-columns: 76px 1fr; column-gap: 16px; align-items: center; }
  .access-picture { grid-row: span 2; margin: 0; }
  .access-picture img { border-width: 2px; }
  .access-medallion .icon svg { width: 20px; }
  .access-brand > p { margin-top: 4px; }
  .access-side footer { text-align: right; }
  .access-side footer strong { display: none; }
  .access-panel { margin-top: 32px; }
  .access-signature { margin-top: 22px; }
}

.deposit-menu summary.button.primary { background: var(--action); color: white; border-color: var(--action); }
.deposit-menu summary.button.primary:hover { background: var(--action-dark); }
.deposit-menu .menu-items { z-index: 3; }
.event-switch .button { color: var(--action-dark); }
.quick-links button { border-color: var(--brand); flex-direction: column; text-transform: uppercase; min-height: 106px; }
.quick-links .icon svg { width: 36px; height: 36px; }
.person-fields { display: grid; grid-template-columns: minmax(140px, .85fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.person-fields .photo-tools { flex-direction: column; }
.person-fields .photo-tools .toolbar { align-items: flex-start; flex-direction: column; }
#page-form { max-width: 1160px; }
#page-form .gridform > input[type="hidden"] { display: none; }
@media(max-width: 720px) {
  .person-fields { grid-template-columns: 1fr; }
  .person-fields .photo-tools { flex-direction: row; }
  .quick-links button { min-height: 82px; }
  .quick-links .icon svg { width: 28px; height: 28px; }
}
.zone-alert { background: #fbefed; border-bottom: 1px solid #edcfcc; color: var(--brand-dark); padding: 8px 20px; }
.zone-alert summary { cursor: pointer; font-size: 13px; font-weight: 650; }
.zone-alert ul { display: grid; gap: 4px; list-style: none; padding: 0; margin: 8px 0 0; }
.zone-alert li { display: flex; gap: 14px; font-size: 13px; }

/* Accréditations */
.content-accreditations { padding: 0; }
.content-accreditations:has(#page-form) { padding: 19px clamp(12px, 2.5vw, 34px) 0; }
.accreditation-registry {
  --registry-blue: #607fc7;
  --registry-red: #cc161b;
  --registry-stripe: #eaedf7;
  --registry-inset: clamp(14px, 3vw, 52px);
  color: #333;
}
.accreditation-registry .panel { border-width: 0; border-radius: 0; }
.accreditation-registry .panel-header {
  min-height: 41px; padding: 6px var(--registry-inset); background: #f5f5f5;
  border-color: #ebebeb; border-radius: 0;
}
.accreditation-registry .panel-header h2 { color: var(--registry-red); font-size: 13px; font-weight: 550; text-transform: uppercase; }
.accreditation-registry .search-panel { margin: 0; }
.accreditation-registry .search-panel form { padding: 26px var(--registry-inset) 30px; gap: 17px; }
.accreditation-registry .search-grid { gap: 14px; }
.accreditation-registry .search-grid :is(input:not([type="checkbox"]),select) {
  min-height: 39px; border-radius: 0; border-color: #c5c5c5; padding: 6px 12px;
}
.accreditation-registry .search-grid select:has(option[value=""]:checked),
.accreditation-registry .search-grid input::placeholder { color: #666; }
.accreditation-registry .advanced-filters summary { color: #4e6fb7; font-weight: 600; text-transform: uppercase; }
.accreditation-registry .form-actions { justify-content: center; }
.accreditation-registry :is(.form-actions,.registry-actions) .button {
  min-height: 37px; border: 2px solid var(--registry-blue); border-radius: 999px; padding: 5px 17px;
  background: #fff; color: #4e6cb2; font-weight: 550;
}
.accreditation-registry :is(.form-actions,.registry-actions) .button:hover:not(:disabled) { background: #edf1fb; }
.accreditation-registry .form-actions .button { width: min(165px, 47%); }
.accreditation-registry .deposit-menu summary.button.primary { background: #fff; border-color: var(--registry-blue); color: #4e6cb2; }
.accreditation-registry .deposit-menu summary.button.primary:hover { background: #edf1fb; }
.accreditation-registry .registry-actions .approve { color: #268832; border-color: #51ad59; }
.accreditation-registry .registry-actions .danger { color: #c42929; border-color: #e34a4a; }
.accreditation-registry .registry-more summary.button { color: #5c5c5c; border-color: #666; min-width: 62px; }
.accreditation-registry .registry-more summary.button .icon { display: inline-flex; transform: none; }
.accreditation-registry .registry-more summary .icon svg { width: 24px; }
.accreditation-registry .deposit-menu summary .icon { display: none; }
.accreditation-registry .menu-items .button { border: 0; border-radius: 3px; justify-content: flex-start; }
.accreditation-registry .results-bar { padding: 9px calc(var(--registry-inset) + 10px) 9px calc(var(--registry-inset) - 7px); border-bottom: 1px solid #ebebeb; }
.accreditation-registry .status-filters { gap: 4px 12px; }
.accreditation-registry .status-filters { flex: 1 1 440px; }
.accreditation-registry .registry-actions { flex: 0 0 auto; margin-left: auto; }
.accreditation-registry .status-filters label { font-size: 11px; text-transform: uppercase; gap: 8px; }
.accreditation-registry input[type="checkbox"] { accent-color: #0079ff; }
.status-break { flex: 0 0 100%; height: 0; }
.status-dot { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #8b93a3; }
.status-dot.approved, .status-dot.issued { background: #8ecf54; }
.status-dot.pending { background: #ffbe58; }
.status-dot.rejected, .status-dot.revoked { background: #fa3739; }
.status-dot.lower { background: #151515; }
.status-dot.review { background: #457be0; }
.status-dot.changes { background: #9870b6; }
.accreditation-registry .result-controls { width: auto; gap: 5px 10px; }
.accreditation-registry .result-controls > label { color: #333; font-size: 11px; text-transform: uppercase; }
.accreditation-registry .result-controls select { width: clamp(46px, 5.2vw, 94px); min-height: 26px; border-radius: 0; color: #4e6cb2; }
.accreditation-registry #registry-size { width: 53px; }
.accreditation-registry .pagination-controls input { width: 43px; min-height: 26px; border-radius: 0; text-align: right; }
.pagination-link.button { min-height: 26px; padding: 0 2px; border: 0; background: none; color: #555; gap: 2px; font-size: 12px; }
.pagination-link.button .icon svg { width: 12px; height: 12px; }
.accreditation-registry .tablewrap { max-height: none; }
.accreditation-table { min-width: 800px; table-layout: fixed; }
.accreditation-table th { background: #fff; text-transform: uppercase; color: #333; font-size: 11px; height: 38px; }
.accreditation-table td { font-size: 14px; height: 51px; }
.accreditation-table :is(td,th) { padding: 6px 8px; border-color: transparent; }
.accreditation-table .accreditation-selection { width: 4%; padding-left: clamp(8px, 1.6vw, 32px); }
.accreditation-table .accreditation-dot { width: 2.6%; }
.accreditation-table .accreditation-photo { width: 4.3%; }
.accreditation-table .accreditation-name { width: 22%; }
.accreditation-table .accreditation-org { width: 21.7%; }
.accreditation-table .accreditation-profile { width: 21.5%; }
.accreditation-table .accreditation-zones { width: 14%; }
.accreditation-table .accreditation-print { width: 5.8%; }
.accreditation-table .accreditation-actions { width: 70px; padding-right: 10px; }
.accreditation-table tbody tr:nth-child(even) td { background: #fff; }
.accreditation-table tbody tr:nth-child(odd) td { background: var(--registry-stripe); }
.accreditation-table tbody tr:hover td { background: #dfe6f6; }
.accreditation-table .portrait { width: 36px; height: 36px; border-radius: 7px; border: 0; }
.accreditation-person { display: block; background: none; border: 0; padding: 0; color: #333; text-align: left; overflow-wrap: anywhere; text-transform: uppercase; }
.accreditation-person:hover { text-decoration: underline; text-underline-offset: 2px; }
.accreditation-person strong { font-weight: 750; }
.accreditation-table .row-tools { display: flex; justify-content: flex-end; gap: 5px; }
.accreditation-table .row-tools button { border: 1px solid var(--registry-blue); color: #4e6cb2; background: transparent; border-radius: 50%; min-width: 26px; width: 26px; min-height: 26px; padding: 3px; }
.accreditation-table .row-tools button:hover { background: #fff; }
.accreditation-table .row-tools .icon svg { width: 15px; height: 15px; }
.zone-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px 5px; border-radius: 18px; background: #6883c7; }
.zone-tags-extra { background: #ef4849; }
.zone-tags > span { min-width: 23px; min-height: 23px; padding: 0 4px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-weight: 750; font-size: 11px; }
.print-state { color: #858b94; }
.print-state.approved, .print-state.issued { color: #49a34e; }
.print-state.rejected, .print-state.revoked { color: #ce4042; }
.print-state .icon svg { width: 21px; height: 21px; stroke-width: 2; }
@media (max-width: 700px) {
  .accreditation-registry .results-bar { padding-inline: var(--registry-inset); }
  .accreditation-registry .results-bar .registry-actions { width: 100%; margin-left: 0; }
  .accreditation-registry .registry-actions .button { padding-inline: 10px; }
}

.brand-mark.brand-logo { object-fit:contain; padding:4px; background:#1a1027; border:0; }

.photo-offer img{width:100%;height:230px;object-fit:cover;border-radius:14px}.dossier-benefits h2{font-size:1.1rem}.dossier-teaser{max-width:620px;margin-top:24px;padding:20px;border:1px solid #ffffff40;border-radius:18px;background:#10172dcc;backdrop-filter:blur(12px);color:white}.dossier-teaser h2{font-size:1.2rem;margin:0 0 8px}.dossier-teaser p{font-size:15px;line-height:1.5}.dossier-teaser a{color:#e4c7ff}.photo-offer p{white-space:pre-wrap;overflow-wrap:anywhere}

.social-network>label{display:flex;align-items:center;gap:10px;cursor:pointer}.social-brand{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;flex-shrink:0;background:#111}.social-brand img{width:24px;height:24px;filter:invert(1)}.social-brand-instagram{background:radial-gradient(circle at 25% 110%,#ffdc80 0%,#fcaf45 20%,#f56040 40%,#c13584 65%,#5851db 100%)}.social-brand-facebook{background:#0866ff}.social-brand-youtube{background:#ff0033}.social-brand-snapchat{background:#fffc00}.social-brand-snapchat img{filter:none}

.public-access-header nav{display:flex;flex-wrap:wrap;gap:8px}.public-access-header nav a{padding:10px 15px;border-radius:12px;background:#ffffff88;text-decoration:none}.public-access-header nav a.active{background:#6b21a8;color:white}.public-access-header nav [hidden]{display:none}.field-error{display:block!important;color:#b42318;font-size:13px;font-weight:600;margin-top:6px}[aria-invalid=true]{outline:2px solid #d92d20;outline-offset:2px}.print-state{display:inline-flex;align-items:center;gap:5px;font-size:11px}.accreditation-print{min-width:115px}
.accreditation-group-tabs{display:flex;flex-wrap:wrap;gap:8px}.batch-workspace{display:grid;grid-template-columns:240px 1fr;gap:20px}.batch-list{max-height:500px;overflow:auto}.batch-list label{display:block;border:1px solid #ced7e8;border-radius:9px;padding:12px;margin:6px 0}.batch-list small{display:block;margin-left:24px}.batch-preview{overflow:auto;max-height:550px;background:#eaf0f9;padding:12px}.batch-preview .batch-sheet{zoom:.5;box-shadow:0 0 8px #c0c8d4}.batch-sheet{box-sizing:border-box;background:white;display:flex;align-items:center;justify-content:center}.batch-grid{display:grid;justify-content:center;align-content:center}.batch-badge{box-sizing:border-box;border:.25mm dashed #8c8c8c;border-radius:2mm;padding:3mm;display:flex;flex-direction:column;gap:2mm;overflow:hidden;font:10pt/1.2 sans-serif;color:#122342;background:white;overflow-wrap:anywhere}.batch-badge header{background:#294469;color:white;padding:2mm}.batch-badge h2{font-size:13pt;margin:0}.batch-badge h3{font-size:12pt;background:#eee5f8;padding:2mm;margin:0}.batch-badge p{margin:0}.batch-person{display:flex;gap:3mm}.batch-person .portrait{width:18mm;height:23mm;object-fit:cover;flex-shrink:0}.batch-badge footer{margin-top:auto;text-align:center}.batch-badge footer small{font-size:6pt;display:block}.batch-badge .badge-barcode{width:100%;height:9mm}.batch-badge footer strong{font-size:7pt;color:#8b2c18}#batch-print-output{position:absolute;left:-10000px;top:0}@media(max-width:700px){.batch-workspace{grid-template-columns:1fr}.batch-list{max-height:180px}}@media print{body:has(#batch-print-output)>*:not(#batch-print-output){display:none!important}#batch-print-output{display:block!important;position:static!important}.batch-sheet{page:accrez-batch;break-after:page;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}.batch-sheet:last-child{break-after:auto}}

/* Large sheet preview with the existing modal behaviour. */
dialog:has(#batch-print-form){width:min(1160px,96vw);max-width:96vw}#batch-print-form .gridform{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:700px){#batch-print-form .gridform{grid-template-columns:1fr}}
.event-switch .match-tab,.match-venue-links .button{border:0;border-radius:12px;padding:12px 18px;font-weight:750;min-height:46px;box-shadow:0 5px 14px #10254c20;transition:transform .2s,box-shadow .2s;color:#fff!important}.match-tab:hover,.match-venue-links .button:hover{transform:translateY(-2px);box-shadow:0 8px 22px #4335a33d}.tab-event{background:linear-gradient(120deg,#146aa3,#229cbd)!important}.tab-form{background:linear-gradient(120deg,#7637b3,#b44fc6)!important}.tab-day{background:linear-gradient(120deg,#c66a09,#e7a327)!important}.tab-zones{background:linear-gradient(120deg,#087764,#28a88c)!important}.match-venue-links{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;margin:16px}.match-venue-links a{border-radius:10px;padding:10px 15px;background:#ffffffc9;color:#163452}.match-venue-links .button{background:linear-gradient(120deg,#3159aa,#567dda)}.match-venue-links .button:last-child{background:linear-gradient(120deg,#64398d,#9463b3)}
.badge-template-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.template-choice{border:2px solid #d9deeb;border-radius:14px;padding:16px;cursor:pointer}.template-choice:has(:checked){border-color:#8a39ae;box-shadow:0 0 0 3px #e4c9ed}.template-sample{display:flex;flex-direction:column;gap:18px;margin:12px 0;padding:20px;background:#f4f7fa;min-height:130px}.template-sample b{color:white;background:var(--badge-color,#1b3c65);padding:14px}.template-sample em{color:white;background:var(--badge-color,#1b3c65);padding:8px}.theme-international{--badge-color:#971c26;--badge-accent:#f2d69c}.theme-stadium{--badge-color:#165937;--badge-accent:#f7dd65}.theme-classic{--badge-color:#1b3c65;--badge-accent:#d9e9fb}.badge-zone-editor{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.badge-zone-editor label{display:grid;grid-template-columns:1fr 80px 50px;align-items:center;gap:10px}.badge-zone-editor input{min-width:0;width:100%}.designed-badge{gap:2mm;padding:3mm;border:.3mm solid var(--badge-color);font-size:9pt}.designed-badge header{background:var(--badge-color);color:white;text-align:center}.designed-badge header strong{font-size:15pt;color:var(--badge-accent)}.designed-badge header div{font-size:8pt;margin:2mm 0}.badge-identity{display:flex;gap:3mm;align-items:center;background:#fff;padding:2mm}.badge-identity .portrait{width:20mm;height:25mm;object-fit:cover;flex-shrink:0}.badge-identity h2{font-size:13pt}.badge-match-band{display:flex;gap:2mm;align-items:center;justify-content:center;color:var(--badge-accent);background:var(--badge-color);padding:3mm;text-align:center}.badge-crest{width:11mm;height:12mm;object-fit:contain}.badge-zone-codes{display:grid;grid-template-columns:repeat(4,1fr);gap:1mm}.badge-zone-codes span{border:.2mm solid #bac5ce;min-height:9mm;text-align:center;padding:1mm}.badge-zone-codes b{font-size:15pt;display:block}.badge-zone-codes small{font-size:5.5pt;display:block}.badge-zone-codes .granted{background:var(--zone-color);color:#fff}.badge-zone-codes .denied{color:#9298a0;background:#eee;text-decoration:line-through}.badge-legend{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:2mm}.badge-legend li{display:flex;align-items:center;gap:2mm;font-size:7pt}.badge-legend b{padding:1mm;color:white;min-width:6mm;text-align:center;background:var(--badge-color)}.badge-terms{font-size:7pt;white-space:normal}.badge-back h3{font-size:11pt}.designed-badge footer{font-size:6pt}.theme-international.designed-badge{background:linear-gradient(150deg,#fff 70%,#f9e5df)}.theme-stadium .badge-match-band{background:linear-gradient(135deg,#103a39,#207551)}@media(max-width:700px){.badge-template-choices,.badge-zone-editor{grid-template-columns:1fr}.event-switch-right{flex-wrap:wrap}.match-tab{flex:1 1 auto}}@media(prefers-reduced-motion:reduce){.match-tab,.match-venue-links .button{transition:none;transform:none!important}}

.match-poster .match-venue-links>a:not(.button){color:#173653!important;text-decoration:none;font-weight:700}.badge-fit-content{display:flex;flex-direction:column;gap:2mm;flex-shrink:0}.designed-badge{display:block}.badge-fit-content footer{margin-top:2mm}.badge-fit-content .badge-barcode{height:9mm}.badge-fit-content .badge-identity h2{font-size:12pt}

.accreditation-group-block{display:flex;align-items:stretch;border:1px solid var(--group-color);border-top:5px solid var(--group-color);border-radius:11px;overflow:hidden;background:white;box-shadow:0 3px 9px #15294f0d}.accreditation-group-block .group-select{border:0;border-radius:0;background:transparent;color:#24324b;display:flex;align-items:center;gap:8px}.group-color-dot{width:12px;height:12px;flex-shrink:0;background:var(--group-color);border-radius:50%;border:1px solid #0002}.accreditation-group-block.active{box-shadow:0 0 0 2px var(--group-color)}.accreditation-group-block.active .group-select{background:var(--group-color);color:var(--group-ink)}.accreditation-group-block.active .group-color-dot{border-color:var(--group-ink)}.group-color-edit{border:0;border-left:1px solid #dbe1eb;background:#f5f7fb;min-width:36px;color:#24324b;display:grid;place-items:center;cursor:pointer}.group-color-edit:hover{background:#e6edf8}.group-color-edit svg{width:17px;height:17px}.badge-group-label{padding:2mm!important;text-align:center;border-radius:1mm}input[type=color]{min-height:42px;cursor:pointer}

.policy-options{display:grid;grid-template-columns:1fr 1fr;gap:18px}.policy-options label{display:grid;grid-template-columns:24px 1fr;gap:8px;padding:20px;border:2px solid #dbe2ef;border-radius:12px;cursor:pointer}.policy-options label:has(:checked){border-color:#7b3fab;background:#f5effb}.policy-options span{grid-column:2;line-height:1.6;color:#53627a}#accreditation-policy table input{width:20px;height:20px;accent-color:#7c3ca6}@media(max-width:700px){.policy-options{grid-template-columns:1fr}}
