*{box-sizing:border-box}body{margin:0;background:#0b1510;color:#f4f7f0;font:15px system-ui}header{padding:18px 4%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #344638;background:#111d15}header strong{font-size:22px}small,p{color:#bac7b6}main{max-width:1280px;margin:32px auto;padding:0 24px}h1{font-size:32px;margin:0 0 5px}h2{font-size:24px}h3{margin:0 0 15px}.title-row{display:flex;justify-content:space-between;align-items:end;gap:18px}.grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}.card{background:#111d15;border:1px solid #354637;border-radius:15px;padding:21px;margin-bottom:16px}.actions,.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs{margin:22px 0}button{background:#18251b;color:#e7f2e8;border:1px solid #425a47;border-radius:9px;padding:10px 15px;cursor:pointer;font-weight:700}button.primary,.tabs button.selected{background:#78c94f;color:#0c160c;border-color:#78c94f}button:disabled{opacity:.45;cursor:not-allowed}label{display:block;margin-bottom:10px;color:#c0d2c3}input,select{display:block;width:100%;margin-top:4px;background:#132019;color:#f1f8ef;border:1px solid #526c55;padding:10px;border-radius:8px}input[type=checkbox]{display:inline;width:auto;margin-right:8px}.check{display:flex;align-items:center}.row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #354637}.row:last-child{border:0}.muted{color:#a5b9aa;font-size:13px}.points{color:#91e66a;font-weight:800}.line{border-top:1px solid #354637;margin:20px 0}#notice:not(:empty){padding:12px;margin-bottom:15px;background:#46331a;border-radius:8px}#printArea{display:none}a{color:#a9e795}@media(max-width:750px){.grid{grid-template-columns:1fr}.title-row{align-items:start;flex-direction:column}main{margin:20px auto}}@media print{body{background:white;color:black}header,main{display:none!important}#printArea{display:grid;grid-template-columns:repeat(2,1fr);gap:6mm}.label{border:1px solid #555;padding:4mm;display:flex;align-items:center;gap:4mm;break-inside:avoid;min-height:34mm}.label img{width:28mm;height:28mm}.label strong{font-size:14pt}.label p{color:black;margin:2mm 0}}
#labelPreview{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}#labelPreview:empty{display:none}#labelPreview .label{display:flex;align-items:center;gap:12px;background:#fff;color:#151515;border-radius:8px;padding:12px;max-width:100%}#labelPreview .label img{width:120px;height:120px}#labelPreview .label p{color:#333;margin:5px 0}

[hidden]{display:none!important}.entry-fieldset{border:0;padding:0;margin:18px 0}.entry-fieldset legend{font-weight:700;color:#f4f7f0}.entry-fieldset p{font-size:12px}.entry-course{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #354637}.entry-course label{margin:0}.entry-course strong{color:#f4f7f0;display:block}.entry-course small{display:block;font-size:10px;margin-top:3px}.entry-course select{font-size:12px;padding:8px;margin:0}.entry-notice{padding:12px;background:#342d1d;color:#ffe2bc;border-radius:8px;margin-bottom:14px}.entry-notice:empty{display:none}.small-button{font-size:11px;padding:6px 10px}.row>.actions{align-items:center;justify-content:flex-end}.print-options{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.print-options label{max-width:270px}.print-options input{max-width:150px}#labelPreview .label{width:390px;min-height:175px;align-items:center}#labelPreview .label img{width:130px;height:130px}#labelPreview .label-details{min-width:0;overflow-wrap:anywhere}#labelPreview .label-event{font-size:10px;color:#555;margin-bottom:6px}#labelPreview strong{line-height:1.2}#labelPreview .label p{font-size:12px}.label-details{min-width:0;overflow-wrap:anywhere}.label-event{font-size:7pt;color:#333;margin-bottom:1mm}.label strong{line-height:1.15}.label img{flex-shrink:0}@media print{header,main{display:none!important}body{background:#fff!important;color:#000!important}#printArea{display:grid}.label{gap:3mm;border:.2mm solid #777;align-items:center;break-inside:avoid;page-break-inside:avoid}.label img{width:32mm;height:32mm}.label strong{font-size:10pt}.label p{font-size:8pt;margin:1mm 0;color:#000}.label-event{font-size:7pt}}@media(max-width:500px){.entry-course{grid-template-columns:minmax(0,1fr) 112px}#labelPreview .label{width:100%;padding:9px;gap:9px}#labelPreview .label img{width:110px;height:110px}}

.grid:has(#entryForm){grid-template-columns:minmax(0,1.1fr) minmax(360px,1fr)}@media(max-width:850px){.grid:has(#entryForm){grid-template-columns:1fr}}

/* 24 mm TZe tape: centered 18 mm print area; identical geometry in preview and print. */
.label-qr{flex-shrink:0;display:flex;align-items:center;justify-content:center}
#printArea .label.label--brother24,#labelPreview .label.label--brother24{box-sizing:border-box!important;width:100mm!important;height:24mm!important;min-height:24mm!important;max-width:none!important;padding:3mm 5mm!important;gap:3mm!important;border:0!important;border-radius:0!important;background:#fff!important;color:#000!important;display:flex!important;align-items:center!important;font-family:Arial,sans-serif;overflow:hidden}
.label--brother24 .label-qr{width:18mm;height:18mm;flex:0 0 18mm}
#printArea .label--brother24 img,#labelPreview .label--brother24 img{display:block;max-width:24mm;max-height:24mm;image-rendering:pixelated}
#printArea .label--brother24 .label-details,#labelPreview .label--brother24 .label-details{height:18mm;flex:1;display:grid;grid-template-rows:2.2mm 6.2mm 5.2mm 3mm;gap:.2mm;min-width:0;overflow-wrap:anywhere}
#printArea .label--brother24 .label-event,#labelPreview .label--brother24 .label-event{font-size:6pt!important;line-height:1;margin:0!important;color:#000!important;white-space:nowrap}
#printArea .label--brother24 strong,#labelPreview .label--brother24 strong{display:block;font-size:8.5pt;line-height:1.05;margin:0!important;color:#000!important}
#printArea .label--brother24 p,#labelPreview .label--brother24 p{font-size:7.5pt;line-height:1.05;margin:0!important;color:#000!important}
#labelPreview:has(.label--brother24){overflow-x:auto;display:block;padding:10px 0}#labelPreview .label--brother24{margin-bottom:12px;box-shadow:0 0 0 1px #a0a0a0}
@media print{.label--brother24{box-shadow:none!important}}

/* Zebra ZD230: one 58 × 60 mm label, QR rendered at whole 203 dpi dots. */
#printArea .label.label--zebra58,#labelPreview .label.label--zebra58{box-sizing:border-box!important;width:58mm!important;height:60mm!important;min-height:60mm!important;max-width:none!important;padding:1mm!important;border:0!important;border-radius:0!important;background:#fff!important;color:#000!important;display:flex!important;flex-direction:column!important;gap:0!important;align-items:center!important;overflow:hidden;font-family:Arial,sans-serif}
.label--zebra58 .zebra-header{width:100%;height:10mm;flex:0 0 10mm;display:flex;gap:1mm;align-items:flex-start}
.label--zebra58 .zebra-text{min-width:0;flex:1;display:grid;grid-template-rows:2.9mm 2.9mm 3.6mm;gap:.2mm}
.label--zebra58 .zebra-event,.label--zebra58 .zebra-name,.label--zebra58 .zebra-start{white-space:nowrap;overflow:hidden;line-height:1.1;color:#000;font-weight:700}
.label--zebra58 .zebra-time{position:relative;flex:0 0 7mm;font-size:4.5pt;font-weight:700;line-height:1;text-align:center;color:#000}
.label--zebra58 .zebra-time-box{width:6mm;height:6mm;box-sizing:border-box;border:.25mm solid #000;margin-top:.4mm}
.label--zebra58 .zebra-seconds{position:absolute;left:6.2mm;bottom:0;font-size:5pt}
#printArea .label--zebra58 .label-qr,#labelPreview .label--zebra58 .label-qr{width:47mm;height:48mm;flex:0 0 48mm;display:flex;align-items:center;justify-content:center}
#printArea .label--zebra58 img,#labelPreview .label--zebra58 img{display:block;max-width:47mm;max-height:47mm;image-rendering:pixelated}
#labelPreview:has(.label--zebra58){overflow-x:auto;display:block;padding:10px 0}#labelPreview .label--zebra58{margin-bottom:12px;box-shadow:0 0 0 1px #a0a0a0}

.regulation-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.6;max-height:32rem;overflow:auto;padding:1rem;background:#f4f7f5;color:#14271f;border-radius:.5rem}#entryWorkspace textarea,#entryPilot textarea{display:block;width:100%;box-sizing:border-box;font:inherit}#entryApplication fieldset{margin:1.2rem 0;padding:1rem;border:1px solid #a5b6ac;border-radius:.6rem}.entry-choice{padding:.8rem 0;border-bottom:1px solid #dbe2dd}.entry-choice select{max-width:100%}#entryRegulationFields label{display:block;margin:1rem 0}.warning{color:#a64e0a}#entryReceiptCode{overflow-wrap:anywhere}#entryRegulations .small{overflow-wrap:anywhere}

.event-club-logo{max-width:140px;max-height:90px;object-fit:contain;background:#fff;border-radius:8px;padding:6px;margin-bottom:10px}.account-actions,#signedInUser{display:flex;align-items:center;gap:10px}#signedInUser[hidden]{display:none}.account-actions img,.avatar-initials{width:36px;height:36px;border-radius:50%;object-fit:cover}.avatar-initials{display:inline-flex;align-items:center;justify-content:center;background:#477d35;color:white;font-weight:700}#signedInName{max-width:200px;overflow-wrap:anywhere}#judgeRecruitmentCode{display:block;font-size:1.2rem;overflow-wrap:anywhere;margin:1rem 0}@media(max-width:650px){header{gap:10px;flex-wrap:wrap}#signedInName{max-width:140px}}

.portal-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 80px)}.portal-shell:has(>aside[hidden]){display:block}#portalNav{background:#16221b;border-right:1px solid #354637;padding:26px 16px}#portalNav nav{position:sticky;top:24px;display:flex;flex-direction:column;gap:8px;margin-top:24px}#portalNav button{text-align:left;background:transparent;border-color:transparent}#portalNav button.selected{color:#0c160c;background:#78c94f}#portalNav button[hidden]{display:none}.portal-shell>main{width:100%;min-width:0;max-width:1400px}#portalPageTitle{margin-bottom:24px}.event-tabs{display:none}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}#entryPilotAccess{margin-bottom:24px}@media(max-width:800px){.portal-shell{grid-template-columns:1fr}#portalNav{border-right:0;border-bottom:1px solid #354637;padding:12px}#portalNav nav{position:static;flex-direction:row;flex-wrap:wrap;margin-top:10px;gap:4px}#portalNav button{font-size:13px;padding:8px}main{padding:0 16px}}@media print{.portal-shell{display:none}}

.brand-wordmark{display:inline-flex;align-items:center;white-space:nowrap;font-size:28px;font-weight:900;letter-spacing:-1.12px;line-height:1.25;color:#f4f7f0}.brand-wordmark img{width:24.36px;height:24.36px;margin:0 1px}.brand-green{color:#78c94f}.portal-caption{display:block;font-size:11px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;margin-top:3px;color:#bac7b6}.card{border-radius:20px}button{border-radius:14px}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #78c94f;outline-offset:3px}.portal-shell>aside{background:#111d15}#portalNav>strong{font-size:14px;color:#bac7b6}.danger{border-color:#b46a62;color:#ffc4bb}

header{position:sticky;top:0;z-index:20;box-shadow:0 4px 16px #0003}#portalNav nav{top:110px}.avatar-initials[hidden]{display:none}#judgeApplicationPanel{max-width:900px}#clubManagerList p{overflow-wrap:anywhere}

.portal-dialog{max-width:min(90vw,560px);background:#111d15;color:#f4f7f0;border:1px solid #354637;border-radius:20px;padding:28px}.portal-dialog::backdrop{background:#000a}.portal-dialog h2{margin-top:0}.portal-dialog .actions{margin-top:24px}

.portal-dialog textarea{display:block;width:100%;font:inherit;background:#0b1510;color:#f4f7f0;border:1px solid #354637;border-radius:10px;padding:10px;margin:8px 0}

.club-list{list-style:none;padding:0;display:grid;gap:10px;margin:16px 0 24px}.club-list-item{width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:16px}.club-list-item[aria-pressed="true"]{border-color:#78c94f;background:#1d3120}.club-list-item img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:8px;padding:4px;flex-shrink:0}.club-list-info{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.club-list-info strong{font-size:16px}

.catalog-list{display:grid;gap:12px;margin-top:16px}.catalog-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.catalog-row h3{flex:1 1 260px;margin:0}.catalog-row p{flex:1 1 320px;margin:0}.catalog-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.event-list-row{display:flex;align-items:center;gap:12px}.event-open{flex:1;min-width:0;text-align:left;background:transparent;border-color:transparent;padding:6px}.event-open strong{overflow-wrap:anywhere}@media(max-width:650px){.event-list-row{flex-wrap:wrap}.event-list-row .event-open{flex-basis:100%}.catalog-row button{flex:1}}

.header-club-logo{height:54px;max-width:150px;object-fit:contain;background:white;border-radius:8px;padding:4px}.header-club-logo[hidden],#portalClubRow[hidden]{display:none}#portalClubRow{display:grid;gap:4px;font-size:12px;margin:0}#portalClubSelect{max-width:220px;font-size:14px;padding:7px}#accountSettings{width:min(92vw,760px);max-width:760px;max-height:85vh;overflow:auto}#clubDefaultsFields textarea{min-height:90px}#clubDefaultsSettings{border-top:1px solid #354637;margin:20px 0;padding-top:16px}

.account-menu{position:relative}.account-menu-options{display:none;position:absolute;right:0;top:100%;min-width:180px;padding:10px;background:#111d15;border:1px solid #354637;border-radius:14px;box-shadow:0 8px 24px #0006;z-index:30}.account-menu:hover .account-menu-options,.account-menu:focus-within .account-menu-options,.account-menu.open .account-menu-options{display:grid;gap:8px}.account-menu-options button{text-align:left;width:100%}#accountMenuTrigger{padding:4px 8px;border-color:transparent;background:transparent}

.header-club-logo{margin-left:18px;margin-right:auto}
