/* Blueprint Pitch Lab — visual system. The base (tokens, sign-in, dark
   sidebar/topbar, panels, data table, badges) is eval.blueprintath's, which is
   Finance's, so the split-off dashboards read as one product. Below it, the
   Trackman report components from the original Pitch-Lab/, rewritten from its
   dark theme for the light working area: white cards on the cool canvas, plots
   on the sunk surface, navy for values, Blueprint blue for accents. */
@font-face {
    font-family: "Garp Sans Wide";
    src: url("/assets/Fonts/Garp Sans Wide.otf") format("opentype");
    font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Roboto";
    src: url("/assets/Fonts/Roboto-Medium.ttf") format("truetype");
    font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
    /* Brand */
    --navy: #13294C;
    --navy-2: #1D3A66;
    --blue: #2F6FB0;
    --blue-wash: #EDF3FA;
    --blue-line: #C9DCEF;

    /* Status. Deliberately the darker, desaturated set from Eval rather than
       bright dashboard colours — these sit on white and have to pass as text. */
    --green: #157F4F;
    --green-wash: #E9F5EF;
    --green-line: #B4DCC8;
    --amber: #94620B;
    --amber-wash: #FDF4E4;
    --amber-line: #E8D2A4;
    --red: #B23A2B;
    --red-wash: #FBEDEB;
    --red-line: #EBC2BB;

    /* Light main window (Eval) */
    --canvas: #F6F8FA;
    --surface: #FFFFFF;
    --sunk: #F9FAFC;
    --ink: #0F1620;
    --ink-2: #3C4754;
    --ink-3: #68727F;
    --ink-4: #98A1AC;
    --line: #E4E8ED;
    --line-strong: #CDD5DE;

    /* Dark sidebar (Command) */
    --sb-bg: #232323;
    --sb-surface: #2A2A2A;
    --sb-raised: #313131;
    --sb-border: #333333;
    --sb-text: #F5F6F7;
    --sb-text-2: #ABADB2;
    --sb-text-3: #6C6E73;
    --sb-muted: #4A4A4A;
    --sb-blue: #91BEDD;

    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 10px;

    --shadow: 0 1px 2px rgba(15, 22, 32, .05);
    --shadow-pop: 0 4px 14px rgba(15, 22, 32, .09);
    --shadow-lg: 0 24px 64px rgba(15, 22, 32, .18);

    --font-display: "Garp Sans Wide", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0; background: var(--canvas); color: var(--ink);
    font-family: var(--font-body); font-size: 14px; line-height: 1.5;
    -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; }
.is-hidden { display: none !important; }
.muted { color: var(--ink-3); }

/* Tabular figures wherever numbers are compared down a column, so
   measurements line up digit for digit. */
.num, .data-table td.num, .data-table th.num {
    font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Mask-based icon system, carried over from Command so every
     dashboard draws from one icon set. ---------- */
.ico {
    display: inline-block; background: currentColor; flex: 0 0 auto;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
}
.ico-athletes { -webkit-mask-image: url("/assets/Icons/users-svgrepo-com.svg"); mask-image: url("/assets/Icons/users-svgrepo-com.svg"); }
.ico-apps { -webkit-mask-image: url("/assets/Icons/apps-grid.svg"); mask-image: url("/assets/Icons/apps-grid.svg"); }
.ico-add { -webkit-mask-image: url("/assets/Icons/add-line.svg"); mask-image: url("/assets/Icons/add-line.svg"); }

/* ============================ Sign in ============================ */
/* A drafting sheet: the navy grid (images/login-grid.webp — the supplied grid
   asset, recoloured navy on transparent) on the light canvas and one compact
   white card. The grid fades toward the edges so
   it frames the card instead of competing with it. */
.login-screen {
    position: relative; min-height: 100vh; overflow: hidden;
    display: grid; place-items: center; padding: 40px 20px;
    background: var(--canvas);
}
.login-grid {
    position: absolute; inset: -2%; pointer-events: none;
    background: url("images/login-grid.webp") center / cover no-repeat;
    opacity: .62;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 45%, transparent 100%);
}

