/*
Theme Name: Paide Scouting Portal
Theme URI: https://example.com/
Author: Marko + ChatGPT
Description: Private Paide Linnameeskond scouting portal with HTML dashboards and server-based data files.
Version: 3.1.151
License: GNU General Public License v2 or later
Text Domain: paide-scouting-portal
*/

:root {
    --sp-bg: #020712;
    --sp-bg-elevated: #071424;
    --sp-border: #1b2940;
    --sp-text: #f5f7ff;
    --sp-text-muted: #9aa3c2;
    --sp-accent: #00c853;
    --sp-accent-soft: rgba(0, 200, 83, 0.15);
    --sp-paide-blue: #001c4c;
    --sp-paide-red: #e53935;
    --sp-card-radius: 16px;
    --sp-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --sp-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    font-family: var(--sp-font-sans);
    background:
        radial-gradient(circle at top, rgba(0, 0, 0, 0.8), rgba(0,0,0,1)),
        url('assets/img/paide-stripes.png') center/cover fixed no-repeat;
    color: var(--sp-text);
}

/* Global links */
a {
    color: var(--sp-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(90deg, rgba(0, 12, 40, 0.95), rgba(10, 41, 92, 0.96));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
}

/* Nav */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}
.main-nav li a {
    color: var(--sp-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.main-nav li a:hover {
    color: var(--sp-text);
}

/* Front layout */
.scouting-front {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
}

/* Full-viewport dashboards: keep WP header, dashboard fills rest of viewport */
.scout-dashboard-wrap {
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: var(--sp-card-radius);
    box-shadow: var(--sp-shadow-soft);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.25);
}

.scout-dashboard-wrap--viewport {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
}

/* Page templates that should be edge-to-edge */
body.page-template-page-mangijate-andmebaas .scouting-front,
body.page-template-page-ind-analuus .scouting-front,
body.page-template-page-liigade-analuus .scouting-front,
body.page-template-page-klubi-taktika .scouting-front,
body.page-template-page-scouting-calendar .scouting-front,
body.page-template-page-mangijate-vordlus-top .scouting-front,
body.page-template-page-paide-mangude-kokkuvote .scouting-front {
    max-width: none;
    padding: 0;
}
.scouting-front-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 2rem;
    align-items: center;
}
@media (max-width: 880px) {
    .scouting-front-hero {
        grid-template-columns: 1fr;
    }
}
.scouting-front-hero h1 {
    font-size: clamp(2rem, 3vw, 2.7rem);
    margin-bottom: 0.8rem;
}
.scouting-front-hero p {
    color: var(--sp-text-muted);
    max-width: 36rem;
}

/* Paide badge */
.paide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sp-text-muted);
}
.paide-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sp-paide-red), var(--sp-paide-blue));
}

/* Cards */
.scouting-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.3rem;
    margin-top: 1.8rem;
}
.scouting-card {
    background: radial-gradient(circle at top left, rgba(0, 200, 83, 0.12), rgba(5, 13, 32, 0.98));
    border-radius: var(--sp-card-radius);
    border: 1px solid rgba(0, 0, 0, 0.7);
    box-shadow: var(--sp-shadow-soft);
    padding: 1.4rem 1.3rem;
    position: relative;
    overflow: hidden;
}
.scouting-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(229, 57, 53, 0.18), transparent 55%);
    opacity: 0.5;
    pointer-events: none;
}
.scouting-card h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}
.scouting-card p {
    color: var(--sp-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}
.scouting-card a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 200, 83, 0.5);
    background: linear-gradient(90deg, var(--sp-accent-soft), rgba(0, 0, 0, 0.3));
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Pitch preview */
.pitch-preview {
    background: radial-gradient(circle at center, #22753b 0, #105423 40%, #04260f 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.8);
    box-shadow: var(--sp-shadow-soft);
    padding: 1.2rem 1rem 1.4rem;
    position: relative;
    overflow: hidden;
}
.pitch-preview::before,
.pitch-preview::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.pitch-preview::after {
    inset: 34% 38%;
    border-radius: 999px;
}
.pitch-label {
    position: absolute;
    bottom: 0.9rem;
    left: 1.2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Dashboard wrapper */
.scout-dashboard-wrap {
    background: #020712;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.85);
    box-shadow: var(--sp-shadow-soft);
}

/* Login */
.scouting-login-wrap {
    max-width: 420px;
    margin: 3.5rem auto 4rem;
    background: radial-gradient(circle at top, rgba(0, 200, 83, 0.18), rgba(1, 5, 18, 0.98));
    border-radius: 22px;
    padding: 2.2rem 2rem 2.4rem;
    box-shadow: var(--sp-shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.85);
}
.scouting-login-wrap h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}
.scouting-login-wrap p {
    margin-top: 0;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    color: var(--sp-text-muted);
}
.scouting-login-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sp-text-muted);
}
.scouting-login-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: conic-gradient(from 160deg, var(--sp-paide-red), var(--sp-paide-blue), #00c853, var(--sp-paide-red));
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}

/* Login form tweaks */
.scouting-login-wrap form p {
    margin-bottom: 0.75rem;
}
.scouting-login-wrap label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sp-text-muted);
}
.scouting-login-wrap input[type="text"],
.scouting-login-wrap input[type="password"] {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.55);
    color: var(--sp-text);
}
.scouting-login-wrap input[type="submit"] {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, var(--sp-accent), #67ff9f);
    color: #020712;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
}
.scouting-login-wrap input[type="submit"]:hover {
    opacity: 0.94;
}

.scouting-login-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--sp-text-muted);
}

/* Paide header */
.site-header {
    background: linear-gradient(90deg, rgba(0, 12, 40, 0.96), rgba(0, 41, 92, 0.98));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 40;
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.site-logo {
    width: 42px;
    height: auto;
    display: block;
}
.site-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.site-title-main {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-title-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sp-text-muted);
}
.main-nav {
    font-size: 0.85rem;
}
@media (max-width: 720px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.scouting-login-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sp-text-muted);
}
.scouting-login-logo img {
    width: 40px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.65));
}
.scouting-login-logo-text-main {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e5e7eb;
}
.scouting-login-logo-text-sub {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sp-text-muted);
}


/* Scouting Hub */
.scouting-hub-page {
    padding: 2rem 1.2rem 3rem;
}
.scouting-hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 1.2rem;
    align-items: stretch;
    margin-bottom: 1.4rem;
}
.scouting-hub-hero h1 {
    margin: 0.6rem 0 0.8rem;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}
