/* ═══════════════════════════════════════════════════════════════════
   styles-append-props-rail-v0.18.0.css
   Props page rework (v0.18.0) — query rail + facet deck + saved-view
   presets + grouped-by-player board. Replaces the scrolling filter
   pillbar (markup removed from props.html v0.18.0; old pillbar CSS
   left on disk, now unreferenced).

   All selectors scoped under .tt-flow-props (NBA #107 discipline —
   no bare class names that could collide with other pages' appends).
   New class namespace: pr-  (props rail).
   ═══════════════════════════════════════════════════════════════════ */

/* ── Rail zone (sticky) ─────────────────────────────────────────── */
.tt-flow-props .pr-rail-zone {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 12px 0 14px;
    background: linear-gradient(180deg, var(--bg, #0a0a0b) 82%, transparent);
}

.tt-flow-props .pr-rail {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 12px;
    background: var(--bg-elevated, #101211);
    box-shadow: 0 12px 34px rgba(0,0,0,.5);
    overflow: hidden;
}

.tt-flow-props .pr-prompt {
    display: flex;
    align-items: center;
    padding: 0 14px 0 18px;
    font: 800 18px var(--font-mono, 'JetBrains Mono', monospace);
    color: #5DE0AC;
    user-select: none;
}

.tt-flow-props .pr-tokens {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-height: 52px;
    padding: 10px 6px;
}
.tt-flow-props .pr-tokens-list {
    display: contents;
}

.tt-flow-props .pr-tok {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid;
    border-radius: 7px;
    padding: 6px 5px 6px 10px;
    font: 600 11.5px var(--font-mono, 'JetBrains Mono', monospace);
    white-space: nowrap;
    cursor: default;
}
.tt-flow-props .pr-tok .pr-tok-f {
    opacity: .62;
    font-weight: 500;
    letter-spacing: .04em;
}
.tt-flow-props .pr-tok .pr-tok-x {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    font: 700 11px var(--font-mono, 'JetBrains Mono', monospace);
    cursor: pointer;
    opacity: .55;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
}
.tt-flow-props .pr-tok .pr-tok-x:hover { opacity: 1; background: rgba(255,255,255,.1); }
.tt-flow-props .pr-tok-scope { border-color: rgba(93,224,172,.35);  background: rgba(93,224,172,.07);  color: #5DE0AC; }
.tt-flow-props .pr-tok-shape { border-color: rgba(232,184,75,.35);  background: rgba(232,184,75,.07);  color: #E8B84B; }
.tt-flow-props .pr-tok-edge  { border-color: rgba(167,139,250,.35); background: rgba(167,139,250,.08); color: #A78BFA; }
.tt-flow-props .pr-tok-locked .pr-tok-x { display: none; }

.tt-flow-props .pr-rail input.pr-search {
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text-primary, #f0eee6);
    font: 500 12.5px var(--font-mono, 'JetBrains Mono', monospace);
    flex: 1;
    min-width: 150px;
    padding: 8px;
}
.tt-flow-props .pr-rail input.pr-search::placeholder { color: var(--text-tertiary, #5c5b55); }

.tt-flow-props .pr-rail-right {
    display: flex;
    align-items: stretch;
    border-left: 1px solid var(--border, rgba(255,255,255,.06));
}
.tt-flow-props .pr-count {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font: 500 11.5px var(--font-mono, 'JetBrains Mono', monospace);
    color: var(--text-secondary, #8a8880);
    white-space: nowrap;
}
.tt-flow-props .pr-count b {
    color: var(--text-primary, #f0eee6);
    font-weight: 700;
    margin-right: 4px;
}
.tt-flow-props .pr-rail-btn {
    border: 0;
    border-left: 1px solid var(--border, rgba(255,255,255,.06));
    background: transparent;
    color: var(--text-secondary, #c8c6bf);
    font: 700 11.5px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .12em;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.tt-flow-props .pr-rail-btn:hover { background: rgba(255,255,255,.04); color: var(--text-primary, #f0eee6); }
.tt-flow-props .pr-rail-btn .pr-badge {
    background: #5DE0AC;
    color: #06231a;
    border-radius: 5px;
    font: 800 10.5px var(--font-mono, 'JetBrains Mono', monospace);
    padding: 2px 6px;
}
.tt-flow-props .pr-rail-btn.pr-clear {
    color: var(--text-tertiary, #5c5b55);
    letter-spacing: .06em;
    font-weight: 500;
}
.tt-flow-props .pr-rail-btn.pr-clear:hover { color: #FF6B8E; }
.tt-flow-props .pr-rail-btn.pr-deck-open { background: rgba(93,224,172,.07); color: #5DE0AC; }

/* ── Rail sub-row: presets + sort ───────────────────────────────── */
.tt-flow-props .pr-rail-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 9px;
    padding: 0 4px;
}
.tt-flow-props .pr-presets {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-height: 28px;
}
.tt-flow-props .pr-presets .pr-presets-lbl {
    font: 600 9px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .26em;
    color: var(--text-tertiary, #5c5b55);
    margin-right: 2px;
}
.tt-flow-props .pr-preset {
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary, #c8c6bf);
    font: 500 11px var(--font-mono, 'JetBrains Mono', monospace);
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
}
.tt-flow-props .pr-preset:hover { border-color: rgba(93,224,172,.45); color: #5DE0AC; }
.tt-flow-props .pr-preset.pr-preset-save { color: var(--text-tertiary, #5c5b55); border-style: dashed; }
.tt-flow-props .pr-preset.pr-preset-save:hover { color: #5DE0AC; }
.tt-flow-props .pr-sorter {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 500 10.5px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .14em;
    color: var(--text-tertiary, #8a8880);
    white-space: nowrap;
}
.tt-flow-props .pr-sorter select {
    background: var(--bg-elevated, #101211);
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 7px;
    color: var(--text-primary, #f0eee6);
    font: 600 11.5px var(--font-mono, 'JetBrains Mono', monospace);
    padding: 6px 10px;
    cursor: pointer;
}

/* ── Facet deck ─────────────────────────────────────────────────── */
.tt-flow-props .pr-deck {
    display: none;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 0;
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: var(--bg, #0d0f0e);
    margin-top: -15px;
    padding: 26px 22px 20px;
}
.tt-flow-props .pr-deck.pr-open { display: grid; }
.tt-flow-props .pr-deck-col {
    padding: 0 22px;
    border-right: 1px dashed var(--border, rgba(255,255,255,.08));
}
.tt-flow-props .pr-deck-col:first-child { padding-left: 4px; }
.tt-flow-props .pr-deck-col:last-child  { border-right: 0; padding-right: 4px; }
.tt-flow-props .pr-deck-h {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 700 9.5px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .3em;
    margin-bottom: 16px;
}
.tt-flow-props .pr-deck-h::after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--border, rgba(255,255,255,.08));
}
.tt-flow-props .pr-deck-h.pr-h-scope { color: #5DE0AC; }
.tt-flow-props .pr-deck-h.pr-h-shape { color: #E8B84B; }
.tt-flow-props .pr-deck-h.pr-h-edge  { color: #A78BFA; }
.tt-flow-props .pr-facet { margin-bottom: 16px; }
.tt-flow-props .pr-facet-lbl {
    font: 500 10px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .14em;
    color: var(--text-tertiary, #8a8880);
    margin-bottom: 7px;
}
.tt-flow-props .pr-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-flow-props .pr-opt {
    border: 1px solid var(--border, rgba(255,255,255,.08));
    background: transparent;
    border-radius: 7px;
    color: var(--text-secondary, #c8c6bf);
    font: 500 11px var(--font-mono, 'JetBrains Mono', monospace);
    padding: 6px 10px;
    cursor: pointer;
    white-space: nowrap;
}
.tt-flow-props .pr-opt:hover { border-color: rgba(255,255,255,.22); }
.tt-flow-props .pr-deck-col .pr-opt.pr-on { border-color: rgba(93,224,172,.55);  background: rgba(93,224,172,.09);  color: #5DE0AC; font-weight: 700; }
.tt-flow-props .pr-deck-col.pr-col-shape .pr-opt.pr-on { border-color: rgba(232,184,75,.5);  background: rgba(232,184,75,.08);  color: #E8B84B; }
.tt-flow-props .pr-deck-col.pr-col-edge  .pr-opt.pr-on { border-color: rgba(167,139,250,.5); background: rgba(167,139,250,.09); color: #A78BFA; }
.tt-flow-props .pr-deck-foot {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border, rgba(255,255,255,.06));
}
.tt-flow-props .pr-btn {
    border-radius: 8px;
    font: 700 11.5px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .1em;
    padding: 9px 18px;
    cursor: pointer;
    border: 1px solid var(--border, rgba(255,255,255,.1));
    background: transparent;
    color: var(--text-secondary, #c8c6bf);
}
.tt-flow-props .pr-btn-primary { background: #5DE0AC; border-color: #5DE0AC; color: #06231a; }
.tt-flow-props .pr-btn-primary:hover { filter: brightness(1.08); }

/* ── Board tools bar ────────────────────────────────────────────── */
.tt-flow-props .pr-board-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
}
.tt-flow-props .pr-board-tools .pr-bt-label {
    font: 600 10px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .22em;
    color: var(--text-tertiary, #8a8880);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tt-flow-props .pr-bt-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 500 10px var(--font-mono, 'JetBrains Mono', monospace);
    color: var(--text-tertiary, #5c5b55);
    letter-spacing: .1em;
    white-space: nowrap;
}
.tt-flow-props .pr-toggle {
    display: flex;
    border: 1px solid var(--border, rgba(255,255,255,.08));
    border-radius: 8px;
    overflow: hidden;
}
.tt-flow-props .pr-toggle button {
    background: transparent;
    border: 0;
    color: var(--text-tertiary, #8a8880);
    font: 600 10px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .1em;
    padding: 6px 11px;
    cursor: pointer;
}
.tt-flow-props .pr-toggle button.pr-on { background: rgba(255,255,255,.05); color: #5DE0AC; }
.tt-flow-props .pr-linkbtn {
    background: transparent;
    border: 0;
    color: var(--text-tertiary, #5c5b55);
    font: 600 10px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .1em;
    cursor: pointer;
    padding: 4px 2px;
}
.tt-flow-props .pr-linkbtn:hover { color: var(--text-primary, #f0eee6); }

/* ── Grouped board — player group header rows ───────────────────── */
.tt-flow-props .pg-group-head { cursor: pointer; user-select: none; }
.tt-flow-props .pg-group-head:hover td { background: rgba(255,255,255,.02); }
.tt-flow-props .pg-group-head td {
    padding: 12px 14px;
    border-top: 1px solid var(--border, rgba(255,255,255,.09));
    background: rgba(255,255,255,.012);
}
.tt-flow-props .pr-gh {
    display: flex;
    align-items: center;
    gap: 13px;
}
.tt-flow-props .pr-gh-chev {
    width: 20px;
    height: 20px;
    flex: none;
    border: 1px solid var(--border, rgba(255,255,255,.1));
    border-radius: 6px;
    display: grid;
    place-items: center;
    font: 600 10px var(--font-mono, 'JetBrains Mono', monospace);
    color: var(--text-tertiary, #8a8880);
    transition: transform .14s;
}
.tt-flow-props .pg-group-head.pr-closed .pr-gh-chev { transform: rotate(-90deg); }
.tt-flow-props .pr-gh-ava {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d2a24, #141a17);
    border: 1px solid var(--border, rgba(255,255,255,.1));
    display: grid;
    place-items: center;
    font: 700 11.5px var(--font-mono, 'JetBrains Mono', monospace);
    color: #5DE0AC;
    position: relative;
}
.tt-flow-props .pr-gh-ava img.pr-gh-hs {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    background: #141a17;
}
.tt-flow-props .pr-gh-ava .pr-gh-chip {
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0c0e0d;
    border: 2px solid var(--bg, #0a0a0b);
    display: grid;
    place-items: center;
    z-index: 2;
}
.tt-flow-props .pr-gh-ava .pr-gh-chip img { width: 12px; height: 12px; object-fit: contain; }
.tt-flow-props .pr-gh-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tt-flow-props .pr-gh-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 700 14.5px var(--font-body, 'Inter Tight', sans-serif);
    color: var(--text-primary, #f0eee6);
}
.tt-flow-props .pr-gh-team {
    font: 600 9.5px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .1em;
    color: var(--text-tertiary, #8a8880);
    border: 1px solid var(--border, rgba(255,255,255,.1));
    border-radius: 4px;
    padding: 2px 6px;
}
.tt-flow-props .pr-gh-game {
    font: 400 10.5px var(--font-mono, 'JetBrains Mono', monospace);
    color: var(--text-tertiary, #5c5b55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tt-flow-props .pr-gh-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    font: 500 10.5px var(--font-mono, 'JetBrains Mono', monospace);
    color: var(--text-tertiary, #8a8880);
    white-space: nowrap;
}
.tt-flow-props .pr-gh-badge {
    border-radius: 6px;
    padding: 4px 9px;
    font: 700 10.5px var(--font-mono, 'JetBrains Mono', monospace);
    letter-spacing: .04em;
}
.tt-flow-props .pr-gh-badge-ev {
    background: rgba(93,224,172,.1);
    border: 1px solid rgba(93,224,172,.35);
    color: #5DE0AC;
}
.tt-flow-props .pr-gh-badge-verify {
    background: rgba(232,184,75,.08);
    border: 1px solid rgba(232,184,75,.4);
    color: #E8B84B;
    letter-spacing: .1em;
    font-size: 9.5px;
}
.tt-flow-props .pr-gh-badge-pp {
    background: rgba(167,139,250,.09);
    border: 1px solid rgba(167,139,250,.35);
    color: #A78BFA;
}

/* ── Season columns toggle (WINDOWS default hides 2025/2024) ────── */
.tt-flow-props:not(.pr-show-seasons) .pg-col-s2025,
.tt-flow-props:not(.pr-show-seasons) .pg-col-s2024 { display: none; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tt-flow-props .pr-deck { grid-template-columns: 1fr; }
    .tt-flow-props .pr-deck-col {
        border-right: 0;
        border-bottom: 1px dashed var(--border, rgba(255,255,255,.08));
        padding: 18px 4px;
    }
    .tt-flow-props .pr-rail-sub { flex-direction: column; align-items: flex-start; gap: 10px; }
    .tt-flow-props .pr-count { display: none; }
    .tt-flow-props .pr-gh-game { max-width: 140px; }
}
