/* Alpha 0.60 professional management workspaces.
   These additions are deliberately inert below 700px so the accepted
   courtside and phone interfaces retain their existing geometry. */

.workspace-pro-shell,
.workspace-pro-frame,
.workspace-pro-main {
    display: contents;
}

.workspace-pro-topbar,
.workspace-pro-sidebar,
.team-manager-pro-identity,
.team-manager-pro-tabs,
.team-roster-pro-insights,
.team-management-pro-summary,
.team-lineup-pro-aside,
.player-cards-pro-summary,
.report-pro-nav,
.report-pro-overview {
    display: none;
}

.report-action-copy { display: none; }

/* The richer roster markup still collapses into the accepted compact phone row. */
.team-player-avatar { display: none; }
.team-player-copy { min-width: 0; display: grid; grid-row: 1 / span 2; gap: 2px; }
.team-player-copy small { overflow: hidden; color: #64748b; font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.team-player-stat { display: grid; justify-items: end; align-content: center; }
.team-player-stat small { color: #64748b; font-size: 7px; font-weight: 800; text-transform: uppercase; }

@media (min-width: 700px) {
    #team-manager-screen:not(.hidden),
    #team-lineup-planner:not(.hidden),
    #player-cards-screen:not(.hidden),
    #print-report:not(.hidden) {
        position: fixed;
        inset: var(--site-banner-height) 0 0;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        margin: 0;
        overflow: hidden;
        padding: 0;
        background: #edf3f9;
        z-index: 36;
    }

    .workspace-pro-shell {
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        color: #10203b;
        font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Inter, system-ui, sans-serif;
    }

    .workspace-pro-shell button,
    .workspace-pro-shell input,
    .workspace-pro-shell select {
        font: inherit;
    }

    .workspace-pro-shell button { cursor: pointer; }

    .workspace-pro-topbar {
        min-height: 82px;
        display: grid;
        grid-template-columns: minmax(170px, 1fr) minmax(285px, 420px) minmax(90px, 1fr);
        align-items: center;
        gap: 20px;
        flex: 0 0 auto;
        border-bottom: 1px solid rgba(255, 255, 255, .09);
        padding: 12px clamp(18px, 2.6vw, 38px);
        background: #0f1b31;
        color: #fff;
        box-shadow: 0 7px 25px rgba(10, 25, 50, .16);
        z-index: 2;
    }

    .workspace-pro-brand {
        height: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .workspace-pro-brand-mark {
        width: 210px;
        height: 56px;
        display: grid;
        place-items: center;
        flex: 0 0 210px;
    }

    .workspace-pro-brand-mark img { border-radius: 0; object-fit: contain; }

    .workspace-pro-team-switcher {
        min-width: 0;
        display: grid;
        grid-template-columns: 34px auto minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        border: 2px solid rgba(122, 173, 255, .42);
        border-radius: 14px;
        padding: 6px 7px 6px 14px;
        background: rgba(62, 116, 207, .18);
        box-shadow: 0 7px 20px rgba(0, 0, 0, .16);
    }

    .workspace-pro-switch-logo {
        width: 34px;
        height: 34px;
        overflow: hidden;
        border-radius: 50%;
    }

    .workspace-pro-switch-logo .netball-team-logo { min-width: 34px; min-height: 34px; }

    .workspace-pro-team-switcher > span {
        color: #c2d5f3;
        font-size: 9px;
        font-weight: 950;
        letter-spacing: .09em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .workspace-pro-team-switcher select {
        min-width: 0;
        min-height: 43px;
        border: 0;
        border-radius: 8px;
        padding: 0 29px 0 10px;
        background: #fff;
        color: #10203b;
        font-size: 14px;
        font-weight: 900;
    }

    .workspace-pro-account {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, .17);
        border-radius: 12px;
        padding: 0 14px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        font-size: 11px;
        font-weight: 900;
    }

    .workspace-pro-account svg,
    .workspace-pro-sidebar svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .workspace-pro-frame {
        min-height: 0;
        display: grid;
        grid-template-columns: 142px minmax(0, 1fr);
        flex: 1 1 auto;
        overflow: hidden;
    }

    .workspace-pro-sidebar {
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow-y: auto;
        border-right: 1px solid #d5dfeb;
        padding: 23px 13px 18px;
        background: rgba(248, 251, 254, .94);
    }

    .workspace-pro-sidebar nav { display: grid; gap: 7px; }

    .workspace-pro-sidebar nav > button,
    .workspace-pro-sidebar nav > span {
        min-height: 50px;
        display: grid;
        grid-template-columns: 27px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        border: 0;
        border-radius: 13px;
        padding: 0 11px;
        background: transparent;
        color: #62738b;
        text-align: left;
    }

    .workspace-pro-sidebar nav > span[aria-current="page"] {
        background: linear-gradient(135deg, #e1ebff, #f3f7ff);
        color: #245fc3;
        box-shadow: inset 3px 0 #3376e8;
    }

    .workspace-pro-sidebar nav > button:hover { background: #edf2f8; color: #203654; }
    .workspace-pro-sidebar nav b { min-width: 0; font-size: 11px; font-weight: 900; white-space: nowrap; }

    .workspace-pro-sidebar-note {
        display: grid;
        gap: 3px;
        border: 1px solid #d9e2ed;
        border-radius: 13px;
        padding: 11px;
        background: #fff;
    }

    .workspace-pro-sidebar-note span { color: #7a899d; font-size: 7px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
    .workspace-pro-sidebar-note strong,
    .workspace-pro-sidebar-note small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .workspace-pro-sidebar-note strong { color: #213752; font-size: 10px; font-weight: 950; }
    .workspace-pro-sidebar-note small { color: #718096; font-size: 8px; font-weight: 750; }

    .workspace-pro-main {
        min-width: 0;
        min-height: 0;
        display: block;
        overflow-y: auto;
        padding: 24px clamp(20px, 3vw, 42px) 40px;
        background:
            radial-gradient(circle at 8% -8%, rgba(116, 69, 119, .10), transparent 31%),
            radial-gradient(circle at 96% 2%, rgba(37, 99, 235, .10), transparent 32%),
            #edf3f9;
    }

    .team-manager-content,
    .team-lineup-planner-content,
    .player-cards-content,
    .report-pro-content {
        width: min(100%, 1240px);
        max-width: none;
        margin: 0 auto;
    }

    .workspace-pro-card {
        min-width: 0;
        overflow: hidden;
        border: 1px solid #d5dfeb;
        border-radius: 18px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 8px 25px rgba(32, 54, 83, .065);
    }

    .workspace-pro-card > header {
        min-height: 61px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 16px;
    }

    .workspace-pro-card > header span,
    .workspace-pro-card > header > div > span {
        display: block;
        color: var(--team-primary-dark);
        font-size: 8px;
        font-weight: 950;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .workspace-pro-card > header h3 {
        margin-top: 3px;
        color: #172b47;
        font-size: 17px;
        font-weight: 950;
        letter-spacing: -.02em;
    }

    .workspace-pro-empty {
        display: grid;
        justify-items: center;
        gap: 5px;
        padding: 22px;
        color: #718096;
        font-size: 10px;
        text-align: center;
    }

    .workspace-pro-empty strong { color: #304762; font-size: 13px; font-weight: 950; }
    .workspace-pro-empty p { max-width: 320px; line-height: 1.45; }

    .team-manager-content > .subscreen-header { display: none; }

    .team-manager-pro-identity {
        min-height: 118px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 18px;
        border: 1px solid #d3deeb;
        border-radius: 18px;
        padding: 18px 22px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 8px 25px rgba(32, 54, 83, .06);
    }

    .workspace-pro-crest {
        width: 76px;
        height: 76px;
        display: grid;
        place-items: center;
        border: 6px solid rgba(255,255,255,.9);
        border-radius: 50%;
        background: var(--team-primary);
        color: var(--team-foreground);
        font-size: 19px;
        font-weight: 950;
        box-shadow: 0 0 0 1px rgba(43,64,91,.14), 0 9px 20px rgba(32,52,80,.14);
        text-shadow: var(--team-text-shadow);
    }

    .workspace-pro-crest > .netball-team-logo { border-radius: 50%; }

    .team-manager-pro-identity > div:nth-child(2) { min-width: 0; }
    .team-manager-pro-identity > div:nth-child(2) > span { color: var(--team-primary-dark); font-size: 8px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
    .team-manager-pro-identity h3 { overflow: hidden; margin-top: 3px; color: #10203b; font-size: clamp(25px, 2.8vw, 36px); font-weight: 950; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
    .team-manager-pro-identity p { margin-top: 5px; color: #66778e; font-size: 11px; font-weight: 800; }

    .team-manager-pro-season {
        min-width: 136px;
        display: grid;
        justify-items: end;
        gap: 3px;
        text-align: right;
    }

    .team-manager-pro-season span { color: #7a899d; font-size: 7px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
    .team-manager-pro-season strong { color: #203654; font-size: 18px; font-weight: 950; }
    .team-manager-pro-season small { color: #748398; font-size: 9px; font-weight: 750; }

    .team-selector-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        gap: 18px;
        margin: 12px 0;
        border-radius: 14px;
        padding: 12px 14px;
    }

    .team-selector-card > div:first-child,
    .team-selector-card #active-team-selector { display: none; }

    .team-selector-controls {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(150px, .9fr) minmax(220px, 1.5fr) minmax(150px, .9fr);
        align-items: end;
        gap: 8px;
    }

    .team-selector-controls select,
    .team-selector-controls button { min-height: 46px; border-radius: 11px; font-size: 11px; }
    .team-portal-season-label { margin: 0; gap: 3px; }
    .team-portal-season-label span { font-size: 7px; }

    .team-manager-pro-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: hidden;
        margin-bottom: 14px;
        border: 1px solid #cbd7e5;
        border-radius: 13px;
        background: rgba(255,255,255,.88);
        box-shadow: 0 5px 17px rgba(30,50,79,.05);
    }

    .team-manager-pro-tabs button {
        min-height: 48px;
        border: 0;
        border-right: 1px solid #d8e1ed;
        background: transparent;
        color: #53657d;
        font-size: 11px;
        font-weight: 950;
    }

    .team-manager-pro-tabs button:last-child { border-right: 0; }
    .team-manager-pro-tabs button:hover { background: #edf3fb; color: #1f4e9b; }
    .team-manager-pro-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #4380ef, #2563eb); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.2); }
    .team-manager-bottom-nav { display: none; }

    .team-roster-pro-layout {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1.65fr) minmax(265px, .8fr);
        align-items: start;
        gap: 16px;
    }

    .team-roster-section {
        margin: 0;
        border-radius: 18px;
        padding: 17px;
        box-shadow: 0 8px 25px rgba(32,54,83,.06);
    }

    .team-roster-heading h3 { font-size: 19px; }
    .team-roster-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

    .team-player-row {
        grid-template-columns: minmax(0, 1fr) 37px 37px 37px;
        gap: 6px;
        min-height: 88px;
        border-radius: 13px;
        padding: 10px;
        background: linear-gradient(145deg, #fff, #f7fafe);
    }

    .team-player-summary {
        grid-template-columns: 47px minmax(0, 1fr) auto;
        align-items: center;
        gap: 2px 9px;
    }

    .team-player-avatar {
        grid-row: 1 / span 2;
        width: 47px;
        height: 47px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: color-mix(in srgb, var(--team-primary) 16%, #fff);
        color: var(--team-primary-dark);
        font-size: 13px;
        font-weight: 950;
    }

    .team-player-copy { min-width: 0; display: grid; grid-row: auto; gap: 3px; }
    .team-player-copy strong { font-size: 12px; }
    .team-player-copy small { overflow: hidden; color: #78879a; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
    .team-player-stat { align-self: stretch; display: grid; align-content: center; justify-items: end; color: var(--team-primary-dark); font-size: 13px; font-weight: 950; }
    .team-player-stat { position: relative; top: 2px; }
    .team-player-stat small { color: #8794a6; font-size: 7px; letter-spacing: .04em; text-transform: uppercase; }
    .team-player-impact { min-width: 62px; justify-items: center; border-radius: 10px; padding: 5px 7px; }
    .team-player-impact.is-positive { background: #dcfce7; color: #166534; }
    .team-player-impact.is-close { background: #fef3c7; color: #92400e; }
    .team-player-impact.is-negative { background: #fee2e2; color: #b91c1c; }
    .team-player-impact.is-neutral { background: #eef2f7; color: #64748b; }
    .team-player-impact small { color: currentColor; opacity: .72; }
    .team-player-action { width: 37px; min-height: 37px; padding: 0; }

    .team-add-player-button {
        width: min(100%, 265px);
        min-height: 58px;
        border-style: dashed;
        border-width: 2px;
        background: #f8fbff;
    }

    .team-roster-pro-insights {
        display: grid;
        align-content: start;
        gap: 16px;
    }

    .team-roster-position-coverage,
    .team-roster-lineup-readiness { padding: 15px; }

    .team-roster-coverage-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .team-roster-coverage-option {
        min-width: 0;
        min-height: 70px;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 3px;
        border: 1px solid transparent;
        border-radius: 11px;
        padding: 5px 3px;
        background: #f7fafe;
        color: #203654;
    }
    .team-roster-coverage-option:hover { border-color: #b9cceb; background: #edf4ff; }
    .team-roster-coverage-option[aria-pressed="true"] { border-color: #2563eb; background: #e8f0ff; box-shadow: inset 0 0 0 1px #2563eb; }
    .team-roster-coverage-option.is-all > span { font-size: 13px; font-weight: 950; }
    .team-roster-coverage-grid .team-lineup-badge { min-height: 31px; border: 0; }
    .team-roster-coverage-grid strong { color: #203654; font-size: 14px; font-weight: 950; }
    .team-roster-coverage-grid small { color: #8794a6; font-size: 7px; font-weight: 850; }
    .team-roster-position-coverage > p { margin: 13px 0 0; border-top: 1px solid #e5ebf2; padding-top: 11px; color: #718096; font-size: 9px; line-height: 1.4; }
    .team-roster-position-coverage > p.is-ready { color: #137240; }

    .team-roster-next-match { display: grid; gap: 3px; }
    .team-roster-next-match span { color: #77869a; font-size: 8px; font-weight: 850; }
    .team-roster-next-match strong { overflow: hidden; color: #203654; font-size: 12px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
    .team-roster-readiness-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
    .team-roster-readiness-grid > div { display: grid; justify-items: center; gap: 2px; border: 1px solid #dbe4ee; border-radius: 10px; padding: 9px 4px; background: #f8fbfd; }
    .team-roster-readiness-grid strong { color: #1c3858; font-size: 18px; font-weight: 950; }
    .team-roster-readiness-grid span { color: #718096; font-size: 7px; font-weight: 850; }
    .team-roster-plan-progress { display: grid; gap: 5px; margin-top: 13px; }
    .team-roster-plan-progress > span,
    .team-lineup-check-progress > span { height: 7px; overflow: hidden; border-radius: 999px; background: #e3eaf2; }
    .team-roster-plan-progress > span b,
    .team-lineup-check-progress > span b { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3376e8, var(--team-primary)); }
    .team-roster-plan-progress small,
    .team-lineup-check-progress small { color: #718096; font-size: 8px; font-weight: 800; }
    .team-roster-lineup-readiness > button,
    .team-lineup-check > button { width: 100%; min-height: 42px; margin-top: 13px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #4380ef, #2563eb); color: #fff; font-size: 10px; font-weight: 950; }
    .team-roster-lineup-readiness > button:disabled { background: #d9e1eb; color: #7a899d; }

    .team-manager-panel[data-team-manager-panel="schedule"] {
        border-radius: 18px;
        padding: 18px;
        box-shadow: 0 8px 25px rgba(32,54,83,.06);
    }

    .team-schedule-heading h3,
    .team-results-heading h3,
    .team-management-heading h3 { font-size: 24px; }
    .team-schedule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .team-schedule-card { height: 100%; border-radius: 15px; background: #fff; box-shadow: 0 5px 15px rgba(31,52,79,.045); }

    .team-manager-panel[data-team-manager-panel="results"] { gap: 15px; }
    .team-results-heading { border-radius: 18px; padding: 18px; box-shadow: 0 8px 25px rgba(32,54,83,.06); }
    .team-trends-card { margin: 0; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(32,54,83,.06); }
    .team-trends-summary { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
    .team-trends-summary .team-trend-secondary { display: block; }
    .team-trends-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .team-trends-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-season-result-card { border-radius: 18px; box-shadow: 0 8px 25px rgba(32,54,83,.06); }
    .team-season-summary { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .team-season-table-wrap table { width: 100%; min-width: 980px; }

    .team-management-heading { margin-bottom: 14px; }
    .team-management-pro-summary {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1px;
        overflow: hidden;
        margin-bottom: 15px;
        border: 1px solid #d5dfeb;
        border-radius: 16px;
        background: #dfe6ef;
        box-shadow: 0 8px 25px rgba(32,54,83,.055);
    }

    .team-management-pro-summary article { min-width: 0; display: grid; gap: 3px; padding: 15px; background: #fff; }
    .team-management-pro-summary span { color: var(--team-primary-dark); font-size: 7px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
    .team-management-pro-summary strong { overflow: hidden; color: #1c334f; font-size: 15px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
    .team-management-pro-summary small { overflow: hidden; color: #75859a; font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
    .team-management-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .team-management-actions button { min-height: 78px; border-radius: 15px; padding: 12px 14px; box-shadow: 0 5px 15px rgba(31,52,79,.045); }
    .team-management-actions button > span { width: 44px; height: 44px; }
    .team-danger-section { margin-top: 15px; border-radius: 16px; }
    .team-deleted-section { border-radius: 16px; }

    .team-lineup-planner-content > .subscreen-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 62px;
        margin-bottom: 12px;
        border: 0;
        padding: 0;
    }

    .team-lineup-planner-content > .subscreen-header h2 { font-size: 31px; }
    .team-lineup-planner-content > .subscreen-header .subscreen-back { min-height: 40px; }
    .team-lineup-pro-tabs { margin-bottom: 14px; }

    .team-lineup-pro-layout {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(470px, 1.55fr) minmax(300px, .85fr);
        align-items: start;
        gap: 16px;
    }

    .team-lineup-matrix {
        min-width: 0;
        overflow: hidden;
        border: 1px solid #d5dfeb;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 8px 25px rgba(32,54,83,.065);
    }

    .team-lineup-matrix-heading {
        min-height: 61px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        border-bottom: 1px solid #e2e8f0;
        padding: 12px 16px;
    }

    .team-lineup-matrix-heading h3 { margin-top: 3px; color: #172b47; font-size: 17px; font-weight: 950; }
    .team-lineup-matrix-heading .team-lineup-help { max-width: 260px; margin: 0; padding: 0; background: transparent; color: #718096; font-size: 9px; text-align: right; }
    .team-lineup-grid { border: 0; border-radius: 0; box-shadow: none; }
    .team-lineup-row { grid-template-columns: minmax(135px, 1.25fr) repeat(4, minmax(70px, 1fr)); }
    .team-lineup-player,
    .team-lineup-cell { min-height: 49px; }
    .team-lineup-player { justify-content: flex-start; padding-inline: 12px; text-align: left; }
    .team-lineup-player strong { font-size: 11px; }
    .team-lineup-header .team-lineup-player,
    .team-lineup-quarter-heading { min-height: 40px; font-size: 10px; }
    .team-lineup-cell.is-preview-quarter { background: #f2f7ff; }
    .team-lineup-badge { min-height: 35px; border-radius: 8px; font-size: 10px; }
    .team-lineup-add-row .team-lineup-player > button { min-height: 35px; font-size: 8px; }

    .team-lineup-pro-aside { min-width: 0; display: grid; align-content: start; gap: 16px; }
    .team-lineup-preview-tabs { display: flex; gap: 4px; }
    .team-lineup-preview-tabs button { min-width: 32px; min-height: 30px; border: 1px solid #cbd7e5; border-radius: 8px; background: #f7f9fc; color: #53657d; font-size: 8px; font-weight: 950; }
    .team-lineup-preview-tabs button[aria-selected="true"] { border-color: #2b69d3; background: #2868d8; color: #fff; }

    .team-lineup-court-preview {
        position: relative;
        aspect-ratio: 8 / 5;
        overflow: hidden;
        margin: 13px;
        border: 3px solid #9aa1aa;
        border-radius: 5px;
        background: linear-gradient(180deg, #fff, #f8fafc 50%, #fff);
        box-shadow: 0 8px 22px rgba(15, 32, 59, .08);
    }

    .team-lineup-court-markings { position: absolute; inset: 0; pointer-events: none; }
    .team-lineup-court-markings::before,
    .team-lineup-court-markings::after { position: absolute; top: 0; bottom: 0; width: 2px; background: #9aa1aa; content: ''; }
    .team-lineup-court-markings::before { left: 33.333%; }
    .team-lineup-court-markings::after { right: 33.333%; }
    .team-lineup-court-markings > span { position: absolute; top: 50%; left: 50%; width: 31px; height: 31px; border: 2px solid #a1a1aa; border-radius: 50%; transform: translate(-50%, -50%); }
    .team-lineup-court-markings > i,
    .team-lineup-court-markings > b { position: absolute; top: 50%; width: auto; height: 62%; aspect-ratio: 1; border: 2px solid #a1a1aa; border-radius: 50%; }
    .team-lineup-court-markings > i { left: 0; transform: translate(-50%, -50%); }
    .team-lineup-court-markings > b { right: 0; transform: translate(50%, -50%); }

    .team-lineup-court-player { position: absolute; z-index: 1; width: 90px; display: grid; justify-items: center; gap: 3px; transform: translate(-50%, -50%); text-align: center; }
    .team-lineup-court-player .team-lineup-badge { width: 42px; min-height: 42px; border: 0; border-radius: 50%; color: #fff; font-size: 12px; box-shadow: 0 3px 8px rgba(15,23,42,.2); }
    .team-lineup-court-player strong { width: 100%; overflow: hidden; color: #17223b; font-size: 9px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
    .team-lineup-court-player.is-gs { left: 10%; top: 50%; }
    .team-lineup-court-player.is-ga { left: 27%; top: 25%; }
    .team-lineup-court-player.is-wa { left: 27%; top: 77%; }
    .team-lineup-court-player.is-c { left: 50%; top: 50%; }
    .team-lineup-court-player.is-wd { left: 73%; top: 23%; }
    .team-lineup-court-player.is-gd { left: 73%; top: 75%; }
    .team-lineup-court-player.is-gk { left: 84%; top: 50%; }
    .team-lineup-court-player.is-gs .team-lineup-badge { background: #ed174c; }
    .team-lineup-court-player.is-ga .team-lineup-badge { background: #ed7148; }
    .team-lineup-court-player.is-wa .team-lineup-badge { background: #f7a928; }
    .team-lineup-court-player.is-c .team-lineup-badge { background: #4e9a47; }
    .team-lineup-court-player.is-wd .team-lineup-badge { background: #7849ad; }
    .team-lineup-court-player.is-gd .team-lineup-badge { background: #258f81; }
    .team-lineup-court-player.is-gk .team-lineup-badge { background: #29496f; }

    .team-lineup-check { padding: 15px; }
    .team-lineup-check-list { display: grid; gap: 9px; }
    .team-lineup-check-list > div { display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 8px; color: #54667d; }
    .team-lineup-check-list span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #edf2f7; color: #52709a; font-size: 11px; font-weight: 950; }
    .team-lineup-check-list strong { font-size: 9px; font-weight: 900; }
    .team-lineup-check-list .is-complete span { background: #dcfce7; color: #168044; }
    .team-lineup-check-list .is-warning span { background: #fff4dc; color: #aa650d; }
    .team-lineup-check-progress { display: grid; gap: 5px; margin-top: 14px; }
    .team-lineup-position-panel { width: min(100%, 510px); }

    .player-cards-content > .subscreen-header {
        min-height: 61px;
        margin: 0;
    }

    .player-cards-content > .subscreen-header h2 { font-size: 31px; }
    .player-cards-filters { width: min(100%, 440px); grid-template-columns: 1fr 1fr; margin: 0 0 12px auto; transform: translateY(-57px); }
    .player-cards-filters + .player-cards-hero { margin-top: -48px; }
    .player-cards-hero { grid-template-columns: 70px minmax(0, 1fr) auto; border: 1px solid #d5dfeb; border-radius: 18px; padding: 18px 20px; background: linear-gradient(115deg, color-mix(in srgb, var(--team-primary) 92%, #10203b), var(--team-primary)); box-shadow: 0 9px 25px rgba(32,54,83,.12); }
    .player-cards-hero h3 { font-size: 28px; }
    .player-cards-avatar { width: 70px; height: 70px; }

    .player-cards-pro-summary { display: grid; gap: 15px; margin-top: 15px; }
    .player-cards-pro-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #d5dfeb; border-radius: 16px; background: #dfe6ef; box-shadow: 0 8px 25px rgba(32,54,83,.055); }
    .player-cards-pro-kpis article { min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 14px 8px; background: #fff; text-align: center; }
    .player-cards-pro-kpis span { color: #718096; font-size: 7px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
    .player-cards-pro-kpis strong { color: #172b47; font-size: 22px; font-weight: 950; }
    .player-cards-pro-kpis small { overflow: hidden; max-width: 100%; color: #8190a3; font-size: 7px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
    .player-cards-pro-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); align-items: start; gap: 15px; }
    .player-cards-pro-trend > svg { display: block; width: 100%; min-height: 220px; padding: 10px 14px 2px; }
    .player-cards-pro-trend svg path { fill: none; stroke-width: 3; }
    .player-cards-pro-gridline { stroke: #e2e8f0; stroke-width: 1; }
    .player-cards-pro-goal-line { stroke: #139da0; }
    .player-cards-pro-accuracy-line { stroke: #2563eb; stroke-dasharray: 7 5; }
    .player-cards-pro-goal-dot { fill: #139da0; stroke: #fff; stroke-width: 2; }
    .player-cards-pro-accuracy-dot { fill: #2563eb; stroke: #fff; stroke-width: 2; }
    .player-cards-pro-trend svg text { fill: #40546f; font-size: 9px; font-weight: 850; }
    .player-cards-pro-opponent { fill: #718096 !important; font-size: 8px !important; }
    .player-cards-pro-legend { display: flex; align-items: center; gap: 5px; color: #718096; font-size: 8px; font-weight: 850; }
    .player-cards-pro-legend i { width: 8px; height: 8px; border-radius: 50%; background: #139da0; }
    .player-cards-pro-legend i:nth-of-type(2) { margin-left: 7px; background: #2563eb; }
    .player-cards-pro-role { min-width: 0; }
    .player-cards-pro-context-table { display: grid; }
    .player-cards-pro-context-table > div,
    .player-cards-pro-context-table > article { min-width: 0; display: grid; grid-template-columns: minmax(120px, 1.4fr) repeat(3, minmax(72px, .7fr)); align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid #e7edf4; padding: 8px 14px; }
    .player-cards-pro-context-table > .is-heading { border-top: 0; background: #f7f9fc; color: #718096; font-size: 8px; font-weight: 950; }
    .player-cards-pro-context-table article span { overflow: hidden; color: #324963; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
    .player-cards-pro-context-table article strong { color: #1d3655; font-size: 10px; font-weight: 950; text-align: center; }
    .player-cards-pro-side { min-width: 0; display: grid; gap: 15px; }
    .player-cards-pro-position-split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 14px; }
    .player-cards-pro-position-split > div { display: grid; grid-template-columns: 40px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; gap: 1px 9px; border: 1px solid #dce5ef; border-radius: 11px; padding: 9px; }
    .player-cards-pro-position-split .team-lineup-badge { grid-row: 1 / span 2; min-height: 36px; }
    .player-cards-pro-position-split strong { color: #1d3655; font-size: 15px; font-weight: 950; }
    .player-cards-pro-position-split small { color: #7f8da0; font-size: 7px; font-weight: 800; }
    .player-cards-pro-position-split > p { grid-column: 1/-1; color: #718096; font-size: 9px; }
    .player-cards-pro-insight { min-height: 72px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid #bce4dd; border-radius: 15px; padding: 13px; background: #f0fbf8; color: #175c53; }
    .player-cards-pro-insight > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #d8f4ed; font-size: 17px; font-weight: 950; }
    .player-cards-pro-insight p { font-size: 9px; font-weight: 850; line-height: 1.45; }
    .player-cards-pro-recent > header button { min-height: 34px; border: 1px solid #b8c9df; border-radius: 9px; padding: 0 11px; background: #f8fafc; color: #2863c5; font-size: 9px; font-weight: 950; }
    .player-cards-pro-recent > div { display: grid; }
    .player-cards-pro-recent article { min-width: 0; display: grid; grid-template-columns: minmax(0,1.5fr) auto auto 52px; align-items: center; gap: 14px; min-height: 48px; border-top: 1px solid #e7edf4; padding: 8px 14px; }
    .player-cards-pro-recent article:first-child { border-top: 0; }
    .player-cards-pro-recent article span { overflow: hidden; color: #324963; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
    .player-cards-pro-recent article strong { color: #10203b; font-size: 12px; font-weight: 950; }
    .player-cards-pro-recent article b { color: var(--team-primary-dark); font-size: 9px; font-weight: 900; }
    .player-cards-pro-recent article small { color: #18846a; font-size: 9px; font-weight: 950; text-align: right; }
    .player-cards-pro-empty { padding: 20px; color: #718096; font-size: 10px; text-align: center; }
    .player-cards-position-tabs { margin: 16px 0 10px; }
    .player-cards-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
    .player-cards-comparison-head,
    .player-cards-sample { grid-column: 1 / -1; }
    .player-cards-trend { grid-column: 1 / -1; }

    #report-action-bar {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 16px;
        border: 0;
        padding: 0 0 12px;
    }
    .report-action-copy { display: grid; gap: 2px; }
    .report-action-copy span { color: #2563eb; font-size: 8px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
    .report-action-copy h2 { color: #10203b; font-size: 31px; font-weight: 950; letter-spacing: -.035em; }
    .report-action-buttons { display: flex; justify-content: flex-end; }
    .report-action-buttons > button { min-width: 110px; min-height: 41px; border: 1px solid #bdcadd; border-radius: 10px; background: #fff; color: #304762; box-shadow: 0 4px 12px rgba(28,50,80,.05); }
    .report-action-buttons > button.report-delete-match { border-color: #fda4af; background: #fff5f5; color: #be123c; }
    .report-pro-content > .report-document-header { margin: 0; border: 0; padding: 0 0 12px; background: transparent; text-align: left; }
    .report-pro-content > .report-document-header h1 { color: #10203b; font-size: 30px; font-weight: 950; letter-spacing: -.035em; }
    .report-pro-content > .report-document-header p { color: #718096; font-size: 10px; font-weight: 800; }
    .report-pro-content > .report-document-header button { min-height: 41px; border-radius: 10px; }
    .report-section-header { position: static; border: 1px solid #d5dfeb; border-radius: 13px; padding: 9px 10px; box-shadow: 0 5px 17px rgba(30,50,79,.05); }
    .report-section-header h2 { font-size: 16px; }

    .report-pro-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        margin: 12px 0 14px;
        border-bottom: 1px solid #ccd7e5;
        scrollbar-width: thin;
    }

    .report-pro-nav.hidden { display: none; }
    .report-pro-nav button { flex: 0 0 auto; min-height: 42px; border: 0; border-bottom: 3px solid transparent; padding: 0 14px; background: transparent; color: #586a81; font-size: 10px; font-weight: 950; }
    .report-pro-nav button[aria-selected="true"] { border-bottom-color: #2563eb; color: #245fc3; }
    .report-pro-nav button.hidden { display: none; }
    #print-tables { margin-top: 0; }
    #print-tables > .live-stats-body { max-width: none; gap: 14px; }
    #print-tables .live-stats-scoreboard { border-radius: 18px; box-shadow: 0 8px 25px rgba(32,54,83,.065); }
    #print-tables .match-story-card { border-radius: 18px; padding: 17px 19px; box-shadow: 0 8px 25px rgba(32,54,83,.055); }
    #print-tables .match-story-copy { font-size: 13px; line-height: 1.5; }

    .completed-match-coach-report-attacking,
    .completed-match-coach-report-midcourt,
    .completed-match-coach-report-defense {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .completed-match-coach-report-attacking > .live-stats-card,
    .completed-match-coach-report-midcourt > .live-stats-card,
    .completed-match-coach-report-defense > .live-stats-card {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .completed-match-coach-report-penalties {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .report-pro-overview { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
    .report-pro-flow > svg { display: block; width: 100%; min-height: 198px; padding: 8px 14px 2px; }
    .report-pro-flow-grid { stroke: #e2e8f0; stroke-width: 1; }
    .report-pro-flow-a,
    .report-pro-flow-b { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
    .report-pro-flow-a { stroke: var(--team-primary); }
    .report-pro-flow-b { stroke: var(--opponent-primary); }
    .report-pro-flow-a-dot { fill: var(--team-primary); }
    .report-pro-flow-b-dot { fill: var(--opponent-primary); }
    .report-pro-flow-axis-label { fill: #7a899d; font-size: 9px; font-weight: 900; font-variant-numeric: tabular-nums; }
    .report-pro-flow-legend { display: flex; align-items: center; gap: 5px; color: #718096; font-size: 8px; font-weight: 850; }
    .report-pro-flow-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--team-primary); }
    .report-pro-flow-legend i:nth-of-type(2) { margin-left: 7px; background: var(--opponent-primary); }
    .report-pro-empty { padding: 35px 15px; color: #718096; font-size: 10px; text-align: center; }
    .report-pro-key-table { display: grid; }
    .report-pro-key-table > div { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(70px,.7fr) minmax(70px,.7fr); min-height: 38px; border-top: 1px solid #e7edf4; }
    .report-pro-key-table > div:first-child { border-top: 0; background: #f7f9fc; }
    .report-pro-key-table span,
    .report-pro-key-table strong { display: flex; align-items: center; padding: 7px 12px; }
    .report-pro-key-table span { color: #53657d; font-size: 9px; font-weight: 850; }
    .report-pro-key-table strong { justify-content: center; border-left: 1px solid #e7edf4; color: #1d3655; font-size: 10px; font-weight: 950; }
    .report-pro-key-table > div strong:first-of-type { color: var(--team-primary-dark); }
    .report-pro-leaders > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e4eaf2; }
    .report-pro-leaders article { min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 19px 10px; background: #fff; text-align: center; }
    .report-pro-leaders article span { overflow: hidden; max-width: 100%; color: #425873; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
    .report-pro-leaders article strong { color: #10203b; font-size: 25px; font-weight: 950; }
    .report-pro-leaders article small { color: #748398; font-size: 8px; font-weight: 800; }
    .report-pro-lineups > div { display: grid; }
    .report-pro-lineups article { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid #e7edf4; padding: 6px 11px; }
    .report-pro-lineups article:first-child { border-top: 0; }
    .report-pro-lineups article > strong { color: #53657d; font-size: 9px; font-weight: 950; }
    .report-pro-lineups article > div { min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
    .report-pro-lineups article span { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 3px; overflow: hidden; border-radius: 7px; padding: 4px; background: #f1f5f9; color: #354a65; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
    .report-pro-lineups article span b { color: var(--team-primary-dark); }

    .completed-match-coach-report > .live-stats-card:not(.match-story-card),
    .completed-match-summary > .live-stats-card { border-radius: 18px; box-shadow: 0 8px 25px rgba(32,54,83,.055); }
}

@media (min-width: 980px) {
    .workspace-pro-frame { grid-template-columns: 168px minmax(0, 1fr); }
    .workspace-pro-sidebar { padding-right: 15px; padding-left: 15px; }
}

@media (min-width: 1260px) {
    .workspace-pro-frame { grid-template-columns: 194px minmax(0, 1fr); }
    .workspace-pro-sidebar { padding-right: 20px; padding-left: 20px; }
    .workspace-pro-sidebar nav > button,
    .workspace-pro-sidebar nav > span { min-height: 54px; padding-right: 14px; padding-left: 14px; }
    .workspace-pro-sidebar nav b { font-size: 12px; }
    .team-trends-summary .team-trend-wide { display: block; }
}

@media (min-width: 700px) and (max-width: 900px) {
    .workspace-pro-topbar { grid-template-columns: auto minmax(255px, 1fr) auto; padding-inline: 16px; }
    .workspace-pro-brand-mark { width: 180px; height: 48px; flex-basis: 180px; }
    .workspace-pro-frame { grid-template-columns: 112px minmax(0,1fr); }
    .workspace-pro-sidebar { padding-inline: 9px; }
    .workspace-pro-sidebar nav > button,
    .workspace-pro-sidebar nav > span { grid-template-columns: 23px minmax(0,1fr); gap: 5px; padding-inline: 8px; }
    .workspace-pro-sidebar nav b { font-size: 9px; }
    .workspace-pro-sidebar-note { display: none; }
    .team-selector-controls { grid-template-columns: minmax(125px, .8fr) minmax(190px, 1.4fr) minmax(125px, .8fr); }
    .team-roster-pro-layout,
    .team-lineup-pro-layout,
    .player-cards-pro-grid,
    .report-pro-overview { grid-template-columns: 1fr; }
    .team-roster-pro-insights { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .team-lineup-court-preview { aspect-ratio: 8 / 5; }
    .team-management-pro-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .player-cards-filters { width: min(100%, 360px); }

    .completed-match-coach-report-attacking,
    .completed-match-coach-report-midcourt,
    .completed-match-coach-report-defense {
        grid-template-columns: minmax(0, 1fr);
    }
}