.scouting-hub-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.hub-stat,
.scouting-card-panel,
.hub-league-card,
.hub-player-card,
.hub-calendar-item {
    background: rgba(7, 15, 30, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: var(--sp-shadow-soft);
}
.hub-stat {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hub-stat strong {
    font-size: 1.8rem;
}
.hub-stat span {
    color: var(--sp-text-muted);
}
.scouting-hub-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(0, 200, 83, 0.16);
    border: 1px solid rgba(0, 200, 83, 0.45);
}
.scouting-hub-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.2rem;
}
.scouting-card-panel {
    padding: 1.1rem;
}
.hub-sidebar {
    position: sticky;
    top: calc(var(--sp-header-h, 84px) + 14px);
    height: fit-content;
}
.hub-filter-form,
.hub-entry-form {
    display: grid;
    gap: 0.75rem;
}
.hub-filter-form label span,
.hub-entry-form h2,
.hub-section-head h2 {
    display: block;
    margin-bottom: 0.35rem;
}
.hub-filter-form select,
.hub-entry-form input,
.hub-entry-form select,
.hub-entry-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    padding: 0.75rem 0.85rem;
    box-sizing: border-box;
}
.hub-filter-actions,
.hub-player-links,
.hub-section-head {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}
.hub-filter-actions button,
.hub-entry-form button {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0,200,83,0.95), rgba(0,120,255,0.8));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.hub-filter-actions a,
.hub-player-links a,
.hub-league-head a,
.hub-team-list a {
    color: #9ad7ff;
}
.hub-focus-box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hub-main {
    display: grid;
    gap: 1.2rem;
}
.hub-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.hub-entry-form {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
}
.hub-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.hub-calendar-list,
.hub-league-columns,
.hub-player-grid {
    display: grid;
    gap: 1rem;
}
.hub-calendar-item {
    padding: 1rem;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1rem;
}
.hub-calendar-date span,
.hub-league-head span,
.hub-player-meta,
.hub-team-list span,
.hub-empty,
.hub-section-head p {
    color: var(--sp-text-muted);
}
.hub-notes p {
    margin: 0.4rem 0 0;
}
.hub-league-columns {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.hub-league-card,
.hub-player-card {
    padding: 1rem;
}
.hub-league-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
}
.hub-team-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.65rem;
}
.hub-team-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hub-player-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.hub-player-links {
    justify-content: flex-start;
    margin-top: 1rem;
    flex-wrap: wrap;
}
@media (max-width: 1080px) {
    .scouting-hub-layout,
    .scouting-hub-hero {
        grid-template-columns: 1fr;
    }
    .hub-sidebar {
        position: static;
    }
}
@media (max-width: 760px) {
    .hub-form-grid,
    .hub-two-cols,
    .hub-calendar-item,
    .scouting-hub-summary {
        grid-template-columns: 1fr;
    }
}


