
/* Warm paper, deep forest green, and generous rounded cards. */
@media screen{
 :root{--green:#244638;--lime:#dce3bd;--ink:#26392e;--muted:#697163;--line:#e6e0d2;--paper:#f3efe5;--white:#fffcf4;--soft:#e8eadb}
 body{background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}
 aside{background:#fcf9f0;border-color:#e5e0d5}.brand{color:#284936}.brand small{color:#85907d;letter-spacing:2.3px}
 .logo{border-radius:50%;background:var(--green)}.ball{background:#d6df9c}
 .topbar{background:#f8f5ecc9;border-color:#e9e3d7}
 .nav button{border-radius:15px;color:#77816e;transition:background .16s,color .16s}
 .nav button.active{background:var(--green);color:#fffbee;box-shadow:0 5px 16px #24463812}
 .nav svg{stroke-width:1.6}.avatar{background:#e5e8d5}
 .content{max-width:1450px}.pagehead{margin-bottom:29px;align-items:flex-start}.pagehead .sub{color:#7c8171}
 .eyebrow{font-size:10px;font-weight:500;letter-spacing:2.3px;color:#8c927c;margin-bottom:13px}
 h1{font-family:var(--font-ui);font-size:29px;font-weight:500;letter-spacing:-1.3px;line-height:1.55;margin-bottom:9px}
 h2{font-weight:600;letter-spacing:-.5px}h3{font-weight:600}
 .btn{border-radius:999px;background:var(--green);padding:12px 19px;box-shadow:none;transition:background .16s,transform .16s}
 .btn:hover{background:#335b46}.btn:active{transform:translateY(1px)}
 .btn.secondary{background:#fffcf5;border-color:#dddccc;color:#476147}.btn.secondary:hover{background:#eceee0}
 .btn.lime{background:#dfe4c6;color:#2e4c36}.btn.ghost{border-color:#dfddcf;background:transparent;color:#77816b}
 .btn.danger{background:#f7e7df;color:#a26850}
 .pill{background:#edf0df;color:#687557;border-radius:999px;padding:5px 10px;font-weight:500}.pill.lime{background:#e3e9cb;color:#536a40}.pill.outline{background:#f5f4e9;border-color:#e4e3d3;color:#78846b}.pill.orange{background:#eee3ca;color:#8a7653}
 .demo-banner{border:0;background:#e7ead8;border-radius:17px;padding:12px 17px;color:#798264}.demo-banner button{color:#5e7053}
 .hero.editorial-hero{min-height:378px;padding:36px 37px 106px;border-radius:29px;border:0;background-image:linear-gradient(90deg,rgba(247,240,221,.97) 0%,rgba(247,240,221,.9) 27%,rgba(247,240,221,.67) 47%,rgba(247,240,221,.06) 77%),var(--home-image,url('/tennis-court.jpg'));background-size:cover;background-position:center 48%;color:var(--green);margin-bottom:24px;box-shadow:0 10px 35px #6f604010;isolation:isolate}
 .hero.editorial-hero:after{display:none}.hero-copy{max-width:67%}
 .hero-kicker{display:flex;gap:8px;align-items:center;font-size:10px;letter-spacing:2.2px;color:#607353;margin-bottom:20px}.hero-dot{height:6px;width:6px;border-radius:50%;background:#6e845a}
 .editorial-hero h2{font-family:var(--font-ui);font-size:32px;font-weight:500;line-height:1.55;letter-spacing:-1.8px;margin:0 0 16px}
 .hero-session-name{font-size:13px;font-weight:600;margin-bottom:8px}.hero-session-name>span{font-size:11px;font-weight:400;color:#69785c}
 .editorial-hero p{font-size:12px;color:#65735c;line-height:1.9;margin:0 0 20px}
 .hero .hero-join{background:#244638;color:#fff9eb;padding:12px 22px;border:0;font-size:13px;box-shadow:0 5px 18px #253d3020}.hero-join span{font-size:16px;margin-left:12px}
 .hero-corner{position:absolute;right:26px;top:31px;color:#fff9e8c4;font-family:var(--font-ui);letter-spacing:2px;font-size:12px;line-height:1.5;text-align:right}
 .hero-attendance{position:absolute;bottom:18px;left:20px;right:20px;padding:15px 20px;border:1px solid #fff9e584;background:#fbf7ebeb;backdrop-filter:blur(12px);border-radius:19px;display:grid;grid-template-columns:auto minmax(60px,1fr) auto;align-items:center;gap:24px;color:#56704e;box-shadow:0 4px 20px #5a4e2910}
 .hero-attendance>div:first-child{display:flex;align-items:center;gap:16px}.hero-attendance>div:first-child>span{font-size:11px}.hero-attendance b{font-size:23px;font-weight:500;color:var(--green);white-space:nowrap}.hero-attendance b small{font-size:11px;color:#879075;font-weight:400}
 .hero-attendance>span{font-size:11px;color:#7e8a6a}.hero-progress{height:6px;overflow:hidden;background:#e1e5d1;border-radius:99px}.hero-progress i{display:block;height:100%;border-radius:99px;background:#49684d}
 .hero.empty-hero{padding-bottom:35px;min-height:300px}.empty-hero .eyebrow{color:#798969}
 .stats{gap:14px;margin-bottom:32px}.stat{border:0;background:#fbf8ef;border-radius:22px;box-shadow:0 4px 20px #65573c04;padding:22px}.stat-top{color:#7d876f}.stat-num{color:#354e3b;font-weight:500}.stat-foot{color:#889078;line-height:1.7}
 .stat:nth-child(2){background:#2c4b3b;color:#f7f4e7}.stat:nth-child(2) .stat-num{color:#fffbed}.stat:nth-child(2) .stat-top,.stat:nth-child(2) .stat-num small,.stat:nth-child(2) .stat-foot{color:#bac7a7}.stat:nth-child(2) .stat-icon{color:#c0cda9}
 .sectionhead{margin-bottom:17px}.sectionhead h2{font-size:17px;font-weight:600}.sectionhead small,.sectionhead button{color:#899078}
 .panel,.infocard{border:0;background:#fffcf4;border-radius:26px;box-shadow:0 5px 24px #65573c04;padding:25px}
 .eventlist{gap:13px}.eventcard{border:0;background:#fffcf4;border-radius:23px;box-shadow:0 4px 20px #65573c03;padding:22px}
 .datebox{border-radius:16px;background:#e9edda;color:#536d48;padding:13px 7px;width:57px}.datebox b{font-weight:500}.datebox small{color:#7e8d6c}.eventinfo h3{font-weight:600;color:#344d38}.eventmeta{color:#7d8771}.eventbottom{margin-top:13px}.joined{color:#758b50}.progress{height:5px;background:#eceddf}.progress i{background:#8fa26d}
 .rule small{color:#8a917b}.rule b{color:#56694c;font-weight:500}.note{background:#eef0e1;color:#6f7e5f;border-radius:16px;border:0;padding:16px;line-height:1.9}
 .clubquote{background:#e4e8d3;border-radius:24px;padding:26px}.clubquote p{font-family:var(--font-ui);color:#4c6244;line-height:1.9}.clubquote small{color:#899478}
 .footer{color:#969b87;border-color:#e5e2d4;font-size:9px;letter-spacing:1.2px;line-height:1.9}
 .tabs.date-tabs{border:0;background:#2b4a39;border-radius:26px;padding:18px;gap:10px;box-shadow:none;margin-bottom:23px}
 .date-tabs .date-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f9f7ec;color:#586c4d;gap:4px;padding:13px 15px;min-width:94px;flex-shrink:0;border-radius:17px;border:1px solid #f8f4e830;white-space:normal}
 .date-tab small{font-size:10px;color:#8a937a}.date-tab strong{font-family:var(--font-ui);font-size:25px;line-height:1.1;font-weight:400}.date-tab span{font-size:10px;max-width:120px;line-height:1.6}
 .date-tabs .date-tab.active{background:#163020;color:#fffbef;border-color:#b5c49a50;box-shadow:0 5px 12px #0e28192b}.date-tab.active small{color:#b5c4a2}
 .event-captain{background:#e7ebd8;border:0;border-radius:21px;padding:19px 22px}.captain-card{border:0;border-radius:22px;background:#fbf9ef;padding:22px 18px}.captain-card b{color:#39533c}.captain-card small{color:#849174}.captain-card span:not(.captain-photo){color:#7d8a70}.captain-photo{border-color:#f5f4e7}.captain-photo.placeholder{background:#dfe6cb;color:#6c815a}
 .captain-config{background:#f3f3e7;border-color:#e6e6d7;border-radius:20px}.operator-checklist label{background:#f9f8ef;border:1px solid #e9e7da;border-radius:13px}
 .summarystrip{border:0;border-radius:18px;background:#f0f1e3;padding:17px 20px;gap:17px 24px}.summarystrip b{color:#4a6345}
 .roundtabs{gap:10px}.roundtab{border:0;background:#fdfaf0;border-radius:18px;padding:16px 24px}.roundtab.active{background:var(--green);box-shadow:0 5px 15px #24463818}
 .match{border:0;border-radius:26px;background:#fffdf5;box-shadow:0 5px 22px #65573c04}.matchhead{background:#dfe6d0;border:0;padding:17px 21px;color:#536e49}.matchbody{padding:32px 23px}.player{font-weight:500;color:#314c36}.player small{color:#738367}.vs{color:#98a18a}.score{color:#486541;font-family:var(--font-ui)}.matchfoot{border-color:#efecdf;color:#8a947b;padding:14px 20px}
 .restbox{background:#e9edda;border:0;border-radius:22px;padding:23px}.restbox b{color:#6e8255}.restnames span{background:#fbfbef;border:0;border-radius:11px;color:#6b7f58;padding:7px 12px}
 .field{color:#7f896f}.field input,.field select,.field textarea,input.search,.staff-title-input{background:#fffdf7;border:1px solid #e2e3d2;border-radius:12px;color:#3d533d}.field textarea{padding:13px}.courtrow{border-color:#e7e7d9}
 table{color:#52664b}th{background:#eef1e3;color:#7f8a70;border-color:#e6e9d9;font-weight:500}td{border-color:#efede1}td small{color:#859079}.tablewrap{border-radius:15px}.gender{background:#e7edd9;color:#71865d;border-radius:8px}.gender.F{background:#f1e6df;color:#aa8c7a}
 dialog{background:#fffcf3;border:0;border-radius:28px;padding:30px;box-shadow:0 24px 90px #273c3033}dialog::backdrop{background:#243b2d66;backdrop-filter:blur(6px)}dialog h2{font-family:var(--font-ui);font-weight:500}
 .warning{background:#f3e9d6;color:#927e55;border-radius:16px}.empty{color:#8d967e}.empty b{font-family:var(--font-ui);color:#627b55;font-weight:500}.help,.tagline{color:#7c886e}
 .partner-club{background:#2b4a39;color:#fcf8e9}.partner-club h2{font-family:var(--font-ui);font-weight:500}.partner-club .sub{color:#c0cbae}.partner-time{color:#c4d0b1}.partner-time b{color:#fcf8e9;font-weight:400}.partner-club .pill{background:#486448;color:#d7e2c4}.partner-club .btn.secondary{border:0;background:#f5f4e6;color:#3d583c}.partner-club .btn.ghost{border-color:#6d8261;color:#d0dabc}.partner-club .note{background:#3c5c41;color:#d5dfc6}
 .partner-person{border-color:#e7e9d8}.partner-person input[type=time]{background:#fffdf6;border-color:#e1e4d0;border-radius:11px}
 .checklist label{border-color:#ebecdf}.loading{color:#496443}#toast{background:#2a4937;color:#faf8eb;border-radius:18px}
}

@media screen and (max-width:1100px){
 .hero.editorial-hero{min-height:390px}.hero-copy{max-width:78%}.hero-attendance{gap:16px}.hero-attendance>div:first-child>span{max-width:85px;line-height:1.7}.hero-attendance>span{max-width:100px;line-height:1.7}
}
@media screen and (max-width:720px){
 body{font-size:17px;background:#f3efe5}.topbar{display:none}.content{padding:30px 18px 38px}.pagehead{gap:15px;margin-bottom:25px}.pagehead>.actions:empty{display:none}.pagehead>.actions{width:auto;max-width:100%;flex-wrap:wrap}.pagehead .eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:12px}
 h1{font-size:27px;line-height:1.6;letter-spacing:-1.1px}.pagehead .sub{font-size:14px;line-height:1.9}.sectionhead h2{font-size:19px}.sectionhead small,.sectionhead button{font-size:12px}
 .btn,.pagehead .btn{font-size:14px;min-height:44px;border-radius:999px;padding:12px 17px}.eventcard .btn,.partner-club .actions .btn,.arrival-presets .btn{font-size:13px;padding:11px 14px}
 .demo-banner{font-size:12.5px;border-radius:17px;padding:12px 15px;gap:5px}.demo-banner button{font-size:12.5px}
 .hero.editorial-hero{padding:27px 25px 125px;min-height:459px;border-radius:27px;background-image:linear-gradient(90deg,rgba(247,240,221,.97),rgba(247,240,221,.82) 42%,rgba(247,240,221,.21) 100%),var(--home-image,url('/tennis-court.jpg'));background-position:57% center;margin-bottom:19px}
 .hero-copy{max-width:100%;width:100%}.hero-kicker{font-size:9px;letter-spacing:1.8px;margin-bottom:21px}.editorial-hero h2{font-size:28px;line-height:1.6;letter-spacing:-1.3px;margin-bottom:17px}.hero-session-name{font-size:14px;line-height:1.7;max-width:80%}.hero-session-name>span{display:block;font-size:12px;margin-top:3px}.editorial-hero p{font-size:13px;line-height:1.9;max-width:90%;margin-bottom:17px}.hero .hero-join{font-size:14px;min-height:44px;padding:12px 21px}.hero-corner{display:none}
 .hero-attendance{left:13px;right:13px;bottom:13px;border-radius:19px;padding:15px 17px;grid-template-columns:1fr auto;gap:10px 14px}.hero-attendance>div:first-child{gap:10px;justify-content:space-between;grid-column:1/-1}.hero-attendance>div:first-child>span{font-size:12px;max-width:none}.hero-attendance b{font-size:25px}.hero-attendance b small{font-size:12px}.hero-attendance>span{font-size:11px;max-width:none;white-space:nowrap}.hero-progress{height:5px}
 .hero.empty-hero{min-height:340px;padding-bottom:25px}
 .stats{gap:11px;margin-bottom:29px}.stat{padding:20px 17px;border-radius:22px}.stat-top{font-size:12.5px;gap:6px;margin-bottom:15px}.stat-num{font-size:31px}.stat-num small{font-size:14px}.stat-foot{font-size:12px;line-height:1.75;margin-top:12px}
 .eventcard{padding:19px 16px;gap:13px;border-radius:24px;align-items:flex-start}.datebox{width:53px;border-radius:16px;padding:13px 6px}.datebox small{font-size:11px}.datebox b{font-size:28px}.eventinfo h3{font-size:15px;line-height:1.7;gap:6px;margin-bottom:9px}.eventmeta{font-size:12px;line-height:1.9}.eventbottom{gap:9px}.eventcard>.btn{margin-left:66px}.eventcard>.actions{padding-left:66px;justify-content:flex-start}
 .pill,.eventcard .pill{font-size:11px;padding:4px 8px}.joined{font-size:12px}.progress{width:64px}
 .panel,.infocard{border-radius:25px;padding:23px 19px;margin-bottom:19px}.paneltitle{gap:15px;margin-bottom:21px}.paneltitle h2{font-size:19px}.rule small{font-size:12.5px}.rule b{font-size:15px;line-height:1.8}.rules{gap:21px 14px}.note{font-size:12.5px;border-radius:17px;padding:15px;line-height:1.95}
 .clubquote{padding:25px;border-radius:25px}.clubquote p{font-size:19px}.clubquote .eyebrow{font-size:10px}.clubquote small{font-size:12px}
 .captain-section{margin-bottom:29px}.captain-grid{gap:11px}.captain-card{padding:19px 18px;border-radius:22px;gap:15px}.captain-photo{width:53px;height:53px}.captain-card b{font-size:16px}.captain-card small{font-size:12px}.captain-card span:not(.captain-photo){font-size:12px;line-height:1.75}.captain-photo.placeholder{font-size:24px}
 .tabs.date-tabs{border-radius:25px;padding:17px;gap:9px;margin-bottom:22px}.date-tabs .date-tab{border-radius:17px;min-width:83px;max-width:130px;padding:12px;gap:5px}.date-tab small{font-size:11px}.date-tab strong{font-size:28px}.date-tab span{font-size:10.5px;line-height:1.7}
 .event-captain{padding:19px 18px;border-radius:22px;gap:13px}.event-captain small{font-size:12px}.event-captain b{font-size:16px}.event-captain span:not(.captain-photo){font-size:12px;line-height:1.8}
 .roundtabs{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.roundtab{border-radius:18px;padding:15px 18px}.roundtab b{font-size:14px}.roundtab small{font-size:12px}.match{border-radius:25px}.matchhead{font-size:14px;padding:17px 20px}.matchbody{padding:30px 20px}.player{font-size:17px;line-height:1.6}.player small{font-size:12px}.score{font-size:27px}.matchfoot{font-size:12px;padding:14px 18px;gap:7px;line-height:1.8}.matchfoot button{font-size:13px;min-height:36px}
 .restbox{border-radius:22px;padding:21px}.restbox b{font-size:15px}.restnames span{font-size:14px;border-radius:11px;padding:7px 12px}.summarystrip{font-size:12.5px;gap:12px 16px;border-radius:18px;padding:16px;line-height:1.9}
 .field{font-size:12.5px;gap:8px}.field input,.field select,.field textarea,input.search,.staff-title-input{font-size:16px;min-height:46px;border-radius:12px;padding:12px 11px}.formgrid,dialog .formgrid{gap:17px 13px}.field input[type=file]{font-size:13px;padding:9px 0}.courtrow{gap:13px;padding-bottom:20px}
 table{font-size:15px}th{font-size:12.5px;padding:13px 12px}td{padding:17px 12px}.gender,td small{font-size:12px}td button{font-size:14px}.tablewrap{border-radius:15px}
 .partner-time{font-size:16px;line-height:1.8}.partner-time b{font-size:24px}.partner-club .sub{font-size:14px}.partner-club{padding:24px}.partner-person input[type=time]{font-size:16px;border-radius:11px}.operator-checklist label{font-size:15px;border-radius:13px}.captain-config{padding:22px 17px;border-radius:21px}
 dialog{padding:28px 21px;border-radius:28px}dialog h2{font-size:22px;line-height:1.6}dialog .sub{font-size:14px;line-height:1.9}.warning{font-size:14px;border-radius:17px}.help{font-size:14px;line-height:1.95}.empty{font-size:15px}.empty b{font-size:21px}.tagline{font-size:13px}
 .footer{font-size:10px;line-height:1.9;margin-top:31px;letter-spacing:.6px;padding-top:22px}
 aside{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:auto;min-height:0;height:auto;background:transparent;border:0;padding:0;border-radius:25px;box-shadow:0 6px 35px #38462d1c}
 aside .nav{background:#fffdf1f5;backdrop-filter:blur(18px);border:1px solid #fefcf4;border-radius:25px;padding:8px 9px;gap:6px;min-height:76px;scrollbar-width:none;touch-action:pan-x}
 aside .nav .nav-item{font-size:13px;min-width:91px;width:91px;flex-basis:91px;min-height:59px;gap:6px;padding:7px 9px;border-radius:18px;color:#8b947c;font-weight:500}
 aside .nav .nav-item.active{background:#e6ecd6;color:#254b32;box-shadow:none;font-weight:600}.nav .nav-item.active svg{stroke-width:2}.nav svg{width:22px;height:22px}
 aside .nav::-webkit-scrollbar{display:none}.main{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}#toast{bottom:calc(112px + env(safe-area-inset-bottom,0px));border-radius:18px;font-size:15px}
}
@media screen and (max-width:380px){
 .content{padding-left:14px;padding-right:14px}h1{font-size:25px}.hero.editorial-hero{padding-left:21px;padding-right:21px}.editorial-hero h2{font-size:26px}.hero-attendance{padding-left:13px;padding-right:13px}.hero-attendance>div:first-child>span{font-size:11px}.stat{padding:18px 14px}.stat-top{font-size:12px}.stat-foot{font-size:11.5px}.eventcard{padding:18px 14px}.eventmeta{font-size:11.5px}.date-tabs .date-tab{min-width:78px}
}
.month-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;padding:15px 19px;background:var(--green);border-radius:23px;color:#fffbef}.month-bar .btn{min-width:43px;min-height:43px;font-size:23px;padding:7px 12px;background:#ffffff12;border:0;color:#f8f6e9}.month-bar .btn:disabled{cursor:default;opacity:.25}.month-picker{position:relative;text-align:center;display:flex;flex-direction:column;gap:7px;align-items:center}.month-picker span{font-size:19px;font-weight:500;letter-spacing:.5px}.month-picker input{font:inherit;font-size:13px;max-width:180px;border:1px solid #b5c49a50;border-radius:8px;padding:4px 7px;background:#f8f6eb;color:var(--green)}
@media screen and (max-width:720px){.month-bar{border-radius:23px;padding:15px 17px}.month-picker span{font-size:20px}.month-picker input{font-size:16px;max-width:180px;min-height:36px}}
@media print{.month-bar{display:none}}

.datebox{display:flex;flex-direction:column;align-items:center;justify-content:center}.datebox small{width:100%;text-align:center;white-space:nowrap}.datebox b{white-space:nowrap}.datebox b em{font-size:11px;font-style:normal;font-weight:400;margin-left:1px}
.application-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px;margin:24px 0;padding:20px;background:var(--soft);border-radius:18px}.application-details>div{min-width:0}.application-details dt{font-size:12px;color:var(--muted);margin-bottom:7px}.application-details dd{font-size:15px;margin:0;overflow-wrap:anywhere;color:var(--green)}.application-list{display:flex;flex-direction:column;gap:10px}.signup-intro h2{line-height:1.7}@media screen and (max-width:720px){.application-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 15px;padding:18px}.application-details dt{font-size:12.5px}.application-details dd{font-size:16px}.signup-intro h2{font-size:18px}}
a.btn{text-decoration:none}
.member-login-panel{max-width:560px;margin:0 auto 25px}.member-login-panel>.actions{gap:10px}.member-login-panel form .btn{min-width:140px}
.signup-credentials{background:var(--soft);border-radius:20px;padding:21px;margin:23px 0}.signup-credentials h3{font-size:15px;margin-bottom:17px}.credential-row{display:flex;align-items:flex-start;justify-content:space-between;gap:17px;padding:11px 0;border-bottom:1px solid #d9dfcb;font-size:13px}.credential-row>span{color:var(--muted);flex-shrink:0}.credential-row strong{font-weight:500;color:var(--green);overflow-wrap:anywhere;text-align:right}.signup-credentials>.sub{margin-top:16px;line-height:1.9}@media screen and (max-width:720px){.signup-credentials{padding:20px 17px}.signup-credentials h3{font-size:16px}.credential-row{flex-direction:column;gap:6px;font-size:14px}.credential-row strong{text-align:left;font-size:16px}.signup-credentials>.sub{font-size:13px}}

.login-screen{min-height:100svh;display:grid;place-items:center;padding:28px 20px;background:var(--paper);width:100%;grid-column:1/-1}
.login-box{width:min(100%,480px);margin:auto; padding:0}
.login-wordmark{width:min(100%,360px);height:72px;position:relative;overflow:hidden;margin:0 auto 48px;display:grid;place-items:center}
.login-wordmark span{font-family:var(--font-ui);font-size:clamp(25px,7vw,38px);letter-spacing:4px;font-weight:500;color:var(--green)}
.login-wordmark img{width:100%;height:100%;object-fit:contain;display:block}
.login-wordmark img.square-source{position:absolute;width:135%;height:auto;max-width:none;left:-17.5%;top:50%;transform:translateY(-78.5%)}
.login-input-row,.login-button-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.login-input-row label{font-size:14px;font-weight:500;color:var(--green);display:flex;flex-direction:column;gap:9px;min-width:0}
.login-input-row input{width:100%;min-width:0;font-size:16px;min-height:52px;box-sizing:border-box}
.login-button-row{margin-top:22px}.login-button-row .btn{width:100%;padding:14px 6px;font-size:16px;min-height:52px;white-space:nowrap}
#login-error{color:#a33;line-height:1.6;font-size:14px;margin:18px 0 0}#login-error:empty{display:none}

.login-wordmark{height:auto;min-height:44px;overflow:visible}.login-logo-only{display:block;width:100%;height:auto;overflow:hidden}.login-input-row input{border-radius:999px;padding:14px 18px;text-align:center;background:var(--white);border:1px solid var(--line)}.login-input-row input::placeholder{color:var(--muted);opacity:1;font-size:14px}.login-input-row input:focus{outline:2px solid var(--green);outline-offset:3px}

/* Phone-first refinements; desktop layout remains unchanged. */
@media screen and (max-width:720px){
 html{-webkit-text-size-adjust:100%;scroll-padding-bottom:130px}
 .main,.content,.panel,.eventinfo,.grid>*,.formgrid>*{min-width:0}
 .content{padding-top:max(20px,env(safe-area-inset-top,0px));overflow-wrap:anywhere}
 .pagehead,.paneltitle,.toolbar{align-items:flex-start;flex-wrap:wrap}
 .pagehead>.actions,.paneltitle>.actions{width:100%;display:flex;gap:10px}.pagehead>.actions .btn,.paneltitle>.actions .btn{flex:1;white-space:normal;text-align:center}
 button,.btn,.tab{min-height:46px}.btn,.tab{font-size:15px}.sectionhead button,td button{min-height:44px;padding:10px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;max-width:100%;min-width:0}
 .field{font-size:14px}.formgrid,dialog .formgrid{grid-template-columns:minmax(0,1fr)}.formgrid .wide{grid-column:1/-1}
 .field input[type=checkbox],input[type=checkbox],input[type=radio]{min-height:22px;width:22px;height:22px;flex-shrink:0;accent-color:var(--green)}
 .actions{gap:10px;flex-wrap:wrap}.actions .btn{max-width:100%;white-space:normal;text-align:center}
 .eventcard{display:grid;grid-template-columns:53px minmax(0,1fr)}.eventcard>.btn,.eventcard>.actions{grid-column:1/-1;margin-left:0;padding-left:0;width:100%}.eventcard>.actions .btn{flex:1}.eventinfo h3,.eventmeta,.player{overflow-wrap:anywhere}
 .eventmeta,.note,.stat-foot{font-size:14px}.sub{font-size:14px;line-height:1.8}
 .tablewrap:has(.mobile-card-table){overflow:visible;border:0}
 .mobile-card-table{display:block;width:100%;min-width:0!important;border:0}
 .mobile-card-table thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
 .mobile-card-table tbody{display:grid;gap:14px}
 .mobile-card-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:16px}
 .mobile-card-table tbody td{display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:16px}
 .mobile-card-table td::before{content:attr(data-label);display:block;font-size:12px;font-weight:400;color:var(--muted);margin-bottom:5px}
 .mobile-card-table td:first-child,.mobile-card-table td:last-child{grid-column:1/-1}.mobile-card-table td:last-child button{border:1px solid var(--line);border-radius:999px;width:100%}
 dialog{width:calc(100% - 20px);max-width:560px;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;padding:26px 18px max(24px,env(safe-area-inset-bottom,0px));scroll-padding:20px}
 dialog .closemodal{width:44px;height:44px;min-width:44px;min-height:44px;top:8px;right:8px;display:grid;place-items:center}
 dialog h2{padding-right:34px}dialog .actions>.btn{flex:1}dialog .actions{margin-top:20px}
 .checklist label{min-height:56px;padding:12px 4px;gap:10px}.checklist label[hidden]{display:none}.checklist label>span{flex:1;min-width:0;overflow-wrap:anywhere}.checklist label small{font-size:13px}.checklist label button{min-width:44px;min-height:44px;font-size:14px!important}
 .courtrow{display:flex;flex-wrap:wrap;gap:12px}.courtrow>.field{flex:1 1 140px;min-width:0}
 .matchbody{gap:8px;padding:24px 14px}.player{font-size:17px}.team{min-width:0}
 aside .nav{scroll-padding-inline:10px}.main{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
 #toast{left:14px;right:14px;max-width:none;transform:none;width:auto;bottom:calc(110px + env(safe-area-inset-bottom,0px));overflow-wrap:anywhere}
 .login-screen{padding:max(28px,env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) max(28px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px))}.login-input-row{grid-template-columns:repeat(2,minmax(0,1fr))}.login-input-row input{padding:14px 8px;font-size:16px}.login-input-row input::placeholder{font-size:13px}
}

@media screen and (max-width:720px) and (min-height:541px){
 .login-screen .login-box{transform:translateY(-24px)}
}
@media screen and (max-width:720px) and (max-height:540px){
 .login-screen .login-box{transform:none}
}

.login-box #member-login-form{width:min(100%,360px);margin-inline:auto}

@media screen and (max-width:720px){.toolbar:has([data-regular-day])>.actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px}.toolbar [data-regular-day="all"]{grid-column:1/-1}.toolbar [data-regular-day]{padding:10px 4px;white-space:normal;font-size:14px;line-height:1.6;min-width:0}}

.result-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px;margin-top:18px}.result-card{border:1px solid var(--line);padding:18px;border-radius:20px;min-width:0}.result-card>small{color:var(--muted)}.result-card p{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;line-height:1.7}.result-card p span{color:var(--green)}.result-card>strong{display:block;text-align:center;font-size:24px;margin:18px 0}.result-card .btn{width:100%;min-height:46px}.matchfoot>div{display:flex;gap:10px;flex-wrap:wrap}.matchfoot button{min-height:44px;padding:10px}#clear-score{margin-top:12px;min-height:46px}

.date-tabs{overscroll-behavior-x:contain;scroll-snap-type:x proximity;overflow-anchor:none}.date-tabs .date-tab{scroll-snap-align:center}

/* Club group purchase: large photographs, quiet price cards, touch-friendly choices. */
.shop-banner{padding:32px;border-radius:28px;background:#254735;color:#fff9e9;margin-bottom:24px;position:relative;overflow:hidden}.shop-banner>span{font-size:11px;letter-spacing:2px;color:#d9e2bd}.shop-banner h2{font-size:30px;line-height:1.5;margin:15px 0}.shop-banner p{font-size:15px;line-height:1.9;color:#e4e6d1;margin-bottom:0}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px;margin-bottom:28px}.shop-card{border:1px solid var(--line);border-radius:25px;overflow:hidden;background:var(--white)}.shop-image-button{display:block;width:100%;padding:0;aspect-ratio:4/3;overflow:hidden}.shop-image-button img,.shop-detail-photo img,.shop-popup-image img{width:100%;height:100%;object-fit:contain;background:#f0f0e6;display:block}.shop-card-body{padding:22px}.shop-card-body h2{font-size:21px;line-height:1.5;margin:14px 0}.shop-card-body>b{font-size:22px;color:var(--green)}.shop-card-body>b small{font-size:13px;font-weight:400}.shop-card-body>.btn{width:100%;min-height:48px}.shop-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.shop-admin-actions>.btn{flex:1;min-height:46px}.shop-photo-placeholder{height:100%;min-height:180px;display:grid;place-items:center;background:#e8eadc;color:#6f7d63;font-size:15px}.shop-detail-photo{aspect-ratio:4/3;max-height:380px;border-radius:22px;overflow:hidden;margin:22px 0}.shop-price{display:grid;gap:12px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#eef0df;margin:18px 0}.shop-price>span{display:flex;gap:16px;justify-content:space-between}.shop-price>span:last-child{border-top:1px solid #d8ddcb;padding-top:13px;font-size:20px;color:var(--green)}.shop-notes{padding:19px;border-radius:18px;background:#f1ede0;margin-bottom:24px}.shop-notes p{line-height:1.9;font-size:15px;margin-bottom:0;overflow-wrap:anywhere}.shop-options{display:grid;gap:10px;margin:17px 0 24px}.shop-option{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:17px;background:var(--white)}.shop-option:has(input[type=checkbox]:checked){background:#e8efdd;border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.shop-option>label:first-child{display:flex;align-items:center;gap:12px;flex:1;min-height:44px;min-width:0;font-size:16px;overflow-wrap:anywhere}.shop-quantity{display:flex;align-items:center;gap:6px}.shop-quantity input{width:68px;max-width:68px!important;min-height:46px;border-radius:12px;text-align:center;font-size:16px}.shop-option input[type=checkbox],.shop-publish input,.shop-popup-footer input{width:22px;height:22px;accent-color:var(--green);flex-shrink:0}.shop-total{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line);padding:20px 0;margin-top:18px}.shop-total strong{font-size:28px;color:var(--green)}.shop-submit{width:100%;min-height:52px;font-size:16px;margin-top:14px}.shop-publish{display:flex;align-items:center;gap:12px;min-height:52px;margin:20px 0;font-size:16px}.shop-option-editor-row{display:flex;gap:8px;margin:10px 0}.shop-option-editor-row input{flex:1;min-width:0!important;font-size:16px;min-height:48px;border-radius:14px}.shop-option-editor-row button{min-width:46px;min-height:46px;border:1px solid var(--line);border-radius:14px;font-size:24px}.shop-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:24px 0}.shop-summary>div{border:1px solid var(--line);border-radius:18px;background:#eef0df;padding:18px 10px;text-align:center;font-size:13px;overflow-wrap:anywhere}.shop-summary b{display:block;font-size:21px;color:var(--green);margin-top:12px}.shop-size-counts{display:grid;gap:9px;margin:16px 0 28px}.shop-size-counts>div{display:flex;justify-content:space-between;padding:13px 16px;background:#e9eddc;border-radius:13px}.shop-report-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:16px 13px;margin:10px 0;overflow-wrap:anywhere}.shop-report-row[hidden]{display:none}.shop-report-row small{grid-column:1/-1;color:var(--muted)}.shop-order{display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:20px 0;border-bottom:1px solid var(--line)}.shop-order h3{font-size:18px;margin-top:10px}.shop-order p{margin:10px 0;line-height:1.7}.shop-order small{font-size:13px;color:var(--muted)}.shop-order>.actions,.shop-order .actions{margin-top:12px}.shop-popup-heading{margin:10px 0 24px}.shop-popup-heading h2{font-size:29px;line-height:1.5}.shop-popup-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:14px}.shop-popup-image{padding:0;aspect-ratio:4/3;border-radius:20px;overflow:hidden;border:1px solid var(--line);background:#efefe5}.shop-popup-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.shop-popup-footer label{display:flex;align-items:center;gap:10px;min-height:46px;font-size:14px}#shop-error{color:#a33;line-height:1.7}#shop-error:empty{display:none}
@media screen and (max-width:720px){.shop-banner{padding:27px 23px}.shop-banner h2{font-size:27px}.shop-summary b{font-size:18px}.shop-summary>div{padding:17px 7px;font-size:12px}.shop-report-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.shop-report-row strong{grid-column:1/-1;text-align:right}.shop-popup-grid{grid-template-columns:1fr}.shop-popup-image{aspect-ratio:4/3}.shop-detail-photo{margin-top:20px;max-height:300px}.shop-option{padding:12px;gap:8px}.shop-popup-footer{flex-wrap:wrap}.shop-order{display:grid;grid-template-columns:1fr}.shop-order>div:last-child{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.shop-order .actions{margin:0}.shop-notes p{font-size:15px}.shop-option label input[type=checkbox]{border-radius:6px}.shop-card-body .btn{min-height:48px}}
.shop-popup-single{width:100%;display:block;aspect-ratio:4/3}

.draw-attendees{padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--white);margin:0 0 22px}.draw-attendee-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px;margin:16px 0}.draw-attendee-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border-radius:15px;padding:15px;background:#eef0e4;min-width:0;overflow-wrap:anywhere}.draw-attendee-list article>small{grid-column:1/-1;color:var(--muted);font-size:13px}.draw-attendee-list article>span{font-size:14px;color:var(--green)}.draw-attendee-list b{font-size:16px}.draw-attendee-list b small{font-size:11px;color:var(--muted)}.empty-court{border:1px dashed #c4ccb8;background:#f2f1e8}.empty-court .matchhead{background:#e9ecdf;color:#68745f}.empty-court-body{padding:30px 20px;min-height:190px;display:flex;flex-direction:column;justify-content:center;gap:13px;text-align:center;color:#71806a}.empty-court-body>b{font-size:17px}.empty-court-body>span{font-size:14px}.empty-court-body>p{font-size:14px;line-height:1.8;margin:0}
@media screen and (max-width:720px){.draw-attendees{padding:19px 16px}.draw-attendee-list{grid-template-columns:1fr}.empty-court-body{min-height:155px;padding:24px 18px}}

.court-swipe-hint{font-size:13px;color:var(--muted);margin:10px 0}.result-rounds{display:grid;gap:27px;margin-top:25px}.result-round{min-width:0}.result-round-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.result-round-heading h3{font-size:20px;color:var(--green)}.result-round-heading span{font-size:13px;color:var(--muted)}.result-court-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,320px);grid-template-columns:none;gap:13px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding:2px 3px 15px;scroll-padding-inline:3px;-webkit-overflow-scrolling:touch}.result-court-strip>.result-card{scroll-snap-align:start;display:flex;flex-direction:column}.result-court-strip>.result-card>.btn{margin-top:auto}.result-card-court{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.result-card-empty{border-style:dashed;background:#f0f1e9;color:var(--muted)}.result-card-empty .empty-court-body{flex:1;min-height:205px;padding:25px 0}
@media screen and (max-width:720px){.print-round .matchgrid.court-scroll-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,88%);grid-template-columns:none;gap:13px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding:2px 2px 15px;scroll-padding-inline:2px;-webkit-overflow-scrolling:touch}.print-round .matchgrid.court-scroll-strip>.match{scroll-snap-align:start;margin:0;min-width:0}.result-court-strip{grid-auto-columns:minmax(245px,90%)}.result-round-heading h3{font-size:18px}.result-round-heading span{font-size:13px}}
@media print{.court-swipe-hint{display:none}.court-scroll-strip,.print-round .matchgrid.court-scroll-strip{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-columns:auto!important;overflow:visible!important}.result-court-strip{break-inside:auto}}

.popup-edit-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px;align-items:start}.popup-edit-layout>.panel{min-width:0}.popup-live-preview{position:sticky;top:22px}.popup-live-preview h3{font-size:22px;line-height:1.6;overflow-wrap:anywhere}.popup-editor-selector .field{font-size:16px}.popup-editor-selector select{font-size:16px;min-height:50px;width:100%}.popup-save-bar{margin-top:20px}.shop-popup-single,.shop-image-button{aspect-ratio:1/1}.shop-detail-photo{width:min(100%,380px);aspect-ratio:1/1;max-height:none;margin-inline:auto}.shop-popup-single img,.shop-detail-photo img,.shop-image-button img{object-fit:contain}
@media screen and (max-width:720px){.popup-edit-layout{grid-template-columns:1fr;gap:0}.popup-live-preview{position:static}.popup-editor-selector{padding:19px 16px}.popup-edit-layout h2{font-size:22px;line-height:1.6}.popup-edit-layout .formgrid{grid-template-columns:minmax(0,1fr)}.shop-detail-photo{max-height:none;aspect-ratio:1/1}.shop-popup-heading h2{font-size:26px;line-height:1.5}}

.popup-publication-status{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px;background:#e9eddc;border-radius:17px;margin:24px 0;font-size:15px}.popup-publication-status b{color:var(--green);text-align:right}.popup-publish-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.popup-publish-actions .btn{min-height:52px;font-size:16px;white-space:normal;text-align:center;padding:14px 12px}
@media screen and (max-width:380px){.popup-publish-actions{grid-template-columns:1fr}.popup-publication-status{font-size:14px}}

.shop-fee-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.7fr) 46px;gap:8px;margin:10px 0}.shop-fee-row input{min-width:0;font-size:16px;min-height:48px;border-radius:12px}.shop-fee-row button{min-height:46px;border:1px solid var(--line);border-radius:12px;font-size:24px}.popup-editor-selector+button{margin-bottom:14px}

.shop-detail-photo.photo-editor{aspect-ratio:auto;overflow:visible;max-height:none;width:min(100%,420px)}.photo-stage{position:relative;aspect-ratio:1/1;width:100%;overflow:hidden;background:#f3efe5;border:1px solid var(--line);border-radius:18px;touch-action:none;user-select:none;-webkit-user-select:none}.photo-stage>img{position:absolute;max-width:none;max-height:none;object-fit:fill;pointer-events:none;user-select:none;-webkit-user-drag:none}.photo-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent 33.1%,#ffffff66 33.3%,transparent 33.5%,transparent 66.4%,#ffffff66 66.6%,transparent 66.8%),linear-gradient(to bottom,transparent 33.1%,#ffffff66 33.3%,transparent 33.5%,transparent 66.4%,#ffffff66 66.6%,transparent 66.8%)}.photo-zoom-control{display:flex;align-items:center;gap:12px;font-size:14px;margin:14px 0}.photo-zoom-control input{flex:1;width:100%;min-height:44px;accent-color:var(--green);padding:0}.photo-editor-actions{display:flex;gap:10px;flex-wrap:wrap}.photo-editor-actions .btn{flex:1;min-height:46px;font-size:14px}

.popup-delete-button{margin:14px 0 0;min-height:48px;width:100%;font-size:16px}.deleted-popup-records{margin-top:24px}.deleted-popup-records summary{cursor:pointer;min-height:44px;font-size:17px;font-weight:600;line-height:1.7}.deleted-popup-records .toolbar{padding:15px 0;border-top:1px solid var(--line)}

/* A bare X across all dialogs; retain a comfortable invisible touch target. */
dialog .closemodal{position:relative;top:0;right:0;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-family:Arial,sans-serif;font-size:32px;font-weight:400;line-height:1;display:flex;align-items:center;justify-content:center;color:var(--green);appearance:none;transform:none}
dialog .closemodal:hover,dialog .closemodal:active{background:transparent;box-shadow:none}
dialog .closemodal::before,dialog .closemodal::after{content:none}
.competition-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.competition-list-card{text-align:left;width:100%;cursor:pointer;color:inherit}.competition-hero{background:linear-gradient(135deg,#e8eddb,#fcf9ef)}.competition-roster{display:flex;gap:8px;flex-wrap:wrap}.competition-courts{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding:6px 0 14px;overscroll-behavior-x:contain}.competition-game{flex:0 0 280px;scroll-snap-align:center;border:1px solid #dcdccf;border-radius:20px;padding:18px;background:#fffdf6;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.competition-teams p{margin:6px 0}.competition-prizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.competition-prizes article{text-align:center;border-radius:16px;padding:14px 8px;background:#f0f1e5;overflow-wrap:anywhere}.competition-prizes article>span{font-size:30px}.competition-rounds>.panel{margin-top:16px}.competition-prizes h3{font-size:16px}.tablewrap{overflow-x:auto}@media(max-width:640px){.competition-hero .actions{display:grid;grid-template-columns:1fr 1fr}.competition-game{flex-basis:82%}.competition-prizes{gap:6px}.competition-prizes h3{font-size:15px}.competition-prizes p{font-size:14px}}
.competition-description,.competition-participation,.competition-admin{margin-top:24px;padding-top:20px;border-top:1px solid #dce0d1}.competition-description h3,.competition-participation h3,.competition-admin h3{margin:0 0 14px}.competition-description p{line-height:1.8;white-space:normal;overflow-wrap:anywhere}.competition-participation>.btn{margin-top:8px;min-height:44px}.competition-editor-actions{display:flex;gap:12px;flex-wrap:wrap;padding-top:24px;margin-top:24px;border-top:1px solid #dce0d1}.competition-admin .actions{gap:10px;flex-wrap:wrap}.competition-admin .btn{white-space:normal}.competition-hero .stats{display:flex;gap:14px;flex-wrap:wrap}@media(max-width:640px){.competition-participation>.btn{width:100%}.competition-editor-actions>.btn{width:100%}.competition-admin .actions{display:grid;grid-template-columns:1fr 1fr}.competition-description,.competition-participation,.competition-admin{margin-top:22px;padding-top:18px}}
/* Square menu icons retain their circular proportions at every navigation size. */
aside .nav .nav-item svg{width:22px;height:22px;min-width:22px;min-height:22px;max-width:none;max-height:none;flex:0 0 22px;aspect-ratio:1;overflow:visible}

/* Dialog autofocus must never paint a green focus rectangle around the bare X. */
#modal > button.closemodal,#modal > button.closemodal:is(:focus,:focus-visible,:hover,:active){background:none!important;border:none!important;border-radius:0!important;box-shadow:none!important;outline:none!important;-webkit-tap-highlight-color:transparent}
#modal > button.closemodal:focus-visible{text-decoration:underline;text-underline-offset:4px}
/* Event posters retain their complete artwork in a 5.3:7.5 portrait frame. */
.event-poster-photo,.shop-detail-photo.event-poster-photo,.shop-image-button.event-poster-photo{aspect-ratio:53/75;max-height:none;overflow:hidden;padding:0}
.event-poster-photo img{width:100%;height:100%;object-fit:contain;display:block}
#modal.poster-popup{padding:0;width:min(420px,calc(100vw - 24px),calc((100dvh - 100px)*.706667));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px;overflow:auto}
#modal.poster-popup>.closemodal{position:absolute;z-index:2;top:2px;right:2px;color:white;text-shadow:0 1px 4px #173e31,0 0 2px #173e31}
#modal.poster-popup .shop-popup-single{width:100%;aspect-ratio:53/75;display:block;border-radius:0;margin:0;padding:0;overflow:hidden}
#modal.poster-popup .shop-popup-single img{object-fit:contain;width:100%;height:100%;background:#f3efe5;display:block}
#modal.poster-popup .shop-popup-footer{margin:0;padding:8px 12px;min-height:48px;gap:8px}
#modal.poster-popup>[data-form-error]:empty{display:none}
.competition-stages{display:flex;overflow-x:auto;gap:10px;padding:4px 0 14px;margin-bottom:8px}.competition-stages>div{flex:0 0 auto;min-width:108px;border:1px solid var(--line);border-radius:14px;padding:12px 15px;background:#f4f1e6}.competition-stages b,.competition-stages small{display:block}.competition-stages small{margin-top:5px;color:var(--muted);font-size:12px}.competition-stages .done{background:#e4edd8;border-color:#b9cba7}.competition-prizes h3{line-height:1.7}
/* Use the same Korean font for headings, names and digits across the application. */
:root{--font-ui:'Noto Sans KR','DM Sans',sans-serif}
h2 small,h3 small{font-family:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;margin-inline-start:.45em;display:inline-block;vertical-align:baseline}
.panel>h2{margin-bottom:16px}.panel>h2+.help{margin-top:-6px;margin-bottom:16px}.panel h2,.panel h3{line-height:1.6;overflow-wrap:anywhere}
.paneltitle,.sectionhead,.result-round-heading{flex-wrap:wrap;gap:12px;align-items:center}.formgrid>*{min-width:0}.actions>.btn{max-width:100%;white-space:normal;line-height:1.5}
.competition-section-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}.competition-section-head h2{margin:0}.section-count{font-family:inherit;font-size:15px;font-weight:600;line-height:1.6;font-variant-numeric:tabular-nums;padding:3px 9px;border-radius:999px;background:#edf0df;white-space:nowrap}
.competition-roster{gap:8px}.competition-roster .pill{font-size:14px;line-height:1.5;padding:5px 10px;min-height:32px;display:inline-flex;align-items:center;white-space:normal;max-width:100%}
.competition-prizes article{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;padding:18px 10px}.competition-prizes h3,.competition-prizes p{margin:0;font-family:inherit;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}.competition-prizes article>span{line-height:1.3}
.competition-award-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.competition-award-actions .btn{white-space:normal;line-height:1.5}
.date-tabs .date-tab.past:disabled{opacity:.48;background:#e6e9dc;color:#67755f;border-color:transparent;box-shadow:none;cursor:default;pointer-events:none}.date-tabs .date-tab.past small,.date-tabs .date-tab.past span{color:inherit}
.competition-team-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px}.competition-team-list article{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:16px;padding:14px;background:#f6f4e9;min-width:0;overflow-wrap:anywhere}.competition-team-list small{color:var(--muted)}.competition-team-row{border:1px solid var(--line);border-radius:16px;padding:16px;margin:18px 0}.competition-team-row legend{font-weight:600;padding:0 8px}.competition-winner-options{border:0;padding:0;margin:0 0 20px}.competition-winner-options label{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;padding:16px;margin:10px 0;line-height:1.7}.competition-winner-options input{width:20px;height:20px;flex-shrink:0;accent-color:var(--green)}.competition-record-card{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#f6f4e9;margin:10px 0;min-width:0}.competition-record-card>small{margin-left:8px;color:var(--muted)}.competition-record-card dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 0}.competition-record-card dl>div{min-width:0}.competition-record-card dt{font-size:12px;color:var(--muted)}.competition-record-card dd{margin:3px 0 0;font-size:18px;font-weight:600}.competition-record-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 22px}.competition-record-top .competition-record-card{padding:12px}.competition-record-top .competition-record-card dl{grid-template-columns:repeat(2,minmax(0,1fr))}.competition-record-search{margin-top:20px}.competition-records>h3{margin-top:18px}@media(max-width:480px){.competition-record-top{grid-template-columns:1fr}.competition-record-top .competition-record-card dl{grid-template-columns:repeat(4,minmax(0,1fr))}}
.competition-team-details summary{font-size:18px;font-weight:600;cursor:pointer;line-height:1.7}.competition-team-details[open]>summary{margin-bottom:16px}.competition-team-details summary .section-count{margin-inline-start:8px}
.regular-day-filters{display:grid;grid-template-columns:100px repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 20px}.regular-day-filter{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;border:1px solid #dce2cf;border-radius:18px;background:#fffcf3;color:var(--green);min-width:0;line-height:1.6}.regular-day-filter.active{background:var(--green);color:#fffcef;border-color:var(--green)}.regular-day-filter>span{min-width:0;font-weight:600;overflow-wrap:anywhere}.regular-day-filter small{display:block;font-size:13px;font-weight:400;line-height:1.6}.regular-day-filter .captain-photo{width:42px;height:42px;min-width:42px;border-radius:50%;flex-shrink:0;object-fit:cover}.regular-member-guide{padding:12px 16px;background:#eeefdf;border-radius:16px;margin-bottom:18px}.regular-member-guide summary{cursor:pointer;font-size:14px;font-weight:500;line-height:1.7}@media(max-width:640px){.regular-day-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.regular-day-filter{flex-direction:column;gap:7px;padding:12px 6px}.regular-day-filter[data-regular-day="all"]{grid-column:1/-1;padding:8px;min-height:40px}.regular-day-filter>span{font-size:14px}.regular-day-filter small{font-size:12px}.regular-day-filter .captain-photo{width:40px;height:40px;min-width:40px}}
.competition-squad-settings{border:1px solid var(--line);border-radius:18px;padding:18px;margin:22px 0}.competition-squad-settings[hidden]{display:none}.competition-squad-settings legend{font-weight:600;padding:0 8px}#competition-squad-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.competition-squad-summary{background:#e6eddb;justify-content:center;flex-basis:220px}.competition-squad-summary strong{font-size:26px;line-height:1.7}.competition-team-list article p{margin:6px 0;font-size:14px;line-height:1.8}@media(max-width:640px){#competition-squad-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
.competition-prizes:has(>article:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
.member-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;object-fit:cover;flex-shrink:0;background:#e7ecd9;color:var(--green);font-weight:600;vertical-align:middle;overflow:hidden}.member-avatar-small{width:30px;height:30px;min-width:30px;font-size:13px}.member-avatar-large{width:76px;height:76px;min-width:76px;font-size:28px}.member-avatar-placeholder{border:1px solid #d8e0c9}.player{display:flex;align-items:center;gap:8px;min-width:0}.player>span{min-width:0}.player-identity{display:inline-flex;align-items:center;gap:6px;margin:3px 5px 3px 0;max-width:100%;min-width:0;vertical-align:middle}.player-identity>span:last-child{overflow-wrap:anywhere;min-width:0}.profile-heading{display:flex;align-items:center;gap:14px;min-width:0}.profile-heading h2{margin:0;min-width:0}.profile-photo-settings{display:flex;align-items:center;gap:18px;padding:18px 0;margin-bottom:12px;border-bottom:1px solid var(--line)}.profile-photo-settings>div:last-child{min-width:0;flex:1}.profile-photo-settings .help{margin:8px 0 0}.competition-teams .player-identity{font-size:15px}@media(max-width:480px){.profile-photo-settings{align-items:flex-start;gap:12px}.profile-photo-settings .member-avatar-large{width:64px;height:64px;min-width:64px}.profile-heading .member-avatar-large{width:60px;height:60px;min-width:60px}}
.profile-photo-settings input[type=file]{width:100%;max-width:100%;font-size:14px}

/* Participant photos always resolve from the current member profile. */
.draw-attendee-identity{display:flex;align-items:center;gap:5px;min-width:0}.draw-attendee-identity .player-identity{min-width:0}.draw-attendee-identity .player-identity>span{overflow-wrap:anywhere}.draw-attendee-list article>span{align-self:center;white-space:nowrap}

.push-consent .push-consent-title svg{width:24px;height:24px;fill:none;stroke:var(--green);stroke-width:1.8;flex-shrink:0}.push-plan-list{display:grid;gap:14px;margin-top:16px}.push-plan-list>article{padding:18px;border:1px solid var(--line);border-radius:18px;min-width:0;overflow-wrap:anywhere}.push-plan-list .paneltitle{align-items:flex-start;gap:10px}.push-plan-list h3{margin:0}.push-plan-list details{margin:15px 0}.push-plan-list p{white-space:normal}#push-error{color:#a33}@media(max-width:720px){.push-plan-list .actions .btn{flex:1;min-width:80px}.push-plan-list .paneltitle{flex-wrap:wrap}.push-consent .actions .btn{flex:1}}

.competition-roster{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.competition-roster .competition-participant{padding:8px 4px;border:0;border-radius:14px;background:transparent;justify-content:center;align-items:flex-start;min-width:0}.competition-participant .player-identity{display:flex;flex-direction:column;align-items:center;gap:9px;margin:0;width:100%;text-align:center}.competition-participant .member-avatar{width:60px;height:60px;min-width:60px;font-size:24px}.competition-participant .player-identity>span:last-child{font-size:15px;font-weight:600;line-height:1.4;word-break:keep-all;overflow-wrap:anywhere}

.competition-participant .member-avatar{width:clamp(44px,14vw,60px);height:clamp(44px,14vw,60px);min-width:0;max-width:100%;aspect-ratio:1}.competition-prizes article>span{font-size:60px;line-height:1.2;display:inline-block;margin-bottom:8px}.push-category-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.push-category-list>div{display:flex;align-items:center;gap:6px;padding:4px 6px 4px 14px;border:1px solid var(--line);border-radius:14px}.push-category-list .btn{padding:8px;min-height:36px;font-size:13px}#push-category-form{display:flex;align-items:flex-end;gap:12px}#push-category-form .field{flex:1;margin:0}#push-category-form .btn{flex-shrink:0}#push-category-error{color:#a33}@media(max-width:720px){.competition-roster{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.competition-roster .competition-participant{padding:8px 0}.competition-participant .player-identity>span:last-child{font-size:14px}.competition-prizes article{padding-left:4px;padding-right:4px}#push-category-form{align-items:stretch;flex-direction:column}}

.push-time-settings{border:1px solid var(--line);border-radius:16px;padding:16px;min-width:0;margin:0}.push-time-settings legend{padding:0 8px;color:var(--green);font-weight:600}.push-time-settings .field{min-width:0}.push-time-settings .help{margin-bottom:0}

.push-time-settings{grid-column:1/-1}

.push-consent .paneltitle{display:block}.push-consent-title{display:flex;align-items:center;gap:10px;margin:0}.push-consent #push-device-status{margin:16px 0 18px}.push-consent>.actions{gap:12px;align-items:stretch}.push-consent>.actions .btn{flex:1;min-width:0}

.attendance-panel{padding:18px 0 0;margin-top:20px;border-top:1px solid var(--line)}.attendance-panel h3{margin:0 0 8px}.attendance-panel .actions{gap:12px;margin-top:14px}.attendance-panel .pill{white-space:normal}#attendance-confirm-form .checklist label>span{min-width:0}#attendance-confirm-form .player-identity{margin:0}
.coin-member-search{margin:0;min-width:180px}.coin-total{font-size:18px;color:var(--green)}.coin-ranking-table td{vertical-align:middle}.coin-ranking-table .actions{gap:8px;flex-wrap:wrap}.coin-ranking-table .btn{font-size:12px;padding:9px 12px;white-space:nowrap}.coin-history{display:grid;gap:12px;margin-top:16px}.coin-history>article{padding:16px;border:1px solid var(--line);border-radius:16px}.coin-history .paneltitle{margin-bottom:8px}.coin-history p{margin:7px 0}#coin-management-error{color:#a33}@media(max-width:720px){.coin-member-search{width:100%}.coin-ranking-table{min-width:690px}.coin-ranking-table .player-identity{white-space:nowrap}}
.honor-badge{display:inline-flex;align-items:baseline;gap:1px;vertical-align:baseline;margin-left:4px;color:#87600a;font-size:15px;font-weight:700;white-space:nowrap;cursor:pointer;line-height:1.2}.honor-badge>span{font-size:12px}.honor-badge:focus-visible{outline:2px solid #b49730;outline-offset:3px;border-radius:4px}.approval-area-tabs{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:25px}.approval-area-tabs .tab{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px}.approval-area-tabs .tab>span{padding:2px 8px;border-radius:15px;background:#e6ecd8;color:var(--green);font-size:13px}.honor-record-list{display:grid;gap:15px;margin-top:18px}.honor-record-card{margin:0}.honor-record-card .paneltitle h3{margin:0}.honor-winners{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.honor-filter{margin:18px 0;gap:8px}.honor-review-actions{margin-top:16px}.honor-proof-image{display:block;width:100%;max-height:70vh;object-fit:contain;border-radius:14px;background:#f1f1e7;margin:16px 0}.honor-winner-list{max-height:300px;overflow:auto}.honor-submissions>summary{font-size:18px;font-weight:600;cursor:pointer}.honor-public-history>article{padding:16px 0;border-bottom:1px solid var(--line)}#honor-form-error{color:#a33}@media(max-width:480px){.approval-area-tabs{gap:8px}.approval-area-tabs .tab{padding:12px 8px;font-size:14px}.honor-badge{font-size:14px}.honor-filter .tab{font-size:13px}.honor-record-card .actions>.btn{flex:1}}

.attendance-panel-details{margin:18px 0 22px;padding:20px 0;border-bottom:1px solid var(--line)}.attendance-availability{margin:14px 0 0;line-height:1.8}.attendance-availability small{white-space:nowrap}

.arrival-presets>.actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.arrival-presets .actions>.btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:11px 4px;min-width:0;min-height:57px;font-size:13px;white-space:nowrap}.arrival-presets .actions>.btn small{font-size:10px;line-height:1.2}@media(max-width:380px){.arrival-presets>.actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
.guest-restriction-badge{display:inline-flex;align-items:center;white-space:normal;padding:4px 7px;margin:5px 0 5px 5px;border-radius:10px;font-size:11px;line-height:1.4;background:#f7e4dd;color:#8e3f2a;font-weight:600}.guest-restriction-reason{display:block;max-width:240px;white-space:normal;overflow-wrap:anywhere;font-size:12px;font-style:normal;line-height:1.6;color:#8e3f2a;margin-top:5px}.guest-restricted{background:#fff2ed!important}.guest-restricted input:disabled{cursor:not-allowed}.guest-restriction-release{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.guest-restriction-history{margin-top:22px}.guest-restriction-history article{padding:14px 0;border-bottom:1px solid var(--line)}.guest-restriction-history p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}#guest-restriction-error{color:#a33}

.honor-external-partner{display:flex;align-items:center;gap:10px;margin:16px 0;line-height:1.7}.honor-external-partner input{width:18px;height:18px;flex-shrink:0}.honor-submissions[open]>summary{margin-bottom:14px}
