/* ==========================================================================
   shared-entry-list.css — the read-only entry list on a shared reel (/w/{token}).
   Markup: app/Views/partials/shared/entry-list.php · behaviour: shared-entry-list.js
   Quiet by design (owner 2026-11-13): one muted line, the list only on request.
   ⚠️ Every theme var carries a fallback — light theme has NO data-theme attribute.
   ⚠️ No Bootstrap responsive utilities: site.css makes .d-none !important, so
   d-lg-none / d-none d-lg-block are dead site-wide. Scoped media queries only.
   ========================================================================== */
.wsp-el {
    --el-ink: var(--theme-text, #1f2937);
    --el-muted: var(--theme-muted, #6b7280);
    --el-line: var(--theme-border, #e3e8ef);
    --el-field: var(--theme-surface, #ffffff);
    --el-accent: var(--theme-accent, #3a6fd4);
    --el-hl: #fff7d6;
    --el-hl-ink: #7a4f00;
}
/* ⚠️ dark: the theme accent #6366f1 on the dark card is 4.19:1 — short of AA for
   this small text (measured 2026-11-13). The list's links use indigo-300 there. */
body[data-theme="dark"] .wsp-el,
body[data-theme="dark"] .wsp-el-sheet { --el-hl: #3a3218; --el-hl-ink: #ffd76a; --el-accent: #a5b4fc; }
body[data-theme="dark"] .wsp-el-line .wsp-el-more { color: #a5b4fc; }
body[data-theme="high-contrast"] .wsp-el,
body[data-theme="high-contrast"] .wsp-el-sheet { --el-hl: #ffff00; --el-hl-ink: #000000; }

/* the quiet line, under SPIN in the side panel */
.wsp-el-sum {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    margin-top: 1rem; padding: .7rem 0 .15rem; border: 0; border-top: 1px solid var(--el-line);
    background: none; text-align: left; cursor: pointer; font-size: .85rem; color: var(--el-muted);
}
.wsp-el-sum b { color: var(--el-ink); font-weight: 600; }
.wsp-el-ic { opacity: .8; }
.wsp-el-more { margin-left: auto; white-space: nowrap; font-weight: 600; color: var(--el-accent); }
.wsp-el-more .bi { display: inline-block; font-size: .75em; transition: transform .15s ease; }
.wsp-el-sum[aria-expanded="true"] .wsp-el-more .bi { transform: rotate(180deg); }
.wsp-el-sum:focus-visible, .wsp-el-line:focus-visible { outline: 3px solid rgba(79, 70, 229, .55); outline-offset: 2px; border-radius: 4px; }

/* the list */
.wsp-el-body { margin-top: .5rem; }
.wsp-el-sheet-head { display: none; }
.wsp-el-tabs { display: flex; gap: 4px; margin-bottom: .5rem; }
.wsp-el-tabs [role="tab"] {
    flex: 1 1 0; border: 1px solid var(--el-line); border-radius: 6px; padding: .25rem 0; cursor: pointer;
    font-size: .8rem; font-weight: 600; color: var(--el-muted); background: var(--el-field);
}
.wsp-el-tabs [role="tab"][aria-selected="true"] { border-color: var(--el-accent); color: var(--el-accent); }
.wsp-el-tabs small { font-weight: 500; opacity: .8; }
.wsp-el-find {
    width: 100%; margin-bottom: .4rem; padding: .35rem .6rem; font-size: .85rem;
    border: 1px solid var(--el-line); border-radius: 6px; background: var(--el-field); color: var(--el-ink);
}
.wsp-el-find[hidden] { display: none; }
.wsp-el-list {
    list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; overscroll-behavior: contain;
    border: 1px solid var(--el-line); border-radius: 8px; background: var(--el-field);
}
.wsp-el-list[hidden] { display: none; }
.wsp-el-list li { display: flex; align-items: center; gap: .5rem; padding: .3rem .6rem; font-size: .85rem; color: var(--el-ink); border-bottom: 1px solid var(--el-line); }
.wsp-el-list li:last-child { border-bottom: 0; }
.wsp-el-list li[hidden] { display: none; }
.wsp-el-n { flex: none; width: 1.6em; text-align: right; font-size: .72rem; color: var(--el-muted); font-variant-numeric: tabular-nums; }
.wsp-el-e { flex: none; width: 20px; height: 20px; display: grid; place-items: center; line-height: 1; }
.wsp-el-list.is-plain .wsp-el-e { display: none; }
/* classic wheel: the slice's colour, and its chance when the wheel is weighted */
.wsp-el-dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.wsp-el-w { flex: none; font-size: .75rem; font-weight: 600; color: var(--el-muted); font-variant-numeric: tabular-nums; }
.wsp-el-list li.is-pick .wsp-el-w { color: var(--el-hl-ink); }
.wsp-el-e img { width: 20px; height: 20px; object-fit: cover; border-radius: 4px; }
.wsp-el-t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wsp-el-list li.is-pick { background: var(--el-hl); }
.wsp-el-list li.is-pick .wsp-el-t,
.wsp-el-list li.is-pick .wsp-el-n { font-weight: 700; color: var(--el-hl-ink); }
.wsp-el-list li.is-pick::after { content: "last pick"; flex: none; font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: var(--el-hl-ink); }
.wsp-el-none { margin: .4rem 0 0; font-size: .8rem; color: var(--el-muted); }
.wsp-el-none[hidden] { display: none; }
.wsp-el-foot { display: flex; justify-content: space-between; gap: .5rem; margin-top: .4rem; font-size: .75rem; color: var(--el-muted); }

/* the same line under the stage, phones only (the side panel is a drawer there) */
.wsp-el-line {
    display: none; align-items: center; justify-content: center; gap: .4rem; margin: .6rem auto 0;
    border: 0; background: none; cursor: pointer; font-size: .85rem; color: var(--theme-muted, #6b7280);
}
.wsp-el-line b { color: var(--theme-text, #1f2937); font-weight: 600; }
.wsp-el-line .wsp-el-more { margin-left: .15rem; color: var(--theme-accent, #3a6fd4); }
@media (max-width: 991.98px) {
    .wsp-el-line { display: flex; }
}
body.zen-mode .wsp-el-line { display: none; }

/* the bottom sheet */
.wsp-el-scrim { position: fixed; inset: 0; z-index: 1060; background: rgba(0, 0, 0, .4); }
.wsp-el-sheet {
    --el-ink: var(--theme-text, #1f2937); --el-muted: var(--theme-muted, #6b7280); --el-line: var(--theme-border, #e3e8ef);
    --el-field: var(--theme-surface, #ffffff); --el-accent: var(--theme-accent, #3a6fd4);
    --el-hl: #fff7d6; --el-hl-ink: #7a4f00;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1061; margin: 0 auto; width: min(560px, 100%);
    max-height: 80vh; overflow: auto; padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0; background: var(--theme-surface, #ffffff); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
}
.wsp-el-sheet .wsp-el-body { margin-top: 0; }
.wsp-el-sheet .wsp-el-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; color: var(--el-ink); }
.wsp-el-sheet .wsp-el-sheet-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsp-el-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--el-muted); cursor: pointer; }
.wsp-el-sheet .wsp-el-list { max-height: 50vh; }
html.wsp-el-locked, html.wsp-el-locked body { overflow: hidden; }