/* Scouting Hub v3 */
.hub-app-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    min-height: calc(100vh - 78px);
    background: linear-gradient(180deg, rgba(1,13,42,0) 0%, rgba(1,8,24,.12) 100%);
}
.hub-sidebar-panel {
    background: linear-gradient(180deg, rgba(5, 16, 46, 0.92) 0%, rgba(6, 12, 28, 0.86) 100%);
    color: #eef4ff;
    padding: 1.25rem 1rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    height: calc(100vh - 78px);
    overflow: auto;
    backdrop-filter: blur(18px);
}
.hub-sidebar-panel a { color: #eef4ff; }
.hub-sidebar-top { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1rem; }
.hub-sidebar-top h1 { margin: .25rem 0; font-size: 2rem; color:#fff; }
.hub-sidebar-top p { margin:0; color:rgba(229,238,255,.72); font-size:.95rem; }
.hub-primary-add {
    background: rgba(255,255,255,.12); color:#fff; padding:.75rem 1rem; border-radius:999px; font-weight:700; white-space:nowrap; border:1px solid rgba(255,255,255,.1);
}
.hub-filter-card {
    background: rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    padding:1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    margin-bottom:1rem;
}
.hub-filter-card h2, .hub-section-head h2 { margin:0; font-size:1rem; color:#fff; }
.hub-league-checks { display:grid; gap:.55rem; margin-top:.85rem; }
.hub-check-row { display:flex; align-items:center; gap:.6rem; font-size:.95rem; color:rgba(237,242,255,.9); }
.hub-check-row input { margin:0; accent-color:#8ab4ff; }
.hub-check-color, .hub-team-color, .hub-browser-color { width:10px; height:10px; border-radius:99px; display:inline-block; flex:0 0 auto; }
.hub-filter-actions { display:flex; gap:.6rem; margin-top:1rem; }
.hub-filter-actions button, .hub-filter-actions a, .hub-inline-actions a, .hub-section-head a, .hub-modal-form button {
    border:0; border-radius:12px; padding:.7rem .95rem; font-weight:600; cursor:pointer; background:#111827; color:#fff; text-decoration:none; display:inline-flex; align-items:center; justify-content:center;
}
.hub-filter-actions a, .hub-inline-actions a, .hub-section-head a { background:rgba(255,255,255,.1); color:#f3f6ff; }
.hub-team-list { display:grid; gap:.55rem; margin-top:.9rem; max-height:45vh; overflow:auto; padding-right:.2rem; }
.hub-team-row {
    display:flex; gap:.7rem; align-items:flex-start; padding:.85rem .9rem; border-radius:16px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06); text-decoration:none;
}
.hub-team-row.is-active { background:rgba(110,168,255,.16); border-color:rgba(138,180,255,.35); }
.hub-team-copy { display:flex; flex-direction:column; gap:.2rem; }
.hub-team-copy strong { color:#fff; font-size:.96rem; }
.hub-team-copy small { color:rgba(226,232,240,.72); }
.hub-main-panel { padding:1.25rem; }
.scouting-hub-alert { margin-bottom:1rem; background:#eafaf0; color:#116b32; border:1px solid #c3e8cf; border-radius:14px; padding:.85rem 1rem; }
.hub-calendar-shell {
    background:rgba(255,255,255,.97); border-radius:30px; border:1px solid rgba(255,255,255,.5); box-shadow:0 18px 50px rgba(0,0,0,.12); overflow:hidden;
}
.hub-calendar-toolbar {
    display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.25rem 1.4rem; background:#fbfbfc; border-bottom:1px solid rgba(0,0,0,.06);
}
.hub-calendar-toolbar h2 { color:#111827; margin:0; font-size:2rem; }
.hub-calendar-toolbar p { color:#6b7280; margin:.2rem 0 0; }
.hub-toolbar-right { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.hub-view-switch, .hub-date-nav { background:#f3f4f6; border-radius:999px; padding:.2rem; display:flex; gap:.2rem; }
.hub-view-switch a, .hub-date-nav a { padding:.55rem .9rem; border-radius:999px; color:#374151; text-decoration:none; }
.hub-view-switch a.is-active, .hub-date-nav a.today { background:#fff; color:#111827; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.hub-month-weekdays, .hub-month-grid { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); }
.hub-month-weekdays div { padding:.9rem 1rem; color:#475467; font-weight:600; border-bottom:1px solid rgba(0,0,0,.06); }
.hub-month-cell { min-height:135px; border-right:1px solid rgba(0,0,0,.06); border-bottom:1px solid rgba(0,0,0,.06); padding:.8rem; background:#fff; }
.hub-month-cell:nth-child(7n) { border-right:0; }
.hub-month-cell.is-muted { background:#fafafa; color:#9ca3af; }
.hub-month-cell.is-today { background:#f8fbff; }
.hub-cell-top { display:flex; justify-content:space-between; align-items:center; font-weight:700; color:#1f2937; margin-bottom:.6rem; }
.hub-cell-add { color:#9ca3af; font-size:1.1rem; }
.hub-cell-events { display:grid; gap:.35rem; }
.hub-event-pill, .hub-week-event, .hub-list-card { --event-color:#2f80ed; }
.hub-event-pill { display:flex; gap:.45rem; align-items:flex-start; min-width:0; font-size:.84rem; color:#111827; }
.hub-event-pill .dot { width:4px; min-width:4px; height:16px; border-radius:999px; background:var(--event-color); margin-top:.05rem; }
.hub-event-pill .copy { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hub-more-link { color:#6b7280; font-size:.84rem; text-decoration:none; }
.hub-week-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.hub-week-col { min-height:460px; border-right:1px solid rgba(0,0,0,.06); }
.hub-week-col:last-child { border-right:0; }
.hub-week-head { padding:1rem; border-bottom:1px solid rgba(0,0,0,.06); color:#111827; display:grid; gap:.15rem; }
.hub-week-head span { color:#6b7280; font-size:.92rem; }
.hub-week-events { padding:.8rem; display:grid; gap:.6rem; }
.hub-week-event { border-left:4px solid var(--event-color); background:#f8fafc; padding:.8rem; border-radius:12px; }
.hub-week-event strong { color:#111827; display:block; margin-bottom:.25rem; }
.hub-week-event small { color:#6b7280; }
.hub-day-list { padding:1rem; display:grid; gap:.9rem; }
.hub-list-card { border-left:4px solid var(--event-color); background:#fff; padding:1rem 1rem 1rem 1.1rem; display:grid; grid-template-columns:1.4fr 1fr; gap:1rem; border-bottom:1px solid rgba(0,0,0,.05); }
.hub-list-card:last-child { border-bottom:0; }
.hub-list-card h3, .hub-player-card h3, .hub-detail-card h3 { margin:0; color:#111827; }
.hub-list-card p, .hub-player-card p, .hub-detail-card p { color:#6b7280; margin:.3rem 0 0; }
.hub-year-grid { padding:1rem; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:.9rem; }
.hub-year-card { background:#f8fafc; border:1px solid rgba(0,0,0,.06); border-radius:18px; padding:1rem; display:grid; gap:.35rem; color:#111827; text-decoration:none; }
.hub-year-card span { color:#6b7280; }
.hub-browser-panel {
    margin-top:1rem; background:linear-gradient(180deg, rgba(5, 16, 46, 0.86) 0%, rgba(6, 12, 28, 0.92) 100%); color:#eef4ff; border-radius:28px; border:1px solid rgba(255,255,255,.08); box-shadow:0 18px 50px rgba(0,0,0,.18); padding:1.2rem;
}
.hub-browser-head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; margin-bottom:1rem; }
.hub-browser-head h2 { margin:0; color:#fff; }
.hub-browser-head p { margin:.35rem 0 0; color:rgba(229,238,255,.72); }
.hub-browser-stats { display:flex; gap:.65rem; flex-wrap:wrap; }
.hub-browser-stats span, .hub-league-pill {
    display:inline-flex; align-items:center; gap:.45rem; padding:.45rem .7rem; border-radius:999px; background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.08); font-size:.82rem;
}
.hub-league-pill::before { content:''; width:8px; height:8px; border-radius:999px; background:var(--league-color, #8ab4ff); }
.hub-active-leagues { display:flex; gap:.55rem; flex-wrap:wrap; margin-bottom:1rem; }
.hub-browser-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:.8rem; }
.hub-browser-card {
    display:grid; grid-template-columns:auto 1fr auto; gap:.75rem; align-items:center; padding:1rem; background:rgba(255,255,255,.06); color:#fff; text-decoration:none; border-radius:20px; border:1px solid rgba(255,255,255,.08);
}
.hub-browser-card strong { display:block; color:#fff; }
.hub-browser-card small { display:block; color:rgba(229,238,255,.7); margin-top:.15rem; }
.hub-browser-card em { font-style:normal; color:rgba(229,238,255,.78); font-size:.85rem; }
.hub-browser-card.is-active, .hub-browser-card:hover { background:rgba(110,168,255,.14); border-color:rgba(138,180,255,.34); }
.hub-empty { color:#94a3b8; margin:0; }
.hub-empty-large { padding:1rem 0; }
.hub-link-row { display:flex; gap:.8rem; flex-wrap:wrap; }
.hub-link-row a { color:#8ab4ff; }
.hub-inline-actions { display:flex; gap:.6rem; flex-wrap:wrap; }
.hub-player-meta { display:flex; gap:.6rem; flex-wrap:wrap; margin:.8rem 0; }
.hub-player-meta span { background:#f3f4f6; color:#374151; padding:.35rem .55rem; border-radius:999px; font-size:.82rem; }
.hub-team-drawer {
    position:fixed; inset:0; z-index:998; display:block;
}
.hub-team-drawer-panel {
    position:absolute; top:0; right:0; width:min(560px, 100vw); height:100%; background:#fff; box-shadow:-18px 0 60px rgba(0,0,0,.28); z-index:2; overflow:auto;
}
.hub-team-drawer-head { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; padding:1.25rem 1.25rem 1rem; border-bottom:1px solid rgba(0,0,0,.06); }
.hub-team-drawer-head h2 { margin:.7rem 0 .2rem; color:#111827; }
.hub-team-drawer-head p { margin:0; color:#6b7280; }
.hub-team-drawer-body { padding:1.1rem 1.25rem 1.4rem; display:grid; gap:1.1rem; }
.hub-drawer-meta { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:.8rem; }
.hub-drawer-meta div { background:#f8fafc; border-radius:18px; padding:.95rem; display:grid; gap:.25rem; }
.hub-drawer-meta strong { color:#111827; }
.hub-drawer-meta span, .hub-drawer-notes p { color:#6b7280; }
.hub-drawer-notes h3, .hub-drawer-section-head h3 { margin:0 0 .45rem; color:#111827; }
.hub-drawer-section-head { display:flex; justify-content:space-between; gap:1rem; align-items:center; }
.hub-drawer-player-list { display:grid; gap:.8rem; }
.hub-drawer-player-card { background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:18px; padding:1rem; box-shadow:0 12px 30px rgba(0,0,0,.06); }
.hub-drawer-player-card h4 { margin:0; color:#111827; font-size:1.05rem; }
.hub-drawer-player-card p { color:#6b7280; margin:.3rem 0 0; }
.hub-modal { position:fixed; inset:0; z-index:999; display:none; }
.hub-modal.is-open { display:block; }
.hub-modal-backdrop { position:absolute; inset:0; background:rgba(10,15,28,.55); backdrop-filter:blur(6px); }
.hub-modal-dialog { position:relative; z-index:2; width:min(760px, calc(100vw - 2rem)); margin:4rem auto; background:#fff; border-radius:28px; box-shadow:0 25px 70px rgba(0,0,0,.25); overflow:hidden; }
.hub-modal-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem; border-bottom:1px solid rgba(0,0,0,.06); }
.hub-modal-tabs { display:flex; gap:.5rem; flex-wrap:wrap; }
.hub-modal-tab { background:#f3f4f6; border:0; border-radius:999px; padding:.6rem .9rem; cursor:pointer; }
.hub-modal-tab.is-active { background:#111827; color:#fff; }
.hub-close-modal { font-size:1.6rem; line-height:1; color:#6b7280; text-decoration:none; }
.hub-modal-body { padding:1rem; }
.hub-modal-form { display:none; gap:.8rem; }
.hub-modal-form.is-active { display:grid; }
.hub-modal-form h3 { color:#111827; margin:0 0 .2rem; }
.hub-modal-form input, .hub-modal-form select, .hub-modal-form textarea { width:100%; box-sizing:border-box; border:1px solid #d0d5dd; border-radius:14px; padding:.82rem .95rem; font:inherit; color:#111827; background:#fff; }
.hub-two-cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
@media (max-width: 1180px) {
    .hub-app-shell { grid-template-columns:1fr; }
    .hub-sidebar-panel { position:relative; height:auto; top:auto; }
    .hub-browser-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .hub-main-panel { padding:.8rem; }
    .hub-calendar-toolbar, .hub-sidebar-top, .hub-browser-head, .hub-list-card, .hub-drawer-section-head { grid-template-columns:1fr; display:grid; }
    .hub-toolbar-right, .hub-two-cols, .hub-week-grid, .hub-year-grid, .hub-drawer-meta, .hub-browser-grid { grid-template-columns:1fr; }
    .hub-month-weekdays { display:none; }
    .hub-month-grid { grid-template-columns:1fr; }
    .hub-month-cell { min-height:auto; }
    .hub-team-drawer-panel { width:100vw; }
}


/* Scouting Hub v4 browser refinements */
.hub-sidebar-note-card {
    background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
}
.hub-sidebar-flow { display:grid; gap:.7rem; margin-top:.8rem; }
.hub-sidebar-flow div { display:grid; grid-template-columns:30px 1fr; gap:.65rem .8rem; align-items:center; }
.hub-sidebar-flow span {
    width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px;
    background:rgba(138,180,255,.16); color:#fff; border:1px solid rgba(138,180,255,.24); font-weight:700;
}
.hub-sidebar-flow strong { color:#fff; display:block; }
.hub-sidebar-flow small { color:rgba(229,238,255,.72); display:block; margin-top:.12rem; }
.hub-browser-columns { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1rem; }
.hub-browser-column {
    background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.07); border-radius:24px; padding:1rem;
    min-height: 320px; backdrop-filter: blur(10px);
}
.hub-column-head { display:flex; align-items:center; justify-content:space-between; gap:.8rem; margin-bottom:.8rem; }
.hub-column-head h3 { margin:0; color:#fff; font-size:1rem; }
.hub-column-head span { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.08); color:#fff; border-radius:999px; padding:.35rem .65rem; font-size:.8rem; }
.hub-browser-stack { display:grid; gap:.75rem; max-height: 420px; overflow:auto; padding-right:.2rem; }
.hub-league-browser-card, .hub-player-browser-card { min-height: 84px; }
.hub-player-browser-card em { min-width:46px; text-align:right; }
.hub-player-drawer .hub-team-drawer-panel { width:min(520px, 100vw); }
.hub-drawer-meta-player { grid-template-columns:repeat(2, minmax(0,1fr)); }
@media (max-width: 1180px) {
    .hub-browser-columns { grid-template-columns:1fr; }
    .hub-browser-stack { max-height:none; }
}

/* v19 portal polish */
:root{--sp-navy:#07111f;--sp-panel:#0d192b;--sp-line:#22344f;--sp-blue:#1684c7;--sp-red:#ef254e;--sp-text:#edf5ff;--sp-muted:#91a6c2}
body{background:radial-gradient(circle at 85% -10%,rgba(22,132,199,.14),transparent 34%),#050912}
.site-header{background:rgba(6,13,24,.92)!important;backdrop-filter:blur(16px);border-bottom:1px solid rgba(145,166,194,.14)!important}
.site-header-inner{max-width:1560px!important}
.main-nav .menu{gap:5px!important}.main-nav a{border-radius:9px;padding:8px 10px!important;transition:.18s ease}.main-nav a:hover{background:#111f34;color:#fff!important}
.scouting-front-hero{max-width:1480px;margin:0 auto;padding:44px 28px 64px!important}
.scouting-front-hero>div>p{max-width:900px;color:var(--sp-muted);font-size:16px;line-height:1.65}
.scouting-card-grid--v19{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;margin-top:28px}
.scouting-card{position:relative;overflow:hidden;background:linear-gradient(160deg,rgba(17,30,51,.96),rgba(9,18,32,.96))!important;border:1px solid var(--sp-line)!important;border-radius:16px!important;box-shadow:0 16px 42px rgba(0,0,0,.18);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.scouting-card:hover{transform:translateY(-3px);border-color:#36577e!important;box-shadow:0 22px 54px rgba(0,0,0,.28)}
.scouting-card--primary{grid-column:span 2;background:radial-gradient(circle at 100% 0,rgba(22,132,199,.23),transparent 42%),linear-gradient(160deg,#111f35,#091220)!important}
.scouting-card-kicker{font-size:10px;letter-spacing:.14em;color:#78c8f6;font-weight:900;margin-bottom:10px}.scouting-card h2{letter-spacing:-.02em}.scouting-card p{color:var(--sp-muted)!important;line-height:1.55}.scouting-card a{display:inline-flex!important;width:auto!important;margin-top:8px;color:#fff!important;font-weight:850}.scouting-card a span:after{content:'  →';color:#78c8f6}
@media(max-width:1050px){.scouting-card-grid--v19{grid-template-columns:repeat(2,minmax(0,1fr))!important}.scouting-card--primary{grid-column:span 2}}
@media(max-width:680px){.scouting-card-grid--v19{grid-template-columns:1fr!important}.scouting-card--primary{grid-column:span 1}.scouting-front-hero{padding:24px 14px 40px!important}}

/* V117: fluid portal menu. Flex growth fills every row so permission-based
   card combinations never leave empty grid cells. */
.scouting-card-grid--v19{display:flex!important;flex-wrap:wrap;align-items:stretch;gap:14px!important}
.scouting-card-grid--v19>.scouting-card{display:flex!important;flex:1 1 calc((100% - 28px)/3);min-width:280px;min-height:210px;flex-direction:column;grid-column:auto!important}
.scouting-card-grid--v19>.scouting-card>a{margin-top:auto!important;align-self:flex-start}
@media(max-width:1050px){.scouting-card-grid--v19>.scouting-card{flex-basis:calc((100% - 14px)/2)}}
@media(max-width:680px){.scouting-card-grid--v19>.scouting-card{flex-basis:100%;min-width:0;min-height:0}}

/* v20 — compact portal chrome + true full-area dashboard templates */
.site-header{min-height:54px!important}
.site-header-inner{max-width:none!important;min-height:54px;padding:6px 16px!important;gap:18px!important}
.site-logo-wrap{gap:9px!important;flex:0 0 auto}
.site-logo{width:31px!important;max-height:38px;object-fit:contain}
.site-title-block{gap:1px!important}
.site-title-main{font-size:11px!important;font-weight:750!important;letter-spacing:.065em!important;line-height:1.15}
.site-title-sub{font-size:8px!important;letter-spacing:.13em!important;line-height:1.15;color:#7f93ad!important}
.main-nav{min-width:0;font-size:11px!important;overflow-x:auto;scrollbar-width:none}
.main-nav::-webkit-scrollbar{display:none}
.main-nav .menu{display:flex!important;align-items:center;flex-wrap:nowrap!important;gap:2px!important;white-space:nowrap}
.main-nav li{flex:0 0 auto}
.main-nav li a,.main-nav a{font-size:10.5px!important;font-weight:650!important;letter-spacing:.015em!important;text-transform:none!important;padding:7px 8px!important;border-radius:7px!important;color:#9eacc0!important;line-height:1.15}
.main-nav li.current-menu-item>a,.main-nav li.current_page_item>a,.main-nav a:hover{background:rgba(255,255,255,.065)!important;color:#f5f8ff!important;text-decoration:none!important}

/* Every dashboard template gets exactly the same edge-to-edge canvas as the TOP/database view. */
body.page-template-page-mangijate-andmebaas .scouting-front,
body.page-template-page-mangijate-andmebaas-v2 .scouting-front,
body.page-template-page-mangijate-vordlus-top .scouting-front,
body.page-template-page-ind-analuus .scouting-front,
body.page-template-page-liigade-analuus .scouting-front,
body.page-template-page-klubi-taktika .scouting-front,
body.page-template-page-scouting-calendar .scouting-front,
body.page-template-page-paide-mangude-kokkuvote .scouting-front,
body.page-template-page-hooaja-vordlus .scouting-front,
body.page-template-page-player-scouting .scouting-front,
body.page-template-page-automated-scouting-model .scouting-front,
body.page-template-page-team-report .scouting-front{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}
body.page-template-page-mangijate-andmebaas .scout-dashboard-wrap,
body.page-template-page-mangijate-andmebaas-v2 .scout-dashboard-wrap,
body.page-template-page-mangijate-vordlus-top .scout-dashboard-wrap,
body.page-template-page-ind-analuus .scout-dashboard-wrap,
body.page-template-page-liigade-analuus .scout-dashboard-wrap,
body.page-template-page-klubi-taktika .scout-dashboard-wrap,
body.page-template-page-scouting-calendar .scout-dashboard-wrap,
body.page-template-page-paide-mangude-kokkuvote .scout-dashboard-wrap,
body.page-template-page-hooaja-vordlus .scout-dashboard-wrap,
body.page-template-page-player-scouting .scout-dashboard-wrap,
body.page-template-page-automated-scouting-model .scout-dashboard-wrap,
body.page-template-page-team-report .scout-dashboard-wrap{
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
body.page-template-page-mangijate-andmebaas footer,
body.page-template-page-mangijate-andmebaas-v2 footer,
body.page-template-page-mangijate-vordlus-top footer,
body.page-template-page-ind-analuus footer,
body.page-template-page-liigade-analuus footer,
body.page-template-page-klubi-taktika footer,
body.page-template-page-scouting-calendar footer,
body.page-template-page-paide-mangude-kokkuvote footer,
body.page-template-page-hooaja-vordlus footer,
body.page-template-page-player-scouting footer,
body.page-template-page-automated-scouting-model footer,
body.page-template-page-team-report footer{display:none!important}
.scout-dashboard-wrap--viewport iframe{width:100%!important;height:calc(100dvh - var(--sp-header-h,54px))!important;min-height:620px;border:0!important;display:block!important;background:#050912}

/* Home is intentionally lighter and less card-heavy. */
.scouting-front-hero{max-width:1380px!important;padding:34px 22px 48px!important}
.scouting-front-hero>div>p{font-size:14px!important;line-height:1.55!important;max-width:760px!important}
.scouting-kpi-alert-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 0;padding:14px 18px;border:1px solid rgba(163,230,53,.48);border-radius:14px;background:linear-gradient(90deg,rgba(34,197,94,.18),rgba(96,165,250,.13));color:#eefcf2!important;text-decoration:none!important;box-shadow:0 12px 32px rgba(0,0,0,.22)}
.scouting-kpi-alert-banner b{color:#a3e635;letter-spacing:.1em}.scouting-kpi-alert-banner strong{white-space:nowrap;color:#7dd3fc}
.paide-badge{font-size:9px!important;padding:5px 9px!important;margin-bottom:7px!important}
.scouting-card-grid--v19{gap:11px!important;margin-top:20px!important}
.scouting-card{border-radius:13px!important;padding:17px 17px!important;box-shadow:0 10px 30px rgba(0,0,0,.16)!important}
.scouting-card-kicker{font-size:8px!important;letter-spacing:.12em!important;margin-bottom:7px!important}
.scouting-card h2{font-size:15px!important;margin-bottom:5px!important}
.scouting-card p{font-size:12px!important;line-height:1.45!important;margin:0 0 7px!important}
.scouting-card a{font-size:11px!important;margin-top:4px!important}

@media(max-width:900px){
 .site-title-block{display:none}
 .site-header-inner{padding:6px 10px!important;gap:10px!important}
 .main-nav li a,.main-nav a{font-size:10px!important;padding:7px 6px!important}
}
/* v31 Player Database */
.player-db-v31{max-width:1440px;margin:0 auto;padding:28px 30px 60px;color:#172033}.pdb-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:20px}.pdb-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#3157e8}.pdb-head h1{font-size:30px;margin:4px 0 3px;letter-spacing:-.035em}.pdb-head p{margin:0;color:#6e788b;font-size:14px}.pdb-count{background:#f3f6fa;border:1px solid #dfe5ee;border-radius:14px;padding:10px 18px;display:flex;gap:8px;align-items:baseline}.pdb-count strong{font-size:25px;color:#12376e}.pdb-count span{font-size:12px;color:#6e788b}.pdb-filters{display:grid;grid-template-columns:minmax(300px,2fr) 1fr 1fr auto auto;gap:10px;align-items:end;background:#fff;border:1px solid #dfe5ee;border-radius:16px;padding:16px;margin-bottom:18px;box-shadow:0 8px 28px rgba(30,45,70,.05)}.pdb-filters label span,.pdb-snapshot-control>span{display:block;font-size:11px;font-weight:700;color:#657187;margin:0 0 6px}.pdb-filters input,.pdb-filters select,.pdb-snapshot-control select{width:100%;height:40px;border:1px solid #d5dde8;border-radius:9px;background:#fff;padding:0 11px;font-size:13px}.pdb-filters button,.pdb-actions a,.pdb-actions button{height:40px;border:0;border-radius:9px;background:#3157e8;color:#fff;padding:0 18px;font-weight:700;font-size:12px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.pdb-reset{height:40px;display:flex;align-items:center;padding:0 8px;color:#68758b;font-size:12px;text-decoration:none}.pdb-list,.pdb-profile{background:#fff;border:1px solid #dfe5ee;border-radius:16px;overflow:hidden;box-shadow:0 8px 28px rgba(30,45,70,.05)}.pdb-list-head,.pdb-row{display:grid;grid-template-columns:1.45fr 1fr 1fr .8fr;gap:20px;align-items:center;padding:12px 18px}.pdb-list-head{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#8993a5;background:#f7f9fc;border-bottom:1px solid #e3e8f0}.pdb-row{text-decoration:none;color:#263044;border-bottom:1px solid #edf0f4;font-size:13px;min-height:58px}.pdb-row:hover{background:#f8faff}.pdb-row b{display:block;font-size:13px}.pdb-row small,.pdb-history-row small{display:block;color:#8791a3;font-size:10px;margin-top:3px}.pdb-row em,.pdb-history-row em,.pdb-fresh b{font-style:normal;font-size:10px;font-weight:800}.current{color:#087c48}.aging{color:#b36a00}.old{color:#b42318}.pdb-empty{padding:40px;text-align:center;color:#7b8799}.pdb-profile{padding:22px}.pdb-profile-top{display:flex;justify-content:space-between;gap:24px;align-items:flex-end}.pdb-back{font-size:11px;color:#64748b;text-decoration:none}.pdb-profile h2{font-size:29px;margin:6px 0 2px}.pdb-profile p{margin:0;color:#6e788b;font-size:13px}.pdb-snapshot-control{width:min(430px,45%)}.pdb-fresh{display:flex;gap:18px;align-items:center;margin:18px -22px 0;padding:11px 22px;background:#f7f9fc;border-top:1px solid #e5eaf1;border-bottom:1px solid #e5eaf1;font-size:11px;color:#6f7a8d}.pdb-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:20px 0}.pdb-metrics div{border:1px solid #e0e6ef;background:#fafbfd;border-radius:12px;padding:13px}.pdb-metrics span{display:block;font-size:10px;color:#778397;margin-bottom:5px}.pdb-metrics strong{font-size:20px;color:#12376e}.pdb-actions{display:flex;gap:8px;padding-bottom:20px;border-bottom:1px solid #e5eaf1}.pdb-actions button{cursor:pointer}.pdb-history{padding-top:18px}.pdb-history h3{font-size:14px;margin:0 0 9px}.pdb-history-row{display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:#273146;padding:10px 12px;border:1px solid #e4e9f0;border-radius:9px;margin-top:7px}.pdb-history-row.active{border-color:#3157e8;background:#f6f8ff}.pdb-history-row b{font-size:12px}@media(max-width:900px){.pdb-filters{grid-template-columns:1fr 1fr}.pdb-search{grid-column:1/-1}.pdb-list-head{display:none}.pdb-row{grid-template-columns:1fr 1fr}.pdb-profile-top{display:block}.pdb-snapshot-control{width:100%;margin-top:15px}.pdb-metrics{grid-template-columns:repeat(2,1fr)}.pdb-fresh{flex-wrap:wrap}}@media print{.site-header,.site-footer,.pdb-filters,.pdb-actions,.pdb-back{display:none!important}.player-db-v31{padding:0}.pdb-profile{border:0;box-shadow:none}.pdb-history{page-break-before:auto}}
/* v32 analysis hub */
.paide-analysis-hub{max-width:1500px;margin:0 auto;padding:24px}.pah-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:16px}.pah-head h1{margin:0 0 4px;font-size:30px}.pah-head p{margin:0;color:#6b7688}.pah-back{border:1px solid #d5ddea;border-radius:8px;padding:10px 14px;text-decoration:none}.pah-picker{background:#fff;border:1px solid #d9e2ef;border-radius:14px;padding:16px;margin-bottom:16px;box-shadow:0 6px 24px #172b4d0c}.pah-picker form{display:grid;grid-template-columns:minmax(240px,1fr) minmax(280px,1fr) minmax(220px,.8fr);gap:14px;align-items:end}.pah-picker label{font-weight:700;color:#4e5b70}.pah-picker select{display:block;width:100%;margin-top:6px;padding:11px;border:1px solid #cbd6e6;border-radius:8px;background:#fff}.pah-meta{padding:10px 12px;background:#f5f8fc;border-radius:9px}.pah-meta span{display:block;color:#78859a;font-size:12px;margin-top:3px}.pah-frame{display:block;width:100%;height:calc(100vh - 235px);min-height:760px;border:0;border-radius:14px;background:#06080d}.pah-empty{background:#fff;border:1px dashed #b8c5d8;border-radius:14px;padding:40px;text-align:center;color:#68758a}@media(max-width:900px){.pah-picker form{grid-template-columns:1fr}.pah-frame{height:900px}}

/* v35 unified dark Analysis Hub + selectors */
.analysis-hub-v35,.paide-analysis-hub{--a-bg:#060b13;--a-panel:#0b1320;--a-panel2:#0f1a2a;--a-border:#203149;--a-text:#eef5ff;--a-muted:#8798ae;--a-blue:#2eb8ff;--a-green:#62e6a8;background:var(--a-bg)!important;color:var(--a-text)!important;max-width:none!important;min-height:calc(100vh - 54px);margin:0!important;padding:28px clamp(18px,3vw,48px) 60px!important}
.ah35-head{display:flex;justify-content:space-between;align-items:end;max-width:1500px;margin:0 auto 18px}.ah35-head span{font-size:10px;font-weight:900;letter-spacing:.15em;color:var(--a-blue)}.ah35-head h1{font-size:32px;letter-spacing:-.04em;margin:5px 0}.ah35-head p{margin:0;color:var(--a-muted)}
.ah35-tabs,.ah35-picker,.ah35-section,.ah35-empty{max-width:1500px;margin-left:auto;margin-right:auto}.ah35-tabs{display:flex;gap:7px;margin-bottom:12px}.ah35-tabs a{padding:9px 15px;border:1px solid var(--a-border);border-radius:9px;text-decoration:none;color:#91a4bb;background:#09111d;font-size:11px;font-weight:850}.ah35-tabs a.active{background:#123455;border-color:#276da2;color:#fff}
.ah35-picker{background:linear-gradient(180deg,#0d1725,#09121e);border:1px solid var(--a-border);border-radius:14px;padding:15px}.ah35-picker form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.ah35-picker label span{display:block;color:#8193aa;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;margin:0 0 6px}.ah35-picker select,.paide-analysis-hub select{appearance:auto;width:100%;height:42px;background:#07101b!important;color:#edf5ff!important;border:1px solid #263a55!important;border-radius:9px!important;padding:0 11px!important;box-shadow:none!important}.ah35-picker option,.paide-analysis-hub option{background:#07101b;color:#edf5ff}.ah35-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #1b2b40;color:#8193aa;font-size:11px}.ah35-meta b{color:#fff}.ah35-meta span{background:#0d1a29;border:1px solid #1d3047;border-radius:999px;padding:5px 8px}
.ah35-section{margin-top:14px;background:#09121e;border:1px solid var(--a-border);border-radius:14px;padding:17px}.ah35-section-title{display:flex;justify-content:space-between;align-items:end}.ah35-section-title small{font-size:9px;color:var(--a-blue);font-weight:900;letter-spacing:.12em}.ah35-section-title h2{font-size:20px;margin:3px 0 0}.ah35-section-title>span{font-size:10px;color:var(--a-muted)}.ah35-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.ah35-tools a{background:#0c1725;border:1px solid #1d3048;border-radius:12px;padding:14px;text-decoration:none;color:var(--a-text);min-height:154px;transition:.15s}.ah35-tools a:hover{transform:translateY(-1px);border-color:#2b79ae;background:#0f1d2e}.ah35-type{font-size:8px;letter-spacing:.12em;font-weight:900;color:var(--a-blue)}.ah35-tools h3{font-size:14px;margin:7px 0}.ah35-tools code{display:block;color:#8fa4bb;background:#07101a;border-radius:6px;padding:5px 7px;font-size:9px;overflow:hidden;text-overflow:ellipsis}.ah35-tools p{color:#7f91a8;font-size:10px;min-height:28px}.ah35-tools strong{font-size:9px;color:var(--a-green);letter-spacing:.08em}.ah35-empty{margin-top:14px;border:1px dashed #29405d;background:#09121e;border-radius:14px;padding:38px;text-align:center;color:#8294aa}
.paide-analysis-hub .pah-head,.paide-analysis-hub .pah-picker,.paide-analysis-hub .pah-empty{background:transparent!important;color:var(--a-text)!important;border-color:var(--a-border)!important}.paide-analysis-hub .pah-head p,.paide-analysis-hub .pah-picker label,.paide-analysis-hub .pah-meta span{color:var(--a-muted)!important}.paide-analysis-hub .pah-picker{background:#0b1421!important;box-shadow:none!important}.paide-analysis-hub .pah-meta{background:#08111d!important;color:#dceaff!important}.paide-analysis-hub .pah-back{color:#b9c9dc;border-color:#29405c}.paide-analysis-hub .pah-frame{border-radius:10px!important}
body.page-template-page-analysis-hub footer,body.page-template-page-vastase-analuus footer{display:none!important}
@media(max-width:1000px){.ah35-tools{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.ah35-picker form,.ah35-tools{grid-template-columns:1fr}.analysis-hub-v35,.paide-analysis-hub{padding:18px 12px 40px!important}}

/* v36 Player DB: dark portal UI + TOP restored */
.player-db-v31{max-width:none!important;background:#06101d!important;color:#eaf2ff!important;padding:28px clamp(22px,5vw,116px) 64px!important;min-height:100vh}
.player-db-v31 .pdb-head,.player-db-v31 .pdb-filters,.player-db-v31 .pdb-list,.player-db-v31 .pdb-profile,.player-db-v31 .pdb-top-section{max-width:1600px;margin-left:auto;margin-right:auto}
.player-db-v31 .pdb-head h1,.player-db-v31 .pdb-profile h2,.player-db-v31 .pdb-history h3{color:#f3f7ff}.player-db-v31 .pdb-head p,.player-db-v31 .pdb-profile p{color:#8393a9}
.player-db-v31 .pdb-count{background:#0d1a2a;border-color:#233650}.player-db-v31 .pdb-count strong{color:#fff}.player-db-v31 .pdb-count span{color:#91a2b8}
.player-db-v31 .pdb-filters{background:#0b1625;border-color:#20344e;box-shadow:none;grid-template-columns:1.25fr minmax(260px,1.5fr) .9fr .9fr auto auto}
.player-db-v31 .pdb-filters label span,.player-db-v31 .pdb-snapshot-control>span{color:#91a2b8}.player-db-v31 .pdb-filters input,.player-db-v31 .pdb-filters select,.player-db-v31 .pdb-snapshot-control select{background:#07111e;color:#eef5ff;border-color:#29405e}.player-db-v31 .pdb-filters option,.player-db-v31 .pdb-snapshot-control option{background:#07111e;color:#eef5ff}.player-db-v31 .pdb-reset{color:#9fb0c6}
.player-db-v31 .pdb-list,.player-db-v31 .pdb-profile{background:#0a1422;border-color:#20344e;box-shadow:none}.player-db-v31 .pdb-list-head{background:#0d1929;border-color:#20344e;color:#7f92aa}.player-db-v31 .pdb-row{color:#dce8f8;border-color:#182a40}.player-db-v31 .pdb-row:hover{background:#0e1d30}.player-db-v31 .pdb-row small,.player-db-v31 .pdb-history-row small{color:#7f92aa}
.player-db-v31 .pdb-fresh{background:#08121f;border-color:#20344e;color:#8ea0b6}.player-db-v31 .pdb-metrics div{background:#0d1928;border-color:#20344e}.player-db-v31 .pdb-metrics span{color:#8294aa}.player-db-v31 .pdb-metrics strong{color:#f4f8ff}.player-db-v31 .pdb-actions{border-color:#20344e;flex-wrap:wrap}.player-db-v31 .pdb-history-row{color:#dce8f8;border-color:#20344e;background:#0b1726}.player-db-v31 .pdb-history-row.active{border-color:#3157e8;background:#101d36}.player-db-v31 .pdb-back{color:#8ebcff}
.pdb-pages{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;color:#8294aa;font-size:11px}.pdb-pages div{display:flex;gap:12px;align-items:center}.pdb-pages a{color:#fff;text-decoration:none;border:1px solid #29405e;background:#0d1a2a;padding:7px 10px;border-radius:8px}.pdb-pages b{color:#dce8f8}
.pdb-top-section{margin-top:20px;background:#07111e;border:1px solid #20344e;border-radius:16px;overflow:hidden}.pdb-top-head{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:18px 20px;border-bottom:1px solid #20344e;background:#0b1625}.pdb-top-head span{font-size:9px;font-weight:900;letter-spacing:.13em;color:#2eb8ff}.pdb-top-head h2{color:#fff;margin:4px 0;font-size:21px}.pdb-top-head p{margin:0;color:#8395ac;font-size:11px}.pdb-top-head a{color:#d9edff;text-decoration:none;border:1px solid #294b6c;background:#0b2136;padding:9px 12px;border-radius:9px;font-size:10px;font-weight:800}.pdb-top-section iframe{display:block;width:100%;border:0;background:#06080d}
@media(max-width:1100px){.player-db-v31 .pdb-filters{grid-template-columns:1fr 1fr}.player-db-v31 .pdb-filters .pdb-search{grid-column:auto}.pdb-top-head{align-items:flex-start;flex-direction:column}}

/* V39 direct HTML search strip */
.v39-search{background:#0b111b;border:1px solid #263244;border-radius:14px;padding:14px 16px;margin:14px 0;color:#eaf0f8}.v39-search form{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,1fr);gap:12px}.v39-search label{font-size:11px;font-weight:800;color:#93a4ba;text-transform:uppercase;letter-spacing:.05em}.v39-search select{display:block;width:100%;margin-top:6px;background:#111a27;color:#fff;border:1px solid #34445a;border-radius:9px;padding:10px}.v39-state{font-size:12px;color:#7dd3a7;margin-top:10px}.v39-ind-head{margin:22px 0 8px;color:#fff}.v39-ind-head h2{margin:0}.v39-ind-head p{color:#93a4ba;margin:4px 0 0}@media(max-width:760px){.v39-search form{grid-template-columns:1fr}}
/* v40 — selectors must not shrink the original HTML canvas. */
.v40-search,.v40-data-search{box-sizing:border-box;width:100%;background:#07111e;border-bottom:1px solid #26384e;padding:12px 22px;color:#eef5ff}
.v40-search form,.v40-data-search form{display:grid;grid-template-columns:minmax(320px,1.4fr) minmax(240px,1fr) minmax(240px,1fr);gap:10px;align-items:end}
.v40-search.v49-ind-search form{grid-template-columns:minmax(220px,1.2fr) minmax(180px,1fr) minmax(190px,1fr) minmax(190px,1fr) minmax(240px,1.2fr)}
.v40-search label,.v40-data-search label{font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#96a9c1}
.v40-search input,.v40-search select,.v40-data-search select{box-sizing:border-box;width:100%;height:38px;margin-top:5px;background:#0b1726;color:#f5f8ff;border:1px solid #344b67;border-radius:8px;padding:0 10px}
.v40-search label:first-child{position:relative}.v40-search label:first-child input{padding-right:68px}.v40-search button{position:absolute;right:4px;bottom:4px;height:30px;border:0;border-radius:6px;background:#2f5bea;color:white;font-weight:800;padding:0 13px}
.v40-note{padding:7px 22px;background:#07111e;color:#65d49c;font-size:11px;border-bottom:1px solid #203249}
body[class*="page-template-page-"] .scouting-front>.scout-dashboard-wrap--viewport iframe{height:calc(100dvh - var(--sp-header-h,54px) - 64px)!important;min-height:760px!important}
body.page-template-page-ind-analuus .scout-dashboard-wrap iframe{width:100%!important;min-height:1000px!important}
@media(max-width:1500px){.v40-search.v49-ind-search form{grid-template-columns:repeat(3,minmax(220px,1fr))}}
@media(max-width:850px){.v40-search form,.v40-data-search form,.v40-search.v49-ind-search form{grid-template-columns:1fr}}
/* v43 dataset discipline: each analysis exposes only its required Data Center family. */
.v43-dataset-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid #2d4664;background:#0a1726;color:#8fd6ff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;letter-spacing:.04em}

/* v44: dashboards use the whole available portal canvas. */
body[class*="page-template-page-"] .scout-dashboard-wrap,body[class*="page-template-page-"] .scout-dashboard-wrap iframe{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}

/* v45 full-width analysis canvases */
.scouting-front,.paide-analysis-hub,.scout-dashboard-wrap,.scout-dashboard-wrap--viewport{width:100%!important;max-width:none!important}.scout-dashboard-wrap iframe{width:100%!important;max-width:none!important}
