/* ReyaMon Showdown – privater Planer (Reiter „Planner“ im Draft). Kompakt wie die Team-Seite im Sheet. */
.pl-private { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; margin-bottom: 14px; border-radius: var(--radius);
  background: #2a5bd712; border: 1px solid #2a5bd733; font-size: .88rem; }
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.pl-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.pl-main > *, .pl-top > * { min-width: 0; }
.pl-side { position: sticky; top: 70px; max-height: calc(100vh - 86px); overflow-y: auto; border-radius: var(--radius); }
.pl-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-section { padding: 14px 16px; }
.pl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pl-budget { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .88rem; }
.pl-budget .neg { color: var(--accent); }
.pl-link { cursor: pointer; }
.pl-roster table.data td, .pl-planned table.data td { padding: 2px 6px; }
.pl-planned button.mini { margin-left: 2px; }

/* Pokémon-Reihe */
.pl-mons { display: flex; gap: 8px; min-width: min-content; }
.pl-mon { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 118px; flex: 0 0 auto; padding: 6px 4px 8px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; font-size: .84rem; cursor: pointer; text-align: center; }
.pl-mon:hover { border-color: var(--accent); }
.pl-mon.sel { border-color: var(--accent); box-shadow: 0 0 0 2px #d63c3c33; }
.pl-mon.planned { border-style: dashed; opacity: .9; }
.pl-mon b { line-height: 1.15; }
img.pl-big { width: 80px; height: 80px; image-rendering: pixelated; object-fit: contain; }
.pl-types { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.pl-abils { display: flex; flex-direction: column; font-size: .74rem; color: var(--muted); line-height: 1.25; }
.pl-abils .on { color: var(--ink); font-weight: 600; }

/* Typen-Matrix */
table.pl-matrix, table.pl-util { border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.pl-matrix th, .pl-matrix td, .pl-util th, .pl-util td { border: 1px solid var(--line); padding: 0; text-align: center; height: 26px; }
.pl-matrix th { padding: 3px 1px; }
.pl-matrix th .type, .pl-util .type { font-size: .62rem; padding: 1px 4px; }
.pl-matrix td { min-width: 30px; font-weight: 700; }
.pl-mcol { text-align: left !important; white-space: nowrap; padding: 0 8px 0 2px !important; background: var(--panel); position: sticky; left: 0; z-index: 1; font-weight: 600; }
.pl-mcol img.icon { width: 32px; height: 32px; margin: -6px 0; }
.pl-matrix tbody tr.planned .pl-mcol span, .pl-stats tr.planned td { font-style: italic; opacity: .85; }
.pl-matrix td.w2 { background: #e5534b40; }
.pl-matrix td.w4 { background: #e5534b; color: #fff; }
.pl-matrix td.r2 { background: #2fa36b38; }
.pl-matrix td.r4 { background: #2fa36b; color: #fff; }
.pl-matrix td.imm { background: #3a3f4b; color: #fff; }
.pl-matrix td.ab { outline: 2px dashed #2a5bd7; outline-offset: -3px; }
.pl-matrix td.maybe { position: relative; }
.pl-matrix td.maybe::after { content: ""; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #2a5bd7; }
.pl-matrix tfoot td { font-weight: 600; }
.pl-matrix tfoot tr:first-child td { border-top: 2px solid var(--muted); }
.pl-matrix td.cnt.bad { background: #e5534b; color: #fff; }
.pl-matrix td.cnt.warnc { background: #e5534b30; }
.pl-matrix td.cnt.goodc { background: #2fa36b30; }
.pl-matrix td.bar { position: relative; height: 34px; vertical-align: bottom; }
.pl-matrix td.bar span { position: absolute; left: 4px; right: 4px; bottom: 0; border-radius: 2px 2px 0 0; }
.pl-matrix td.bar span.pos { background: #2fa36b99; }
.pl-matrix td.bar span.neg { background: #e5534bcc; }
.pl-matrix td.bar em { position: relative; font-style: normal; font-size: .75rem; }

/* Werte */
.pl-stats th.sort { cursor: pointer; user-select: none; white-space: nowrap; }
.pl-stats th.sort:hover, .pl-stats th.sort.on { color: var(--accent); }
.pl-stats tfoot td { border-top: 2px solid var(--line); }
td.s1, b.s1 { color: #d9534f; } td.s2, b.s2 { color: #e08a2c; } td.s3, b.s3 { color: var(--ink); }
td.s4, b.s4 { color: #2fa36b; font-weight: 600; } td.s5, b.s5 { color: #1a7f4e; font-weight: 700; }
@media (prefers-color-scheme: dark) { td.s5, b.s5 { color: #4cd38a; } td.s1, b.s1 { color: #ff7b72; } }

/* Utility */
.pl-util th img.icon { width: 32px; height: 32px; margin: -2px; }
.pl-util td { min-width: 34px; }
.pl-util td.yes { background: #2fa36b30; color: var(--good); font-weight: 700; }
.pl-util td.planned { background-image: repeating-linear-gradient(45deg, transparent 0 6px, #8881 6px 8px); }
.pl-util tr.none .pl-mcol span:not(.type) { color: var(--muted); }
.pl-util td:last-child { border: 0; padding-left: 4px; }

#pl-notes { width: 100%; resize: vertical; }

/* Sets (rechts) */
.pl-sets { padding: 14px 16px; }
.pl-sets select#pl-mon { width: 100%; }
.pl-sethead { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.pl-sethead .pl-types { justify-content: flex-start; margin: 3px 0; }
.pl-mini-stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 6px; text-align: center; font-size: .8rem; }
.pl-mini-stats span { display: flex; flex-direction: column; background: var(--bg); border-radius: 4px; padding: 2px 0; }
.pl-mini-stats em { font-style: normal; color: var(--muted); font-size: .7rem; }
.pl-setlist { display: grid; gap: 6px; margin: 8px 0; }
.pl-setcard { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.pl-setcard.on { border-color: var(--accent); }
.pl-setcard .row { gap: 3px; }
.pl-note { white-space: pre-wrap; margin-top: 2px; }
.pl-editor { display: grid; gap: 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.pl-editor input, .pl-editor select, .pl-editor textarea { width: 100%; padding: 6px 8px; font-size: .88rem; }
.pl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.pl-evrow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 3px; }
.pl-evrow label { display: flex; flex-direction: column; font-size: .74rem; color: var(--muted); text-align: center; }
.pl-evrow input { text-align: center; padding: 5px 2px; }
.pl-evrow label.plus span { color: #d9534f; font-weight: 700; }
.pl-evrow label.minus span { color: #2a5bd7; font-weight: 700; }
.pl-evs .neg { color: var(--accent); font-weight: 700; }
#pl-move-search { width: 100%; padding: 6px 8px; font-size: .88rem; }
.pl-moves { max-height: 340px; overflow-y: auto; margin-top: 6px; border: 1px solid var(--line); border-radius: 6px; }
.pl-moves table.data td { padding: 3px 5px; font-size: .84rem; }
.pl-moves .type { font-size: .62rem; padding: 1px 4px; }
textarea.pl-export { width: 100%; font-family: Consolas, monospace; font-size: .85rem; margin: 10px 0; }

@media (max-width: 1100px) {
  .pl-layout { grid-template-columns: 1fr; }
  .pl-side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 700px) {
  .pl-top { grid-template-columns: 1fr; }
  .pl-mon { width: 100px; }
}

/* ---------- Weniger Scroll-Bereiche (2026-11-30): volle Breite, Pokémon-Karten umbrechen,
   Sets-Spalte + Attackenliste laufen mit der Seite statt in eigenen Fenstern ---------- */
main:has(.pl-layout) { max-width: none; }
.pl-layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 30%); }
.pl-side { position: static; max-height: none; overflow: visible; }
.pl-scroll:has(> .pl-mons) { overflow: visible; }
.pl-mons { flex-wrap: wrap; min-width: 0; }
.pl-moves { max-height: none; overflow: visible; }
