/* TodoPorras global theme system. Loaded last so every product surface shares one palette. */
html[data-tp-theme="light"]{color-scheme:light;--tp-bg:#f7f9fc;--tp-panel:#ffffff;--tp-panel-2:#f3f7fb;--tp-panel-3:#eaf5ef;--tp-line:#dce5ed;--tp-text:#071c38;--tp-muted:#607087;--tp-green:#09ba5d;--tp-green-2:#17cc71;--tp-warn:#a76a05;--tp-danger:#c43d4a;--tp-blue:#176fc1;--tp-shadow:0 18px 54px rgba(8,44,99,.09);--bg:#f7f9fc;--panel:#fff;--panel2:#f3f7fb;--line:#dce5ed;--text:#071c38;--muted:#607087;--brand:#09ba5d;--danger:#c43d4a}
html[data-tp-theme="dark"]{color-scheme:dark;--tp-bg:#07110d;--tp-panel:#0d1813;--tp-panel-2:#111f18;--tp-panel-3:#16271e;--tp-line:#263a30;--tp-text:#f5f8f6;--tp-muted:#8ea298;--tp-green:#62e8a8;--tp-green-2:#39c989;--tp-warn:#f4c15d;--tp-danger:#f08282;--tp-blue:#7fc8ff;--tp-shadow:0 18px 60px rgba(0,0,0,.22);--bg:#06100c;--panel:#0d1a14;--panel2:#11231a;--line:#243a2f;--text:#f4f8f6;--muted:#8fa499;--brand:#5de6a6;--danger:#ffb9b9}
html[data-tp-theme] body{background:var(--tp-bg);color:var(--tp-text);transition:background-color .18s ease,color .18s ease}

/* Theme controls */
.tp-theme-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:14px;padding:5px;border:1px solid var(--tp-line);border-radius:13px;background:var(--tp-panel-2)}.tp-theme-picker button{border:0;border-radius:9px;background:transparent;color:var(--tp-muted);padding:9px 8px;font:inherit;font-size:12px;font-weight:850;cursor:pointer}.tp-theme-picker button.active{background:var(--tp-panel);color:var(--tp-text);box-shadow:0 3px 12px rgba(8,44,99,.08)}.tp-theme-help{margin:9px 0 0!important;color:var(--tp-muted)!important;font-size:11px!important;line-height:1.5}

/* Public landing: dark is the exact counterpart of the approved light identity. */
html[data-tp-theme="dark"].tp-public-home body{background:#07110d;color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-landing{--navy:#62e8a8;--navy2:#f5f8f6;--green:#62e8a8;--green2:#39c989;--ink:#f5f8f6;--muted:#9aada3;--line:#263a30;--soft:#102019;background:radial-gradient(circle at 72% 11%,rgba(98,232,168,.10),transparent 27%),linear-gradient(180deg,#07110d 0,#09150f 54%,#07110d 100%);color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-brand,html[data-tp-theme="dark"] .tp-public-brand-button{color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-nav a{color:#9aada3}html[data-tp-theme="dark"] .tp-public-nav a:hover{color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-login{border-color:#30463a;background:#0d1813;color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-signup,html[data-tp-theme="dark"] .tp-public-cta,html[data-tp-theme="dark"] .tp-public-bottom-cta button{border-color:#62e8a8;background:#62e8a8;color:#052016;box-shadow:0 12px 28px rgba(39,212,137,.14)}
html[data-tp-theme="dark"] .tp-public-cta span,html[data-tp-theme="dark"] .tp-public-bottom-cta button span{color:#063d2a}
html[data-tp-theme="dark"] .tp-public-secondary{border-color:#30463a;background:#0d1813;color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-trust{color:#9aada3}
html[data-tp-theme="dark"] .tp-public-logo-orbit{background:radial-gradient(circle,rgba(13,24,19,.98) 0 54%,rgba(17,31,24,.8) 55% 68%,transparent 69%);border-color:#263a30}
html[data-tp-theme="dark"] .tp-public-logo-orbit .orbit{box-shadow:0 0 0 8px #07110d,0 10px 30px rgba(98,232,168,.14)}
html[data-tp-theme="dark"] .tp-public-floating-card{background:rgba(13,24,19,.95);border-color:#30463a;box-shadow:0 18px 40px rgba(0,0,0,.26)}html[data-tp-theme="dark"] .tp-public-floating-card small,html[data-tp-theme="dark"] .tp-public-floating-card span{color:#8ea298}html[data-tp-theme="dark"] .tp-public-floating-card strong{color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-pools{background:#0d1813;border-color:#263a30;box-shadow:0 24px 70px rgba(0,0,0,.18)}
html[data-tp-theme="dark"] .tp-public-pool-card{background:linear-gradient(180deg,#101e17,#0d1813);border-color:#263a30;box-shadow:0 12px 26px rgba(0,0,0,.14)}html[data-tp-theme="dark"] .tp-public-mini-logo{background:#12241b;border-color:#2a4235}html[data-tp-theme="dark"] .tp-public-pool-main h3,html[data-tp-theme="dark"] .tp-public-pools-empty h3{color:#f5f8f6}html[data-tp-theme="dark"] .tp-public-pool-main p,html[data-tp-theme="dark"] .tp-public-pool-meta,html[data-tp-theme="dark"] .tp-public-pools-empty p{color:#8ea298}html[data-tp-theme="dark"] .tp-public-pool-meta{border-color:#243a2f}html[data-tp-theme="dark"] .tp-live-countdown{color:#62e8a8}html[data-tp-theme="dark"] .tp-public-pool-card>button{border-color:#30463a;background:#11231a;color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-steps article{border-color:#263a30}html[data-tp-theme="dark"] .tp-public-steps article>b{color:#263a30}html[data-tp-theme="dark"] .tp-public-steps h3{color:#f5f8f6}html[data-tp-theme="dark"] .tp-step-icon{background:#11231a}html[data-tp-theme="dark"] .tp-public-footer{border-color:#263a30;color:#8ea298}html[data-tp-theme="dark"] .tp-public-footer>button{color:#f5f8f6}
html[data-tp-theme="dark"] .tp-public-bottom-cta>div{background:#0d1813;border-color:#263a30;box-shadow:0 20px 44px rgba(0,0,0,.2)}
html[data-tp-theme="dark"] .tp-auth-panel{--navy:#f5f8f6;--navy2:#f5f8f6;--green:#62e8a8;--muted:#9aada3;--line:#263a30;background:#0d1813;color:#f5f8f6}html[data-tp-theme="dark"] .tp-auth-input{background:#09150f!important;border-color:#30463a!important;color:#f5f8f6!important}html[data-tp-theme="dark"] .tp-auth-tabs{background:#09150f!important;border-color:#263a30!important}html[data-tp-theme="dark"] .tp-auth-tabs button{color:#8ea298!important}html[data-tp-theme="dark"] .tp-auth-tabs button.active{background:#16271e!important;color:#f5f8f6!important}

/* Authenticated light surface */
html[data-tp-theme="light"] .tp-sidebar{background:rgba(255,255,255,.93);border-color:#dce5ed;box-shadow:8px 0 30px rgba(8,44,99,.025)}
html[data-tp-theme="light"] .tp-mode-switch{background:#f3f7fb;border-color:#dce5ed}html[data-tp-theme="light"] .tp-mode-switch button.active{background:#fff;color:#071c38;box-shadow:0 3px 12px rgba(8,44,99,.08)}
html[data-tp-theme="light"] .tp-nav-item:hover{background:#f3f7fb;color:#071c38}html[data-tp-theme="light"] .tp-nav-item.active{background:#eaf8f0;color:#078b47}
html[data-tp-theme="light"] .tp-focus-card{background:linear-gradient(135deg,#e9f8f0,#f7fbf9);border-color:#b9e4cc;box-shadow:var(--tp-shadow)}html[data-tp-theme="light"] .tp-focus-card.complete{background:linear-gradient(135deg,#fff,#f4f8fb);border-color:#dce5ed}html[data-tp-theme="light"] .tp-focus-card p{color:#607087}
html[data-tp-theme="light"] .tp-metric,html[data-tp-theme="light"] .tp-panel,html[data-tp-theme="light"] .tp-pool-card,html[data-tp-theme="light"] .tp-admin-pool-row,html[data-tp-theme="light"] .tp-profile-card{background:#fff;box-shadow:0 10px 28px rgba(8,44,99,.045)}
html[data-tp-theme="light"] .tp-action-row,html[data-tp-theme="light"] .tp-economic>div,html[data-tp-theme="light"] .tp-profile-stats>div,html[data-tp-theme="light"] .tp-soft-note{background:#f3f7fb}
html[data-tp-theme="light"] .tp-action-row:hover{background:#eaf5ef}html[data-tp-theme="light"] .tp-action-icon{background:#eaf5ef}
html[data-tp-theme="light"] .tp-progress,html[data-tp-theme="light"] .tp-mini-progress{background:#e5ece8}
html[data-tp-theme="light"] .tp-admin-promo{border-color:#b9e4cc;background:linear-gradient(135deg,#eaf8f0,#f7fbf9)}
html[data-tp-theme="light"] .tp-empty-v2{border-color:#cbd9d1;background:#fbfcfd}
html[data-tp-theme="light"] .tp-filter-pills button{background:#fff}html[data-tp-theme="light"] .tp-filter-pills button.active{background:#eaf8f0;border-color:#b9e4cc;color:#078b47}
html[data-tp-theme="light"] .tp-setting-row{border-color:#e6edf2}
html[data-tp-theme="light"] .tp-bottom-nav{background:rgba(255,255,255,.96);border-color:#dce5ed;box-shadow:0 -8px 30px rgba(8,44,99,.05)}

/* Legacy builder/admin/gameplay inherits the same light tokens. */
html[data-tp-theme="light"] .wrap{color:#071c38}html[data-tp-theme="light"] .top{border-color:#dce5ed}html[data-tp-theme="light"] .card,html[data-tp-theme="light"] .fixture,html[data-tp-theme="light"] .tp-panel,html[data-tp-theme="light"] .participant-card,html[data-tp-theme="light"] .prediction-card{background:#fff!important;border-color:#dce5ed!important;color:#071c38!important;box-shadow:0 9px 26px rgba(8,44,99,.04)}
html[data-tp-theme="light"] .input,html[data-tp-theme="light"] .select,html[data-tp-theme="light"] input,html[data-tp-theme="light"] select,html[data-tp-theme="light"] textarea{background:#fff;color:#071c38;border-color:#ced9e4}
html[data-tp-theme="light"] .btn:not(.primary),html[data-tp-theme="light"] .tab{background:#f3f7fb;color:#071c38;border-color:#dce5ed}html[data-tp-theme="light"] .btn.primary{background:#09ba5d;color:#fff;border-color:#09ba5d}
html[data-tp-theme="light"] .muted{color:#607087!important}html[data-tp-theme="light"] table th{color:#607087}html[data-tp-theme="light"] table td,html[data-tp-theme="light"] table th{border-color:#e6edf2}

/* Stadium cards: keep photographic heroes as accents but make the surrounding product light. */
html[data-tp-theme="light"] .tp3-section-head h2{color:#071c38}html[data-tp-theme="light"] .tp3-section-head p{color:#607087}html[data-tp-theme="light"] .tp3-card{background:#fff;border-color:#dce5ed;box-shadow:0 14px 36px rgba(8,44,99,.07)}html[data-tp-theme="light"] .tp3-card:hover{border-color:#a9cdb9}html[data-tp-theme="light"] .tp3-card-facts span{color:#607087}html[data-tp-theme="light"] .tp3-card-facts strong{color:#071c38}html[data-tp-theme="light"] .tp3-card-progress{background:#e4ebe7}html[data-tp-theme="light"] .tp3-card-foot{color:#8a6400}

/* Pool visibility */
.tp-discovery-choice{margin:18px 0 0;padding:18px;border:1px solid var(--tp-line);border-radius:16px;background:var(--tp-panel)}.tp-discovery-choice>span{display:block;color:var(--tp-green);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px}.tp-discovery-choice h3{margin:0 0 4px}.tp-discovery-choice>p{margin:0 0 13px;color:var(--tp-muted);font-size:12px;line-height:1.5}.tp-discovery-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tp-discovery-options button{display:flex;gap:11px;align-items:flex-start;text-align:left;border:1px solid var(--tp-line);border-radius:13px;background:var(--tp-panel-2);color:var(--tp-text);padding:13px;font:inherit;cursor:pointer}.tp-discovery-options button>i{font-style:normal;font-size:20px}.tp-discovery-options button strong,.tp-discovery-options button small{display:block}.tp-discovery-options button small{color:var(--tp-muted);font-size:10px;line-height:1.4;margin-top:2px}.tp-discovery-options button.active{border-color:var(--tp-green);background:color-mix(in srgb,var(--tp-green) 10%,var(--tp-panel))}.tp-discovery-admin-card{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:16px 0;padding:16px 18px;border:1px solid var(--tp-line);border-radius:15px;background:var(--tp-panel)}.tp-discovery-admin-card h3{margin:0 0 4px}.tp-discovery-admin-card p{margin:0;color:var(--tp-muted);font-size:12px}.tp-discovery-admin-card .tp-discovery-options{min-width:280px}.tp-discovery-admin-card .tp-discovery-options button{padding:10px}.tp-discovery-state{font-size:11px;font-weight:900;color:var(--tp-green);margin-top:6px}

@media(max-width:820px){.tp-discovery-options{grid-template-columns:1fr}.tp-discovery-admin-card{align-items:stretch;flex-direction:column}.tp-discovery-admin-card .tp-discovery-options{min-width:0}.tp-theme-picker{grid-template-columns:1fr}}
