:root {
    --ink: #101727;
    --ink-soft: #182236;
    --ink-muted: #526076;
    --paper: #f3f5f7;
    --surface: #ffffff;
    --surface-soft: #f8f9fb;
    --line: #e2e6ec;
    --line-strong: #d3d9e2;
    --lime: #d9ff5b;
    --lime-deep: #bddd36;
    --blue: #5267ff;
    --blue-soft: #edf0ff;
    --orange: #ff6f4f;
    --orange-soft: #fff0eb;
    --teal: #1ca889;
    --teal-soft: #e8f8f4;
    --purple: #8768ed;
    --purple-soft: #f2efff;
    --red: #d85055;
    --red-soft: #fff0f0;
    --shadow-sm: 0 1px 2px rgba(16, 23, 39, .04), 0 4px 12px rgba(16, 23, 39, .03);
    --shadow-md: 0 12px 36px rgba(16, 23, 39, .11);
    --sidebar-width: 248px;
    --topbar-height: 68px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button {
    border: 0;
}

svg {
    display: block;
}

.hidden {
    display: none !important;
}

.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;
}

.app-shell {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 80;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    overflow-y: auto;
    background:
        radial-gradient(circle at 12% 96%, rgba(217, 255, 91, .07), transparent 28%),
        var(--ink);
    color: #f9fbff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: var(--topbar-height);
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.06em;
    transform: skew(-4deg);
}

.brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.brand-copy span {
    margin-top: -1px;
    color: #8792a6;
    font-size: 10px;
    letter-spacing: .03em;
}

.workspace-switcher {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 9px;
    margin: 18px 14px 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}

.workspace-avatar,
.user-avatar {
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #2f3b51;
    color: #e9eef8;
    font-size: 10px;
    font-weight: 700;
}

.workspace-avatar {
    width: 30px;
    height: 30px;
}

.workspace-switcher > div:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.workspace-switcher span {
    color: #78859a;
    font-size: 9px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.workspace-switcher strong {
    overflow: hidden;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-switcher .workspace-chevron {
    color: #8c97a9;
    font-size: 15px;
}

.sport-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin: 0 14px 19px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    background: #0b111f;
}

.sport-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border-radius: 7px;
    background: transparent;
    color: #8490a4;
    font-size: 11px;
    font-weight: 600;
    transition: .18s ease;
}

.sport-option:hover {
    color: #fff;
}

.sport-option.active {
    background: #242e41;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    color: #fff;
}

.sport-icon {
    position: relative;
    color: var(--lime);
    font-size: 16px;
    line-height: 1;
}

.basketball-icon {
    color: #ff8a5e;
}

.side-nav {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.nav-eyebrow {
    padding: 0 10px 7px;
    color: #667389;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.nav-eyebrow-secondary {
    margin-top: 19px;
}

.side-nav-item {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: transparent;
    color: #9ba6b7;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    transition: .16s ease;
}

.side-nav-item:hover {
    background: rgba(255, 255, 255, .045);
    color: #fff;
}

.side-nav-item.active {
    background: rgba(217, 255, 91, .1);
    color: var(--lime);
}

.nav-glyph {
    display: grid;
    width: 22px;
    place-items: center;
}

.nav-glyph svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.nav-count {
    min-width: 21px;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #7e8a9e;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}

.side-nav-item.active .nav-count {
    background: var(--lime);
    color: var(--ink);
}

.sidebar-bottom {
    margin-top: auto;
    padding: 20px 14px 14px;
}

.beta-card {
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(217, 255, 91, .17);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(217, 255, 91, .1), rgba(255, 255, 255, .03));
}

.beta-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    color: #93a174;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.free-pill {
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--lime);
    color: var(--ink);
    font-size: 8px;
}

.beta-card > strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
}

.beta-card p {
    margin: 5px 0 12px;
    color: #8996aa;
    font-size: 10px;
    line-height: 1.5;
}

.beta-card button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    color: var(--lime);
    font-size: 10px;
    font-weight: 700;
}

.sidebar-meta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: #606d82;
    font-size: 9px;
}

.status-dot,
.health-dot,
.live-indicator {
    display: inline-block;
    border-radius: 999px;
    background: var(--lime);
}

