:root{
 --green:#18a957;--green2:#0d8c45;--green3:#eaf8ef;--red:#ef4444;--redbg:#fff0f0;
 --ink:#17202a;--muted:#697580;--line:#e5eaee;--bg:#f5f7f9;--card:#fff;
 --yellow:#f5b72f;--blue:#3678e8;--shadow:0 8px 28px rgba(22,34,45,.065);--r:17px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}
a{color:inherit}.container{width:min(1180px,calc(100% - 28px));margin:auto}
header{height:68px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.nav{height:68px;display:flex;align-items:center;gap:5px}.logo{border:0;background:none;font-size:25px;font-weight:950;letter-spacing:-1.7px;color:#10161b}.logo span{color:var(--green)}
.navlinks{display:flex;align-items:center;gap:2px;margin-left:15px}.navlinks button{border:0;background:transparent;color:#5e6a74;padding:10px 11px;border-radius:10px;font-weight:650}.navlinks button:hover,.navlinks button.active{background:var(--green3);color:var(--green2);font-weight:800}
.spacer{flex:1}.header-btn{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px;font-weight:750}.header-btn.green{background:var(--green);color:#fff;border-color:var(--green)}.mobile-menu{display:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px}
main{min-height:calc(100vh - 68px)}.page{display:none;padding:31px 0 58px}.page.active{display:block}
.hero{display:grid;grid-template-columns:1.18fr .82fr;gap:30px;padding:40px 0 25px;align-items:center}.eyebrow{color:var(--green2);font-weight:850;font-size:13px;text-transform:uppercase;letter-spacing:.08em}.hero h1{font-size:clamp(38px,5.4vw,67px);line-height:1.01;letter-spacing:-3.5px;margin:10px 0 18px}.hero h1 span{color:var(--green)}.hero p{font-size:18px;line-height:1.62;color:var(--muted);max-width:690px}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.btn{border:1px solid var(--line);background:#fff;border-radius:11px;padding:11px 15px;font-weight:760;color:var(--ink)}.btn:hover{border-color:#cdd6dc}.btn.green{background:var(--green);border-color:var(--green);color:#fff}.btn.green:hover{background:var(--green2)}.btn.red{background:var(--redbg);border-color:#ffd2d2;color:#d53b3b}.btn.blue{background:#eef4ff;border-color:#d8e5ff;color:#2d6fd8}
.hero-card{background:linear-gradient(145deg,#fff,#edf9f2);border:1px solid #dcefe3;border-radius:25px;padding:24px;box-shadow:var(--shadow)}.live-label{display:flex;align-items:center;gap:8px;color:var(--red);font-weight:850}.live-dot{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 5px #fee1e1}.scorebox{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;margin-top:18px}.scoreline{display:grid;grid-template-columns:1fr 85px 1fr;align-items:center;text-align:center;gap:8px;margin-top:12px}.club{font-weight:850;font-size:18px}.score{font-size:31px;font-weight:950}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:22px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px}.stat b{font-size:30px;display:block}.stat span{color:var(--muted);font-size:13px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:10px 0 18px}.section-head h2,.page-title h1{margin:0;font-size:29px;letter-spacing:-1px}.muted{color:var(--muted)}.small{font-size:13px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}.pad{padding:19px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.feature h3{margin:11px 0 7px}.feature p{margin:0;color:var(--muted);line-height:1.55}.number{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--green3);color:var(--green2);font-weight:900}
.page-title{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:18px}.page-title p{margin:6px 0 0;color:var(--muted)}
.tabs{display:flex;gap:5px;background:#eef1f3;padding:4px;border-radius:11px;width:max-content;margin-bottom:18px}.tabs button{border:0;background:transparent;padding:9px 14px;border-radius:8px;color:#65717c}.tabs button.active{background:#fff;color:var(--ink);font-weight:850;box-shadow:0 2px 7px rgba(0,0,0,.05)}
.searchbar{display:flex;gap:9px;margin-bottom:17px}.searchbar input,.searchbar select{border:1px solid var(--line);background:#fff;border-radius:11px;padding:11px 13px;outline:none}.searchbar input{flex:1}
.tag{display:inline-flex;align-items:center;padding:5px 9px;border-radius:99px;background:var(--green3);color:var(--green2);font-size:12px;font-weight:850}.tag.red{background:var(--redbg);color:#d73b3b}.tag.gray{background:#f0f2f4;color:#697580}.tag.yellow{background:#fff7df;color:#a87405}
.tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.tcard{padding:19px}.tcard h3{margin:12px 0 8px;font-size:20px}.meta{display:grid;gap:7px;color:#697580;font-size:14px}.card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:14px;margin-top:17px}.link{border:0;background:none;color:var(--green2);font-weight:850;padding:7px}.qr{border:1px solid #d8e9de;background:#f7fcf9;color:var(--green2);border-radius:9px;padding:8px 10px;font-weight:800}
.tablewrap{overflow:auto}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:12px;border-bottom:1px solid #edf0f2;white-space:nowrap}.table th{font-size:11px;color:#7b858e;text-transform:uppercase}.table th:not(:nth-child(2)),.table td:not(:nth-child(2)){text-align:center}.teamname{font-weight:800}.pos{color:var(--green2);font-weight:950}
.live-list{display:grid;gap:13px}.live-card{padding:17px;display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center}.live-card h3{margin:8px 0}.stream{border:0;border-radius:10px;background:var(--red);color:#fff;padding:11px 15px;font-weight:850}
.scorers{display:grid;grid-template-columns:1fr 1fr;gap:13px}.scorer{display:flex;align-items:center;gap:13px;padding:15px}.rank{width:38px;height:38px;border-radius:50%;background:#f0f2f4;display:grid;place-items:center;font-weight:900}.scorer-main{flex:1}.scorer-main strong{display:block}.goals{font-size:24px;font-weight:950;color:var(--green2)}
.detail-head{padding:23px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);margin-bottom:17px}.detail-top{display:flex;justify-content:space-between;gap:15px}.detail-head h1{font-size:31px;margin:8px 0}.detail-meta{display:flex;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:14px}.detail-tabs{margin-bottom:17px}
.match-hero{padding:25px;text-align:center}.match-grid{display:grid;grid-template-columns:1fr 140px 1fr;align-items:center;gap:15px}.bigteam{font-size:21px;font-weight:900}.bigscore{font-size:48px;font-weight:950}.event{display:flex;gap:10px;justify-content:center;margin-top:13px;color:var(--muted);font-size:14px}
.fixture{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.fixture:last-child{border-bottom:0}
.form{max-width:900px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:850}.field input,.field select,.field textarea{border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px 12px;outline:none}.password-wrap{position:relative;display:flex;align-items:center}.password-wrap input{width:100%;min-width:0;padding-right:82px!important}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:800;padding:6px;border-radius:6px}.password-toggle:hover{background:#eef6fb}.password-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.field textarea{min-height:100px;resize:vertical}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}
footer{background:#fff;border-top:1px solid var(--line);padding:26px 0;color:#747e87}.foot{display:flex;justify-content:space-between;gap:15px;font-size:14px}
.modal{position:fixed;inset:0;background:rgba(12,20,27,.53);display:none;align-items:center;justify-content:center;padding:18px;z-index:80}.modal.open{display:flex}.modalbox{background:#fff;border-radius:20px;width:min(560px,100%);max-height:90vh;overflow:auto;padding:23px;box-shadow:0 25px 80px rgba(0,0,0,.24)}.close{float:right;border:0;background:#f0f2f4;border-radius:8px;padding:7px 10px}.modalbox h2{margin-top:0}.qrimg{display:block;width:220px;height:220px;margin:12px auto;object-fit:contain}.sharelink{background:#f5f7f9;padding:10px;border-radius:9px;word-break:break-all;color:var(--muted);font-size:13px}
.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,25px);background:#17202a;color:#fff;padding:12px 17px;border-radius:10px;opacity:0;pointer-events:none;transition:.25s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}
.organizer-layout{display:grid;grid-template-columns:220px 1fr;gap:19px}.oside{background:#fff;border:1px solid var(--line);border-radius:17px;padding:8px;height:max-content;position:sticky;top:85px}.oside button{display:block;width:100%;border:0;background:none;text-align:left;padding:11px;border-radius:9px;color:#65717b}.oside button.active,.oside button:hover{background:var(--green3);color:var(--green2);font-weight:850}.oside .new{background:var(--green);color:#fff;text-align:center;margin-top:7px}
.osection{display:none}.osection.active{display:block}.okpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:15px}.otour{display:grid;grid-template-columns:1fr auto;gap:13px;align-items:center;padding:17px}.otour h3{margin:7px 0}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:11px;border-bottom:1px solid #edf0f2;text-align:left}.admin-table th{font-size:11px;color:#78838d}.admin-match{display:grid;grid-template-columns:1fr 120px 1fr;gap:10px;align-items:center;text-align:center}.score-input{width:44px;padding:7px;text-align:center;font-size:22px;font-weight:900;border:1px solid var(--line);border-radius:8px}
@media(max-width:920px){.navlinks{display:none}.mobile-menu{display:block}.navlinks.mobile{display:flex;position:absolute;left:10px;right:10px;top:64px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:7px;flex-direction:column;align-items:stretch;box-shadow:var(--shadow)}.navlinks.mobile button{text-align:left}.hero{grid-template-columns:1fr}.tgrid,.grid{grid-template-columns:1fr 1fr}.organizer-layout{grid-template-columns:1fr}.oside{position:static;display:flex;overflow:auto;gap:3px}.oside button{white-space:nowrap;width:auto}.oside .new{margin:0}.okpis{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.container{width:calc(100% - 18px)}.page{padding:23px 0 45px}.hero{padding-top:24px}.hero h1{letter-spacing:-2.3px}.stats,.tgrid,.grid,.grid2,.scorers{grid-template-columns:1fr}.page-title{display:block}.page-title .btn{margin-top:11px}.fields{grid-template-columns:1fr}.field.full{grid-column:auto}.live-card{grid-template-columns:1fr}.match-grid{grid-template-columns:1fr 90px 1fr}.bigteam{font-size:16px}.bigscore{font-size:36px}.foot{display:block}.foot div+div{margin-top:8px}.detail-top{display:block}.okpis{grid-template-columns:1fr 1fr}.admin-match{grid-template-columns:1fr 80px 1fr}}

.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:18px;z-index:9999}.modal-card{width:min(620px,100%);max-height:90vh;overflow:auto}.modal-card select,.modal-card input{width:100%;box-sizing:border-box}.modal-card .field{margin-bottom:12px}

/* LINEPORTAL visual system v23 — academy/club portal style */
:root{--green:#1769e8;--green2:#1256c7;--green3:#edf4ff;--blue:#1769e8;--ink:#132238;--muted:#66758a;--line:#e5eaf1;--bg:#f5f7fb;--card:#fff;--shadow:0 8px 26px rgba(22,42,70,.07);--r:14px}
body{background:#f4f7fb;color:var(--ink)}
header{height:68px;background:linear-gradient(90deg,#071b33,#0b2949);border-bottom:0;box-shadow:0 3px 16px rgba(4,20,38,.14)}
.nav{height:68px}.logo{color:#fff;font-size:25px}.logo span{color:#4b9bff}.navlinks button{color:#d9e5f3;border-radius:8px}.navlinks button:hover,.navlinks button.active{background:rgba(70,145,238,.16);color:#fff}.header-btn{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.15);color:#fff}.header-btn.green{background:#2e7ff0;border-color:#2e7ff0}.mobile-menu{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.15);color:#fff}
.page{padding:24px 0 52px}.container{width:min(1240px,calc(100% - 30px))}
.hero{padding:35px 0 22px}.hero h1{font-size:clamp(38px,5vw,62px)}.hero h1 span{color:#1769e8}.eyebrow{color:#1769e8}.hero-card{background:linear-gradient(145deg,#0b2949,#1769e8);border:0;color:#fff;box-shadow:0 18px 45px rgba(16,67,132,.2)}.hero-card .muted{color:#d6e5f7}.scorebox{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18)}
.btn{border-radius:9px}.btn.green{background:#1769e8;border-color:#1769e8}.btn.green:hover{background:#1256c7}.btn.blue{background:#edf4ff;border-color:#d7e6ff;color:#1769e8}.link{color:#1769e8}.tag{background:#edf4ff;color:#1769e8}.qr{background:#f4f8ff;border-color:#d9e7ff;color:#1769e8}.number{background:#edf4ff;color:#1769e8}
.card{border-radius:14px;box-shadow:var(--shadow)}.stat{border-radius:13px}.stats{gap:12px}.section-head h2,.page-title h1{font-weight:850}.tabs{background:#edf1f6}.tabs button.active{color:#1769e8}
.tcard{padding:0;overflow:hidden}.tcard h3,.tcard .meta,.tcard .card-foot,.tcard>.tag{margin-left:17px;margin-right:17px}.tcard h3{margin-top:14px}.tcard .card-foot{margin-bottom:15px}.tcard .tag{margin-top:15px}
.detail-head{border-radius:16px}.detail-head h1{font-weight:900}.live-card{border-radius:14px}.stream{background:#ef3f4f}.organizer-layout .oside{border-radius:14px}.oside button.active,.oside button:hover{background:#edf4ff;color:#1769e8}.oside .new{background:#1769e8}
/* Academy profile */
.academy-shell{grid-column:1/-1}.academy-hero{position:relative;overflow:hidden;border-radius:16px;min-height:265px;padding:30px 34px;color:#fff;background:linear-gradient(110deg,#061c35 0%,#0d3157 52%,#1769e8 100%);box-shadow:0 14px 35px rgba(8,37,67,.16)}.academy-hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 84% 15%,rgba(255,255,255,.18),transparent 28%),linear-gradient(125deg,transparent 55%,rgba(255,255,255,.05) 55%,transparent 70%);pointer-events:none}.academy-hero-content{position:relative;z-index:1;display:flex;align-items:center;gap:25px}.academy-logo{width:122px;height:122px;object-fit:contain;border-radius:20px;background:#fff;padding:10px;box-shadow:0 10px 28px rgba(0,0,0,.2);flex:0 0 auto}.academy-logo-fallback{display:grid;place-items:center;font-size:50px}.academy-title{font-size:clamp(32px,4vw,54px);line-height:1;margin:0 0 12px;letter-spacing:-1.8px}.academy-meta{display:flex;flex-wrap:wrap;gap:14px;color:#dcecff;font-size:14px}.academy-slogan{font-size:17px;margin:14px 0 20px;color:#fff;font-weight:650}.academy-kpis{display:flex;flex-wrap:wrap;gap:24px;margin-top:18px}.academy-kpi b{display:block;font-size:26px}.academy-kpi span{font-size:12px;color:#cfe1f6}.academy-actions{position:absolute;right:28px;bottom:25px;display:flex;gap:8px;z-index:2}.academy-actions .btn{background:#fff;color:#1769e8;border-color:#fff}.academy-tabs{display:flex;gap:3px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:13px;padding:5px;margin:10px 0 18px}.academy-tabs button{white-space:nowrap;border:0;background:transparent;padding:11px 16px;border-radius:9px;color:#657489;font-weight:700}.academy-tabs button.active{background:#1769e8;color:#fff;box-shadow:0 4px 10px rgba(23,105,232,.2)}.academy-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px}.academy-main{min-width:0}.academy-side{display:grid;gap:15px;align-content:start}.academy-section{padding:18px}.academy-section h2{margin:0;font-size:21px}.academy-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}.academy-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.academy-team-card{display:flex;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;align-items:center;transition:.18s}.academy-team-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(17,45,80,.08)}.academy-team-photo{width:82px;height:64px;border-radius:9px;object-fit:cover;background:#eaf1fa;flex:0 0 auto}.academy-team-icon{width:82px;height:64px;border-radius:9px;background:linear-gradient(135deg,#dcecff,#f4f8ff);display:grid;place-items:center;font-size:30px;flex:0 0 auto}.academy-team-card h3{margin:0 0 5px;font-size:16px}.academy-team-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.academy-side .card{padding:18px}.academy-about-logo{width:75px;height:75px;object-fit:contain;float:left;margin:0 13px 10px 0}.academy-contact{display:grid;gap:9px;color:#53647a;font-size:14px}.academy-coach{display:flex;gap:12px;align-items:center}.academy-coach img{width:68px;height:68px;border-radius:11px;object-fit:cover}.academy-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.academy-news{overflow:hidden}.academy-news .news-img{height:105px;background:linear-gradient(135deg,#dcecff,#eff5fb);display:grid;place-items:center;font-size:32px}.academy-news .news-body{padding:13px}.academy-news h3{font-size:14px;line-height:1.35;margin:0 0 6px}.academy-news p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.academy-breadcrumb{display:flex;gap:7px;align-items:center;color:#738196;font-size:13px;margin:2px 0 12px}.academy-breadcrumb button{border:0;background:none;color:#1769e8;padding:0;font-weight:700}
@media(max-width:900px){.academy-layout{grid-template-columns:1fr}.academy-side{grid-template-columns:1fr 1fr}.academy-actions{position:static;margin-top:20px}.academy-hero{min-height:0}.academy-team-grid{grid-template-columns:1fr 1fr}.academy-news-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.academy-hero{padding:22px}.academy-hero-content{align-items:flex-start;flex-direction:column}.academy-logo{width:90px;height:90px}.academy-title{font-size:34px}.academy-kpis{gap:14px}.academy-actions{width:100%}.academy-actions .btn{flex:1}.academy-tabs button{padding:10px 12px}.academy-side{grid-template-columns:1fr}.academy-team-grid,.academy-news-grid{grid-template-columns:1fr}.academy-team-photo,.academy-team-icon{width:76px}.container{width:calc(100% - 18px)}}


/* LINEPORTAL home hero banner */
.home-banner-wrap{position:relative;width:100%;margin:10px 0 24px;border-radius:18px;overflow:hidden;background:#061a32;box-shadow:0 16px 42px rgba(5,25,52,.16);line-height:0}
.home-banner-image{display:block;width:100%;height:auto;aspect-ratio:8/3;object-fit:cover}
.home-banner-cta{position:absolute;left:3.85%;top:85.5%;width:14.9%;height:9.2%;border:0;border-radius:12px;background:transparent;cursor:pointer;z-index:2}
.home-banner-cta::after{content:"Создать турнир  →";display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0 8px;box-sizing:border-box;color:#fff;font:700 clamp(9px,1.05vw,15px)/1.15 Arial,sans-serif;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.16);pointer-events:none}
.home-banner-cta:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px #1478ff}
.home-banner-cta:hover{background:rgba(255,255,255,.10)}
@media(max-width:700px){.home-banner-wrap{margin:4px 0 18px;border-radius:10px}.home-banner-image{aspect-ratio:8/3;object-fit:cover}.home-banner-cta{border-radius:7px}}



/* Funnel banner: dark navy translucent football promo */
.home-funnel-banner{position:relative;isolation:isolate;overflow:hidden;margin:28px 0 8px;border-radius:18px;background:#061a32;box-shadow:0 16px 42px rgba(5,25,52,.17);line-height:0}
.home-funnel-image{display:block;width:100%;height:auto;aspect-ratio:2048/682;object-fit:cover}
.home-funnel-cta,.home-funnel-how{position:absolute;top:83%;height:13%;border:0;background:transparent;border-radius:12px;cursor:pointer;z-index:2}
.home-funnel-cta{left:4.2%;width:21%}
.home-funnel-cta::after,.home-funnel-how::after{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:0 6px;box-sizing:border-box;font:700 clamp(9px,1vw,14px)/1.1 Arial,sans-serif;white-space:nowrap;pointer-events:none}
.home-funnel-cta::after{content:"＋ Создать турнир";color:#fff}
.home-funnel-how::after{content:"Найти турнир →";color:#15365b}
.home-funnel-cta:hover{background:rgba(0,255,130,.10)}
.home-funnel-how:hover{background:rgba(100,190,255,.08)}
.home-funnel-cta:focus-visible,.home-funnel-how:focus-visible{outline:3px solid #58baff;outline-offset:2px}
.contact-email{display:inline-block;margin-top:7px}.contact-email a{color:#1769e8;text-decoration:none;font-weight:700}.contact-email a:hover{text-decoration:underline}
@media(max-width:700px){.home-funnel-banner{border-radius:11px;margin:20px 0 6px}.home-funnel-image{aspect-ratio:2048/682;object-fit:cover}.home-funnel-cta,.home-funnel-how{top:82.5%;height:14%;border-radius:7px}}

/* LINEPORTAL homepage redesign v40 */
.home-intro{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin:0 0 28px}
.home-value{background:linear-gradient(120deg,#071c34,#103b68 72%,#1769e8);border-radius:20px;padding:25px 27px;color:#fff;position:relative;overflow:hidden;box-shadow:0 15px 35px rgba(8,37,67,.13)}
.home-value:after{content:"";position:absolute;width:240px;height:240px;border:35px solid rgba(255,255,255,.06);border-radius:50%;right:-75px;top:-100px;pointer-events:none}
.home-value .eyebrow{color:#8fc4ff}.home-value h2{font-size:clamp(22px,3vw,32px);line-height:1.1;letter-spacing:-.7px;margin:10px 0}.home-value p{max-width:650px;color:#d6e6f8;line-height:1.55;margin:0}.home-value-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.home-value .btn{background:#fff;border-color:#fff;color:#12365a}.home-value .btn.blue{background:#2677ed;color:#fff;border-color:#2677ed}
.home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.home-shortcut{border:1px solid var(--line);background:#fff;border-radius:17px;padding:18px;text-align:left;display:flex;gap:13px;align-items:flex-start;box-shadow:var(--shadow);transition:transform .16s,border-color .16s}.home-shortcut:hover{transform:translateY(-2px);border-color:#b8d2f8}.home-shortcut-icon{width:43px;height:43px;flex:0 0 auto;border-radius:13px;background:#edf4ff;color:#1769e8;display:grid;place-items:center;font-size:22px}.home-shortcut strong{display:block;margin:2px 0 5px}.home-shortcut small{display:block;color:var(--muted);line-height:1.45;font-size:12px}.home-section{margin:27px 0}.home-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:14px}.home-section-head h2{font-size:25px;letter-spacing:-.7px;margin:0}.home-section-head p{margin:5px 0 0;color:var(--muted);font-size:14px}.home-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.home-tour-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;min-width:0;box-shadow:var(--shadow)}.home-tour-card h3{font-size:17px;line-height:1.3;margin:12px 0 10px}.home-tour-card .meta{font-size:13px}.home-empty{border:1px dashed #cfd9e3;background:rgba(255,255,255,.72);border-radius:15px;padding:22px;text-align:center;color:var(--muted)}.home-empty strong{display:block;color:var(--ink);margin-bottom:5px}.home-results{display:grid;gap:10px}.home-result{display:grid;grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr);align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px 16px}.home-result-team{font-weight:800;overflow-wrap:anywhere}.home-result-team:last-child{text-align:right}.home-result-score{text-align:center;font-size:21px;font-weight:950;color:#103b68;white-space:nowrap}.home-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.home-feature{padding:18px}.home-feature .feature-icon{font-size:23px;color:#1769e8;background:#edf4ff;width:43px;height:43px;border-radius:12px;display:grid;place-items:center}.home-feature h3{font-size:16px;margin:13px 0 7px}.home-feature p{font-size:13px;color:var(--muted);line-height:1.5;margin:0}.home-bottom-cta{background:#edf4ff;border:1px solid #d9e8ff;border-radius:18px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.home-bottom-cta h2{margin:0 0 6px;font-size:22px}.home-bottom-cta p{margin:0;color:#52657b;line-height:1.5}
@media(max-width:850px){.home-intro{grid-template-columns:1fr}.home-feature-grid{grid-template-columns:1fr 1fr}.home-mini-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.home-value{padding:21px}.home-shortcuts{grid-template-columns:1fr 1fr;gap:8px}.home-shortcut{padding:13px;display:block}.home-shortcut-icon{margin-bottom:9px}.home-mini-grid,.home-feature-grid{grid-template-columns:1fr}.home-section-head{align-items:flex-start}.home-result{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);gap:7px;padding:12px}.home-result-team{font-size:13px}.home-result-score{font-size:18px}.home-bottom-cta{display:block}.home-bottom-cta .btn{margin-top:14px;width:100%}}


/* LINEPORTAL mobile layout fix */
@media (max-width: 700px) {
  html, body { width:100%; max-width:100%; overflow-x:hidden; }
  *, *::before, *::after { box-sizing:border-box; }
  img, video, iframe { max-width:100%; }
  .container { width:calc(100% - 24px) !important; max-width:100%; }
  header { height:auto; min-height:64px; }
  .nav { height:auto; min-height:64px; padding:8px 0; display:flex; flex-wrap:wrap; gap:8px; }
  .logo { font-size:clamp(17px, 5vw, 23px); letter-spacing:-.8px; white-space:nowrap; margin-right:auto; }
  .mobile-menu { flex:0 0 auto; padding:9px 11px; }
  .spacer { display:none; }
  .header-btn { font-size:14px; line-height:1.15; padding:9px 10px; white-space:normal; max-width:48%; }
  #cabinetNav { order:3; }
  #accountBtn { order:4; }
  #adminNav { order:5; }
  .nav > .header-btn.green:last-child { order:6; }
  .navlinks.mobile { top:62px; z-index:40; max-height:70vh; overflow:auto; }
  .page { min-width:0; }
  .hero { grid-template-columns:minmax(0,1fr) !important; gap:16px; padding-top:18px; }
  .hero h1 { font-size:clamp(30px, 8vw, 42px); letter-spacing:-1.2px; overflow-wrap:anywhere; }
  .hero p { font-size:16px; }
  .home-banner-wrap, .home-funnel-banner { width:100%; max-width:100%; margin:10px 0 18px; border-radius:12px; }
  .home-banner-image, .home-funnel-image { width:100%; height:auto; object-fit:contain; }
  .home-intro { grid-template-columns:minmax(0,1fr) !important; gap:14px; }
  .home-value { min-width:0; padding:22px 18px; border-radius:16px; }
  .home-value h2 { font-size:clamp(24px, 6.5vw, 32px); overflow-wrap:anywhere; }
  .home-value p { font-size:16px; line-height:1.5; }
  .home-shortcuts, .stats, .tgrid, .grid, .grid2, .scorers { grid-template-columns:minmax(0,1fr) !important; }
  .card, .panel, .home-shortcut, .home-value, .home-funnel-banner { min-width:0; }
  table { display:block; max-width:100%; overflow-x:auto; }
  input, select, textarea { max-width:100%; }
}
@media (max-width: 420px) {
  .container { width:calc(100% - 18px) !important; }
  .logo { font-size:17px; }
  .header-btn { font-size:12px; padding:8px 7px; }
  .nav { gap:6px; }
  .home-value-actions { display:flex; flex-wrap:wrap; gap:8px; }
  .home-value-actions .btn { max-width:100%; }
}


/* LINEPORTAL mobile dropdown contrast fix */
@media (max-width: 920px) {
  .navlinks.mobile {
    background: #ffffff !important;
    border: 1px solid #b8c8dc !important;
    box-shadow: 0 16px 38px rgba(9, 31, 59, .24) !important;
    opacity: 1 !important;
    z-index: 10050 !important;
  }
  .navlinks.mobile button {
    color: #18324f !important;
    background: transparent !important;
    font-weight: 750 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    min-height: 48px;
    padding: 12px 16px !important;
    border-radius: 10px !important;
  }
  .navlinks.mobile button:hover,
  .navlinks.mobile button.active {
    background: #e5efff !important;
    color: #164b91 !important;
  }
}


/* Extracted static inline styles for CSP migration */
.lp-inline-style-1{display:none}
.lp-inline-style-2{max-width:620px;margin:30px auto}
.lp-inline-style-3{margin-top:0}
.lp-inline-style-4{margin-top:14px}
.lp-inline-style-5{margin-top:15px}
.lp-inline-style-6{margin-bottom:0}
.lp-inline-style-7{margin-top:8px}
.lp-inline-style-8{margin-top:10px}
.lp-inline-style-9{margin-bottom:15px}
.lp-inline-style-10{margin-bottom:12px}
.lp-inline-style-11{margin:0}
.lp-inline-style-12{margin:4px 0 0}
.lp-inline-style-13{justify-content:center}


/* Dynamic-template styles migrated out of style attributes for CSP compatibility. */
.lp-inline-style-1{grid-column:1/-1}
.lp-inline-style-2{text-align:center}
.lp-inline-style-3{background:rgba(255,255,255,.14);color:#fff}
.lp-inline-style-4{text-align:left}
.lp-inline-style-5{margin-left:auto;color:#1769e8;font-size:22px}
.lp-inline-style-6{margin-top:15px}
.lp-inline-style-7{width:100%;height:150px;object-fit:cover}
.lp-inline-style-8{white-space:pre-wrap}
.lp-inline-style-9{margin-top:0}
.lp-inline-style-10{clear:both}
.lp-inline-style-11{margin-bottom:15px}
.lp-inline-style-12{margin:0}
.lp-inline-style-13{color:var(--ink);font-size:19px}
.lp-inline-style-14{border:1px solid var(--line);border-radius:13px}
.lp-inline-style-15{margin-top:20px}
.lp-inline-style-16{margin-top:12px}
.lp-inline-style-17{margin-top:10px}
.lp-inline-style-18{justify-content:center}
.lp-inline-style-19{margin:25px 0}
.lp-inline-style-20{margin-bottom:10px}
.lp-inline-style-21{cursor:pointer}
.lp-inline-style-22{display:flex;align-items:center;gap:10px}
.lp-inline-style-23{width:48px;height:48px;object-fit:cover;border-radius:50%}
.lp-inline-style-24{width:42px;height:42px;object-fit:cover;border-radius:50%}
.lp-inline-style-25{width:180px;height:180px;object-fit:cover;border-radius:50%;border:1px solid var(--line);margin-bottom:15px}
.lp-inline-style-26{width:140px;height:140px;object-fit:cover;border-radius:50%}
.lp-inline-style-27{width:130px;height:130px;object-fit:cover;border-radius:50%;margin-bottom:12px}
.lp-inline-style-28{margin-top:8px}
.lp-inline-style-29{max-width:360px}
.lp-inline-style-30{justify-content:flex-end;margin-top:16px}
.lp-inline-style-31{margin:8px 0 4px}
.lp-inline-style-32{margin-bottom:12px}
.lp-inline-style-33{margin:8px 0}
.lp-inline-style-34{display:block;width:100%;max-height:520px;object-fit:contain;border-radius:14px;margin:12px 0;background:#f1f5f9}
.lp-inline-style-35{margin:10px 0 18px}
.lp-inline-style-36{white-space:pre-wrap;line-height:1.75;font-size:17px}
.lp-inline-style-37{margin-top:24px}
.lp-inline-style-38{max-width:100%;max-height:220px;object-fit:contain;border-radius:10px}
.lp-inline-style-39{max-width:100%;max-height:180px;object-fit:cover;border-radius:10px}


/* Local file-upload previews */
.club-logo-upload-preview{display:block;max-width:180px;max-height:180px;object-fit:contain;margin-top:12px;border-radius:8px;border:1px solid var(--line,#ddd);background:#fff;padding:6px}

/* LINEPORTAL v67 — modern compact UI refresh */
:root{--green:#1769e8;--green2:#1258c8;--green3:#edf4ff;--blue:#1769e8;--ink:#172334;--muted:#718096;--line:#e4eaf1;--bg:#f4f7fb;--card:#fff;--shadow:0 4px 18px rgba(18,38,63,.045);--r:15px}
body{background:#f4f7fb;color:#172334;letter-spacing:-.01em}header{height:64px;background:rgba(255,255,255,.92);border-bottom:1px solid #e7edf4;box-shadow:0 2px 12px rgba(18,38,63,.035)}
.nav{height:64px;gap:8px}.logo{font-size:23px;letter-spacing:-1.2px}.navlinks{gap:4px;margin-left:12px}.navlinks button{padding:8px 10px;border-radius:9px;font-size:13px;transition:background .16s,color .16s}.navlinks button:hover,.navlinks button.active{background:#edf4ff;color:#1769e8}
.header-btn,.mobile-menu{border-radius:9px;padding:8px 11px;font-size:13px;font-weight:700;transition:all .16s}.header-btn.green{background:#1769e8;border-color:#1769e8;box-shadow:0 2px 5px rgba(23,105,232,.16)}
.btn{border-radius:9px;padding:8px 12px;font-size:13px;font-weight:700;line-height:1.25;transition:transform .16s,box-shadow .16s,background .16s,border-color .16s}.btn:hover,.header-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(25,50,80,.09)}.btn.green,.header-btn.green{background:#1769e8;border-color:#1769e8;color:#fff}.btn.green:hover,.header-btn.green:hover{background:#1258c8}.btn.blue{background:#edf4ff;border-color:#dce9ff;color:#1769e8}.btn.red{background:#fff0f0;border-color:#ffdddd;color:#cf3f4b}
button{transition:color .16s,background .16s,border-color .16s,box-shadow .16s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(23,105,232,.24);outline-offset:2px}
.page{padding:26px 0 48px}.page-title h1,.section-head h2{font-size:27px;letter-spacing:-.8px}.page-title p{font-size:13px}.card,.tcard,.home-tour-card,.home-shortcut,.detail-head,.hero-card{border-color:#e6ecf3;box-shadow:0 3px 14px rgba(18,38,63,.035)}.card{border-radius:15px}.pad{padding:17px}.tgrid,.grid{gap:13px}.tcard{padding:16px;border-radius:14px}.tcard h3{font-size:18px;margin:10px 0 8px}.meta{font-size:13px;gap:6px}.tag{padding:4px 8px;font-size:11px;letter-spacing:.01em}
.tabs{background:#eaf0f7;border-radius:10px;padding:3px;gap:3px}.tabs button{padding:7px 12px;border-radius:8px;font-size:13px}.tabs button.active{box-shadow:0 1px 4px rgba(18,38,63,.08)}
.searchbar{gap:8px}.searchbar input,.searchbar select,.field input,.field select,.field textarea{border-radius:9px;border-color:#dfe6ee;padding:9px 11px;font-size:14px}.searchbar input:focus,.searchbar select:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:#8cb7fb;box-shadow:0 0 0 3px rgba(23,105,232,.08);outline:none}
.organizer-layout{grid-template-columns:205px minmax(0,1fr);gap:16px}.oside{border-radius:14px;padding:7px;box-shadow:0 3px 14px rgba(18,38,63,.035)}.oside button{padding:9px 10px;border-radius:8px;font-size:13px}.oside .new{padding:9px 10px;border-radius:9px;font-size:13px}.otour{padding:15px;border-radius:14px;gap:12px;background:#fff;border:1px solid #e5ebf2;box-shadow:0 3px 14px rgba(18,38,63,.035);margin-bottom:10px}.otour h3{font-size:17px;letter-spacing:-.25px;margin:5px 0 7px}.otour .btn,.otour button{font-size:12px;padding:7px 9px;border-radius:8px;font-weight:700}.otour .actions{gap:6px;margin-top:10px}.okpis{gap:10px}.okpis .card,.stat{border-radius:13px;padding:15px}
.admin-table th,.admin-table td{padding:10px 12px}.modalbox{border-radius:17px;padding:21px}.close{border-radius:8px}.toast{border-radius:10px;box-shadow:0 8px 30px rgba(0,0,0,.18)}.home-value{border-radius:18px}.home-shortcut{border-radius:14px;padding:15px}.home-tour-card{border-radius:14px;padding:15px}.home-section-head h2{font-size:23px}.home-feature{border-radius:14px}
.organizer-layout button,.osection button,.admin-panel button{max-width:100%;line-height:1.25}.organizer-layout .btn,.osection .btn{min-height:32px}.link{padding:5px 7px;font-size:12px}.qr{padding:6px 8px;font-size:12px}
@media(max-width:920px){.organizer-layout{grid-template-columns:1fr}.oside{gap:4px}.oside button{padding:8px 10px}}
@media(max-width:620px){.page-title h1,.section-head h2{font-size:24px}.page{padding:20px 0 38px}.otour{grid-template-columns:1fr;padding:13px}.otour .actions{gap:6px}.otour .btn,.otour button{padding:7px 9px}.btn{padding:8px 10px}.header-btn{padding:7px 9px;font-size:12px}.searchbar{flex-wrap:wrap}.searchbar input{min-width:100%}.searchbar .btn{flex:0 0 auto}}

/* LINEPORTAL v68 — contrast and navigation visibility hotfix */
header{background:#fff!important;border-bottom:1px solid #dfe7f0!important;box-shadow:0 3px 14px rgba(16,38,66,.07)!important}
.logo,.nav .logo{color:#10243a!important;opacity:1!important;text-shadow:none!important}
.logo span,.nav .logo span{color:#1769e8!important;opacity:1!important}
.navlinks button,.nav .navlinks button{color:#42546a!important;opacity:1!important;font-weight:650}
.navlinks button:hover,.navlinks button.active,.nav .navlinks button:hover,.nav .navlinks button.active{background:#eaf2ff!important;color:#125cc8!important}
.header-btn,.nav .header-btn{background:#f1f5fa!important;border:1px solid #d6e0eb!important;color:#263b52!important;opacity:1!important;box-shadow:none}
.header-btn.green,.nav .header-btn.green{background:#1769e8!important;border-color:#1769e8!important;color:#fff!important;box-shadow:0 3px 8px rgba(23,105,232,.2)!important}
.mobile-menu,.nav .mobile-menu{background:#f1f5fa!important;border:1px solid #d6e0eb!important;color:#263b52!important}
.navlinks.mobile{background:#fff!important;border:1px solid #dfe7f0!important;box-shadow:0 12px 30px rgba(16,38,66,.14)!important}
.navlinks.mobile button{color:#34485f!important}.navlinks.mobile button.active,.navlinks.mobile button:hover{background:#eaf2ff!important;color:#125cc8!important}

/* LINEPORTAL v70 — modern organizer tournament workspace */
:root{--green:#0866f5;--green2:#0755d4;--green3:#eaf2ff;--blue:#0866f5;--bg:#f4f7fb;--ink:#101828;--muted:#667085;--line:#e5eaf2;--shadow:0 5px 20px rgba(16,24,40,.045)}
.logo{color:#111827}.logo span{color:#0866f5}.navlinks button:hover,.navlinks button.active,.oside button.active,.oside button:hover{background:#eaf2ff;color:#075be0}.header-btn.green,.btn.green,.oside .new{background:#0866f5;border-color:#0866f5}.btn{border-radius:9px;padding:9px 12px;font-size:13px;font-weight:700;transition:background .15s,border-color .15s,transform .15s}.btn:hover{transform:translateY(-1px);border-color:#b8c9e8}.btn.blue{background:#eaf2ff;border-color:#d6e5ff;color:#075be0}.btn.red{background:#fff;border-color:#ffd5d5;color:#e03131}.organizer-layout{grid-template-columns:235px minmax(0,1fr);gap:22px}.oside{padding:9px;border-radius:14px;box-shadow:0 3px 15px rgba(16,24,40,.035)}.oside button{padding:10px 12px;font-size:13px}.oside button.active{box-shadow:inset 3px 0 #0866f5}.mytour-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 22px}.mytour-heading h1{font-size:32px;letter-spacing:-1.3px;margin:0}.mytour-heading p{margin:5px 0 0;color:#667085;font-size:14px}.mytour-tools{margin-bottom:16px}.mytour-search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e3e8f0;border-radius:11px;padding:5px 6px 5px 14px;box-shadow:0 2px 8px rgba(16,24,40,.025)}.mytour-search>span{font-size:23px;color:#667085}.mytour-search input{flex:1;min-width:0;border:0;outline:0;padding:9px 0;background:transparent;font-size:14px}.mytour-filterrow{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.mytour-tabs{display:flex;flex-wrap:wrap;gap:6px}.mytour-tabs button{display:flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:9px;background:#edf1f6;color:#475467;padding:9px 12px;font-size:13px}.mytour-tabs button b{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:99px;background:#fff;color:#344054;font-size:11px}.mytour-tabs button.active{background:#0866f5;color:#fff}.mytour-tabs button.active b{color:#075be0}.mytour-tabs i{width:7px;height:7px;background:#ef4444;border-radius:50%}.mytour-sort{display:flex;gap:7px;align-items:center}.mytour-sort select{border:1px solid #dce3ed;border-radius:9px;background:#fff;padding:10px 11px;font-size:13px;color:#344054;max-width:220px}.view-toggle{height:38px;width:38px;border:1px solid #e2e8f0;background:#fff;border-radius:9px;color:#475467}.view-toggle.active{background:#0866f5;color:#fff;border-color:#0866f5}.mytour-list{display:grid;gap:12px}.mytour-card{display:grid;grid-template-columns:235px minmax(0,1fr);gap:18px;padding:10px;background:#fff;border:1px solid #e7ecf3;border-radius:15px;box-shadow:0 4px 18px rgba(16,24,40,.035);min-width:0}.mytour-art{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:154px;overflow:hidden;border-radius:11px;padding:14px;color:#fff;background:linear-gradient(135deg,#071a39,#0b56bc 65%,#0d1c37)}.mytour-art:before{content:"";position:absolute;inset:0;background-image:linear-gradient(0deg,rgba(2,8,23,.82),rgba(2,8,23,.05)),url('/lineportal-hero.jpg');background-size:cover;background-position:center;opacity:.88}.mytour-art.draft:before{filter:saturate(.65);opacity:.62}.mytour-art.online:before{background-image:linear-gradient(0deg,rgba(2,8,23,.8),rgba(2,8,23,.05)),url('/lineportal-tournament-banner.png')}.mytour-state,.mytour-art-title,.mytour-art-foot{position:relative;z-index:1}.mytour-state{align-self:flex-start;margin-bottom:auto;border-radius:20px;padding:5px 8px;background:#ffc928;color:#18202c;font-size:10px;font-weight:850;text-transform:uppercase}.mytour-state.draft{background:#e5e7eb;color:#344054}.mytour-state.online{background:#00b96b;color:white}.mytour-state.done{background:#dbeafe;color:#075be0}.mytour-art-title{font-size:21px;line-height:1.08;font-weight:900;letter-spacing:-.4px;text-transform:uppercase;max-width:190px;text-shadow:0 2px 8px #000}.mytour-art-foot{font-size:11px;margin-top:7px;opacity:.9}.mytour-content{display:flex;flex-direction:column;justify-content:space-between;gap:15px;min-width:0;padding:5px 3px}.mytour-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.mytour-card-top h2{margin:2px 0 11px;font-size:21px;letter-spacing:-.55px;line-height:1.2}.mytour-meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:#475467;font-size:13px}.mytour-publish{flex-shrink:0;padding:7px 11px;border-radius:20px;background:#e7f8ef;color:#078044;font-size:12px;white-space:nowrap}.mytour-publish.draft{background:#f0f2f5;color:#475467}.mytour-publish.online{background:#e5f9ef;color:#078044}.mytour-publish.done{background:#e8f2ff;color:#075be0}.mytour-card-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.mytour-stats{display:flex;gap:7px}.mytour-stats span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:62px;padding:8px 11px;background:#f2f5f9;border-radius:9px}.mytour-stats b{font-size:17px;color:#101828}.mytour-stats small{font-size:10px;color:#667085;margin-top:2px}.mytour-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:6px}.mytour-actions .btn{white-space:nowrap}.btn-outline-blue{background:#fff;border-color:#0866f5;color:#075be0}.icon-action{font-size:17px;padding:8px 11px}.mytour-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:42px 20px;background:#fff;border:1px dashed #d6deea;border-radius:14px;text-align:center;color:#667085}.mytour-empty strong{color:#101828;font-size:17px}.mytour-empty .btn{margin-top:8px}
@media(max-width:1100px){.mytour-card{grid-template-columns:190px minmax(0,1fr);gap:13px}.mytour-art{min-height:145px}.mytour-card-bottom{align-items:flex-start;flex-direction:column}.mytour-actions{justify-content:flex-start}.mytour-filterrow{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.mytour-heading{align-items:flex-start;flex-direction:column}.mytour-heading h1{font-size:27px}.mytour-card{grid-template-columns:1fr}.mytour-art{min-height:155px}.mytour-card-top{flex-direction:column}.mytour-card-bottom{gap:12px}.mytour-actions{width:100%}.mytour-actions .btn{flex:1}.mytour-search{flex-wrap:wrap}.mytour-search input{min-width:calc(100% - 45px)}.mytour-search .btn{width:100%}.mytour-sort{width:100%}.mytour-sort select{flex:1;max-width:none}.mytour-tabs{width:100%}.mytour-tabs button{flex:1;justify-content:center}}

/* LINEPORTAL v71 — unified modern blue design system across all pages */
:root{--green:#0866f5;--green2:#0755d4;--green3:#eaf2ff;--blue:#0866f5;--red:#ef4444;--redbg:#fff0f0;--ink:#101828;--muted:#667085;--line:#e4eaf2;--bg:#f4f7fb;--card:#fff;--shadow:0 4px 18px rgba(16,24,40,.045);--r:15px}
html{background:var(--bg)}body{background:linear-gradient(180deg,#f8faff 0,#f4f7fb 260px);color:#101828;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
header{background:rgba(255,255,255,.94)!important;border-bottom:1px solid #e4eaf2!important;box-shadow:0 3px 16px rgba(16,24,40,.045)!important;backdrop-filter:blur(16px)}
.logo,.nav .logo{color:#111827!important}.logo span,.nav .logo span{color:#0866f5!important}.navlinks button{color:#475467!important;border-radius:10px!important;font-weight:650!important}.navlinks button:hover,.navlinks button.active{background:#eaf2ff!important;color:#075be0!important}
.header-btn,.mobile-menu{background:#fff!important;border:1px solid #dce4ef!important;color:#344054!important;border-radius:10px!important}.header-btn.green,.btn.green,.oside .new{background:#0866f5!important;border-color:#0866f5!important;color:#fff!important;box-shadow:0 3px 8px rgba(8,102,245,.15)}
.container{width:min(1360px,calc(100% - 36px))}.page{padding:28px 0 52px}.page-title h1,.section-head h2{color:#101828;font-weight:800;letter-spacing:-.8px}.page-title p,.muted{color:#667085}
.card,.stat,.tcard,.home-tour-card,.home-shortcut,.detail-head,.hero-card,.live-card,.scorer,.otour,.admin-panel,.academy-section{border:1px solid #e5eaf2!important;border-radius:15px!important;box-shadow:0 4px 18px rgba(16,24,40,.04)!important}
.btn,button.btn{border-radius:9px;padding:8px 12px;font-size:13px;font-weight:700;line-height:1.3;transition:background .16s,border-color .16s,box-shadow .16s,transform .16s}.btn:hover,button:hover.btn{transform:translateY(-1px)}.btn.green:hover,.header-btn.green:hover{background:#0755d4!important}.btn.blue{background:#eaf2ff!important;border-color:#d6e5ff!important;color:#075be0!important}.btn.red{background:#fff!important;border-color:#ffd4d4!important;color:#d92d20!important}
input,select,textarea{color:#101828}input::placeholder,textarea::placeholder{color:#98a2b3}.searchbar input,.searchbar select,.field input,.field select,.field textarea,.mytour-search{border-color:#dfe6ef!important;border-radius:10px!important;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.02)}.field label{color:#344054}.field input:focus,.field select:focus,.field textarea:focus,.searchbar input:focus{border-color:#8ab7ff!important;box-shadow:0 0 0 3px rgba(8,102,245,.09)!important}
.tabs,.academy-tabs{background:#edf2f8;border-color:#e3e9f1;border-radius:11px}.tabs button,.academy-tabs button{border-radius:8px;color:#475467;font-weight:650}.tabs button.active,.academy-tabs button.active{background:#0866f5!important;color:#fff!important;box-shadow:0 3px 8px rgba(8,102,245,.16)}
.tag,.number,.qr{background:#eaf2ff;color:#075be0;border-color:#d6e5ff}.tag.red{background:#fff0f0;color:#d92d20}.tag.gray{background:#f2f4f7;color:#475467}.tag.yellow{background:#fff5d6;color:#946200}
.tablewrap{border:1px solid #e5eaf2;border-radius:13px;background:#fff}.table th{background:#f8fafc;color:#667085;letter-spacing:.04em}.table th,.table td,.admin-table th,.admin-table td{border-bottom-color:#edf0f5}.table tr:hover td,.admin-table tr:hover td{background:#f8fbff}
.oside{background:#fff!important;border-color:#e5eaf2!important;border-radius:15px!important}.oside button{color:#475467!important}.oside button.active,.oside button:hover{background:#eaf2ff!important;color:#075be0!important}.oside .new{border-radius:9px!important}
.tcard{background:#fff;overflow:hidden}.tcard h3{color:#101828}.card-foot{border-top-color:#edf0f5}.detail-head{background:#fff}.detail-tabs{gap:5px}.modalbox,.modal-card{border:1px solid #e5eaf2;border-radius:18px!important;box-shadow:0 24px 70px rgba(16,24,40,.2)}.close{background:#f2f4f7;color:#344054}.toast{background:#101828;border-radius:11px}
.home-feature-grid,.home-shortcuts,.home-mini-grid{gap:14px}.home-shortcut{background:#fff;transition:transform .16s,box-shadow .16s}.home-shortcut:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(16,24,40,.08)!important}.home-value{border-radius:18px}.home-section-head h2{letter-spacing:-.5px}.hero h1{letter-spacing:-2px}.hero-card{background:linear-gradient(135deg,#071d38,#0b4eaa 75%,#0866f5)!important;color:#fff}.hero-card .muted{color:#dce9ff!important}.scorebox{border-color:rgba(255,255,255,.2)}
.academy-hero{border-radius:18px!important}.academy-team-card,.academy-news,.academy-side .card{border-color:#e5eaf2}.academy-tabs{overflow-x:auto}.academy-breadcrumb button{color:#0866f5}.live-label,.stream{color:#ef4444}.stream{background:#ef4444;color:#fff}.pos,.goals{color:#0866f5}.footer,footer{background:#fff;border-top-color:#e5eaf2;color:#667085}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(8,102,245,.24);outline-offset:2px}
@media(max-width:700px){.container{width:calc(100% - 20px)}.page{padding:20px 0 38px}.page-title h1,.section-head h2{font-size:24px}.btn,button.btn{padding:8px 10px}.nav{gap:6px}.hero h1{letter-spacing:-1.5px}.tablewrap{max-width:100%}}


/* LINEPORTAL v72 — unified component polish across all routes */
:root{--lp-primary:#0866f5;--lp-primary-hover:#0755d4;--lp-primary-soft:#eaf2ff;--lp-text:#101828;--lp-muted:#667085;--lp-border:#e4eaf2;--lp-surface:#fff;--lp-bg:#f4f7fb;--lp-radius:14px;--lp-shadow:0 4px 18px rgba(16,24,40,.045)}
body{color:var(--lp-text);background:var(--lp-bg);-webkit-font-smoothing:antialiased}
header{z-index:100}
.navlinks button{white-space:nowrap;transition:background .16s ease,color .16s ease}
.navlinks button.active{box-shadow:inset 0 -2px 0 var(--lp-primary)}
.logo{white-space:nowrap}
.header-btn,.mobile-menu,.btn,button.btn,.mytour-actions button,.home-banner-cta{transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.header-btn{min-height:36px;padding:8px 12px;font-size:13px}
.header-btn.green,.btn.green,.btn.blue,.home-value-actions .btn.blue{background:var(--lp-primary)!important;border-color:var(--lp-primary)!important;color:#fff!important}
.header-btn.green:hover,.btn.green:hover,.btn.blue:hover,.home-value-actions .btn.blue:hover{background:var(--lp-primary-hover)!important;border-color:var(--lp-primary-hover)!important;box-shadow:0 4px 12px rgba(8,102,245,.18)}
.btn{min-height:34px;padding:8px 12px;border-radius:9px;font-size:13px;line-height:1.25}
.btn:not(.green):not(.blue):not(.red){background:#fff;border-color:#d8e0eb;color:#344054}
.btn:not(.green):not(.blue):not(.red):hover,.header-btn:hover{border-color:#9bbcf7;background:#f8fbff}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.card,.stat,.tcard,.home-tour-card,.home-shortcut,.detail-head,.live-card,.scorer,.otour,.admin-panel,.academy-section,.modalbox,.modal-card{border-radius:var(--lp-radius)}
input,select,textarea{border-radius:9px;min-height:38px}
textarea{min-height:88px}
input:focus,select:focus,textarea:focus{outline:none;border-color:#8ab7ff;box-shadow:0 0 0 3px rgba(8,102,245,.10)}
.tabs button,.academy-tabs button,.detail-tabs button{transition:background .16s ease,color .16s ease}
.tablewrap{overflow-x:auto}
.table{border-collapse:separate;border-spacing:0;min-width:100%}
.table th{font-size:11px;text-transform:uppercase;font-weight:750}
.table td{font-size:13px}
.tag,.badge,.status{font-weight:700}
.page-title,.section-head,.home-section-head{gap:14px}
.page-title h1,.section-head h2,.home-section-head h2{line-height:1.2}
.home-value{box-shadow:0 8px 26px rgba(8,40,90,.10)}
.home-shortcut{min-height:78px}
.home-shortcut:focus-visible,.oside button:focus-visible{outline:3px solid rgba(8,102,245,.25);outline-offset:2px}
.oside button{border-radius:9px;transition:background .16s ease,color .16s ease}
.oside button.active{font-weight:750}
.tcard,.mytour-card{overflow:hidden}
.mytour-card{border:1px solid #e4eaf2!important;border-radius:16px!important;box-shadow:0 4px 18px rgba(16,24,40,.045)!important;background:#fff!important}
.mytour-actions .btn{min-height:34px}
.mytour-search .btn{min-height:38px}
.mytour-tabs button{font-size:13px}
.admin-table{width:100%;border-collapse:separate;border-spacing:0}
.admin-table th{font-size:11px;text-transform:uppercase;color:#667085;background:#f8fafc}
.toast{box-shadow:0 8px 28px rgba(16,24,40,.18)}
footer,.footer{margin-top:32px}
@media(max-width:900px){.navlinks{gap:0}.navlinks button{padding:9px 8px;font-size:13px}.header-btn{padding:8px 9px}}
@media(max-width:700px){header{height:auto;min-height:60px}.nav{min-height:60px;height:auto;flex-wrap:wrap;padding:8px 0}.logo{font-size:21px}.navlinks{order:5;width:100%;overflow-x:auto;margin:0;padding:4px 0}.navlinks button{flex:0 0 auto}.header-btn{font-size:12px;min-height:33px}.page-title{align-items:flex-start;flex-direction:column}.page-title h1{font-size:25px}.section-head{align-items:flex-start;flex-direction:column}.grid,.grid2{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.tablewrap{border-radius:10px}.btn{max-width:100%}}

/* LINEPORTAL v73 — comprehensive mobile responsive repair */
html,body{max-width:100%;overflow-x:clip}
main,.page,.container,.organizer-layout,.osection,.academy-shell,.academy-main,#otournaments,#odashboard{min-width:0;max-width:100%}
.container{width:min(1360px,calc(100% - 36px))}
img,video,canvas,svg{max-width:100%}
@media(max-width:700px){
  header{position:sticky;top:0;height:auto;min-height:0}
  .nav{width:calc(100% - 20px);height:auto;min-height:0;display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px 0}
  .logo{font-size:clamp(17px,5vw,22px);letter-spacing:-.9px;flex:0 1 auto;max-width:calc(100% - 55px)}
  .mobile-menu{display:block;order:2;min-width:42px;min-height:40px;padding:8px 10px}
  .spacer{display:none!important}
  #cabinetNav{order:3;flex:1 1 auto;max-width:none}
  #accountBtn{order:4;flex:0 0 auto}
  #adminNav{order:5}
  .nav>.header-btn.green:last-child{order:6;flex:1 0 100%;width:100%;max-width:none;min-height:42px}
  .header-btn{min-height:38px;font-size:13px;padding:8px 10px;white-space:normal}
  .navlinks.mobile{position:absolute;left:10px;right:10px;top:calc(100% - 1px);width:auto;max-height:70vh;overflow:auto;z-index:10050}
  .container{width:calc(100% - 24px)!important;margin-left:auto;margin-right:auto}
  .page{width:100%;padding:18px 0 32px}
  .page-title,.section-head,.home-section-head{display:flex;align-items:flex-start;flex-direction:column;gap:8px}
  .page-title h1,.section-head h2{font-size:clamp(23px,6vw,29px);line-height:1.16;overflow-wrap:anywhere}
  .page-title p{line-height:1.45;overflow-wrap:anywhere}
  .organizer-layout{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%;}
  .organizer-layout>*{width:100%;min-width:0;max-width:100%}
  .oside{display:flex!important;flex-direction:row!important;position:static!important;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;gap:5px;padding:6px;scrollbar-width:thin;overscroll-behavior-x:contain}
  .oside button{flex:0 0 auto!important;width:auto!important;max-width:none;white-space:nowrap;padding:9px 11px!important;font-size:13px}
  .oside .new{flex:0 0 auto!important;width:auto!important;margin:0!important}
  .osection{width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere}
  .mytour-heading{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px;width:100%;min-width:0}
  .mytour-heading h1{font-size:clamp(25px,7vw,31px)!important;line-height:1.15;overflow-wrap:anywhere}
  .mytour-heading p{font-size:14px;line-height:1.45}
  .mytour-heading>.btn{width:100%;min-height:42px}
  .mytour-tools,.mytour-search{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px;width:100%;min-width:0}
  .mytour-search{padding:10px!important}
  .mytour-search input{width:100%!important;min-width:0!important;max-width:100%;flex:1 1 auto;font-size:16px}
  .mytour-search .btn{width:100%!important;min-height:40px}
  .mytour-filterrow{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px;width:100%;min-width:0}
  .mytour-tabs{display:flex!important;width:100%!important;max-width:100%;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding:4px;scrollbar-width:thin}
  .mytour-tabs button{flex:0 0 auto!important;white-space:nowrap;min-height:38px;padding:8px 10px!important}
  .mytour-sort{display:flex!important;width:100%!important;min-width:0;gap:7px}
  .mytour-sort select{width:100%;min-width:0;max-width:none;flex:1}
  .mytour-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;min-width:0}
  .mytour-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;min-width:0;gap:12px!important;padding:12px!important}
  .mytour-art{width:100%;min-width:0;min-height:0!important;aspect-ratio:16/7;max-height:210px;object-fit:cover}
  .mytour-card-main,.mytour-card-content{width:100%;min-width:0}
  .mytour-card-top{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between;gap:8px}
  .mytour-card-top h2{font-size:18px!important;line-height:1.25;overflow-wrap:anywhere;margin:2px 0 8px!important}
  .mytour-meta{display:flex;flex-wrap:wrap;gap:7px 10px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
  .mytour-publish{flex:0 0 auto;max-width:45%;white-space:normal;text-align:center}
  .mytour-card-bottom{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px;width:100%;min-width:0}
  .mytour-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px}
  .mytour-stats span{min-width:0;padding:8px 4px}
  .mytour-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch!important;width:100%;gap:7px}
  .mytour-actions .btn,.mytour-actions button{min-width:0;width:100%;white-space:normal!important;overflow-wrap:anywhere;padding:9px 7px!important;font-size:12px!important}
  .otour{grid-template-columns:minmax(0,1fr)!important;width:100%;min-width:0}
  .okpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .fields,.grid2,.tgrid,.grid,.stats,.scorers,.home-feature-grid,.home-mini-grid,.academy-team-grid,.academy-news-grid{grid-template-columns:minmax(0,1fr)!important}
  .home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .academy-layout{grid-template-columns:minmax(0,1fr)!important}
  .academy-hero-content{min-width:0}
  .academy-title{overflow-wrap:anywhere}
  .academy-tabs{max-width:100%;overflow-x:auto}
  .tablewrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  table,.table,.admin-table{max-width:100%}
  .modal-backdrop{padding:10px;align-items:flex-end}
  .modal-card,.modalbox{width:100%;max-width:100%;max-height:88dvh;overflow:auto}
  input,select,textarea{font-size:16px;max-width:100%;min-width:0}
  .searchbar{flex-wrap:wrap;width:100%;min-width:0}
  .searchbar input{width:100%;min-width:0;flex:1 1 100%}
  .btn,button.btn{max-width:100%;min-height:38px}
  .foot{width:100%;overflow-wrap:anywhere}
}
@media(max-width:420px){
  .container{width:calc(100% - 18px)!important}
  .nav{width:calc(100% - 16px);gap:5px}
  .logo{font-size:17px;letter-spacing:-.7px}
  .header-btn{font-size:12px;padding:7px 8px}
  #cabinetNav{flex:1 1 42%}
  #accountBtn{flex:0 0 auto}
  .mytour-card-top{flex-direction:column!important}
  .mytour-publish{max-width:100%;align-self:flex-start}
  .mytour-actions{grid-template-columns:minmax(0,1fr)!important}
  .home-shortcuts{grid-template-columns:minmax(0,1fr)!important}
  .academy-hero{padding:17px!important}
  .academy-title{font-size:28px!important}
}



/* LINEPORTAL v74 — unified gradient visual system */
:root{
 --green:#0878f9;--green2:#0759d8;--green3:#e6f2ff;
 --red:#f04452;--redbg:#fff0f1;--ink:#102143;--muted:#62718d;
 --line:rgba(93,126,177,.19);--bg:#eaf3ff;--card:rgba(255,255,255,.88);
 --yellow:#ffb020;--blue:#0878f9;--shadow:0 10px 30px rgba(38,88,165,.10);--r:18px;
}
html{background:#eaf3ff}
body{
 background:linear-gradient(128deg,#dceaff 0%,#f4efff 34%,#e2f6ff 67%,#f5eaff 100%);
 background-attachment:fixed;color:var(--ink)
}
header{
 background:rgba(255,255,255,.78);backdrop-filter:blur(22px);
 border-bottom:1px solid rgba(111,146,198,.22);
 box-shadow:0 5px 24px rgba(54,95,159,.07)
}
.logo{color:#101d3b}.logo span{color:#0878f9}
.navlinks a,.navlinks button{border-radius:12px;transition:background .18s,color .18s}
.navlinks a.active,.navlinks button.active,.navlinks a:hover,.navlinks button:hover{
 background:linear-gradient(120deg,#e4efff,#e8e4ff);color:#075fe6
}
.header-btn,.mobile-menu,.btn,.field input,.field select,.field textarea,
.searchbar input,.mytour-search input,.mytour-sort select{
 border-radius:12px
}
.header-btn.green,.btn.green,.home-banner-cta,.home-funnel-cta{
 background:linear-gradient(115deg,#0866f5,#1597ff);border-color:#0866f5;color:#fff;
 box-shadow:0 5px 15px rgba(8,102,245,.17)
}
.btn.blue{background:linear-gradient(120deg,#eaf3ff,#f0eaff);border-color:#cbdcff;color:#075fe6}
.btn.red{background:#fff0f1;border-color:#ffd0d4;color:#d92e43}
.card,.tcard,.mytour-card,.oside,.mytour-search,.mytour-sort,.tablewrap,
.home-shortcut,.stat,.modalbox,.card.pad{
 background:rgba(255,255,255,.86);border:1px solid rgba(111,146,198,.2);
 box-shadow:var(--shadow);backdrop-filter:blur(12px);border-radius:var(--r)
}
.page-title,.mytour-heading h1{color:#101d3b}
.oside button{color:#52627f;border-radius:11px}
.oside button.active,.oside button:hover{background:linear-gradient(120deg,#e3efff,#eae6ff);color:#075fe6}
.oside .new{background:linear-gradient(115deg,#0866f5,#1597ff);color:#fff}
.home-banner-wrap,.home-funnel-banner{box-shadow:0 18px 42px rgba(27,72,145,.18);border:1px solid rgba(255,255,255,.65)}
.home-section,.home-results,.home-shortcuts{border-radius:20px}
.tcard,.mytour-card{transition:transform .18s ease,box-shadow .18s ease}
.tcard:hover,.mytour-card:hover{transform:translateY(-2px);box-shadow:0 15px 34px rgba(38,88,165,.14)}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(8,120,249,.13);border-color:#79adff!important}
.badge,.status,.pill{border-radius:999px}
.live,.badge.live{background:#f04452;color:#fff}
footer{background:rgba(255,255,255,.45)}
@media(max-width:900px){
 body{background:linear-gradient(150deg,#e1edff 0%,#f2edff 45%,#e1f6ff 100%);background-attachment:fixed}
 .container{width:min(100% - 24px,720px)}
 .organizer-layout{grid-template-columns:minmax(0,1fr);gap:14px}
 .oside{position:static;display:flex;gap:6px;overflow-x:auto;white-space:nowrap;max-width:100%;padding:7px}
 .oside button{display:inline-flex;align-items:center;flex:0 0 auto;width:auto;min-height:42px;padding:10px 12px}
 .mytour-heading{display:flex;flex-direction:column;gap:12px}
 .mytour-tools{display:flex;flex-direction:column;align-items:stretch;gap:10px}
 .mytour-search{width:100%;min-width:0}
 .mytour-filterrow,.mytour-tabs{display:flex;flex-wrap:wrap;gap:8px}
 .mytour-list{grid-template-columns:minmax(0,1fr)}
 .mytour-card{grid-template-columns:minmax(0,1fr);gap:12px}
 .mytour-art{min-height:180px}
 .tgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .container{width:calc(100% - 20px)}
 .page{padding:20px 0 36px}
 .page-title{font-size:clamp(25px,7vw,34px);line-height:1.12}
 .tgrid{grid-template-columns:minmax(0,1fr)}
 .home-shortcuts,.home-feature-grid,.home-mini-grid{grid-template-columns:minmax(0,1fr)}
 .mytour-filterrow button,.mytour-tabs button{flex:1 1 auto;min-width:max-content}
 .mytour-card .actions{display:flex;flex-wrap:wrap;gap:8px}
 .mytour-card .actions .btn{flex:1 1 auto;min-height:40px}
 .fields{grid-template-columns:minmax(0,1fr)}
 .field.full{grid-column:auto}
 .card-foot{flex-wrap:wrap}
 .tablewrap{max-width:100%;overflow-x:auto}
}

/* v75 homepage dashboard layout */
#home>.container{display:grid;grid-template-columns:minmax(180px,220px) minmax(0,1fr) minmax(260px,310px);grid-template-areas:"hero hero results" "promo intro results" "promo upcoming upcoming" "features features features";gap:18px;align-items:start;max-width:1600px}
#home .home-banner-wrap{grid-area:hero;margin:0;min-width:0;box-shadow:0 18px 42px rgba(27,72,145,.2);border:1px solid rgba(255,255,255,.72)}
#home .home-intro{grid-area:intro;display:block;margin:0;min-width:0}
#home .home-value{background:linear-gradient(135deg,#061a32 0%,#0756bc 68%,#08a7ed 100%);color:#fff;border:1px solid rgba(255,255,255,.45);box-shadow:0 16px 36px rgba(28,87,170,.2)}
#home .home-value p{color:#d9e9ff}
#home .home-value .eyebrow{color:#83e7ff}
#home .home-value-actions .btn:not(.blue){background:rgba(255,255,255,.92);color:#17345b}
#home .home-shortcuts{display:none}
#home .home-funnel-banner{grid-area:promo;align-self:stretch;position:sticky;top:92px;margin:0;min-width:0;border-radius:18px;box-shadow:0 16px 36px rgba(27,72,145,.2)}
#home .home-funnel-image{height:100%;min-height:380px;object-fit:cover}
#home #homeUpcomingSection{grid-area:upcoming;min-width:0;margin:0}
#home #homeResultsSection{grid-area:results;min-width:0;margin:0;background:rgba(255,255,255,.48);border:1px solid rgba(255,255,255,.72);border-radius:20px;padding:15px;box-shadow:0 10px 28px rgba(31,69,125,.08)}
#home #homeResultsSection .home-section-head{display:block}
#home #homeResultsSection .home-section-head h2{font-size:20px}
#home #homeResultsSection .home-result{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);gap:7px;padding:11px;background:rgba(255,255,255,.88)}
#home #homeResultsSection .home-result-score{font-size:18px}
#home #homeFeaturesSection{grid-area:features;min-width:0;margin:0}
#home .home-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#home .home-tour-card{background:rgba(255,255,255,.94);border-color:rgba(255,255,255,.9);box-shadow:0 10px 26px rgba(31,69,125,.09)}
#home .home-section-head h2{color:#10254b}
@media(max-width:1050px){#home>.container{grid-template-columns:minmax(0,1fr) minmax(250px, .75fr);grid-template-areas:"hero hero" "intro results" "upcoming upcoming" "promo features"}#home .home-funnel-banner{position:relative;top:auto}#home .home-funnel-image{min-height:300px}#home .home-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#home>.container{display:flex;flex-direction:column;gap:14px}#home .home-banner-wrap,#home .home-intro,#home .home-section,#home .home-funnel-banner{width:100%;max-width:100%;margin:0}#home .home-funnel-banner{order:2;position:relative;top:auto}#home .home-intro{order:3}#home #homeUpcomingSection{order:4}#home #homeResultsSection{order:5}#home #homeFeaturesSection{order:6}#home .home-funnel-image{height:auto;min-height:0;aspect-ratio:2048/682;object-fit:cover}#home .home-mini-grid{grid-template-columns:minmax(0,1fr)}#home #homeResultsSection{padding:12px}#home .home-section-head h2{font-size:21px}#home .home-tour-card{padding:14px}}

/* v76 homepage grid placement correction: use explicit section IDs, not fragile nth-of-type selectors */
#home>.container{width:min(100% - 32px,1600px);margin-inline:auto;grid-template-columns:minmax(190px,220px) minmax(0,1fr) minmax(250px,310px);grid-template-areas:"hero hero results" "promo intro results" "promo upcoming upcoming" "features features features";}
#home .home-banner-wrap{grid-column:1 / 3;min-width:0;width:100%;}
#home .home-banner-image{display:block;width:100%;height:auto;aspect-ratio:2048/682;object-fit:cover;}
#home .home-funnel-banner{grid-column:1;grid-row:2 / 4;overflow:hidden;width:100%;min-height:380px;}
#home .home-funnel-image{display:block;width:100%;height:100%;min-height:380px;object-fit:cover;object-position:center;}
#home #homeUpcomingSection{grid-column:2 / 4;}
#home #homeResultsSection{grid-column:3;grid-row:1 / 3;align-self:start;}
#home #homeFeaturesSection{grid-column:1 / 4;}
@media(max-width:1050px){#home>.container{grid-template-columns:minmax(0,1fr) minmax(240px,.75fr);grid-template-areas:"hero hero" "intro results" "upcoming upcoming" "promo features";}#home .home-banner-wrap{grid-column:1 / -1}#home .home-funnel-banner{grid-column:auto;grid-row:auto;min-height:260px}#home .home-funnel-image{min-height:260px}}
@media(max-width:700px){#home>.container{display:flex;width:calc(100% - 24px);flex-direction:column;gap:14px}#home .home-banner-wrap,#home .home-intro,#home .home-section,#home .home-funnel-banner{width:100%;max-width:100%;min-width:0}#home .home-funnel-banner{order:2;min-height:0}#home .home-funnel-image{height:auto;min-height:0;aspect-ratio:2048/682}#home #homeUpcomingSection{order:4}#home #homeResultsSection{order:5}#home #homeFeaturesSection{order:6}}


/* v77 navigation polish: clear, complete active state; remove partial underline */
.navlinks a,.navlinks button{border:1px solid transparent!important;border-radius:11px!important;box-shadow:none!important;outline:none!important;text-decoration:none!important;transition:background .16s ease,border-color .16s ease,color .16s ease}
.navlinks a.active,.navlinks button.active{background:linear-gradient(135deg,#e8f2ff 0%,#f0edff 100%)!important;border:1px solid #c7dcff!important;color:#075be0!important;box-shadow:inset 3px 0 0 #0866f5!important;font-weight:800!important}
.navlinks a:hover,.navlinks button:hover{background:#f0f6ff!important;border-color:#d8e7ff!important;color:#075be0!important;box-shadow:none!important}
.navlinks a.active:hover,.navlinks button.active:hover{background:linear-gradient(135deg,#e3efff 0%,#eeeaff 100%)!important;border-color:#b6d0ff!important}
@media(max-width:920px){.navlinks.mobile a.active,.navlinks.mobile button.active{border:1px solid #c7dcff!important;border-radius:10px!important;box-shadow:inset 3px 0 0 #0866f5!important}}

/* v78: visible CTA labels on promotional banner buttons */
.home-banner-cta,.home-funnel-cta{display:block;color:#fff!important;text-indent:0!important;overflow:hidden}
.home-banner-cta:hover,.home-funnel-cta:hover{filter:brightness(1.06)}
.home-banner-cta:focus-visible,.home-funnel-cta:focus-visible,.home-funnel-how:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:700px){.home-banner-cta::after{font-size:clamp(8px,2.1vw,12px)}.home-funnel-cta::after,.home-funnel-how::after{font-size:clamp(8px,2vw,12px);white-space:normal;text-align:center}}


/* v79: rebuild homepage grid without clipping wide promotional artwork */
#home>.container{
  width:min(100% - 32px, 1500px);
  margin-inline:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,340px);
  grid-template-areas:
    "hero hero"
    "intro results"
    "upcoming results"
    "promo promo"
    "features features";
  gap:20px;
  align-items:start;
}
#home .home-banner-wrap{grid-area:hero;grid-column:1 / -1;width:100%;min-width:0;margin:0;position:relative;overflow:hidden;border-radius:20px}
#home .home-banner-image{display:block;width:100%;height:auto;aspect-ratio:2048/682;object-fit:cover}
#home .home-intro{grid-area:intro;display:block;min-width:0;margin:0}
#home .home-shortcuts{display:none}
#home #homeResultsSection{grid-area:results;grid-column:2;grid-row:2 / 4;align-self:stretch;min-width:0;width:100%;margin:0;padding:18px;background:rgba(255,255,255,.78);border:1px solid rgba(198,216,245,.9);border-radius:18px;box-shadow:0 10px 28px rgba(31,69,125,.08)}
#home #homeResultsSection .home-section-head{display:block}
#home #homeResultsSection .home-section-head h2{font-size:20px;line-height:1.25}
#home #homeResultsSection .home-result{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);gap:7px;padding:12px;background:#fff}
#home #homeResultsSection .home-result-team{font-size:13px}
#home #homeResultsSection .home-result-score{font-size:18px}
#home #homeUpcomingSection{grid-area:upcoming;grid-column:1;grid-row:3;min-width:0;width:100%;margin:0}
#home #homeUpcomingSection .home-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#home .home-tour-card{min-width:0;background:rgba(255,255,255,.96);border:1px solid #e1eaf7;box-shadow:0 8px 22px rgba(31,69,125,.08)}
#home .home-funnel-banner{grid-area:promo;grid-column:1 / -1;grid-row:auto;position:relative;top:auto;align-self:auto;width:100%;min-width:0;min-height:0;margin:0;overflow:hidden;border-radius:18px}
#home .home-funnel-image{display:block;width:100%;height:auto;min-height:0;aspect-ratio:2098/645;object-fit:contain;object-position:center}
#home #homeFeaturesSection{grid-area:features;grid-column:1 / -1;grid-row:auto;min-width:0;width:100%;margin:0}
#home .home-feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
/* The artwork already contains the CTA labels. Keep overlay buttons clickable but do not draw duplicate text. */
.home-banner-cta,.home-funnel-cta,.home-funnel-how{display:block;position:absolute;z-index:3;border:0;background:transparent!important;box-shadow:none!important;color:transparent!important;text-indent:-9999px;overflow:hidden}
.home-banner-cta::before,.home-banner-cta::after,.home-funnel-cta::before,.home-funnel-cta::after,.home-funnel-how::before,.home-funnel-how::after{content:none!important;display:none!important}
.home-banner-cta:hover,.home-funnel-cta:hover,.home-funnel-how:hover{background:rgba(255,255,255,.08)!important;filter:none}
#home .home-banner-cta{left:3.8%;top:85%;width:15%;height:9.5%}
#home .home-funnel-cta{left:4.5%;top:77%;width:21%;height:15%}
#home .home-funnel-how{left:26%;top:77%;width:16%;height:15%}
@media(max-width:1050px){
 #home>.container{grid-template-columns:minmax(0,1fr) minmax(240px,.7fr);grid-template-areas:"hero hero" "intro results" "upcoming upcoming" "promo promo" "features features";gap:16px}
 #home #homeResultsSection{grid-column:2;grid-row:2}
 #home #homeUpcomingSection{grid-column:1 / -1;grid-row:3}
 #home #homeUpcomingSection .home-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #home .home-funnel-banner{grid-column:1 / -1;grid-row:4}
 #home #homeFeaturesSection{grid-column:1 / -1;grid-row:5}
}
@media(max-width:700px){
 #home>.container{display:flex;width:calc(100% - 24px);max-width:100%;flex-direction:column;gap:14px}
 #home .home-banner-wrap,#home .home-intro,#home .home-section,#home .home-funnel-banner{width:100%;max-width:100%;min-width:0;margin:0}
 #home .home-banner-wrap{order:1}
 #home .home-intro{order:2}
 #home #homeResultsSection{order:3;width:100%;padding:13px}
 #home #homeUpcomingSection{order:4;width:100%}
 #home .home-funnel-banner{order:5;min-height:0}
 #home #homeFeaturesSection{order:6;width:100%}
 #home .home-banner-image{aspect-ratio:2048/682;object-fit:cover}
 #home .home-funnel-image{height:auto;min-height:0;aspect-ratio:2098/645;object-fit:contain}
 #home #homeUpcomingSection .home-mini-grid{grid-template-columns:minmax(0,1fr)}
 #home .home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #home .home-banner-cta{left:3.8%;top:85%;width:18%;height:9.5%}
 #home .home-funnel-cta{left:4%;top:77%;width:23%;height:15%}
 #home .home-funnel-how{left:27%;top:77%;width:17%;height:15%}
}
@media(max-width:420px){#home .home-feature-grid{grid-template-columns:minmax(0,1fr)}#home #homeResultsSection .home-result{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);padding:10px 8px}}

/* v83: public tournament sharing */
.detail-share-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.detail-share-actions .btn{min-height:42px;white-space:nowrap}
#shareLinkFallback{margin:12px 0}
#shareLinkFallback input{width:100%;margin-top:10px;user-select:all}
@media(max-width:640px){.detail-share-actions{align-items:stretch;flex-direction:column}.detail-share-actions .btn{width:100%}}

/* v95 match schedule and live status */
.match-status-live{background:#fee2e2;color:#b91c1c}.match-tournament-name{margin-top:6px}.match-schedule-field{margin-top:12px}

/* v97: match management directly inside My Tournaments */
.mytour-card-managed{grid-template-columns:235px minmax(0,1fr)}.mytour-match-panel{grid-column:1/-1;border-top:1px solid #e7ecf3;padding:14px 4px 4px}.mytour-match-panel-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.mytour-match-panel-head span{font-size:12px;color:#078044}.mytour-match-row{border:1px solid #e3e8f0;border-radius:11px;padding:12px;margin-top:9px;background:#fbfcfe}.mytour-match-teams{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}.mytour-match-teams strong{font-size:19px;min-width:55px;text-align:center}.mytour-match-teams span{font-size:12px;color:#667085}.mytour-match-teams .mytour-live-tag{color:#078044;font-weight:800}.mytour-match-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}.mytour-match-controls label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#667085}.mytour-match-controls input[type=datetime-local]{border:1px solid #dce3ed;border-radius:8px;padding:8px;min-width:185px}.mytour-score-edit{display:flex;align-items:center;gap:6px}.mytour-score-edit input{width:52px;padding:8px;border:1px solid #dce3ed;border-radius:8px;text-align:center}.mytour-match-panel p{color:#667085;font-size:13px}@media(max-width:720px){.mytour-card-managed{grid-template-columns:1fr}.mytour-match-panel{grid-column:1}.mytour-match-controls{align-items:stretch}.mytour-match-controls>.btn{flex:1}.mytour-match-controls label{width:100%}.mytour-match-controls input[type=datetime-local]{width:100%;box-sizing:border-box}.mytour-score-edit{width:100%;flex-wrap:wrap}.mytour-match-teams{gap:7px}}

/* v98: clearer public tournament match center */
.tournament-match-center{margin:18px 0 24px;padding:clamp(16px,2.2vw,28px);background:#f7f9fc;border:1px solid #e4eaf2;border-radius:22px;box-shadow:0 8px 28px rgba(24,45,80,.05)}
.tournament-match-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.tournament-match-heading h2{margin:4px 0 5px;font-size:clamp(22px,2.4vw,30px);letter-spacing:-.03em}.tournament-match-heading p{margin:0}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;color:#2872d8}.match-count-pill{flex-shrink:0;padding:8px 12px;background:#e7efff;color:#1456b8;border-radius:999px;font-weight:750;font-size:13px}
.tournament-live-notice{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:13px 15px;background:#fff0f0;border:1px solid #ffd0d0;border-radius:14px}.tournament-live-notice>div{display:flex;flex-direction:column;gap:2px;flex:1}.tournament-live-notice>div span{font-size:12px;color:#8a4242}.live-pulse{display:inline-block;width:9px;height:9px;flex-shrink:0;border-radius:50%;background:#e33131;box-shadow:0 0 0 4px rgba(227,49,49,.12)}
.tournament-match-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.tournament-match-filters button{border:1px solid #dfe6ef;background:#fff;border-radius:999px;padding:9px 13px;color:#4b5c70;font:inherit;font-size:13px;cursor:pointer}.tournament-match-filters button b{margin-left:4px}.tournament-match-filters button.active{background:#1769dc;border-color:#1769dc;color:#fff;box-shadow:0 4px 12px rgba(23,105,220,.18)}
.tournament-match-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tournament-match-card{min-width:0;padding:15px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;transition:border-color .15s,transform .15s,box-shadow .15s}.tournament-match-card:hover{border-color:#b7cbed;box-shadow:0 8px 20px rgba(22,55,100,.07);transform:translateY(-1px)}.tournament-match-card.is-live{border-color:#f1b7b7;box-shadow:inset 3px 0 #e33131}.tournament-match-card[hidden]{display:none}.tournament-match-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.match-status-chip{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;white-space:nowrap}.match-status-chip.live{color:#b91c1c;background:#fff0f0}.match-status-chip.live .live-pulse{width:7px;height:7px}.match-status-chip.finished{color:#39704d;background:#eaf7ef}.match-status-chip.upcoming{color:#526780;background:#edf2f8}.tournament-match-date{font-size:12px;color:#6d7b8d;text-align:right}.tournament-match-scoreline{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px}.tournament-match-team{display:flex;align-items:center;gap:9px;min-width:0;font-size:14px}.tournament-match-team strong{overflow-wrap:anywhere}.tournament-match-team.away{justify-content:flex-end;text-align:right}.team-initial{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:11px;background:#eef3fb;color:#2e5f9f;font-weight:850}.tournament-score-box{text-align:center;min-width:80px}.tournament-score-box strong{display:block;font-size:26px;letter-spacing:-.04em;color:#18283e;white-space:nowrap}.tournament-score-box small{display:block;color:#8793a3;font-size:10px;margin-top:2px}.tournament-match-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid #edf0f5}.tournament-match-card-bottom>.muted{font-size:11px;min-width:0}.tournament-match-card-bottom .btn{flex-shrink:0;font-size:12px;padding:8px 11px}.empty-match-state{grid-column:1/-1;text-align:center;background:#fff;border:1px dashed #cbd6e5;border-radius:16px;padding:30px 16px}.empty-match-icon{font-size:28px}.empty-match-state h3{margin:8px 0}.empty-match-state p{margin:0;color:#718096}
@media(max-width:760px){.tournament-match-list{grid-template-columns:1fr}.tournament-match-center{padding:14px;border-radius:16px}.tournament-match-heading{align-items:flex-start}.tournament-match-card{padding:13px}.tournament-match-team{font-size:12px;gap:6px}.team-initial{width:28px;height:28px;border-radius:9px}.tournament-score-box{min-width:66px}.tournament-score-box strong{font-size:22px}.tournament-match-card-bottom{align-items:flex-start;flex-direction:column}.tournament-match-card-bottom .btn{width:100%}.tournament-live-notice{flex-wrap:wrap}.tournament-live-notice .btn{margin-left:auto}}


/* v99 — keep each tournament's operational workflow in its own workspace */
.mytour-match-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.mytour-match-panel-head>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mytour-match-panel-head>div:first-child>span{font-size:12px;color:var(--muted,#64748b)}
.mytour-match-panel-actions{display:flex;gap:8px;flex-wrap:wrap}
.mytour-match-empty{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:20px;border:1px dashed #b9c9d9;border-radius:14px;background:#f8fbff}
.mytour-match-empty p{margin:0;max-width:720px;color:#526173;line-height:1.5}
.mytour-match-empty-icon{font-size:26px}
.mytour-stream-edit{display:flex;flex-direction:column;gap:5px;min-width:min(100%,280px);font-size:12px;color:#526173}
.mytour-stream-edit input{width:100%;min-height:38px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033}
.mytour-match-controls{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.mytour-match-controls>label:first-child{min-width:205px}
.mytour-match-controls input{max-width:100%}
.mytour-score-edit{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mytour-score-edit input{width:68px;min-width:55px}
@media(max-width:700px){
 .mytour-match-panel-head{align-items:flex-start}
 .mytour-match-panel-actions{width:100%}
 .mytour-match-panel-actions .btn{flex:1 1 180px}
 .mytour-match-controls{align-items:stretch}
 .mytour-match-controls>label:first-child,.mytour-stream-edit{width:100%;min-width:0}
 .mytour-score-edit{width:100%}
}


/* v101: manual tournament schedule builder */
.lp-manual-fixture-row{border:1px solid var(--border,#dbe3ea);border-radius:14px;padding:14px;margin:12px 0;background:var(--surface,#fff)}
.lp-manual-fixture-number{font-weight:700;margin-bottom:10px;color:var(--text,#18212b)}
.lp-manual-fixture-row .fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lp-manual-fixture-row .field{min-width:0}
.lp-manual-fixture-row .field select,.lp-manual-fixture-row .field input{width:100%;min-width:0}
@media(max-width:600px){.lp-manual-fixture-row .fields{grid-template-columns:1fr}.lp-manual-fixture-row{padding:10px}}

.lp-playoff-plan-input{width:100%;font-family:monospace;white-space:pre;min-height:220px}

/* v104: readable group tables and responsive playoff overview */
.lp-bracket-overview{display:grid;gap:18px;max-height:min(70vh,760px);overflow:auto;padding:2px}
.lp-bracket-group,.lp-bracket-round{min-width:0;background:var(--card,#fff);border:1px solid var(--border,#dce3eb);border-radius:12px;padding:12px}
.lp-bracket-group h3,.lp-bracket-overview>h3{margin:0 0 10px}
.lp-bracket-rounds{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;align-items:start}
.lp-bracket-round h4{margin:0 0 10px}
.lp-bracket-match{display:grid;gap:7px;padding:12px;margin:8px 0;border:1px solid var(--border,#dce3eb);border-radius:10px;background:var(--surface,#f7f9fc)}
.lp-bracket-match>span{font-size:1.15rem;font-weight:700;text-align:center}
.lp-bracket-match>strong{overflow-wrap:anywhere}
.lp-bracket-match>small{color:var(--muted,#657184);line-height:1.4}
.lp-bracket-group li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid var(--border,#e4e9ef)}
.lp-bracket-group li:last-child{border-bottom:0}
.lp-bracket-group li span{overflow-wrap:anywhere}
@media(max-width:600px){.lp-bracket-rounds{grid-template-columns:1fr}.lp-bracket-group,.lp-bracket-round{padding:9px}.lp-bracket-group li{grid-template-columns:minmax(0,1fr) auto;gap:6px}.lp-bracket-group li small{grid-column:2}}

/* Public tournament group tables: keep each group visually distinct and usable on mobile. */
.lp-public-group-table{margin:18px 0 24px;min-width:0}
.lp-public-group-table h3{margin:0 0 10px;font-size:1.05rem;font-weight:750}
.lp-public-group-table .tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border,#e5e7eb);border-radius:12px}
.lp-public-group-table table{min-width:680px;width:100%}
.lp-public-group-table tbody tr:nth-child(-n+2) td:first-child{font-weight:800}
@media(max-width:640px){.lp-public-group-table{margin:14px 0 20px}.lp-public-group-table h3{font-size:1rem}.lp-public-group-table .tablewrap{border-radius:8px}}

/* v113 — compact modern match-centre refresh, inspired by the approved reference */
:root{--lp-primary:#079455;--green:#079455;--green2:#087443;--green3:#e6f7ef}
header{background:rgba(255,255,255,.96);border-bottom:1px solid #e4eaf0;box-shadow:0 2px 10px rgba(15,35,55,.035)}
.nav{height:58px;gap:6px}.logo{font-size:22px;letter-spacing:-1.15px}.navlinks{margin-left:10px;gap:2px}.navlinks button{padding:7px 9px;font-size:12px;border-radius:8px!important}.navlinks button.active{background:#e5f7ee!important;color:#087443!important;box-shadow:inset 0 -2px #079455!important;border-color:transparent!important}.navlinks button:hover{background:#f0faf5!important;color:#087443!important}.header-btn.green,.btn.green,.oside .new{background:#079455!important;border-color:#079455!important;color:#fff!important;box-shadow:0 2px 5px rgba(7,148,85,.12)!important}.header-btn,.btn{border-radius:8px;font-size:12px;padding:7px 10px}.page{padding-top:20px;padding-bottom:32px}.container{max-width:1320px}
.tournament-match-center{margin:12px 0 20px;padding:16px;background:#f6f9fc;border:1px solid #e3eaf2;border-radius:16px;box-shadow:0 4px 16px rgba(24,45,80,.035)}.tournament-match-heading{margin-bottom:12px;gap:12px}.tournament-match-heading h2{font-size:21px;letter-spacing:-.45px;margin:3px 0 4px}.tournament-match-heading p{font-size:12px;margin:0}.eyebrow{font-size:10px;letter-spacing:.08em}.match-count-pill{font-size:11px;padding:6px 9px;border-radius:8px}.tournament-match-filters{gap:5px;margin-bottom:10px}.tournament-match-filters button{padding:6px 9px;font-size:11px;border-radius:8px}.tournament-match-filters button.active{background:#079455;color:#fff;border-color:#079455}.tournament-match-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tournament-match-card{padding:10px 11px;border-radius:11px;box-shadow:0 1px 4px rgba(20,40,70,.025)}.tournament-match-card-top{margin-bottom:9px;gap:6px}.match-status-chip{padding:4px 7px;font-size:10px}.tournament-match-date{font-size:10px}.tournament-match-scoreline{gap:7px}.tournament-match-team{font-size:12px;gap:6px}.team-initial{width:27px;height:27px;border-radius:8px;font-size:11px}.tournament-score-box{min-width:60px}.tournament-score-box strong{font-size:20px;letter-spacing:-.03em}.tournament-score-box small{font-size:9px;margin-top:1px}.tournament-match-card-bottom{margin-top:9px;padding-top:8px;gap:8px}.tournament-match-card-bottom>.muted{font-size:10px}.tournament-match-card-bottom .btn{font-size:10px;padding:6px 8px;border-radius:7px}.tournament-live-notice{padding:10px 12px;margin-bottom:10px;border-radius:10px}.tournament-live-notice strong{font-size:12px}.tournament-live-notice span{font-size:11px}
.oside{border-radius:12px}.oside button{padding:8px 10px;font-size:12px}.organizer-layout{gap:16px}.mytour-heading{margin-bottom:14px}.mytour-heading h1{font-size:26px}.mytour-card{gap:12px;padding:8px;border-radius:12px}.mytour-art{min-height:125px;padding:11px}.mytour-art-title{font-size:17px}.mytour-content{gap:10px}.mytour-card-top h2{font-size:17px;margin-bottom:7px}.mytour-meta{font-size:11px;gap:6px 10px}.mytour-stats span{min-width:52px;padding:6px 8px}.mytour-stats b{font-size:15px}.mytour-actions .btn{font-size:11px;padding:6px 8px}.mytour-match-row{padding:9px;border-radius:9px}.mytour-match-teams{gap:8px;margin-bottom:7px}.mytour-match-teams strong{font-size:15px}.mytour-match-controls{gap:6px}.mytour-match-controls input[type=datetime-local]{padding:6px;min-width:170px}.mytour-match-panel-actions{gap:5px}
@media(max-width:760px){.nav{height:auto;min-height:56px}.tournament-match-center{padding:11px}.tournament-match-heading h2{font-size:18px}.tournament-match-list{grid-template-columns:1fr}.tournament-match-card{padding:10px}.tournament-match-team{font-size:12px}.tournament-match-card-bottom{flex-direction:row;align-items:center}.tournament-match-card-bottom .btn{width:auto}.mytour-card{grid-template-columns:1fr}.mytour-art{min-height:100px}.mytour-heading h1{font-size:23px}}
@media(min-width:761px) and (max-width:1050px){.tournament-match-list{grid-template-columns:1fr}.organizer-layout{grid-template-columns:190px minmax(0,1fr)}}

/* v135: searchable city filter dropdown */
.city-filter{position:relative;min-width:145px;flex:0 0 auto}
.city-filter-trigger{width:100%;border:1px solid var(--line);background:#fff;border-radius:11px;padding:11px 13px;text-align:left;cursor:pointer;color:inherit;white-space:nowrap}
.city-filter-panel{position:absolute;z-index:1000;top:calc(100% + 6px);right:0;width:min(300px,85vw);padding:8px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 12px 32px rgba(0,0,0,.16)}
.city-filter-panel[hidden]{display:none}
.city-filter-panel input{width:100%;box-sizing:border-box;margin:5px 0 8px;border:1px solid var(--line);border-radius:9px;padding:10px 11px}
.city-filter-option{display:block;width:100%;text-align:left;border:0;border-radius:8px;background:transparent;padding:10px 11px;cursor:pointer;color:inherit}
.city-filter-option:hover,.city-filter-option.selected{background:#e8f4ff;color:#0759a8}
.city-filter-options{max-height:230px;overflow:auto}
.city-filter-empty{padding:10px;color:var(--muted,#667085);font-size:13px}
@media(max-width:760px){.city-filter{min-width:135px}.city-filter-panel{right:0}}