.login-panel {
    position: relative; width: 100%; max-width: 380px; padding: 36px 34px 28px;
    text-align: center; background: var(--surface);
    border: 1px solid rgba(228, 232, 237, .8); border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 22, 32, .04), 0 28px 60px rgba(15, 22, 32, .10);
}
/* logo-mark.png is drawn black; masking it lets the card show it in navy. */
.login-logo {
    display: block; width: 44px; height: 43px; margin: 0 auto 16px; background: var(--navy);
    -webkit-mask: url("/assets/Logos/logo-mark.png") center / contain no-repeat;
    mask: url("/assets/Logos/logo-mark.png") center / contain no-repeat;
}
.login-wordmark {
    margin: 0; font-family: var(--font-display); font-size: 21px; line-height: 1.1;
    text-transform: uppercase; color: var(--navy);
}
/* Product name between two blue rules. */
.login-product {
    display: flex; align-items: center; justify-content: center; gap: 22px;
    margin: 11px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .42em;
    text-transform: uppercase; color: var(--blue);
}
.login-product::before, .login-product::after { content: ""; width: 40px; height: 1.5px; background: var(--blue); }
/* letter-spacing trails the last letter; pull it back so the word centres. */
.login-product span { margin-right: -.42em; }
.login-tag {
    margin: 12px 0 28px; font-size: 10px; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--ink-4);
}

.login-form { display: grid; gap: 14px; text-align: left; }
.login-field { display: grid; gap: 7px; }
.login-field > label,
.field > span {
    font-size: 11px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ink-3);
}
.login-input { position: relative; }
.login-input input {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1px solid var(--line-strong); border-radius: 8px;
    background: var(--surface); color: var(--ink); font-size: 14px; outline: none;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.login-input input::placeholder { color: var(--ink-4); }
.login-input input#password { padding-right: 48px; }
.login-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 176, .13); }
.password-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; display: grid; place-items: center;
    border: none; border-radius: 6px; background: none; color: var(--ink-4);
}
.password-toggle:hover { color: var(--navy); background: var(--sunk); }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle .eye-off { display: none; }
.password-toggle[aria-pressed="true"] .eye-on { display: none; }
.password-toggle[aria-pressed="true"] .eye-off { display: block; }

.login-submit {
    position: relative; width: 100%; height: 48px; margin-top: 4px;
    border-radius: 8px; font-size: 13px; letter-spacing: .02em;
}
.login-submit svg { position: absolute; right: 22px; width: 18px; height: 18px; }
.login-form .link-btn { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.login-form .status { text-align: center; }
.login-form .status:empty { display: none; }

.field input, .field select, .search-input, .select-input {
    width: 100%; height: 40px; padding: 0 12px;
    border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink); outline: none;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .search-input:focus, .select-input:focus {
    border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 176, .13);
}
.link-btn {
    background: none; border: none; padding: 0; justify-self: center;
    color: var(--ink-3); font-size: 12.5px;
}
.link-btn:hover { color: var(--navy); text-decoration: underline; }
.status { margin: 0; min-height: 18px; font-size: 12.5px; color: var(--red); }

@media (max-width: 520px) {
    .login-panel { padding: 30px 22px 24px; }
    .login-product::before, .login-product::after { width: 30px; }
}