.status-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px rgba(217, 255, 91, .08);
}

.sidebar-backdrop {
    display: none;
}

/* Workspace and topbar */
.workspace {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    min-height: var(--topbar-height);
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 440px) minmax(180px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
}

.topbar-left {
    display: flex;
    align-items: center;
}

.mobile-menu {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    background: var(--surface-soft);
}

.mobile-menu svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #9aa3b0;
    font-size: 11px;
}

.breadcrumb strong {
    color: var(--ink);
    font-weight: 600;
}

.breadcrumb-separator {
    color: #c1c7d0;
}

.global-search {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f8fa;
    transition: .18s ease;
}

.global-search:focus-within {
    border-color: #aab4ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(82, 103, 255, .1);
}

.global-search svg,
.filter-search svg {
    width: 17px;
    fill: none;
    stroke: #8f99a8;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.global-search input,
.filter-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

.global-search input::placeholder,
.filter-search input::placeholder {
    color: #9aa4b2;
}

.global-search kbd {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid #dfe3e9;
    border-radius: 6px;
    background: #fff;
    color: #929dac;
    font-family: var(--font-body);
    font-size: 10px;
    box-shadow: 0 1px 1px rgba(16, 23, 39, .06);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.icon-button {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}

.icon-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.health-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 5px;
    height: 5px;
    border: 1px solid #fff;
    background: var(--orange);
}

.topbar-shortlist {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
}

.topbar-shortlist strong {
    display: grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 9px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    background: var(--blue);
    box-shadow: 0 0 0 1px #d9ddea;
    color: #fff;
}

/* Shared content */
.content {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 34px 34px 56px;
}

.view {
    display: none;
    animation: view-in .22s ease both;
}

.view.active {
    display: block;
}

@keyframes view-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.page-heading h1 {
    margin: 5px 0 4px;
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 35px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.045em;
}

.page-heading p {
    max-width: 690px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #758197;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
}

.live-indicator {
    width: 6px;
    height: 6px;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(28, 168, 137, .1);
}

.page-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.button {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.button.primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 5px 15px rgba(16, 23, 39, .13);
}

.button.primary:hover {
    background: #1b2740;
}

.button.secondary {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.button.danger {
    border: 1px solid #f1c9cb;
    background: #fff;
    color: var(--red);
}

.data-notice {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 13px;
    margin-bottom: 17px;
    padding: 11px 14px;
    border: 1px solid #ffd4c8;
    border-radius: 11px;
    background: linear-gradient(90deg, #fff4ef, #fffaf7);
}

.notice-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: #ffe6de;
    color: #df674b;
}

.notice-icon svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.data-notice strong {
    display: block;
    font-size: 11px;
}

.data-notice p {
    margin: 1px 0 0;
    color: #8d6e65;
    font-size: 10px;
}

.data-notice button {
    padding: 7px;
    background: transparent;
    color: #b55b43;
    font-size: 10px;
    font-weight: 700;
}

/* Dashboard */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.kpi-card,
.panel,
.signal-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.kpi-card {
    min-height: 132px;
    padding: 15px 16px 13px;
    border-radius: 12px;
}

.kpi-top,
.kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kpi-top > span:first-child {
    color: #6e7a8d;
    font-size: 10px;
    font-weight: 600;
}

.delta {
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.delta.neutral {
    background: var(--blue-soft);
    color: var(--blue);
}

.delta.positive {
    background: var(--teal-soft);
    color: var(--teal);
}

.delta.dark {
    background: rgba(16, 23, 39, .11);
    color: var(--ink);
}

.kpi-card > strong {
    display: block;
    margin-top: 11px;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
}

.kpi-footer {
    margin-top: 15px;
    color: #919aa8;
    font-size: 8px;
}

.kpi-footer button {
    padding: 0;
    background: transparent;
    font-size: 8px;
    font-weight: 700;
}

.mini-bars {
    width: 49px;
    height: 13px;
    background-repeat: no-repeat;
    background-size: contain;
}

.bars-one {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 14'%3E%3Cpath d='M1 12 8 9l7 1 7-6 7 3 7-5 7 2 6-3' fill='none' stroke='%235267ff' stroke-width='1.5'/%3E%3C/svg%3E");
}

.bars-two {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 14'%3E%3Cpath d='M1 11 8 8l7 2 7-4 7 1 7-5 7 4 6-2' fill='none' stroke='%231ca889' stroke-width='1.5'/%3E%3C/svg%3E");
}

.bars-three {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 14'%3E%3Cpath d='M1 12 8 10l7-5 7 3 7-6 7 3 7-2 6 1' fill='none' stroke='%238768ed' stroke-width='1.5'/%3E%3C/svg%3E");
}

.bars-four {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 14'%3E%3Cpath d='M1 11 8 9l7 1 7-5 7 2 7-4 7 1 6-2' fill='none' stroke='%23101727' stroke-width='1.5'/%3E%3C/svg%3E");
}

.accent-card {
    border-color: #c4dc70;
    background: linear-gradient(135deg, #e5ff8e 0%, var(--lime) 100%);
}

.accent-card .kpi-top > span:first-child,
.accent-card .kpi-footer {
    color: rgba(16, 23, 39, .62);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(270px, .85fr);
    gap: 12px;
    margin-bottom: 12px;
}

.panel {
    border-radius: 13px;
}

.priority-panel,
.coverage-panel {
    min-height: 375px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 17px 13px;
    border-bottom: 1px solid var(--line);
}

.panel-kicker {
    display: block;
    margin-bottom: 3px;
    color: #919aa8;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.panel-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: -.02em;
}

.text-button {
    padding: 5px;
    background: transparent;
    color: var(--blue);
    font-size: 9px;
    font-weight: 700;
}

.text-button span {
    margin-left: 3px;
}

.icon-button.subtle {
    width: 29px;
    height: 29px;
    border-color: transparent;
    background: var(--surface-soft);
}

.priority-list {
    padding: 0 17px;
}

.priority-row {
    display: grid;
    grid-template-columns: 27px minmax(140px, 1.4fr) minmax(90px, .8fr) minmax(90px, .8fr) 64px 34px;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    border-bottom: 1px solid #edf0f3;
}

.priority-row:last-child {
    border-bottom: 0;
}

.priority-rank {
    color: #a1aab6;
    font-size: 9px;
    font-weight: 700;
}

.player-cell {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.row-player-button,
.shortlist-player,
.player-name-block {
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.player-avatar {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(16, 23, 39, .06);
    border-radius: 10px;
    background: var(--avatar-bg, #edf0ff);
    color: var(--avatar-ink, #5267ff);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
}

.player-avatar::after {
    position: absolute;
    right: -6px;
    bottom: -7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: currentColor;
    content: '';
    opacity: .12;
}

.player-cell-copy,
.player-name-block {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.player-cell-copy strong,
.player-name-block strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-cell-copy span,
.player-name-block span {
    overflow: hidden;
    margin-top: 1px;
    color: #8d97a5;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-cell {
    display: flex;
    flex-direction: column;
}

.metric-cell strong {
    font-size: 10px;
}

.metric-cell span {
    color: #8d97a5;
    font-size: 8px;
}

.score-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}

.score-cell strong {
    width: 23px;
    font-family: var(--font-display);
    font-size: 11px;
}

.score-bar {
    width: 33px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf2;
}

.score-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--score-color, var(--teal));
}

.row-action,
.star-button,
.compare-button {
    display: grid;
    place-items: center;
    background: transparent;
}

.row-action {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #7f8999;
}

.row-action:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.row-action svg,
.star-button svg,
.compare-button svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.coverage-chart-wrap {
    display: grid;
    grid-template-columns: 145px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 258px;
    padding: 18px 17px 10px;
}

.donut {
    display: grid;
    width: 126px;
    height: 126px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--blue) 0 35%, var(--teal) 35% 58%, var(--purple) 58% 76%, var(--orange) 76% 89%, #bac4d2 89% 100%);
}

.donut::before {
    grid-area: 1 / 1;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #fff;
    content: '';
}

.donut > div {
    z-index: 1;
    display: flex;
    grid-area: 1 / 1;
    flex-direction: column;
    align-items: center;
}

.donut strong {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -.04em;
}

.donut span {
    margin-top: -3px;
    color: #909aa7;
    font-size: 8px;
}

.coverage-legend {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.legend-row {
    display: grid;
    grid-template-columns: 7px 1fr auto;
    align-items: center;
    gap: 7px;
    color: #788397;
    font-size: 9px;
}

.legend-row i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--legend-color);
}

.legend-row strong {
    color: var(--ink);
    font-size: 9px;
}

.coverage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 17px;
    border-top: 1px solid var(--line);
    color: #8993a2;
    font-size: 9px;
}

.coverage-footer strong {
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--orange-soft);
    color: #d2674e;
    font-size: 8px;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.signal-card {
    position: relative;
    display: grid;
    min-height: 118px;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 16px;
    border-radius: 12px;
}

.signal-card::after {
    position: absolute;
    top: -32px;
    right: -34px;
    width: 90px;
    height: 90px;
    border: 16px solid var(--signal-soft);
    border-radius: 50%;
    content: '';
}

.signal-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: var(--signal-soft);
    color: var(--signal-color);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
}

.signal-copy {
    min-width: 0;
}

.signal-copy span {
    color: #8d97a6;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.signal-copy strong {
    display: block;
    overflow: hidden;
    margin: 3px 0 2px;
    font-family: var(--font-display);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signal-copy p {
    margin: 0;
    color: #7f8997;
    font-size: 9px;
}

.signal-score {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.signal-score strong {
    font-family: var(--font-display);
    font-size: 19px;
}

.signal-score span {
    color: #939dab;
    font-size: 7px;
    text-transform: uppercase;
}

/* Filters and player table */
.filters-panel {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) repeat(3, minmax(125px, .75fr)) minmax(145px, .85fr) auto;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.filter-search {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 7px;
    min-height: 37px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.select-field {
    position: relative;
}

.select-field::after {
    position: absolute;
    top: 50%;
    right: 11px;
    color: #8490a0;
    font-size: 10px;
    content: '⌄';
    pointer-events: none;
    transform: translateY(-55%);
}

.select-field select {
    width: 100%;
    min-height: 37px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    appearance: none;
    background: #fff;
    color: #566276;
    font-size: 10px;
}

.select-field select:focus {
    border-color: #aab4ff;
    box-shadow: 0 0 0 3px rgba(82, 103, 255, .08);
}

.filter-reset {
    padding: 0 8px;
    background: transparent;
    color: var(--blue);
    font-size: 9px;
    font-weight: 700;
}

.database-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 10px;
}

.database-meta > div:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
}

.database-meta strong {
    font-size: 11px;
}

.database-meta span {
    color: #939dab;
    font-size: 9px;
}

.view-density {
    display: flex;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.view-density button {
    display: grid;
    width: 27px;
    height: 24px;
    place-items: center;
    border-radius: 5px;
    background: transparent;
    color: #a0a9b6;
}

.view-density button.active {
    background: var(--surface-soft);
    color: var(--ink);
}

.view-density svg {
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.5;
}

.table-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.player-table {
    min-width: 900px;
}

.table-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) minmax(115px, .8fr) 70px 80px 95px 100px 76px 88px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 16px;
    border-bottom: 1px solid #edf0f3;
    transition: background .14s ease;
}

.table-row:hover:not(.table-head) {
    background: #fafbfc;
}

.table-row.compact {
    min-height: 47px;
}

.table-row:last-child {
    border-bottom: 0;
}

.table-head {
    min-height: 37px;
    background: #f7f8fa;
    color: #7c8798;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.table-head:hover {
    background: #f7f8fa;
}

.table-player {
    display: grid;
    min-width: 0;
    grid-template-columns: 22px 34px 1fr;
    align-items: center;
    gap: 9px;
}

.star-button,
.compare-button {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #a2aab6;
}

.star-button:hover,
.compare-button:hover {
    background: #f0f2f5;
    color: var(--ink);
}

.star-button.active {
    color: #d59a00;
}

.star-button.active svg {
    fill: #ffd760;
}

.league-pill,
.status-pill,
.confidence-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.league-pill {
    max-width: 112px;
    overflow: hidden;
    background: #f1f3f6;
    color: #647085;
    text-overflow: ellipsis;
}

.status-pill.priority,
.status-pill.franchise {
    background: var(--teal-soft);
    color: #15886f;
}

.status-pill.monitor {
    background: var(--blue-soft);
    color: var(--blue);
}

.status-pill.ready-now {
    background: var(--purple-soft);
    color: #7154cf;
}

.table-metric {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    font-weight: 600;
}

.table-metric small {
    color: #9aa3af;
    font-size: 7px;
    font-weight: 500;
}

.score-badge {
    display: inline-flex;
    width: 38px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--score-soft, var(--teal-soft));
    color: var(--score-color, var(--teal));
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.compare-button.active {
    background: var(--ink);
    color: var(--lime);
}

.table-empty {
    padding: 68px 20px;
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 13px;
    background: var(--surface-soft);
    color: #8f99a7;
    font-size: 22px;
}

.table-empty h3,
.empty-state h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 15px;
}

.table-empty p,
.empty-state p {
    margin: 4px 0 16px;
    color: #8792a2;
    font-size: 10px;
}

.table-footer {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-top: 1px solid var(--line);
    background: #fafbfc;
    color: #8f99a7;
    font-size: 9px;
}

.pagination {
    display: flex;
    gap: 4px;
}

.pagination button {
    display: grid;
    min-width: 27px;
    height: 27px;
    place-items: center;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: #657185;
    font-size: 9px;
}

.pagination button.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

/* Shortlist */
.board-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.board-stat {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.board-stat span {
    display: block;
    color: #8f99a7;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.board-stat strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 19px;
}

.shortlist-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.shortlist-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.shortlist-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
}

.shortlist-player {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.shortlist-player .player-avatar {
    width: 40px;
    height: 40px;
}

.shortlist-player strong {
    display: block;
    font-size: 12px;
}

.shortlist-player span {
    display: block;
    margin-top: 2px;
    color: #8d97a5;
    font-size: 9px;
}

.shortlist-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.shortlist-score strong {
    font-family: var(--font-display);
    font-size: 22px;
}

.shortlist-score span {
    color: #99a2ae;
    font-size: 7px;
    text-transform: uppercase;
}

.shortlist-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.shortlist-metrics div {
    padding: 10px 12px;
    border-right: 1px solid var(--line);
}

.shortlist-metrics div:last-child {
    border-right: 0;
}

.shortlist-metrics span {
    display: block;
    color: #969fac;
    font-size: 7px;
    text-transform: uppercase;
}

.shortlist-metrics strong {
    display: block;
    margin-top: 2px;
    font-size: 10px;
}

.shortlist-note {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
}

.shortlist-note label {
    color: #8993a1;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.shortlist-note textarea {
    width: 100%;
    min-height: 55px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: 0;
    padding: 8px;
    background: #fafbfc;
    color: #536074;
    font-size: 9px;
}

.shortlist-note textarea:focus {
    border-color: #aab4ff;
    box-shadow: 0 0 0 3px rgba(82, 103, 255, .08);
}

.shortlist-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 14px;
}

.shortlist-actions button {
    padding: 6px 0;
    background: transparent;
    color: var(--blue);
    font-size: 9px;
    font-weight: 700;
}

.shortlist-actions .remove-shortlist {
    color: var(--red);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 80px 20px;
    border: 1px dashed #cfd5de;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    text-align: center;
}

/* Compare */
.compare-workspace {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.compare-empty {
    padding: 85px 20px;
    text-align: center;
}

.compare-empty-slots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.compare-empty-slot {
    display: grid;
    width: 52px;
    height: 60px;
    place-items: center;
    border: 1px dashed #cfd5df;
    border-radius: 12px;
    background: #fafbfc;
    color: #a2abb6;
    font-size: 18px;
}

.compare-empty h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
}

.compare-empty p {
    margin: 4px 0 16px;
    color: #8993a1;
    font-size: 10px;
}

.compare-grid {
    display: grid;
    grid-template-columns: 150px repeat(var(--compare-count), minmax(190px, 1fr));
    min-width: 700px;
}

.compare-label-cell,
.compare-player-cell,
.compare-value-cell {
    padding: 13px 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.compare-label-cell {
    background: #fafbfc;
    color: #7f8a9a;
    font-size: 9px;
    font-weight: 600;
}

.compare-player-cell {
    position: relative;
    min-height: 145px;
    padding-top: 18px;
    text-align: center;
}

.compare-player-cell .player-avatar {
    width: 46px;
    height: 46px;
    margin: 0 auto 8px;
}

.compare-player-cell > strong {
    display: block;
    font-size: 11px;
}

.compare-player-cell > span {
    display: block;
    margin-top: 2px;
    color: #8d97a5;
    font-size: 8px;
}

.compare-player-cell button {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: #f4f5f7;
    color: #8893a2;
}

.compare-value-cell {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.compare-value-cell.best {
    background: #f5ffe0;
    color: #56730b;
}

.compare-progress {
    width: 100%;
    max-width: 90px;
    height: 5px;
    margin: 6px auto 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf2;
}

.compare-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

/* Data Hub */
.data-health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.health-card {
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.health-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.health-card-top span:first-child {
    color: #788497;
    font-size: 9px;
    font-weight: 600;
}

.health-state {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
}

.health-state::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.health-state.stale { color: var(--orange); }
.health-state.demo { color: var(--purple); }
.health-state.local { color: var(--teal); }

.health-card strong {
    display: block;
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: 19px;
}

.health-card p {
    margin: 3px 0 0;
    color: #9aa3af;
    font-size: 8px;
}

.data-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 12px;
    margin-bottom: 12px;
}

.import-panel,
.source-panel {
    min-height: 380px;
}

.dropzone {
    display: flex;
    width: calc(100% - 34px);
    min-height: 162px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 17px;
    border: 1px dashed #bfc7d4;
    border-radius: 12px;
    background: #fafbfc;
    transition: .18s ease;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.dropzone-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--lime);
}

.dropzone-icon svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.dropzone strong {
    font-size: 11px;
}

.dropzone > span:last-child {
    margin-top: 3px;
    color: #8d97a5;
    font-size: 9px;
}

.schema-box {
    margin: 0 17px 17px;
    padding: 13px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
}

.schema-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.schema-box strong {
    font-size: 9px;
}

.schema-box button {
    padding: 0;
    background: transparent;
    color: var(--lime);
    font-size: 8px;
    font-weight: 700;
}

.schema-box code {
    display: block;
    overflow-x: auto;
    margin-top: 9px;
    padding: 8px;
    border-radius: 6px;
    background: #080d17;
    color: #d6dfec;
    font-size: 8px;
    white-space: nowrap;
}

.schema-box p {
    margin: 8px 0 0;
    color: #8490a4;
    font-size: 8px;
}

#source-registry {
    padding: 4px 17px 8px;
}

.source-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 59px;
    border-bottom: 1px solid #edf0f3;
}

