/* ── Board + Rail wrapper ── */
.di-board-rail-wrap {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Board takes all remaining space; scrolls horizontally */
#draftBoard {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

/* When pinned: board shrinks, rail panel is a flex sibling */
.di-board-rail-wrap.di-pinned #draftBoard {
    /* flex: 1 + panel width = natural compression */
}

/* ── Strip ── */
.di-strip {
    width: 68px;
    flex-shrink: 0;
    background: var(--surface-color, #1a1a2e);
    border-left: 1px solid rgba(124, 58, 237, 0.25); /* thin purple accent line */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
}

.di-strip-brain  { font-size: 20px; color: #a78bfa; }
.di-strip-label  { font-size: 8px; color: #a1a9b8; writing-mode: vertical-rl;
                   transform: rotate(180deg); letter-spacing: .05em; }

/* Scarcity dots */
.di-scarcity-dots { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.di-sdot {
    width: 32px; height: 32px; border-radius: 5px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px;
}
.di-sdot-pos { font-size: 8px; font-weight: 700; color: rgba(255,255,255,.8); }
.di-sdot-ind { width: 7px; height: 7px; border-radius: 50%; }
.di-sdot-hot  { background: rgba(239,68,68,.12); }
.di-sdot-hot  .di-sdot-ind { background: #ef4444; }
.di-sdot-warm { background: rgba(245,158,11,.12); }
.di-sdot-warm .di-sdot-ind { background: #f59e0b; }
.di-sdot-ok   { background: rgba(16,185,129,.10); }
.di-sdot-ok   .di-sdot-ind { background: #10b981; }

/* Strip stats */
.di-strip-stats { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 4px; }
.di-strip-stat  { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.di-stat-num    { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.di-stat-lbl    { font-size: 7px; color: #a1a9b8; text-align: center; white-space: nowrap; }
.di-stat-amber .di-stat-num { color: #f59e0b; }
.di-stat-alert .di-stat-num { color: #ef4444; }

/* Strip pin button */
.di-strip-pin {
    margin-top: auto; margin-bottom: 4px;
    width: 28px; height: 28px; border-radius: 5px;
    border: 1px solid #3d3d5c; background: none;
    color: #a1a9b8; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.di-pin-btn.pinned { background: rgba(167,139,250,.15); border-color: #a78bfa; color: #a78bfa; }

/* ── Panels (shared between overlay and shrink) ── */
.di-panel {
    width: 320px;
    background: var(--surface-color, #1a1a2e);
    border-left: 1px solid var(--border-color, #2d2d4a);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Shrink panel: flex sibling (board compresses) */
.di-shrink-panel {
    flex-shrink: 0;
}

/* Overlay panel: fixed over the board on hover */
.di-overlay-panel {
    position: fixed;
    z-index: 9000;
    box-shadow: -4px 0 16px rgba(0,0,0,.35);
}

.di-panel-inner { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

/* Panel header */
.di-panel-hdr      { padding: 10px 12px 0; flex-shrink: 0; }
.di-panel-title-row{ display: flex; align-items: center; justify-content: space-between; }
.di-panel-title    { display: flex; align-items: center; gap: 6px;
                     font-size: 13px; font-weight: 500; color: #e2e8f0; }
.di-panel-brain    { font-size: 16px; }
.di-panel-sub      { font-size: 10px; color: #a1a9b8; margin-top: 3px; }
.di-otc-sub        { color: #fbbf24; font-weight: 600; }

/* OTC banner */
.di-otc-banner      { margin: 8px 12px 0; padding: 6px 10px; border-radius: 5px;
                      background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); }
.di-otc-banner-text { font-size: 11px; font-weight: 600; color: #fbbf24; }
.di-otc-banner-rec  { font-size: 9px; color: #92400e; margin-top: 1px; }

/* Strategy row */
.di-strat-row { display: flex; align-items: center; gap: 6px; padding: 7px 12px 0; }
.di-strat-lbl { font-size: 10px; color: #a1a9b8; }
.di-strat-sel { flex: 1; font-size: 11px; padding: 3px 6px; border-radius: 4px;
                border: 1px solid #3d3d5c; background: #252542; color: #e2e8f0; }

/* Tabs */
.di-tab-row { display: flex; border-bottom: 1px solid var(--border-color, #2d2d4a); margin-top: 7px; flex-shrink: 0; }
.di-tab     { flex: 1; padding: 6px 2px; font-size: 10px; font-weight: 500; text-align: center;
              background: none; border: none; border-bottom: 2px solid transparent;
              color: #a1a9b8; cursor: pointer; }
.di-tab.active { color: #a78bfa; border-bottom-color: #a78bfa; }

/* Tab body */
.di-tab-body { flex: 1; overflow-y: auto; min-height: 0; }
/* Non-picks tabs get standard padding; picks tab manages its own padding internally */
.di-tab-body > *:not(.di-picks-body) { padding: 10px 12px; }

/* Shared section label */
.di-sec-lbl { font-size: 8px; font-weight: 600; text-transform: uppercase;
              letter-spacing: .05em; color: #a1a9b8; margin-bottom: 6px; }
.di-strat-tag { color: #a78bfa; text-transform: none; letter-spacing: 0; }
.di-empty { text-align: center; padding: 1.5rem .5rem; font-size: 11px; color: #a1a9b8; }

/* ── Recommendation cards ── */
.di-rec-card { background: #252542; border: 1px solid #2d2d4a; border-radius: 5px;
               padding: 7px 9px; margin-bottom: 5px; }
.di-rec-top  { border-left: 2px solid #10b981; border-radius: 0 5px 5px 0; }
.di-rec-selected { border-color: #a78bfa; }
.di-rec-hdr  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.di-rec-rank { font-size: 8px; color: #a1a9b8; display: block; margin-bottom: 1px; }
.di-rec-name { font-size: 11px; font-weight: 500; color: #e2e8f0; }
.di-rec-meta { font-size: 9px; color: #a1a9b8; margin-top: 1px; }

/* Grade pill */
.di-grade   { font-size: 13px; font-weight: 700; padding: 1px 4px; border-radius: 3px; flex-shrink: 0; }
.di-grade-a { background: rgba(16,185,129,.15); color: #10b981; }
.di-grade-b { background: rgba(96,165,250,.15); color: #60a5fa; }
.di-grade-c { background: rgba(245,158,11,.15); color: #f59e0b; }
.di-grade-d { background: rgba(239,68,68,.15);  color: #f87171; }
.di-grade-f { background: rgba(107,114,128,.15);color: #9ca3af; }

/* Factor bars */
.di-bars     { display: flex; flex-direction: column; gap: 3px; }
.di-bar-row  { display: flex; align-items: center; gap: 4px; }
.di-bar-lbl  { font-size: 8px; color: #a1a9b8; width: 62px; flex-shrink: 0; }
.di-bar-track{ flex: 1; height: 3px; background: #1e1e3a; border-radius: 2px; overflow: hidden; }
.di-bar-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.di-bar-val  { font-size: 8px; color: #a1a9b8; width: 18px; text-align: right; }

/* WPL badge */
.di-wpl-tag { font-size: 8px; font-weight: 600; color: #fbbf24;
              background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
              border-radius: 3px; padding: 0 4px; margin-left: 4px; }

/* ── OTC player list ── */
.di-otc-search { width: 100%; font-size: 11px; padding: 5px 8px; border-radius: 4px;
                 border: 1px solid #3d3d5c; background: #252542; color: #e2e8f0;
                 margin-bottom: 6px; }
.di-otc-player-list { max-height: 220px; overflow-y: auto; margin-bottom: 6px; }
.di-otc-row { display: flex; align-items: center; gap: 6px; padding: 4px 5px;
              border-radius: 4px; cursor: pointer; border: 1px solid transparent; }
.di-otc-row:hover    { background: #252542; border-color: #3d3d5c; }
.di-otc-row.selected { background: rgba(167,139,250,.1); border-color: #a78bfa; }
.di-otc-radio     { width: 12px; height: 12px; border-radius: 50%;
                    border: 1px solid #4b5563; flex-shrink: 0; }
.di-otc-radio.sel { background: #a78bfa; border-color: #a78bfa; }
.di-otc-name { font-size: 11px; font-weight: 500; color: #e2e8f0; }
.di-otc-meta { font-size: 9px; color: #a1a9b8; }
.di-submit-btn { width: 100%; padding: 7px; border-radius: 5px; border: none;
                 background: #a78bfa; color: #fff; font-size: 11px;
                 font-weight: 500; cursor: pointer; }
.di-submit-btn:disabled { background: #3d3d5c; color: #a1a9b8; cursor: default; }

/* ── Predictor ── */
.di-pred-note   { font-size: 9px; color: #4b5563; margin-bottom: 8px; }
.di-pred-card   { background: #1e1e3a; border: 1px solid #2d2d4a; border-radius: 5px;
                  padding: 7px 9px; margin-bottom: 5px; }
.di-pred-card-alert { border-color: rgba(239,68,68,.4); }
.di-pred-top    { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 5px; }
.di-pred-pick   { font-size: 9px; color: #60a5fa; font-weight: 600; margin-bottom: 2px; }
.di-pred-player { font-size: 11px; font-weight: 500; color: #e2e8f0; }
.di-pred-meta   { font-size: 9px; color: #a1a9b8; margin-top: 1px; }
.di-conf        { font-size: 8px; font-weight: 600; padding: 2px 5px; border-radius: 3px; flex-shrink: 0; }
.di-conf-hi     { background: rgba(16,185,129,.15); color: #10b981; }
.di-conf-md     { background: rgba(245,158,11,.15); color: #f59e0b; }
.di-conf-lo     { background: rgba(107,114,128,.15); color: #9ca3af; }
.di-reasons     { display: flex; flex-wrap: wrap; gap: 3px; }
.di-reason      { font-size: 8px; padding: 1px 5px; border-radius: 3px; border: 1px solid; }
.di-reason-need     { background: rgba(96,165,250,.08);  border-color: rgba(96,165,250,.25); color: #93c5fd; }
.di-reason-adp      { background: rgba(167,139,250,.08); border-color: rgba(167,139,250,.25);color: #c4b5fd; }
.di-reason-wpl      { background: rgba(245,158,11,.08);  border-color: rgba(245,158,11,.3);  color: #fbbf24; }
.di-reason-scarcity { background: rgba(239,68,68,.08);   border-color: rgba(239,68,68,.3);   color: #fca5a5; }
.di-reason-value    { background: rgba(16,185,129,.08);  border-color: rgba(16,185,129,.25); color: #6ee7b7; }
.di-pred-alert-box  { background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.3);
                      border-radius: 5px; padding: 7px 9px; margin-top: 5px;
                      display: flex; gap: 7px; align-items: flex-start; }
.di-pred-alert-icon { font-size: 13px; flex-shrink: 0; }
.di-pred-alert-text { font-size: 10px; color: #fca5a5; line-height: 1.5; }
.di-pred-alert-text strong { color: #ef4444; }

/* ── Scarcity ── */
.di-scard-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-bottom: 8px; }
.di-scard      { background: #252542; border: 1px solid #2d2d4a; border-radius: 4px;
                 padding: 5px 3px; text-align: center; }
.di-scard-pos  { font-size: 9px; font-weight: 600; color: #e2e8f0; }
.di-scard-num  { font-size: 14px; font-weight: 600; margin: 1px 0; }
.di-scard-denom{ font-size: 8px; opacity: .6; }
.di-scard-sub  { font-size: 7px; color: #a1a9b8; }
.di-scard-hot  .di-scard-num { color: #ef4444; }
.di-scard-warm .di-scard-num { color: #f59e0b; }
.di-scard-ok   .di-scard-num { color: #10b981; }
.di-need-list  { display: flex; flex-direction: column; }
.di-need-row   { display: flex; align-items: center; justify-content: space-between;
                 padding: 4px 0; border-bottom: 1px solid #1e1e3a; }
.di-need-l     { display: flex; align-items: center; gap: 5px; }
.di-need-r     { display: flex; align-items: center; gap: 5px; }
.di-need-bar   { width: 55px; height: 4px; background: #1e1e3a; border-radius: 2px; overflow: hidden; }
.di-need-fill  { height: 100%; border-radius: 2px; }
.di-need-status{ font-size: 8px; font-weight: 600; padding: 1px 4px; border-radius: 3px; }
.di-need-crit  { background: rgba(239,68,68,.15); color: #f87171; }
.di-need-mod   { background: rgba(245,158,11,.15); color: #f59e0b; }
.di-need-ok    { background: rgba(16,185,129,.15); color: #10b981; }
.di-scarcity-note { font-size: 8px; color: #374151; text-align: center;
                    padding: 5px; border-top: 1px solid #1e1e3a; margin-top: 4px; }

/* ── Jerry chat ── */
.di-jerry-messages   { flex: 1; overflow-y: auto; max-height: 200px;
                       display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.di-jerry-msg        { display: flex; flex-direction: column; gap: 2px; }
.di-jerry-from       { font-size: 8px; font-weight: 600; color: #a1a9b8; }
.di-jerry-from-jerry { color: #a78bfa; }
.di-jerry-text       { font-size: 11px; line-height: 1.5; color: #e2e8f0;
                       background: #252542; border-radius: 5px; padding: 5px 7px;
                       border: 1px solid #2d2d4a; }
.di-jerry-msg-user .di-jerry-text { background: rgba(124,58,237,.12);
                                    border-color: rgba(124,58,237,.3); margin-left: .75rem; }
.di-jerry-input-row  { display: flex; gap: 5px; }
.di-jerry-input      { flex: 1; font-size: 11px; padding: 5px 7px; border-radius: 4px;
                       border: 1px solid #3d3d5c; background: #252542; color: #e2e8f0; }
.di-jerry-send       { font-size: 10px; padding: 5px 8px; border-radius: 4px;
                       border: none; background: #7c3aed; color: #fff; cursor: pointer; }
.di-jerry-disclaimer { font-size: 8px; text-align: center; color: #4b5563; margin-top: 3px; }
.di-dot              { display: inline-block; width: 5px; height: 5px; border-radius: 50%;
                       background: #6b7280; margin: 0 1px;
                       animation: diDotPulse 1.2s infinite ease-in-out; }
.di-dot:nth-child(2) { animation-delay: .2s; }
.di-dot:nth-child(3) { animation-delay: .4s; }
@keyframes diDotPulse {
    0%,80%,100% { transform: scale(.7); opacity: .5; }
    40%         { transform: scale(1);  opacity: 1; }
}

/* ── Position tag ── */
.di-pos-tag { display: inline-block; font-size: 8px; font-weight: 700;
              padding: 0 3px; border-radius: 2px; margin-right: 3px; }
.di-pos-QB  { background: #7f1d1d; color: #fca5a5; }
.di-pos-RB  { background: #14532d; color: #86efac; }
.di-pos-WR  { background: #1e3a8a; color: #93c5fd; }
.di-pos-TE  { background: #7c2d12; color: #fdba74; }
.di-pos-K   { background: #4c1d95; color: #ddd6fe; }
.di-pos-DST,
.di-pos-DEF { background: #1f2937; color: #9ca3af; }

/* Context bar: premium button gold colour */
.context-btn.premium { color: #fbbf24; }
.context-btn.active-intel { border-color: #fbbf24 !important; }
/* ── Player profile link — clickable name indicator ───────────────────────── */
/* Applied to .di-otc-profile-link, .di-pred-profile-link, .di-rec-profile-link */
.di-otc-profile-link,
.di-pred-profile-link,
.di-rec-profile-link {
    cursor: pointer;
    transition: color 0.15s;
}
.di-otc-profile-link:hover,
.di-pred-profile-link:hover,
.di-rec-profile-link:hover {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Rookie toggle */
.di-rookie-toggle {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #3d3d5c;
    background: none;
    color: #a1a9b8;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.15s;
}
.di-rookie-toggle.active {
    background: rgba(167,139,250,0.15);
    border-color: #a78bfa;
    color: #a78bfa;
}

/* ── Picks away subline ────────────────────────────────── */
.di-picks-away {
    color: #a78bfa;
    font-weight: 600;
}

/* ── Unified picks tab layout ──────────────────────────── */
.di-picks-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Wide mode: side-by-side when panel ≥600px */
.di-panel-inner.di-wide .di-picks-body {
    flex-direction: row;
}
.di-panel-inner.di-wide .di-picks-recs {
    flex: 0 0 260px;
    border-right: 0.5px solid rgba(255,255,255,0.07);
    border-bottom: none;
    overflow-y: auto;
}
.di-panel-inner.di-wide .di-picks-browser {
    flex: 1;
    min-width: 0;
}

/* ── Recs section ─────────────────────────────────────── */
.di-picks-recs {
    flex-shrink: 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.di-picks-recs-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 4px;
    cursor: pointer;
    user-select: none;
}
.di-picks-recs-hdr:hover { background: rgba(255,255,255,0.03); }
.di-collapse-icon {
    font-size: 10px;
    color: #a1a9b8;
}
.di-picks-recs-body {
    padding: 0 8px 8px;
}

/* ── Player browser ────────────────────────────────────── */
.di-picks-browser {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.di-browser-controls {
    flex-shrink: 0;
    padding: 6px 8px 4px;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.1);
}
.di-pos-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
}
.di-pos-filter-btn {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
    border: 0.5px solid rgba(255,255,255,0.1);
    background: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.12s;
}
.di-pos-filter-btn.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}
.di-browser-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 4px 6px;
}

/* Compare checkbox on player rows */
.di-cmp-check {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    cursor: pointer;
    accent-color: #7c3aed;
    margin-right: 2px;
}

/* ── Compare bar ──────────────────────────────────────── */
.di-compare-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(124,58,237,0.1);
    border-top: 0.5px solid rgba(124,58,237,0.25);
    font-size: 11px;
    color: #a78bfa;
    flex-shrink: 0;
}
.di-compare-trigger {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    border: 0.5px solid rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.2);
    color: #a78bfa;
    cursor: pointer;
}
.di-compare-trigger:hover { background: rgba(124,58,237,0.35); }
.di-compare-clear {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 0.5px solid rgba(255,255,255,0.12);
    background: none;
    color: #a1a9b8;
    cursor: pointer;
}
.di-compare-clear:hover { color: #9ca3af; background: rgba(255,255,255,0.05); }

/* ── Submit / Add-to-Draft-List area ─────────────────── */
.di-submit-area {
    flex-shrink: 0;
    padding: 8px;
    border-top: 0.5px solid rgba(255,255,255,0.07);
}
.di-add-draft-btn {
    width: 100%;
    padding: 8px;
    background: rgba(124,58,237,0.2);
    color: #a78bfa;
    border: 0.5px solid rgba(124,58,237,0.4);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.di-add-draft-btn:hover { background: rgba(124,58,237,0.35); }

/* ── Player Compare modal ─────────────────────────────── */
.di-compare-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 4000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}
.di-compare-inner {
    background: #1a2332;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.di-compare-modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
}
.di-compare-modal-hdr button {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 2px 6px;
}
.di-cmp-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.di-cmp-col {
    background: rgba(255,255,255,0.04);
    border: 0.5px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 10px;
}
.di-cmp-hdr {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
}
.di-cmp-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 4px 0 2px;
}
.di-cmp-meta {
    font-size: 11px;
    color: #a1a9b8;
    margin-bottom: 4px;
}
.di-cmp-section-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a1a9b8;
    margin: 8px 0 4px;
    font-weight: 600;
}
.di-cmp-need {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
}

/* ── Panel left-edge resize handle ─────────────────────── */
.di-panel-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    cursor: ew-resize;
    z-index: 10;
    background: transparent;
    transition: background 0.15s;
}
.di-panel-resize-handle:hover,
.di-panel-resize-handle:active {
    background: rgba(124, 58, 237, 0.25);
}

/* Panel must be position:relative so the resize handle can be absolute inside it.
   Only applies to the SHRINK (pinned) panel — the overlay uses position:fixed which
   must NOT be overridden by a bare .di-panel rule. */
.di-shrink-panel {
    position: relative;
}

/* Ensure the overlay stays fixed regardless of other .di-panel rules */
.di-overlay-panel {
    position: fixed !important;
}

/* Shift panel inner content away from the 6px resize handle —
   only the shrink panel has a handle; the overlay does not */
.di-shrink-panel .di-panel-inner {
    margin-left: 6px;
}

/* ── Recs / Browser internal divider ───────────────────── */
.di-picks-divider {
    flex-shrink: 0;
    height: 6px;
    cursor: ns-resize;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.di-picks-divider::after {
    content: '';
    width: 32px;
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.15);
}
.di-picks-divider:hover,
.di-picks-divider:active {
    background: rgba(124, 58, 237, 0.15);
}

/* Wide mode: divider becomes vertical */
.di-panel-inner.di-wide .di-picks-divider {
    width: 6px;
    height: auto;
    cursor: ew-resize;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: column;
}
.di-panel-inner.di-wide .di-picks-divider::after {
    width: 2px;
    height: 32px;
}

/* ── Plain section divider (replaces draggable divider) ── */
.di-picks-section-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
    margin: 0;
}

/* ── Per-row add-to-draft-list button ─────────────────── */
.di-row-add-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 0.5px solid rgba(124,58,237,0.4);
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.12s;
}
.di-row-add-btn:hover { background: rgba(124,58,237,0.35); }

/* ── Grade filter dropdown (replaces grade buttons) ─────── */
.di-grade-filter-sel {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    border: 0.5px solid rgba(255,255,255,0.1);
    background: #252542;
    color: #9ca3af;
    cursor: pointer;
    height: 22px;
    max-width: 90px;
}
.di-grade-filter-sel:focus { outline: none; border-color: #7c3aed; }

/* Draft List filter active variant — gold accent to match the WPL star */
.di-pos-filter-btn.di-dl-active {
    background: rgba(245,158,11,0.2);
    border-color: #f59e0b;
    color: #fbbf24;
}

/* ── Scarcity: revised "Your Team Needs" rows ───────────── */
/* Replace bar-based layout with need badge + supply badge side by side */
.di-need-supply {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 3px;
    color: #9ca3af;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(255,255,255,0.08);
    margin-left: 4px;
}
.di-need-supply.di-need-sc-hot  { color: #fca5a5; background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.2); }
.di-need-supply.di-need-sc-warm { color: #fde68a; background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.2); }
.di-need-supply.di-need-sc-ok   { color: #6ee7b7; background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.2); }

/* Urgent row (user needs it AND board is hot) — subtle red tint */
.di-need-row.di-need-urgent {
    background: rgba(239,68,68,0.05);
    border-radius: 3px;
}
/* Warn row — subtle amber tint */
.di-need-row.di-need-warn {
    background: rgba(245,158,11,0.04);
    border-radius: 3px;
}

/* ── Compare modal: player detail list ──────────────────── */
.di-cmp-detail-list { display: flex; flex-direction: column; gap: 3px; }
.di-cmp-detail-row  { display: flex; justify-content: space-between; font-size: 10px; color: #9ca3af; }
.di-cmp-dl          { color: #6b7280; font-size: 9px; }
.di-cmp-injury      { color: #f87171; font-size: 9px; }

/* ── Draft board prediction overlays ────────────────────── */
/* Appended inside empty pick-slot cells when Draft Intel is open */
.di-pred-overlay {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
    pointer-events: none; /* Don't interfere with cell clicks */
    background: rgba(124,58,237,0.1);
    border: 0.5px solid rgba(124,58,237,0.25);
    border-radius: 3px;
    padding: 1px 3px;
    font-size: 7px;
    overflow: hidden;
    white-space: nowrap;
}
/* Cells need relative positioning to anchor the overlay */
td.pick-slot { position: relative; }

.di-pred-ov-pos  { flex-shrink: 0; }
.di-pred-ov-name { flex: 1; overflow: hidden; text-overflow: ellipsis; color: #c4b5fd; font-weight: 500; }
.di-pred-ov-hi   { color: #10b981; }
.di-pred-ov-md   { color: #f59e0b; }
.di-pred-ov-lo   { color: #6b7280; }

/* ── Auction Bid Landscape (Predictor for auction leagues) ── */
.di-auc-targets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

/* Target card — left border highlight for draft list players */
.di-auc-target-card {
    background: #1e1e3a;
    border: 1px solid #2d2d4a;
    border-radius: 5px;
    padding: 7px 9px;
}
.di-auc-target-card.di-auc-dl {
    border-left: 2px solid #f59e0b;
}

.di-auc-target-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    gap: 6px;
}
.di-auc-target-name {
    font-size: 11px;
    font-weight: 500;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.di-auc-target-meta {
    font-size: 9px;
    color: #a1a9b8;
    margin-top: 2px;
}

/* My max-bid block (top-right of each card) */
.di-auc-my-bid {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex-shrink: 0;
}
.di-auc-bid-label {
    font-size: 7px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.di-auc-bid-val {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

/* Competitor tags */
.di-auc-competitors-lbl {
    font-size: 8px;
    color: #6b7280;
    margin-bottom: 3px;
}
.di-auc-competitors {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.di-auc-competitor {
    font-size: 9px;
    background: rgba(96,165,250,.08);
    border: 0.5px solid rgba(96,165,250,.2);
    color: #93c5fd;
    border-radius: 3px;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: default;
}
.di-auc-bid-est {
    font-weight: 700;
    font-size: 10px;
}
.di-auc-no-comp {
    font-size: 9px;
    color: #374151;
    font-style: italic;
}

/* Franchise budget table */
.di-auc-fr-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.di-auc-fr-row {
    display: grid;
    grid-template-columns: 1fr 90px 1fr;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    border-bottom: 0.5px solid #1e1e3a;
    font-size: 9px;
}
.di-auc-fr-row.di-auc-fr-me {
    background: rgba(167,139,250,.06);
    border-radius: 3px;
    padding: 4px 5px;
    border-color: transparent;
}
.di-auc-fr-name {
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.di-auc-fr-budget {
    display: flex;
    align-items: center;
    gap: 4px;
}
.di-auc-budget-bar-wrap {
    flex: 1;
    height: 4px;
    background: #1e1e3a;
    border-radius: 2px;
    overflow: hidden;
}
.di-auc-budget-bar {
    height: 100%;
    border-radius: 2px;
    transition: width .3s;
}
.di-auc-budget-amt {
    font-size: 9px;
    color: #e2e8f0;
    font-weight: 600;
    white-space: nowrap;
    min-width: 26px;
    text-align: right;
}
.di-auc-fr-need {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}
.di-auc-fr-target {
    font-size: 8px;
    color: #a1a9b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Auction bid: unknown/no-data state ─── */
/* Shown when player has no KTC value and no ADP — no misleading $0 */
.di-auc-bid-unknown {
    color: #6b7280;
    font-size: 16px;
    font-weight: 700;
}