/* ============================ Buttons ============================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 16px; border-radius: var(--r-sm);
    border: 1px solid transparent; font-family: var(--font-display);
    font-size: 11.5px; text-transform: uppercase; white-space: nowrap;
    /* Start Evaluation is an <a> wearing .btn — without these it inherits the
       browser's link underline and visited colour. */
    text-decoration: none; cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .08s var(--ease);
}
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 10.5px; }
.btn-block { width: 100%; height: 42px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--navy-2); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.btn-ghost:not(:disabled):hover { border-color: var(--ink-4); color: var(--ink); }
.btn-danger { background: var(--red-wash); border-color: var(--red-line); color: var(--red); }
.btn-danger:not(:disabled):hover { background: #F7DFDB; }
.btn .ico { width: 12px; height: 12px; }
.icon-btn { background: none; border: none; color: var(--ink-4); font-size: 22px; line-height: 1; padding: 0 4px; }
.icon-btn:hover { color: var(--ink); }

/* ======================= Shell: dark sidebar ======================= */
.app-shell-root { display: flex; height: 100vh; overflow: hidden; }

.app-sidebar {
    width: 220px; flex: 0 0 220px; display: flex; flex-direction: column;
    padding: 16px 10px 14px; background: var(--sb-bg);
    border-right: 1px solid var(--sb-border); overflow-y: auto;
    font-family: var(--font-body);
}
.sidebar-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 24px; }
.sidebar-logo { width: 46px; height: 34px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 2px 8px rgba(123,169,208,.25)); }
.sidebar-wordmark { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: .3px; color: #fff; white-space: nowrap; }
/* Pitch Lab's wordmark (white PITCH, red LAB) beside the Blueprint mark, in
   place of the "Blueprint" text — drawn for a dark ground, which the sidebar
   always is. min-width: 0 lets it shrink rather than push past the sidebar. */
.sidebar-product-logo { display: block; flex: 1 1 auto; min-width: 0; max-width: 128px; height: auto; }

.dashboard-switcher-wrap { position: relative; }
.dashboard-switcher {
    width: 100%; height: 38px; border: 1px solid var(--sb-border); border-radius: 9px;
    background: var(--sb-surface); color: var(--sb-text-2);
    display: flex; align-items: center; gap: 8px; padding: 0 10px;
}
.dashboard-switcher:hover { background: var(--sb-raised); color: #fff; }
.dashboard-switcher .ico { width: 14px; height: 14px; }
.dashboard-switcher-label { flex: 1; text-align: left; font-size: 13px; font-weight: 600; }
.dashboard-switcher-chevron { font-size: 11px; color: var(--sb-text-3); }
.dashboard-switcher-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
    background: var(--sb-raised); border: 1px solid var(--sb-border); border-radius: 9px;
    box-shadow: 0 18px 42px rgba(0,0,0,.5); padding: 5px; display: grid; gap: 2px;
}
.dashboard-switcher-item {
    border-radius: 6px; padding: 8px 10px; font-size: 12.5px; color: var(--sb-text-2);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.dashboard-switcher-item.is-current { color: var(--sb-blue); background: rgba(123,169,208,.14); }

.sidebar-divider { height: 1px; margin: 12px 8px 10px; background: var(--sb-border); }
.sidebar-nav-group-label {
    margin: 4px 0 6px 10px; color: var(--sb-muted); font-size: 9px;
    letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-tab {
    width: 100%; height: 38px; border: 0; border-radius: 7px; background: transparent;
    color: var(--sb-text-3); font-size: 14px; font-weight: 600;
    display: flex; align-items: center; padding: 0 10px; text-align: left;
}
.sidebar-tab .ico { width: 17px; height: 17px; margin-right: 10px; }
.sidebar-tab:hover:not(.is-active) { color: var(--sb-text-2); background: rgba(255,255,255,.03); }
.sidebar-tab.is-active { color: var(--sb-blue); background: rgba(123,169,208,.14); box-shadow: inset 0 0 0 1px var(--sb-blue); }

.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--sb-border); display: grid; gap: 8px; }
.private-tag {
    margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .13em;
    color: var(--sb-text-3); display: flex; align-items: center; gap: 6px;
}
.private-tag .lock { width: 6px; height: 6px; border-radius: 50%; background: var(--sb-blue); }

/* ======================= Shell: light main ======================= */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

/* Dark, matching the sidebar exactly, so the two form one continuous frame
   around the light working area. Carries the page name and the account menu —
   nothing else. Navigation lives in the sidebar; duplicating it here was the
   thing most likely to drift out of sync. */
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    height: 64px; padding: 0 24px; flex: 0 0 auto;
    background: var(--sb-bg); border-bottom: 1px solid var(--sb-border);
}
.app-header-title {
    font-family: var(--font-display); font-size: 26px; font-weight: 700;
    letter-spacing: .3px; color: #fff; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* Account chip, dark variant to sit on the header. */
.account-menu-wrap { position: relative; flex: 0 0 auto; }
.account-card {
    display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px;
    border-radius: 999px; border: 1px solid var(--sb-border);
    background: var(--sb-surface); color: var(--sb-text-2);
}
.account-card:hover { background: var(--sb-raised); color: #fff; }
.account-avatar {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy); color: #fff; font-size: 11px; font-weight: 700;
}
.account-email { font-size: 12px; }
.account-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; z-index: 40;
    background: var(--sb-raised); border: 1px solid var(--sb-border);
    border-radius: var(--r-sm); box-shadow: 0 18px 42px rgba(0,0,0,.5); padding: 5px;
}
.account-dropdown-item {
    width: 100%; padding: 8px 11px; border: none; border-radius: var(--r-xs);
    background: none; color: var(--sb-text-2); text-align: left; font-size: 13px;
}
.account-dropdown-item:hover { background: rgba(255,255,255,.06); color: #fff; }

.app-views { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.view { display: none; }
.view.is-active { display: block; animation: viewIn .18s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.load-error {
    margin: 0 0 16px; padding: 11px 14px; border-radius: var(--r-sm);
    border: 1px solid var(--red-line); background: var(--red-wash); color: var(--red); font-size: 13px;
}

/* ---------- Page head ---------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: 18px; min-height: 38px;
}
.page-blurb { margin: 0; color: var(--ink-3); font-size: 13px; }
.page-head-actions { display: flex; align-items: center; gap: 10px; }
.back-link { background: none; border: none; padding: 0; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.back-link:hover { color: var(--navy); text-decoration: underline; }


/* ---------- Panels ---------- */
.panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.panel-title { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; color: var(--navy); }
.panel-body { padding: 18px; }
.split-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    padding: 10px 18px; text-align: left; white-space: nowrap;
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-4); background: var(--sunk); border-bottom: 1px solid var(--line);
}
.data-table td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .num, .data-table th.num { text-align: right; }
.col-action, th.col-action { text-align: right; }
.row-hover { cursor: pointer; transition: background .12s var(--ease); }
.row-hover:hover { background: var(--sunk); }
.empty-state { padding: 34px 18px; text-align: center; color: var(--ink-4); }

.cell-player { display: flex; align-items: center; gap: 10px; }
.cell-player-text { line-height: 1.3; min-width: 0; }
.cell-player-text strong { display: block; }
.cell-player-text .muted { font-size: 11.5px; }
.avatar {
    width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
    display: grid; place-items: center; background: var(--navy); color: #fff;
    font-size: 11px; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 999px; white-space: nowrap;
    border: 1px solid var(--line-strong); background: var(--sunk); color: var(--ink-2);
    font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.badge-good { border-color: var(--green-line); background: var(--green-wash); color: var(--green); }
.badge-bad { border-color: var(--red-line); background: var(--red-wash); color: var(--red); }
.badge-warn { border-color: var(--amber-line); background: var(--amber-wash); color: var(--amber); }
.badge-info { border-color: var(--blue-line); background: var(--blue-wash); color: var(--blue); }
.badge-neutral { border-color: var(--line-strong); background: var(--sunk); color: var(--ink-3); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    height: 30px; padding: 0 12px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.table-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-input { width: 210px; height: 32px; font-size: 13px; }
.toggle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.toggle input { accent-color: var(--navy); }
.count-note { font-size: 12px; color: var(--ink-4); }

/* ---------- Athlete detail ---------- */
.pf-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px; }
.pf-identity { display: flex; align-items: center; gap: 14px; }
.pf-identity .avatar { width: 46px; height: 46px; font-size: 15px; }
.pf-identity h2 { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; color: var(--navy); }
.pf-identity p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }
.connection-row { display: flex; gap: 7px; flex-wrap: wrap; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.kv-list { display: grid; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv > span:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-4); }

.placeholder-card { padding: 44px 32px; text-align: center; }
.placeholder-card h3 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.placeholder-card p { margin: 0 auto 10px; max-width: 540px; color: var(--ink-2); }


/* ============================ Shared bits ============================ */
.fine-print { margin: 0; font-size: 11.5px; color: var(--ink-4); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.search-input { width: 240px; }
.cat-tag {
    display: inline-block; font: 600 11px/1 var(--font-body);
    letter-spacing: .02em; padding: 4px 8px; border-radius: 5px;
    border: 1px solid var(--line); color: var(--ink-3); background: var(--canvas);
    white-space: nowrap;
}
.cat-tag-level { color: #35507A; border-color: #C9D6E8; background: #EEF3FA; }
.cell-empty { color: var(--ink-4); }
.row-arrow { color: var(--ink-4); font-size: 17px; }
a.dashboard-switcher-item { text-decoration: none; }
a.dashboard-switcher-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.page-head-actions .status { color: var(--ink-3); font-size: 12.5px; max-width: 260px; }

/* The report script and modals still emit the original button classes —
   map them onto Finance's .btn family instead of rewriting the markup. */
.primary-btn, .ghost-btn, .danger-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 16px; border-radius: var(--r-sm);
    border: 1px solid transparent; font-family: var(--font-display);
    font-size: 11.5px; text-transform: uppercase; white-space: nowrap; cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.primary-btn.compact, .ghost-btn.compact, .danger-btn.compact { height: 30px; padding: 0 12px; font-size: 10.5px; }
.primary-btn { background: var(--navy); color: #fff; }
.primary-btn:not(:disabled):hover { background: var(--navy-2); }
.ghost-btn { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.ghost-btn:not(:disabled):hover { border-color: var(--ink-4); color: var(--ink); }
.danger-btn { background: var(--red-wash); border-color: var(--red-line); color: var(--red); }
.danger-btn:not(:disabled):hover { background: #F7DFDB; }
.primary-btn:disabled, .ghost-btn:disabled, .danger-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ============================ Athlete banner ============================ */
.detail-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    margin-bottom: 16px; padding: 28px 32px; border-radius: 14px;
    background: var(--navy); color: #fff;
}
.detail-hero-main { display: flex; align-items: center; gap: 22px; min-width: 0; }
.avatar-xl {
    width: 88px; height: 88px; border-radius: 12px; flex: 0 0 auto;
    display: grid; place-items: center; overflow: hidden;
    background: var(--navy-2); border: 2px solid rgba(255,255,255,.18);
    font-family: var(--font-display); font-size: 28px; color: #fff;
}
.detail-hero-info { display: grid; gap: 7px; min-width: 0; }
.detail-eyebrow {
    margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: rgba(255,255,255,.5);
}
.detail-hero-info h2 {
    font-family: var(--font-display); font-size: 30px; line-height: 1.05;
    text-transform: uppercase; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-meta-item { font-size: 14px; font-weight: 700; color: #fff; }
.detail-meta-item.is-placeholder { color: rgba(255,255,255,.5); font-weight: 600; }
.detail-meta-sep { color: rgba(255,255,255,.35); }
.detail-email { font-size: 13px; color: rgba(255,255,255,.6); }
.detail-hero-stats { display: flex; align-items: stretch; }
.detail-hero-stat { display: grid; gap: 5px; justify-items: end; text-align: right; padding: 0 0 0 26px; }
.detail-hero-stat + .detail-hero-stat { margin-left: 26px; border-left: 1px solid rgba(255,255,255,.14); }
.detail-hero-stat-value { font-family: var(--font-display); font-size: 28px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.detail-hero-stat-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.detail-stat-note { margin: 4px 0 0; color: var(--ink-4); font-size: 11.5px; }

/* Report / Compare / Blueprint+ — Finance's chip row. */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.subtab {
    height: 30px; padding: 0 14px; border-radius: var(--r-sm);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-3);
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    transition: all .15s var(--ease);
}
.subtab:hover:not(.active) { border-color: var(--line-strong); color: var(--ink); }
.subtab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.library-page { display: none; }
.library-page.active { display: block; }

/* ============================ Report ============================ */
.report-section { display: grid; gap: 16px; }
.report-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.report-select {
    height: 34px; width: auto; max-width: 280px; padding: 0 30px 0 12px;
    font-size: 12.5px; font-weight: 700; color: var(--ink-2);
    background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.report-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,176,.13); }

/* Pitch-type filter: segmented control; the active pill takes its pitch colour. */
.pitch-type-pills, .separation-baseline-pills {
    display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; width: fit-content;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.pitch-type-pill {
    min-width: 76px; height: 30px; padding: 0 14px; border: 0; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    background: transparent; color: var(--ink-3); font-size: 12px; font-weight: 600;
    transition: background-color .14s var(--ease), color .14s var(--ease);
}
.pitch-type-pill:hover:not(.active) { color: var(--ink); background: var(--canvas); }
.pitch-type-pill.active { color: #fff; background: var(--pill-color, var(--navy)); }
.pitch-type-pill-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--pill-color, var(--blue)); flex: 0 0 auto; }
.pitch-type-pill.active .pitch-type-pill-dot { background: #fff; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi-grid-3up { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi-card {
    display: grid; gap: 8px; align-content: start; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--line);
    border-left: 3px solid var(--kpi-accent, var(--blue)); border-radius: var(--r-md);
    box-shadow: var(--shadow);
}
.kpi-card-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.kpi-card-value { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi-card-value.is-placeholder { color: var(--ink-4); font-size: 20px; }
.kpi-card-sub { font-size: 11.5px; color: var(--ink-3); }
.report-empty { color: var(--ink-4); font-size: 13px; padding: 4px 2px; }

.report-widgets { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.report-widgets-col { display: grid; gap: 16px; align-content: start; }
.widget-card {
    display: grid; gap: 14px; align-content: start; padding: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow);
}
.widget-card-flat { padding: 0; border: 0; background: transparent; box-shadow: none; }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.widget-head h3 { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; color: var(--navy); }

.breakdown-summary { display: flex; gap: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.breakdown-summary-item { display: grid; gap: 4px; }
.breakdown-summary-value { font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.breakdown-summary-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.breakdown-coverage-note { margin: -6px 0 0; color: var(--ink-4); font-size: 11.5px; }
.breakdown-rows { display: grid; gap: 8px; }
.breakdown-row {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 13px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .14s var(--ease), background-color .14s var(--ease), box-shadow .14s var(--ease);
}
.breakdown-row:hover { border-color: var(--row-color, var(--blue)); background: var(--sunk); }
.breakdown-row.active { border-color: var(--row-color, var(--blue)); background: var(--sunk); box-shadow: 0 0 0 1px var(--row-color, var(--blue)); }
.breakdown-row-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--row-color, var(--blue)); flex: 0 0 auto; }
.breakdown-row-name { flex: 1; min-width: 0; text-align: left; font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breakdown-row-qty { font-size: 12px; color: var(--ink-2); flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.breakdown-row-sb { font-size: 11.5px; color: var(--ink-3); flex: 0 0 auto; white-space: nowrap; }

/* Plots sit on the sunk surface so the white card reads as the frame. */
.strikezone-plot { display: grid; gap: 10px; justify-items: center; }
.strikezone-plot-inner { position: relative; width: 100%; max-width: 440px; margin: 0 auto; }
.strikezone-svg, .velocity-trend-svg, .movement-plot-svg {
    display: block; width: 100%; border-radius: var(--r-sm);
    background: var(--sunk); border: 1px solid var(--line); overflow: visible;
}
.strikezone-svg { aspect-ratio: 1 / 1; }
.strikezone-guide { stroke: var(--line-strong); }
/* Background reference only — faint enough that no pitch dot competes with it. */
.strikezone-catcher { opacity: .12; pointer-events: none; }
.strikezone-box { fill: rgba(47,111,176,.06); stroke: var(--blue); }
.strikezone-dot { cursor: pointer; transition: opacity .1s var(--ease); }
.strikezone-dot:hover { opacity: .8; }
.strikezone-view-label, .velocity-trend-caption {
    margin: 0; color: var(--ink-4); font-size: 10px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; text-align: center;
}

.chart-tooltip {
    position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 10px));
    display: grid; gap: 2px; white-space: nowrap; pointer-events: none;
    padding: 7px 10px; background: var(--navy); border-radius: var(--r-sm); box-shadow: var(--shadow-pop);
}
.chart-tooltip strong { font-size: 11.5px; color: #fff; font-weight: 700; }
.chart-tooltip span { font-size: 10.5px; color: rgba(255,255,255,.72); font-weight: 600; }

.velocity-trend-plot { display: grid; gap: 8px; }
.velocity-trend-inner { position: relative; width: 100%; }
.velocity-trend-svg { aspect-ratio: 300 / 150; cursor: crosshair; }
.velocity-trend-gridline { stroke: var(--line); stroke-width: .5; stroke-dasharray: 2 2; }
.velocity-trend-axis-line { stroke: var(--line-strong); stroke-width: .6; }
.velocity-trend-axis-label { fill: var(--ink-4); font-size: 7px; font-family: var(--font-body); }
.velocity-trend-average-line { stroke: var(--amber); stroke-width: .8; stroke-dasharray: 3 2; opacity: .9; }
.velocity-trend-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.velocity-trend-dot { stroke: var(--surface); stroke-width: .6; }
.velocity-trend-tracking-line { stroke: var(--ink-4); stroke-width: .6; stroke-dasharray: 2.5 2.5; }
.velocity-trend-hover-dot { stroke: var(--surface); stroke-width: .9; }

.separation-baseline-line { margin: 0; font-size: 13px; color: var(--ink-2); }
.separation-baseline-line strong { color: var(--navy); font-weight: 700; }
.separation-graph { position: relative; min-width: 0; }
.sep-rows { display: grid; gap: 10px; }
.sep-row { display: grid; grid-template-columns: 150px 1fr 190px; align-items: center; gap: 14px; }
.sep-row-label { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sep-row-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--row-color, var(--blue)); flex: 0 0 auto; }
.sep-row-name { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sep-row-badge {
    flex: 0 0 auto; width: 15px; height: 15px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 8.5px; font-weight: 700; color: #fff; background: var(--navy);
}
.sep-row-track { position: relative; height: 30px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); overflow: visible; }
.sep-zone {
    position: absolute; top: 4px; bottom: 4px; border-radius: 999px;
    background: rgba(21,127,79,.12); border-left: 1.5px dashed rgba(21,127,79,.55); border-right: 1.5px dashed rgba(21,127,79,.55);
}
.sep-baseline-line { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed var(--blue); opacity: .8; transform: translateX(-1px); }
.sep-connector { position: absolute; top: 50%; height: 2px; background: var(--line-strong); transform: translateY(-1px); }
.sep-target-square {
    position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 2px; z-index: 2; cursor: pointer;
    background: var(--green); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--surface);
}
.sep-actual-dot {
    position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 999px; z-index: 3; cursor: pointer;
    transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--surface), 0 1px 4px rgba(15,22,32,.25);
    transition: opacity .1s var(--ease);
}
.sep-actual-dot.is-baseline { cursor: default; }
.sep-actual-dot:hover, .sep-target-square:hover { opacity: .82; }
.sep-row-summary { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; flex-wrap: wrap; text-align: right; }
.sep-summary-diff { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.sep-summary-status { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--status-color, var(--ink-3)); white-space: nowrap; }
.sep-summary-count { width: 100%; font-size: 10.5px; color: var(--ink-4); }
.separation-disclaimer { margin: 2px 0 0; color: var(--ink-4); font-size: 11px; }

.movement-plot { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.movement-plot-dot.is-isolated-out, .movement-plot-avg.is-isolated-out { display: none; }

/* Pitch-type list beside the movement plot — click to isolate. */
.mp-legend { flex: 0 1 260px; min-width: 200px; display: grid; gap: 6px; align-content: start; }
.mp-legend-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px;
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4);
}
.mp-legend-reset {
    border: none; background: none; padding: 0; color: var(--blue);
    font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none;
}
.mp-legend-reset:hover { text-decoration: underline; }
.mp-legend-row {
    display: grid; grid-template-columns: 10px 1fr auto; align-items: center; column-gap: 10px; row-gap: 2px;
    width: 100%; padding: 9px 12px; text-align: left; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .14s var(--ease), background-color .14s var(--ease), opacity .14s var(--ease), box-shadow .14s var(--ease);
}
.mp-legend-row:hover { border-color: var(--row-color); background: var(--sunk); }
.mp-legend-row[aria-pressed="true"] { border-color: var(--row-color); background: var(--sunk); box-shadow: 0 0 0 1px var(--row-color); }
.mp-legend-row.is-dimmed { opacity: .5; }
.mp-legend-row.is-dimmed:hover { opacity: .85; }
.mp-legend-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--row-color); }
.mp-legend-name { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-legend-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mp-legend-avg { grid-column: 2 / -1; font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.mp-legend-hint { margin: 4px 0 0; font-size: 11px; color: var(--ink-4); }
.movement-plot-svg { max-width: 480px; aspect-ratio: 1 / 1; }
.movement-plot-gridline { stroke: var(--line); stroke-width: .5; stroke-dasharray: 2 2; }
.movement-plot-axis-label { fill: var(--ink-4); font-size: 8px; font-family: var(--font-body); }
.movement-plot-axis-title { fill: var(--ink-3); font-size: 8.5px; font-weight: 600; letter-spacing: .3px; font-family: var(--font-body); }
.movement-plot-zero-line { stroke: var(--ink-4); stroke-width: .7; opacity: .7; }
.movement-plot-dot { cursor: pointer; }
.movement-plot-avg { cursor: pointer; transition: opacity .1s var(--ease); }
.movement-plot-avg:hover { opacity: .85; }
.movement-plot-avg-label { font-size: 8.5px; font-weight: 700; font-family: var(--font-body); paint-order: stroke; stroke: var(--sunk); stroke-width: 2.5px; }

/* All-pitches log and the Compare table share Finance's table look. */
.pitch-log-wrap { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.pitch-log-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.pitch-log-table thead th {
    position: sticky; top: 0; z-index: 1; padding: 10px 14px; text-align: left;
    background: var(--sunk); border-bottom: 1px solid var(--line);
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4);
}
.pitch-log-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.pitch-log-table tbody tr:last-child td { border-bottom: 0; }
.pitch-log-table tbody tr:hover { background: var(--sunk); }
.pitch-log-no { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.pitch-log-type { display: flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }
.pitch-log-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--row-color, var(--blue)); flex: 0 0 auto; }
.pitch-log-num { font-variant-numeric: tabular-nums; }
.pitch-log-result { font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.pitch-log-result.is-strike { color: var(--green); }
.pitch-log-result.is-ball { color: var(--red); }
.pitch-log-result.is-unknown { color: var(--ink-4); font-weight: 500; text-transform: none; }

.compare-section { display: grid; gap: 16px; }
.compare-pickers { display: flex; gap: 20px; flex-wrap: wrap; }
.compare-picker { display: grid; gap: 6px; }
.compare-picker span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.compare-picker .report-select { min-width: 240px; max-width: 320px; }
.compare-table-metric { color: var(--ink); font-weight: 700; }
.compare-table-value { font-variant-numeric: tabular-nums; }
.compare-table-delta { font-variant-numeric: tabular-nums; font-weight: 700; }
.compare-table-delta.is-up { color: var(--blue); }
.compare-table-delta.is-down { color: var(--ink-2); }
.compare-table-delta.is-flat { color: var(--ink-4); font-weight: 500; }

/* Blueprint+ placeholder */
#detail-tab-blueprint-plus .report-empty {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-align: center;
}

/* ============================ Modals ============================ */
.modal {
    position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(15, 22, 32, .42);
}
.modal-card {
    width: min(100%, 520px); max-height: 88vh; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.modal-head .eyebrow { margin: 0 0 4px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.modal-head h2 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; color: var(--navy); }
.modal-form { display: grid; gap: 14px; padding: 20px 22px 22px; }
.modal-form > p { margin: 0; color: var(--ink-2); }
.modal-form label { display: grid; gap: 6px; }
.modal-form label > span {
    font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3);
}
.modal-form input, .modal-form select, .manage-reports-rename-input {
    width: 100%; height: 40px; padding: 0 12px;
    border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink); outline: none;
}
.modal-form input:focus, .modal-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,176,.13); }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.modal-actions .status { margin-right: auto; }