.source-row:last-child {
    border-bottom: 0;
}

.source-logo {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: var(--source-soft);
    color: var(--source-color);
    font-size: 8px;
    font-weight: 800;
}

.source-copy strong {
    display: block;
    font-size: 9px;
}

.source-copy span {
    display: block;
    margin-top: 1px;
    color: #939dab;
    font-size: 8px;
}

.confidence-pill {
    background: var(--surface-soft);
    color: #7e899a;
}

.confidence-pill::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: '';
}

.source-note {
    display: grid;
    grid-template-columns: 17px 1fr;
    gap: 8px;
    margin: 0 17px 17px;
    padding: 10px;
    border-radius: 8px;
    background: var(--orange-soft);
    color: #a76352;
}

.source-note svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.source-note p {
    margin: 0;
    font-size: 8px;
}

.methodology-panel {
    padding-bottom: 17px;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 17px 0 0;
}

.method-steps > div {
    min-height: 120px;
    padding: 0 17px;
    border-right: 1px solid var(--line);
}

.method-steps > div:last-child {
    border-right: 0;
}

.method-steps span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    margin-bottom: 11px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--lime);
    font-size: 8px;
    font-weight: 800;
}

.method-steps strong {
    font-family: var(--font-display);
    font-size: 11px;
}

