/* Round 303: lineup-style drop picker. Uses the roster-sheet typography and section-card
   chrome (rounded cards, navy / theme headers, position badges). Themes are handled here
   so day.css / night.css / t3.css / dp.css stay untouched. */
.dropsel.dpk-on{position:relative}
.dropsel.dpk-on>.dpk-open{
  display:flex;align-items:center;width:100%;max-width:100%;text-align:left;
  font:inherit;font-size:14px;font-weight:600;color:var(--ink);
  padding:10px 12px;border-radius:10px;border:1px solid var(--line);
  background:var(--card,#fff);cursor:pointer;
}
.dropsel.dpk-on>.dpk-open::after{content:"▾";margin-left:auto;padding-left:8px;opacity:.55;font-size:12px}
.dropsel.dpk-on>.dpk-sel{
  position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;
  clip:rect(0,0,0,0) !important;border:0 !important;opacity:0 !important;pointer-events:none !important;
  appearance:none !important;-webkit-appearance:none !important;
}
.dropsel:not(.dpk-on)>.dpk-open{display:none}
.dpk-val{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

dialog.dsheet{
  padding:0;border:0;background:transparent;width:100%;max-width:100%;
  height:100%;max-height:100%;margin:0;overflow:visible;
  font-family:-apple-system,"SF Pro Text","SF Pro Display","RSSheet","Inter Tight",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
dialog.dsheet::backdrop{background:rgba(8,16,32,.52);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.dpk-card{
  display:flex;flex-direction:column;height:100%;
  background:#959ba3;color:#111827;
  border-radius:18px 18px 0 0;overflow:hidden;
  padding:0 0 calc(12px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -8px 32px rgba(8,16,32,.28);
}
.dpk-handle{flex:none;width:36px;height:5px;border-radius:99px;background:rgba(15,23,42,.28);margin:8px auto 0}
.dpk-head{
  flex:none;display:flex;align-items:center;gap:10px;
  padding:10px 16px 10px;background:transparent;color:#111827;
}
.dpk-t{flex:1;min-width:0}.dpk-t b{font-size:16px;font-weight:700;letter-spacing:-.01em}
.dpk-x{
  flex:none;width:32px;height:32px;border-radius:50%;border:0;
  background:#eef2f7;color:#445;font-size:14px;cursor:pointer;
}
.dpk-list{
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  padding:4px 12px 16px;-webkit-overflow-scrolling:touch;
}
.dpk-sec{
  background:#fff;border:1px solid #d5dae2;border-radius:16px;
  overflow:hidden;margin:0 0 12px;
  box-shadow:0 2px 6px rgba(15,23,42,.10);
}
.dpk-sec.dpk-none{padding:4px 0}
.dpk-h{
  padding:10px 12px;font-size:11.5px;font-weight:700;letter-spacing:.7px;
  text-transform:uppercase;background:#1b2a4a;color:#fff;
}
.dpk-h::before{content:"★";margin-right:6px;opacity:.85}
.dpk-h.ir{background:#7f1d1d}.dpk-h.ir::before{content:"✚"}
.dpk-h.ps{background:#4c1d95}.dpk-h.ps::before{content:"◆"}
.dpk-row{
  display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;
  font:inherit;color:#111827;background:#fff;border:0;
  border-top:1px solid #e8ecf2;padding:10px 12px;cursor:pointer;
}
.dpk-sec.dpk-none .dpk-row,.dpk-row:first-of-type{border-top:0}
.dpk-row:active{background:#f3f5f8}
.dpk-row.on{background:#fef3c7}
.dpk-row .spill{flex:none;margin-top:1px}
.dpk-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.dpk-meta b{font-size:14.5px;font-weight:650;letter-spacing:-.01em;line-height:1.2}
.dpk-sub{font-size:12px;font-weight:500;color:#5b6573;line-height:1.25}
.dpk-dead{font-size:11.5px;font-weight:500;color:#6b7280;line-height:1.3;margin-top:1px}
.dpk-empty{margin:16px 8px;color:#5b6573;font-size:14px}

/* Day already uses the defaults above. Night / T3 / DP follow the roster-sheet bars. */
html[data-skin=night] .dpk-card{background:#121212;color:#eeeded}
html[data-skin=night] .dpk-head{color:#eeeded}
html[data-skin=night] .dpk-handle{background:rgba(238,237,237,.28)}
html[data-skin=night] .dpk-x{background:#282626;color:#eeeded}
html[data-skin=night] .dpk-sec{background:#201f1f;border-color:#373535;box-shadow:none}
html[data-skin=night] .dpk-h{background:#1f6bff;color:#fff}
html[data-skin=night] .dpk-row{background:#201f1f;color:#eeeded;border-top-color:#2c2a2a}
html[data-skin=night] .dpk-row:active{background:#2a2828}
html[data-skin=night] .dpk-row.on{background:#433b18}
html[data-skin=night] .dpk-sub,html[data-skin=night] .dpk-dead,html[data-skin=night] .dpk-empty{color:#b5b1b1}
html[data-skin=night] .dropsel.dpk-on>.dpk-open{background:#201f1f;color:#eeeded;border-color:#373535}

html[data-skin=t3] .dpk-card{background:#121212;color:#eeeded}
html[data-skin=t3] .dpk-head{color:#eeeded}
html[data-skin=t3] .dpk-handle{background:rgba(238,237,237,.28)}
html[data-skin=t3] .dpk-x{background:#282626;color:#eeeded}
html[data-skin=t3] .dpk-sec{background:#201f1f;border-color:#373535;box-shadow:none}
html[data-skin=t3] .dpk-h{background:#773141;color:#fff}
html[data-skin=t3] .dpk-row{background:#201f1f;color:#eeeded;border-top-color:#2c2a2a}
html[data-skin=t3] .dpk-row:active{background:#2a2828}
html[data-skin=t3] .dpk-row.on{background:#433b18}
html[data-skin=t3] .dpk-sub,html[data-skin=t3] .dpk-dead,html[data-skin=t3] .dpk-empty{color:#b5b1b1}
html[data-skin=t3] .dropsel.dpk-on>.dpk-open{background:#201f1f;color:#eeeded;border-color:#373535}

html[data-skin=dp] .dpk-card{background:#0e1615;color:#ebf0ef}
html[data-skin=dp] .dpk-head{color:#ebf0ef}
html[data-skin=dp] .dpk-handle{background:rgba(235,240,239,.28)}
html[data-skin=dp] .dpk-x{background:#1e302d;color:#ebf0ef}
html[data-skin=dp] .dpk-sec{background:#192724;border-color:#2a423d;box-shadow:none}
html[data-skin=dp] .dpk-h{background:#3c8979;color:#fff}
html[data-skin=dp] .dpk-row{background:#192724;color:#ebf0ef;border-top-color:#243834}
html[data-skin=dp] .dpk-row:active{background:#1e302d}
html[data-skin=dp] .dpk-row.on{background:#433b18}
html[data-skin=dp] .dpk-sub,html[data-skin=dp] .dpk-dead,html[data-skin=dp] .dpk-empty{color:#b4c2bf}
html[data-skin=dp] .dropsel.dpk-on>.dpk-open{background:#192724;color:#ebf0ef;border-color:#2a423d}

html[data-skin=heritage] .dpk-card{background:#17140f;color:#f3ecd8}
html[data-skin=heritage] .dpk-head{color:#f3ecd8}
html[data-skin=heritage] .dpk-handle{background:rgba(243,236,216,.28)}
html[data-skin=heritage] .dpk-x{background:#211c14;color:#f3ecd8}
html[data-skin=heritage] .dpk-sec{background:#211c14;border-color:#3a3428;box-shadow:none}
html[data-skin=heritage] .dpk-h{background:#3f4f2c;color:#f3ecd8}
html[data-skin=heritage] .dpk-row{background:#211c14;color:#f3ecd8;border-top-color:#3a3428}
html[data-skin=heritage] .dpk-row:active{background:#2a2418}
html[data-skin=heritage] .dpk-row.on{background:#3a3218}
html[data-skin=heritage] .dpk-sub,html[data-skin=heritage] .dpk-dead,html[data-skin=heritage] .dpk-empty{color:#b5aa90}
html[data-skin=heritage] .dropsel.dpk-on>.dpk-open{background:#211c14;color:#f3ecd8;border-color:#3a3428}


:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .dpk-h.ir{background:#7f1d1d}
:is(html[data-skin=night],html[data-skin=t3],html[data-skin=dp],html[data-skin=heritage]) .dpk-h.ps{background:#4c1d95}

@media (min-width:620px){
  dialog.dsheet{max-width:430px;height:auto;max-height:92dvh;margin:auto;border-radius:18px}
  .dpk-card{max-height:92dvh;border-radius:18px}
}
