/* Emerald v0.1.24.9.2 · FOCUS CHAIN · MOBILE REFINEMENT
   Visual grammar ported from totalfield.zip PokéField CALL / ultimate-field.
   Scoped to the Emerald panel so the emulator remains the page's primary client. */
#true-pokefield[hidden]{display:none!important}
#pokefield-live-panel.tpf-show #tc-stage,#pokefield-live-panel.tpf-show #pf-primary,#pokefield-live-panel.tpf-show #pf-party,#pokefield-live-panel.tpf-show #pf-selected,#pokefield-live-panel.tpf-show #pf-owned-drawer,#pokefield-live-panel.tpf-show #pf-desktop-idle,#pokefield-live-panel.tpf-show #pf-glance,#pokefield-live-panel.tpf-show .pf-tech,#pokefield-live-panel.tpf-show .pf-explainer{display:none!important}
#pokefield-live-panel.tl-show #tc-stage,#pokefield-live-panel.tl-show #pf-primary,#pokefield-live-panel.tl-show #pf-party,#pokefield-live-panel.tl-show #pf-selected,#pokefield-live-panel.tl-show #pf-owned-drawer,#pokefield-live-panel.tl-show #pf-desktop-idle,#pokefield-live-panel.tl-show #pf-glance,#pokefield-live-panel.tl-show .pf-tech,#pokefield-live-panel.tl-show .pf-explainer{display:none!important}
.tpf-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0 9px;position:relative;z-index:4}.tpf-nav button{min-width:0;min-height:42px;border:1px solid rgba(117,229,219,.26);border-radius:12px;background:#10282d;color:#eafff8;font:900 10px/1 system-ui;letter-spacing:.045em}.tpf-nav button[aria-pressed=true]{background:#24594e;border-color:#82efda;box-shadow:inset 0 0 0 1px rgba(180,255,238,.08)}
#true-pokefield{position:relative;margin:0;border:1px solid rgba(113,230,220,.18);border-radius:19px;overflow:hidden;background:radial-gradient(circle at 50% 42%,rgba(20,63,66,.70),rgba(6,26,31,.96) 44%,#031014 84%);color:#eafff8}
.tpf-app{position:relative;width:100%;height:min(78dvh,760px);min-height:590px;overflow:hidden;isolation:isolate}.tpf-app:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(circle,rgba(113,230,220,.14) 0 1px,transparent 1.4px);background-size:43px 43px;opacity:.05}
.tpf-svg{position:absolute;top:44px;right:0;bottom:auto;left:0;width:100%;height:calc(100% - 148px);min-height:390px;display:block;touch-action:none;user-select:none;-webkit-user-select:none;overflow:visible}.tpf-context{position:absolute;z-index:18;left:17px;top:16px;padding:8px 11px;border:1px solid rgba(113,230,220,.15);border-radius:999px;background:rgba(3,18,21,.38);font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.16em;color:#9de4de;pointer-events:none}.tpf-rank-badge{position:absolute;z-index:26;right:17px;top:16px;min-height:30px;padding:8px 12px;border:1px solid rgba(255,180,78,.34);border-radius:999px;background:linear-gradient(180deg,rgba(95,58,16,.42),rgba(48,31,11,.34));box-shadow:0 8px 26px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,211,132,.04);color:#ffd18c;font:950 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.14em;cursor:pointer;white-space:nowrap}.tpf-rank-badge::before{content:'↕';margin-right:6px;color:#ffb44f}.tpf-rank-badge.is-active{border-color:rgba(255,192,92,.68);background:linear-gradient(180deg,rgba(130,75,17,.58),rgba(66,39,10,.46));color:#fff0c9}.tpf-rank-badge:active{transform:translateY(1px)}.tpf-scatter{position:absolute;z-index:24;right:16px;top:48px;border:1px solid rgba(104,239,227,.27);border-radius:999px;background:rgba(5,31,33,.72);color:#a8fff5;padding:8px 11px;font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.13em}
.tpf-cell{cursor:pointer;transition:opacity .28s ease,filter .28s ease}#true-pokefield .ultimate-hex{fill:#0a1b1e;stroke:rgba(246,157,45,.31);stroke-width:1.05;vector-effect:non-scaling-stroke}#true-pokefield .ultimate-sprite{image-rendering:pixelated;pointer-events:none;filter:drop-shadow(0 1px 1px rgba(0,0,0,.52)) saturate(.94)}#true-pokefield .ultimate-name{display:none;font-size:5.8px;font-weight:900;fill:#d5e9e6;text-anchor:middle;paint-order:stroke;stroke:#031014;stroke-width:2px;pointer-events:none}#true-pokefield .ultimate-rank-value{display:none;font:900 5.5px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:#ffd28a;text-anchor:middle;paint-order:stroke;stroke:#031014;stroke-width:1.7px}.tpf-type-dot{pointer-events:none}.tpf-owned-mark{display:none;fill:#69f0d0;stroke:#04191a;stroke-width:1}.tpf-party-mark,.tpf-shiny-mark{display:none;font:1000 6px/1 system-ui;fill:#bafff3;text-anchor:middle;paint-order:stroke;stroke:#031014;stroke-width:1.4px}.tpf-shiny-mark{fill:#ffe587}.tpf-cell.is-owned .tpf-owned-mark{display:block}#true-pokefield .tpf-cell.is-owned .ultimate-hex{stroke:rgba(103,235,211,.50)}.tpf-cell.is-party .tpf-party-mark{display:block}#true-pokefield .tpf-cell.is-party .ultimate-hex{stroke:#8ffbe8;stroke-width:1.55}.tpf-cell.has-shiny .tpf-shiny-mark{display:block}
#true-pokefield .pokeball-outline{stroke:rgba(113,230,220,.58);stroke-width:1.6;fill:none;filter:drop-shadow(0 0 5px rgba(113,230,220,.16))}#true-pokefield .pokeball-band{stroke:rgba(113,230,220,.42);stroke-width:1.3}#true-pokefield .pokeball-button{stroke:rgba(151,255,246,.66);stroke-width:1.5;fill:rgba(3,24,27,.24);filter:drop-shadow(0 0 5px rgba(113,230,220,.14))}#true-pokefield .call-response-ring{fill:none;stroke:#68efe3;stroke-width:1.7;opacity:0;pointer-events:none;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;filter:drop-shadow(0 0 3px rgba(104,239,227,.55))}#true-pokefield .tpf-cell.call-ack .call-response-ring{animation:tpf-call-ack .62s ease-out var(--call-delay,0ms) both}@keyframes tpf-call-ack{0%{opacity:0;transform:scale(.36)}18%{opacity:.95}100%{opacity:0;transform:scale(1.85)}}.tpf-cell.call-muted{opacity:.18;filter:saturate(.30) brightness(.53)}.tpf-cell.call-current{opacity:1;filter:saturate(1.15) brightness(1.13)}#true-pokefield .tpf-cell.call-current .ultimate-hex{stroke:rgba(100,241,230,.92)!important;stroke-width:1.7!important;fill:rgba(7,41,42,.82)!important;filter:drop-shadow(0 0 3px rgba(100,241,230,.42))}#true-pokefield .tpf-cell.call-current .ultimate-sprite{filter:drop-shadow(0 0 5px rgba(100,241,230,.48)) drop-shadow(0 2px 2px rgba(0,0,0,.54))}
.tpf-call-dock{position:absolute;z-index:72;left:50%;bottom:14px;transform:translateX(-50%);width:calc(100% - 32px);max-width:700px;height:76px}.tpf-call-main{height:76px;display:grid;grid-template-columns:82px minmax(0,1fr) 78px;border:1px solid rgba(113,230,220,.24);border-radius:24px;overflow:hidden;background:linear-gradient(180deg,rgba(15,30,31,.97),rgba(6,20,22,.97));box-shadow:0 13px 42px rgba(0,0,0,.48);transition:.2s}.tpf-focus,.tpf-call-action,.tpf-call-target{border:0;touch-action:manipulation}.tpf-focus{display:grid;grid-template-columns:28px auto;grid-template-rows:1fr 1fr;align-content:center;align-items:end;padding:10px 8px;background:rgba(7,30,31,.92);color:#6e8b88;border-right:1px solid rgba(113,230,220,.12)}.tpf-focus>span{grid-row:1/3;font-size:28px;align-self:center}.tpf-focus b{font:950 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:left}.tpf-focus small{font:900 5.5px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.11em;text-align:left}.tpf-focus.armed{color:#a9fff6;background:rgba(8,60,58,.62);box-shadow:inset 0 0 22px rgba(104,239,227,.08)}.tpf-call-action{display:flex;align-items:center;justify-content:center;gap:12px;padding:0 10px;background:transparent;color:#6e7776}.tpf-call-action img{width:31px;height:31px;object-fit:contain;filter:grayscale(.32) saturate(.75) brightness(.92)}.tpf-call-action>span{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px}.tpf-call-action strong{font:950 24px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.18em}.tpf-call-action small{max-width:100%;font:850 6px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.11em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tpf-call-target{display:grid;place-items:center;background:linear-gradient(180deg,#f3921d,#c9660f);color:#201105;border-left:1px solid rgba(255,171,64,.20)}.tpf-plus{font-size:43px;font-weight:300}.tpf-target-loaded{font:950 16px/1 ui-monospace,SFMono-Regular,Consolas,monospace;max-width:64px;overflow:hidden;text-overflow:ellipsis}.tpf-call-main.is-armed{border-color:rgba(255,170,60,.92);background:linear-gradient(180deg,#f6a02a,#db7414);box-shadow:0 14px 44px rgba(0,0,0,.44),0 0 28px rgba(245,145,31,.22)}.tpf-call-main.is-armed .tpf-call-action{color:#201105}.tpf-call-main.is-armed .tpf-call-action small{color:#6e360b}.tpf-call-main.is-armed .tpf-call-action img{filter:saturate(.9) brightness(.68)}
.tpf-picker{position:absolute;z-index:68;left:16px;right:16px;bottom:99px;max-height:min(430px,50%);overflow:hidden;border:1px solid rgba(115,231,222,.20);border-radius:18px;background:linear-gradient(180deg,rgba(3,18,21,.93),rgba(2,13,16,.88));backdrop-filter:blur(16px);box-shadow:0 18px 70px rgba(0,0,0,.45)}.tpf-picker[hidden]{display:none}.tpf-picker>header{height:44px;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;border-bottom:1px solid rgba(115,231,222,.10)}.tpf-picker>header button{width:31px;height:31px;margin:auto;border:1px solid rgba(115,231,222,.14);border-radius:9px;background:#071e20;color:#9cebe5;font-size:20px}.tpf-picker>header strong{font:850 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.16em;color:#91c9c5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tpf-picker-grid{max-height:calc(min(430px,50dvh) - 44px);overflow:auto;padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.tpf-pick-tile{min-height:62px;border:1px solid rgba(115,231,222,.15);border-radius:12px;background:rgba(7,31,34,.72);color:#d9fffb;padding:7px;display:flex;align-items:center;justify-content:center;gap:6px;flex-direction:column}.tpf-pick-tile b{font:950 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.tpf-pick-tile span{font:850 7px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.05em;text-align:center}.tpf-value-tile img{width:39px;height:39px;object-fit:contain;image-rendering:pixelated}.tpf-number-form{grid-column:1/-1;display:grid;gap:10px}.tpf-number-form label{display:grid;gap:7px;font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}.tpf-number-form select,.tpf-number-form input,.tpf-number-form button{width:100%;min-height:48px;border:1px solid rgba(115,231,222,.24);border-radius:11px;background:#0b292d;color:#effffb;padding:10px;font:850 13px/1 system-ui}.tpf-number-form>div{display:grid;grid-template-columns:82px 1fr;gap:7px}.tpf-number-form input{font-size:20px}.tpf-number-form button{background:#f0921d;color:#211105;border-color:#ffc16c}.tpf-rank-tile{min-height:58px;border-color:rgba(255,177,78,.23);color:#ffc87e;background:rgba(70,44,14,.24)}
.tpf-detail{position:absolute;z-index:63;left:14px;right:14px;bottom:101px;padding:10px 12px;border:1px solid rgba(113,230,220,.22);border-radius:14px;background:rgba(3,18,21,.94);display:grid;grid-template-columns:46px minmax(0,1fr) 30px;gap:9px;align-items:center;box-shadow:0 12px 40px rgba(0,0,0,.45)}.tpf-detail[hidden]{display:none}.tpf-detail>button{grid-column:3;grid-row:1;width:28px;height:28px;border:1px solid rgba(113,230,220,.18);border-radius:50%;background:#0b2a2c;color:#d9fffb}.tpf-detail>img{grid-column:1;grid-row:1;width:46px;height:46px;image-rendering:pixelated}.tpf-detail>div{grid-column:2;grid-row:1}.tpf-detail strong{display:block;font-size:15px}.tpf-detail small{display:block;color:#8dbcb6;font-size:8px;margin:2px 0 4px}.tpf-detail p{margin:2px 0;color:#c8dfdb;font-size:8px}.tpf-toast{position:absolute;z-index:80;left:50%;top:14px;transform:translate(-50%,-8px);padding:7px 10px;border:1px solid rgba(113,230,220,.14);border-radius:999px;background:rgba(3,18,21,.86);color:#cffff9;font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em;opacity:0;pointer-events:none;transition:.18s}.tpf-toast.show{opacity:1;transform:translate(-50%,0)}
#true-pokefield .partition-label{font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:#8fa5ba;text-anchor:middle;paint-order:stroke;stroke:#031014;stroke-width:2px}#true-pokefield .voice-field[data-layout="rank"] .ultimate-rank-value{display:block}#true-pokefield .voice-field[data-layout="rank"] .ultimate-name{display:none}#true-pokefield .voice-field[data-layout="rank"] .ultimate-hex{stroke:rgba(105,238,228,.34);fill:rgba(5,18,24,.78)}#true-pokefield .rank-tier-band{vector-effect:non-scaling-stroke;stroke-width:1;fill:rgba(7,25,31,.54);pointer-events:all;cursor:pointer}#true-pokefield .rank-tier-band-ss{stroke:rgba(255,208,116,.48);fill:rgba(78,53,20,.20)}#true-pokefield .rank-tier-band-s{stroke:rgba(115,239,228,.40);fill:rgba(14,67,65,.18)}#true-pokefield .rank-tier-band-a{stroke:rgba(181,217,214,.30)}#true-pokefield .rank-tier-band-b{stroke:rgba(120,181,179,.24)}#true-pokefield .rank-tier-band-c{stroke:rgba(99,133,139,.20);fill:rgba(4,15,20,.50)}#true-pokefield .rank-tier-band.is-selected{stroke:#ffb44f;stroke-width:2.4;fill:rgba(145,83,18,.24);filter:drop-shadow(0 0 7px rgba(255,180,79,.24))}#true-pokefield .partition-label.rank-title{fill:#9fe8e2;font-size:7px;letter-spacing:.18em}#true-pokefield .partition-label.rank-tier-label{font-size:17px;font-weight:1000;dominant-baseline:middle}#true-pokefield .partition-label.rank-tier-label-ss{fill:#ffd074}#true-pokefield .partition-label.rank-tier-label-s{fill:#77efe5}#true-pokefield .partition-label.rank-tier-label-a{fill:#c0dedc}#true-pokefield .partition-label.rank-tier-label-b{fill:#85b9b6}#true-pokefield .partition-label.rank-tier-label-c{fill:#6e8d91}#true-pokefield .partition-label.rank-tier-count{fill:#bededa;font-size:5px}
@media(max-width:560px){
  .tpf-nav{gap:5px;margin:7px 0}.tpf-nav button{min-height:39px;font-size:9px;border-radius:10px}
  .tpf-app{height:min(76dvh,690px);min-height:560px}.tpf-svg{top:42px;right:0;bottom:auto;left:0;height:calc(100% - 138px);min-height:400px}.tpf-context{left:12px;top:12px;font-size:7px;padding:7px 9px}.tpf-scatter{right:12px;top:44px;font-size:6.5px}.tpf-rank-badge{right:12px;top:12px;font-size:7px;max-width:46%;overflow:hidden;text-overflow:ellipsis}
  .tpf-call-dock{width:calc(100% - 22px);height:70px;bottom:10px}.tpf-call-main{height:70px;grid-template-columns:70px minmax(0,1fr) 67px;border-radius:21px}.tpf-focus{grid-template-columns:24px auto;padding:8px 5px}.tpf-focus>span{font-size:25px}.tpf-focus b{font-size:9px}.tpf-focus small{font-size:5px}.tpf-call-action{gap:7px;padding:0 6px}.tpf-call-action img{width:26px;height:26px}.tpf-call-action strong{font-size:20px;letter-spacing:.14em}.tpf-call-action small{font-size:5px;max-width:118px}.tpf-plus{font-size:38px}.tpf-target-loaded{font-size:13px}
  .tpf-picker{left:9px;right:9px;bottom:88px;max-height:46%;border-radius:15px}.tpf-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px;gap:6px}.tpf-pick-tile{min-height:57px;padding:6px}.tpf-pick-tile b{font-size:10px}.tpf-pick-tile span{font-size:6.4px}.tpf-detail{left:9px;right:9px;bottom:88px}
}
@media(max-width:380px){.tpf-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tpf-call-main{grid-template-columns:62px minmax(0,1fr) 60px}.tpf-call-action strong{font-size:18px}.tpf-call-action small{display:none}.tpf-call-action img{width:23px;height:23px}}

@media(max-width:760px){
  #true-pokefield + *{}
  #pokefield-live-panel .tpf-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;}
  #pokefield-live-panel .tpf-nav button{min-width:0;padding:0 4px;font-size:8px;letter-spacing:.025em;white-space:normal;line-height:1.08;}
}

/* v0.1.24.8.5.1 — tier rows are selection surfaces for FOCUS. */
#true-pokefield .partition-label.rank-tier-label,#true-pokefield .partition-label.rank-tier-count{pointer-events:all;cursor:pointer}
#true-pokefield .ultimate-cell.rank-tier-selected .ultimate-hex{stroke:#ffb44f!important;stroke-width:2.1;filter:drop-shadow(0 0 5px rgba(255,180,79,.34))}
#true-pokefield .ultimate-cell.rank-tier-selected .ultimate-rank-value{fill:#ffd89b}

/* v0.1.24.9 · COVERAGE LENS */
.tpf-tools{position:absolute;z-index:27;right:17px;top:16px;display:flex;align-items:center;gap:7px;max-width:66%}
.tpf-tools .tpf-rank-badge,.tpf-tools .tpf-coverage-badge{position:static;min-height:30px;padding:8px 11px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:950 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em;cursor:pointer}
.tpf-tools .tpf-rank-badge{border:1px solid rgba(255,180,78,.34);background:linear-gradient(180deg,rgba(95,58,16,.42),rgba(48,31,11,.34));color:#ffd18c}
.tpf-tools .tpf-coverage-badge{border:1px solid rgba(104,239,227,.31);background:linear-gradient(180deg,rgba(13,68,67,.48),rgba(5,35,38,.50));color:#a8fff5}
.tpf-tools .tpf-coverage-badge::before{content:'◫';margin-right:6px;color:#6ce9df}
.tpf-tools .tpf-coverage-badge.is-active{border-color:rgba(105,246,230,.78);background:linear-gradient(180deg,rgba(16,96,88,.72),rgba(6,54,57,.68));color:#edfffc;box-shadow:0 0 20px rgba(93,238,223,.12)}
.tpf-tools .tpf-rank-badge.is-active{border-color:rgba(255,192,92,.68);background:linear-gradient(180deg,rgba(130,75,17,.58),rgba(66,39,10,.46));color:#fff0c9}
#true-pokefield.coverage-active .tpf-cell.coverage-neutral{opacity:.22;filter:saturate(.34) brightness(.62)}
#true-pokefield.coverage-active .tpf-cell.coverage-blocked{opacity:.17;filter:saturate(.24) brightness(.52)}
#true-pokefield .tpf-cell.coverage-weak .ultimate-hex{stroke:#ff856e!important;stroke-width:1.8!important;fill:rgba(83,26,23,.76)!important;filter:drop-shadow(0 0 5px rgba(255,109,86,.28))}
#true-pokefield .tpf-cell.coverage-severe .ultimate-hex{stroke:#ff4d3d!important;stroke-width:2.35!important;fill:rgba(118,24,18,.84)!important;filter:drop-shadow(0 0 8px rgba(255,70,54,.42))}
#true-pokefield .tpf-cell.coverage-resist .ultimate-hex{stroke:#7be3a4!important;stroke-width:1.7!important;fill:rgba(18,67,43,.72)!important;filter:drop-shadow(0 0 4px rgba(105,226,153,.22))}
#true-pokefield .tpf-cell.coverage-immune .ultimate-hex{stroke:#78e8ff!important;stroke-width:2.15!important;fill:rgba(12,64,80,.80)!important;filter:drop-shadow(0 0 7px rgba(87,221,255,.34))}
#true-pokefield .tpf-cell.coverage-se .ultimate-hex{stroke:#f5c362!important;stroke-width:2.05!important;fill:rgba(84,60,17,.80)!important;filter:drop-shadow(0 0 7px rgba(245,193,82,.31))}
#true-pokefield .tpf-cell.coverage-nplus .ultimate-hex{stroke:#7be3a4!important;stroke-width:1.55!important;fill:rgba(20,63,43,.66)!important}
.tpf-coverage-mode{border-color:rgba(104,239,227,.26);background:rgba(8,54,56,.43)}
.tpf-coverage-mode.is-selected,.tpf-coverage-type.is-selected{border-color:#6ce9df!important;background:rgba(16,91,86,.64)!important;color:#effffb!important}
.tpf-coverage-type span{color:#87bdb8}
.tpf-coverage-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:2px 0 4px}
.tpf-coverage-actions button{min-height:54px;border:1px solid rgba(112,234,222,.20);border-radius:12px;background:rgba(5,35,38,.72);color:#e8fffb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.tpf-coverage-actions b{font:950 18px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#8ff7ea}.tpf-coverage-actions span{font:900 6px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em;color:#9cc9c4;text-align:center}
@media(max-width:560px){.tpf-tools{right:10px;top:10px;gap:5px;max-width:63%}.tpf-tools .tpf-rank-badge,.tpf-tools .tpf-coverage-badge{font-size:6.1px;padding:7px 8px;max-width:145px}.tpf-context{max-width:35%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tpf-scatter{top:45px}.tpf-coverage-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tpf-coverage-basis{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.tpf-coverage-basis button{min-height:52px;border:1px solid rgba(112,234,222,.18);border-radius:12px;background:rgba(5,31,34,.72);color:#cfe9e5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px}
.tpf-coverage-basis button.is-selected{border-color:#6ce9df;background:rgba(16,91,86,.64);color:#effffb}.tpf-coverage-basis b{font:950 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.tpf-coverage-basis span{font:850 5.8px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;color:#89bdb8;text-align:center}

/* v0.1.24.9.1 · FOCUS CHAIN · MOBILE REFINEMENT
   Keep every refinement close to the Field: CALL -> PRESENT -> FOCUS -> repeat. */
.tpf-focus-chain{position:absolute;z-index:31;left:14px;right:14px;top:54px;height:30px;display:flex;align-items:center;gap:5px;overflow-x:auto;overflow-y:hidden;padding:2px 0;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;white-space:nowrap;mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 12px),transparent 100%)}
.tpf-focus-chain[hidden]{display:none}.tpf-focus-chain::-webkit-scrollbar{display:none}.tpf-focus-chain button{flex:0 0 auto;min-height:25px;padding:6px 9px;border:1px solid rgba(109,229,218,.16);border-radius:999px;background:rgba(4,25,28,.75);color:#91c9c4;font:900 6.5px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em}.tpf-focus-chain button.is-current{border-color:rgba(112,240,226,.57);background:rgba(14,77,72,.64);color:#e8fffb}.tpf-focus-chain>span{flex:0 0 auto;color:#517d79;font:900 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace}
.tpf-coverage-quick{position:absolute;z-index:32;left:14px;right:14px;top:87px;display:flex;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;padding:1px 0;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.tpf-coverage-quick[hidden]{display:none}.tpf-coverage-quick::-webkit-scrollbar{display:none}.tpf-coverage-quick button{flex:1 0 76px;min-height:31px;border:1px solid rgba(111,230,220,.16);border-radius:999px;background:rgba(4,29,31,.79);color:#b5ddd8;display:flex;align-items:center;justify-content:center;gap:5px;padding:6px 8px}.tpf-coverage-quick button:disabled{opacity:.28}.tpf-coverage-quick b{font:950 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#effffb}.tpf-coverage-quick span{font:900 5.8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em}.tpf-coverage-quick button:first-child:not(:disabled){border-color:rgba(255,92,72,.50);color:#ffb1a6}.tpf-coverage-quick button:nth-child(2):not(:disabled){border-color:rgba(255,133,110,.35)}.tpf-coverage-quick button:nth-last-child(1):not(:disabled){border-color:rgba(104,226,255,.40);color:#9aefff}
#true-pokefield.has-focus-chain .tpf-svg{top:82px;height:calc(100% - 186px)}
#true-pokefield.has-coverage-quick .tpf-svg{top:119px;height:calc(100% - 223px)}
#true-pokefield.has-focus-chain.has-coverage-quick .tpf-svg{top:119px;height:calc(100% - 223px)}

/* The first mobile CALL surface contains only the high-frequency verbs. */
.tpf-species-entry{grid-column:1/-1;min-height:48px!important;flex-direction:row!important;justify-content:flex-start!important;padding:8px 12px!important;border-color:rgba(111,239,227,.40)!important;background:linear-gradient(90deg,rgba(12,78,72,.70),rgba(6,42,44,.64))!important}.tpf-species-entry b{font-size:14px!important}.tpf-species-entry span{font-size:8px!important}.tpf-more-entry{border-style:dashed;color:#91bbb7}
.tpf-picker-grid{overscroll-behavior:contain;scroll-padding-bottom:72px;-webkit-overflow-scrolling:touch}
.tpf-species-search{grid-column:1/-1;position:sticky;top:0;z-index:3;display:grid;gap:5px;padding:2px 0 7px;background:linear-gradient(180deg,rgba(3,18,21,.99) 75%,rgba(3,18,21,0))}.tpf-species-search input{width:100%;min-height:44px;border:1px solid rgba(107,236,224,.28);border-radius:12px;background:#071d20;color:#eafff8;padding:0 13px;font-size:16px;outline:none}.tpf-species-search input:focus{border-color:#6ce9df;box-shadow:0 0 0 2px rgba(108,233,223,.10)}.tpf-species-search small{color:#78aaa5;font:800 6.2px/1.25 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.06em;padding:0 3px}
.tpf-species-results{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tpf-species-result{min-width:0;min-height:54px;border:1px solid rgba(111,229,219,.14);border-radius:11px;background:rgba(6,29,32,.78);color:#dffffa;padding:5px;display:grid;grid-template-columns:32px minmax(0,1fr);gap:5px;align-items:center;text-align:left}.tpf-species-result img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}.tpf-species-result>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:900 7px/1 system-ui}.tpf-species-result small{display:block;margin-top:3px;color:#719d99;font:800 5.5px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.tpf-species-result.is-selected{border-color:#76f2df;background:rgba(14,87,79,.68);box-shadow:inset 0 0 0 1px rgba(178,255,240,.10)}
.tpf-species-load{grid-column:1/-1;position:sticky;bottom:0;z-index:4;min-height:44px;border:1px solid rgba(255,177,78,.38);border-radius:12px;background:#ec871a;color:#241306;font:950 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.09em}.tpf-species-load:disabled{background:#173234;color:#637c79;border-color:rgba(111,229,219,.10)}

@media(max-width:560px){
  .tpf-picker{bottom:88px;max-height:min(350px,42%)}
  .tpf-picker-grid{max-height:calc(min(350px,42dvh) - 44px);padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .tpf-species-results{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpf-focus-chain{left:10px;right:10px;top:47px;height:28px}
  .tpf-coverage-quick{left:10px;right:10px;top:78px}
  #true-pokefield.has-focus-chain .tpf-svg{top:76px;height:calc(100% - 172px)}
  #true-pokefield.has-coverage-quick .tpf-svg,#true-pokefield.has-focus-chain.has-coverage-quick .tpf-svg{top:113px;height:calc(100% - 209px)}
  .tpf-coverage-quick button{flex-basis:70px;min-height:29px;padding:5px 7px}
}


/* v0.1.24.9.2 · TEAM COVERAGE overview */
.tpf-team-overview-entry{grid-column:1/-1;min-height:58px;border-color:rgba(132,255,234,.42);background:linear-gradient(180deg,rgba(18,88,82,.66),rgba(8,49,52,.70));color:#effffb}
.tpf-team-overview-entry b{font-size:12px}.tpf-team-overview-entry span{color:#9ce4dc}
.tpf-team-coverage{grid-column:1/-1;display:grid;gap:9px;min-width:0;color:#eafffb}
.tpf-team-coverage>header{display:grid;gap:5px;padding:10px 11px;border:1px solid rgba(112,234,222,.18);border-radius:13px;background:rgba(6,35,38,.76)}
.tpf-team-coverage>header>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.tpf-team-coverage>header b{font:950 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em}.tpf-team-coverage>header span,.tpf-team-coverage>header small{font:850 6.4px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.06em;color:#8fc9c3}.tpf-team-coverage>header small{white-space:normal}
.tpf-team-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tpf-team-summary article{min-height:56px;padding:8px;border:1px solid rgba(112,234,222,.14);border-radius:12px;background:rgba(5,29,32,.72);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center}.tpf-team-summary b{font:950 8px/1.25 ui-monospace,SFMono-Regular,Consolas,monospace;color:#f5fffd;overflow-wrap:anywhere}.tpf-team-summary span{font:900 5.4px/1.15 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;color:#88bbb6}
.tpf-team-coverage-rows{display:grid;gap:5px}.tpf-team-coverage-row{display:grid;grid-template-columns:minmax(72px,.85fr) minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:5px;padding:5px;border:1px solid rgba(112,234,222,.12);border-radius:11px;background:rgba(4,25,28,.66)}.tpf-team-coverage-row>strong{display:flex;align-items:center;padding:0 8px;font:950 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#e8fffb}.tpf-team-coverage-row button{min-height:42px;border:1px solid rgba(112,234,222,.13);border-radius:9px;background:rgba(8,42,45,.62);color:#ddf7f3;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;padding:6px 8px;text-align:left}.tpf-team-coverage-row button b{font:950 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.tpf-team-coverage-row button span{font:850 6px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#8fbbb7}.tpf-team-coverage-row.has-pressure{border-color:rgba(255,115,91,.30)}.tpf-team-coverage-row.has-pressure button[data-team-cov="defense"]{border-color:rgba(255,115,91,.34);background:rgba(82,30,27,.44)}.tpf-team-coverage-row.has-gap{border-color:rgba(245,195,98,.24)}.tpf-team-coverage-row.has-gap button[data-team-cov="offense"]{border-color:rgba(245,195,98,.33);background:rgba(75,54,18,.40)}
.tpf-team-note{margin:0;padding:2px 4px 8px;font:800 6.2px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.035em;color:#7caea9}
@media(max-width:560px){.tpf-team-summary{grid-template-columns:1fr}.tpf-team-summary article{min-height:44px}.tpf-team-coverage-row{grid-template-columns:70px 1fr 1fr}.tpf-team-coverage-row>strong{font-size:8px;padding:0 5px}.tpf-team-coverage-row button{grid-template-columns:1fr;text-align:center;gap:3px;padding:5px}.tpf-team-coverage-row button span{font-size:5.5px}.tpf-team-coverage>header>div{align-items:flex-start;flex-direction:column}}


/* v0.1.24.9.2.1.1 · MATRIX FOREGROUND HOTFIX */
html.tpf-matrix-open,html.tpf-matrix-open body{overflow:hidden!important;overscroll-behavior:none}
.tpf-coverage-matrix{position:fixed;z-index:1000000;isolation:isolate;inset:0;width:100%;height:100dvh;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:radial-gradient(circle at 50% -10%,rgba(31,108,100,.25),transparent 38%),linear-gradient(180deg,#051518 0%,#031012 100%);color:#eafffb;padding:0 0 max(28px,env(safe-area-inset-bottom));box-sizing:border-box;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.tpf-coverage-matrix[hidden]{display:none}.tpf-matrix-head{position:sticky;z-index:7;top:0;display:grid;grid-template-columns:88px minmax(0,1fr) 88px;align-items:center;min-height:72px;padding:max(8px,env(safe-area-inset-top)) 12px 8px;border-bottom:1px solid rgba(111,235,222,.15);background:rgba(3,17,19,.93);backdrop-filter:blur(18px)}.tpf-matrix-head>button{justify-self:start;min-width:74px;min-height:42px;border:1px solid rgba(111,235,222,.25);border-radius:13px;background:#092326;color:#c8fff8;font:900 22px/1 system-ui;padding:0 12px;display:flex;align-items:center;gap:7px}.tpf-matrix-head>button span{font:900 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em}.tpf-matrix-head>div{text-align:center;display:grid;gap:4px}.tpf-matrix-head b{font:950 17px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.11em}.tpf-matrix-head small{font:850 7px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;color:#8dc8c2}.tpf-matrix-party{max-width:980px;margin:12px auto 0;padding:0 12px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.tpf-matrix-party>span{min-width:0;position:relative;display:grid;justify-items:center;gap:2px;padding:7px 3px 5px;border:1px solid rgba(109,230,220,.13);border-radius:12px;background:rgba(7,35,38,.70)}.tpf-matrix-party img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated}.tpf-matrix-party b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:850 7px/1 system-ui}.tpf-matrix-party small{font:900 6px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#77aaa5}.tpf-matrix-summary{max-width:980px;margin:8px auto 0;padding:0 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tpf-matrix-summary article{min-width:0;padding:8px;border:1px solid rgba(111,235,222,.12);border-radius:12px;background:rgba(5,29,32,.64)}.tpf-matrix-summary small{display:block;margin-bottom:6px;font:900 6px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em;color:#89bbb6}.tpf-matrix-summary article>div{display:flex;flex-wrap:wrap;gap:4px}.tpf-matrix-summary article span{border:1px solid color-mix(in srgb,var(--type-color) 55%,transparent);border-left:3px solid var(--type-color);border-radius:999px;padding:4px 6px;background:rgba(2,16,18,.64);font:900 7px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.tpf-matrix-summary em{font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#70a49f}.tpf-matrix-legend{max-width:980px;margin:8px auto 0;padding:0 12px;display:flex;flex-wrap:wrap;gap:5px}.tpf-matrix-legend span{display:flex;align-items:center;gap:4px;border:1px solid rgba(111,235,222,.10);border-radius:999px;padding:4px 7px;background:rgba(4,25,28,.58);font:800 6.4px/1 system-ui;color:#a9ceca}.tpf-matrix-legend i{font:950 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace;font-style:normal}.lg-severe,.lg-weak{color:#ff8f7c}.lg-resist{color:#8ae2a6}.lg-immune{color:#83eaff}.lg-super{color:#ffd16f}.lg-neutral{color:#b8d7d3}.lg-poor{color:#f0b86a}.lg-none{color:#ef8077}.tpf-matrix-columns{position:sticky;z-index:5;top:72px;max-width:980px;margin:10px auto 0;display:grid;grid-template-columns:74px minmax(0,1fr) minmax(0,1fr);gap:6px;padding:7px 12px;border-top:1px solid rgba(111,235,222,.10);border-bottom:1px solid rgba(111,235,222,.10);background:rgba(3,16,18,.94);backdrop-filter:blur(12px)}.tpf-matrix-columns b{font:950 6.4px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.09em;color:#83b6b1;text-align:center}.tpf-matrix-columns b:first-child{text-align:left}.tpf-matrix-rows{max-width:980px;margin:0 auto;padding:0 12px;display:grid;gap:6px}.tpf-matrix-row{display:grid;grid-template-columns:74px minmax(0,1fr) minmax(0,1fr);gap:6px;min-height:86px;padding:6px 0;border-bottom:1px solid rgba(109,230,220,.07)}.tpf-matrix-row.has-pressure{background:linear-gradient(90deg,rgba(112,27,22,.13),transparent 48%)}.tpf-matrix-row.has-gap{box-shadow:inset -3px 0 0 rgba(242,181,71,.22)}.tpf-matrix-type{min-width:0;display:flex;align-items:center;gap:6px;padding:0 4px}.tpf-matrix-type>span{width:5px;height:44px;flex:0 0 auto;border-radius:999px;background:var(--type-color);box-shadow:0 0 12px color-mix(in srgb,var(--type-color) 45%,transparent)}.tpf-matrix-type b{min-width:0;overflow-wrap:anywhere;font:950 8px/1.05 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.03em}.tpf-matrix-side{min-width:0;border:1px solid rgba(110,231,221,.12);border-radius:13px;background:rgba(6,33,36,.60);color:#ecfffc;padding:5px 4px;display:grid;grid-template-rows:auto 1fr;gap:4px}.tpf-matrix-side:active{transform:scale(.985)}.tpf-matrix-side>small{font:900 5.6px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;color:#79aba6}.tpf-matrix-side>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;justify-items:center;gap:3px}.tpf-matrix-mon{position:relative;width:34px;height:34px;border:1.5px solid rgba(170,205,200,.24);border-radius:10px;background:rgba(1,13,15,.66);display:grid;place-items:center;box-sizing:border-box}.tpf-matrix-mon img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated}.tpf-matrix-mon i{position:absolute;right:-3px;top:-4px;min-width:14px;height:14px;padding:0 2px;border-radius:999px;display:grid;place-items:center;background:#041416;border:1px solid currentColor;font:950 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;font-style:normal}.tpf-matrix-mon small{position:absolute;left:-2px;bottom:-3px;min-width:12px;height:12px;border-radius:999px;background:#09272a;color:#9dd7d1;display:grid;place-items:center;font:900 6px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.tpf-matrix-mon.is-severe{border-color:#ff5747;color:#ff7566;background:rgba(92,26,21,.68);box-shadow:0 0 10px rgba(255,76,61,.18)}.tpf-matrix-mon.is-weak{border-color:#ff9a82;color:#ff9a82;background:rgba(79,33,27,.58)}.tpf-matrix-mon.is-resist{border-color:#71d89a;color:#71d89a;background:rgba(15,62,40,.55)}.tpf-matrix-mon.is-immune{border-color:#71dff4;color:#71dff4;background:rgba(11,58,72,.58)}.tpf-matrix-mon.is-super{border-color:#f4ca65;color:#f4ca65;background:rgba(78,58,18,.58);box-shadow:0 0 9px rgba(244,202,101,.15)}.tpf-matrix-mon.is-neutral{border-color:#85b8b3;color:#9ecbc6}.tpf-matrix-mon.is-resisted{border-color:#d9a35d;color:#e7b66f;background:rgba(70,47,19,.52)}.tpf-matrix-mon.is-none{border-color:#9b5d5a;color:#ef8178;background:rgba(52,27,26,.56);opacity:.78}.tpf-matrix-foot{max-width:980px;margin:10px auto 0;padding:10px 16px 18px;color:#78a9a4;font:800 7px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;text-align:center;letter-spacing:.04em}.tpf-matrix-empty{max-width:560px;margin:90px auto;padding:24px;text-align:center}.tpf-matrix-empty b{font:950 16px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.tpf-matrix-empty p{color:#8fb7b3}
@media(min-width:760px){.tpf-matrix-row{grid-template-columns:110px minmax(0,1fr) minmax(0,1fr);min-height:92px}.tpf-matrix-columns{grid-template-columns:110px minmax(0,1fr) minmax(0,1fr)}.tpf-matrix-side>div{grid-template-columns:repeat(6,minmax(0,1fr))}.tpf-matrix-mon{width:42px;height:42px}.tpf-matrix-mon img{width:37px;height:37px}.tpf-matrix-type b{font-size:10px}}
@media(max-width:420px){.tpf-matrix-head{grid-template-columns:74px minmax(0,1fr) 74px}.tpf-matrix-head>button{min-width:66px;padding:0 9px}.tpf-matrix-head b{font-size:14px}.tpf-matrix-party{grid-template-columns:repeat(3,minmax(0,1fr))}.tpf-matrix-summary{grid-template-columns:1fr}.tpf-matrix-columns{grid-template-columns:62px minmax(0,1fr) minmax(0,1fr);top:68px;padding-left:8px;padding-right:8px}.tpf-matrix-rows{padding:0 8px}.tpf-matrix-row{grid-template-columns:62px minmax(0,1fr) minmax(0,1fr);gap:4px}.tpf-matrix-side{padding:5px 2px}.tpf-matrix-mon{width:31px;height:31px}.tpf-matrix-mon img{width:27px;height:27px}.tpf-matrix-type b{font-size:7px}.tpf-matrix-type>span{height:38px}.tpf-matrix-legend{padding:0 8px}.tpf-matrix-summary,.tpf-matrix-party{padding-left:8px;padding-right:8px}}

/* v0.1.24.9.2.1.2 · iOS-safe persistent matrix exit */
.tpf-matrix-exit{position:fixed!important;z-index:1000003!important;top:calc(env(safe-area-inset-top,0px) + 8px);left:calc(env(safe-area-inset-left,0px) + 10px);min-width:78px;height:42px;padding:0 12px;border:1px solid rgba(125,245,232,.42);border-radius:14px;background:rgba(5,35,38,.96);box-shadow:0 8px 24px rgba(0,0,0,.38);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#dcfffb;display:flex;align-items:center;justify-content:center;gap:7px;font:950 22px/1 system-ui;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.tpf-matrix-exit span{font:950 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em}
.tpf-matrix-exit:active{transform:scale(.96)}
@media(max-width:420px){.tpf-matrix-exit{min-width:70px;height:40px;padding:0 10px}}