.method-steps p {
    margin: 4px 0 0;
    color: #7f8a99;
    font-size: 9px;
}

/* Player drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    background: rgba(5, 9, 17, .36);
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: .22s ease;
}

.drawer-backdrop.open {
    visibility: visible;
    opacity: 1;
}

.player-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 110;
    width: min(470px, 100%);
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(16, 23, 39, .17);
    transform: translateX(101%);
    transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}

.player-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.drawer-header span {
    color: #808b9b;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.drawer-header button {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: #f3f5f7;
    font-size: 19px;
}

.drawer-hero {
    position: relative;
    overflow: hidden;
    padding: 25px 21px 21px;
    background: var(--ink);
    color: #fff;
}

.drawer-hero::after {
    position: absolute;
    top: -70px;
    right: -60px;
    width: 190px;
    height: 190px;
    border: 33px solid rgba(217, 255, 91, .08);
    border-radius: 50%;
    content: '';
}

.drawer-identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
}

.drawer-identity .player-avatar {
    width: 57px;
    height: 57px;
    border-radius: 15px;
    font-size: 16px;
}

.drawer-identity h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -.04em;
}

.drawer-identity p {
    margin: 3px 0 0;
    color: #929db0;
    font-size: 10px;
}

.drawer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.drawer-badges span {
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #c0c8d5;
    font-size: 8px;
}

.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
}

.drawer-actions .button.primary {
    background: var(--lime);
    color: var(--ink);
}

.drawer-actions .button.secondary {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.drawer-score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
}

.drawer-score {
    padding: 15px;
    border-right: 1px solid var(--line);
    text-align: center;
}

.drawer-score:last-child {
    border-right: 0;
}

.drawer-score strong {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
}

.drawer-score span {
    color: #909aa7;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.drawer-section {
    padding: 19px 21px;
    border-bottom: 1px solid var(--line);
}

.drawer-section h3 {
    margin: 0 0 13px;
    font-family: var(--font-display);
    font-size: 12px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.profile-metric {
    padding: 10px;
    border-radius: 8px;
    background: #f7f8fa;
}

.profile-metric span {
    display: block;
    color: #919aa8;
    font-size: 7px;
    text-transform: uppercase;
}

.profile-metric strong {
    display: block;
    margin-top: 3px;
    font-size: 11px;
}

.trait-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.trait-row {
    display: grid;
    grid-template-columns: 95px 1fr 28px;
    align-items: center;
    gap: 9px;
    font-size: 9px;
}

.trait-row > span:first-child {
    color: #6d798c;
}

.trait-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9edf2;
}

.trait-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--trait-color, var(--blue));
}

.trait-row strong {
    font-size: 9px;
    text-align: right;
}

.drawer-note {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    padding: 10px;
    background: #fafbfc;
    color: #536074;
    font-size: 10px;
}

.drawer-note:focus {
    border-color: #aab4ff;
    box-shadow: 0 0 0 3px rgba(82, 103, 255, .08);
}

.note-helper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7px;
    color: #929ca9;
    font-size: 8px;
}

.note-helper button {
    padding: 0;
    background: transparent;
    color: var(--blue);
    font-size: 8px;
    font-weight: 700;
}

/* Toast */
.toast-region {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    display: flex;
    width: min(330px, calc(100vw - 32px));
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: var(--ink);
    box-shadow: var(--shadow-md);
    color: #fff;
    animation: toast-in .22s ease both;
}

