/* Full-screen collector instrument. Artwork stays square and unobstructed. */
#teamDialog.team-export-dialog{inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;padding:28px clamp(18px,4vw,64px) 50px;border:0;border-radius:0;background:#0c0d10;color:#f4f4f4;overflow:auto;overscroll-behavior:contain;--font:'Space Grotesk',sans-serif}
#teamDialog.team-export-dialog>.eyebrow{color:#92949e;margin:0;font:14px 'Silkscreen',monospace}
#teamDialog.team-export-dialog>h2{font-size:32px;letter-spacing:-.04em;margin:6px 0 22px}
#teamDialog.team-export-dialog>.dialog-intro,#teamDialog.team-export-dialog>.reveal-help{display:none}
#teamDialog.team-export-dialog>.close{position:fixed;z-index:5;right:22px;top:20px;background:#15171d;color:#fff;border:1px solid #45464d}
#teamDialog .team-studio{max-width:1600px;margin:auto}
#teamDialog .team-address{max-width:760px}#teamDialog .team-address label{color:#ccc;font-size:14px}#teamDialog .team-address p{color:#92949e;margin:8px 0;font-size:12px}
#teamDialog .team-studio button,#teamDialog .team-studio input,#teamDialog .team-studio select{background:#181a21;color:#eee;border-color:#383b45;border-radius:3px}
#teamDialog .team-studio .te-primary{background:#ffe100;border-color:#ffe100;color:#080808}
#teamDialog .team-studio :focus-visible{outline:2px solid #ffe100;outline-offset:3px}
#teamDialog .te-status-row{border-color:#30323a;margin-bottom:14px;padding-bottom:12px}#teamDialog .te-status-row p{color:#b3b5bd}
.team-tabs{display:flex;gap:8px;border-bottom:1px solid #353741;margin:0 0 26px;padding-bottom:12px}#teamDialog .team-tabs button{padding:12px 25px;font:14px 'Silkscreen',monospace}#teamDialog .team-tabs button[aria-selected=true]{background:#ffe100;border-color:#ffe100;color:#111}
/* Wide Pokédex composition: specimen left, compact status and roster right. */
#teamDialog.team-export-dialog{background:#080808;padding:20px clamp(16px,3vw,48px) 24px}
#teamDialog.team-export-dialog>.eyebrow{display:none}
#teamDialog.team-export-dialog>h2{font-size:24px;margin:0 0 10px}
#teamDialog .team-studio{max-width:1800px}
.team-wallet{margin-bottom:4px}.team-wallet>summary{font-size:13px;color:#aaa;cursor:pointer;min-height:36px;line-height:36px;margin-left:18px;width:fit-content}.team-wallet .team-address{padding:0 0 10px}.team-resolved{font-size:13px;color:#aaa;overflow-wrap:anywhere}
#teamDialog .te-status-row{margin-bottom:8px;padding-bottom:8px;font-size:13px}
.team-tabs{margin:0 0 16px;padding-bottom:8px;background:#080808}
#teamDialog .team-tabs button{padding:10px 20px;font-size:12px}
.team-dex{background:#080808;color:#fff}
.dex-layout{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,2fr);gap:36px;align-items:start}
.dex-roster{min-width:0;background:#101010;border:1px solid #303030;padding:16px;display:flex;flex-direction:column}
.dex-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.dex-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#teamDialog .dex-filters button{border:0;background:transparent;border-radius:0;min-height:40px;color:#999;padding:5px 8px;font-size:13px}
#teamDialog .dex-filters button[aria-pressed=true]{box-shadow:0 2px 0 #fff;color:#fff}
#teamDialog .dex-filters .dex-counter{display:flex;align-items:center;gap:8px}
.dex-counter>.bitmon-x{--pixel:5px}.dex-counter.collected>.bitmon-x{color:#62dd73}.dex-counter.missing>.bitmon-x{color:#b8b8b8}
#dexCount,#dexMissing{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:#fff}
#dexMissing{color:#969696}.dex-counter>span:last-child{font-size:12px}
.dex-search input{width:180px;min-height:40px;font-size:14px}
#teamDialog .dex-search input{border-radius:0;background:#080808;color:#fff;border-color:#393939}
.dex-scan{color:#aaa;font-size:13px;line-height:1.5;margin:0 0 12px}.dex-scan[hidden]{display:none}
.dex-grid-scroll{overflow:auto;max-height:calc(100dvh - 300px);min-height:280px;scrollbar-width:thin;scrollbar-color:#666 #161616;overscroll-behavior:contain;padding:4px}
.dex-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 9px}
#teamDialog .dex-card{position:relative;min-width:0;padding:4px;background:#161616;border:1px solid #292929;border-radius:0;color:#fff;text-align:left;transition:border-color .12s}
#teamDialog .dex-card:hover{border-color:#aaa}
#teamDialog .dex-card.is-active{outline:2px solid #ffe100;outline-offset:1px;border-color:#ffe100}
.dex-art{aspect-ratio:1;overflow:hidden;background:#1a1a1a;display:grid;place-items:center}
.dex-art img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;display:block}
.dex-art.uncollected{background:#505050;filter:none;opacity:.8}
.dex-card-caption{display:grid;grid-template-columns:12px auto minmax(0,1fr);align-items:center;gap:4px;margin:8px 1px 4px;min-width:0}
.dex-card-caption>.bitmon-x{--pixel:4px;color:#666}
.is-collected .dex-card-caption>.bitmon-x{color:#62dd73}
.dex-number{font:14px 'Space Grotesk',sans-serif;font-variant-numeric:tabular-nums;color:#a9a9a9}
.dex-card-name{font-size:14px;line-height:1.2;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.is-missing .dex-card-caption>.bitmon-x{color:#b8b8b8}.is-missing .dex-card-caption>.dex-number,.is-missing .dex-card-caption>.dex-card-name{opacity:.58}.is-missing .dex-card-name{color:#aaa}.dex-question{font:48px 'Silkscreen',monospace;color:#777}
.dex-inspector{position:sticky;top:12px;padding:20px;background:#080808;max-height:calc(100dvh - 250px);overflow:auto;scrollbar-width:thin;border:0;text-align:center}
.dex-inspector-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}
.dex-kicker{font:12px 'Silkscreen',monospace;color:#888;letter-spacing:.04em}
.dex-inspector-close{display:none}
.dex-inspector>.dex-art{width:100%;max-width:384px;margin:0 auto 24px;outline:1px solid #333;outline-offset:8px}
#teamDialog .dex-name{font:clamp(24px,2.4vw,38px)/1.2 'Silkscreen',monospace;margin:12px 0;color:#fff;letter-spacing:-.045em;overflow-wrap:anywhere}
.dex-registration{display:flex;align-items:center;justify-content:center;gap:9px;color:#777;font:12px 'Silkscreen',monospace}.dex-registration>.bitmon-x{--pixel:4px;color:#62dd73}.dex-registration.registered{color:#aaa}
.dex-owned{color:#aaa;font-size:14px}.dex-note{color:#888;font-size:14px;line-height:1.6}
.dex-owned-list{display:grid;gap:12px;margin-top:20px;text-align:left}.dex-owned-item{display:grid;grid-template-columns:48px 1fr;gap:10px;padding-top:12px;border-top:1px solid #303030}.dex-owned-item img{width:48px;height:48px;image-rendering:pixelated}.dex-owned-item strong,.dex-owned-item span,.dex-owned-item a{display:block;font-size:14px}.dex-owned-item span{font-size:12px;color:#999}.dex-owned-item a{color:#aaa;margin-top:5px;text-decoration:underline}
#teamDialog .dex-add{grid-column:1/-1;background:#ffe100;color:#000;border:0;border-radius:0;min-height:40px}
.dex-entry-nav{display:flex;gap:8px;margin-top:20px}#teamDialog .dex-entry-nav button{flex:1;min-height:44px;background:#181818;border:1px solid #383838;border-radius:0;color:#fff;font-size:13px}.dex-entry-nav button:disabled{opacity:.25}
.dex-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:28px 0 14px;padding-top:20px;border-top:1px solid #333}
#teamDialog .dex-section-title h3{font:14px 'Silkscreen',monospace;margin:0}.dex-section-title span{color:#888;font-size:12px}.dex-bonus{grid-template-columns:1fr;max-width:110px}.dex-legends{grid-template-columns:repeat(5,minmax(0,1fr))}.dex-footnote{color:#777;font-size:12px;line-height:1.6;margin:24px 0 0}.dex-empty{grid-column:1/-1;color:#999;font-size:14px;padding:20px 0}
#teamDialog .te-help,#teamDialog .te-preview-caption,#teamDialog .te-section-head>span{color:#969bab}#teamDialog .te-downloads,#teamDialog .te-composer{border-color:#363b46}#teamDialog .te-pick.selected{border-color:#ffe100}#teamDialog .selected .te-pick-order{background:#ffe100;color:#111}
@media(min-width:1600px){.dex-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.dex-bonus{grid-template-columns:1fr}.dex-legends{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.dex-layout{grid-template-columns:240px minmax(0,1fr);gap:20px}.dex-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.dex-bonus{grid-template-columns:1fr}.dex-inspector{padding:12px}.dex-search input{width:150px}.dex-section-title{align-items:start;flex-direction:column;gap:6px}}
@media(max-width:760px){#teamDialog.team-export-dialog{padding:18px 12px 28px}.dex-layout{display:block}.dex-roster{padding:10px}.dex-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 7px}.dex-bonus{grid-template-columns:1fr}.dex-grid-scroll{max-height:none;min-height:0;overflow:visible}.dex-tools{gap:10px}.dex-filters{gap:3px}#teamDialog .dex-filters button{padding:6px}.dex-counter>span:last-child{font-size:11px}#dexCount,#dexMissing{font-size:22px}.dex-counter>.bitmon-x{--pixel:4px}.dex-search{width:100%}.dex-search input{width:100%}.dex-card-name{font-size:14px}.dex-inspector{display:none}.dex-detail-open .dex-inspector{display:block;position:fixed;inset:68px 12px 14px;max-height:none;z-index:4;background:#080808;border:3px solid #0737ff;padding:18px;box-shadow:0 0 0 100vmax #000d}.dex-inspector>.dex-art{max-width:256px}.dex-inspector-close{display:block;min-height:44px}.dex-entry-nav{position:sticky;bottom:-18px;background:#080808;padding-bottom:12px}.team-tabs{position:static}.dex-section-title{margin-top:22px}}
@media(prefers-reduced-motion:reduce){#teamDialog .dex-card{transition:none}}

/* Ten-entry desktop rows; give the roster priority over the specimen pane. */
@media(min-width:1200px){
 .dex-layout{grid-template-columns:clamp(220px,21vw,320px) minmax(0,1fr);gap:24px}
 #dexMonsters{grid-template-columns:repeat(10,minmax(0,1fr));gap:12px 7px}
 .dex-roster{padding:12px}
}

/* Missing monster acquisition action; shared desktop/mobile inspector. */
#teamDialog .dex-collect{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;max-width:260px;margin:16px auto;color:#080808;background:#ffe100;border:2px solid #ffe100;font-family:inherit;font-size:16px;font-weight:600;line-height:1.2;text-decoration:none;transition:background .15s,color .15s}
#teamDialog .dex-collect:hover{background:#fff;border-color:#fff}
#teamDialog .dex-collect:focus-visible{outline:2px solid #fff;outline-offset:4px}

/* List mode: compact roster, larger specimen, authentic pixel names with clear numerals. */
.dex-view-toggle{display:flex;gap:2px;padding:3px;border:1px solid #393939}
#teamDialog .dex-view-toggle button{min-height:36px;padding:6px 12px;border:0;border-radius:0;background:transparent;color:#aaa;font:500 14px 'Space Grotesk',sans-serif}
#teamDialog .dex-view-toggle button[aria-pressed=true]{background:#ffe100;color:#080808}
.dex-list-view #dexMonsters,.dex-list-view .dex-legends{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}
.dex-list-view .dex-bonus{max-width:none;grid-template-columns:1fr}
#teamDialog .dex-list-view .dex-card{min-height:44px;padding:7px 9px;border-color:transparent;border-bottom-color:#292929;background:transparent}
#teamDialog .dex-list-view .dex-card:hover{background:#202020;border-color:#666}
#teamDialog .dex-list-view .dex-card.is-active{background:#24220d;border-color:#ffe100;outline-offset:-1px}
.dex-list-view .dex-card>.dex-art{display:none}
.dex-list-view .dex-card-caption{grid-template-columns:15px 25px minmax(0,1fr);gap:9px;margin:0}
.dex-list-view .dex-card-caption>.bitmon-x{--pixel:5px}
.dex-list-view .dex-card-name{font:500 22px/1.15 'Pixelify Sans',sans-serif;white-space:normal;overflow-wrap:anywhere}
.dex-list-view .dex-number{font:500 16px/1.2 'Space Grotesk',sans-serif;font-variant-numeric:tabular-nums}
@media(min-width:761px){.dex-list-view .dex-layout{grid-template-columns:minmax(300px,.95fr) minmax(0,1.25fr);gap:28px}.dex-list-view .dex-inspector>.dex-art{max-width:512px}.dex-list-view .dex-inspector{padding:20px}.dex-list-view .dex-search{flex:1}.dex-list-view .dex-search input{width:100%}}
@media(min-width:1400px){.dex-list-view #dexMonsters,.dex-list-view .dex-legends{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1000px){.dex-list-view .dex-layout{grid-template-columns:300px minmax(0,1fr)}.dex-list-view #dexMonsters,.dex-list-view .dex-legends{grid-template-columns:1fr}}
@media(max-width:760px){.dex-view-toggle{margin-left:auto}.dex-list-view .dex-card-name{font-size:20px}.dex-list-view .dex-card-caption{gap:6px;grid-template-columns:12px 22px minmax(0,1fr)}.dex-list-view .dex-card-caption>.bitmon-x{--pixel:4px}.dex-list-view .dex-number{font-size:15px}.dex-list-view .dex-legends{grid-template-columns:1fr}}

/* Color-set achievement and the independent game party. */
.dex-color-set{position:relative;font-size:14px}
.dex-color-set>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:5px 8px;cursor:pointer;list-style:none;color:#aaa}
.dex-color-set>summary::-webkit-details-marker{display:none}
.dex-color-count{font:600 22px 'Space Grotesk',sans-serif;font-variant-numeric:tabular-nums;color:#fff;white-space:nowrap}
.dex-color-set.achieved>summary,.dex-color-check{color:#62dd73}
.dex-color-details{position:absolute;top:100%;left:0;z-index:3;width:300px;max-width:calc(100vw - 64px);padding:18px;background:#101010;border:1px solid #555;box-shadow:0 12px 35px #000b}
.dex-color-title{font:20px 'Pixelify Sans',sans-serif}.dex-color-copy{font-size:14px;line-height:1.5;color:#aaa}
.dex-color-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.dex-color-swatch{display:grid;justify-items:center;gap:6px;font-size:13px;color:#888}
.dex-color-swatch i{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--swatch);color:#050505;font:700 20px sans-serif;font-style:normal}
.dex-color-swatch.owned{color:#eee}.dex-color-swatch.owned i{background:var(--swatch)}
#teamDialog .dex-party-add{grid-column:1/-1;min-height:44px;border-radius:0;border:1px solid #ffe100;color:#ffe100;background:transparent;font-size:14px}
#teamDialog .dex-party-add:disabled{border-color:#444;color:#888}
.team-tabs{flex-wrap:wrap}
.game-party{max-width:1500px;margin:0 auto}.game-party[hidden]{display:none}
.party-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
#teamDialog .party-heading h3{font:32px 'Pixelify Sans',sans-serif;margin:0 0 8px}.party-heading p{font-size:16px;line-height:1.5;color:#aaa;margin:0;max-width:650px}
#teamDialog #partyPlay{min-height:48px;padding:12px 24px;white-space:nowrap;font-size:16px}.party-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.party-slot{min-width:0;border:1px solid #393939;padding:12px;display:flex;flex-direction:column;gap:8px;background:#101010}
.party-slot:first-child{border-color:#ffe100}.party-role{font:12px 'Silkscreen',monospace;color:#999}.party-slot:first-child .party-role{color:#ffe100}
.party-art{aspect-ratio:1;display:grid;place-items:center;background:#181818;overflow:hidden}.party-art img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.party-slot strong,.party-pick strong{font:22px 'Pixelify Sans',sans-serif;overflow-wrap:anywhere}.party-token{font-size:14px;line-height:1.4;color:#aaa;overflow-wrap:anywhere}
.party-empty{aspect-ratio:1;display:grid;place-items:center;font:32px 'Silkscreen',monospace;color:#444}.party-slot-actions{display:grid;gap:6px;margin-top:auto}
#teamDialog .party-slot-actions button{min-height:40px;border-radius:0;font-size:14px}.party-status{font-size:14px;color:#bbb;min-height:24px;margin:18px 0 28px}
.party-library-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #333;padding-top:20px;margin-bottom:18px}
#teamDialog .party-library-head h4{font:22px 'Pixelify Sans',sans-serif;margin:0}.party-library-head input{min-height:44px;width:280px;max-width:100%;font-size:16px;padding:8px 12px}
.party-library{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}
#teamDialog .party-pick{display:flex;flex-direction:column;gap:7px;min-width:0;padding:8px;text-align:left;border-radius:0;background:#121212;color:#fff;border:1px solid #333}
.party-pick .party-art{width:100%}#teamDialog .party-pick.selected{border-color:#ffe100}.party-pick-action{font-size:12px;color:#999;margin-top:auto}.selected .party-pick-action{color:#ffe100}
#teamDialog .party-pick:disabled{opacity:.55}.party-empty-message{grid-column:1/-1;color:#aaa;font-size:16px}
.party-pages{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:22px;font-size:14px}#teamDialog .party-pages button{min-height:44px;padding:8px 18px}
@media(max-width:1100px){.party-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.party-library{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){.party-heading{align-items:stretch;flex-direction:column;gap:16px}.party-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.party-library{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.party-library-head{align-items:stretch;flex-direction:column}.party-library-head input{width:100%}.party-library-head label{width:100%}.party-pick strong{font-size:20px}.party-pick-action{font-size:11px}.party-token{font-size:13px}.dex-color-details{left:auto;right:0}#teamDialog .team-tabs button{padding:10px 12px;font-size:12px}}

/* Eight-color set; Nior reveals the extra completionist badge only when earned. */
.dex-color-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}
.dex-completionist{display:inline-flex;align-items:center;min-height:36px;padding:5px 10px;border:1px solid #ccc;background:#202020;color:#fff;font:16px 'Pixelify Sans',sans-serif}
