:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#faf8f9;color:#28242a;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:#7f2f50}h1,h2,h3,p{margin-top:0}.hero{background:linear-gradient(110deg,#451628,#853550);color:white;padding:28px 20px}.headerinner,.container{max-width:1180px;margin:auto}.headerinner,.between,.heading,.person,.heroactions,.buttons,.cardfooter{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{font-size:25px;font-weight:800;letter-spacing:-.5px}.subtitle{color:#ecd4de;font-size:12px;margin-top:6px}.heroactions{justify-content:flex-end;flex-wrap:wrap}.role{background:#ffffff25;padding:8px 12px;border-radius:8px;font-size:12px}.ghost{background:none;border:0}.light{color:white;display:flex;align-items:center;gap:6px}.container{padding:20px}.nav{display:flex;gap:5px;align-items:center;border-bottom:1px solid #e7dfe4;margin-bottom:24px;overflow-x:auto}.nav button{white-space:nowrap;display:flex;align-items:center;gap:7px;border:0;background:transparent;padding:12px 16px;color:#777078;font-size:13px;border-bottom:3px solid transparent}.nav button.active{color:#7e3150;border-bottom-color:#853550;font-weight:750}.nav .refresh{margin-left:auto}.heading{margin-bottom:17px;align-items:flex-start;flex-wrap:wrap}.heading h2{font-size:23px;margin-bottom:5px}.heading p{font-size:13px;color:#817880;margin-bottom:0}.primary,.outline{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #792c4b;padding:10px 13px;border-radius:9px;font-size:13px;font-weight:700}.primary{background:#792c4b;color:#fff}.outline{color:#792c4b;background:white}.outline.red{color:#ab3740;border-color:#e8bac2}.filters{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:9px;margin-bottom:17px}.filters input,.filters select,.formcard input,.formcard select,.formcard textarea,.dialog input,.dialog select,.dialog textarea,.authcard input,.authcard select{width:100%;border:1px solid #dcd1d7;background:white;border-radius:8px;padding:11px;color:#302631;outline-color:#a35b7a;font-size:13px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.card,.formcard{border:1px solid #e6dbe1;border-radius:14px;background:white;padding:18px;min-width:0}.card h3{font-size:17px;margin:14px 0}.small{color:#817780;font-size:12px;line-height:1.5}.card p.small{display:flex;align-items:center;gap:6px;margin:7px 0}.description{font-size:13px;color:#665f67;line-height:1.55;margin:12px 0;white-space:pre-wrap}.badge{display:inline-flex;align-items:center;gap:4px;background:#f6f3f4;padding:5px 8px;border:1px solid #e9e0e5;border-radius:7px;font-size:11px;color:#605961;white-space:nowrap}.badge.plum{color:#823456;background:#fceef4;border-color:#f0d2df}.badge.yes{color:#227449;background:#e9f7ed;border-color:#c8ead5}.badge.no{color:#af343f;background:#fff0f1;border-color:#f4cdd1}.badge.wait{color:#956419;background:#fff6e6;border-color:#f3dfb6}.labels{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.cardfooter{border-top:1px solid #eee5ea;margin-top:15px;padding-top:14px;flex-wrap:wrap}.appsummary{border-top:1px dashed #e8dce3;margin-top:14px;padding-top:12px}.appsummary strong{font-size:12px}.appsummary p{font-size:12px;color:#928991;margin:7px 0 0}.summary{font-size:12px;padding:8px 0;border-bottom:1px solid #f2edf0}.person{justify-content:flex-start}.person h3{margin:0 0 5px}.avatar{flex-shrink:0;display:grid;place-items:center;background:#f2e2e9;color:#792c4b;font-weight:800;border-radius:50%;object-fit:cover}.empty{padding:30px;text-align:center;border:1px dashed #d9cbd3;border-radius:13px;color:#897e86;font-size:13px}.stack{display:grid;gap:10px}.buttons{justify-content:flex-start}.notice{background:#eaf7ee;border:1px solid #c9e5d1;color:#25643a;padding:12px;border-radius:9px;margin-bottom:17px;font-size:13px;display:flex;justify-content:space-between;gap:9px}.notice button{background:none;border:0;color:inherit}.formcard{max-width:820px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:14px 0}.formcard label,.dialog label,.authcard label{display:block;color:#615860;font-size:12px;font-weight:600;margin:10px 0 5px}.photo{justify-content:flex-start;border-bottom:1px solid #f0e8ec;padding-bottom:16px;margin-bottom:16px}.photo input{margin-top:8px;font-size:11px}.overlay{position:fixed;inset:0;background:#251721a3;display:flex;align-items:center;justify-content:center;padding:15px;z-index:10}.dialog{background:white;border-radius:16px;padding:22px;max-height:92vh;overflow:auto;width:min(620px,100%)}.dialog h2{font-size:21px;margin:0}.iconbutton{border:0;background:none;color:#776e76;padding:4px}.checkrow{display:flex;gap:12px;flex-wrap:wrap}.checkrow label{display:flex;align-items:center;gap:5px}.checkrow input{width:auto}.wide{width:100%;margin-top:16px}.authpage{min-height:100vh;background:linear-gradient(140deg,#4c1c33,#9a496b);display:grid;place-items:center;padding:20px}.authcard{background:white;padding:31px;border-radius:17px;width:min(420px,100%);box-shadow:0 20px 60px #0002}.authlogo{background:#f4e2e9;border-radius:12px;color:#7f3452;width:45px;height:45px;display:grid;place-items:center;font-size:26px;margin-bottom:16px}.authcard h1{font-size:25px;margin-bottom:6px}.authcard p{font-size:13px;color:#857986}.switch{display:grid;grid-template-columns:1fr 1fr;background:#f7f1f4;padding:4px;border-radius:9px;margin:20px 0}.switch button{border:0;background:transparent;border-radius:7px;padding:9px}.switch button.active{background:white;color:#722a48;font-weight:700;box-shadow:0 1px 5px #0001}.setup{max-width:640px;margin:80px auto;padding:24px;background:white;border-radius:14px}.setup code{overflow-wrap:anywhere}@media(max-width:670px){.cards,.formgrid{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.filters input{grid-column:span 2}.brand{font-size:21px}.headerinner{flex-wrap:wrap}.container{padding:14px}.hero{padding:22px 14px}.card{padding:15px}.nav button{padding:12px 9px}}

