/* Draft Coach – eigener Stil (bewusst kein Riot-/Client-Look): Graphit, Himmelblau vs. Lachs, Lavendel als Akzent */
:root {
  --bg: #171a21; --bg2: #1e222b; --bg3: #262b36; --bg4: #2e3441;
  --line: #323846; --line2: #414859;
  --text: #e9ebf1; --muted: #9aa1b3; --faint: #6c7487;
  --us: #5cc8ff; --us-a: rgba(92, 200, 255, .16);
  --them: #ff8a7a; --them-a: rgba(255, 138, 122, .16);
  --accent: #a78bfa; --accent-a: rgba(167, 139, 250, .18);
  --good: #6ee7a8; --bad: #ff7b8a; --warn: #f5c56b;
  --k-gank: #6ee7a8; --k-duo: #a78bfa; --k-jgl: #f5c56b; --k-bot: #f0a6ff; --k-ult: #ff5fa2; --k-follow: #ff9f5a;
  --r-lg: 16px; --r-md: 11px; --r-sm: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 10px 30px rgba(5, 8, 15, .35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 500px at 12% -10%, rgba(92, 200, 255, .07), transparent 60%),
              radial-gradient(900px 500px at 88% -10%, rgba(255, 138, 122, .06), transparent 60%); }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 13px; font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.err { color: var(--bad); }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 10px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.btn { background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 7px 14px;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--bg4); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #17122b; font-weight: 650; }
.btn.primary:hover:not(:disabled) { background: #b9a3fb; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--text); background: var(--bg3); }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn.danger { color: var(--bad); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 180px; }
.spacer { flex: 1; }
.pill { font-size: 12px; color: var(--muted); background: var(--bg2); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------------------------------------------------------------- Segment-Tabs */
.seg { position: relative; display: inline-flex; background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 3px; gap: 0; }
.seg button { position: relative; z-index: 1; background: transparent; border: 0; padding: 7px 16px; cursor: pointer;
  color: var(--muted); border-radius: 8px; transition: color .2s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--text); }
.seg .seg-ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 8px;
  background: var(--bg4); box-shadow: inset 0 0 0 1px var(--line2); transition: transform .32s var(--ease), width .32s var(--ease); }
.seg:not(:has(.seg-ind)) button.on { background: var(--bg4); box-shadow: inset 0 0 0 1px var(--line2); }
.seg.small button { padding: 4px 11px; font-size: 12px; }
.seg.sub { margin: 0 auto 4px; }

/* ---------------------------------------------------------------- Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; padding: 10px 20px; background: rgba(23, 26, 33, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand.big { font-size: 22px; justify-content: center; margin-bottom: 4px; }
.logo { width: 26px; height: 26px; border-radius: 8px; background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 8v16M23 8v16M9 12h6v8H9M23 12h-6v8h6' stroke='%23a78bfa' stroke-width='2.4' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%; }
.topbar-right { justify-self: end; display: flex; gap: 8px; align-items: center; }
main { max-width: 1480px; margin: 0 auto; padding: 18px 20px 28px; }
.view { display: grid; gap: 16px; }
.banner { background: rgba(245, 197, 107, .08); border: 1px solid rgba(245, 197, 107, .35); color: #f8dfa8;
  padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 16px; }
.banner .btn { margin-left: 8px; }
footer.legal, p.legal { color: var(--faint); font-size: 11px; line-height: 1.5; }
footer.legal { max-width: 1480px; margin: 0 auto; padding: 8px 20px 24px; }

/* ---------------------------------------------------------------- Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: min(380px, 100%); background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.auth-card label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.auth-card p { margin: 0; text-align: center; }

/* ---------------------------------------------------------------- Toolbar */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.name-input { background: transparent; border-color: transparent; font-size: 18px; font-weight: 650; padding: 4px 8px;
  min-width: 220px; width: 32ch; max-width: 100%; }
.name-input:hover { border-color: var(--line); }

/* ---------------------------------------------------------------- Board */
.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr); gap: 14px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 10px; }
.team-head { display: flex; align-items: center; gap: 8px; font-weight: 650; margin: 0 0 10px; }
.team-head.right { justify-content: flex-end; }
.team-head.center { justify-content: center; color: var(--muted); font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.us { background: var(--us); box-shadow: 0 0 10px var(--us); }
.dot.them { background: var(--them); box-shadow: 0 0 10px var(--them); }
.team-score { font-size: 12px; font-weight: 500; color: var(--muted); }
.slots-wrap { display: grid; grid-template-columns: 96px minmax(0, 1fr); position: relative; }
.them .slots-wrap { grid-template-columns: minmax(0, 1fr) 96px; }
.rails { width: 96px; height: 100%; overflow: visible; }
.slots { display: grid; gap: 8px; }

.slot { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  height: 72px; padding: 8px 12px 8px 8px; border-radius: var(--r-md); background: var(--bg3);
  border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.them .slot { grid-template-columns: auto minmax(0, 1fr) 56px; padding: 8px 8px 8px 12px; text-align: right; }
.slot:hover { border-color: var(--line2); background: var(--bg4); }
.slot.hl { border-color: var(--accent); }
.us .slot.filled { box-shadow: inset 3px 0 0 var(--us); }
.them .slot.filled { box-shadow: inset -3px 0 0 var(--them); }
.slot .por { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: var(--bg2); }
.them .slot .por { order: 3; }
.slot .meta { min-width: 0; display: grid; gap: 2px; }
.slot .role { font-size: 11px; color: var(--muted); }
.slot .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .chips { display: flex; flex-wrap: nowrap; gap: 4px; min-width: 0; overflow: hidden; }
.slot .chips .tag:not(.more) { min-width: 4.8em; flex: 0 1 auto; }
.slot .chips .tag.more { flex: none; }
.them .slot .chips { justify-content: flex-end; }
.slot .fit { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; min-width: 44px; text-align: center; }
.them .slot .fit { order: -1; }
.slot.empty { background: transparent; border-style: dashed; grid-template-columns: 56px minmax(0, 1fr); }
.them .slot.empty { grid-template-columns: minmax(0, 1fr) 56px; }
.slot.empty .por { display: grid; place-items: center; color: var(--faint); font-size: 22px; background: var(--bg3); }
.slot.empty .quick { display: flex; gap: 4px; }
.them .slot.empty .quick { justify-content: flex-end; }
.slot.empty .quick img { width: 26px; height: 26px; border-radius: 6px; opacity: .85; transition: transform .15s, opacity .15s; }
.slot.empty .quick img:hover { transform: scale(1.12); opacity: 1; }
.slot.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.015); } 100% { transform: scale(1); } }

.rails path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; cursor: pointer;
  transition: stroke-width .15s, opacity .2s; }
.rails path.hit { stroke: transparent; stroke-width: 12; }
.rails path.bad { stroke-dasharray: 5 5; }
.rails path.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .7s var(--ease) forwards; }
.rails path.bad.draw { animation: drawdash .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drawdash { from { opacity: 0; } to { opacity: 1; } }
.rails circle { stroke: var(--bg2); stroke-width: 2; }
.rails g.dim { opacity: .18; }
.rails g.focus path:not(.hit) { stroke-width: 3.4; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 11px; color: var(--muted); min-height: 16px; }
.them .legend { justify-content: flex-end; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 0; border-top: 2px solid; display: inline-block; }
.legend i.dashed { border-top-style: dashed; }

.duels { display: grid; gap: 8px; }
.duel { height: 72px; display: grid; align-content: center; gap: 6px; padding: 0 10px; border-radius: var(--r-md);
  cursor: pointer; transition: background .2s; }
.duel:hover { background: var(--bg3); }
.duel .lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.duel .lbl b { color: var(--text); font-variant-numeric: tabular-nums; }
.duel .bar { position: relative; height: 6px; border-radius: 3px; background: var(--bg4); overflow: hidden; }
.duel .bar .l { position: absolute; left: 0; top: 0; bottom: 0; background: var(--us); transition: width .5s var(--ease); }
.duel .bar .r { position: absolute; right: 0; top: 0; bottom: 0; background: var(--them); transition: width .5s var(--ease); }
.duel .bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--bg); }
.duel .sub { font-size: 11px; color: var(--faint); text-align: center; }
.duel.empty { color: var(--faint); font-size: 12px; text-align: center; cursor: default; }
.duel.empty:hover { background: transparent; }

