@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,400;0,700;1,400&display=swap');
*,html,body,.sheet,div,section,main,article,aside,nav,dialog,select,textarea{scrollbar-width:none!important;-ms-overflow-style:none!important}
*::-webkit-scrollbar,::-webkit-scrollbar,html::-webkit-scrollbar,body::-webkit-scrollbar,.sheet::-webkit-scrollbar,div::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;background:transparent!important;-webkit-appearance:none!important}
*::-webkit-scrollbar-thumb,::-webkit-scrollbar-thumb,*::-webkit-scrollbar-track,::-webkit-scrollbar-track,*::-webkit-scrollbar-corner,::-webkit-scrollbar-corner{display:none!important;background:transparent!important;border:none!important;width:0!important;height:0!important}
html{overflow-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none!important}
:root{--pine:#123b31;--ink:#162c24;--muted:#53665c;--line:#dbe3d9;--paper:#f6f8f2;--lime:#d9ed7e;--deep:#082e26;--rust:#a6452b;--white:#fff;--small:13px;--radius:20px;color-scheme:light;font:16px/1.45 'Comic Sans MS','Comic Sans','Comic Neue','Chalkboard SE',cursive,sans-serif;font-family:'Comic Sans MS','Comic Sans','Comic Neue','Chalkboard SE',cursive,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box;font-family:'Comic Sans MS','Comic Sans','Comic Neue','Chalkboard SE',cursive,sans-serif}body{margin:0;min-width:300px;font-family:'Comic Sans MS','Comic Sans','Comic Neue','Chalkboard SE',cursive,sans-serif}button,input,select,textarea,h1,h2,h3,p,span,a,small,div{font-family:'Comic Sans MS','Comic Sans','Comic Neue','Chalkboard SE',cursive,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bd6826;outline-offset:3px}button{border:0;background:none}a{color:var(--pine)}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.05;letter-spacing:-.045em}h1{font-size:clamp(2.1rem,5.2vw,4.6rem);font-weight:760}h2{font-size:clamp(1.35rem,2.6vw,2rem)}h3{font-size:1.08rem}p{overflow-wrap:anywhere}small,.muted{color:var(--muted)}small{font-size:.79rem}.large{font-size:18px}.ic{display:inline-block;width:1.2em;height:1.2em;flex:0 0 auto;background:currentColor;mask:var(--i) center/contain no-repeat;-webkit-mask:var(--i) center/contain no-repeat;vertical-align:-.2em}.demo{display:none!important}.mast{background:var(--deep);color:white}.mastin{max-width:1152px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:14px 28px;gap:12px}.headacts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:10px;font-weight:760;font-size:1.14rem;letter-spacing:-.035em}.mark{height:30px;width:30px;position:relative;background:var(--lime);border-radius:8px;display:grid;place-items:center;color:var(--pine)}.mark .ic{width:23px;height:23px}.headact{border:1px solid #568074;color:#f6fff8;min-height:39px;padding:6px 11px;border-radius:12px;display:flex;align-items:center;gap:7px;font-size:.84rem}.headact.solid{background:var(--lime);color:var(--deep);border-color:var(--lime);font-weight:700}.desk-nav{display:flex;gap:3px;align-items:center}.desk-nav button{padding:9px 12px;border-radius:11px;color:#d1e2d6;font-size:.89rem}.desk-nav button.active{color:var(--deep);background:var(--lime);font-weight:700}.wrap{max-width:1152px;margin:auto;padding:25px 28px 60px}.content{display:grid;gap:24px}.staffwrap{max-width:980px}.hero{min-height:238px;border:1px solid #bdd4bc;display:grid;grid-template-columns:1.04fr 1fr;overflow:hidden;background:#e7efcd;border-radius:26px}.hero-text{padding:32px 34px;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:12px}.eyeline{font-size:.72rem;font-weight:750;color:#426345;letter-spacing:.07em;text-transform:uppercase}.hero h1{max-width:9.5em;line-height:.98}.hero p{color:#3f5843;font-size:.91rem}.hero-pic{width:100%;height:100%;min-height:220px;object-fit:cover;object-position:52% 53%}.btn{min-height:43px;padding:10px 15px;border-radius:11px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;font-weight:650;line-height:1.2;font-size:.91rem}.btn.solid{background:var(--pine);color:white;border-color:var(--pine)}.btn.lime{background:var(--lime);color:var(--deep);border-color:var(--lime)}.btn.wide{width:100%}.btn.slim{min-height:36px;padding:7px 11px;font-size:.8rem}.textbtn{display:inline-flex;align-items:center;gap:5px;color:#245b42;font-weight:700;min-height:42px;font-size:.88rem;text-align:left}.sectionhead,.lineup,.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.sectionhead{margin-bottom:12px}.sectionhead p,.intro>p{color:var(--muted);margin-top:8px}.heading-count{font-size:.75rem;font-weight:650;background:#e5ecdf;color:#385440;border-radius:20px;padding:4px 8px;vertical-align:middle;letter-spacing:0}.row,.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.stagebar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.seg,.chiplist{display:flex;gap:5px;flex-wrap:wrap}.seg{background:#e7ede1;border-radius:14px;padding:4px}.seg button,.chip{min-height:36px;padding:7px 14px;border-radius:10px;font-size:.86rem;font-weight:650}.seg button.current{background:white;box-shadow:0 1px 4px #223b2519}.chip{border:1px solid var(--line);background:white;min-height:36px}.chip.current{background:var(--pine);color:white}.section{min-width:0}.grid{display:grid;gap:12px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;min-width:0}.livecard{position:relative;min-width:0;display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:12px;width:100%;text-align:left;padding:9px;background:#fff;border:1px solid var(--line);border-radius:18px}.livecard img{width:92px;height:91px;object-fit:cover;border-radius:12px}.livecard h3{margin:5px 0}.livecard small,.cell small{display:block}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:3px 8px;font-size:.69rem;font-weight:740;letter-spacing:.015em;white-space:nowrap;background:#e9efe3;color:#3e5842}.pill.live{background:#ffede7;color:#9c351b}.pill.live:before{content:"";width:7px;height:7px;border-radius:50%;background:#c24828}.pill.done{background:#e1f0d4;color:#2e581e}.pill.wait{background:#fff2d1;color:#725800}.mutebox{background:#f2f5ec;border:1px solid var(--line);border-radius:13px;padding:12px 14px;color:#395342}.list{border:1px solid var(--line);overflow:hidden;border-radius:17px;background:white}.cell{display:flex;align-items:center;gap:12px;min-height:67px;text-align:left;width:100%;padding:11px 14px;border-bottom:1px solid #e8ede4}.cell:last-child{border-bottom:0}.cell:hover,.livecard:hover{background:#f6f9ef}.cell .main{flex:1;min-width:0}.cell .main b{display:block;line-height:1.25}.cell .end{text-align:right;display:flex;align-items:center;gap:6px}.cellpic{width:50px;height:50px;object-fit:cover;border-radius:12px;flex:none}.avatar{display:inline-flex;position:relative;flex:none;align-items:center;justify-content:center}.avatar img{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:center 37%;border:2px solid white}.avatar .crown,.spot .crown{position:absolute;top:-9px;left:50%;transform:translateX(-50%);width:22px;height:16px;clip-path:polygon(0 22%,26% 47%,51% 0,76% 47%,100% 22%,87% 89%,12% 89%);pointer-events:none;z-index:2}.avatar .crown.gold,.avatar .crown:not(.silver):not(.bronze){background:linear-gradient(180deg,#fff280 0%,#f59e0b 55%,#b45309 100%);filter:drop-shadow(0 1px 2px rgba(146,64,14,0.75))}.avatar .crown.silver{background:linear-gradient(180deg,#ffffff 0%,#cbd5e1 55%,#64748b 100%);filter:drop-shadow(0 1px 2px rgba(51,65,85,0.75))}.avatar .crown.bronze{background:linear-gradient(180deg,#fcd34d 0%,#d97706 45%,#78350f 100%);filter:drop-shadow(0 1px 2px rgba(120,53,15,0.8))}.avatar.big img{width:76px;height:76px}.avatar.big .crown{top:-15px;width:32px;height:24px}.sym{width:43px;height:43px;display:grid;place-items:center;flex:none;border-radius:13px;color:#356445;background:#e8f0df}.sym.red{color:#ad553d;background:#fff0e6}.rank{font-size:.72rem;font-weight:740;color:#735319;letter-spacing:.025em}.right{margin-left:auto}.filters{display:grid;gap:9px;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));align-items:end}.filters label,form label,.flabel{display:grid;gap:5px;font-size:.79rem;font-weight:650;color:#405443}input,select,textarea{width:100%;padding:10px 11px;border:1px solid #bdccbc;border-radius:10px;background:#fff;color:var(--ink);min-height:42px;font-size:.92rem;max-width:100%}textarea{resize:vertical;min-height:70px}.stagebar label select{min-height:40px;width:auto}.badge-main{background:var(--pine);color:white;border-radius:22px;padding:22px;display:grid;gap:10px;position:relative;overflow:hidden}.badge-main .eyeline{color:#d5e5b7}.badge-main h1,.badge-main h2{color:#f5fae9;letter-spacing:-.04em}.badge-main p{color:#d6e0cf}.cash-total{font-size:3rem;font-weight:750;line-height:1}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px 14px;min-width:0}.stat b{display:block;font-size:1.55rem;letter-spacing:-.04em}.stat small{display:block}.photoalbum{position:relative;overflow:hidden;min-height:180px;border-radius:18px;background:#264235;color:white;padding:0;text-align:left}.photoalbum img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover}.photoalbum span{position:absolute;bottom:0;left:0;right:0;padding:33px 15px 12px;background:linear-gradient(transparent,#122c23db);font-weight:690}.intro{padding:3px 0}.intro h1{font-size:clamp(2rem,3.7vw,3.2rem)}.bottom{display:none}.empty{padding:22px;border:1px dashed #b6c6b4;border-radius:15px;background:#eef3e7;color:#4c654f}.formgrid{display:grid;gap:14px}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.error{color:#923718;font-size:.87rem;margin:2px 0}.error:empty{display:none}.group-title{font-size:.76rem;text-transform:uppercase;letter-spacing:.065em;color:#536b52;font-weight:700}.modalback{position:fixed;inset:0;background:#102b2385;z-index:80;display:grid;place-items:center;padding:16px}.sheet{width:min(100%,535px);max-height:89dvh;overflow:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none!important;-ms-overflow-style:none!important;border-radius:22px;padding:20px;background:#fbfcf7;box-shadow:0 10px 80px #122d2344}.sheet:focus{outline:none}.sheetheader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.sheetheader h2{font-size:1.38rem}.close{display:grid;place-items:center;min-width:42px;min-height:42px;background:#e7eee2;border-radius:50%;font-size:1.4rem}.sheet .content{gap:14px}.viewer{width:min(98%,740px)}.viewer figure{margin:0}.viewer img{width:100%;max-height:58dvh;object-fit:contain;background:#122f25;border-radius:15px;display:block}.viewer figcaption{margin:12px 0}.viewer .actions{justify-content:space-between}.auth{max-width:475px;margin:16px auto 40px;display:grid;gap:16px}.auth .cover{height:135px;width:100%;object-fit:cover;border-radius:18px}.auth .hint,.note{font-size:.81rem;line-height:1.45;color:var(--muted)}.receipt{display:grid;gap:9px}.receipt p{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:8px}.receipt p span{color:var(--muted)}.receipt p b{text-align:right}.amtin{color:#30633c}.amtout{color:#9b5139}.tabs{display:flex;gap:7px;flex-wrap:wrap}.podium{padding:16px;display:flex;gap:12px;align-items:center}.podium strong{display:block}.spot{position:relative;display:inline-flex}.noticebar{padding:9px 14px;background:#fff1cf;color:#705321;font-size:.83rem}.coverthumb{width:76px;height:57px;object-fit:cover;border-radius:10px}.order{font-variant-numeric:tabular-nums}.actions.block{display:grid;grid-template-columns:1fr 1fr}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}#notice{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#15392e;color:white;padding:11px 15px;border-radius:14px;max-width:min(92%,440px);text-align:center;z-index:100;opacity:0;pointer-events:none;transition:.18s;font-size:.89rem}#notice.show{opacity:1;transform:translate(-50%,0)}.sheet form .actions{padding-top:4px}.settings-summary{color:#507054;font-size:.84rem;margin-top:4px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.resume{display:flex;gap:12px;align-items:center}.menu-box{background:#eaf3df;color:var(--ink);text-align:left;border:1px solid #d1dfc7;border-radius:15px;padding:14px;display:flex;align-items:center;gap:10px;min-height:56px}.menu-box b{font-size:.9rem}.sampleline{font-size:.78rem;color:#637466}.event-img{width:100%;border-radius:14px;max-height:175px;object-fit:cover}.filtertoggle{margin:0}.subfilters{background:white;border:1px solid var(--line);border-radius:14px;padding:12px}.subfilters summary{font-size:.9rem;font-weight:700;cursor:pointer}.subfilters[open] summary{margin-bottom:11px}.alignleft{text-align:left}.scoreline{padding:12px 0;border-bottom:1px solid var(--line)}.scoreline:last-child{border:0}.footer{margin-top:8px;padding:12px 0;color:var(--muted);border-top:1px solid var(--line);font-size:.76rem}
@media(min-width:901px){.staffwrap .hero{min-height:180px}.staffwrap .hero-pic{min-height:180px}.compact-grid{grid-template-columns:1.2fr .8fr;align-items:start}}
@media(max-width:900px){.desk-nav{display:none}.bottom{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;background:#fffffff5;border-top:1px solid #cdd7ca;justify-content:center;padding:4px 5px max(4px,env(safe-area-inset-bottom));box-shadow:0 -4px 16px #243a2309}.bottom button{color:#54675a;min-width:0;flex:1;max-width:145px;display:grid;justify-items:center;gap:3px;font-size:.72rem;font-weight:600;padding:6px 2px 3px;border-radius:12px;min-height:52px}.bottom button.active{color:#173d30;background:#eaf3db}.bottom .ic{font-size:18px}.wrap{padding-bottom:90px}.g3{grid-template-columns:repeat(2,minmax(0,1fr))}#notice{bottom:78px}.hero-text{padding:25px}}
@media(max-width:600px){.mastin{padding:10px 15px}.wrap{padding:14px 14px 88px}.content{gap:18px}.demo{justify-content:space-between;padding:4px 15px}.demo select{height:30px}.hero{grid-template-columns:1.05fr .95fr;border-radius:20px;min-height:154px}.hero-text{padding:15px 9px 15px 15px;gap:8px}.hero h1{font-size:clamp(1.8rem,8vw,2.6rem)}.hero p{font-size:.77rem}.hero .btn{font-size:.77rem;min-height:35px;padding:7px 9px}.hero-pic{min-height:158px}.eyeline{font-size:.63rem}.stagebar{gap:7px}.seg button{padding:7px 11px;min-height:34px}.stagebar label select{max-width:152px;min-height:38px;font-size:.8rem}.sectionhead{margin-bottom:9px}.sectionhead p{font-size:.82rem}.g2,.g3,.compact-grid{grid-template-columns:1fr}.g4{grid-template-columns:1fr 1fr}.grid{gap:9px}.livecard{grid-template-columns:73px minmax(0,1fr);gap:11px;padding:6px}.livecard img{width:73px;height:71px}.livecard h3{margin:2px 0}.livecard small{font-size:.74rem}.livecard .pill{padding:2px 6px}.public-live .livecard:nth-child(n+3){display:none}.cell{gap:10px;padding:9px 10px;min-height:60px}.cellpic{width:43px;height:43px}.cell .end small{font-size:.68rem}.stats{gap:7px}.stat{padding:10px 8px;border-radius:12px}.stat b{font-size:1.32rem}.stat small{font-size:.68rem}.card{padding:14px}.photoalbum{min-height:140px}.albumgrid{grid-template-columns:1fr 1fr}.sheet{max-height:min(91dvh,88vh);border-radius:20px;padding:18px 15px;width:min(95vw,490px);margin:auto;box-shadow:0 12px 36px rgba(0,0,0,0.28)}.modalback{padding:12px;place-items:center;align-items:center;justify-items:center}.auth{margin:6px auto 20px}.auth .cover{height:110px}.between{gap:5px}.stats+.card{margin-top:0}.filters{grid-template-columns:1fr 1fr}.badge-main{padding:19px}.cash-total{font-size:2.55rem}.viewer{width:100%}.actions.block .btn{padding:9px}.sheet .g2{grid-template-columns:1fr 1fr}.headact{min-height:36px}.large .hero h1{font-size:2.05rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.photo-frame{position:relative}.photo-crown{position:absolute;transform:translate(-50%,-80%);font-style:normal;font-size:clamp(1.3rem,4vw,2.6rem)}
.change-list{display:grid;gap:10px;margin-top:12px}
.change-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:grid;gap:8px}
.change-label{font-size:.84rem;color:var(--pine)}
.change-compare{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.change-box{background:#f7f9f5;border:1px solid #dce5da;border-radius:10px;padding:8px 10px;font-size:.87rem;word-break:break-word}
.change-box.old{background:#fff5f2;border-color:#f2d4cc;color:#793220}
.change-box.next{background:#f1f8ed;border-color:#cee2c5;color:#245731}
.change-box.full{grid-column:1 / -1}
.change-box small{display:block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px;opacity:.8}
.change-arrow{font-size:1.05rem;color:var(--muted);user-select:none;text-align:center}
@media(max-width:500px){.change-compare{grid-template-columns:1fr}.change-arrow{transform:rotate(90deg);margin:2px 0}}

/* Mobile-first Role Selector & Unified Login styling */
.role-selector {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}
.role-pill {
  flex: 1;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all .16s ease;
  cursor: pointer;
}
.role-pill.active {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
  box-shadow: 0 2px 8px rgba(18, 59, 49, 0.22);
}
.auth {
  max-width: 490px;
  margin: 20px auto 40px;
  padding: 24px 22px;
  display: grid;
  gap: 18px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.auth .cover {
  height: 145px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.auth-header {
  display: grid;
  gap: 10px;
}
.auth-footer {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.textbtn-center {
  background: #eef4e8;
  color: #245b42;
  border: 1px solid #c9d8c4;
  font-weight: 700;
  min-height: 44px;
  border-radius: 12px;
  font-size: .92rem;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.offline-note {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
@media (max-width: 600px) {
  .auth {
    margin: 8px auto 24px;
    padding: 18px 16px;
    border-radius: 20px;
  }
  .role-pill {
    font-size: .80rem;
    padding: 7px 4px;
    min-height: 40px;
  }
  .auth .cover {
    height: 120px;
  }
}

/* Official Registration Summary Sheet Print Styling */
@media print {
  html, body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    height: auto !important;
  }

  /* Hide regular UI chrome, masthead, bottom nav, notices, modal close buttons */
  .mast, .bottom, #notice, .close, .no-print, .sheetheader,
  body > *:not(#overlay) {
    display: none !important;
  }

  /* Ensure modal backdrop and sheet don't hide or clip the print contents */
  #overlay,
  .modalback,
  .sheet,
  .content,
  .official-print-wrap,
  .official-sheet-scroll-container {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #officialSheetA4,
  .official-a4 {
    display: block !important;
    position: static !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 4mm 6mm !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    page-break-inside: avoid !important;
  }

  #officialSheetA4 table {
    width: 100% !important;
    border-collapse: collapse !important;
    page-break-inside: avoid !important;
  }

  #officialSheetA4 th,
  #officialSheetA4 td {
    border: 1px solid #000 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    size: A4 portrait;
    margin: 6mm;
  }
}

.pwd-wrap{position:relative;display:flex;align-items:center;width:100%}
.pwd-toggle-btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none!important;border:none!important;cursor:pointer;padding:6px;display:flex;align-items:center;justify-content:center;color:#64748b;z-index:2;line-height:0;transition:color .15s;border-radius:6px}
.pwd-toggle-btn:hover{color:var(--pine)!important}
.pwd-toggle-btn:focus-visible{outline:2px solid var(--pine);outline-offset:2px}


/* ==========================================
   POPUP SCROLL LOCK & WIDE MODAL ENHANCEMENTS
   ========================================== */

/* Prevent background page scrolling on mobile/desktop when any popup is open */
html.sheet-open,
body.sheet-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  height: 100% !important;
}

.modalback {
  overscroll-behavior: contain !important;
}

.sheet {
  overscroll-behavior: contain !important;
  touch-action: auto !important;
}

/* ============================================================
   OFFICIAL ENTRY SHEET MODAL (FIXED HEADER & INDEPENDENT SLIP SCROLL)
   Modal header and toolbar stay pinned at top; only the slip scrolls.
   ============================================================ */
.sheet.sheet-official-slip,
.sheet:has(.official-print-wrap),
.sheet:has(.official-a4) {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  touch-action: auto !important;
  max-height: min(94dvh, 90vh) !important;
  height: min(94dvh, 90vh) !important;
  padding: 16px 16px 12px !important;
  box-sizing: border-box !important;
  width: min(96vw, 920px) !important;
  max-width: 920px !important;
}

@media (min-width: 901px) {
  .sheet.sheet-wide:not(.sheet-official-slip):not(:has(.official-print-wrap)) {
    width: min(94vw, 880px) !important;
    max-width: 880px !important;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .sheet.sheet-wide:not(.sheet-official-slip):not(:has(.official-print-wrap)) {
    width: min(96vw, 760px) !important;
    max-width: 760px !important;
  }
}

@media (max-width: 600px) {
  .sheet.sheet-official-slip,
  .sheet:has(.official-print-wrap),
  .sheet:has(.official-a4) {
    width: min(96vw, 560px) !important;
    max-height: min(94dvh, 90vh) !important;
    height: min(94dvh, 90vh) !important;
    border-radius: 18px !important;
    padding: 12px 10px 10px !important;
  }
}

/* Modal header stays pinned at the very top */
.sheet.sheet-official-slip .sheetheader,
.sheet:has(.official-print-wrap) .sheetheader {
  flex-shrink: 0 !important;
  width: 100% !important;
  margin-bottom: 8px !important;
  padding-bottom: 4px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}

/* Modal content container takes remaining height without outer scroll */
.sheet.sheet-official-slip .content,
.sheet:has(.official-print-wrap) .content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  gap: 0 !important;
}

/* Official print wrapper */
.official-print-wrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Action buttons stay pinned at the top below modal title */
.official-print-wrap .no-print {
  flex-shrink: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  padding-bottom: 6px !important;
  margin-bottom: 6px !important;
  z-index: 5 !important;
}

/* Dedicated mobile swipe helper badge */
.mobile-slip-scroll-hint {
  display: none;
}
@media (max-width: 768px) {
  .mobile-slip-scroll-hint {
    display: flex !important;
  }
}

/* Isolated horizontal & vertical scroll container for the A4 slip table */
.official-sheet-scroll-container {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  overscroll-behavior: contain !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  position: relative !important;
  scrollbar-width: thin !important;
  scrollbar-color: #94a3b8 #f1f5f9 !important;
}

.official-sheet-scroll-container::-webkit-scrollbar {
  display: block !important;
  width: 7px !important;
  height: 7px !important;
}

.official-sheet-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 4px !important;
}

.official-sheet-scroll-container::-webkit-scrollbar-thumb {
  background: #94a3b8 !important;
  border-radius: 4px !important;
}

.official-sheet-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #64748b !important;
}

/* A4 Slip table sizing: full width with horizontal scroll support */
#officialSheetA4,
.official-a4 {
  width: max-content !important;
  min-width: 760px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  margin: 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Mobile responsive single-column form fields */
@media (max-width: 600px) {
  .twocol {
    grid-template-columns: 1fr !important;
  }
}


/* Mobile Phone Input Validation Styles */
input.input-invalid,
select.input-invalid {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}

input.input-valid {
  border-color: #16a34a !important;
}

.phone-error {
  display: none;
  color: #b91c1c;
  font-size: 0.77rem;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.25;
}

.phone-error.show {
  display: block;
}

input.input-invalid, select.input-invalid {
  border-color: #dc2626 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}
input.input-valid, select.input-valid {
  border-color: #16a34a !important;
}

.athlete-summary-card {
  transition: all .2s ease;
}
.athlete-summary-card:hover {
  border-color: #4ade80 !important;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.1) !important;
}

/* Step 3 Custom Header Sheet */
.sheet.wiz-step3-sheet .sheetheader {
  display: none !important;
}
.sheet.wiz-step3-sheet {
  padding-top: 16px;
}
@media (max-width: 600px) {
  .sheet.wiz-step3-sheet {
    padding-top: 14px;
  }
}

/* Registration Deadline Marquee Ticker Strip */
.deadline-ticker-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 6px 10px;
  margin-bottom: 12px;
  font-size: .83rem;
  color: #9a3412;
  box-shadow: 0 1px 4px rgba(154, 52, 18, 0.06);
}
.deadline-ticker-strip.expired {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}
.deadline-ticker-strip.override {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}
.deadline-ticker-strip .deadline-badge {
  flex-shrink: 0;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ea580c;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .74rem;
  letter-spacing: .02em;
}
.deadline-ticker-strip.expired .deadline-badge {
  background: #dc2626 !important;
}
.deadline-ticker-strip.override .deadline-badge {
  background: #16a34a !important;
}
.deadline-ticker-strip .ticker-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.deadline-ticker-strip .ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeTicker 32s linear infinite;
  font-weight: 600;
}
.deadline-ticker-strip:hover .ticker-text {
  animation-play-state: paused;
}
@keyframes marqueeTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================================
   EVENTS PAGE REDESIGN: ACCORDION GROUP CARDS & FILTER UNFOLD
   ============================================================ */
.events-stagebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.events-stagebar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.events-filter-unfold {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.3s ease;
  margin-bottom: 0;
  width: 100%;
}
.events-filter-unfold.is-open {
  max-height: 520px;
  opacity: 1;
  margin-top: 10px;
  margin-bottom: 16px;
}
.event-group-card {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.event-group-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.event-group-header {
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #ffffff;
  transition: background 0.15s ease;
}
.event-group-header:hover {
  background: #fbfdf9;
}
.event-group-header:active {
  background: #f1f5ee;
}
.event-group-chevron {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.event-group-card.is-open .event-group-chevron {
  transform: rotate(180deg);
}
.event-group-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  border-top: 0 solid var(--line);
}
.event-group-card.is-open .event-group-body {
  max-height: 6000px;
  opacity: 1;
  border-top: 1px solid var(--line);
}

/* ============================================================
   GLOBAL POPUP MODAL ARCHITECTURE: ALWAYS POPUP, NEVER BOTTOM SHEET
   Applies across all pages (Public, Admin, Score, Cash, Wizard, Slips, etc.)
   ============================================================ */
.modalback {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(16, 43, 35, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 80 !important;
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  padding: 14px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sheet {
  width: min(94vw, 535px) !important;
  max-width: 535px !important;
  max-height: min(90dvh, 88vh) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 20px 18px !important;
  margin: auto !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 600px) {
  .modalback {
    padding: 12px !important;
    align-items: center !important;
    justify-items: center !important;
    place-items: center !important;
  }
  .sheet {
    width: min(95vw, 490px) !important;
    max-width: 490px !important;
    max-height: min(91dvh, 88vh) !important;
    border-radius: 20px !important;
    padding: 18px 15px !important;
    margin: auto !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3) !important;
  }
  .sheet.sheet-wide:not(.sheet-official-slip):not(:has(.official-print-wrap)):not(:has(.official-a4)) {
    width: min(96vw, 560px) !important;
    border-radius: 18px !important;
    padding: 14px 10px !important;
  }
}

/* Wizard Interactive Step Card & Phone Input Icons */
@keyframes wizHighlightPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.95; }
}
@keyframes wizShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.wiz-step-interactive-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.wiz-highlighter-bg {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(220, 252, 231, 0.9) 0%, rgba(187, 247, 208, 0.8) 60%, rgba(134, 239, 172, 0.65) 100%);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}
.wiz-highlighter-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 3;
}
.wiz-highlighter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4, #3b82f6);
  background-size: 200% 100%;
  animation: wizShimmer 3s linear infinite;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.wiz-step-card-content {
  position: relative;
  z-index: 2;
}
.wiz-step-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.wiz-step-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}
.wiz-step-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}
.wiz-step-badge {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #15803d;
  border: 1px solid #86efac;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.wiz-step-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.42;
}
.phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.phone-status-icon {
  position: absolute;
  right: 12px;
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  z-index: 2;
}

/* ============================================================
   CUSTOM GROUP SELECTION DROPDOWN (SPACED BADGES & RIGHT TICK)
   ============================================================ */
.group-dropdown-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}
.group-dropdown-btn {
  width: 100%;
  min-height: 48px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  text-align: left;
}
.group-dropdown-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.group-dropdown-btn.is-open {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.group-dropdown-btn .btn-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: .92rem;
  color: #0f172a;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
}
.group-dropdown-btn .btn-badge {
  margin-left: auto;
  flex-shrink: 0;
}
.group-dropdown-btn .btn-chevron {
  font-size: .8rem;
  color: #64748b;
  margin-left: 4px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.group-dropdown-btn.is-open .btn-chevron {
  transform: rotate(180deg);
}

.group-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
  z-index: 100;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 295px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: modalFadeIn 0.18s ease;
}

.group-dropdown-item {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.16s ease;
  text-align: left;
  box-sizing: border-box;
}
.group-dropdown-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.group-dropdown-item.is-selected {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #14532d !important;
  box-shadow: 0 1px 4px rgba(22, 101, 52, 0.08);
}
.group-dropdown-item .item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: .90rem;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.group-dropdown-item .item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.group-dropdown-item .item-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #16a34a;
}

.dob-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 750;
  white-space: nowrap;
  letter-spacing: 0.015em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dob-badge-a {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}
.dob-badge-b {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}
.dob-badge-c {
  background: #f3e8ff !important;
  color: #6b21a8 !important;
  border: 1px solid #e9d5ff !important;
}