.toast-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 7px;
    background: var(--lime);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
}

.toast strong {
    display: block;
    font-size: 10px;
}

.toast span {
    color: #9da8ba;
    font-size: 8px;
}

.toast button {
    background: transparent;
    color: #7f8ca0;
    font-size: 15px;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1180px) {
    .topbar {
        grid-template-columns: minmax(160px, .7fr) minmax(260px, 1fr) minmax(160px, .7fr);
        padding: 0 22px;
    }

    .content {
        padding-right: 24px;
        padding-left: 24px;
    }

    .filters-panel {
        grid-template-columns: minmax(200px, 1.4fr) repeat(2, minmax(130px, 1fr)) auto;
    }

    .filters-panel .select-field:nth-of-type(3),
    .filters-panel .sort-field {
        grid-row: 2;
    }

    .filters-panel .select-field:nth-of-type(3) {
        grid-column: 1 / 2;
    }

    .filters-panel .sort-field {
        grid-column: 2 / 3;
    }

    .shortlist-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    :root {
        --sidebar-width: 236px;
    }

    .sidebar {
        box-shadow: 18px 0 50px rgba(16, 23, 39, .18);
        transform: translateX(-102%);
        transition: transform .24s cubic-bezier(.2, .8, .2, 1);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 70;
        display: block;
        visibility: hidden;
        background: rgba(7, 12, 22, .42);
        opacity: 0;
        transition: .2s ease;
    }

    .sidebar-backdrop.open {
        visibility: visible;
        opacity: 1;
    }

    .workspace {
        margin-left: 0;
    }

    .topbar {
        grid-template-columns: minmax(180px, 1fr) minmax(250px, 1.2fr) auto;
        gap: 14px;
    }

    .mobile-menu {
        display: grid;
        margin-right: 10px;
    }

    .breadcrumb > span:first-child,
    .breadcrumb-separator {
        display: none;
    }

    .topbar-shortlist span {
        display: none;
    }

    .topbar-shortlist {
        padding: 0 8px;
    }

    .kpi-grid,
    .data-health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .data-layout {
        grid-template-columns: 1fr;
    }

    .coverage-panel {
        min-height: auto;
    }

    .signal-grid {
        grid-template-columns: 1fr;
    }

    .signal-card {
        min-height: 96px;
    }
}