/* ---------------------------------------------------------------- Dashboard */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; min-width: 0; }
.dash { align-items: start; }
.dash .card { grid-column: span 4; }
.dash .card.needs { grid-column: span 5; }
.dash .card.sugg { grid-column: span 7; }
.dash .card.w8 { grid-column: span 8; }
.dash .card.full { grid-column: 1 / -1; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card > h2 { margin-bottom: 12px; }
.chart-box { position: relative; height: 240px; }
.chart-box.short { height: 110px; }
.chart-box.tall { height: 360px; }

.need-list { display: grid; gap: 6px; }
.need { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; font-size: 13px; align-items: start; padding: 8px 10px;
  border-radius: var(--r-sm); background: var(--bg3); cursor: pointer; transition: background .15s; }
.need:hover { background: var(--bg4); }
.need::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.need.warn::before { background: var(--warn); }
.need.good::before { background: var(--good); }
.empty-note { color: var(--muted); font-size: 13px; padding: 6px 2px; }

.sugg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sug { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px;
  border-radius: var(--r-sm); background: var(--bg3); border: 1px solid transparent; cursor: pointer;
  transition: border-color .15s, background .15s; text-align: left; }
.sug:hover { border-color: var(--line2); background: var(--bg4); }
.sug img { width: 40px; height: 40px; border-radius: 8px; }
.sug .txt { display: block; min-width: 0; overflow: hidden; }
.sug .n { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug .why { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.pos { color: var(--good); } .neg { color: var(--bad); }

.style-rows { display: grid; gap: 6px; margin-top: 8px; font-size: 12px; }
.style-rows .sr { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 6px; align-items: center; }
.style-rows .sr span:first-child { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11px;
  border: 1px solid var(--line2); white-space: nowrap; color: var(--text); }
.tag i { font-style: normal; opacity: .6; }
.tag.s { background: rgba(110, 231, 168, .1); border-color: rgba(110, 231, 168, .3); }
.tag.w { background: rgba(255, 123, 138, .1); border-color: rgba(255, 123, 138, .3); }
.tag.us { border-color: rgba(92, 200, 255, .4); } .tag.them { border-color: rgba(255, 138, 122, .4); }
.sw { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sw h3 { margin-bottom: 6px; }
.sw .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.coach-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chk { padding: 6px 0 6px 10px; border-left: 2px solid var(--line2); margin: 4px 0; font-size: 13px; cursor: pointer; }
.chk.good { border-color: var(--good); } .chk.warn { border-color: var(--warn); } .chk.info { border-color: var(--us); }
.coach { display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-a);
  border-radius: 5px; padding: 0 6px; margin-right: 6px; }
.insights { display: grid; gap: 6px; margin-bottom: 10px; font-size: 13px; }
.insights div { padding-left: 10px; border-left: 2px solid var(--accent); }
.notes { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.notes textarea { width: 100%; resize: vertical; }

/* ---------------------------------------------------------------- Seitenpanel */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(8, 10, 15, .45); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(580px, 100vw); background: var(--bg2);
  border-left: 1px solid var(--line); box-shadow: -20px 0 40px rgba(5, 8, 15, .45);
  transform: translateX(104%); transition: transform .34s var(--ease); display: flex; flex-direction: column; }
.panel:not(.on) { visibility: hidden; transition: transform .34s var(--ease), visibility 0s .34s; }
.panel.on { transform: translateX(0); }
/* Angedockt (breite Bildschirme): Inhalt rückt zur Seite statt abgedunkelt zu werden */
body.docked #appView { padding-right: min(580px, 42vw); }
#appView { transition: padding-right .34s var(--ease); }
body.docked .panel { width: min(580px, 42vw); top: 0; box-shadow: -12px 0 30px rgba(5, 8, 15, .3); }
body.docked .topbar { grid-template-columns: auto 1fr auto; }
body.docked .board { grid-template-columns: minmax(0, 1fr) minmax(150px, 210px) minmax(0, 1fr); }
body.docked .slots-wrap { grid-template-columns: 64px minmax(0, 1fr); }
body.docked .them .slots-wrap { grid-template-columns: minmax(0, 1fr) 64px; }
body.docked .rails { width: 64px; }
.panel-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg3); cursor: pointer; color: var(--muted); }
.panel-close:hover { color: var(--text); }
.panel-body { overflow-y: auto; padding: 20px; display: grid; gap: 16px; align-content: start; }
.panel-body > * { animation: rise .35s var(--ease) both; }
.panel-body > *:nth-child(2) { animation-delay: .03s; } .panel-body > *:nth-child(3) { animation-delay: .06s; }
.panel-body > *:nth-child(4) { animation-delay: .09s; } .panel-body > *:nth-child(n+5) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ph { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-right: 40px; }
.ph img { width: 72px; height: 72px; border-radius: 12px; }
.ph h2 { font-size: 20px; }
.ph .sub { color: var(--muted); font-size: 13px; }
.section { background: var(--bg3); border-radius: var(--r-md); padding: 12px; }
.section h3 { margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.kv div { background: var(--bg3); border-radius: var(--r-sm); padding: 8px 10px; }
.kv b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.kv span { font-size: 11px; color: var(--muted); }
.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.reasons li { padding-left: 14px; position: relative; }
.reasons li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.reasons li.bad::before { background: var(--bad); }
.reasons li.info::before { background: var(--us); }
.parts { display: grid; gap: 4px; }
.part { display: grid; grid-template-columns: 76px 1fr 1fr 44px; align-items: center; font-size: 11px; color: var(--muted); }
.part em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.half { height: 6px; background: var(--bg4); overflow: hidden; display: flex; }
.half.n { justify-content: flex-end; border-radius: 3px 0 0 3px; } .half.p { border-radius: 0 3px 3px 0; margin-left: 1px; }
.half div { height: 100%; transition: width .4s var(--ease); }
.half.n div { background: var(--bad); } .half.p div { background: var(--good); }

.pick-search { position: sticky; top: -20px; z-index: 1; background: var(--bg2); padding: 4px 0 8px; display: grid; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.champ { display: grid; justify-items: center; gap: 3px; padding: 5px 2px; background: transparent; border: 1px solid transparent;
  border-radius: var(--r-sm); cursor: pointer; transition: background .15s, transform .15s; }
.champ:hover { background: var(--bg3); transform: translateY(-1px); }
.champ img { width: 48px; height: 48px; border-radius: 8px; }
.champ span { font-size: 11px; text-align: center; line-height: 1.15; }
.champ.taken { opacity: .2; pointer-events: none; }
.champ.off img { filter: grayscale(.8); opacity: .55; }

.item-list { display: grid; gap: 6px; }
.it { display: grid; grid-template-columns: 34px minmax(0, 1fr) 64px 54px; gap: 10px; align-items: center; padding: 6px 8px;
  border-radius: var(--r-sm); background: var(--bg2); }
.it img { width: 34px; height: 34px; border-radius: 7px; }
.it .n { font-weight: 600; font-size: 13px; }
.it .why { font-size: 11px; color: var(--muted); }
.it .wr { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.it .d { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.it.multi { grid-template-columns: auto minmax(0, 1fr) 64px 54px; }
.it .icons { display: flex; gap: 3px; }
.it .icons img { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- Tabellen, Listen (übrige Ansichten) */
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 600; }
.pos-t { color: var(--good); } .neg-t { color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.stat { background: var(--bg3); border-radius: var(--r-md); padding: 10px 12px; }
.stat b { display: block; font-size: 18px; }
.history { display: grid; gap: 8px; }
.hist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; background: var(--bg3); border-radius: var(--r-md); padding: 12px; }
.hist .teams { font-size: 12px; color: var(--muted); }
.hist .teams .b { color: var(--us); } .hist .teams .r { color: var(--them); }
.res-win { color: var(--good); font-weight: 600; } .res-loss { color: var(--bad); font-weight: 600; }
.jobs { display: grid; gap: 8px; }
.job { background: var(--bg3); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 6px; }
.job .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.job .st { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--bg4); }
.st.running, .st.queued { color: var(--us); } .st.done { color: var(--good); } .st.failed { color: var(--bad); }
.progress { height: 6px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); transition: width .4s; }
.job pre { margin: 0; max-height: 160px; overflow: auto; font-size: 11px; color: var(--muted); white-space: pre-wrap; }
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.settings h2 { grid-column: 1 / -1; margin-top: 6px; }
.settings label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.settings label.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
.settings .full { grid-column: 1 / -1; }
.settings fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.settings legend { color: var(--muted); font-size: 13px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.checks label { display: flex; gap: 5px; align-items: center; color: var(--text); }
.ok { color: var(--good); } .bad { color: var(--bad); }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.lk-grid.wide { grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr)); }
.lk-card { background: var(--bg3); border-radius: var(--r-md); padding: 12px; min-width: 0; overflow-x: auto; }
.lk-card h3 { margin-bottom: 6px; }
.duo-cell { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.duo-cell img, .ic { width: 26px; height: 26px; border-radius: 6px; vertical-align: middle; }
.src { font-size: 10px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.src.exakt { border-color: var(--good); color: var(--good); }
.wrcell { font-variant-numeric: tabular-nums; font-weight: 600; }
.concepts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 10px; }
.concept { background: var(--bg3); border-radius: var(--r-md); padding: 12px; }
.concept p { margin: 6px 0 0; font-size: 13px; }
.matrix td, .matrix th { text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
#lookupTabs { justify-self: center; }

/* ---------------------------------------------------------------- Tooltip, Toast */
.tip { position: fixed; z-index: 60; max-width: 300px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--bg4);
  border: 1px solid var(--line2); font-size: 12px; pointer-events: none; box-shadow: var(--shadow); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--bg4);
  border: 1px solid var(--line2); padding: 9px 16px; border-radius: var(--r-md); box-shadow: var(--shadow);
  animation: rise .25s var(--ease); }
.toast.err { border-color: var(--bad); color: #ffc4cb; }
.skeleton { background: linear-gradient(90deg, var(--bg3) 0%, var(--bg4) 50%, var(--bg3) 100%); background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite; border-radius: var(--r-sm); height: 48px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- Responsiv */
@media (max-width: 1180px) {
  .dash .card, .dash .card.needs, .dash .card.sugg, .dash .card.w8 { grid-column: span 6; }
  .dash .card.full { grid-column: 1 / -1; }
}
body.docked .dash .card, body.docked .dash .card.needs, body.docked .dash .card.sugg, body.docked .dash .card.w8 { grid-column: span 6; }
body.docked .dash .card.full { grid-column: 1 / -1; }
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; justify-items: center; padding: 10px 12px; }
  .topbar .brand { display: none; }
  .topbar-right { justify-self: center; }
  .seg#tabs { max-width: 100%; overflow-x: auto; }
  .board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .duel-col { grid-column: 1 / -1; order: 3; }
  .duels { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .duel { height: auto; padding: 8px; }
  .slots-wrap { grid-template-columns: 40px minmax(0, 1fr); }
  .them .slots-wrap { grid-template-columns: minmax(0, 1fr) 40px; }
  .rails { width: 40px; }
  .dash .card, .dash .card.needs, .dash .card.sugg, .dash .card.w8, .dash .card.full { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  main { padding: 12px; }
  .board { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .slot, .them .slot { grid-template-columns: 48px minmax(0, 1fr) auto; text-align: left; padding: 6px 10px 6px 6px; height: auto; min-height: 62px; }
  .slot.empty, .them .slot.empty { grid-template-columns: 48px minmax(0, 1fr); }
  .them .slot.empty .por { order: 0; }
  .toolbar .name-input { width: 100%; min-width: 0; }
  .them .slot .por { order: 0; } .them .slot .fit { order: 0; }
  .them .slot .chips, .them .slot.empty .quick { justify-content: flex-start; }
  .them .slots-wrap { grid-template-columns: 40px minmax(0, 1fr); }
  .them .slots-wrap .rails { order: -1; }
  .them .team-head.right, .them .legend { justify-content: flex-start; }
  .slot .por { width: 48px; height: 48px; }
  .duels { grid-template-columns: 1fr; }
  .sw, .coach-cols, .notes { grid-template-columns: 1fr; }
  .seg button { padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v3.2: Daten-Sicherheit, Duelle ohne Lane-Daten */
.slot .fit.low { color: var(--muted); font-weight: 600; }
.duel.nodata .bar { background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 6px, transparent 6px 12px); }
.duel.nodata .lbl b { color: var(--muted); font-weight: 500; }

/* v3.3: Info-Icons, Stufen-Dreiecke, Nachschlagen neu, Crawl-Anzeige */
.hint { display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; margin-left: 5px; vertical-align: -3px;
  border-radius: 50%; cursor: help; position: relative; top: 0;
  background: center / 16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.25' fill='none' stroke='%239aa1b3' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='4.9' r='1' fill='%239aa1b3'/%3E%3Crect x='7.25' y='6.9' width='1.5' height='4.9' rx='.75' fill='%239aa1b3'/%3E%3C/svg%3E"); }
.hint:hover, .hint:focus-visible { outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.25' fill='%23a78bfa' fill-opacity='.18' stroke='%23a78bfa' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='4.9' r='1' fill='%23a78bfa'/%3E%3Crect x='7.25' y='6.9' width='1.5' height='4.9' rx='.75' fill='%23a78bfa'/%3E%3C/svg%3E"); }
h2 > .hint, h3 > .hint, th > .hint { vertical-align: -2px; }
.tip { max-width: min(320px, calc(100vw - 16px)); white-space: normal; line-height: 1.45; pointer-events: none; }
.tag .tri { width: 11px; height: 11px; margin-left: 2px; flex: none; }
.tri polygon.off { fill: currentColor; opacity: .18; }
.tri.up polygon.on { fill: #6ee7a8; } .tri.down polygon.on { fill: #ff7b8a; }
.tag.s .tri, .tag.w .tri { color: var(--text); }

.lk-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.lk-menu { display: grid; gap: 6px; position: sticky; top: 76px; }
.lk-menu button { text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg2);
  border: 1px solid var(--line, rgba(255,255,255,.06)); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.lk-menu button span { font-size: 12px; color: var(--muted); }
.lk-menu button:hover { background: var(--bg3); }
.lk-menu button.on { border-color: var(--accent); background: rgba(167, 139, 250, .1); }
.lk-main { min-width: 0; }
.cpick-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.cpick-row > div { display: flex; align-items: center; gap: 4px; }
.cpick { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 6px 12px 6px 6px; border-radius: var(--r-md);
  background: var(--bg3); border: 1px dashed var(--muted); color: var(--text); cursor: pointer; text-align: left; }
.cpick.set { border-style: solid; border-color: var(--accent); }
.cpick .por { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--bg2); font-size: 20px; color: var(--muted); }
.cpick img.por { object-fit: cover; }
.cp-txt { display: grid; } .cp-txt small { color: var(--muted); font-size: 11px; } .cp-txt b { font-size: 14px; }
.cp-x { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 6px; }
.cp-x:hover { color: var(--text); }
.role-pick { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.style-now { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.style-dim { margin-bottom: 8px; } .style-dim > div { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.style-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); flex-wrap: wrap; }
.wbar { width: 80px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; display: inline-block; }
.wbar span { display: block; height: 100%; background: #6ee7a8; }
.pill.crawl { cursor: pointer; border-color: var(--accent); color: var(--accent); }
.pill.crawl::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  margin-right: 6px; vertical-align: middle; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill.crawl::before { animation: none; } }
@media (max-width: 860px) {
  .lk-layout { grid-template-columns: minmax(0, 1fr); }
  .lk-menu { position: static; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; }
}

.team-head .tn { white-space: nowrap; font-weight: inherit; }

/* v3.4: genaues 2v2 */
.side-lbl { min-width: 84px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.side-lbl.us { color: var(--us); } .side-lbl.them { color: var(--them); }
.mu-hero { display: grid; grid-template-columns: 1fr minmax(180px, 260px) 1fr; gap: 14px; align-items: center; margin-top: 12px;
  padding: 16px; border-radius: var(--r-md); background: var(--bg3); }
.mu-side { display: flex; align-items: center; gap: 8px; min-width: 0; } .mu-side.them { justify-content: flex-end; text-align: right; }
.mu-side img { width: 40px; height: 40px; border-radius: 8px; }
.mu-side.us b { color: var(--us); } .mu-side.them b { color: var(--them); }
.mu-mid { text-align: center; display: grid; gap: 6px; }
.mu-wr { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mu-bar { height: 6px; }
.mu-build { margin-top: 10px; }
.lk-card h3 img { width: 20px; height: 20px; border-radius: 5px; vertical-align: -5px; }
@media (max-width: 720px) { .mu-hero { grid-template-columns: 1fr; text-align: center; } .mu-side, .mu-side.them { justify-content: center; } }
.mu-bar { position: relative; border-radius: 3px; background: var(--bg4); overflow: hidden; }
.mu-bar .l { position: absolute; left: 0; top: 0; bottom: 0; background: var(--us); }
.mu-bar .r { position: absolute; right: 0; top: 0; bottom: 0; background: var(--them); }
.mu-bar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--bg); }

/* ================================================================ v4.0 */
/* Login: Sprache, Einladung */
.lang-seg { justify-self: end; margin-bottom: -6px; }
.lang-seg button { padding: 3px 9px; }
.auth-title { text-align: center; font-size: 17px; }

/* Zahnrad-Menü */
.gear-wrap { position: relative; }
.gear { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--bg2);
  border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, transform .3s var(--ease); }
.gear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gear:hover, .gear[aria-expanded="true"] { color: var(--text); border-color: var(--accent); }
.gear[aria-expanded="true"] { transform: rotate(45deg); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 240px; padding: 8px; display: grid; gap: 4px;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r-md); box-shadow: var(--shadow);
  animation: menuIn .18s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } }
.menu-user { display: grid; padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-sec { display: grid; gap: 6px; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-sec .seg { justify-self: start; }
.menu-it { text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px; cursor: pointer; color: var(--text); }
.menu-it:hover { background: var(--bg3); }

/* Konto-Panel, geheime Links */
.secret { background: rgba(167, 139, 250, .08); border: 1px solid rgba(167, 139, 250, .35); border-radius: var(--r-md); padding: 10px 12px; margin: 8px 0; }
.secret p { margin: 0 0 8px; }
.warn-t { color: var(--warn); }
.acct-pw { display: grid; gap: 8px; }
.acct-pw label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }

/* Admin */
table.users, table.invites { width: 100%; border-collapse: collapse; }
table.users td, table.users th, table.invites td, table.invites th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.users tr.off td, table.invites tr.off td { opacity: .55; }
table.users select { padding: 4px 6px; }
td.acts { white-space: nowrap; text-align: right !important; }
td.acts .btn { margin-left: 4px; }
.base-url, .invite-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.base-url label, .invite-form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.base-url .full { flex-basis: 100%; }
.invite-form input[type=number] { width: 90px; }
.inv-st { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg3); }
.inv-st.active { color: var(--good); } .inv-st.revoked, .inv-st.expired { color: var(--muted); } .inv-st.used_up { color: var(--warn); }
@media (max-width: 860px) { table.users, table.invites { display: block; overflow-x: auto; } }

/* Botlane: Vorschläge für leere Plätze */
.slot-grid { margin-top: 12px; }
.slot-card.enemy h3 { color: var(--them); }
.slot-card.mine h3 { color: var(--us); }
.ban-tag { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px;
  background: var(--them-a); color: var(--them); vertical-align: 1px; }
.mu-hero.partial { background: linear-gradient(90deg, var(--us-a), var(--bg3) 35%, var(--bg3) 65%, var(--them-a)); }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--bg3); }

/* Champion-Details: Runen, Items, Skills */
.det-head { margin: 4px 0 -4px; }
.lk-card.span2 { grid-column: 1 / -1; }
.rtrees { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 8px; }
.rtree { background: var(--bg3); border-radius: var(--r-md); padding: 10px; display: grid; gap: 8px; }
.rtree-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rtree-h .ic { width: 22px; height: 22px; }
.rrow { display: flex; gap: 6px; justify-content: space-around; flex-wrap: wrap; align-items: start; }
.rrow.ks { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rrow.shard { justify-content: flex-start; align-items: center; }
.sh-l { width: 64px; flex: none; }
.rune { display: grid; justify-items: center; gap: 2px; min-width: 52px; padding: 4px; border-radius: 9px; background: none; border: 1px solid transparent; color: var(--text); }
.rune .ri { width: 34px; height: 34px; border-radius: 50%; }
.rrow.ks .rune .ri { width: 42px; height: 42px; }
.rune .ri.sm { width: 24px; height: 24px; }
.rune.unused { opacity: .35; }
.rune .rs { display: grid; justify-items: center; font-size: 11px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rune .rs-n { font-size: 11px; color: var(--muted); max-width: 90px; text-align: center; line-height: 1.2; }
.st-pick { color: var(--muted); } .st-wr.low { opacity: .6; font-style: italic; } .st-none { color: var(--faint); }
td.low { opacity: .7; font-style: italic; }
.shards { display: grid; gap: 6px; margin-top: 12px; }
.dtab { width: 100%; }
.parts-cell { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.parts-cell .ic { width: 24px; height: 24px; border-radius: 5px; }
.parts-cell .pn { font-size: 12px; color: var(--muted); margin-left: 4px; }
.sk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg4); font-weight: 700; font-size: 12px; }
.arr { color: var(--faint); margin: 0 1px; }
.islots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.islot h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.iopt { display: flex; align-items: center; gap: 8px; padding: 4px; border-radius: 8px; }
.iopt:nth-child(2) { background: var(--bg3); }
.iopt .ic { width: 30px; height: 30px; border-radius: 6px; }
.iopt .rs { display: grid; font-size: 11px; line-height: 1.25; }
@media (max-width: 720px) { .islots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Builds-Tab */
.build-side { gap: 8px; }
.build-side .btn.primary { justify-self: stretch; }
.build-list { display: grid; gap: 6px; }
.bl-it { display: flex !important; align-items: center; gap: 10px; text-align: left; }
.bl-it .por { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.bl-it .bl-t { display: grid; min-width: 0; } .bl-it .bl-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-build { display: grid; gap: 10px; justify-items: start; padding: 10px 4px; }
.empty-build p { margin: 0; max-width: 60ch; }
.build-ed { display: grid; gap: 12px; }
.bed-head { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.bed-name { display: grid; gap: 4px; font-size: 12px; color: var(--muted); min-width: 200px; }
.bed-tools { border-top: 1px solid var(--line); padding-top: 10px; }
.bed-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .bed-cols { grid-template-columns: 1fr; } }
.rcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .rcols { grid-template-columns: 1fr; } }
.rcol { display: grid; gap: 8px; align-content: start; }
.rcol h4 { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.tsel { display: flex; gap: 6px; flex-wrap: wrap; }
.tbtn { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 9px; background: var(--bg3); border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 12px; }
.tbtn .ic { width: 18px; height: 18px; }
.tbtn.on { border-color: var(--accent); color: var(--text); background: var(--accent-a); }
.tbtn:disabled { opacity: .35; cursor: default; }
.rune.pick { cursor: pointer; transition: border-color .15s, background .15s; }
.rune.pick:hover { background: var(--bg3); }
.rune.pick:not(.on) .ri { filter: grayscale(.85) brightness(.8); }
.rune.pick.on { border-color: var(--accent); background: var(--accent-a); }
.spells { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.skb { display: grid; gap: 4px; justify-items: center; padding: 8px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.skb.on { border-color: var(--accent); background: var(--accent-a); }
.skb .rs { display: flex; gap: 6px; font-size: 11px; }
.iphases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 900px) { .iphases { grid-template-columns: 1fr; } }
.iphase { border: 1px dashed var(--line2); border-radius: var(--r-md); padding: 8px; cursor: pointer; min-height: 84px; }
.iphase.on { border-style: solid; border-color: var(--accent); background: rgba(167, 139, 250, .06); }
.iph-h { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.ichips { display: flex; flex-wrap: wrap; gap: 6px; }
.ichip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 3px; border-radius: 8px; background: var(--bg3); font-size: 12px; }
.ichip .ic { width: 24px; height: 24px; border-radius: 5px; }
.ichip .in { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ichip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 3px; font-size: 14px; }
.ichip button:hover:not(:disabled) { color: var(--text); } .ichip button:disabled { opacity: .25; cursor: default; }
.ipick-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ipick-head input { flex: 1; min-width: 160px; }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.itile { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left;
  padding: 5px; border-radius: 8px; background: var(--bg3); border: 1px solid transparent; color: var(--text); cursor: pointer; }
.itile:hover { border-color: var(--line2); }
.itile .ic { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 6px; }
.itile .in { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.itile .rs { display: flex; gap: 6px; font-size: 11px; }
textarea#bedNotes { width: 100%; }
.bed-head > div:not(.seg) { display: flex; align-items: center; gap: 4px; }
@media (max-width: 860px) {
  .lk-menu.build-side { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .build-list { max-height: 240px; overflow-y: auto; }
}

/* ---------------------------------------------------------------- v4.1 Datenbasis (Rang, Bewertung) */
.filt-btn { cursor: pointer; font: inherit; font-size: 12px; }
.filt-btn:hover, .filt-btn[aria-expanded="true"] { color: var(--text); border-color: var(--accent); }
.filt-btn.active { color: var(--accent); border-color: rgba(167, 139, 250, .5); }
.filt-btn::after { content: '▾'; margin-left: 6px; opacity: .7; }
.filt-menu { width: min(360px, calc(100vw - 24px)); max-height: min(80vh, 640px); overflow-y: auto; }
.filt-menu select { width: 100%; }
.filt-foot { margin: 2px 8px 4px; }
.part-checks { display: grid; gap: 2px; }
.chk-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.chk-row:hover { background: var(--bg3); }
.chk-row input { margin-top: 3px; accent-color: var(--accent); }
.chk-row span { display: grid; gap: 1px; }
.chk-row small { font-size: 11.5px; line-height: 1.35; }
#rankState .warn, .filt-note { color: var(--warn, #f5c56b); }
#rankState { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filt-note { font-size: 12px; margin: 0 0 8px; }
.part.off { opacity: .38; }
.part.off span { text-decoration: line-through; }

/* Champion in einem Satz */
.sum-sentence { margin: 0 0 8px; line-height: 1.55; }
.tag.kit { background: var(--bg3); color: var(--text); border-color: var(--line2); }
.sum-card { margin-top: 12px; }
.sum-card h3 { margin-top: 0; }

/* Review */
.rv-base { margin: 0 0 4px; }
.rv-ctx { display: grid; gap: 6px; margin: 10px 0 4px; }
.rv-ctx > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-ctx > div > .muted { min-width: 42px; }
.rv-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px 2px 2px; font-size: 12px; }
.rv-chip .ic { width: 20px; height: 20px; border-radius: 50%; }
.rv-verdict { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: rgba(167, 139, 250, .07);
  border-radius: 0 var(--r-md) var(--r-md) 0; line-height: 1.5; }
table.rv-cmp { width: 100%; margin: 6px 0 4px; font-size: 13px; }
table.rv-cmp tr.off td { opacity: .45; }
table.rv-cmp tr.sum td { font-weight: 600; border-top: 1px solid var(--line2); }
.rv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.rv-step h4 { margin: 10px 0 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) { .rv-cols { grid-template-columns: 1fr; } .filt-btn { max-width: 70vw; overflow: hidden; text-overflow: ellipsis; } }
.topbar-right { min-width: 0; }
.pill.crawl { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.filt-btn { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.filt-menu.fixed { position: fixed; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 140px); }

/* ---------------------------------------------------------------- Live-Draft (v4.4) */
.live { gap: 12px; }
/* Einstellungen: Modus als Karten, Seite als zwei farbige Knöpfe */
.lv-setup { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: stretch; }
.lv-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.lv-modes button { display: flex; gap: 10px; align-items: center; text-align: left; padding: 9px 14px 9px 10px; min-width: 190px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--muted); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; }
.lv-modes button:hover { border-color: var(--line2); color: var(--text); }
.lv-modes button.on { border-color: var(--accent); background: var(--accent-a); color: var(--text); }
.lv-modes button .ico svg { width: 22px; height: 22px; }
.lv-modes button.on .ico { color: var(--accent); }
.lv-modes b { display: block; font-size: 14px; color: var(--text); }
.lv-modes small { display: block; font-size: 11.5px; color: var(--muted); }
.lv-setup.running .lv-modes button { min-width: 0; padding: 6px 12px 6px 8px; }
.lv-setup.running .lv-modes small { display: none; }
.lv-sidepick { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: var(--r-md); }
.lv-sidepick .lbl { font-size: 12px; color: var(--muted); margin-right: 4px; }
.lv-sidepick button { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; }
.lv-sidepick button.blue.on { background: var(--us-a); border-color: var(--us); color: var(--us); }
.lv-sidepick button.red.on { background: var(--them-a); border-color: var(--them); color: var(--them); }
.lv-sidepick button:not(.on):hover { color: var(--text); }
.lv-fear { display: flex; gap: 10px; align-items: center; padding: 4px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-md); }
.lv-fear label { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.lv-fear select { padding: 5px 8px; font-size: 12.5px; }
.lv-setup > .hint { align-self: center; }

.lv-bar { display: flex; gap: 12px; align-items: center; }
.lv-tools { display: flex; gap: 6px; flex: none; }
.lv-steps { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.lv-step { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 11px;
  background: var(--bg2); border: 1px solid var(--line); color: var(--muted); overflow: hidden; }
.lv-step svg.i { width: 14px; height: 14px; opacity: .55; }
.lv-step.ban { border-style: dashed; border-radius: 50%; }
.lv-step.blue { box-shadow: inset 0 -3px 0 var(--us); }
.lv-step.red { box-shadow: inset 0 -3px 0 var(--them); }
.lv-step img { width: 100%; height: 100%; object-fit: cover; }
.lv-step.ban.done img { filter: grayscale(1); opacity: .55; }
.lv-step.now { border-color: var(--accent); color: var(--text); outline: 2px solid var(--accent-a); animation: lvPulse 1.6s ease-in-out infinite; }
@keyframes lvPulse { 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .lv-step.now { animation: none; } }
.lv-sep { flex: 0 0 8px; }

.lv-series { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 8px; }
.ser-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ser-head > svg.i { color: var(--accent); }
.ser-games { display: flex; gap: 6px; margin-left: auto; }
.lv-game { display: inline-flex; align-items: center; gap: 4px; background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12px; color: var(--muted); cursor: pointer; }
.lv-game.on { border-color: var(--accent); color: var(--text); }
.lv-game.win { color: var(--good); } .lv-game.loss { color: var(--bad); }
.lv-game.future { border-style: dashed; cursor: default; opacity: .7; }
.lv-game svg.i { width: 12px; height: 12px; }
.lv-locks { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lv-locks > svg.i { color: var(--muted); }
.lv-locks > .muted { margin-right: 6px; }
.lv-lock img { width: 26px; height: 26px; border-radius: 6px; filter: grayscale(1); opacity: .75; display: block; }

.lv-grid { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(260px, 320px); gap: 16px; align-items: start; }
.lv-team { display: grid; gap: 8px; padding: 10px; border-radius: var(--r-lg); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.lv-team.turn { border-color: var(--line); background: rgba(255, 255, 255, .015); }
.lv-team.blue.turn { box-shadow: inset 0 2px 0 var(--us); }
.lv-team.red.turn { box-shadow: inset 0 2px 0 var(--them); }
.lv-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.lv-team.red .lv-head { flex-direction: row-reverse; }
.turn-tag { font-size: 11px; color: var(--accent); }
.you { font-size: 10.5px; color: var(--accent); border: 1px solid var(--accent-a); background: var(--accent-a); border-radius: 999px; padding: 1px 7px; }
.lv-bans { display: flex; gap: 5px; }
.lv-team.red .lv-bans { justify-content: flex-end; }
.lv-ban { width: 30px; height: 30px; border-radius: 50%; border: 1px dashed var(--line2); display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.lv-ban svg.i { width: 14px; height: 14px; }
.lv-ban img { width: 100%; height: 100%; filter: grayscale(1); opacity: .7; }
.lv-ban.now { border-color: var(--accent); border-style: solid; box-shadow: 0 0 0 3px var(--accent-a); color: var(--accent); }

.lv-slots-wrap { display: grid; grid-template-columns: 36px minmax(0, 1fr); }
.lv-team.red .lv-slots-wrap { grid-template-columns: minmax(0, 1fr) 36px; }
.lv-team.red .lv-rails { order: 2; }
.lv-rails { width: 36px; overflow: visible; }
.lv-rails path { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.lv-rails path.bad { stroke-dasharray: 4 4; }
.lv-rails path.hit { stroke: transparent; stroke-width: 12; cursor: pointer; }
.lv-rails g.dim { opacity: .25; }
.lv-slots { display: grid; gap: 6px; }
.lv-slot { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 8px;
  min-height: 64px; border-radius: var(--r-md); background: var(--bg2); border: 1px solid var(--line); transition: border-color .2s; }
.lv-team.blue .lv-slot.set { box-shadow: inset 3px 0 0 var(--us); }
.lv-team.red .lv-slot.set { box-shadow: inset -3px 0 0 var(--them); }
.lv-slot.hl { border-color: var(--accent); }
.lv-slot .por { align-self: start; width: 48px; height: 48px; border-radius: 9px; object-fit: cover; display: grid; place-items: center; background: var(--bg3); color: var(--faint); }
.lv-slot .por svg.i { width: 22px; height: 22px; }
.lv-slot .meta { display: grid; gap: 3px; min-width: 0; }
.lv-slot .rl { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.lv-slot .rl svg.i { width: 13px; height: 13px; }
.lv-slot .rl em { font-style: normal; font-weight: 700; color: var(--faint); }
.lv-slot .nm { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-slot .chips { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.lv-slot .chips .tag { max-width: 100%; }
.lv-slot .side-info { display: grid; justify-items: end; gap: 3px; align-self: start; padding-top: 2px; }
.lv-slot .fit { font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-slot .lv-duel { display: inline-flex; gap: 3px; align-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lv-slot .lv-duel svg.i { width: 12px; height: 12px; opacity: .7; }
.lv-slot select { padding: 1px 4px; font-size: 11px; max-width: 78px; background: transparent; border-color: transparent; color: var(--muted); }
.lv-slot select:hover, .lv-slot select:focus { border-color: var(--line2); color: var(--text); }
.lv-slot.empty { background: transparent; border-style: dashed; grid-template-columns: 48px minmax(0, 1fr); }
.lv-slot.editable { cursor: pointer; }
.lv-slot.editable:hover { border-color: var(--accent); }
.lv-slot.plan { border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .05); }
.lv-slot.plan-bad { border-color: rgba(255, 123, 138, .5); }
.lv-slot .ghost { opacity: .45; filter: saturate(.4); }
.lv-slot .plan-nm { display: flex; align-items: center; gap: 4px; color: var(--accent); }
.lv-slot .plan-nm svg.i { width: 13px; height: 13px; }
.lv-slot .rl-right { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.lv-legend { font-size: 11px; }
.lv-team.red .lv-legend { justify-content: flex-end; }
.lv-warn { font-size: 12px; color: var(--warn); display: grid; gap: 4px; }
.lv-warn svg.i { width: 13px; height: 13px; margin-right: 4px; }

/* Mitte */
.lv-center { display: grid; gap: 10px; min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.lv-now { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px;
  border-radius: var(--r-md); background: var(--bg3); border-left: 3px solid var(--accent); }
.lv-now.blue { border-left-color: var(--us); } .lv-now.red { border-left-color: var(--them); }
.lv-now.done { border-left-color: var(--good); }
.lv-now-main { display: flex; gap: 10px; align-items: center; }
.lv-now-main > svg.i { width: 22px; height: 22px; }
.lv-now.blue .lv-now-main > svg.i { color: var(--us); } .lv-now.red .lv-now-main > svg.i { color: var(--them); } .lv-now.done .lv-now-main > svg.i { color: var(--good); }
.lv-now-main b { font-size: 16px; margin-right: 6px; }
.lv-now-main .muted { display: block; }
.lv-now-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plan-btn { border-color: rgba(167, 139, 250, .5); color: var(--accent); }
.lv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.lv-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); cursor: pointer; margin-bottom: -1px; font-size: 13px; }
.lv-tabs button:hover { color: var(--text); }
.lv-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.lv-tabs button.on svg.i { color: var(--accent); }
.lv-tabs .cnt { font-size: 10.5px; min-width: 16px; padding: 0 5px; border-radius: 999px; background: var(--bg4); color: var(--muted); }
.lv-tabs .cnt:empty { display: none; }
.lv-tabs button.hot .cnt { background: var(--accent); color: #17131f; }
.lv-panel { min-height: 120px; transition: opacity .2s; }
.lv-panel.loading { opacity: .55; }
.lv-panel h3 { margin: 4px 0 8px; display: flex; align-items: center; gap: 6px; }
.lv-panel h4 { margin: 14px 0 6px; font-size: 12.5px; }
.lv-card[disabled] { cursor: default; opacity: 1; }
.lv-card[disabled]:hover { transform: none; }
.lnk { background: none; border: 0; padding: 0 2px; color: var(--accent); cursor: pointer; font-size: 12px; }
.lnk:hover { text-decoration: underline; }

/* Plan */
.plan-list { display: grid; gap: 6px; }
.plan-row { display: grid; grid-template-columns: 18px 64px minmax(0, 1fr) auto auto auto; gap: 6px 10px; align-items: center; padding: 8px 10px;
  border-radius: var(--r-md); background: var(--bg3); border: 1px solid var(--line); }
.plan-row.empty { grid-template-columns: 18px 64px minmax(0, 1fr); background: transparent; border-style: dashed; }
.plan-row.bad { border-color: rgba(255, 123, 138, .45); } .plan-row.warn { border-color: rgba(245, 197, 107, .45); }
.plan-row > svg.role { color: var(--muted); }
.pr-role { font-size: 12px; color: var(--muted); }
.pr-champ { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pr-champ img { width: 30px; height: 30px; border-radius: 7px; }
.pr-champ b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-status { font-size: 11.5px; color: var(--muted); }
.pr-status.bad { color: var(--bad); } .pr-status.warn { color: var(--warn); } .pr-status.ok { color: var(--good); }
.pr-tools { display: flex; gap: 6px; align-items: center; }
.pr-alt, .pr-threat, .pr-ok { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.pr-ok { color: var(--good); } .pr-ok svg.i { width: 13px; height: 13px; }
.pr-threat { color: var(--bad); } .pr-threat svg.i { width: 13px; height: 13px; }
.pr-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--bg2);
  border: 1px solid var(--line); font-size: 12px; color: var(--text); }
button.pr-chip { cursor: pointer; } button.pr-chip:hover:not([disabled]) { border-color: var(--accent); } button.pr-chip[disabled] { cursor: default; }
.pr-chip img { width: 20px; height: 20px; border-radius: 50%; }
.pr-chip.bad { border-color: rgba(255, 123, 138, .35); }
.plan-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; font-size: 12.5px; }
.plan-sum ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
/* Konter */
.ct-row { display: grid; grid-template-columns: 34px minmax(110px, 170px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ct-row > img { width: 34px; height: 34px; border-radius: 8px; }
.ct-head { display: grid; }
.ct-head .muted { display: flex; align-items: center; gap: 4px; }
.ct-head svg.i { width: 12px; height: 12px; }
.ct-picks { display: flex; flex-wrap: wrap; gap: 6px; }

/* Auswahl */
.lv-pick { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.lv-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lv-search input { flex: 1; min-width: 160px; }
#lvRoles button { display: inline-flex; align-items: center; gap: 4px; }
#lvRoles button svg.i { width: 13px; height: 13px; }
#lvRoles button[disabled] { opacity: .35; cursor: default; }
.lv-champs { max-height: 360px; overflow-y: auto; padding-right: 4px; }
.champ { position: relative; }
.champ.locked { opacity: .35; }
.champ svg.lk, .champ svg.pl { position: absolute; top: 3px; right: 5px; width: 13px; height: 13px; }
.champ svg.pl { color: var(--accent); }
.champ.planned img { box-shadow: 0 0 0 2px var(--accent); }

@media (max-width: 1180px) {
  .lv-grid { grid-template-columns: 1fr 1fr; }
  .lv-center { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 760px) {
  .lv-bar { flex-direction: column; align-items: stretch; }
  .lv-tools { justify-content: flex-end; flex-wrap: wrap; }
  .lv-modes button { min-width: 0; flex: 1; }
  .lv-modes small { display: none; }
  .lv-grid { grid-template-columns: 1fr; }
  .lv-tabs { overflow-x: auto; }
  .plan-row { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .plan-row .pr-role { display: none; }
  .plan-row .pr-status, .plan-row .pr-tools { grid-column: 2 / -1; }
  .plan-sum { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 34px minmax(0, 1fr); }
  .ct-picks { grid-column: 1 / -1; }
}
/* v4.2: sieben Tabs – angedockt wird es eng: Tabs scrollen, Markenname und Datenbasis-Knopf werden kompakter */
body.docked .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
body.docked .topbar .brand span:not(.logo) { display: none; }
body.docked .seg#tabs { justify-self: center; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
body.docked .filt-btn { max-width: 150px; }
@media (max-width: 1320px) { .seg#tabs button { padding: 7px 12px; } }
.tag { white-space: nowrap; max-width: 100%; }
.tag.more { background: var(--bg3); border-color: var(--line2); color: var(--muted); cursor: help; }
.tag .tx { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Icons */
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.ico { display: inline-flex; }

/* Review (v4.4): Übersicht, Gruppen, aufklappbare Details */
.rv-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
.rv-mini { flex: 0 0 auto; display: grid; grid-template-columns: 32px auto auto; gap: 8px; align-items: center; padding: 6px 10px 6px 6px;
  background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); cursor: pointer; text-align: left; }
.rv-mini:hover { border-color: var(--line2); }
.rv-mini img { width: 32px; height: 32px; border-radius: 7px; }
.rv-mini-t { display: grid; } .rv-mini-t b { font-size: 12.5px; } .rv-mini-t small { font-size: 11px; color: var(--muted); }
.rv-mini-r { display: grid; justify-items: end; font-weight: 700; font-size: 13px; }
.rv-mini-r small { font-weight: 500; font-size: 10.5px; color: var(--muted); }
.rv-mini.pos { box-shadow: inset 0 -2px 0 var(--good); } .rv-mini.pos .rv-mini-r { color: var(--good); }
.rv-mini.mid { box-shadow: inset 0 -2px 0 var(--warn); } .rv-mini.mid .rv-mini-r { color: var(--warn); }
.rv-mini.neg { box-shadow: inset 0 -2px 0 var(--bad); } .rv-mini.neg .rv-mini-r { color: var(--bad); }
.rv-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 12px; }
.rv-grp { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.rv-grp h4 { display: flex; gap: 6px; align-items: center; margin: 0 0 6px; font-size: 12.5px; }
.rv-grp.warn h4 svg.i { color: var(--warn); } .rv-grp.good h4 svg.i { color: var(--good); } .rv-grp h4 svg.i { color: var(--accent); }
.rv-grp ul { margin: 0; padding-left: 16px; display: grid; gap: 4px; font-size: 12.5px; line-height: 1.45; }
.rv-head { display: flex; align-items: center; gap: 8px; }
.rv-head .ic { width: 30px; height: 30px; border-radius: 7px; }
.rv-head b { font-size: 15px; }
.rv-rank { font-weight: 700; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--bg3); }
.rv-rank.pos { color: var(--good); } .rv-rank.neg { color: var(--bad); }
.rv-more { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.rv-more summary { cursor: pointer; padding: 4px 0; font-size: 13px; }
.rv-more h4 svg.i { width: 13px; height: 13px; margin-right: 4px; }
.rv-conf { margin: 8px 0 0; }
.scrim { background: rgba(8, 10, 15, .35); backdrop-filter: none; }
.panel { width: min(640px, 100vw); }
.seg#tabs button { display: inline-flex; align-items: center; gap: 6px; }
.seg#tabs button svg.i { width: 15px; height: 15px; opacity: .75; }
.seg#tabs button.on svg.i { opacity: 1; color: var(--accent); }
@media (max-width: 1320px) { .seg#tabs button svg.i { display: none; } }
@media (max-width: 760px) {
  #lvRoles { max-width: 100%; overflow-x: auto; }
  #lvRoles button span { display: none; }
  #lvRoles button:first-of-type span { display: inline; }
  .lv-search input { min-width: 0; flex-basis: 100%; }
}
.view.live { grid-template-columns: minmax(0, 1fr); }
.view.live > * { min-width: 0; }
.lv-grid > * { min-width: 0; }

/* v4.5: Live-Draft Kopfzeile kompakt (Modus und Seite als Umschalter wie die Tabs) */
.lv-setup { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.lv-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; }
.lv-seg button svg.i { width: 15px; height: 15px; opacity: .8; }
.lv-seg button.on svg.i { color: var(--accent); opacity: 1; }
.lv-sidepick { padding: 3px; gap: 0; background: var(--bg2); }
.lv-sidepick button { border: 0; font-weight: 500; }
.lv-sidepick button .dot { width: 8px; height: 8px; box-shadow: none; opacity: .5; }
.lv-sidepick button.on .dot { opacity: 1; }
.lv-sidepick button.blue.on, .lv-sidepick button.red.on { background: transparent; }
.lv-sidepick button.blue.on { color: var(--us); } .lv-sidepick button.red.on { color: var(--them); }
.lv-fear { display: inline-flex; gap: 6px; padding: 0; background: none; border: 0; }
.lv-fear select { padding: 6px 8px; font-size: 12.5px; }
.lv-bgroup { display: inline-flex; gap: 3px; padding: 2px; border-radius: 10px; }
.lv-bgroup.blue { background: var(--us-a); } .lv-bgroup.red { background: var(--them-a); margin-left: 6px; }
.lv-bans.pickable { cursor: pointer; border-radius: 999px; }
.lv-bans.pickable:hover .lv-ban { border-color: var(--accent); }
.lv-bseg button { display: inline-flex; align-items: center; gap: 6px; }
.lv-bseg button[disabled] { opacity: .4; cursor: default; }
.lv-bseg .dot { width: 8px; height: 8px; box-shadow: none; }
@media (max-width: 760px) { .lv-setup .spacer { display: none; } .lv-tools { width: 100%; justify-content: flex-end; } .lv-seg { max-width: 100%; overflow-x: auto; } }

/* ---------------------------------------------------------------- v4.5 Champion-Seite & 2v2 (kompakt) */
.ch-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 12px; padding: 12px 14px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ch-id { display: flex; gap: 12px; align-items: center; }
.ch-id img { width: 52px; height: 52px; border-radius: 12px; }
.ch-id b { display: block; font-size: 18px; }
.ch-id .muted { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; }
.ch-id svg.role { width: 14px; height: 14px; }
.ch-stat { display: grid; }
.ch-stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ch-stat small { color: var(--muted); font-size: 11.5px; }
.ch-sum { margin-top: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; }
.ch-sum > summary { display: flex; gap: 8px; align-items: center; cursor: pointer; list-style: none; font-size: 13px; }
.ch-sum > summary::-webkit-details-marker { display: none; }
.ch-sum > summary svg.i { color: var(--accent); }
.ch-sum[open] > summary span { display: none; }
.ch-sum[open] > summary::after { content: ''; }
.ch-mu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.ch-mu > div { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.ch-mu h4 { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 12.5px; }
.mu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mu-chip { display: inline-grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center;
  padding: 3px 8px 3px 3px; border-radius: 9px; background: var(--bg3); border: 1px solid var(--line); }
.mu-chip img { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 7px; }
.mu-chip b { font-size: 12.5px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mu-chip small { font-size: 10.5px; color: var(--muted); line-height: 1.1; }
.mu-chip.good b { color: var(--good); } .mu-chip.bad b { color: var(--bad); }

.cb-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr); gap: 12px; margin-top: 12px; }
.cb-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; margin-top: 12px; }
.cb-grid > .cb-card { margin-top: 0; }
.cb-card h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.cb-card h3 svg.i { color: var(--accent); }
.cb-left { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-content: start; }
.cb-blk h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cb-blk h4 svg.i { width: 13px; height: 13px; }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; }
.cb-icons { display: inline-flex; align-items: center; gap: 3px; }
.cb-icons .ic, .cb-path .ic { width: 28px; height: 28px; border-radius: 6px; }
.cb-path .ic.lg, .cb-opt .ic.lg, .cb-it .ic.lg { width: 36px; height: 36px; border-radius: 8px; }
.cb-num { display: grid; justify-items: end; line-height: 1.15; }
.cb-num b, .cb-opt b, .cb-it b { font-variant-numeric: tabular-nums; font-size: 13px; }
.cb-num small, .cb-opt small, .cb-it small { font-size: 10.5px; color: var(--muted); }
b.low { opacity: .6; }
.sk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--bg4); font-weight: 700; font-size: 12px; }
.sk.k-Q { color: #7cc4ff; } .sk.k-W { color: #ffd27a; } .sk.k-E { color: #b6a0ff; } .sk.k-R { color: #ff8fb0; }
.arr { color: var(--faint); margin: 0 1px; }
.cb-more { margin-top: 4px; font-size: 12px; }
.cb-more > summary { cursor: pointer; color: var(--accent); }
.cb-trees { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cb-th { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; }
.cb-th .ic { width: 22px; height: 22px; }
.cb-th small { margin-left: auto; color: var(--muted); font-size: 11px; }
.cb-rrow { display: flex; justify-content: space-around; gap: 4px; margin-bottom: 6px; }
.cb-rrow.ks .ri { width: 34px; height: 34px; }
.cb-rune { display: grid; justify-items: center; gap: 1px; }
.cb-rune .ri { width: 28px; height: 28px; border-radius: 50%; }
.cb-rune.unused { opacity: .3; filter: grayscale(1); }
.cb-rune.best .ri { box-shadow: 0 0 0 2px var(--accent); }
.cb-rune small { font-size: 10px; font-variant-numeric: tabular-nums; min-height: 12px; }
.cb-rrow.sh .ri { width: 22px; height: 22px; }
.cb-core { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; gap: 16px; align-items: start; }
.cb-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--bg3); border-radius: var(--r-md); }
.cb-path { display: inline-flex; align-items: center; gap: 2px; }
.cb-slot h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.cb-slot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 6px; }
.cb-slot h4 { width: 100%; }
.cb-opt, .cb-it { display: grid; justify-items: center; gap: 1px; }
.or { color: var(--faint); font-size: 11px; align-self: center; }
.cb-alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-top: 10px; }
.cb-alt { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--r-md); }
.cb-fold > summary { cursor: pointer; list-style: none; }
.cb-fold > summary::-webkit-details-marker { display: none; }
.cb-fold > summary h3 { margin: 0; }
.cb-fold > summary h3::after { content: '▾'; margin-left: auto; color: var(--muted); }
.cb-fold[open] > summary h3 { margin-bottom: 10px; }
.cb-fold[open] > summary h3::after { content: '▴'; }
.cb-igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.cb-inner h3 { display: none; }

/* 2v2 */
.mu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; margin-top: 12px; align-items: start; }
.mu-aside { display: grid; gap: 10px; }
.mu-aside .lk-card { margin: 0; }
.mu-aside h3 { display: flex; gap: 6px; align-items: center; }
.mu-aside h3 svg.i { color: var(--accent); }
.mu-parts > summary { cursor: pointer; list-style: none; }
.mu-parts > summary::-webkit-details-marker { display: none; }
.mu-parts > summary h3 { margin: 0; }
.mu-parts[open] > summary h3 { margin-bottom: 8px; }
.mu-tabs { display: flex; gap: 6px; }
.mu-tabs button { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--bg2); border: 1px solid var(--line);
  border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; color: var(--muted); cursor: pointer; }
.mu-tabs button img { width: 32px; height: 32px; border-radius: 7px; }
.mu-tabs button span { display: grid; text-align: left; } .mu-tabs button small { font-size: 11px; }
.mu-tabs button.on { background: var(--bg3); color: var(--text); border-color: var(--accent); }
.mu-body { background: var(--bg3); border: 1px solid var(--line); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg); padding: 14px; }
.mu-body h3 { display: flex; gap: 6px; align-items: center; margin: 0; }
.mu-body h3 svg.i { color: var(--accent); }
.mu-ctx .row { margin-bottom: 8px; }
.mu-build { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.mu-build > p { grid-column: 1 / -1; }
.mu-gen { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.mu-gen .cb-card { background: var(--bg2); }
@media (max-width: 1100px) { .mu-layout { grid-template-columns: 1fr; } .cb-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ch-mu, .cb-left, .cb-trees, .mu-build { grid-template-columns: 1fr; }
  .cb-core { grid-template-columns: 1fr; }
  .mu-tabs button { flex: 1; }
}
.cb-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cb-left { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.mu-build .it { padding: 6px 8px; }
.mu-build .it .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-build .it .why { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-build .section h3 { font-size: 12px; margin: 10px 0 6px; }

/* ---------------------------------------------------------------- v4.6 Live-Draft: Plan oben, alles sichtbar */
.lv-center { transition: opacity .2s; }
.lv-center.loading .lv-plan, .lv-center.loading .lv-box { opacity: .6; }
.lv-sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lv-sec-h h3, .lv-box h3 { display: flex; align-items: center; gap: 6px; margin: 0; }
.lv-sec-h h3 svg.i, .lv-box h3 svg.i { color: var(--accent); }
.lv-box h3 { margin-bottom: 8px; }
.plan-hint { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--accent); }
.plan-hint svg.i { width: 13px; height: 13px; }
.lv-plan { background: linear-gradient(180deg, rgba(167, 139, 250, .07), transparent 70%); border: 1px solid rgba(167, 139, 250, .3);
  border-radius: var(--r-lg); padding: 12px; }
.plan-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ps { position: relative; display: grid; justify-items: center; gap: 3px; padding: 10px 6px 8px; border-radius: var(--r-md);
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); cursor: pointer; text-align: center; min-width: 0; font: inherit; }
.ps:hover { border-color: var(--line2); }
.ps.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-a); }
.ps.empty { border-style: dashed; color: var(--muted); }
.ps.done { cursor: default; opacity: .8; }
.ps.bad { border-color: rgba(255, 123, 138, .55); } .ps.warn { border-color: rgba(245, 197, 107, .55); }
.ps > svg.role { position: absolute; top: 6px; left: 6px; width: 13px; height: 13px; color: var(--muted); }
.ps .pi { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--bg3); object-fit: cover; }
.ps b { font-size: 12.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps small { font-size: 10.5px; color: var(--muted); }
.ps small.bad { color: var(--bad); } .ps small.warn { color: var(--warn); } .ps small.ok, .ok { color: var(--good); }
.ps-score { position: absolute; top: 5px; right: 24px; font-size: 11px; font-weight: 700; }
.ps-x { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--faint); }
.ps-x:hover { background: var(--bg4); color: var(--text); }
.ps-x svg.i { width: 11px; height: 11px; }
.ps-take { position: absolute; bottom: 4px; right: 4px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #17131f; }
.ps-take svg.i { width: 13px; height: 13px; }
.plan-eval { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pe-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; min-width: 0; font-size: 12.5px; }
.pe-card h4 { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 12.5px; }
.pe-card h4 svg.i { color: var(--accent); width: 14px; height: 14px; }
.pe-card h5 { margin: 10px 0 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pe-row { padding: 4px 0 6px; border-bottom: 1px solid var(--line); }
.pe-row:last-child { border-bottom: 0; }
.pe-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pe-who img { width: 22px; height: 22px; border-radius: 6px; }
.pe-lane { display: inline-flex; gap: 3px; align-items: center; font-size: 11.5px; }
.pe-lane svg.i { width: 12px; height: 12px; }
.pe-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.pe-list li { position: relative; padding-left: 12px; line-height: 1.35; }
.pe-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.pe-list li.pos::before { background: var(--good); } .pe-list li.neg::before { background: var(--bad); }
.pe-list li .kdot { display: none; }
.pe-threat { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 5px; color: var(--bad); font-size: 11.5px; }
.pe-threat svg.i { width: 12px; height: 12px; }
.pe-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pe-gen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 3px 0; }
.pe-gen svg.role { width: 13px; height: 13px; color: var(--muted); }
.pe-gen .ok { display: inline-flex; gap: 3px; align-items: center; } .pe-gen .ok svg.i { width: 12px; height: 12px; }
.lnk-chip { cursor: pointer; } .lnk-chip:hover { border-color: var(--accent); }
.plan-empty { margin: 10px 0 0; }
.lv-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lv-box { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; min-width: 0; }
.lv-list { display: grid; gap: 6px; }
.lv-list .sug { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 6px; }
.lv-list .sug img { width: 34px; height: 34px; }
.lv-basis { margin: -4px 0 8px; }
.lv-ban { padding: 0; background: transparent; cursor: pointer; font: inherit; }
.lv-ban:hover { border-color: var(--accent); }
.lv-ban.set:hover img { opacity: .4; }
.lv-step.clickable { cursor: pointer; }
.lv-champs.plan-mode { outline: 2px dashed var(--accent-a); outline-offset: 4px; border-radius: 8px; }
@media (max-width: 900px) { .plan-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plan-eval, .lv-duo { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .plan-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* aufklappbare Build-Blöcke */
.cb-x > summary { list-style: none; cursor: pointer; border-radius: 8px; margin: -4px; padding: 4px; }
.cb-x > summary::-webkit-details-marker { display: none; }
.cb-x > summary:hover { background: var(--bg3); }
.cb-x[open] > summary { background: var(--bg3); }
.cb-cnt { margin-left: auto; font-weight: 500; font-size: 10.5px; color: var(--faint); }
.cb-x[open] { grid-column: 1 / -1; }
.cb-tab { width: 100%; margin-top: 6px; font-size: 12px; }
.cb-tab td { padding: 3px 4px; vertical-align: middle; }
.cb-tab .cb-icons .ic { width: 22px; height: 22px; }
.cb-tab .cb-names { margin-left: 6px; color: var(--muted); font-size: 11.5px; }
.cb-x h5 { margin: 8px 0 2px; font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------------- v4.6 Draft-Lage */
.card-head h2 .ico svg.i, .more-card h2 svg.i { color: var(--accent); margin-right: 6px; }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; }
.ov-tile { background: var(--bg3); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; min-width: 0; }
.ov-h { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; }
.ov-h > svg.i, .ov-h .ico svg.i { color: var(--accent); }
.ov-h b.pos, .ov-h b.neg { font-size: 12px; }
.dom-bar { position: relative; display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--bg4); }
.dom-bar .l { background: var(--us); } .dom-bar .r { background: var(--them); }
.dom-bar i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--bg); transform: translateX(-1px); }
.dom-lbl { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.dom-lbl .us { color: var(--us); } .dom-lbl .them { color: var(--them); }
.ov-lanes { display: grid; gap: 5px; margin-top: 10px; }
.ov-lane { display: grid; grid-template-columns: 16px 62px minmax(0, 1fr) 40px; gap: 6px; align-items: center; font-size: 12px; }
.ov-lane svg.role { width: 14px; height: 14px; color: var(--muted); }
.ov-lane b { text-align: right; font-variant-numeric: tabular-nums; }
.mini-bar { height: 6px; border-radius: 999px; background: var(--them-a); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--us); }
.ov-why { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.ov-style { display: grid; gap: 5px; margin-top: 10px; }
.ov-style > div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ov-style .dot { width: 8px; height: 8px; margin-right: 2px; box-shadow: none; }
.ov-power .chart-box { height: 170px; }
.more-card > summary { cursor: pointer; list-style: none; }
.more-card > summary::-webkit-details-marker { display: none; }
.more-card > summary h2 { margin: 0; display: flex; align-items: center; }
.more-card > summary h2::after { content: '▾'; margin-left: auto; color: var(--muted); }
.more-card[open] > summary h2::after { content: '▴'; }
.more-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 12px; }
.more-grid > .card { margin: 0; box-shadow: none; background: var(--bg3); }
@media (max-width: 1100px) { .ov-grid { grid-template-columns: 1fr 1fr; } .ov-power { grid-column: 1 / -1; } .more-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ov-grid { grid-template-columns: 1fr; } }
.dash .more-grid > .card { grid-column: auto; }
.rv-mini.on { border-color: var(--accent); background: var(--accent-a); }
.rv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 10px 0 10px; }
.rv-tabs button { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.rv-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.rv-tabs button svg.i { width: 14px; height: 14px; }
.rv-coach > summary { cursor: pointer; list-style: none; } .rv-coach > summary::-webkit-details-marker { display: none; }
.rv-coach > summary h3 { display: flex; gap: 6px; align-items: center; margin: 0; }
.rv-coach[open] > summary h3 { margin-bottom: 8px; }
.pc-tabs button { display: inline-flex; gap: 5px; align-items: center; } .pc-tabs button svg.i { width: 14px; height: 14px; }
/* v4.7: kompletter Build als Pfad, 2v2-Kontext */
.cb-full { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--accent-a), transparent 80%); border: 1px solid rgba(167, 139, 250, .35); }
.cb-full .cb-path .ic.lg { width: 40px; height: 40px; }
.cb-full .arr { font-size: 18px; color: var(--accent); margin: 0 3px; }
.cb-full .plus { color: var(--faint); margin: 0 6px 0 2px; }
.cb-path .arr { font-size: 15px; }
.mu-n { margin: 0 0 8px; }
.mu-ctx .cb-grid { margin-top: 4px; }
.mu-items { margin-top: 12px; background: var(--bg2); }
.mu-items .seg { margin-bottom: 8px; }
.mu-gen > summary { cursor: pointer; list-style: none; } .mu-gen > summary::-webkit-details-marker { display: none; }
.mu-gen > summary h3::after { content: '▾'; margin-left: auto; color: var(--muted); }
.mu-gen[open] > summary h3::after { content: '▴'; }
#muVs button { display: inline-flex; align-items: center; gap: 6px; }
#muVs button img { width: 18px; height: 18px; border-radius: 4px; }
/* Discord-Login */
.or-line { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 4px 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.discord-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #5865f2; border-color: #5865f2; color: #fff; }
.discord-btn:hover:not(:disabled) { background: #4752c4; }
.discord-btn svg.i { width: 18px; height: 18px; }
.section .discord-btn { width: auto; }
#authDiscord { display: grid; gap: 8px; }
#authDiscord[hidden] { display: none; }
#discordNote { margin: 0; text-align: center; }
