:root{--yellow:#facc15;--ink:#142033;--muted:#778294;--line:#e6e8eb;--paper:#f6f7fa;--gold:#eab308}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Kanit,sans-serif;line-height:1.65;background:var(--paper)}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent;transition:transform .2s,background .2s,box-shadow .2s}button{cursor:pointer;border:0}a{color:inherit;text-decoration:none}button:hover:not(:disabled),.btn:hover{transform:translateY(-2px)}button:active:not(:disabled),.btn:active{transform:scale(.97)}button:disabled{opacity:.5;cursor:not-allowed}:focus-visible{outline:3px solid #3b82f6;outline-offset:4px}header{height:90px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 2.2%;position:sticky;top:0;z-index:30;border-bottom:1px solid var(--line);transition:transform .28s}.brand{display:flex;align-items:center;gap:12px;min-width:230px;line-height:1.15;font-size:18px;font-weight:700;letter-spacing:-.4px}.brand img{border-radius:18px}.brand b{font-weight:500}.brand small{display:block;font-size:8px;font-weight:500;letter-spacing:2.6px;margin-top:9px;color:#7c8797}nav{background:#f4f5f7;border:1px solid #eceef1;padding:5px;border-radius:999px;display:flex;gap:3px}nav button{padding:11px 17px;border-radius:999px;white-space:nowrap;color:#718096;background:none;font-size:13px;font-weight:500}nav button.active{background:#142033;color:#fff;box-shadow:0 4px 12px #14203318}nav button:hover{background:#fff3bc;color:#142033}.account{font-size:12px;font-weight:500;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:10px 15px;border:1px solid var(--line);border-radius:999px;background:#fff}main{width:100%;padding:0 2.2% 55px;margin:0 auto;min-height:calc(100vh - 180px)}.school-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:21px 0;border-bottom:1px solid #e3e6eb}.school-identity{display:flex;gap:12px;align-items:center}.school-identity img{object-fit:contain;background:#fff;border-radius:50%;padding:5px;border:1px solid #e4e7eb;width:58px;height:58px}.school-identity small{display:block;font-size:9px;letter-spacing:1.7px;color:#88919f}.school-identity b{display:block;font-size:18px;font-weight:500;margin-top:1px}.modebar{display:flex;gap:12px;align-items:center;font-size:11px}.modebar span{border-radius:999px;background:#e8eee9;padding:6px 12px;color:#527460}.modebar button{background:#fff;border:1px solid #e2e6ed;border-radius:999px;padding:7px 13px;font-size:11px;color:#687586}.arena-heading{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:32px 0}.eyebrow{font-size:10px;font-weight:500;letter-spacing:2px;color:#8b95a3}.arena-heading h1,.page-heading h1{font-size:clamp(36px,3vw,58px);line-height:1.35;font-weight:600;letter-spacing:-1.4px;margin:8px 0 7px}.arena-heading h1 span,.page-heading h1 span{color:#8993a0;font-weight:400}.arena-heading p,.page-heading p{color:#7b8797;font-size:13px;margin:0}.heading-actions{display:flex;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#142033;color:#fff;padding:13px 23px;font-size:13px;font-weight:500;white-space:nowrap;min-height:46px}.btn.secondary,.btn.light{background:#fff;color:#243246;border:1px solid #e2e7ee}.heading-actions .btn:first-child{background:var(--yellow);color:#142033}.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 20px}.section-title h2{font-size:25px;font-weight:500;letter-spacing:-.5px;margin:4px 0 0}.section-title p{margin:3px 0;color:#7b8797;font-size:12px}.sort-note{font-size:11px;border-radius:999px;padding:9px 16px;background:#fff;border:1px solid #e6e8ed;color:#89919f}.scoreboard{background:#fff;padding:27px;border-radius:28px;border:1px solid #e6e9ee}.house-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:19px}.house-card{position:relative;text-align:center;background:var(--tint);border:1px solid color-mix(in srgb,var(--house),transparent 76%);border-radius:24px;padding:16px 22px 0;overflow:hidden;transition:transform .25s,box-shadow .25s}.house-card:hover{transform:translateY(-5px);box-shadow:0 12px 30px #18243a08}.house-card-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;min-height:22px}.rank-label{color:#89919d}.leader-label{background:var(--house);padding:3px 9px;border-radius:999px;color:#142033}.house-mini-dot{width:8px;height:8px;border-radius:50%;background:var(--house)}.house-crest{width:64px;height:64px;object-fit:cover;border-radius:50%;display:block;flex-shrink:0;border:3px solid #fff;background:#fffdf7;box-shadow:0 3px 14px #1420330b}.house-crest.large{width:clamp(100px,9.4vw,160px);height:clamp(100px,9.4vw,160px);margin:12px auto 6px;border-width:5px}.house-card h3{font-size:25px;font-weight:600;line-height:1.4;margin:6px 0 0;color:var(--house)}.house-card p{font-size:11px;color:#7b8797;margin:2px 0 15px}.house-medals{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid #18243a0a;padding:15px 0}.house-medals div{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:0 7px;border-right:1px solid #18243a0a}.house-medals div:last-child{border:0}.house-medals span{font-size:19px}.house-medals strong{font-size:27px;font-weight:600;line-height:1.3}.house-medals small{grid-column:1/-1;font-size:10px;color:#8992a0}.house-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #18243a0b;padding:12px 0;font-size:10px;color:#8a93a0}.house-total b{font-size:17px;color:#243246;font-weight:500}.house-total small{font-size:10px;color:#89919f;font-weight:400}.stat-ribbon{display:grid;grid-template-columns:repeat(4,1fr);padding:21px 0;margin:5px 0 18px;gap:10px}.ribbon-stat{display:flex;align-items:center;justify-content:center;gap:11px;border-right:1px solid #dfe4eb}.ribbon-stat:last-child{border:0}.ribbon-stat>span{font-size:19px}.ribbon-stat strong{font-size:24px;font-weight:500}.ribbon-stat small{font-size:12px;color:#7d899b}.dashboard-lower{display:grid;grid-template-columns:1fr 320px;gap:26px}.home-matches{display:grid;grid-template-columns:1fr 1fr;gap:19px}.spirit-card{border-radius:26px;background:#f9e684;padding:27px;position:relative;align-self:stretch}.spirit-card .eyebrow{font-size:8px;letter-spacing:1.5px;color:#9a843d}.spirit-card h2{font-size:27px;font-weight:500;line-height:1.5;margin:12px 0}.spirit-card p{font-size:12px;color:#82743d}.spirit-card .btn{background:#fffdf3;color:#5b502c;border:1px solid #e6d27c}.spirit-crests{display:flex;margin:18px 0}.spirit-crests img{width:57px;height:57px;margin-right:-8px}.text-btn{background:none;color:#64748b;font-size:12px;font-weight:500}.match{background:#fff;border:1px solid #e2e6ed;border-radius:26px;overflow:hidden;min-width:0}.match-top{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:19px 21px 6px}.sport-tag{font-size:15px;font-weight:500}.match-top small{display:block;color:#929aa7;font-size:10px;margin:2px 0}.badge{display:inline-flex;align-items:center;white-space:nowrap;font-size:10px;border-radius:999px;background:#f3f5f8;color:#758397;padding:5px 10px}.badge.LIVE{background:#fff1f2;color:#dc3651}.badge.FINISHED{background:#e9f8ef;color:#298353}.example-note{display:block;width:fit-content;font-size:9px;color:#9b8b57;background:#faf6e8;border:1px solid #eee7cb;border-radius:999px;padding:2px 8px;margin:5px 21px 0}.match-arena{display:grid;grid-template-columns:1fr 100px 1fr;align-items:center;padding:18px 21px 24px;gap:7px}.competitor{display:flex;align-items:center;flex-direction:column;text-align:center;min-width:0}.competitor .house-crest{width:85px;height:85px;border:4px solid color-mix(in srgb,var(--house),white 76%);box-shadow:none}.competitor b{font-size:17px;font-weight:500;color:var(--house);margin:7px 0 0}.competitor small{font-size:9px;color:#949caa}.match-center{text-align:center;min-width:0}.score{display:block;font-size:29px;font-weight:600;letter-spacing:1px;line-height:1.4;overflow-wrap:anywhere}.match-center small{display:block;font-size:9px;color:#9aa3b1;margin-top:5px}.match-footer{display:flex;justify-content:space-between;gap:8px;padding:11px 19px;background:#f9fafc;border-top:1px solid #edf0f4;font-size:10px;color:#8a95a5}.all-houses{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;grid-column:1/-1}.all-houses img{width:45px;height:45px}.all-houses b{display:block;width:100%;text-align:center;font-size:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;padding:34px 0 28px;gap:15px}.schedule-houses{display:flex;gap:11px}.schedule-houses img{width:70px;height:70px}.filter-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #e3e7ee;padding:18px 23px;border-radius:24px;margin-bottom:25px}.filter-bar b{font-size:14px;font-weight:500}.filter-bar small{font-size:10px;color:#9aa3af;display:block}.filters{display:flex;gap:10px;flex-wrap:wrap}.filters select{width:auto;max-width:330px;min-width:160px}.schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.schedule-grid .match-top{padding:24px 28px 8px}.schedule-grid .sport-tag{font-size:22px}.schedule-grid .match-arena{padding:32px 30px 36px;grid-template-columns:1fr 140px 1fr}.schedule-grid .competitor .house-crest{width:130px;height:130px;border-width:5px}.schedule-grid .competitor b{font-size:23px}.schedule-grid .competitor small{font-size:11px}.schedule-grid .score{font-size:38px}.schedule-grid .match-footer{font-size:12px;padding:15px 25px}.schedule-grid .example-note{margin-left:28px}.panel{background:#fff;border:1px solid #e1e6ed;border-radius:26px;padding:26px;min-width:0}.panel h2{font-weight:500}.registration{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:17px}.field label{display:block;font-size:12px;font-weight:500;margin:0 0 6px;color:#5b687b}input,select,textarea{width:100%;min-height:47px;padding:11px 16px;border:1px solid #e1e6ec;background:#fafbfd;color:#243246;font-size:13px;border-radius:16px}select{appearance:none;-webkit-appearance:none;border-radius:999px!important;padding:11px 41px 11px 18px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23818b9c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}select:hover{border-color:#b8c1ce;background-color:#fff}input:focus,select:focus,textarea:focus{outline:2px solid #eab308;outline-offset:2px}textarea{min-height:90px;border-radius:18px}.student-summary{margin-top:18px;padding:18px 22px;border-radius:18px;background:#f7f7f0;font-size:13px}.student-summary b{font-size:18px;font-weight:500}.my-event{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e6e9df;padding:10px 0}.my-event:first-of-type{margin-top:12px}.my-event small{font-size:10px;color:#8490a0}.cancel{background:#fff;color:#b43f53;font-size:10px;padding:6px 10px;border-radius:999px;border:1px solid #ecd5d9}.event-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px;margin-top:23px}.event-card{background:#fff;border:1px solid #e3e7ed;border-radius:26px;overflow:hidden;transition:transform .25s,box-shadow .25s}.event-card:hover{transform:translateY(-4px);box-shadow:0 14px 25px #14203309}.event-image{height:220px;position:relative;background:#142033}.event-image img{height:100%;width:100%;object-fit:cover}.pill{display:inline-flex;padding:5px 11px;border-radius:999px;font-size:10px;background:#ffffffec;color:#64748b}.event-image .pill{position:absolute;top:16px;left:17px}.event-body{padding:23px}.event-body h3{font-size:22px;font-weight:500;line-height:1.5;margin:10px 0}.event-body p{font-size:12px;color:#8490a1}.event-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin:12px 0}.event-meta b{font-weight:500}.muted{font-size:12px;color:#8290a1}.event-body .btn{width:100%;margin-top:14px}.event-body .example-note{margin:0}.warning{font-size:11px;border-radius:14px;border:1px solid #f3d1d8;background:#fff4f5;color:#bf4c63;padding:10px 13px;margin-top:13px}.success{font-size:11px;background:#edf8f1;color:#378365;padding:10px 13px;border-radius:14px}.empty{text-align:center;padding:50px 20px;font-size:13px;color:#94a0af;grid-column:1/-1}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.wide{grid-column:1/-1}.medal-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.medal-house{border:1px solid #e4e8ee;border-radius:21px;padding:19px}.medal-house>b{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:500}.medal-house .house-crest{width:40px;height:40px}.stepper{display:flex;align-items:center;gap:10px;font-size:14px;margin-top:15px}.stepper>span{margin-right:auto}.stepper button{width:36px;height:36px;border-radius:50%;background:#f1f4f8;color:#526176}.preview{height:130px;max-width:100%;object-fit:cover;border-radius:18px;margin-top:12px}.admin-match{display:grid;grid-template-columns:1fr 110px 150px;gap:15px;align-items:center;border-bottom:1px solid #edf0f4;padding:14px 0;font-size:14px}.admin-match:last-child{border:0}.admin-match small{display:block;font-size:10px;color:#8793a3}.admin-match select{font-size:11px}.admin-grid+.section-title{margin-top:30px}#tab-admin .section-title{margin-top:25px}footer{border-top:1px solid #e2e6ed;padding:23px 2.2%;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:11px;color:#8a95a6;background:#fff}.footer-brand{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:500;letter-spacing:1px;color:#526175}.footer-brand img{border-radius:9px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);z-index:100;background:#142033;color:#fff;box-shadow:0 10px 35px #14203325;opacity:0;pointer-events:none;transition:.2s;max-width:90%;font-size:13px;padding:13px 23px;border-radius:999px}#toast.show{opacity:1;transform:translate(-50%,0)}.skip{position:fixed;top:-100px}.skip:focus{top:0;z-index:100;background:#fff;padding:12px}.reveal{animation:rise .5s both}@keyframes rise{from{opacity:.35;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1101px){header.scrolled-down{transform:translateY(-100%)}}@media(min-width:1900px){.house-crest.large{width:170px;height:170px}.house-card{padding-top:20px}.house-card h3{font-size:30px}.house-card p{font-size:13px}.house-medals{padding:20px 0}.house-medals strong{font-size:32px}.arena-heading{padding:36px 0}.dashboard-lower{grid-template-columns:1fr 380px}}@media(max-width:1200px){.brand{min-width:205px;font-size:16px}.brand img{width:45px;height:45px}nav button{padding:11px 13px;font-size:11px}.account{max-width:150px;font-size:10px;padding:9px 11px}header{gap:10px}.house-grid{gap:13px}.house-card{padding-left:15px;padding-right:15px}.house-card h3{font-size:22px}.dashboard-lower{grid-template-columns:1fr 270px;gap:18px}.home-matches{gap:14px}.match-arena{grid-template-columns:1fr 70px 1fr;padding-left:13px;padding-right:13px}.competitor .house-crest{width:65px;height:65px}.competitor small{font-size:8px}.sport-tag{font-size:13px}.match-top{padding:16px 16px 6px}.score{font-size:22px}.spirit-card{padding:22px}.spirit-card h2{font-size:24px}.spirit-crests img{width:49px;height:49px}.match-footer{font-size:9px}.filters select{min-width:130px;max-width:240px}.schedule-grid .competitor .house-crest{width:110px;height:110px}.schedule-grid .sport-tag{font-size:18px}.schedule-grid .match-arena{grid-template-columns:1fr 110px 1fr}.event-grid{grid-template-columns:1fr 1fr}}@media(max-width:950px){header{height:78px}.brand{min-width:auto}.brand small{font-size:7px;letter-spacing:1.5px}nav button{font-size:10px;padding:10px}.account{max-width:95px}.heading-actions{flex-direction:column}.house-card p{font-size:10px}.house-medals span{font-size:16px}.house-medals strong{font-size:22px}.house-medals div{gap:0 3px}.dashboard-lower{grid-template-columns:1fr}.spirit-card{display:none}.competitor .house-crest{width:82px;height:82px}.sport-tag{font-size:15px}.match-footer{font-size:10px}.medal-controls{grid-template-columns:1fr 1fr}.filter-bar{align-items:start;flex-direction:column}.filters{width:100%}.filters select{flex:1;max-width:none}.schedule-grid .match-arena{grid-template-columns:1fr 80px 1fr;padding:20px 12px}.schedule-grid .competitor .house-crest{width:85px;height:85px}.schedule-grid .competitor b{font-size:19px}.schedule-grid .competitor small{font-size:9px}.schedule-grid .score{font-size:30px}.schedule-grid .match-footer{font-size:10px;padding:14px}.schedule-grid .match-top{padding:20px 18px 8px}.schedule-houses img{width:50px;height:50px}.schedule-houses{gap:6px}.arena-heading h1,.page-heading h1{font-size:36px}.ribbon-stat{gap:7px}.ribbon-stat small{font-size:10px}.registration{grid-template-columns:1.4fr 1fr 1fr}.admin-match{grid-template-columns:1fr 85px 130px}}@media(max-width:700px){header{height:74px;padding:0 16px;position:relative}.brand{font-size:16px;gap:9px}.brand img{height:43px;width:43px;border-radius:14px}.brand small{font-size:6px;letter-spacing:1.5px}.account{max-width:130px;font-size:10px;padding:8px 12px}nav{position:fixed;left:9px;right:9px;bottom:calc(9px + env(safe-area-inset-bottom));border-radius:25px;height:69px;padding:5px;background:#ffffffed;backdrop-filter:blur(20px);box-shadow:0 5px 35px #1420331a;z-index:50;justify-content:space-around;border:1px solid #e5e9f1}nav button{width:25%;padding:5px 1px;border-radius:19px;font-size:19px;line-height:1.5}nav button span{display:block;font-size:8px;font-weight:400;white-space:normal}nav button.active{background:#facc15;color:#142033;box-shadow:none}main{padding:0 14px 30px}.school-bar{padding:15px 2px;flex-wrap:wrap;gap:12px}.school-identity{gap:9px;width:100%}.school-identity img{width:47px;height:47px;padding:4px}.school-identity b{font-size:16px}.school-identity small{font-size:8px;letter-spacing:1px}.modebar{width:100%;justify-content:space-between;font-size:10px}.modebar button{font-size:10px;padding:5px 11px}.modebar span{padding:4px 10px}.arena-heading{align-items:start;flex-direction:column;padding:24px 3px;gap:15px}.arena-heading h1,.page-heading h1{font-size:32px;letter-spacing:-1px;line-height:1.4}.arena-heading h1 span{display:block}.arena-heading p,.page-heading p{font-size:11px;max-width:310px}.eyebrow{font-size:8px;letter-spacing:1.5px}.heading-actions{flex-direction:row;width:100%;gap:8px}.heading-actions .btn{flex:1;font-size:11px;padding:10px 12px;min-height:42px}.scoreboard{padding:16px 11px 11px;border-radius:24px}.section-title{gap:9px;margin-bottom:15px;align-items:start}.section-title h2{font-size:21px;margin-top:3px;line-height:1.4}.sort-note{font-size:8px;padding:7px 10px;text-align:right;max-width:130px;line-height:1.5}.house-grid{grid-template-columns:1fr 1fr;gap:10px}.house-card{padding:11px 11px 0;border-radius:20px}.house-card-top{font-size:8px;min-height:18px}.leader-label{padding:2px 5px}.house-crest.large{width:106px;height:106px;margin:9px auto 5px;border-width:3px}.house-card h3{font-size:23px;margin:4px 0 0}.house-card p{font-size:9px;margin:0 0 10px}.house-medals{padding:10px 0}.house-medals div{display:flex;flex-direction:column;gap:1px}.house-medals span{font-size:15px}.house-medals strong{font-size:22px}.house-medals small{font-size:8px}.house-total{font-size:8px;padding:9px 0}.house-total b{font-size:14px}.house-total small{font-size:8px}.stat-ribbon{grid-template-columns:1fr 1fr;gap:14px 0;padding:18px 0;margin:0 0 13px}.ribbon-stat{justify-content:start;padding-left:15px;gap:8px}.ribbon-stat:nth-child(2){border:0}.ribbon-stat>span{font-size:18px}.ribbon-stat strong{font-size:22px}.ribbon-stat small{font-size:10px}.dashboard-lower .section-title{padding:0 3px;align-items:center}.dashboard-lower .section-title h2{font-size:20px}.home-matches{grid-template-columns:1fr;gap:15px}.text-btn{font-size:10px;white-space:nowrap}.match{border-radius:24px}.match-top{padding:19px 20px 7px}.sport-tag{font-size:17px}.match-top small{font-size:10px}.badge{font-size:9px;padding:5px 9px}.match-arena{padding:17px 20px 23px;grid-template-columns:1fr 85px 1fr}.competitor .house-crest{width:82px;height:82px}.competitor b{font-size:19px}.competitor small{font-size:9px}.score{font-size:27px}.match-footer{font-size:10px;padding:12px 17px}.page-heading{padding:26px 3px;align-items:start}.page-heading h1{font-size:31px}.page-heading h1 span{display:block}.schedule-houses{display:grid;grid-template-columns:1fr 1fr;gap:4px}.schedule-houses img{width:36px;height:36px;border-width:2px}.filter-bar{padding:16px;border-radius:23px;gap:13px;margin-bottom:17px}.filter-bar>div:first-child{display:flex;justify-content:space-between;width:100%;align-items:center}.filter-bar b{font-size:12px}.filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.filters select{width:100%;min-width:0;font-size:11px;padding-left:13px;padding-right:31px;background-position:right 11px center;min-height:42px}.filters select:last-child{grid-column:1/-1}.schedule-grid{grid-template-columns:1fr;gap:17px}.schedule-grid .match-top{padding:20px 20px 8px}.schedule-grid .sport-tag{font-size:19px}.schedule-grid .match-arena{grid-template-columns:1fr 90px 1fr;padding:24px 15px 28px}.schedule-grid .competitor .house-crest{width:94px;height:94px;border-width:4px}.schedule-grid .competitor b{font-size:22px}.schedule-grid .score{font-size:32px}.schedule-grid .match-footer{font-size:10px;padding:14px 17px}.schedule-grid .example-note{margin-left:20px}.panel{padding:19px;border-radius:24px}.registration{grid-template-columns:1fr 1fr;gap:12px}.registration .field:first-child{grid-column:1/-1}.field label{font-size:11px}input,select,textarea{font-size:12px;padding:11px 13px}select{padding-right:36px}.student-summary{padding:15px;font-size:11px}.student-summary b{font-size:16px}.my-event{font-size:10px}.event-grid{grid-template-columns:1fr;gap:18px}.event-image{height:195px}.event-body{padding:19px}.event-body h3{font-size:21px}.event-body p{font-size:11px}.event-meta{font-size:10px}.admin-grid{grid-template-columns:1fr;gap:19px}.form-grid{gap:12px}.medal-controls{padding:12px;gap:10px}.medal-house{padding:12px;border-radius:18px}.medal-house>b{font-size:14px;gap:6px}.medal-house .house-crest{width:33px;height:33px;border-width:2px}.stepper{font-size:12px;gap:6px;margin-top:11px}.stepper button{width:30px;height:30px;flex-shrink:0}.admin-match{grid-template-columns:1fr 65px 105px;gap:7px;font-size:11px}.admin-match input{padding:9px;font-size:11px;min-width:0}.admin-match select{font-size:9px;padding:9px 25px 9px 10px;background-position:right 7px center}.admin-match small{font-size:8px}.wide .preview{max-width:100%}footer{padding:22px 18px 110px;flex-wrap:wrap;font-size:10px;gap:14px}.footer-brand{font-size:10px}#toast{bottom:94px;font-size:11px;border-radius:18px;padding:12px 18px}.event-grid+.section-title{margin-top:20px}}@media(max-width:360px){.brand{font-size:14px}.brand img{width:37px;height:37px}.brand small{font-size:5px}.account{max-width:102px;font-size:9px}.house-crest.large{width:92px;height:92px}.house-card{padding:10px 8px 0}.house-card h3{font-size:21px}.section-title h2{font-size:19px}.sort-note{font-size:7px;max-width:105px}.ribbon-stat{padding-left:8px;gap:5px}.ribbon-stat small{font-size:8px}.ribbon-stat strong{font-size:20px}.admin-match{grid-template-columns:1fr 53px 93px}.arena-heading h1{font-size:29px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Connected competition workspace; preserves the existing house identity. */
body{background:linear-gradient(135deg,#f6f7fa,#fbfaf2)}.workspace-heading{font-size:13px;color:#8490a0}.app-sidebar{position:fixed;top:90px;bottom:0;left:0;width:210px;background:#fff;border-right:1px solid var(--line);padding:28px 14px;z-index:25}.app-sidebar .sidebar-label{font-size:8px;letter-spacing:1.6px;color:#9aa3af;padding:0 12px}.app-sidebar nav{display:flex;flex-direction:column;border:0;background:none;border-radius:0;padding:18px 0;gap:8px}.app-sidebar nav button{display:flex;align-items:center;gap:9px;text-align:left;border-radius:16px;padding:14px;font-size:14px;white-space:normal;line-height:1.5}.app-sidebar nav button span{font-size:12px}.app-sidebar nav button.active{background:#fff3b4;color:#263247;box-shadow:none}.app-sidebar nav button[hidden]{display:none}.sidebar-help{font-size:10px;line-height:1.8;color:#9aa4b2;padding:10px 12px;border-top:1px solid var(--line)}main{margin-left:210px;width:calc(100% - 210px)}footer{margin-left:210px}.workflow-steps{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:22px;margin-bottom:24px}.workflow-steps button{border-radius:999px;padding:10px 16px;background:#f4f6f9;color:#7a8798;font-size:12px}.workflow-steps button.active{background:#facc15;color:#1e293b}.competition-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.competition-card{padding:0;overflow:hidden;display:grid;grid-template-columns:130px 1fr;align-items:stretch;min-width:0}.competition-card>img{width:130px;height:100%;min-height:190px;object-fit:cover}.competition-card>div{padding:19px;min-width:0}.competition-card h3{font-size:20px;font-weight:500;margin:8px 0}.competition-card p{font-size:11px;color:#8895a7;margin:7px 0}.competition-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.competition-actions .btn{font-size:11px;padding:9px 14px;min-height:38px}#eventForm,#matchForm,#permissionForm{max-width:1000px;margin:0 auto}.competition-select{display:grid;grid-template-columns:1fr 230px;gap:10px}.competition-select label,.competition-select #eventId,.competition-select #selectedCompetitionInfo{grid-column:1/-1}.competition-select label{font-size:12px;color:#5b687b}.competition-summary{display:grid;gap:4px;font-size:12px;padding:17px;background:linear-gradient(110deg,#fff8d4,#f4f8ff);border-radius:18px;color:#6d7b8d}.competition-summary b{font-size:16px;color:#243246}.time-field{display:flex;align-items:center;position:relative}.time-field input{padding-right:53px;font-variant-numeric:tabular-nums;font-size:18px;letter-spacing:1px}.time-field button{position:absolute;right:6px;width:37px;height:37px;border-radius:50%;background:#fff4b9;color:#8c741c;font-size:23px;display:grid;place-items:center}.time-field:has(input:disabled) button{display:none}.clock-dialog{width:360px;max-width:calc(100% - 24px);padding:22px;border:1px solid #e2e7ee;border-radius:28px;background:#fff;box-shadow:0 24px 90px #14203330;color:#1e293b}.clock-dialog::backdrop,.match-dialog::backdrop{background:#14203380;backdrop-filter:blur(5px)}.clock-heading{display:flex;justify-content:space-between;align-items:start}.clock-heading small{font-size:10px;color:#93a0b1}.clock-heading h2{font-size:22px;font-weight:500;margin:4px 0}.clock-heading>button,.dialog-close{background:#f3f5f8;width:34px;height:34px;border-radius:50%;color:#778596;flex-shrink:0}.clock-digital{display:flex;align-items:center;justify-content:center;gap:9px;margin:13px 0}.clock-digital button{font-size:34px;font-weight:500;line-height:1.4;padding:5px 14px;border-radius:14px;background:#f2f5f9;color:#8290a4;font-variant-numeric:tabular-nums}.clock-digital button.selected{background:#ffed97;color:#243246}.clock-digital>span{font-size:30px;color:#9ba6b5}.clock-digital small{font-size:12px;color:#96a1b1}.clock-dialog #clockInstruction{text-align:center;font-size:10px;color:#92a0b2;margin:0 0 10px}.clock-face{width:280px;height:280px;position:relative;border-radius:50%;background:#f2f5f9;margin:0 auto 16px;touch-action:none;user-select:none}.clock-hand{position:absolute;left:50%;top:50%;height:3px;transform-origin:0 50%;background:#d9a300;z-index:1}.clock-center{position:absolute;left:50%;top:50%;width:9px;height:9px;background:#d9a300;border-radius:50%;transform:translate(-50%,-50%);z-index:3}.clock-end{position:absolute;width:36px;height:36px;background:#facc15;border-radius:50%;transform:translate(-50%,-50%);z-index:2}.clock-number{position:absolute;transform:translate(-50%,-50%);width:36px;height:36px;line-height:36px;padding:0;border-radius:50%;background:none;font-size:16px;font-variant-numeric:tabular-nums;color:#526176;z-index:3;transition:none}.clock-number.inner{font-size:13px;color:#9ba5b3}.clock-number.chosen{color:#142033;font-weight:600}.clock-number:hover:not(:disabled),.clock-number:active:not(:disabled){transform:translate(-50%,-50%);background:#eab30828}.manual-time{display:block;color:#8c99ab;font-size:10px}.manual-time input{margin-top:4px;text-align:center;font-size:19px;letter-spacing:2px;font-variant-numeric:tabular-nums}.clock-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.clock-actions .btn{font-size:11px;min-height:40px;padding:9px 16px}#clockError{color:#be123c;font-size:11px;margin:8px 0;min-height:0}.match-name-box{text-align:center;border:1px solid #e5e9ef;border-radius:18px;background:linear-gradient(125deg,#fffdf3,#f7faff);padding:15px 12px;margin:19px 19px 0}.match-title-button{display:block;width:100%;background:none;text-align:center;font-size:21px;font-weight:500;color:#243246;line-height:1.5}.match-name-box>small{font-size:10px;color:#8d99aa}.match-time-display{text-align:center;padding:17px 10px 5px}.match-time-display>strong{font-size:30px;letter-spacing:1px;font-weight:500;display:block;line-height:1.5;font-variant-numeric:tabular-nums}.match-time-display>strong span{color:#a6afbb}.match-time-display>small{font-size:11px;color:#9aa5b4}.match-status-row{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px}.match-status-row .example-note{margin:0}.schedule-grid .match-arena{padding-top:15px}.last-editor{font-size:9px;padding:9px 17px;background:#fbfcfe;color:#99a3b2;border-top:1px solid #edf1f6}.history-section{margin-top:24px}.audit-entry{padding:12px 0;border-bottom:1px solid var(--line)}.audit-entry:last-child{border:0}.audit-entry summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}.audit-entry summary b{font-size:13px;font-weight:500;display:block}.audit-entry summary small{font-size:10px;color:#8e9aab}.audit-diff{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px}.audit-diff>div{background:#f6f8fb;padding:13px;border-radius:14px;min-width:0}.audit-diff small{font-size:10px;color:#95a1b1}.audit-diff pre{font-size:10px;color:#7c899b;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;max-height:300px;overflow:auto}.vertical-standings{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;padding:30px 6% 10px}.standings-section{margin-bottom:26px;background:linear-gradient(135deg,#fff,#fbfcff)}.bar-track{height:220px;border-bottom:1px solid #e1e7ee;display:flex;align-items:end;justify-content:center;background:repeating-linear-gradient(to top,transparent,transparent 54px,#edf0f4 54px,#edf0f4 55px);position:relative}.standing-bar{width:65%;max-width:110px;border-radius:15px 15px 0 0;background:linear-gradient(to top,var(--house),color-mix(in srgb,var(--house),white 25%));position:relative;transition:height .4s}.bar-value{position:absolute;left:50%;bottom:100%;transform:translate(-50%,-6px);font-size:23px;font-weight:500;color:#263449}.bar-label{display:flex;align-items:center;flex-direction:column;gap:5px;padding-top:14px}.bar-label img{width:52px;height:52px}.bar-label>b{font-size:15px;font-weight:500}.bar-label>small{font-size:10px;color:#95a0af}.permission-checks{border:1px solid var(--line);border-radius:18px;padding:18px}.permission-checks legend{font-size:13px;color:#637286}.permission-checks label{display:flex;align-items:center;gap:10px;font-size:12px;margin:10px 0}.permission-checks input{width:18px;height:18px;min-height:0;accent-color:#eab308}.grant-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line)}.grant-row small{display:block;font-size:11px;color:#8b97a8}.grant-row b{font-size:14px;font-weight:500}.match-dialog{width:min(1060px,96vw);max-height:92vh;border:0;border-radius:28px;padding:0;background:#f6f8fb;color:#243246;box-shadow:0 30px 90px #14203340}.detail-header{position:sticky;top:0;z-index:6;background:#fff;border-bottom:1px solid var(--line);padding:18px 26px;display:flex;justify-content:space-between;align-items:center;gap:14px}.detail-header small{font-size:9px;letter-spacing:1px;color:#93a0b1}.detail-header h2{font-size:23px;font-weight:500;margin:2px 0}.detail-body{padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:22px}.detail-body>.panel:not(.detail-edit){grid-column:1/-1}.detail-body .history-section{margin:0}.detail-body>.match{align-self:start}.detail-body .match .house-crest{width:85px;height:85px}.detail-body .section-title h3{font-size:21px;margin:0;font-weight:500}.detail-body .section-title p{font-size:11px}.roster-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;margin:19px 0}.roster-filters button{grid-column:1/-1}.roster-person{display:grid;grid-template-columns:1fr 125px 95px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf0f4}.roster-person b{font-size:13px;font-weight:500}.roster-person small{display:block;font-size:10px;color:#8d99ab}.roster-person select{font-size:11px}.roster-person button{font-size:11px;padding:10px;min-height:40px}.selected-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.selected-person{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;background:#fff9dc;border-radius:15px}.selected-person b{font-size:12px;font-weight:500}.selected-person small{display:block;font-size:10px;color:#9b8d60}.roster-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:18px}.roster-pagination span,#rosterStatus{font-size:11px;color:#8c99aa}.detail-edit h3{font-size:18px;font-weight:500;margin-top:0}
@media(max-width:1100px){.app-sidebar{width:180px;top:78px;padding-left:10px;padding-right:10px}.app-sidebar nav button{padding:12px 9px}.app-sidebar nav button span{font-size:10px}main{margin-left:180px;width:calc(100% - 180px)}footer{margin-left:180px}.competition-grid{grid-template-columns:1fr}.house-grid{grid-template-columns:1fr 1fr}.house-crest.large{width:120px;height:120px}.detail-body{grid-template-columns:1fr}.detail-body>.panel{grid-column:1/-1}.schedule-grid .match-name-box{margin:15px 13px 0}.match-title-button{font-size:18px}.match-time-display>strong{font-size:25px}.home-matches{grid-template-columns:1fr}}
@media(max-width:700px){header{position:sticky;top:0;height:74px}.workspace-heading{display:none}.app-sidebar{position:static;top:auto;bottom:auto;width:0;height:0;padding:0;border:0}.app-sidebar .sidebar-label,.sidebar-help{display:none}.app-sidebar nav{position:fixed;flex-direction:row;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));width:auto;height:70px;background:#ffffffed;backdrop-filter:blur(20px);padding:5px;gap:2px;border:1px solid #e5e9f1;border-radius:23px;box-shadow:0 5px 35px #1420331a}.app-sidebar nav button{display:block;width:25%;text-align:center;padding:4px 1px;font-size:18px;border-radius:17px;line-height:1.6}.app-sidebar nav:has(#permissionNav:not([hidden])) button{width:20%}.app-sidebar nav button span{font-size:7px;display:block;line-height:1.4}.app-sidebar nav button.active{background:#facc15}main{margin-left:0;width:100%}footer{margin-left:0}.workflow-steps{padding:8px;gap:6px;border-radius:19px}.workflow-steps button{padding:8px 10px;font-size:10px}.competition-card{grid-template-columns:95px 1fr}.competition-card>img{width:95px;min-height:190px}.competition-card>div{padding:14px}.competition-card h3{font-size:17px}.competition-card p{font-size:10px}.competition-actions .btn{font-size:9px;padding:8px 11px}.competition-select{grid-template-columns:1fr}.competition-select>*{grid-column:1/-1}.time-field input{font-size:16px;padding-right:42px}.time-field button{right:4px;width:33px;height:33px;font-size:21px}.clock-dialog{padding:17px;max-height:94vh}.clock-face{width:280px;height:280px}.clock-heading h2{font-size:21px}.clock-digital button{font-size:28px}.clock-digital{margin:9px 0}.match-name-box{margin:16px 16px 0;padding:13px}.match-title-button{font-size:19px}.match-time-display>strong{font-size:28px}.match-time-display{padding-top:14px}.match-time-display>small{font-size:10px}.match-status-row{padding:8px}.vertical-standings{gap:12px;padding:28px 0 6px}.bar-track{height:175px}.standing-bar{width:75%;border-radius:10px 10px 0 0}.bar-value{font-size:19px}.bar-label img{width:40px;height:40px;border-width:2px}.bar-label>b{font-size:12px}.bar-label>small{font-size:9px}.audit-diff{grid-template-columns:1fr}.audit-entry summary small{font-size:9px}.audit-entry summary b{font-size:12px}.permission-checks{padding:12px}.permission-checks label{font-size:11px;align-items:start}.permission-checks input{flex-shrink:0}.grant-row{align-items:start}.grant-row .btn{font-size:10px;padding:8px 12px;min-height:36px}.match-dialog{width:calc(100% - 14px);max-height:94vh;border-radius:23px}.detail-header{padding:14px 16px}.detail-header h2{font-size:19px}.detail-body{padding:12px;gap:14px}.detail-body>.panel{padding:16px}.detail-body .section-title{align-items:center;flex-wrap:wrap}.detail-body .section-title h3{font-size:19px}.detail-body .section-title .btn{font-size:10px;padding:9px 13px;min-height:38px}.roster-filters{grid-template-columns:1fr 1fr;gap:8px}.roster-filters>input,.roster-filters>#rosterGender{grid-column:1/-1}.roster-person{grid-template-columns:1fr 95px;gap:8px;padding:13px 0}.roster-person>div{grid-column:1/-1}.roster-person select{font-size:11px;min-height:40px}.roster-person button{min-height:40px}.selected-list{grid-template-columns:1fr}.roster-pagination{gap:8px}.roster-pagination .btn{font-size:10px;padding:8px 12px;min-height:36px}.roster-pagination span{font-size:10px}.detail-edit .form-grid{gap:11px}.history-section h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.standing-bar{transition:none}}
@media(max-width:700px){.app-sidebar nav button{width:0!important;flex:1}.app-sidebar nav button[hidden]{display:none;flex:none}}
@media(max-width:360px){.clock-face{width:260px;height:260px}}
#view .versus-card{cursor:pointer;transition:border-color .2s,box-shadow .2s}#view .versus-card:hover{border-color:#cbd5e1;box-shadow:0 8px 25px #14203309}