@media (max-width: 720px) {
    .topbar {
        min-height: 61px;
        grid-template-columns: 1fr auto;
        padding: 0 15px;
    }

    .global-search {
        position: absolute;
        top: 70px;
        right: 15px;
        left: 15px;
        display: none;
        width: auto;
        box-shadow: var(--shadow-md);
    }

    .topbar.search-open .global-search {
        display: grid;
    }

    .topbar-actions .icon-button {
        display: none;
    }

    .content {
        padding: 24px 15px 46px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .page-heading h1 {
        font-size: 27px;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .button {
        flex: 1;
    }

    .data-notice {
        grid-template-columns: 31px 1fr;
    }

    .data-notice button {
        display: none;
    }

    .kpi-grid,
    .data-health-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .kpi-card {
        min-height: 118px;
        padding: 13px;
    }

    .kpi-card > strong {
        font-size: 25px;
    }

    .kpi-footer span:last-child,
    .kpi-footer button {
        display: none;
    }

    .priority-panel {
        overflow: hidden;
    }

    .priority-row {
        grid-template-columns: 23px minmax(130px, 1fr) 58px 27px;
    }

    .priority-row .metric-cell:nth-of-type(1),
    .priority-row .metric-cell:nth-of-type(2) {
        display: none;
    }

    .coverage-chart-wrap {
        grid-template-columns: 130px 1fr;
    }

    .filters-panel {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .filters-panel .select-field:nth-of-type(3),
    .filters-panel .sort-field {
        grid-row: auto;
        grid-column: auto;
    }

    .filter-reset {
        min-height: 35px;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .table-shell {
        overflow-x: auto;
    }

    .table-footer {
        position: sticky;
        left: 0;
        width: calc(100vw - 32px);
    }

    .shortlist-board {
        grid-template-columns: 1fr;
    }

    .board-summary {
        grid-template-columns: 1fr 1fr;
    }

    .method-steps {
        grid-template-columns: 1fr 1fr;
    }

    .method-steps > div:nth-child(2) {
        border-right: 0;
    }

    .method-steps > div {
        margin-bottom: 18px;
    }

    .toast-region {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .topbar-shortlist {
        display: none;
    }

    .topbar {
        grid-template-columns: 1fr auto;
    }

    .user-avatar {
        width: 33px;
        height: 33px;
    }

    .page-actions {
        flex-direction: column-reverse;
    }

    .page-actions .button {
        width: 100%;
    }

    .dashboard-heading .page-actions {
        flex-direction: row;
    }

    .dashboard-heading .page-actions .button {
        width: auto;
    }

    .kpi-grid,
    .data-health-grid {
        grid-template-columns: 1fr;
    }

    .kpi-card {
        min-height: 112px;
    }

    .filters-panel {
        grid-template-columns: 1fr;
    }

    .filter-search {
        grid-column: auto;
    }

    .database-meta > div:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .coverage-chart-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .coverage-legend {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .board-summary {
        grid-template-columns: 1fr;
    }

    .method-steps {
        grid-template-columns: 1fr;
    }

    .method-steps > div,
    .method-steps > div:nth-child(2) {
        min-height: auto;
        padding-bottom: 17px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
