/* ── 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;
}

/* 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: 56px;
    flex-shrink: 0;
    background: var(--surface-color, #1a1a2e);
    border-left: 1px solid var(--border-color, #2d2d4a);
    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: #6b7280; 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: 12px; font-weight: 500; color: #e2e8f0; }
.di-stat-lbl    { font-size: 7px; color: #6b7280; text-align: center; }
.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: #6b7280; 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: #6b7280; 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: #6b7280; }
.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: #6b7280; cursor: pointer; }
.di-tab.active { color: #a78bfa; border-bottom-color: #a78bfa; }

/* Tab body */
.di-tab-body { flex: 1; overflow-y: auto; padding: 10px 12px; }

/* Shared section label */
.di-sec-lbl { font-size: 8px; font-weight: 600; text-transform: uppercase;
              letter-spacing: .05em; color: #6b7280; 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: #6b7280; }

/* ── 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: #6b7280; display: block; margin-bottom: 1px; }
.di-rec-name { font-size: 11px; font-weight: 500; color: #e2e8f0; }
.di-rec-meta { font-size: 9px; color: #6b7280; 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: #6b7280; 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: #6b7280; 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: #6b7280; }
.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: #6b7280; 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: #6b7280; 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: #6b7280; }
.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: #6b7280; }
.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; }