*{box-sizing:border-box}body{margin:0;background:#080b14;color:#eef2ff;font-family:system-ui,-apple-system,Segoe UI,sans-serif}button,input,select{font:inherit}button{cursor:pointer}header{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:16px max(14px,calc((100% - 1180px)/2));background:#0b0f1af2;border-bottom:1px solid #26304a}.brand{display:flex;gap:8px;line-height:1.05}.brand:first-letter{font-size:24px}nav{display:flex;gap:6px}.nav{background:transparent;border:1px solid transparent;color:#aeb7d3;padding:10px 13px;border-radius:13px;font-weight:700}.nav.active,.nav:hover{background:#19233d;color:white;border-color:#2c3a5d}main{max-width:1180px;margin:auto;padding:45px 16px 70px}.page{display:none}.page.active{display:block}.hero{margin-bottom:25px}.hero small{letter-spacing:3px;color:#7481a5}.hero h1{font-size:clamp(42px,7vw,70px);line-height:1;margin:12px 0}.hero p{color:#aeb7cf;font-size:18px;max-width:700px}.card{background:#0d1424e8;border:1px solid #26314d;border-radius:22px;padding:18px}.searchbox{position:relative}.searchbox label,label{display:block;font-size:14px;font-weight:750;color:#c9d1e6;margin-bottom:8px}.searchrow{position:relative}.searchrow input{width:100%;height:56px;padding:0 52px 0 16px;border-radius:15px;border:1px solid #34405e;background:#080e1b;color:#fff;outline:0;font-size:17px}.searchrow input:focus{border-color:#7184bd;box-shadow:0 0 0 4px #5d70b42b}.searchrow button{position:absolute;right:7px;top:7px;width:42px;height:42px;border:0;border-radius:11px;background:transparent;color:#bbc4dc;font-size:30px}.searchrow button:hover{background:#1b2540;color:white}.dex-filter-label{margin-top:14px;margin-bottom:7px}.dex-filter{width:100%;height:48px;border-radius:12px;border:1px solid #34405e;background:#080e1b;color:#fff;padding:0 12px;outline:0}.dex-filter:focus{border-color:#7184bd;box-shadow:0 0 0 4px #5d70b42b}#suggestions{position:absolute;left:18px;right:18px;top:87px;z-index:30;border:1px solid #3a486b;background:#0b1222;border-radius:15px;overflow:hidden;box-shadow:0 20px 50px #0009}#suggestions:empty{display:none}.suggest{width:100%;display:flex;align-items:center;gap:10px;padding:8px 12px;background:#0b1222;color:#fff;border:0;border-bottom:1px solid #202a43;text-align:left}.suggest:hover{background:#19233d}.suggest img{width:42px;height:42px;object-fit:contain}.suggest small,#status,.muted{color:#7f8baa}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-top:18px}.poke{background:#0e1525;border:1px solid #222d48;border-radius:20px;padding:11px}.poke button{width:100%;border:0;background:none;color:inherit;text-align:left}.pic{height:170px;background:#080c16;border-radius:15px;display:grid;place-items:center}.pic img{width:160px;height:160px;object-fit:contain}.no{font-size:13px;color:#7783a3;margin-top:10px}.name{font-size:20px;font-weight:850}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:15px}.twocol select,.evgrid input{width:100%;height:48px;border-radius:12px;border:1px solid #303b59;background:#080e1b;color:#fff;padding:0 11px}.evgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.evgrid label{margin:0}h2{margin-top:26px}.notice{margin-top:20px;padding:13px;border:1px solid #303b59;border-radius:13px;color:#aeb7cf;background:#11192d}#modal[hidden]{display:none!important}#modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:10px}.backdrop{position:absolute;inset:0;background:#000b}.modal{position:relative;z-index:1;width:min(760px,100%);max-height:90vh;overflow:auto;background:#0d1425;border:1px solid #394665;border-radius:22px;padding:18px;box-shadow:0 30px 100px #000c}.close{position:absolute;right:10px;top:10px;width:44px;height:44px;border:0;border-radius:12px;background:#19233d;color:#fff;font-size:29px}.detail{display:grid;grid-template-columns:210px 1fr;gap:20px;align-items:center}.detailpic{height:210px;background:#080c16;border-radius:18px;display:grid;place-items:center}.detailpic img{width:200px;height:200px;object-fit:contain}.detail h2{font-size:34px;margin:0 45px 5px 0}.section{margin-top:22px}.pill{display:inline-block;background:#1a2540;padding:6px 9px;border-radius:9px;margin:3px;font-size:13px}.stat{display:grid;grid-template-columns:120px 1fr 35px;gap:8px;align-items:center;margin:7px 0;font-size:13px}.bar{height:8px;background:#1a2540;border-radius:9px}.bar i{display:block;height:100%;background:#7184bd;border-radius:9px}@media(max-width:650px){header{align-items:flex-start}.brand{font-size:14px}nav{max-width:58%}.nav{font-size:12px;padding:8px 9px}main{padding:30px 12px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pic{height:130px}.pic img{width:125px;height:125px}.name{font-size:17px}.twocol,.evgrid{grid-template-columns:1fr}.detail{grid-template-columns:1fr}.detailpic{height:180px}.detailpic img{width:175px;height:175px}}
.description{color:#c2cbe0;line-height:1.65}.flavor{color:#8f9ab5;font-style:italic;border-left:3px solid #354365;padding-left:12px}.data-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.data-box{background:#111a2d;border:1px solid #263452;border-radius:12px;padding:11px}.data-box b{display:block;color:#7f8baa;font-size:12px;margin-bottom:3px}.tag{display:inline-block;background:#1b2744;padding:6px 9px;border-radius:9px;margin:3px;font-size:13px}@media(max-width:650px){.data-grid{grid-template-columns:1fr}}

.form-buttons{display:flex;flex-wrap:wrap;gap:8px}
.form-choice{border:1px solid #303b59;background:#11192c;color:#d9e1f5;border-radius:11px;padding:8px 11px;cursor:pointer}
.form-choice:hover,.form-choice.active{background:#27375e;border-color:#6075b1;color:#fff}
.form-choice img{width:34px;height:34px;object-fit:contain;vertical-align:middle;margin-right:6px}
.move-groups{display:grid;gap:14px}
.move-group{border:1px solid #263452;background:#10182a;border-radius:15px;overflow:hidden}
.move-group h4{margin:0;padding:11px 13px;background:#17223a;color:#e8edfb}
.move-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.move-item{padding:10px 12px;border-top:1px solid #202b44;display:flex;align-items:center;justify-content:space-between;gap:10px}
.move-name{font-weight:700}.move-meta{font-size:12px;color:#7f8baa;white-space:nowrap}
@media(max-width:650px){.move-list{grid-template-columns:1fr}}

.calc-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
.calc-title h2{margin-top:0}.total{font-size:13px;color:#9eacd0}
.calc-preview{display:flex;align-items:center;gap:10px;min-height:74px;margin:10px 0;padding:8px 12px;border:1px solid #222e49;border-radius:13px;background:#0a101e;overflow:auto}
.calc-preview img{width:68px;height:68px;object-fit:contain}.calc-preview b{font-size:17px}.calc-preview .statsline{color:#9eacd0;font-size:12px;line-height:1.6}
.changegrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}
.changegrid select{width:100%;height:44px;border-radius:11px;border:1px solid #303b59;background:#080e1b;color:#fff;padding:0 9px}
.primary{margin-top:18px;width:100%;height:52px;border:0;border-radius:13px;background:#344a80;color:#fff;font-weight:850}
.primary:hover{background:#405b98}.move-info{margin-top:12px;padding:13px;border:1px solid #263452;background:#10182a;border-radius:13px;color:#c2cbe0}
.damage-result{margin-top:12px}.damage-box{padding:16px;border:1px solid #354665;border-radius:15px;background:#111a2e}
.damage-number{font-size:30px;font-weight:900}.damage-muted{color:#8f9ab5;font-size:13px}
@media(max-width:650px){.changegrid{grid-template-columns:1fr 1fr}}

/* v0.9 – suchbare Auswahlfelder im Battle Calculator */
.calc-suggestions{position:relative;z-index:20;margin-top:4px;border:1px solid var(--border,#30384d);border-radius:12px;background:var(--card,#151b2d);max-height:320px;overflow:auto;box-shadow:0 10px 25px rgba(0,0,0,.22)}
.calc-suggest{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:9px 11px;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:transparent;color:inherit;cursor:pointer;min-height:52px}
.calc-suggest:last-child{border-bottom:0}.calc-suggest:hover,.calc-suggest:focus{background:rgba(255,255,255,.06);outline:none}.calc-suggest img{width:40px;height:40px;object-fit:contain;flex:0 0 40px}.calc-suggest span{display:flex;flex-direction:column;min-width:0}.calc-suggest small{opacity:.65;margin-top:2px}
.relation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.relation-grid>div{background:#11192d;border:1px solid #27334f;border-radius:14px;padding:12px}.relation-grid strong{display:block;margin-bottom:6px;color:#dbe3f5}.muted{color:#7f8baa}@media(max-width:650px){.relation-grid{grid-template-columns:1fr}}
.nature-inline{display:flex;align-items:center;gap:10px;max-width:320px;margin:10px 0 14px}.nature-inline select{flex:1}.maxstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.maxstat{padding:12px;border:1px solid var(--border,#29334d);border-radius:12px;background:rgba(255,255,255,.03);display:flex;justify-content:space-between;gap:8px}.maxstat b{font-size:1.08rem}@media(max-width:600px){.maxstats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.abilityline{color:#8f9ab5;font-size:12px;margin-top:4px}.abilityline strong{color:#dce5fb}

.dex-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.dex-actions #status{margin:0}.secondary{height:44px;padding:0 14px;border:1px solid #34405e;border-radius:12px;background:#111a2d;color:#dce5fb;font-weight:750}.secondary:hover{background:#1b2744;color:#fff}@media(max-width:650px){.dex-actions{align-items:stretch;flex-direction:column}.secondary{width:100%}}


/* v3.3 Randomizer */
.randomizer-controls{max-width:720px;margin:0 auto 24px}.randomizer-controls>label{display:block;font-weight:800;margin-bottom:8px}.randomizer-controls>select{width:100%;height:48px;border-radius:12px;border:1px solid #303b59;background:#080e1b;color:#fff;padding:0 12px;font-size:16px}.randomizer-controls .primary{margin-top:14px}.randomizer-help{color:#8f9ab5;line-height:1.5;margin:12px 0 0}.randomizer-team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.randomizer-card{position:relative;min-width:0;text-align:center;padding:18px;border:1px solid #30405f;border-radius:18px;background:#111a2e;box-shadow:0 8px 22px rgba(0,0,0,.16)}.randomizer-number{font-size:12px;color:#7180a1;font-weight:800;letter-spacing:.08em}.randomizer-pic{height:180px;display:grid;place-items:center;background:#0a101e;border-radius:15px;margin:8px 0 12px}.randomizer-pic img{width:170px;height:170px;object-fit:contain}.randomizer-name{font-size:20px;font-weight:900;color:#eef2ff}.randomizer-mega{display:inline-block;margin-top:7px;padding:5px 9px;border-radius:999px;background:#354b82;color:#fff;font-size:12px;font-weight:800}.randomizer-card.mega{border-color:#526da8}.randomizer-empty{grid-column:1/-1;text-align:center;color:#8f9ab5;padding:36px 16px;border:1px dashed #30405f;border-radius:18px}.randomizer-loading{opacity:.7}@media(max-width:700px){.randomizer-team{grid-template-columns:repeat(2,minmax(0,1fr))}.randomizer-pic{height:145px}.randomizer-pic img{width:140px;height:140px}}@media(max-width:430px){.randomizer-team{grid-template-columns:1fr}}

@media(max-width:700px){header{flex-wrap:wrap}nav{order:2;width:100%;justify-content:stretch}nav .nav{flex:1;min-width:0;padding-left:7px;padding-right:7px}.top-tools{order:3}}
.hit-count{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0 0;color:#c9d1e6;font-weight:750}.hit-count select{min-width:120px;height:42px;border-radius:10px;border:1px solid #34405e;background:#080e1b;color:#fff;padding:0 10px}.hit-count small{flex-basis:100%;color:#8f9ab5;font-weight:500}

#infoModal[hidden]{display:none!important}#infoModal{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:16px}.info-modal{position:relative;z-index:1;width:min(520px,100%);max-height:75vh;overflow:auto;background:#10182a;border:1px solid #435173;border-radius:20px;padding:22px;box-shadow:0 25px 80px #000c}.info-modal h2{margin:0 45px 16px 0;font-size:26px}.info-modal p{line-height:1.6;color:#d6ddef}.ability-buttons{display:flex;flex-wrap:wrap;gap:8px}.ability-button{border:1px solid #39496f;background:#182440;color:#eef2ff;border-radius:11px;padding:9px 12px;font-weight:750}.ability-button:hover{background:#223154;border-color:#657bb2}.effect-link{border:0;background:none;color:#8fa9ff;text-decoration:underline;text-decoration-style:dotted;padding:0;cursor:pointer;font:inherit}.effect-link:hover{color:#c2d0ff}.effect-info p{margin:10px 0}

/* v5.0 – Pokémon Champions move list */
.move-mode-label{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-weight:700;color:#e8edfb}
.move-mode-label select{flex:1;max-width:430px;background:#111b30;color:#eef2ff;border:1px solid #39496f;border-radius:10px;padding:10px 12px;font:inherit}
.champions-moves{display:grid;gap:12px}
.champ-move-type{border:1px solid #263452;background:#10182a;border-radius:15px;overflow:hidden}
.champ-type-header{display:flex;align-items:center;gap:9px;padding:11px 13px;background:#17223a;font-weight:800}
.champ-type{display:inline-flex;align-items:center;gap:6px;min-width:92px;border-radius:999px;padding:4px 9px;border:1px solid #39496f;background:#1a2640;color:#f4f6ff;font-size:12px;font-weight:800}
.champ-type-symbol{width:18px;text-align:center}
.champ-type-normal{border-color:#9b9b86}.champ-type-fire{border-color:#e06a42}.champ-type-water{border-color:#4d8bd6}.champ-type-electric{border-color:#d7b842}.champ-type-grass{border-color:#62a85c}.champ-type-ice{border-color:#67bfc8}.champ-type-fighting{border-color:#b85c58}.champ-type-poison{border-color:#9b62aa}.champ-type-ground{border-color:#bd9656}.champ-type-flying{border-color:#8497d8}.champ-type-psychic{border-color:#d56a9d}.champ-type-bug{border-color:#83a94e}.champ-type-rock{border-color:#9e875c}.champ-type-ghost{border-color:#74699d}.champ-type-dragon{border-color:#7164c1}.champ-type-dark{border-color:#69606a}.champ-type-steel{border-color:#8190a5}.champ-type-fairy{border-color:#c47fb0}
.champ-move-list{display:grid}
.champ-move-item{display:grid;grid-template-columns:115px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 12px;border-top:1px solid #202b44}
.champ-move-type-mini .champ-type{font-size:11px;min-width:0;padding:3px 7px}
.champ-move-item .move-name{font-weight:650}
@media(max-width:600px){.champ-move-item{grid-template-columns:92px minmax(0,1fr);}.champ-move-item>.move-meta{grid-column:2;font-size:11px}.move-mode-label{align-items:stretch;flex-direction:column}.move-mode-label select{max-width:none}}
/* v5.1: the Pokédex move mode is a true view switch, never a stacked view. */
#dexNormalMoves[hidden],#dexChampionsMoves[hidden]{display:none!important}
/* v6.0 – clickable Champions move details */
.move-info-link{border:0;background:none;color:#eef2ff;text-decoration:underline;text-decoration-style:dotted;text-decoration-color:#7184bd;text-underline-offset:3px;padding:0;text-align:left;font:inherit;font-weight:650;cursor:pointer;min-width:0}
.move-info-link:hover{color:#c2d0ff;text-decoration-color:#9db1ff}
.move-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
.move-info-grid>div{background:#0b1222;border:1px solid #263452;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.move-info-grid span{font-size:12px;color:#7f8baa}.move-info-grid b{font-size:15px;color:#eef2ff}
.move-info-block{margin-top:14px;padding:13px;border:1px solid #263452;background:#0b1222;border-radius:13px}.move-info-block strong{display:block;margin-bottom:7px}.move-info-block p{margin:0;line-height:1.55;color:#d6ddef}.move-traits{display:flex;flex-wrap:wrap;gap:5px}
@media(max-width:600px){.move-info-grid{grid-template-columns:1fr}.move-info-link{min-width:0}}

/* v7.1 – compact collapsible navigation + Meta & Teams */
.menu-wrap{position:relative;display:flex;align-items:center}.menu-toggle{height:42px;border:1px solid #34405e;border-radius:11px;background:#111a2d;color:#eef2ff;padding:0 14px;font-weight:800}.menu-toggle:hover{background:#1b2744}.main-nav{display:none;position:absolute;right:0;top:52px;min-width:250px;padding:8px;background:#0f1627;border:1px solid #34405e;border-radius:14px;box-shadow:0 18px 45px #0009;flex-direction:column;gap:5px}.main-nav.open{display:flex}.main-nav .nav{width:100%;text-align:left;border:0;border-radius:10px;padding:11px 13px;background:transparent;color:#dce5fb}.main-nav .nav:hover,.main-nav .nav.active{background:#1b2946;color:#fff}.meta-toolbar{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-bottom:14px}.meta-toolbar label{display:block;font-size:13px;font-weight:800;margin-bottom:6px;color:#b9c4dc}.meta-toolbar select{width:100%;height:44px;border-radius:11px;border:1px solid #34405e;background:#080e1b;color:#fff;padding:0 10px}.meta-source-link{display:flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;height:44px}.meta-status{margin:10px 0;color:#8f9ab5;font-size:13px}.meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.meta-card{min-width:0}.meta-card h2{margin:0;font-size:19px}.meta-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.meta-badge{font-size:11px;font-weight:800;padding:5px 8px;border:1px solid #405176;border-radius:999px;color:#b9c8e8;background:#17223a}.meta-muted{color:#8f9ab5;line-height:1.5}.meta-team-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:11px 0;border-top:1px solid #202b44}.meta-team-rank{font-weight:900;color:#7484a7}.meta-team-stat{font-size:12px;color:#aab6d0;text-align:right}.meta-team-stat b{display:block;color:#eef2ff;font-size:14px}.meta-note{margin-top:16px}.meta-pokemon-row{display:grid;grid-template-columns:34px minmax(0,1fr) 90px 90px;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #202b44}.meta-pokemon-rank{font-weight:900;color:#7484a7}.meta-pokemon-name{font-weight:800}.meta-pokemon-bar{height:8px;border-radius:999px;background:#202b44;overflow:hidden}.meta-pokemon-bar span{display:block;height:100%;background:#5d79b8}.meta-pokemon-stat{text-align:right;font-size:12px;color:#aab6d0}.meta-view[hidden]{display:none!important}@media(max-width:760px){.meta-toolbar{grid-template-columns:1fr}.meta-grid{grid-template-columns:1fr}.meta-pokemon-row{grid-template-columns:28px minmax(0,1fr) 72px}.meta-pokemon-row .meta-pokemon-stat:last-child{display:none}}
@media(min-width:701px){header{gap:18px}.menu-wrap{margin-left:auto}.top-tools{order:2}.menu-wrap{order:3}}
.meta-more{width:100%;margin-top:12px}.meta-concrete{margin-top:16px}.meta-concrete-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.meta-concrete-team{border:1px solid #202b44;border-radius:12px;padding:12px;background:#0b1221}.meta-concrete-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.meta-concrete-head>div{display:flex;align-items:center;gap:9px}.meta-concrete-head b{font-size:15px}.meta-concrete-head span:not(.meta-team-rank){font-size:12px;color:#91d4a6;font-weight:800}.meta-concrete-pokemon{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.meta-team-poke{display:block;padding:6px 7px;border-radius:8px;background:#141e33;color:#dce5fb;font-size:12px;font-weight:700}.meta-concrete-team>a{display:inline-block;margin-top:9px;color:#9db7ef;font-size:11px;font-weight:800;text-decoration:none}.meta-concrete-team>a:hover{text-decoration:underline}@media(max-width:760px){.meta-concrete-grid{grid-template-columns:1fr}}
.meta-team-row-clickable{cursor:pointer;transition:background .15s ease,transform .15s ease}.meta-team-row-clickable:hover{background:#111b30;transform:translateY(-1px)}
.meta-team-preview{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.meta-team-preview .meta-team-poke{font-size:10px;padding:4px 6px}
.meta-profile-button{width:100%;margin-top:10px;padding:8px 10px;font-size:12px}.meta-profile-event{color:#aab6d0;margin-top:0}.meta-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.meta-profile-poke{border:1px solid #202b44;border-radius:12px;padding:10px;background:#0b1221}.meta-profile-poke-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.meta-profile-poke-head b{font-size:14px}.meta-profile-poke-head span{font-size:11px;color:#aab6d0;text-align:right}.meta-profile-meta{display:grid;gap:4px;margin-top:7px;color:#aab6d0;font-size:11px}.meta-profile-meta strong{color:#dce5fb}.meta-profile-moves{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.meta-profile-moves span{font-size:11px;padding:4px 6px;border-radius:7px;background:#141e33;color:#dce5fb}.meta-profile-note{margin:12px 0 0;color:#8f9ab5;font-size:12px;line-height:1.5}.meta-profile-label{font-weight:800;margin-bottom:6px}.meta-profile-team-preview{display:flex;flex-wrap:wrap;gap:6px}.meta-profile-team-preview .meta-team-poke{padding:6px 8px}.meta-profile-source{display:inline-flex;margin-top:12px;text-decoration:none;padding:8px 10px;align-items:center;justify-content:center}
@media(max-width:760px){.meta-profile-grid{grid-template-columns:1fr}.meta-team-preview{display:none}}

/* Learner lists */
.move-learners-button{margin:0;width:100%;height:44px}
.champions-learners{margin-top:12px}
.champions-learners-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media(max-width:600px){.champions-learners-list{grid-template-columns:1fr}}
.ability-info-block{margin-top:14px;padding-top:14px;border-top:1px solid #263452}.ability-learners-button{margin:0;width:100%;height:44px}.ability-learners{margin-top:12px}.ability-learners-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ability-learner{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:9px;padding:8px 10px;border:1px solid #263452;background:#10182a;border-radius:11px;min-width:0}.ability-learner img{width:40px;height:40px;object-fit:contain}.ability-learner span{font-weight:700;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ability-learner small{display:block;color:#7f8baa;font-size:11px;margin-top:2px}@media(max-width:600px){.ability-learners-list{grid-template-columns:1fr}}
/* Meta API interactive Pokémon rows / team members */
.meta-team-poke-button,.meta-profile-poke-button,.meta-pokemon-row-button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:left}
.meta-team-poke-button{display:block;width:100%;padding:7px 9px;border-radius:8px;background:var(--panel-2,#152039);font-weight:700}
.meta-team-poke-button:hover,.meta-profile-poke-button:hover{filter:brightness(1.12)}
.meta-pokemon-row-button{width:100%;display:grid;grid-template-columns:42px minmax(160px,1fr) minmax(120px,220px) 70px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(130,150,190,.18)}
.meta-pokemon-row-button:hover{background:rgba(90,120,180,.07)}
.meta-profile-poke-button{width:100%;display:block}
.meta-published-team{padding:12px;border:1px solid rgba(100,130,190,.22);border-radius:12px;margin-bottom:10px}
.meta-profile-stat-section{margin:14px 0}
.meta-profile-stat-section h3{margin:0 0 7px;font-size:14px}
.meta-profile-stat-row{display:flex;justify-content:space-between;gap:12px;padding:6px 8px;border-radius:7px;background:rgba(100,130,190,.08);margin:4px 0;font-size:13px}

/* v7.7 Team-Builder */
.team-builder-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.team-builder-hint{margin:.35rem 0 0;opacity:.72;font-size:.92rem}
.team-builder-total{white-space:nowrap;font-weight:800;color:#aeb7d3}
.team-builder-slots{display:grid;grid-template-columns:1fr;gap:10px}
.team-builder-slot{overflow:visible;position:relative}
.team-builder-slot[open]{z-index:1000}.team-builder-slot[open].team-builder-active-search{z-index:10000}
.team-builder-slot summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:46px 58px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px}
.team-builder-slot summary::-webkit-details-marker{display:none}
.team-builder-slot summary:hover{background:rgba(255,255,255,.025)}
.team-builder-slot-num{font-weight:800;color:#7f8eb7}
.team-builder-slot-sprite{width:52px;height:52px;object-fit:contain;image-rendering:auto}
.team-builder-slot-name{font-weight:800;font-size:1.05rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-builder-slot-meta{font-size:.8rem;opacity:.65;font-weight:500}
.team-builder-chevron{font-size:1.15rem;opacity:.7;transition:transform .15s ease}
.team-builder-slot[open] .team-builder-chevron{transform:rotate(180deg)}
.team-builder-empty .team-builder-slot-sprite{opacity:.92}
.team-builder-empty .team-builder-slot-name{opacity:.8;font-weight:700}
.team-builder-editor{border-top:1px solid #26314c;padding:14px}
.team-builder-search{position:relative}
.team-builder-search input{width:100%}
.team-builder-suggestions{position:absolute;z-index:10001;left:0;right:0;top:100%;background:#0b1020;border:1px solid #34405e;border-radius:10px;overflow:auto;max-height:300px;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.team-builder-suggestion{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border:0;color:#fff;padding:8px 10px;cursor:pointer}
.team-builder-suggestion:hover{background:#17213a}
.team-builder-suggestion img{width:42px;height:42px;object-fit:contain}
.team-builder-suggestion small{display:block;opacity:.6;margin-top:2px}
.team-builder-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px}
.team-builder-moves{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.team-builder-move-field{position:relative}
.team-builder-move-search{position:relative}
.team-builder-move-search input{width:100%}
.team-builder-move-suggestions{position:absolute;z-index:10002;left:0;right:0;top:100%;background:#0b1020;border:1px solid #34405e;border-radius:10px;overflow:auto;max-height:280px;box-shadow:0 12px 30px rgba(0,0,0,.45)}
.team-builder-move-suggestion{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;background:transparent;border:0;color:#fff;padding:9px 10px;cursor:pointer}
.team-builder-move-suggestion:hover{background:#17213a}
.team-builder-move-suggestion span{font-weight:700}
.team-builder-move-suggestion small{opacity:.62}
.team-builder-move-empty{padding:10px;opacity:.7}
.team-builder-ev{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.team-builder-ev label{font-size:.85rem}
.team-builder-ev input{width:100%}
.team-builder-ev-total{margin-top:8px;font-weight:800}
.team-builder-ev-total.over{color:#ff9a9a}
.team-builder-form-note{font-size:.82rem;opacity:.68;margin-top:7px}
.team-builder-loading{opacity:.7}
@media(max-width:700px){
 .team-builder-toolbar{align-items:flex-start;flex-direction:column}
 .team-builder-slot summary{grid-template-columns:34px 50px minmax(0,1fr) 20px;gap:8px;padding:10px}
 .team-builder-slot-sprite{width:46px;height:46px}
 .team-builder-grid{grid-template-columns:1fr}
 .team-builder-moves{grid-template-columns:1fr}
 .team-builder-ev{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v7.7.4 Team-Builder item search + Lv50 stats */
.team-builder-item-field{position:relative}
.team-builder-item-search{position:relative}
.team-builder-item-search input{width:100%}
.team-builder-item-suggestions{position:absolute;z-index:10003;left:0;right:0;top:100%;background:#0b1020;border:1px solid #34405e;border-radius:10px;overflow:auto;max-height:280px;box-shadow:0 12px 30px rgba(0,0,0,.45)}
.team-builder-item-suggestion{width:100%;display:block;text-align:left;background:transparent;border:0;color:#fff;padding:9px 10px;cursor:pointer}
.team-builder-item-suggestion:hover{background:#17213a}
.team-builder-item-none{border-bottom:1px solid rgba(130,150,190,.2);font-weight:700}
.team-builder-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.team-builder-stat{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;border:1px solid rgba(100,130,190,.22);border-radius:9px;background:rgba(100,130,190,.07)}
.team-builder-stat span{font-size:.82rem;opacity:.78}
.team-builder-stat b{font-size:1.05rem}
@media(max-width:700px){.team-builder-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v7.7.5 Team-Builder – lokale Teams & JSON Import/Export */
.team-builder-toolbar-main{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.team-builder-save-panel{margin-top:14px;padding-top:14px;border-top:1px solid #26314c}
.team-builder-save-panel>label{display:block;font-size:.84rem;font-weight:800}
.team-builder-save-panel input{width:100%;margin-top:6px}
.team-builder-save-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.team-builder-save-actions button{margin:0}
.team-builder-save-status{min-height:1.3em;margin-top:8px;color:#8fdbb2;font-size:.82rem;font-weight:700}
.team-builder-saved-wrap{margin-top:14px}
.team-builder-saved-head-main{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.team-builder-saved-head-main h2{margin:0}
.team-builder-saved-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.team-builder-empty-list{margin:0;padding:14px;border:1px dashed #34405e;border-radius:10px;opacity:.7;grid-column:1/-1}
.team-builder-saved-card{border:1px solid rgba(100,130,190,.22);border-radius:12px;padding:12px;background:rgba(100,130,190,.05)}
.team-builder-saved-card.active{border-color:#6f88c7;box-shadow:0 0 0 1px rgba(111,136,199,.2)}
.team-builder-saved-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.team-builder-saved-head b{display:block;font-size:1rem}
.team-builder-saved-head small,.team-builder-saved-head>span{display:block;margin-top:3px;color:#8f9ab5;font-size:.74rem}
.team-builder-saved-head>span{text-align:right;white-space:nowrap}
.team-builder-saved-preview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-top:10px}
.team-builder-saved-preview>div{min-width:0;text-align:center}
.team-builder-saved-preview img{width:44px;height:44px;object-fit:contain;display:block;margin:auto}
.team-builder-saved-preview span{display:block;margin-top:2px;font-size:.62rem;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.72}
.team-builder-saved-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.team-builder-saved-actions button{width:100%;margin:0;padding:7px 6px;font-size:.75rem}
.team-builder-saved-actions .danger{background:transparent;border:1px solid #7a3d4a;color:#ffb4be;border-radius:8px;cursor:pointer}
@media(max-width:700px){
 .team-builder-toolbar-main{flex-direction:column;gap:8px}
 .team-builder-save-actions{display:grid;grid-template-columns:1fr 1fr}
 .team-builder-save-actions button{width:100%}
 .team-builder-saved-list{grid-template-columns:1fr}
 .team-builder-saved-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .team-builder-saved-preview img{width:40px;height:40px}
}


/* v7.7.6 – Team → Calculator transfer and four attacker move slots */
.team-builder-slot summary{grid-template-columns:34px 50px minmax(0,1fr) auto 20px}
.team-builder-calc-btn{white-space:nowrap;border:1px solid #3f6fb5;border-radius:9px;background:#142a49;color:#fff;padding:8px 10px;font-size:.78rem;font-weight:800;cursor:pointer;line-height:1.15}
.team-builder-calc-btn:hover{background:#1b3a63}
.team-builder-calc-btn:active{transform:translateY(1px)}
.calc-moves-v17{margin-top:4px}
.calc-moves-head{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin:0 0 8px}
.calc-moves-head span{font-size:.82rem;opacity:.7}
.calc-move-slot{position:relative;margin-bottom:8px}
.calc-move-slot .calc-move-choice-label{display:flex;align-items:center;gap:9px;margin:0 0 6px;font-size:.9rem;font-weight:750;cursor:pointer}
.calc-move-slot .calc-move-choice{width:20px;height:20px;min-width:20px;margin:0;accent-color:#5d9cff;cursor:pointer}
.calc-move-slot .calc-move-search-label{display:block;margin:0}
.calc-move-slot .calc-suggestions{position:absolute;left:0;right:0;top:100%;z-index:2000}
.calc-move-slot.is-selected input{border-color:#5d9cff;box-shadow:0 0 0 2px rgba(93,156,255,.14)}
@media(max-width:700px){.team-builder-slot summary{grid-template-columns:30px 44px minmax(0,1fr) auto 18px;gap:7px;padding:9px}.team-builder-slot-sprite{width:42px;height:42px}.team-builder-calc-btn{font-size:.7rem;padding:7px 7px;max-width:150px;white-space:normal}.calc-moves-head{display:block}.calc-moves-head span{display:block;margin-top:2px}}
/* Pokédex evolution modal */
.evolution-top-action{margin:0 0 12px!important;display:flex;justify-content:flex-start}.primary,.secondary{border:1px solid #344362;border-radius:11px;padding:9px 13px;background:#26385f;color:#fff;font-weight:750}.secondary{background:#151f35;color:#dbe4ff}.primary:hover,.secondary:hover{filter:brightness(1.2)}.evolution-intro{color:#aeb7cf;line-height:1.5}.evolution-list{display:grid;gap:10px;margin-top:14px}.evolution-card{border:1px solid #2b3855;background:#0a1120;border-radius:15px;padding:12px;margin-left:calc(var(--evo-depth,0)*10px)}.evolution-card-main{display:flex;align-items:center;gap:12px}.evolution-card-main img{width:64px;height:64px;object-fit:contain;background:#080c16;border-radius:12px;flex-shrink:0}.evolution-card-info{display:grid;gap:5px;min-width:0}.evolution-card-info b{font-size:17px}.evolution-card-info span{font-size:13px;color:#aeb7cf;line-height:1.4}.evolution-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.evo-requirements{display:grid;gap:10px}.evo-requirement-card{border:1px solid #2b3855;background:#0a1120;border-radius:13px;padding:12px;line-height:1.55}.evo-detail-row{margin-bottom:6px}.evo-version-list{margin-top:10px;padding-top:9px;border-top:1px solid #26314d}.evo-version-list b{display:block;margin-bottom:5px}@media(max-width:500px){.evolution-card{margin-left:0}.evolution-card-main img{width:54px;height:54px}.evolution-card-actions button{flex:1}}
/* v7.8.2: evolution game/version groups sorted and visually separated by generation */
.evo-version-list{margin-top:.55rem;padding:.55rem .7rem;border-radius:10px;background:rgba(120,140,190,.08)}
.evo-version-generation{display:grid;grid-template-columns:minmax(110px, .35fr) minmax(0,1fr);gap:.65rem;padding:.4rem 0;border-top:1px solid rgba(140,155,190,.18)}
.evo-version-generation:first-of-type{border-top:0}
.evo-version-generation>div{overflow-wrap:anywhere}
@media(max-width:520px){.evo-version-generation{grid-template-columns:1fr;gap:.15rem}}

/* v7.8.4 – Türkis-blaue Eingabefelder und einheitliche Aktionsbuttons */
:root{--field-teal-bg:#123b4b;--field-teal-bg-hover:#17495a;--field-teal-border:#2c7185;--field-teal-focus:#55b7c8;--field-teal-text:#f0fbff;--action-blue:#26385f;--action-blue-border:#40577e}
/* Dropdowns und beschreibbare Felder sollen als interaktive Elemente klar erkennbar sein. */
#languageSelect,#dexFilter,#dexTypeFilter,.combatant-card-v14 select,.combatant-card-v14 input:not([type="checkbox"]),.changegrid select,.randomizer-controls>select,.team-builder select,.team-builder input:not([type="checkbox"]):not([type="file"]),.team-builder-search input,.team-builder-move-search input,.team-builder-item-search input,.team-builder-save-panel input,.twocol select,.evgrid input,.nature-inline select,.calc-move-search-label input,.calc-move-slot input[type="search"]{
  background-color:var(--field-teal-bg)!important;border:1px solid var(--field-teal-border)!important;color:var(--field-teal-text)!important;border-radius:10px;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease
}
#languageSelect:hover,#dexFilter:hover,#dexTypeFilter:hover,.combatant-card-v14 select:hover,.combatant-card-v14 input:not([type="checkbox"]):hover,.changegrid select:hover,.randomizer-controls>select:hover,.team-builder select:hover,.team-builder input:not([type="checkbox"]):not([type="file"]):hover,.team-builder-search input:hover,.team-builder-move-search input:hover,.team-builder-item-search input:hover,.team-builder-save-panel input:hover,.twocol select:hover,.evgrid input:hover,.nature-inline select:hover,.calc-move-search-label input:hover,.calc-move-slot input[type="search"]:hover{background-color:var(--field-teal-bg-hover)!important}
#languageSelect:focus,#dexFilter:focus,#dexTypeFilter:focus,.combatant-card-v14 select:focus,.combatant-card-v14 input:not([type="checkbox"]):focus,.changegrid select:focus,.randomizer-controls>select:focus,.team-builder select:focus,.team-builder input:not([type="checkbox"]):not([type="file"]):focus,.team-builder-search input:focus,.team-builder-move-search input:focus,.team-builder-item-search input:focus,.team-builder-save-panel input:focus,.twocol select:focus,.evgrid input:focus,.nature-inline select:focus,.calc-move-search-label input:focus,.calc-move-slot input[type="search"]:focus{outline:none;border-color:var(--field-teal-focus)!important;box-shadow:0 0 0 3px rgba(85,183,200,.2)}
#languageSelect option,#dexFilter option,#dexTypeFilter option,.combatant-card-v14 select option,.team-builder select option,.randomizer-controls>select option{background:#12303e;color:#f0fbff}
/* Aktionsbuttons an den vorhandenen „Alle Pokémon anzeigen“-Stil angleichen. */
#showMCPokemon,.combatant-card-v14 button:not(.calc-suggest):not(.switch-btn-v14),.team-builder button:not(.team-builder-calc-btn):not(.danger),.team-builder-save-actions button,.team-builder-saved-actions button{
  border:1px solid var(--action-blue-border);border-radius:11px;background:var(--action-blue);color:#f4f7ff;font-weight:750;transition:background-color .15s ease,border-color .15s ease,transform .15s ease
}
#showMCPokemon:hover,.combatant-card-v14 button:not(.calc-suggest):not(.switch-btn-v14):hover,.team-builder button:not(.team-builder-calc-btn):not(.danger):hover,.team-builder-save-actions button:hover,.team-builder-saved-actions button:hover{background:#344a75;border-color:#5a759f}
#showMCPokemon:active,.combatant-card-v14 button:not(.calc-suggest):not(.switch-btn-v14):active,.team-builder button:not(.team-builder-calc-btn):not(.danger):active{transform:translateY(1px)}
/* Die vorhandenen Dropdown-/Suchvorschläge behalten ihren dunklen Kartenkontrast. */
.calc-suggestions,.team-builder-suggestions{background:#0b1727;border-color:#2c7185}


/* v7.8.5 – Team-Builder: alle bisher hellen Eingabefelder an das Türkis-Blau anpassen */
.team-builder-editor input:not([type="checkbox"]):not([type="radio"]),
.team-builder-editor select,
.team-builder-editor textarea,
.team-builder-save-panel input,
.team-builder-save-panel select,
.team-builder-save-panel textarea {
  background-color: #123b4b !important;
  color: #eefaff !important;
  border: 1px solid #347f91 !important;
  border-radius: 10px;
  color-scheme: dark;
}
.team-builder-editor input::placeholder,
.team-builder-save-panel input::placeholder,
.team-builder-editor textarea::placeholder { color: #a8cbd4 !important; opacity: 1; }
.team-builder-editor input:focus,
.team-builder-editor select:focus,
.team-builder-editor textarea:focus,
.team-builder-save-panel input:focus,
.team-builder-save-panel select:focus,
.team-builder-save-panel textarea:focus {
  outline: none;
  border-color: #56c5d8 !important;
  box-shadow: 0 0 0 3px rgba(86,197,216,.18);
}
.team-builder-editor select option,
.team-builder-save-panel select option { background: #123b4b; color: #eefaff; }

/* v7.8.6 – Back navigation from evolution details */
.info-back{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin:0 0 12px;border:1px solid #286f80;border-radius:12px;background:#123b4b;color:#e8fbff;font-size:27px;font-weight:800;line-height:1;cursor:pointer}.info-back:hover{background:#185064;border-color:#45b8c8}.info-back[hidden]{display:none!important}


/* v7.8.8 – Team-Builder: zuverlässiger CSS-Pokéball für leere Slots (kein externes Bild/data-URI) */
.team-builder-slot-pokeball{
  display:inline-block; flex:0 0 48px; width:48px; height:48px; position:relative; box-sizing:border-box;
  border:3px solid #101827; border-radius:50%; overflow:hidden;
  background:linear-gradient(to bottom,#e84b54 0 46%,#101827 46% 55%,#f4f7fb 55% 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 2px 5px rgba(0,0,0,.25);
}
.team-builder-slot-pokeball:before{
  content:""; position:absolute; left:50%; top:50%; width:17px; height:17px; transform:translate(-50%,-50%);
  border:3px solid #101827; border-radius:50%; background:#f4f7fb; z-index:1; box-sizing:border-box;
}
.team-builder-slot-pokeball span{
  position:absolute; left:50%; top:50%; width:6px; height:6px; transform:translate(-50%,-50%);
  border-radius:50%; background:#dbe7ef; border:1px solid #101827; z-index:2; box-sizing:border-box;
}

/* v7.9.3 critical-hit calculator toggle */
.critical-hit-toggle{display:flex;align-items:center;gap:10px;margin-top:14px;padding:10px 12px;border:1px solid var(--border,#2b3a4f);border-radius:12px;background:rgba(20,184,166,.08);font-weight:700;cursor:pointer}
.critical-hit-toggle input{width:18px;height:18px;accent-color:#14b8a6;flex:0 0 auto}


/* v7.9.4: STAB override for Protean / Libero */
.stab-toggle{display:flex;align-items:center;gap:9px;margin:10px 0;padding:9px 12px;border:1px solid var(--field-teal-border,#2c7185);border-radius:10px;background:rgba(20,184,166,.08);font-weight:700;cursor:pointer}
.stab-toggle[hidden]{display:none!important}
.stab-toggle input{width:18px;height:18px;accent-color:#14b8a6;flex:0 0 auto}

#defTypeOverrideWrap[hidden]{display:none!important}

#atkTypeLossWrap[hidden]{display:none!important}

.target-area-control{display:flex;flex-direction:column;gap:6px;margin-top:12px;max-width:420px;font-weight:600}.target-area-control select{width:100%;font:inherit;font-weight:400;padding:10px;border:1px solid var(--field-teal-border,#2c7185);border-radius:12px;background:var(--field-teal-bg,#123b4b);color:var(--field-teal-text,#f0fbff);transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.target-area-control select:hover{background:var(--field-teal-bg-hover,#17495a)}.target-area-control select:focus{outline:none;border-color:var(--field-teal-focus,#55b7c8);box-shadow:0 0 0 3px rgba(85,183,200,.2)}.target-area-control select option{background:#12303e;color:#f0fbff}
/* v8.1 — centralized team management and recent teams */
.my-teams-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.my-teams-toolbar label{flex:1;min-width:220px;margin:0}
.my-teams-toolbar button{min-height:46px}
.team-source-label{display:flex;align-items:center;gap:8px;margin:0!important;white-space:nowrap}
.team-source-label select{min-width:125px;padding:9px 12px;border-radius:10px;border:1px solid #34405e;background:#080e1b;color:#fff}
#myTeamsAccountPanel[hidden],#myTeamsLocalPanel[hidden]{display:none!important}
.recent-teams-wrap{margin-top:16px}
@media(max-width:650px){.team-builder-save-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.team-source-label{width:100%;justify-content:space-between}.team-source-label select{flex:1}}


/* v8.2 – Keep the navigation above expanded Team-Builder slots */
header{z-index:20000}
.team-builder-slot[open]{z-index:1}
.team-builder-slot[open].team-builder-active-search{z-index:10}
.team-builder-suggestions,.team-builder-move-suggestions,.team-builder-item-suggestions{z-index:15}


/* Compact shared-team preview */
.pcc-share-overlay{position:fixed;inset:0;z-index:100000;background:rgba(4,12,17,.86);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto}
.pcc-share-dialog{position:relative;width:min(100%,1050px);max-height:calc(100vh - 24px);overflow:auto;background:var(--panel,#14232a);color:var(--text,#eef7f8);border:1px solid rgba(91,205,210,.35);border-radius:18px;padding:clamp(14px,2vw,24px);box-shadow:0 24px 80px rgba(0,0,0,.45)}
.pcc-share-close{position:absolute;right:12px;top:10px;width:36px;height:36px;border-radius:50%;border:1px solid var(--border,#34515a);background:transparent;color:inherit;font-size:26px;cursor:pointer}
.pcc-share-eyebrow{font-size:.7rem;letter-spacing:.16em;font-weight:800;color:var(--accent,#65d4d3);margin-bottom:4px}
.pcc-share-dialog h1{font-size:clamp(1.25rem,3vw,1.8rem);margin:0 42px 3px 0;line-height:1.2}
.pcc-share-subtitle{font-size:.85rem;opacity:.75;margin:4px 0 14px}
.pcc-share-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.pcc-share-mon{position:relative;min-width:0;border:1px solid var(--border,#34515a);background:rgba(255,255,255,.035);border-radius:12px;padding:10px 8px 9px;text-align:center;overflow:hidden}
.pcc-share-number{position:absolute;left:7px;top:6px;font-size:.67rem;opacity:.55;font-weight:800}
.pcc-share-sprite{display:block;width:clamp(52px,7vw,86px);height:clamp(52px,7vw,86px);object-fit:contain;margin:0 auto 4px}
.pcc-share-mon-name{font-weight:800;font-size:.83rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcc-share-form{font-size:.68rem;color:var(--accent,#65d4d3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.pcc-share-item{display:flex;align-items:center;justify-content:center;gap:4px;font-size:.72rem;line-height:1.15;margin-top:6px;min-height:24px}
.pcc-share-item span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pcc-share-meta{font-size:.65rem;opacity:.72;line-height:1.2;max-height:2.4em;overflow:hidden;margin-top:5px}
.pcc-share-moves{display:grid;gap:3px;margin-top:7px}
.pcc-share-moves span{font-size:.65rem;line-height:1.15;padding:3px 4px;border-radius:5px;background:rgba(93,205,210,.09);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcc-share-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;opacity:.55;gap:8px}
.pcc-share-empty-ball{font-size:2.5rem;line-height:1}
.pcc-share-empty>span{font-size:.72rem}
.pcc-share-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border,#34515a);padding-top:13px;margin-top:14px}
.pcc-share-footer>span{font-size:.75rem;opacity:.7}
.pcc-share-footer>div{display:flex;gap:8px;flex-shrink:0}
.pcc-share-footer button{min-height:38px}
@media(max-width:760px){.pcc-share-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pcc-share-dialog{max-height:calc(100vh - 16px)}.pcc-share-mon{padding:9px 6px}.pcc-share-footer{align-items:stretch;flex-direction:column}.pcc-share-footer>div{justify-content:flex-end}}
@media(max-width:380px){.pcc-share-grid{gap:6px}.pcc-share-mon-name{font-size:.75rem}.pcc-share-item{font-size:.65rem}.pcc-share-moves span{font-size:.6rem}}

/* v8.7: item icons in shared-team preview */
.pcc-share-item-icon{width:24px;height:24px;object-fit:contain;flex:0 0 24px;image-rendering:auto}
.pcc-share-item{min-width:0}

.pcc-share-item-icon{width:24px;height:24px;object-fit:contain;flex:0 0 24px;image-rendering:auto}
.pcc-share-sprite{object-fit:contain}