.manage-reports-row {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px;
    background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.manage-reports-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.manage-reports-label { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manage-reports-meta { font-size: 11.5px; color: var(--ink-3); }
.manage-reports-rename-input { height: 30px; font-size: 12px; width: 180px; flex: 0 0 auto; }
.manage-reports-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.manage-reports-empty { color: var(--ink-4); font-size: 13px; padding: 8px 2px; }

/* ============================ Toast ============================ */
.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 80; max-width: min(420px, calc(100% - 48px));
    padding: 11px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
    color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop);
    transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
    transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast-error { border-color: var(--red-line); background: var(--red-wash); color: var(--red); }
.toast-error::before { content: "⚠ "; }

/* ============================ Responsive ============================ */
@media (max-width: 1100px) {
    .report-widgets { grid-template-columns: 1fr; }
    .movement-plot { flex-direction: column; align-items: center; }
    .mp-legend { width: 100%; max-width: 480px; flex-basis: auto; }
    .sep-row { grid-template-columns: 120px 1fr; }
    .sep-row-summary { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
}
@media (max-width: 900px) {
    .app-shell-root { flex-direction: column; height: auto; overflow: visible; }
    .app-sidebar { width: 100%; flex: none; flex-direction: row; align-items: center; gap: 10px; overflow-x: auto; padding: 10px 12px; }
    .sidebar-top { padding: 0 8px 0 0; }
    .sidebar-product-logo { width: 104px; flex: 0 0 auto; }
    .sidebar-divider, .sidebar-foot, .sidebar-nav-group-label, .dashboard-switcher-wrap { display: none; }
    .sidebar-nav { flex-direction: row; }
    .sidebar-tab { width: auto; padding: 0 12px; }
    .app-main { overflow: visible; }
    .app-views { overflow: visible; padding: 18px 14px 40px; }
    .topbar { padding-left: 14px; padding-right: 14px; }
    .app-header-title { font-size: 20px; }
    .account-email { display: none; }
    .search-input { width: 100%; }
    .table-tools { width: 100%; }
    .col-hide-sm { display: none; }
    .detail-hero { padding: 22px; }
    .detail-hero-stats { width: 100%; }
    .detail-hero-stat { justify-items: start; text-align: left; padding: 0 22px 0 0; }
    .detail-hero-stat + .detail-hero-stat { margin-left: 0; padding-left: 22px; }
    .kpi-grid-3up { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .avatar-xl { width: 64px; height: 64px; font-size: 22px; }
    .detail-hero-info h2 { font-size: 22px; white-space: normal; }
    .page-head-actions { flex-wrap: wrap; }
}