.portfolio-block{margin-top:12px;padding-top:12px;border-top:1px solid #eee5ea}.portfolio-block strong{font-size:13px}.downloads{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.downloads a{font-size:13px;display:inline-flex;align-items:center;padding:10px 12px;border:1px solid #792c4b;border-radius:9px;text-decoration:none}.docbox{background:#fcf8fa;border:1px solid #ead8e0;border-radius:12px;padding:16px;margin:16px 0}.docbox input{width:100%;font-size:12px}.doc-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}

.mt{margin-top:18px}.adminrow{padding:12px 0;border-top:1px solid #eee5ea;display:grid;gap:9px}.adminrow:first-of-type{border-top:0}.adminrow .buttons{flex-wrap:wrap}.card input,.card select,.card textarea{width:100%;padding:10px;margin-top:7px;border:1px solid #dcd1d7;border-radius:8px;background:white}.card textarea{min-height:70px}.card .formgrid{margin-top:8px}.card .formgrid input,.card .formgrid select{margin:0}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #9e6380;outline-offset:2px}

/* Event poster */
.event-poster{margin:12px 0;border:1px solid #e8dce3;border-radius:10px;overflow:hidden;background:#faf7f9;text-align:center}
.event-poster img{display:block;width:100%;max-height:290px;object-fit:contain}
.event-poster a{display:block;padding:6px;color:#792c4b}
.event-poster a:has(img){padding:0}

.checkrow label{margin:8px 3px 8px 0;display:flex;align-items:center;gap:7px}.checkrow input{width:auto}.appsummary .summary{align-items:flex-start;flex-wrap:wrap}.stack .card{max-width:900px}

/* v6: preserve browser hidden fields in the recruitment form */
#districtscopefield[hidden]{display:none!important}
.cardfooter .small[role=status]{flex-basis:100%;color:#956419;margin-top:5px}

/* v7 official federation branding; no changes to workflow or Supabase data. */
.brandline{display:flex;align-items:center;gap:14px;min-width:0}
.brandmark{width:54px;height:54px;object-fit:contain;flex-shrink:0}
.brandline .brand{line-height:1.13}
.brandline .subtitle{line-height:1.4}
.authcard{width:min(470px,100%)}
.auth-federation-logo{background:linear-gradient(115deg,#4a1830,#752c4c);border-radius:12px;padding:17px 14px;margin-bottom:22px;min-height:84px;display:flex;justify-content:center;align-items:center}
.auth-federation-logo img{display:block;width:100%;height:auto;max-height:65px;object-fit:contain}
.authcard h1{font-size:26px;letter-spacing:-.35px}
@media(max-width:670px){.brandmark{width:43px;height:43px}.brandline{gap:9px}.brandline .brand{font-size:20px}.brandline .subtitle{font-size:10px}.auth-federation-logo{min-height:72px;padding:14px 11px}.authcard{padding:23px}}

.form-error{margin-top:14px;padding:11px 13px;background:#fff1f0;border:1px solid #db6972;border-radius:8px;color:#9e2631;font-size:13px;line-height:1.5;}

/* 9.5: password recovery without changing the existing account or site layout */
.auth-back{display:block;margin:14px auto 0;padding:8px 11px;border:0;background:none;color:#7f2f50;text-decoration:underline;font-size:13px;font-weight:650;cursor:pointer}
.auth-back:hover{color:#4d1b33}
.password-title{font-size:19px;margin:18px 0 7px}
.authcard .password-title+p{line-height:1.6}


/* 9.6: searchable judge and event registers, scoped to federation administration. */
.directory-filters{display:grid;grid-template-columns:minmax(190px,1.8fr) repeat(4,minmax(130px,1fr));gap:9px;margin-bottom:11px;align-items:stretch}
.directory-filters input,.directory-filters select{min-width:0;width:100%;border:1px solid #dcd1d7;border-radius:9px;background:#fff;color:#302631;padding:11px;font-size:13px}
.directory-filters button{min-width:0}.directory-count{font-size:12px;color:#736a71;margin:8px 0 15px;line-height:1.5}
.directory-scroll{max-width:100%;overflow-x:auto;border:1px solid #e6dbe1;border-radius:13px;background:#fff}
.directory-table{border-collapse:collapse;width:100%;min-width:1000px;text-align:left;font-size:12px}
.directory-table th,.directory-table td{padding:13px 12px;border-bottom:1px solid #eee5ea;vertical-align:middle;white-space:normal}
.directory-table th{background:#f7f1f4;color:#6b4b5c;font-size:11px;white-space:nowrap}
.directory-table tbody tr:hover{background:#fcf8fa}.directory-table tr:last-child td{border-bottom:0}
.directory-link{background:transparent;border:0;padding:0;text-align:left;color:#792c4b;font-weight:700;font-size:inherit;line-height:1.45;text-decoration:underline;text-underline-offset:2px}
.directory-link:hover{color:#4e1a34}.directory-empty{text-align:center;color:#827680;padding:25px!important}
.directory-back{margin-bottom:15px}.directory-profile{max-width:100%}.directory-profile h2{font-size:22px;margin:7px 0 12px}
.directory-profile p.small{margin:13px 0;display:block}.directory-section{margin-top:15px}.directory-section h3{margin:4px 0 10px}
.directory-history-line{border-top:1px solid #f0e7eb;padding:13px 0;display:flex;justify-content:space-between;gap:14px;align-items:center}
.directory-history-line:first-of-type{border-top:0}.directory-history-line p.small{margin:6px 0 0}
.directory-poster-link{display:inline-block;margin-top:8px;font-size:13px}
@media(max-width:1000px){.directory-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.directory-filters>input:first-child{grid-column:span 2}}
@media(max-width:650px){.directory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-filters>input:first-child{grid-column:span 2}.directory-filters button{padding:10px 6px}.directory-history-line{align-items:flex-start;flex-direction:column;gap:7px}.directory-table{min-width:900px}}

/* 9.7: distinctly labelled independent event-register filters. */
.directory-event-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 12px;align-items:end;margin:5px 0 14px}
.directory-event-filters .directory-filter-field{display:flex;flex-direction:column;gap:6px;min-width:0;color:#5d4c55;font-size:12px;font-weight:700;line-height:1.3}
.directory-event-filters .directory-filter-field input,.directory-event-filters .directory-filter-field select{font-weight:400;height:42px;margin:0;min-width:0}
.directory-event-filters .directory-filter-actions{display:flex;align-items:end;gap:9px;min-width:0}
.directory-event-filters .directory-filter-actions button{flex:1;min-height:42px;white-space:nowrap}
@media(max-width:1000px){.directory-event-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-event-filters>.directory-filter-field:first-child{grid-column:auto}}
@media(max-width:550px){.directory-event-filters{grid-template-columns:minmax(0,1fr)}.directory-event-filters>.directory-filter-field:first-child{grid-column:auto}}

/* v9.8 opted-in contact preferences */
.contact-preferences{border-top:1px solid #e6d5db;margin-top:24px;padding-top:20px}.contact-preferences h3{margin:0 0 8px}.contact-preferences form{margin-top:16px}.contact-consent{display:flex;align-items:center;gap:10px;margin:12px 0}.contact-consent input{width:auto;flex:none}.contact-preferences .outline{margin-top:8px}

/* v9.9 event group chats */
.chat-entry{padding:10px 0}.chat-layout{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:16px;align-items:start}.chat-sidebar,.chat-area{background:white;border:1px solid #e4d8de;border-radius:13px;padding:17px}.chat-sidebar h3{margin:4px 0 12px}.chat-event-choice{display:block;width:100%;text-align:left;background:transparent;color:#4f3041;border:1px solid #e7dce2;border-radius:9px;margin:7px 0;padding:12px;white-space:normal}.chat-event-choice.chosen{border-color:#792c4b;background:#f8edf2}.chat-event-choice small{display:block;margin-top:5px;color:#766a72}.chat-title{border-bottom:1px solid #ebdfe5;padding-bottom:11px}.chat-title h3{margin:0}.chat-title p{margin:5px 0}.chat-members{line-height:1.8;font-size:12px;margin:12px 0}.chat-member{white-space:nowrap}.chat-chief-actions{border:1px solid #e8d9df;background:#fcf9fa;border-radius:10px;padding:13px;margin:12px 0}.chat-chief-actions label{display:block;font-weight:700;margin-bottom:7px}.chat-chief-line{display:flex;gap:8px;align-items:center}.chat-chief-line select{min-width:0;flex:1}.chat-scroll{height:340px;overflow-y:auto;background:#f9f6f8;border:1px solid #eee2e8;border-radius:10px;padding:13px;margin:13px 0}.chat-message{background:white;border-radius:10px;padding:10px;margin-bottom:9px;max-width:92%;box-shadow:0 1px 3px #24101b0d;overflow-wrap:anywhere}.chat-message.system{background:#eee8ed}.chat-message-head{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:6px}.chat-message-head small{color:#7b747c;white-space:nowrap}.chat-message-body{white-space:pre-wrap;font-size:13px}.chat-send-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:9px}.chat-file-label{cursor:pointer;font-size:13px}.chat-file-label input{display:block;font-size:11px;max-width:210px}.chat-area textarea{width:100%}.chat-placeholder{min-height:190px;color:#766a72;display:grid;place-items:center}@media(max-width:730px){.chat-layout{grid-template-columns:1fr}.chat-sidebar{max-height:200px;overflow-y:auto}.chat-chief-line{flex-direction:column;align-items:stretch}}

/* v10.0: retained rejected applicants and transparent reconsideration controls. */
.rejected-candidates{margin-top:16px;padding:14px;border:1px solid #ddc4cd;border-radius:12px;background:#fffafb}
.rejected-candidates h4{margin:0 0 7px;font-size:1rem;color:#782d4a}
.rejected-candidate-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid #ead9df;margin-top:10px;padding-top:10px}
.rejected-candidate-row .buttons{flex:1;justify-content:flex-end}
.subsection-heading{margin:24px 0 12px;font-size:1.1rem}

/* v10.2 current chief judge: read-only protocols of approved judging panel */
.chat-protocols{border:1px solid #d9c4d0;background:#fffafd;border-radius:12px;padding:15px;margin:13px 0}
.chat-protocols-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.chat-protocols-head h4{font-size:15px;margin:0 0 4px;color:#73304d}
.chat-protocols-head p{margin:0}
.chat-protocol-list{display:grid;gap:9px;margin-top:13px}
.chat-protocol-person{padding:12px;background:#fff;border:1px solid #efdfeb;border-radius:9px}
.chat-protocol-person-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:7px;font-size:13px}
.chat-protocol-labels{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.chat-protocol-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap}
.chat-protocol-error{color:#a12c4a}

/* v10.4 member list reload */
.chat-roster-refresh{appearance:none;background:transparent;border:1px solid var(--border,#e4d7dd);color:inherit;border-radius:8px;padding:3px 9px;cursor:pointer;margin-left:7px}.chat-roster-refresh:hover{background:rgba(130,40,76,.07)}
