/* WPTTA / WPTTC 2026 - Presentation-only responsive design layer.
   Existing PHP workflow, authorization, SQL and match-engine logic are untouched. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');
:root{--tt-navy:#071b3a;--tt-navy-2:#123a76;--tt-blue:#1556bb;--tt-red:#d49c28;--tt-red-dark:#ad7610;--tt-ink:#152744;--tt-muted:#63748b;--tt-line:#dfe7f2;--tt-bg:#f4f7fc;--tt-soft-red:#fff7df;--tt-soft-blue:#edf4ff;--navy:var(--tt-navy);--blue:var(--tt-blue);--cyan:#40a8cf;--ink:var(--tt-ink);--muted:var(--tt-muted);--line:var(--tt-line);--bg:var(--tt-bg);--green:#148277}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}body{background:linear-gradient(180deg,#edf3fb 0,#f8faff 320px,#f4f7fc 100%)!important;color:#162847;font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif!important;font-size:15px;line-height:1.55;overflow-x:hidden}h1,h2,h3,h4,h5,h6,.page-title,.display-4,.metric{font-family:'Outfit','DM Sans',sans-serif;letter-spacing:-.027em;font-weight:750}a{color:#134a9c}a:hover{color:#0a2e68}main{min-width:0}.container,.container-fluid{min-width:0}
.tt-nav,.admin-nav{background:linear-gradient(120deg,#06152f 0%,#082854 63%,#104d95 100%)!important;border-bottom:3px solid #e9b94b!important;box-shadow:0 12px 28px rgba(7,24,53,.18)!important}.tt-nav{padding:11px 0!important}.tt-brand-logo,.admin-logo,.ws-logo,.ops-logo{border-radius:50%!important;background:#fff!important;padding:2px!important;aspect-ratio:1/1;object-fit:contain;box-shadow:0 3px 13px rgba(4,15,38,.2)}.tt-brand-logo{height:52px!important}.tt-brand-name,.admin-brand,.ws-brand,.ops-brand{font-family:'Outfit',system-ui,sans-serif!important;font-weight:850!important;letter-spacing:-.035em!important}.tt-brand-name{font-size:1.08rem!important;white-space:normal}.tt-brand-name small{font-family:'DM Sans',sans-serif;font-size:.62rem!important;letter-spacing:.11em!important;color:#eadcba!important}.tt-nav .nav-link{font-weight:700!important;color:#e7efff!important;padding:10px 13px!important;border-radius:12px!important}.tt-nav .nav-link:hover,.tt-nav .nav-link:focus{background:rgba(255,255,255,.13);color:#fff!important}.navbar-toggler{border-color:rgba(255,255,255,.5)!important;padding:7px 10px!important}
.hero,.apply-hero,.auto-hero,.dash-hero,.extlist-hero,.league-hero,.league-only-hero,.live-hero,.manual-hero,.queue-hero,.reg-hero,.score-hero,.tt-public-hero{background:radial-gradient(circle at 83% 13%,rgba(77,138,242,.37),transparent 30%),linear-gradient(125deg,#061733,#123c7a 67%,#225aa0)!important;border:1px solid rgba(255,255,255,.2)!important;border-bottom:5px solid #e3b246!important;box-shadow:0 20px 52px rgba(12,39,85,.18)!important;border-radius:25px!important}.hero{padding:48px!important}.hero h1,.hero .display-4{font-size:clamp(2.15rem,4vw,4.2rem);line-height:1.04;font-weight:800}.kicker{color:#ffe5a1!important}.step-chip{background:#eef5ff!important;border:1px solid #c8dcf7!important;color:#21477c!important}.status-dot,.live-pulse{background:#e8b44b!important}
.card,.tt-card,.workspace-card,.panel,.stat-card,.metric-card,.ws-next,.next-action{border:1px solid #dce6f3!important;border-radius:20px!important;background:#fff;box-shadow:0 12px 32px rgba(11,40,80,.055)!important}.card:hover,.tt-card:hover{border-color:#c6d9f5!important}.card-header{border-radius:19px 19px 0 0!important;background:linear-gradient(180deg,#fcfdff,#f5f8fd)!important;color:#122b53!important;border-bottom-color:#e4ecf6!important;font-weight:800}.btn{border-radius:11px!important;font-weight:750!important;padding:.6rem 1rem;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}.btn:focus-visible,a:focus-visible{outline:3px solid rgba(63,133,227,.5)!important;outline-offset:2px}.btn:hover{transform:translateY(-1px)}.btn-primary,.btn-info,.btn-success{background:#1754ac!important;border-color:#1754ac!important;color:#fff!important;box-shadow:0 6px 16px rgba(23,84,172,.15)}.btn-primary:hover,.btn-info:hover,.btn-success:hover{background:#0d3f90!important;border-color:#0d3f90!important}.btn-danger{background:#b5464b!important;border-color:#b5464b!important}.btn-warning{background:#e5b44c!important;border-color:#e5b44c!important;color:#09234a!important}.btn-outline-primary{border-color:#1853a2!important;color:#1853a2!important}.btn-outline-primary:hover{background:#1853a2!important;color:#fff!important}.btn-light{background:#fff;border-color:#e7eef8}.form-control,.form-select,.input-group-text,.form-check-input{border-color:#cad9ec!important;border-radius:11px!important}.form-control,.form-select{min-height:44px;background-color:#fff}.form-control:focus,.form-select:focus{box-shadow:0 0 0 .2rem rgba(23,84,172,.12)!important;border-color:#2675cb!important}.form-label,label{font-weight:650}.badge{border-radius:8px!important}.alert{border-radius:16px!important;border-width:1px!important}.table,.table-striped{background:#fff;color:#233653;border-collapse:separate;border-spacing:0}.table>thead th{background:#eaf2ff!important;color:#173c7b!important;border-bottom:1px solid #c9daf2!important;padding:12px 13px!important;font-size:.78rem;letter-spacing:.04em}.table td,.table th{vertical-align:middle;padding:10px 12px;border-bottom-color:#e8eef7}.table tbody tr:hover{background:#f2f7ff!important}.tt-footer{background:linear-gradient(120deg,#071831,#0d3470)!important;border-top:4px solid #e0aa32!important;margin-top:55px}.page-title{color:#10284b}.tt-ready-banner,.qualifier-task{border-color:#d7a23d!important;background:#fff9ea!important}.tt-ready-badge{background:#bf8922!important}.tt-live-shuffle{border-color:#f0b33e!important;background:linear-gradient(130deg,#0a1b36,#194c91)!important}.tt-live-shuffle .tt-shuffle-card{border-bottom-color:#e5b84b!important}.ws-side{background:linear-gradient(180deg,#061733,#123665 78%,#163f7a)!important;border-right-color:#e5b449!important}.ws-side a{border-radius:10px!important;color:#e8f0ff!important}.ws-side a:hover,.ws-side a.active{background:linear-gradient(90deg,#2454a3,#3476d4)!important;color:#fff!important;box-shadow:inset 3px 0 0 #ecc25a}.ws-side .ws-sub{color:#ffdc89}.ws-main{background:transparent!important}.ws-next{border-left:5px solid #dcae50!important}.admin-nav .btn,.tt-nav .btn{padding:.5rem .95rem!important}.pagination .page-link{color:#194e98;border-color:#dce6f3}.pagination .active .page-link{background:#1754ac;border-color:#1754ac}
/* Additional visual hierarchy for the completely redesigned public home page. */
.wptta-home{margin-bottom:2rem}.wptta-hero{min-height:350px;border-radius:28px;background:radial-gradient(circle at 95% 10%,rgba(58,131,229,.65),transparent 38%),linear-gradient(127deg,#071831 0%,#113e7d 70%,#2367a3 100%);color:#fff;padding:clamp(26px,4.2vw,62px);position:relative;overflow:hidden;box-shadow:0 22px 62px rgba(8,35,81,.2)}.wptta-hero:after{content:'';position:absolute;width:320px;height:320px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-100px;top:-110px;box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 125px rgba(255,255,255,.025);pointer-events:none}.wptta-hero-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(215px,.7fr);align-items:center;gap:40px;position:relative;z-index:1}.wptta-eyebrow{font-size:.75rem;letter-spacing:.17em;text-transform:uppercase;color:#f8d482;font-weight:850;margin-bottom:20px}.wptta-hero h1{font-size:clamp(2.15rem,4.8vw,4.7rem);line-height:1.04;margin:0 0 19px;font-weight:850}.wptta-hero p{color:#dce8fa;max-width:600px;font-size:clamp(1rem,1.6vw,1.18rem)}.wptta-gold-line{height:5px;width:92px;background:#e7b34b;border-radius:50px;margin:21px 0}.wptta-hero-badge{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.23);border-radius:23px;padding:22px;text-align:center;backdrop-filter:blur(8px)}.wptta-hero-badge img{width:min(180px,70%);filter:drop-shadow(0 8px 16px rgba(0,0,0,.22))}.wptta-hero-stat{font-size:1.8rem;font-weight:800;font-family:'Outfit',sans-serif}.wptta-hero-stat-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:#d9e6fa}.wptta-section-title{font-size:clamp(1.3rem,2.2vw,1.85rem);font-weight:800;margin:35px 0 18px}.wptta-tile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-top:22px}.wptta-tile{display:flex;flex-direction:column;gap:13px;border:1px solid #dfe7f2;background:#fff;border-radius:21px;padding:23px 19px;text-decoration:none;color:#102b56;box-shadow:0 12px 28px rgba(5,29,62,.05);min-height:160px}.wptta-tile:hover{transform:translateY(-3px);border-color:#accbf3;color:#0e499f;box-shadow:0 15px 30px rgba(7,40,95,.13)}.wptta-tile-icon{width:48px;height:48px;border-radius:14px;background:linear-gradient(130deg,#eaf3ff,#dbeaff);color:#1857b1;display:grid;place-items:center;font-size:1.6rem}.wptta-tile strong{font-size:1.08rem;font-family:'Outfit',sans-serif}.wptta-tile small{color:#647892;line-height:1.5}.wptta-counter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:19px}.wptta-counter-grid>div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.17);padding:10px;border-radius:13px}
/* Wide draw brackets and administrative tables remain inspectable on narrow screens. */
.bracket-scroll,.draw-container,.draw-bracket,.table-responsive,.bracket-container{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.tt-bracket,.bracket-tree{min-width:680px}.btn,.form-control,.form-select{touch-action:manipulation}
@media(max-width:991px){.wptta-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-nav .navbar-collapse{padding:12px 0}.tt-nav .navbar-nav{align-items:stretch!important;gap:5px!important}.tt-nav .navbar-nav .btn{display:block;text-align:center}.ws-main{padding:18px!important}}
@media(max-width:767px){body{font-size:14px}.container{padding-left:15px;padding-right:15px}.wptta-hero{padding:27px 22px;border-radius:21px}.wptta-hero-grid{grid-template-columns:1fr;gap:20px}.wptta-hero-badge{display:none}.wptta-hero h1{font-size:clamp(2rem,9vw,3rem)}.wptta-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.wptta-tile{padding:17px 14px;min-height:145px}.wptta-tile-icon{width:42px;height:42px;font-size:1.35rem}.wptta-tile strong{font-size:.98rem}.hero{padding:25px 20px!important}.hero h1{font-size:2rem!important}.card,.tt-card,.workspace-card{border-radius:15px!important}.ws-side{position:relative!important;min-height:0!important;border-right:0!important;border-bottom:3px solid #e5b449!important}.ws-side nav{display:flex!important;gap:6px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;grid-template-columns:none!important}.ws-side nav a{flex:0 0 auto;padding:10px 12px!important}.ws-brand-lockup{justify-content:flex-start}.ws-main{padding:12px!important}.ws-logo{width:55px!important}.table{display:block;overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;white-space:nowrap}.table td,.table th{padding:9px 10px!important}.form-control,.form-select{font-size:16px!important}.btn{min-height:41px}.tt-brand-name{font-size:.97rem!important}.tt-brand-logo{height:43px!important}.wptta-counter-grid{gap:6px}.wptta-hero-stat{font-size:1.45rem}.wptta-hero-stat-label{font-size:.63rem}}
@media(max-width:390px){.wptta-tile-grid{grid-template-columns:1fr}.wptta-tile{min-height:0}.wptta-hero{padding:24px 17px}.wptta-counter-grid{grid-template-columns:repeat(3,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* ============================================================================
   WPTTC 2026 · EMERALD / CHAMPAGNE · visual refresh v2
   Replaces presentation tokens and common UI surfaces only. No business logic.
   Intentionally SCREEN-ONLY: print styling and PDF layouts remain unchanged.
   ============================================================================ */
@media screen {
  :root {
    --wp-forest:#0b2931;
    --wp-forest-deep:#071d26;
    --wp-forest-mid:#164b53;
    --wp-teal:#08766f;
    --wp-teal-deep:#075e59;
    --wp-gold:#e4b766;
    --wp-ink:#172f39;
    --wp-muted:#60737b;
    --wp-line:#d5e5df;
    --wp-page:#f5f9f6;
    --wp-mist:#e7f5f0;
    --tt-navy:var(--wp-forest);
    --tt-navy-2:var(--wp-forest-mid);
    --tt-blue:var(--wp-teal);
    --tt-red:var(--wp-gold);
    --tt-red-dark:#b7862e;
    --tt-ink:var(--wp-ink);
    --tt-muted:var(--wp-muted);
    --tt-line:var(--wp-line);
    --tt-bg:var(--wp-page);
    --tt-soft-blue:var(--wp-mist);
    --tt-soft-red:#fff7e7;
    --navy:var(--wp-forest);
    --blue:var(--wp-teal);
    --cyan:#4bc6ae;
    --ink:var(--wp-ink);
    --muted:var(--wp-muted);
    --line:var(--wp-line);
    --bg:var(--wp-page);
    --green:#178464;
  }

  body {
    background:radial-gradient(ellipse 90% 360px at 88% -60px,#dceee8 0,transparent 72%),
               linear-gradient(180deg,#f1f7f4 0,#fbfcfa 38%,#f3f8f5 100%)!important;
    color:var(--wp-ink);
  }
  a:not(.btn):not(.nav-link):not(.navbar-brand):not(.wptta-tile){color:var(--wp-teal-deep)}
  a:not(.btn):not(.nav-link):not(.navbar-brand):not(.wptta-tile):hover{color:#044a47}
  .page-title,.wptta-section-title{color:var(--wp-forest-deep)!important}
  .text-primary{color:var(--wp-teal-deep)!important}
  .bg-primary,.text-bg-primary{background-color:var(--wp-teal)!important}
  .border-primary{border-color:var(--wp-teal)!important}

  /* Navigation remains a clear, accessible high-contrast band. */
  .tt-nav,.admin-nav {
    background:linear-gradient(112deg,#061c26 0%,#103640 57%,#166c69 100%)!important;
    border-bottom:3px solid var(--wp-gold)!important;
    box-shadow:0 10px 28px rgba(2,33,38,.14)!important;
  }
  .tt-nav .nav-link {color:#e7f3ee!important;border-radius:10px!important;}
  .tt-nav .nav-link:hover,.tt-nav .nav-link:focus-visible,
  .tt-nav .nav-link.active {background:rgba(220,250,238,.13)!important;color:#fff!important;}
  .tt-brand-name small{color:#f6dba6!important;}
  .tt-brand-logo,.admin-logo,.ws-logo,.ops-logo{
    border:2px solid rgba(248,234,194,.84)!important;
    box-shadow:0 4px 14px rgba(0,0,0,.16)!important;
  }
  .navbar-toggler:focus-visible{box-shadow:0 0 0 3px rgba(248,222,165,.5)!important;}

  /* Page banners and the main home feature: dark teal with a restrained gold accent. */
  .hero,.apply-hero,.auto-hero,.dash-hero,.extlist-hero,.league-hero,
  .league-only-hero,.live-hero,.manual-hero,.queue-hero,.reg-hero,.score-hero,
  .tt-public-hero,.tt-live-shuffle {
    background:radial-gradient(circle at 90% 8%,rgba(44,185,161,.28) 0,transparent 32%),
               linear-gradient(125deg,#09232c 0%,#124651 64%,#177e72 100%)!important;
    border-bottom:4px solid var(--wp-gold)!important;
    box-shadow:0 18px 45px rgba(5,52,55,.15)!important;
  }
  .wptta-hero{
    background:radial-gradient(circle at 95% 3%,rgba(51,198,168,.31),transparent 43%),
               linear-gradient(123deg,#081f29 0%,#104650 61%,#187e72 100%)!important;
    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;
    box-shadow:0 18px 52px rgba(8,47,51,.18)!important;
  }
  .wptta-hero::after{box-shadow:0 0 0 55px rgba(238,255,249,.045),0 0 0 125px rgba(238,255,249,.027);}
  .wptta-eyebrow,.kicker{color:#f5d59b!important;}
  .wptta-gold-line{background:linear-gradient(90deg,#d6a24b,#ffdf9a)!important;width:100px;height:4px;}
  .wptta-hero p{color:#e1f1eb!important;}
  .wptta-hero-badge,.wptta-counter-grid>div {
    border-color:rgba(216,255,242,.18)!important;
    background:rgba(255,255,255,.075)!important;
  }
  .wptta-hero-stat-label{color:#e1f4eb!important;}

  /* Cards, tables and navigation are visually consistent throughout the app. */
  .card,.tt-card,.workspace-card,.panel,.stat-card,.metric-card,.ws-next,.next-action{
    border-color:var(--wp-line)!important;
    border-radius:17px!important;
    box-shadow:0 7px 24px rgba(8,49,50,.055)!important;
  }
  .card:hover,.tt-card:hover{border-color:#aed4c7!important;}
  .card-header{
    background:linear-gradient(180deg,#fff,#f3f9f5)!important;
    border-bottom-color:#dfebe5!important;
    color:#153f42!important;
  }
  .wptta-tile {
    border:1px solid var(--wp-line)!important;
    border-radius:17px!important;
    color:var(--wp-forest)!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(10,45,45,.052)!important;
    transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease!important;
  }
  .wptta-tile:hover,.wptta-tile:focus-visible {
    color:var(--wp-teal-deep)!important;
    border-color:#9fcfbd!important;
    box-shadow:0 13px 26px rgba(9,72,66,.12)!important;
  }
  .wptta-tile-icon{
    color:var(--wp-teal)!important;
    background:linear-gradient(140deg,#e6f7ef,#ccede0)!important;
    border-radius:13px!important;
  }
  .wptta-tile small{color:var(--wp-muted)!important;}
  .table>thead th{
    background:#e8f4ed!important;
    color:#12514c!important;
    border-bottom:1px solid #bcdccc!important;
    letter-spacing:.025em!important;
  }
  .table tbody tr:hover{background:#f0faf4!important;}
  .table td,.table th{border-bottom-color:#e3eee7!important;}
  .step-chip{
    color:#155348!important;
    background:#e9f8f0!important;
    border-color:#b9dbce!important;
  }

  /* Button and form style changes only; action behavior stays identical. */
  .btn{border-radius:10px!important;font-weight:750!important;}
  .btn-primary,.btn-info{
    background:#0b786f!important;border-color:#0b786f!important;color:#fff!important;
    box-shadow:0 5px 13px rgba(7,104,93,.16)!important;
  }
  .btn-primary:hover,.btn-info:hover,.btn-primary:focus,.btn-info:focus{
    background:#075e59!important;border-color:#075e59!important;
  }
  .btn-success{background:#137a57!important;border-color:#137a57!important;color:#fff!important;}
  .btn-success:hover{background:#0c6247!important;border-color:#0c6247!important;}
  .btn-warning{background:#efc476!important;border-color:#efc476!important;color:#142d32!important;}
  .btn-warning:hover{background:#e7b25b!important;border-color:#e7b25b!important;color:#142d32!important;}
  .btn-outline-primary{color:#0a6c65!important;border-color:#0a7169!important;}
  .btn-outline-primary:hover,.btn-outline-primary:focus{color:#fff!important;background:#0a7169!important;border-color:#0a7169!important;}
  .btn-danger{background:#bf4a4a!important;border-color:#bf4a4a!important;}
  .form-control,.form-select,.input-group-text {border-color:#c8ded5!important;border-radius:10px!important;}
  .form-control:focus,.form-select:focus {
    border-color:#198b7a!important;
    box-shadow:0 0 0 .22rem rgba(10,131,113,.13)!important;
  }
  .btn:focus-visible,a:focus-visible,.form-check-input:focus-visible{
    outline:3px solid rgba(34,147,121,.42)!important;
    outline-offset:2px!important;
  }
  .form-check-input:checked{background-color:#0b786f!important;border-color:#0b786f!important;}
  .pagination .page-link{color:#0b6d66;border-color:#d7e7df!important;}
  .pagination .active .page-link{background:#0b786f!important;border-color:#0b786f!important;color:#fff!important;}

  /* Existing workspaces retain their layout; only theme colors change. */
  .ws-side{background:linear-gradient(180deg,#071f28,#113942 78%,#18575b)!important;border-right-color:var(--wp-gold)!important;}
  .ws-side a:hover,.ws-side a.active{
    background:linear-gradient(90deg,#0b5d5a,#13877a)!important;
    box-shadow:inset 3px 0 0 var(--wp-gold)!important;
  }
  .ws-side .ws-sub{color:#f5d89a!important;}
  .ws-next{border-left-color:var(--wp-gold)!important;}
  .tt-ready-banner,.qualifier-task{border-color:#e3bf79!important;background:#fffbf2!important;}
  .tt-ready-badge{background:#a8752e!important;}
  .tt-live-shuffle .tt-shuffle-card{border-bottom-color:var(--wp-gold)!important;}
  .tt-footer{
    background:linear-gradient(115deg,#071f29,#104c4e)!important;
    border-top:3px solid var(--wp-gold)!important;
  }

  /* Keep dense tournament tables usable on phones and touch targets easy to tap. */
  @media(max-width:767px){
    .wptta-hero{border-radius:18px!important;}
    .wptta-tile{border-radius:15px!important;}
    .wptta-tile-icon{border-radius:12px!important;}
    .card,.tt-card,.workspace-card{border-radius:14px!important;}
    .tt-nav .nav-link{padding:11px 13px!important;}
    .btn{min-height:43px;}
  }
}


/* WPTTC v3: public navigation, quick links, and inline-style overrides.
 * Visual-only. The existing PHP, databases, draw rules, access permissions,
 * event links, score handling, PDF output and print CSS are unchanged. */
@media screen {
  .tt-nav.wpttc-public-nav {
    background:linear-gradient(105deg,#071d26 0%,#104c4b 62%,#09796b 100%)!important;
    border-bottom:3px solid #e4b766!important;
    padding:12px 0!important;
  }
  .wpttc-public-nav .container {max-width:1460px!important;}
  .wpttc-public-nav .tt-brand-lockup {max-width:425px;display:flex;align-items:center;gap:10px;min-width:0;}
  .wpttc-public-nav .tt-brand-name {line-height:1.1;font-size:clamp(.91rem,1.2vw,1.09rem)!important;}
  .wpttc-public-nav .tt-brand-name small {display:block;line-height:1.25;font-size:.59rem!important;letter-spacing:.11em!important;margin-top:5px;}
  .wpttc-public-nav .navbar-nav {gap:3px!important;}
  .wpttc-public-nav .nav-link {border:1px solid transparent;border-radius:999px!important;padding:10px 12px!important;color:#e7f6f2!important;font-size:.87rem;white-space:nowrap;}
  .wpttc-public-nav .nav-link:hover,.wpttc-public-nav .nav-link:focus-visible,
  .wpttc-public-nav .nav-link.active {background:rgba(255,255,255,.13)!important;border-color:rgba(255,255,255,.13)!important;color:#fff!important;}
  .wpttc-public-nav .wpttc-nav-action {background:#e7bb73!important;color:#112e33!important;border:1px solid #e7bb73!important;border-radius:999px!important;padding:9px 15px!important;font-weight:850!important;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;}
  .wpttc-public-nav .wpttc-nav-action:hover {background:#f5d496!important;color:#10292c!important;}
  .wpttc-public-nav .wpttc-nav-secondary{border:1px solid rgba(255,255,255,.25)!important;background:transparent!important;color:#fff!important;}
  .wpttc-public-nav .navbar-toggler{border:1px solid rgba(255,255,255,.5)!important;border-radius:12px!important;}
  .wpttc-quicklinks {display:flex;gap:8px;flex-wrap:wrap;margin:0 0 17px;align-items:center;}
  .wpttc-quicklinks a {display:inline-flex;align-items:center;min-height:39px;padding:8px 14px;border:1px solid #c9e2d8;background:#fff;color:#135b53!important;text-decoration:none;border-radius:999px;font-size:.88rem;font-weight:800;box-shadow:0 3px 14px rgba(10,55,48,.045);}
  .wpttc-quicklinks a:hover,.wpttc-quicklinks a:focus {background:#e8f6ee!important;border-color:#87c7b1!important;color:#074d47!important;}
  .wpttc-quicklinks a[aria-current=page] {color:#fff!important;background:#08766f!important;border-color:#08766f!important;}
  /* Old page-specific styles were loaded after the common theme: explicitly
     restore consistent WPTTC colors without modifying application logic. */
  .edb2-picker-hero,.edb-hero,.tt-ed-hero,.draw-centre-hero,
  .extlist-hero,.live-hero,.live-broadcast-head,.reg-hero {
    background:radial-gradient(circle at 93% 10%,rgba(235,195,117,.16),transparent 34%),linear-gradient(120deg,#071e27 0%,#12514e 70%,#0a776b 100%)!important;
    color:#fff!important;border:1px solid rgba(227,184,108,.28)!important;
    border-bottom:4px solid #e4b766!important;
    border-radius:23px!important;box-shadow:0 16px 35px rgba(7,55,50,.15)!important;
  }
  .edb2-picker-hero p,.edb-hero p,.live-broadcast-head .live-meta {color:#e5f4ed!important;}
  .edb2-tournament-card,.edb-panel,.extlist-card,.cardx,.tt-ed-panel,.event-panel,.draw-panel,.draw-card,
  .live-match,.live-bracket-board {border-color:#d3e7de!important;border-radius:17px!important;box-shadow:0 7px 26px rgba(10,55,48,.07)!important;}
  .edb2-tournament-card:hover,.live-match:hover {border-color:#8ccdb7!important;}
  .edb-shell,.edb2-picker {--navy:#0b2931!important;--blue:#08766f!important;--red:#e4b766!important;--ink:#17353a!important;--muted:#59746f!important;--line:#d3e7de!important;}
  .edb-tab.active,.tt-ed-event.active,.event-link.active,
  .edb-round-title,.bracket-round-title {background:#0b554e!important;border-color:#0b554e!important;color:#fff!important;}
  .edb-tab,.tt-ed-event,.event-link {border-color:#bfdccf!important;color:#16564f!important;border-radius:12px!important;}
  .edb-tab:hover,.tt-ed-event:hover,.event-link:hover {color:#075f56!important;border-color:#5fb397!important;background:#e9f6f0!important;}
  .edb-btn.primary,.edb-no,.entrant-no,.bracket-entrant.is-visible .entrant-no {background:#08766f!important;border-color:#08766f!important;color:#fff!important;}
  .edb-entrant,.draw-card,.live-bracket-slot.revealed,.bracket-entrant.is-visible {border-left-color:#08766f!important;}
  .edb-scroll,.live-bracket-scroll {border-color:#d5e6df!important;background:linear-gradient(#fff,#f5faf7)!important;}
  .edb-line,.bracket-line.is-visible {stroke:#46a58e!important;}
  .edb-title,.tournament-title,.live-section-title,.draw-card h4 {color:#17383d!important;}
  .live-score,.live-label {color:#097d70!important;}
  .live-match {color:#17383d!important;}
  .live-pulse-lg {background:#e7b864!important;box-shadow:0 0 0 7px rgba(231,184,100,.18)!important;}
  .table-pill{background:#0a5c55!important;color:#fff!important;}
  .schedule-table thead th {background:#e3f4ec!important;color:#164f49!important;border-bottom:2px solid #add6c4!important;}
  .status-scheduled{background:#e0f4eb!important;color:#0b665a!important;}
  .reg-section,.bank-box {background:#fff!important;border-color:#d5e6df!important;}
  .bank-box {background:#f1faf5!important;}
  .page {--bg:#f5f9f6;--brand:#08766f;--brand-2:#075e59;--accent:#e4b766;--good:#197b60;--text:#18373c;--muted:#637d79;--line:#d6e7de;}
  .page .refresh-btn {background:#08766f!important;}
  .page .refresh-btn:hover {background:#075e59!important;}
  .page .eyebrow {color:#08766f!important;}
}
@media screen and (max-width:1199px) {
  .wpttc-public-nav .tt-brand-lockup {max-width:330px;}
  .wpttc-public-nav .nav-link {padding:9px 10px!important;font-size:.82rem;}
}
@media screen and (max-width:1199px) {
  .wpttc-public-nav .navbar-collapse {padding:13px 0 4px!important;}
  .wpttc-public-nav .navbar-nav {align-items:stretch!important;gap:6px!important;}
  .wpttc-public-nav .nav-link,.wpttc-public-nav .wpttc-nav-action {display:flex;justify-content:flex-start;width:100%;border-radius:12px!important;padding:12px 14px!important;}
  .wpttc-public-nav .tt-brand-lockup {max-width:calc(100% - 70px);}
  .wpttc-public-nav .tt-brand-name {font-size:.9rem!important;}
  .wpttc-quicklinks {gap:7px;}
  .wpttc-quicklinks a {flex:1 1 auto;justify-content:center;min-height:44px;font-size:.84rem;}
}
@media screen and (max-width:575px) {
  .wpttc-quicklinks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .wpttc-quicklinks a {min-width:0;padding:9px;font-size:.79rem;text-align:center;white-space:normal;}
}
