/* Hero Dispatch (client/panels-dispatch.js). --c = the rarity colour of the mission or hero. */
.dp-counters { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.dp-counters .pn-chip { font-size: 12.5px; padding: 3px 9px; }
.dp-counters .pn-chip b { margin-left: 3px; color: var(--text); }

/* progress chests */
.dp-chests { display: grid; gap: 12px; padding-bottom: 14px; }
.dp-prog-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.dp-prog-head b { color: var(--pn-gold, var(--c-amber)); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.dp-prog-head small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.dp-prog-line { position: relative; height: 40px; margin: 2px 22px 0 4px; }
.dp-prog-line .pn-bar { position: absolute; left: 0; right: 0; top: 14px; margin: 0; height: 10px; }
.dp-chest { position: absolute; top: 0; width: 40px; height: 40px; margin-left: -20px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: #131a16; border: 2px solid var(--line); line-height: 1; }
.dp-chest span { font-size: 18px; filter: grayscale(.8); opacity: .75; }
.dp-chest small { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 0 5px; border-radius: 8px; background: var(--c-ink); border: 1px solid var(--line); font: 700 10px/14px system-ui; color: var(--muted); }
.dp-chest.ready { border-color: var(--accent); background: #3a2a0a; box-shadow: 0 0 12px rgba(240,180,60,.6); animation: dp-pulse 1.2s ease-in-out infinite; }
.dp-chest.ready span { filter: none; opacity: 1; }
.dp-chest.ready small { color: var(--c-amber-pale); border-color: var(--accent); }
.dp-chest.open { border-color: #2f6b3a; }
.dp-chest.open small { color: var(--good); }
@keyframes dp-pulse { 50% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .dp-chest.ready { animation: none; } }

/* clan assists */
.dp-clan { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; width: 100%; margin-bottom: 10px; padding: 9px 12px; text-align: left; border-radius: 12px; background: linear-gradient(#1d2a30, #152024); border: 1px solid #2f5a6b; }
.dp-clan span { font-weight: 700; }
.dp-clan small { grid-column: 1; color: var(--muted); font-size: 12px; }
.dp-clan i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 22px; color: var(--muted); }
.dp-clan.hot { border-color: var(--accent); box-shadow: 0 0 10px rgba(240,180,60,.25); }
.dp-clan.hot small { color: var(--c-amber-pale); }
.dp-clan-list { display: grid; gap: 6px; margin-top: 10px; }
.dp-clan-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 10px; background: #131a16; border: 1px solid var(--line); border-left: 4px solid var(--c); }
.dp-clan-row .mid { flex: 1; min-width: 0; display: grid; }
.dp-clan-row .mid b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-clan-row .mid small { color: var(--muted); font-size: 11.5px; }
.dp-clan-row button { flex: none; min-height: 40px; min-width: 64px; }

/* sections */
.dp-sec { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-sec small { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--muted); font-weight: 400; }
.dp-sec small b { color: var(--text); }
.dp-sec button { min-height: 36px; padding: 4px 12px; font-size: 13px; text-transform: none; letter-spacing: 0; }

/* mission cards */
.dp-card { position: relative; margin-bottom: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: linear-gradient(#202b24, #171f1a); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 3px 0 var(--c-ink); }
.dp-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.dp-card.ready { border-color: var(--good); box-shadow: 0 3px 0 var(--c-ink), 0 0 12px rgba(94,196,107,.3); }
.dp-head { display: flex; gap: 10px; align-items: center; }
.dp-head .mid { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dp-head .mid small { font-size: 12px; color: var(--muted); }
.dp-head .mid small b { color: var(--text); }
.dp-head > button { flex: none; min-height: 44px; min-width: 48px; }
.dp-name { font: 800 15px/1.2 system-ui; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.dp-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; font-size: 28px; line-height: 1; border: 2px solid var(--c);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 45%, var(--c-panel)), #10160f 80%); box-shadow: inset 0 0 10px rgba(0,0,0,.5), 0 0 8px color-mix(in srgb, var(--c) 40%, transparent); }
.dp-ico.sm { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
.dp-ico.lg { width: 64px; height: 64px; font-size: 34px; }
.dp-rar { padding: 1px 7px; border-radius: 999px; font: 800 10.5px/1.5 system-ui; letter-spacing: .05em; text-transform: uppercase; color: var(--c-ink); background: var(--c); }
.dp-conds { display: grid; gap: 3px; margin: 8px 0 6px; }
.dp-cond { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.dp-cond i { flex: none; width: 18px; height: 18px; border-radius: 50%; font: 900 11px/18px system-ui; text-align: center; font-style: normal; }
.dp-cond.ok i { background: var(--good); color: var(--c-ink); }
.dp-cond.no i { background: #3a1c19; color: #ff9a8f; border: 1px solid #7a3029; line-height: 16px; }
.dp-cond.no span { color: var(--muted); }
.dp-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-height: 24px; font-size: 12.5px; color: var(--muted); }
.dp-line b { color: var(--c-amber-pale); }
.dp-rewards { display: grid; gap: 5px; margin-top: 6px; }
.dp-bonus { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dp-bonus small { font: 800 11px/1.2 system-ui; color: #ffd97a; white-space: nowrap; }
.dp-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.dp-chip { display: inline-flex; align-items: center; font: 700 12.5px/1.2 system-ui; padding: 3px 7px; border-radius: 8px; background: var(--c-ink); border: 1px solid var(--line); white-space: nowrap; }
.dp-chip.gold { border: 1px dashed #a87b1e; color: var(--c-amber-pale); background: var(--c-amber-ink); }
.dp-chip.good { border-color: #2f6b3a; color: #b8f0c0; background: #12241a; }
.dp-card .pn-btn-row { margin-top: 9px; }
.dp-card .pn-btn-row button { min-width: 0; padding-left: 6px; padding-right: 6px; }
.dp-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.dp-faces { display: inline-flex; gap: 3px; flex: none; }
.dp-face { border-radius: 50%; border: 2px solid var(--c, var(--line)); object-position: top; background: var(--c-ink); }
.dp-faces.sm .dp-face { border-width: 1px; }
.dp-fast { font-size: 18px; }

/* rarity odds */
.dp-odds-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.dp-odd { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; min-width: 0; border-radius: 10px; background: #131a16; border: 1px solid var(--line); border-top: 3px solid var(--c); }
.dp-odd b { font: 800 11px/1.3 system-ui; color: var(--c); text-transform: uppercase; letter-spacing: .03em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dp-odd span { font: 800 15px/1.2 system-ui; }
.dp-odd small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.dp-help { margin-top: 8px; }

/* sheets */
.dp-sub { margin: 9px 0 4px; font: 800 11px/1.2 system-ui; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dp-sub.gold { color: #ffd97a; }
.dp-sheet-top { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.dp-sheet-top > div:last-child { flex: 1; min-width: 0; }
.dp-sheet-top .dp-sub:first-of-type { margin-top: 6px; }
.dp-odds { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; margin: 4px 0 6px; padding: 7px 10px; border-radius: 10px; background: #131a16; border: 1px solid var(--line); font-size: 13px; }
.dp-odds b { font-size: 18px; }
.dp-odds b.hi { color: var(--good); } .dp-odds b.mid { color: var(--accent); } .dp-odds b.lo { color: #ff9a8f; }
.dp-odds .pn-bar { grid-column: 1 / -1; margin-top: 2px; }
.dp-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.dp-hero { position: relative; display: grid; justify-items: center; align-content: start; gap: 1px; padding: 5px 2px 4px; min-width: 0; border-radius: 10px; background: #0f1612; border: 2px solid var(--line); }
.dp-hero img, .dp-hero .pn-portrait { border-radius: 50%; object-position: top; border: 2px solid var(--c); }
.dp-hero b { max-width: 100%; font: 700 11px/1.2 system-ui; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-hero small { max-width: 100%; font: 600 10px/1.2 system-ui; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-hero small.pw { color: var(--c-amber-pale); }
.dp-hero.on { border-color: var(--good); background: #14261a; box-shadow: 0 0 10px rgba(94,196,107,.35); }
.dp-hero.off { opacity: .45; filter: grayscale(.7); }
.dp-hero i { position: absolute; top: 2px; right: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--good); color: var(--c-ink); font: 900 11px/17px system-ui; text-align: center; font-style: normal; }
.dp-result { margin-top: 8px; }
.dp-result-list { display: grid; gap: 5px; }
.dp-result-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: #131a16; border: 1px solid var(--line); }
.dp-result-row b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.dp-bonus-tag { flex: none; padding: 2px 8px; border-radius: 999px; font: 800 11px/1.5 system-ui; color: var(--c-amber-ink); background: linear-gradient(#ffe08a, var(--c-amber)); }
.dp-result.lucky .dp-result-list { filter: drop-shadow(0 0 8px rgba(240,180,60,.25)); }
