:root{--td-ink:#111a3a;--td-muted:#65708f;--td-blue:#3157ff;--td-line:#e2e7f0;--td-bg:#f7f9fd;--td-card:#fff;--td-sidebar:224px}*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:var(--td-bg);color:var(--td-ink);font-family:"Segoe UI",system-ui,-apple-system,sans-serif}.tdv2-page a{color:inherit}.tdv2-icon{width:22px;height:22px;display:inline-block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8}.tdv2-sidebar{position:fixed;inset:0 auto 0 0;z-index:50;width:var(--td-sidebar);padding:24px 14px 18px;background:#fff;border-right:1px solid var(--td-line);display:flex;flex-direction:column;overflow-y:auto}.tdv2-brand{padding:4px 13px 34px;text-decoration:none;font-size:19px;font-weight:900;letter-spacing:-1.2px}.tdv2-brand span{color:var(--td-blue)}.tdv2-back{display:flex;align-items:center;gap:12px;padding:10px 10px 20px;text-decoration:none;color:#34405f;font-size:.875rem;font-weight:600}.tdv2-back .tdv2-icon{width:19px;height:19px}.tdv2-sidebar nav h2{margin:20px 7px 7px;color:#71809e;font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.05em}.tdv2-sidebar nav a{min-height:46px;padding:0 10px;border-radius:10px;display:flex;align-items:center;gap:13px;text-decoration:none;color:#34405f;font-size:.875rem;font-weight:500}.tdv2-sidebar nav a:hover{background:#f5f7fd}.tdv2-sidebar nav a.active{background:#eef0ff;color:var(--td-blue);font-weight:700}.tdv2-sidebar nav a .tdv2-icon{width:20px;height:20px}.tdv2-shell{min-height:100vh;margin-left:var(--td-sidebar)}.tdv2-topbar{height:72px;padding:0 30px;border-bottom:1px solid var(--td-line);background:rgba(255,255,255,.92);display:flex;align-items:center;gap:20px;position:sticky;top:0;z-index:30;backdrop-filter:blur(12px)}.tdv2-breadcrumb{display:flex;align-items:center;gap:14px;min-width:0;font-size:.8125rem}.tdv2-breadcrumb a{text-decoration:none;color:#52617f}.tdv2-breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tdv2-top-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.tdv2-public-button{height:42px;padding:0 15px;border:1px solid #ccd4e4;border-radius:9px;display:flex;align-items:center;gap:9px;background:#fff;text-decoration:none;font-size:.8125rem;font-weight:600}.tdv2-public-button .tdv2-icon{width:18px;height:18px}.tdv2-square-button,.tdv2-menu-button{border:1px solid #ccd4e4;border-radius:9px;background:#fff;color:#536482;display:grid;place-items:center;cursor:pointer}.tdv2-square-button{width:42px;height:42px}.tdv2-square-button.copied{border-color:#26a269;color:#16824f}.tdv2-notification{width:38px;height:38px;display:grid;place-items:center;color:#536482}.tdv2-profile{position:relative}.tdv2-avatar-button{display:block;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}.tdv2-avatar{display:block;width:40px;height:40px;border-radius:50%;object-fit:cover}.tdv2-profile-menu{display:none;position:absolute;right:0;top:50px;width:220px;padding:7px;border:1px solid var(--td-line);border-radius:12px;background:#fff;box-shadow:0 16px 38px rgba(18,32,72,.17);z-index:70}.tdv2-profile-menu.open{display:block}.tdv2-profile-identity{padding:10px 10px 12px;border-bottom:1px solid var(--td-line);display:flex;flex-direction:column;gap:3px}.tdv2-profile-identity strong{font-size:.8125rem}.tdv2-profile-identity span{overflow:hidden;color:var(--td-muted);font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.tdv2-profile-menu>a{display:block;padding:9px 10px;border-radius:8px;text-decoration:none;font-size:.8125rem}.tdv2-profile-menu>a:hover{background:#f4f6fb}.tdv2-profile-menu>a.danger{color:#cc3348}.tdv2-profile-language{margin-top:5px;padding:10px;border-top:1px solid var(--td-line);border-bottom:1px solid var(--td-line)}.tdv2-profile-language>strong{display:block;margin-bottom:8px;color:var(--td-muted);font-size:.75rem}.tdv2-profile-language>div{display:flex;gap:7px}.tdv2-profile-language a{flex:1;padding:6px;border:1px solid var(--td-line);border-radius:7px;text-align:center;text-decoration:none;font-size:.75rem}.tdv2-profile-language a.active{border-color:#bdc8ff;background:#eef1ff;color:var(--td-blue);font-weight:700}.tdv2-menu-button{display:none;width:42px;height:42px}.tdv2-content{width:min(100%,1370px);margin:0 auto;padding:18px 30px 44px}.tdv2-hero{min-height:210px;padding:24px;border-radius:15px;overflow:hidden;position:relative;display:flex;align-items:flex-end;gap:24px;color:#fff;background-image:linear-gradient(90deg,rgba(4,15,50,.94) 0%,rgba(5,16,58,.76) 47%,rgba(5,15,46,.35) 100%),var(--tdv2-hero);background-position:center;background-size:cover;box-shadow:0 8px 28px rgba(26,42,92,.1)}.tdv2-hero-main{min-width:0;position:relative;z-index:1}.tdv2-status{display:inline-flex;padding:6px 12px;margin-bottom:12px;border-radius:999px;background:#d9f8e4;color:#157946;font-size:.75rem;font-weight:700}.tdv2-status.draft{background:#e7edff;color:#3651ae}.tdv2-status.finished{background:#edf0f5;color:#566079}.tdv2-hero h1{max-width:800px;margin:0 0 15px;font-size:2rem;line-height:2.5rem;letter-spacing:-.025em}.tdv2-hero-meta{display:flex;flex-wrap:wrap;gap:20px}.tdv2-hero-meta span{display:flex;align-items:center;gap:7px;font-size:.875rem}.tdv2-hero-meta .tdv2-icon{width:19px;height:19px}.tdv2-edit-button{margin-left:auto;position:relative;z-index:1;min-height:44px;padding:0 17px;border:1px solid rgba(255,255,255,.9);border-radius:9px;display:flex;align-items:center;gap:9px;text-decoration:none;font-size:.8125rem;font-weight:700;white-space:nowrap}.tdv2-edit-button .tdv2-icon{width:19px;height:19px}.tdv2-featured-match{min-height:122px;margin-top:18px;padding:16px 22px;border:1px solid var(--td-line);border-radius:14px;background:#fff;display:grid;grid-template-columns:minmax(145px,.7fr) minmax(340px,1.5fr) minmax(130px,.55fr);align-items:center;gap:20px;box-shadow:0 4px 18px rgba(29,49,103,.035)}.tdv2-featured-state{display:flex;flex-direction:column;gap:14px}.tdv2-featured-state b{display:flex;align-items:center;gap:9px;color:#20a45a;font-size:.75rem;text-transform:uppercase}.tdv2-featured-state b i{width:10px;height:10px;border-radius:50%;background:#2dbd6e}.tdv2-featured-state span{width:max-content;padding:7px 13px;border:1px solid #d2d9e8;border-radius:999px;background:#fafbfe;color:#53607c;font-size:.75rem}.tdv2-versus{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:17px;text-align:center}.tdv2-versus>div{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}.tdv2-versus img{width:44px;height:44px;border-radius:10px;object-fit:cover}.tdv2-versus strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem}.tdv2-versus>b{color:var(--td-blue)}.tdv2-versus small{grid-column:1/-1;color:var(--td-muted);font-size:.75rem}.tdv2-featured-actions{display:flex;flex-direction:column;gap:8px}.tdv2-featured-actions a{min-height:40px;border:1px solid var(--td-blue);border-radius:8px;display:grid;place-items:center;color:var(--td-blue);text-decoration:none;font-size:.8125rem;font-weight:700}.tdv2-featured-actions a.primary{background:var(--td-blue);color:#fff}.tdv2-no-featured{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--td-muted)}.tdv2-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px 0}.tdv2-stats article{min-height:112px;padding:18px 20px;border:1px solid var(--td-line);border-radius:14px;background:#fff;display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:14px;position:relative}.tdv2-stats article>.tdv2-icon{width:36px;height:36px;color:var(--td-blue)}.tdv2-stats article div{min-width:0;display:flex;flex-direction:column;gap:5px}.tdv2-stats strong{font-size:1.125rem;line-height:1.5rem;overflow:hidden;text-overflow:ellipsis}.tdv2-stats span{color:var(--td-muted);font-size:.75rem}.tdv2-stats article>i{grid-column:1/-1;height:6px;border-radius:999px;background:#e8ecfb;overflow:hidden}.tdv2-stats article>i b{display:block;height:100%;background:var(--td-blue);border-radius:inherit}.tdv2-dashboard-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:18px}.tdv2-panel{min-width:0;padding:18px 20px;border:1px solid var(--td-line);border-radius:14px;background:#fff;box-shadow:0 4px 18px rgba(29,49,103,.03)}.tdv2-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.tdv2-panel h2{margin:0;font-size:1rem;line-height:1.5rem}.tdv2-panel header a{color:var(--td-blue);text-decoration:none;font-size:.75rem}.tdv2-match-row{min-height:61px;border-top:1px solid var(--td-line);display:grid;grid-template-columns:minmax(85px,1fr) auto minmax(85px,1fr) minmax(145px,.9fr) minmax(90px,.55fr);align-items:center;gap:9px;font-size:.75rem}.tdv2-match-row:first-of-type{border-top:0}.tdv2-match-team{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.tdv2-match-team img{width:29px;height:29px;border-radius:7px;object-fit:cover}.tdv2-match-row>b{color:var(--td-blue)}.tdv2-match-row time,.tdv2-match-venue{display:flex;align-items:center;gap:6px;color:#53607c;white-space:nowrap}.tdv2-match-row .tdv2-icon{width:17px;height:17px}.tdv2-empty{padding:28px 0;text-align:center;color:var(--td-muted);font-size:.875rem}.tdv2-progress-head{display:flex;align-items:center;gap:18px;margin:4px 0 16px}.tdv2-progress-head strong{font-size:1.625rem}.tdv2-progress-head i{flex:1;height:6px;border-radius:99px;background:#e5e9f8;overflow:hidden}.tdv2-progress-head i b{display:block;height:100%;border-radius:inherit;background:var(--td-blue)}.tdv2-progress ol{margin:0;padding:0;list-style:none}.tdv2-progress li{min-height:44px;display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:10px;position:relative;font-size:.8125rem}.tdv2-progress li:not(:last-child):before{content:"";position:absolute;left:11px;top:31px;bottom:-13px;width:2px;background:#dce2ef}.tdv2-progress li>i{width:22px;height:22px;border:3px solid #dbe1ed;border-radius:50%;background:#aab5ca;display:grid;place-items:center;color:#fff;font-size:.65rem;font-style:normal;z-index:1}.tdv2-progress li.done>i{border-color:#d9f4e5;background:#35b86f}.tdv2-progress li.active>i{border-color:#dce4ff;background:var(--td-blue)}.tdv2-progress li>b{color:var(--td-muted);font-size:.75rem;font-weight:500}.tdv2-progress li.done>b{color:#20a45a}.tdv2-progress li.active>b{color:var(--td-blue)}.tdv2-details dl{margin:0}.tdv2-details dl>div{display:grid;grid-template-columns:minmax(120px,.55fr) 1fr;gap:20px;padding:10px 0;border-top:1px solid var(--td-line);font-size:.8125rem}.tdv2-details dl>div:first-child{border-top:0}.tdv2-details dt{display:flex;align-items:center;gap:9px;color:var(--td-muted)}.tdv2-details dt .tdv2-icon{width:18px;height:18px}.tdv2-details dd{margin:0;font-weight:600}.tdv2-organizer-list{display:flex;flex-wrap:wrap;gap:13px}.tdv2-organizer-list div{display:flex;align-items:center;gap:10px;font-size:.8125rem;font-weight:600}.tdv2-organizer-list img{width:34px;height:34px;border-radius:50%;object-fit:cover}.tdv2-nav-overlay{display:none}
@media(max-width:1100px){.tdv2-stats{grid-template-columns:repeat(2,1fr)}.tdv2-featured-match{grid-template-columns:145px 1fr}.tdv2-featured-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end}.tdv2-featured-actions a{min-width:145px}.tdv2-match-row{grid-template-columns:minmax(85px,1fr) auto minmax(85px,1fr) minmax(135px,.8fr)}.tdv2-match-venue{display:none}}
@media(max-width:820px){:root{--td-sidebar:0px}.tdv2-sidebar{width:260px;transform:translateX(-100%);transition:transform .22s ease;box-shadow:12px 0 35px rgba(16,26,58,.18)}.tdv2-sidebar.open{transform:translateX(0)}.tdv2-nav-overlay{display:block;position:fixed;inset:0;z-index:45;background:rgba(12,20,49,.38);opacity:0;visibility:hidden;transition:.2s}.tdv2-nav-overlay.open{opacity:1;visibility:visible}.tdv2-nav-open{overflow:hidden}.tdv2-menu-button{display:grid}.tdv2-topbar{padding:0 18px}.tdv2-content{padding:16px 18px 36px}.tdv2-dashboard-grid{grid-template-columns:1fr}.tdv2-public-button{font-size:0;width:42px;padding:0;justify-content:center}.tdv2-public-button .tdv2-icon{width:20px;height:20px}.tdv2-notification{display:none}}
@media(max-width:620px){.tdv2-topbar{height:64px;gap:12px}.tdv2-breadcrumb a,.tdv2-breadcrumb span{display:none}.tdv2-top-actions{gap:7px}.tdv2-avatar{width:36px;height:36px}.tdv2-content{padding:12px}.tdv2-hero{min-height:250px;padding:18px;display:block}.tdv2-hero h1{font-size:1.75rem;line-height:2.125rem}.tdv2-hero-meta{display:grid;gap:9px}.tdv2-edit-button{position:absolute;right:16px;bottom:16px;width:44px;min-height:44px;padding:0;justify-content:center;font-size:0}.tdv2-featured-match{grid-template-columns:1fr;padding:17px;margin-top:12px}.tdv2-featured-state{flex-direction:row;justify-content:space-between;align-items:center}.tdv2-versus{gap:9px}.tdv2-versus>div{flex-direction:column;gap:7px}.tdv2-versus>div:last-of-type{flex-direction:column-reverse}.tdv2-versus img{width:48px;height:48px}.tdv2-featured-actions{grid-column:auto}.tdv2-featured-actions a{width:100%;min-width:0}.tdv2-stats{grid-template-columns:1fr;gap:9px;margin:12px 0}.tdv2-stats article{min-height:82px;padding:13px 16px;grid-template-columns:40px minmax(0,1fr)}.tdv2-stats article>.tdv2-icon{width:30px;height:30px}.tdv2-panel{padding:16px}.tdv2-match-row{padding:13px 0;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:7px}.tdv2-match-row time{grid-column:1/-1;justify-self:center}.tdv2-details dl>div{grid-template-columns:1fr;gap:4px}.tdv2-progress li{grid-template-columns:25px minmax(0,1fr)}.tdv2-progress li>b{grid-column:2}.tdv2-square-button{display:none}}
.tdv2-card-icon{display:block;width:36px;height:36px;background:var(--td-blue);-webkit-mask:var(--tdv2-card-icon) center/contain no-repeat;mask:var(--tdv2-card-icon) center/contain no-repeat}
@media(max-width:620px){.tdv2-card-icon{width:30px;height:30px}}
.tdv2-qr-panel{grid-column:1/-1}.tdv2-qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tdv2-qr-card{min-width:0;padding:16px;border:1px solid var(--td-line);border-radius:12px;background:#fafbfe;display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:18px}.tdv2-qr-code{width:150px;height:150px;padding:8px;border:1px solid var(--td-line);border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}.tdv2-qr-code canvas{display:block!important;width:132px!important;height:132px!important}.tdv2-qr-code img{display:none!important}.tdv2-qr-content{min-width:0}.tdv2-qr-content h3{margin:0 0 12px;font-size:.875rem}.tdv2-qr-link{display:flex;min-width:0}.tdv2-qr-link input{width:100%;min-width:0;height:40px;padding:0 11px;border:1px solid var(--td-line);border-right:0;border-radius:8px 0 0 8px;background:#fff;color:#59647e;font:400 .75rem/1rem inherit;text-overflow:ellipsis}.tdv2-qr-link button{height:40px;padding:0 12px;border:1px solid var(--td-blue);border-radius:0 8px 8px 0;background:#fff;color:var(--td-blue);font:600 .75rem/1rem inherit;cursor:pointer}.tdv2-qr-link button.copied{background:#eaf8f0;border-color:#2ba866;color:#16824f}.tdv2-qr-actions{display:flex;gap:8px;margin-top:10px}.tdv2-qr-actions a,.tdv2-qr-actions button{min-height:38px;padding:0 12px;border:1px solid var(--td-blue);border-radius:8px;background:#fff;color:var(--td-blue);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font:600 .75rem/1rem inherit;cursor:pointer}.tdv2-qr-actions button{background:var(--td-blue);color:#fff}
@media(max-width:1000px){.tdv2-qr-grid{grid-template-columns:1fr}}
@media(max-width:620px){.tdv2-qr-card{grid-template-columns:1fr;justify-items:center;padding:14px}.tdv2-qr-content{width:100%}.tdv2-qr-content h3{text-align:center}.tdv2-qr-link input{font-size:16px}.tdv2-qr-actions{flex-direction:column}.tdv2-qr-actions a,.tdv2-qr-actions button{width:100%;min-height:42px}}
.tdv2-mobile-back,.tdv2-bottom-nav,.tdv2-more-overlay,.tdv2-more-sheet{display:none}
@media(max-width:820px){
  :root{--bottom-nav-height:52px}
  .tdv2-sidebar{display:none!important}
  .tdv2-shell{min-height:100dvh}
  .tdv2-mobile-back{width:42px;height:42px;flex:0 0 42px;border:0;display:grid;place-items:center;color:var(--td-ink);text-decoration:none}
  .tdv2-mobile-back .tdv2-icon{width:26px;height:26px}
  .tdv2-breadcrumb{flex:1;justify-content:center;text-align:center}
  .tdv2-breadcrumb strong{max-width:100%}
  .tdv2-public-button,.tdv2-square-button,.tdv2-notification{display:none}
  .tdv2-content{padding-bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 16px)}
  .tdv2-bottom-nav{position:fixed;z-index:1000;left:0;right:0;bottom:0;min-height:var(--bottom-nav-height);padding:0 8px env(safe-area-inset-bottom);border-top:1px solid #e1e6f0;background:rgba(255,255,255,.97);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));box-shadow:0 -7px 24px rgba(21,35,78,.08);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .tdv2-bottom-nav a,.tdv2-bottom-nav button{height:var(--bottom-nav-height);min-width:0;padding:4px 3px;border:0;border-radius:9px;background:transparent;color:#34405f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;font-family:inherit;font-size:.6875rem;font-weight:500;line-height:1rem;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .tdv2-bottom-nav a.active,.tdv2-bottom-nav button.active{background:#eef0ff;color:var(--td-blue);font-weight:600}
  .tdv2-bottom-nav .tdv2-icon{width:21px;height:21px}
  .tdv2-bottom-nav span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tdv2-more-overlay{position:fixed;z-index:990;inset:0;display:block;background:rgba(11,20,48,.38);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
  .tdv2-more-overlay.open{opacity:1;visibility:visible}
  .tdv2-more-sheet{position:fixed;z-index:1001;left:12px;right:12px;bottom:calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 10px);max-height:calc(100dvh - var(--bottom-nav-height) - env(safe-area-inset-bottom) - 34px);padding:15px;border:1px solid var(--td-line);border-radius:18px;background:#fff;display:block;overflow-y:auto;box-shadow:0 20px 55px rgba(14,26,62,.25);transform:translateY(calc(100% + 90px));visibility:hidden;transition:transform .22s ease,visibility .22s}
  .tdv2-more-sheet.open{transform:translateY(0);visibility:visible}
  .tdv2-more-sheet>header{position:sticky;top:-15px;z-index:1;margin:-15px -15px 10px;padding:15px;border-bottom:1px solid var(--td-line);background:#fff;display:flex;align-items:center;justify-content:space-between}
  .tdv2-more-sheet>header h2{margin:0;font-size:1rem}
  .tdv2-more-sheet>header button{width:36px;height:36px;border:0;border-radius:50%;background:#f0f2f8;color:var(--td-ink);font-size:1.5rem;cursor:pointer}
  .tdv2-more-sheet nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tdv2-more-sheet nav h3{grid-column:1/-1;margin:11px 4px 1px;color:var(--td-muted);font-size:.75rem;line-height:1rem;text-transform:uppercase;letter-spacing:.04em}
  .tdv2-more-sheet nav h3:first-child{margin-top:2px}
  .tdv2-more-sheet nav a{min-height:52px;padding:9px;border-radius:10px;background:#f7f8fc;display:flex;align-items:center;gap:9px;text-decoration:none;font-size:.8125rem;font-weight:600}
  .tdv2-more-sheet nav a .tdv2-icon{width:21px;height:21px;color:var(--td-blue)}
  .tdv2-more-open{overflow:hidden}
  .tdv2-keyboard-open .tdv2-bottom-nav,.tdv2-keyboard-open .tdv2-more-overlay,.tdv2-keyboard-open .tdv2-more-sheet{display:none}
}
@media(max-width:380px){.tdv2-bottom-nav{padding-left:4px;padding-right:4px}.tdv2-bottom-nav a,.tdv2-bottom-nav button{font-size:.6875rem}.tdv2-more-sheet nav{grid-template-columns:1fr}}
.tdv2-match-row{grid-template-columns:minmax(85px,1fr) auto minmax(85px,1fr) minmax(150px,.9fr)}.tdv2-match-meta{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.tdv2-match-meta time,.tdv2-match-meta .tdv2-match-venue{min-width:0;max-width:100%;display:flex;align-items:center;gap:7px;color:#53607c;white-space:nowrap}.tdv2-match-venue>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tdv2-match-meta .tdv2-icon{width:17px;height:17px;flex:0 0 17px}
@media(max-width:620px){.tdv2-match-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(104px,.9fr);gap:5px}.tdv2-match-meta{grid-column:4;align-self:center;gap:6px}.tdv2-match-row time{grid-column:auto;justify-self:auto}.tdv2-match-venue{display:flex}.tdv2-match-meta time,.tdv2-match-meta .tdv2-match-venue{font-size:.6875rem}}
@media(max-width:420px){.tdv2-match-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:7px}.tdv2-match-meta{grid-column:1/-1;flex-direction:row;justify-content:center;gap:8px 14px;padding-top:4px}.tdv2-match-meta time,.tdv2-match-meta .tdv2-match-venue{font-size:.75rem}}

@media (max-width: 620px) {
  .tdv2-upcoming .tdv2-match-team:last-of-type {
    flex-direction: row-reverse;
  }
}

/* Mobile fullscreen control belongs in the header, away from bottom navigation. */
@media (max-width: 820px) {
  .tdv2-page .tdv2-top-actions .btn-fullscreen {
    position: static;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid #ccd4e4;
    border-radius: 9px;
    background: #fff;
    color: #536482;
    box-shadow: none;
    opacity: 1;
  }
  .tdv2-page:is(.ranking-fullscreen, .scorer-fullscreen) .btn-fullscreen {
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
    bottom: auto;
  }
}
.tdv2-team-guidance { margin-top:18px; padding:18px 20px; border:1px solid #c7d2fe; border-left:4px solid var(--td-blue); border-radius:12px; background:#eef2ff; }
.tdv2-team-guidance h2 { margin:0; font-size:1rem; }
.tdv2-team-guidance p { margin:6px 0 14px; color:#475569; font-size:.8125rem; line-height:1.5; }
.tdv2-team-guidance-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.tdv2-page .tdv2-add-teams { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 16px; border-radius:8px; background:var(--td-blue); color:#fff; text-decoration:none; font-size:.8125rem; font-weight:600; }
.tdv2-team-guidance .tdv2-qr-link { flex:1; max-width:560px; }
.tdv2-team-guidance .tdv2-qr-link input { height:44px; }
.tdv2-team-guidance .tdv2-qr-link button { height:44px; white-space:nowrap; }
.tdv2-panel header .tdv2-widget-edit { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background:#eef2ff; flex-shrink:0; }
.tdv2-widget-edit .tdv2-icon { width:18px; height:18px; }
.tdv2-widget-edit:hover { background:#e0e7ff; }
.tdv2-widget-edit:focus-visible,.tdv2-add-teams:focus-visible { outline:2px solid var(--td-blue); outline-offset:3px; }
@media(max-width:620px) {
  .tdv2-team-guidance { padding:14px; margin-top:12px; }
  .tdv2-team-guidance-actions { flex-direction:column; align-items:stretch; }
  .tdv2-team-guidance .tdv2-qr-link { flex:auto; max-width:none; }
  .tdv2-team-guidance .tdv2-qr-link input { font-size:16px; }
}
.tdv2-control-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.tdv2-control-actions button { min-height:40px; padding:0 16px; border:1px solid var(--td-blue); border-radius:8px; background:var(--td-blue); color:#fff; font-family:inherit; font-size:.8125rem; font-weight:600; cursor:pointer; }
.tdv2-control-actions button.secondary { background:#fff; color:#b91c1c; border-color:#fecaca; }
.tdv2-control-actions button:disabled { opacity:.45; cursor:not-allowed; }
.tdv2-control-actions a { padding:10px 4px; font-size:.8125rem; text-underline-offset:3px; }
.tdv2-control-actions button:focus-visible { outline:2px solid var(--td-blue); outline-offset:3px; }
.tdv2-controls [data-control-feedback] { margin-bottom:0; font-weight:600; }
@media(max-width:620px) { .tdv2-control-actions button { flex:1 1 auto; } }
.tdv2-draw-progress { margin-top:14px; max-width:360px; height:5px; border-radius:99px; background:#dbe3ff; overflow:hidden; }
.tdv2-draw-progress[hidden] { display:none; }
.tdv2-draw-progress span { display:block; height:100%; background:var(--td-blue); transform-origin:left; animation:tdv2-draw-fill 2s linear both; }
@keyframes tdv2-draw-fill { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@media(prefers-reduced-motion:reduce) { .tdv2-draw-progress span { animation:none; } }
.tdv2-confirm-dialog { width:min(440px,calc(100% - 32px)); padding:24px; border:1px solid var(--td-line); border-radius:16px; color:var(--td-ink); box-shadow:0 20px 70px #111a3a40; }
.tdv2-confirm-dialog::backdrop { background:rgba(17,26,58,.5); backdrop-filter:blur(3px); }
.tdv2-confirm-dialog h2 { margin:0; font-size:1.125rem; }
.tdv2-confirm-dialog p { margin:12px 0 22px; font-size:.875rem; line-height:1.6; }
.tdv2-confirm-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.tdv2-confirm-actions button { min-height:40px; padding:0 16px; border:1px solid var(--td-line); border-radius:8px; background:#fff; color:var(--td-ink); font:inherit; cursor:pointer; }
.tdv2-confirm-actions button[value="confirm"] { background:var(--td-blue); border-color:var(--td-blue); color:#fff; }
.tdv2-confirm-actions button:focus-visible { outline:2px solid var(--td-blue); outline-offset:3px; }
