/* The Bag (mockup 10-mochila) and the Pokedex (mockup 12-pokedex), laid out exactly like the mockups (Work-ID 20261018-reskin-c-redo-*; zenux: "do exactly like the images"; the first version of batch C only recoloured
   the old layouts and was refused). Desktop only. Each window hides its own header on a desktop and draws the mockup's inside its sheet (the Bag's own header; the Pokedex's `sgx-*` nodes from sheet_head.js,
   shared with the inspection, the Wiki and the map in gothic-info.css). Same content, same handlers: pokedex.js lays its cards out at DESK_CARD_HEIGHT / DESK_GAP and the CSS draws them at exactly those sizes.
   AGENTS.md "Absolute UI hover geometry": states repaint (colour, inset shadow); box, padding, border and font stay. */
/* ---- the Bag (mockup 10-mochila), redone exactly: the window's own header is hidden, the Bag draws its own (emblem, MOCHILA, the Poke Mart line, the money and slots tiles, the close button and the notice), then the pockets
   column (BOLSOS) and the item list (search, order, count, rows), the detail of the selected item with USAR... / DESCARTAR... and the key hints. Same DOM, same handlers: this file only lays out and paints. ---- */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal#modal[data-view="bag"]{--bgc-ic-coin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23000'/%3E%3C/svg%3E");
  --bgc-ic-bag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 8h18v12H3zM3 13h18M10 13v2h4v-2'/%3E%3C/svg%3E");
  --bgc-ic-slider:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 7h18M3 12h18M3 17h18'/%3E%3Ccircle cx='8' cy='7' r='2.2' fill='%23fff'/%3E%3Ccircle cx='16' cy='12' r='2.2' fill='%23fff'/%3E%3Ccircle cx='10' cy='17' r='2.2' fill='%23fff'/%3E%3C/svg%3E");
  --bgc-ic-hand:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12V5a1.5 1.5 0 0 1 3 0v6M11 10V4a1.5 1.5 0 0 1 3 0v7M14 10V5.5a1.5 1.5 0 0 1 3 0V14c0 4-2 7-6 7s-5-2-7-5l-1-2 1.5-1L8 15'/%3E%3C/svg%3E");
  --bgc-ic-trash:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 14h10l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E");
  --bgc-ic-warn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000'/%3E%3C/svg%3E");
  width:min(1660px,98vw)!important;height:min(940px,calc(100dvh - 14px))!important;max-height:none!important;--shutdown-window-width:min(1660px,98vw);--shutdown-window-height:min(940px,calc(100dvh - 14px))}
 body:not(.mobile-web) #modal#modal[data-view="bag"]>.modal-header{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] #modal-body{height:100%!important;padding:0!important;overflow:hidden!important;background:radial-gradient(ellipse at 50% 100%,#1a2337 0,#111724 52%,#040104 100%)!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-shell{zoom:var(--sgz,.85);max-width:none!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;gap:12px!important;height:calc(100% / var(--sgz,.85))!important;padding:0 20px 12px!important;box-sizing:border-box;color:var(--sg-text)}
 /* the header: emblem, title, the Poke Mart line, the two tiles, the close button, the notice */
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-header{position:relative;grid-row:1;grid-column:1;display:flex!important;align-items:flex-start;justify-content:space-between;gap:16px;height:124px;margin:0 -20px!important;padding:12px 28px 0 126px!important;border:0!important;border-image:none!important;border-radius:0!important;
  background:var(--sg-emblem) 26px 8px/84px 94px no-repeat,linear-gradient(90deg,#111724 calc(100% - 700px),#11172400 calc(100% - 360px)),var(--sg-head-art) right center/700px 100% no-repeat,linear-gradient(180deg,#182134,#111724)!important;box-shadow:inset 0 -2px 0 #af373a!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-title{display:flex!important;align-items:center;gap:14px;min-width:0}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-title-icon{display:block!important;width:62px;height:62px;background:#f6d98e;-webkit-mask:var(--bgc-ic-bag) center/contain no-repeat;mask:var(--bgc-ic-bag) center/contain no-repeat;font-size:0}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-title-icon i{display:none}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-title h3{margin:0;color:#f6e3b4;font:700 58px/62px Georgia,"Times New Roman",serif;letter-spacing:.03em;text-transform:uppercase;text-shadow:0 3px 0 #1e2840,0 0 16px #73444855}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-stats{display:flex!important;align-items:flex-start;gap:14px;margin-left:auto}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-stat{position:relative;display:grid!important;align-content:center;gap:2px;min-width:340px;height:70px;padding:0 20px 0 78px!important;border:0!important;border-radius:4px!important;background:var(--sg-gems-quiet),linear-gradient(180deg,#161d2e,#09040a)!important;box-shadow:var(--sg-frame-card)!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-stat::before{content:"";position:absolute;left:18px;top:50%;width:46px;height:46px;margin-top:-23px;border-radius:50%;background:radial-gradient(circle at 38% 34%,#fff2b0 0,#f1b92e 45%,#2e3a56 100%);box-shadow:0 0 0 2px #0d111c,0 0 0 4px #c8901f}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-stat:not(.money)::before{border-radius:6px;background:#c44c45;-webkit-mask:var(--bgc-ic-bag) center/contain no-repeat;mask:var(--bgc-ic-bag) center/contain no-repeat;box-shadow:none}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-stat>span{color:#e8c47a!important;font:700 15px/18px Arial,sans-serif!important;letter-spacing:.06em!important;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-stat>strong{color:#fff!important;font:700 25px/30px Arial,sans-serif!important;letter-spacing:0;white-space:nowrap;overflow:visible!important;text-overflow:clip!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-stat.money>strong{color:#ffd982!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-header .bag-close::before{width:30px!important;height:30px!important;background-size:contain!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-header .bag-close{font-size:0!important;display:grid!important;place-items:center;width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;padding:0!important;border:0!important;border-radius:4px!important;background:linear-gradient(180deg,#1a2338,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #6c3f43,0 0 14px #673c4055!important;color:#ce7363!important;font-weight:900!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-header .bag-close:is(:hover,:focus-visible,.pad-focus){background:linear-gradient(180deg,#232e4a,#141a2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px var(--sg-gold),0 0 16px #f3c96b55!important;color:#fff!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-status{position:relative;grid-row:1;grid-column:1;align-self:end;z-index:2;display:flex!important;align-items:center;justify-content:space-between;gap:18px;height:30px;margin:0 -20px!important;padding:0 28px 6px 232px!important;border:0!important;background:none!important;box-shadow:none!important;color:#f0dcc0!important;font:400 15px/20px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-location{margin-right:auto;position:relative;top:-6px}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-catalog-warning{position:relative;padding-left:30px;color:#ffcf6a!important;font:400 14px/20px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-catalog-warning::before{content:"!";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:#f0b020;color:#141b2b;font:900 14px/20px Arial,sans-serif;text-align:center}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-repel{color:#ffcf6a!important}
 /* the middle: the pockets column and the item list */
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-main{grid-row:2;grid-column:1;display:grid!important;grid-template-columns:minmax(250px,22%) minmax(0,1fr)!important;gap:16px!important;min-height:0}
 body:not(.mobile-web) #modal#modal[data-view="bag"] :is(.bag-box,.bag-detail){border:0!important;border-image:none!important;border-radius:5px!important;background:var(--sg-gems-quiet),var(--sg-surface)!important;box-shadow:var(--sg-frame-card)!important;min-width:0}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pockets-box{display:flex!important;flex-direction:column;gap:8px!important;padding:12px 14px 14px!important;overflow:hidden}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-shell::before{content:"";grid-row:3;grid-column:1;justify-self:start;align-self:center;width:104px;height:104px;margin-left:6px;border-radius:50%;background:radial-gradient(circle,#161d2f 0 24%,#202a43 25% 29%,#161d2f 30% 38%,#29344d 39% 41%,#131a29 42% 100%);box-shadow:0 0 0 2px #1f273a,0 0 0 8px #131a29,0 0 0 9px #202a43,0 0 18px #673c4033;opacity:.8}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-box-title{display:flex;align-items:center;gap:14px;margin:2px 0 6px!important;color:#f6e3b4!important;font:700 28px/32px Georgia,"Times New Roman",serif!important;letter-spacing:.04em!important;text-align:left!important;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pockets-box .bag-box-title::before{content:"";flex:0 0 44px;width:44px;height:44px;background:#f6d98e;-webkit-mask:var(--bgc-ic-bag) center/contain no-repeat;mask:var(--bgc-ic-bag) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pockets{display:flex!important;flex-direction:column;flex:0 0 auto!important;gap:8px!important;min-height:0;max-height:none!important;overflow:visible!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pocket{display:grid!important;grid-template-columns:50px minmax(0,1fr) auto!important;align-items:center;gap:12px!important;min-height:56px!important;height:56px;padding:0 18px 0 8px!important;border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#161d2e,#09040a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1f273a!important;color:#fff!important;text-align:left}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pocket:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#1b2439,#121826)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-edge-hi)!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pocket.selected{background:linear-gradient(180deg,#1c253b,#121927)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #f3c96b,0 0 14px #f3c96b66!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pocket-symbol{display:grid;place-items:center;width:44px;height:44px;color:#f3c96b;font:700 13px/1 Arial,sans-serif}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pocket-symbol img{width:40px;height:40px;object-fit:contain;image-rendering:pixelated}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pocket-label{color:#fff!important;font:700 19px/22px Arial,sans-serif!important;letter-spacing:.03em!important;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-pocket-count{color:#fff!important;font:400 19px/22px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-backpack{margin-top:auto;display:grid;place-items:center;flex:1 1 0;min-height:0;overflow:hidden;color:#1f273a;font-size:0;opacity:.55}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-backpack::before{content:"";width:92px;height:92px;border-radius:50%;background:radial-gradient(circle,#161d2f 0 26%,#202a43 27% 30%,#161d2f 31% 100%);box-shadow:0 0 0 2px #1f273a,0 0 0 8px #131a29,0 0 0 9px #202a43}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-backpack i{display:none}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-items-box{display:flex!important;flex-direction:column;gap:10px!important;padding:12px 14px 6px!important;overflow:hidden}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:center;padding:0!important;border:0!important;border-image:none!important;background:none!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-search-wrap{position:relative;display:flex!important;align-items:center;height:54px;padding:0 14px 0 62px!important;border:0!important;border-image:none!important;border-radius:4px!important;background-color:#08040a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #29344d!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-search-symbol{position:absolute;left:20px;top:50%;width:30px;height:30px;margin-top:-15px;color:#fff;font-size:26px}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-search-wrap input{flex:1;height:100%;background:transparent!important;border:0!important;border-image:none!important;box-shadow:none!important;color:#fff!important;font:400 19px/24px Arial,sans-serif!important;padding:0!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-search-clear{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-toolbar select{width:100%!important;max-width:none!important;min-width:0;height:54px;padding:0 16px 0 58px!important;border:0!important;border-image:none!important;border-radius:4px!important;background:#08040a var(--bgc-ic-slider) 18px center/26px 26px no-repeat!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #29344d!important;color:#fff!important;font:400 18px/24px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-result-count{margin:0!important;padding:2px 6px;color:#9cc4e8!important;font:400 19px/24px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:8px;padding:0 6px 0 0;overflow:auto}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list-item{max-height:none!important;position:relative;display:grid!important;grid-template-columns:62px minmax(0,1fr) auto!important;align-items:center;gap:16px!important;flex:0 0 auto;height:66px!important;min-height:66px;padding:0 16px 0 8px!important;border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#151c2c,#07040a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1d273e!important;color:#fff!important;text-align:left}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list-item:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#182033,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-edge-hi)!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list-item.selected{background:linear-gradient(180deg,#1b243a,#131a29)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #c85c51,0 0 14px #c44c4577!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-icon{display:grid!important;place-items:center;width:52px!important;height:52px!important;min-width:52px;min-height:52px;border:0!important;border-image:none!important;border-radius:6px!important;background-color:#111724!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #d9a233!important;image-rendering:pixelated}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-icon>img{width:44px;height:44px;image-rendering:pixelated}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list-copy{display:grid;gap:2px;min-width:0}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list-copy strong{color:#fff!important;font:700 19px/22px Arial,sans-serif!important;letter-spacing:.02em!important;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list-copy small{color:#7fb6d8!important;font:400 17px/20px Arial,sans-serif!important;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-quantity{display:flex;align-items:center;justify-content:center;gap:8px;min-width:96px;height:42px;padding:0 20px!important;border:0!important;border-image:none!important;background:#111724!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #b8862a!important;clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,14px 100%,0 50%);color:#fff!important;font:700 20px/24px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list-item.selected .bag-quantity::after{content:"\203A";margin-left:8px}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-registered{position:absolute;right:130px;top:50%;margin-top:-12px;color:#ffd982}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-list-empty{padding:28px 18px;color:var(--sg-muted)}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-gm-pager{display:flex;justify-content:center;gap:12px;color:#fff}
 /* the detail of the selected item */
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail{grid-row:3;grid-column:1;display:grid!important;grid-template-columns:150px minmax(0,1fr) 420px;align-items:center;gap:22px!important;height:192px;padding:14px 22px!important;margin-left:120px}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail>.bag-icon.large{width:112px!important;height:112px!important;min-width:112px!important;min-height:112px!important;max-width:none!important;max-height:none!important;align-self:center!important;overflow:visible!important;justify-self:center;border-radius:6px!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #d9a233,0 0 14px #d9a23355!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail>.bag-icon.large>img{width:96px;height:96px;object-fit:contain;image-rendering:pixelated}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail :is(.bag-detail-copy,.bag-detail-side,.bag-detail-actions){overflow:visible!important;max-height:none!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-copy{display:grid;gap:6px;align-content:center;min-width:0}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-name{display:flex;align-items:center;gap:14px}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-name h3{margin:0;color:#f6d98e!important;font:700 30px/34px Georgia,"Times New Roman",serif!important;letter-spacing:.03em!important;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-stock{display:grid;place-items:center;height:30px;padding:0 14px!important;border:0!important;border-radius:15px!important;background:#111724!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #252e44!important;color:#fff!important;font:700 17px/20px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-item-description{margin:0;color:#fff!important;font:400 19px/24px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-item-tags span{display:inline-grid;place-items:center;height:30px;padding:0 16px!important;border:0!important;border-radius:4px!important;background:linear-gradient(180deg,#1e2941,#151d2e)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #6c3f43!important;color:#d17e6f!important;font:700 17px/20px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-side{display:grid;gap:8px;align-content:center}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-actions{display:grid!important;gap:8px!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-actions button{position:relative;display:flex!important;align-items:center;justify-content:center;height:44px!important;min-height:44px!important;padding:0 14px 0 48px!important;border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#171f32,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #d9a233!important;color:#fff!important;font:700 18px/22px Arial,sans-serif!important;letter-spacing:.03em!important;text-transform:uppercase!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-actions button::before{content:"";position:absolute;left:18px;top:50%;width:26px;height:26px;margin-top:-13px;background:currentColor;-webkit-mask:var(--bgc-ic-hand) center/contain no-repeat;mask:var(--bgc-ic-hand) center/contain no-repeat}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-actions button:first-child{background:linear-gradient(180deg,#b73a3a,#1e2639)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px #c85c51,0 0 12px #c44c4566!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-actions button:last-child::before{-webkit-mask-image:var(--bgc-ic-trash);mask-image:var(--bgc-ic-trash)}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-actions button:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#212c46,#141b2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 3px var(--sg-gold-hi),0 0 14px #f3c96b66!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-detail-actions button:disabled{opacity:.5}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-value{display:grid;grid-template-columns:auto 1fr;gap:0 12px;align-items:center}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-value span{grid-column:1 / -1;color:#9cc4e8!important;font:400 15px/18px Arial,sans-serif!important;letter-spacing:.02em;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-value strong{position:relative;padding-left:32px;color:#ffd982!important;font:700 22px/26px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-value strong::before{content:"";position:absolute;left:0;top:50%;width:22px;height:22px;margin-top:-11px;border-radius:50%;background:radial-gradient(circle at 38% 34%,#fff2b0 0,#f1b92e 45%,#2e3a56 100%);box-shadow:0 0 0 1px #0d111c}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-value small{color:var(--sg-muted);font:400 14px/18px Arial,sans-serif}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-no-sale,body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-context-note,body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-usage-note{color:var(--sg-muted)!important}
 body:not(.mobile-web) #modal#modal[data-view="bag"] .bag-key-hints{grid-row:4;grid-column:1;display:flex;justify-content:flex-end;align-items:center;gap:24px;height:34px;margin:0!important;padding:0 40px 0 0;color:#e0ddd7!important;font:400 17px/22px Arial,sans-serif!important}
}

/* ---- the Pokedex (mockup 12-pokedex), redone exactly: the window's own header is hidden, the sheet draws its own (emblem, the dex icon, POKE SHADOWGARDEN, the title, the close button); the intro panel and the two
   counters (seen / caught, "n / total"); search, the record filter and the level stepper; the count line; the tall cards (number, type dots, a big sprite on its sigil, name, the record pill, the type pills, the GM
   buttons). pokedex.js lays the cards out at DESK_CARD_HEIGHT / DESK_GAP (26rem / .8rem) on a desktop: nothing here may change those sizes. ---- */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal#modal[data-view="dex"]{width:min(1660px,98vw)!important;height:min(940px,calc(100dvh - 14px))!important;max-height:none!important;--shutdown-window-width:min(1660px,98vw);--shutdown-window-height:min(940px,calc(100dvh - 14px))}
 body:not(.mobile-web) #modal#modal[data-view="dex"]>.modal-header{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] #modal-body{height:100%!important;padding:0!important;overflow:hidden!important;background:radial-gradient(ellipse at 50% 100%,#1a2337 0,#111724 52%,#040104 100%)!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-screen{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) 360px 360px!important;grid-template-rows:auto auto auto auto minmax(0,1fr) 58px!important;gap:12px 14px!important;zoom:var(--sgz,.85);height:calc(100% / var(--sgz,.85))!important;padding:0 22px 0!important;box-sizing:border-box;color:var(--sg-text)}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-screen>.sgx-head{grid-column:1 / -1;grid-row:1}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-screen>.modal-description{grid-column:1;grid-row:2}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary{display:contents!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary>div:nth-child(1){grid-column:2;grid-row:2}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary>div:nth-child(2){grid-column:3;grid-row:2}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-controls{grid-column:1 / -1;grid-row:3;display:grid!important;grid-template-columns:minmax(0,1fr) 380px 280px!important;gap:18px!important;align-items:center;padding:0 6px!important;border:0!important;background:none!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-screen>.mini-note{grid-column:1 / -1;grid-row:4}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-scroll{grid-column:1 / -1;grid-row:5;min-height:0;overflow:auto!important;padding:4px 14px 6px 4px!important;border:0!important;background:none!important;box-shadow:none!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-screen::after{content:"";grid-column:1 / -1;grid-row:6;justify-self:center;align-self:center;width:62px;height:62px;border-radius:50%;background:linear-gradient(180deg,#c44c45 0 46%,#111724 46% 54%,#f3f0ea 54%);box-shadow:0 0 0 3px #0d111c,0 0 0 5px #5c3639,0 0 18px #673c4066}
 /* the header (shared with the other redone windows: sgx-*) */
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-intro-pad{display:none}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .modal-description{position:relative;display:flex!important;align-items:center;height:116px;margin:0!important;padding:10px 20px 10px 118px!important;border:0!important;border-image:none!important;border-radius:5px!important;background:var(--sg-gems-quiet),var(--sg-surface)!important;box-shadow:var(--sg-frame-card)!important;color:#ece9e3!important;font:400 17px/24px Arial,sans-serif!important;white-space:pre-line}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .modal-description::before{content:"";position:absolute;left:22px;top:50%;width:76px;height:76px;margin-top:-38px;border-radius:50%;background:linear-gradient(180deg,#c44c45 0 44%,#111724 44% 56%,#f3f0ea 56%);box-shadow:0 0 0 3px #0d111c,0 0 0 5px #5c3639}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary>div{position:relative;display:grid!important;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-content:center;column-gap:8px;height:116px;padding:0 20px 0 106px!important;border:0!important;border-image:none!important;border-radius:5px!important;background:var(--sg-gems-quiet),var(--sg-surface)!important;box-shadow:var(--sg-frame-card)!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary>div::before{content:"";position:absolute;left:22px;top:50%;width:66px;height:66px;margin-top:-33px;border-radius:50%;background:radial-gradient(circle at 50% 50%,#c44c45 0 12%,#111724 13% 30%,#f3f0ea 31% 48%,#111724 49% 54%,#c44c45 55% 100%);box-shadow:0 0 0 3px #0d111c,0 0 0 5px #5c3639}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary>div:nth-child(2)::before{background:linear-gradient(180deg,#c44c45 0 44%,#111724 44% 56%,#f3f0ea 56%)}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary>div>span{grid-column:1 / -1;grid-row:1;color:#e8c47a!important;font:700 18px/22px Arial,sans-serif!important;letter-spacing:.04em!important;text-transform:uppercase!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary>div>strong{grid-column:1;grid-row:2;color:#ffd982!important;font:700 44px/50px Georgia,"Times New Roman",serif!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-summary>div>.dex-of{display:block!important;grid-column:2;grid-row:2;align-self:end;margin-bottom:6px;color:#ece9e3;font:400 32px/38px Georgia,"Times New Roman",serif;font-style:normal}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-controls :is(input,select){height:58px;border:0!important;border-image:none!important;border-radius:4px!important;background-color:#08040a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #29344d!important;color:#fff!important;font:400 19px/24px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-controls input[type="search"]{padding:0 16px 0 66px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='M15 15l6 6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:20px center!important;background-size:30px 30px!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-controls select{padding:0 16px 0 70px!important;background-image:radial-gradient(circle at 24px 29px,#c44c45 0 10px,#0d111c00 11px)!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-level{display:grid!important;grid-template-columns:auto 38px minmax(0,1fr) 38px;align-items:center;gap:8px;height:58px;padding:0 10px 0 18px!important;border-radius:4px!important;background:#08040a;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #29344d;color:#ffd982!important;font:400 19px/24px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-level>span{color:#ffd982!important;margin-right:6px}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-level input{height:44px!important;box-shadow:none!important;background:transparent!important;text-align:center;-moz-appearance:textfield;appearance:textfield;padding:0!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-level input::-webkit-inner-spin-button,body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-level input::-webkit-outer-spin-button{display:none}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-level-step{display:grid!important;place-items:center;width:38px;height:38px;padding:0!important;border:0!important;border-radius:4px!important;background:linear-gradient(180deg,#171f32,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #d9a233!important;color:#ffd982!important;font:700 16px/1 Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-level-step:is(:hover,:focus-visible,.pad-focus){background:linear-gradient(180deg,#212c46,#141b2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-hi)!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-screen>.mini-note{display:flex;align-items:center;gap:14px;height:38px;margin:0!important;padding:0 18px 0 16px!important;border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#141a2a,#08040a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #202b44!important;color:#ece9e3!important;font:400 18px/22px Arial,sans-serif!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-screen>.mini-note::before{content:"";flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:linear-gradient(180deg,#c44c45 0 44%,#111724 44% 56%,#f3f0ea 56%);box-shadow:0 0 0 2px #0d111c,0 0 0 3px #5c3639}
 /* the cards: tall frames with their sigil */
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-rows{gap:.8rem!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-card{position:relative;height:26rem!important;min-height:26rem!important;max-height:none!important;padding:0!important;border:0!important;border-image:none!important;border-radius:5px!important;
  background:var(--sg-gems-quiet),radial-gradient(circle at 50% 40%,#222e49 0,#161d2f 34%,#111724 70%),var(--sg-surface)!important;box-shadow:var(--sg-frame-card)!important;overflow:hidden}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-card.unseen{opacity:.7}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:34px minmax(0,1fr) auto auto auto;grid-template-areas:"no dots" "art art" "name name" "mark mark" "pills pills";align-items:center;row-gap:10px;width:100%!important;height:100%!important;padding:14px 18px 14px!important;border:0!important;border-image:none!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#fff!important;text-align:center}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-card:has(.dex-gm) .dex-cry{height:calc(100% - 64px)!important;padding-bottom:6px!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry::before{content:"";position:absolute;left:50%;top:76px;width:228px;height:228px;margin-left:-114px;border-radius:50%;background:radial-gradient(circle,#1b2439 0,#141b2b 60%,#0d111c00 61%),repeating-conic-gradient(from 0deg,#29344d 0 2deg,#0d111c00 2deg 14deg);opacity:.9;pointer-events:none}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry img{grid-area:art;position:relative;justify-self:center;align-self:center;width:176px!important;height:176px!important;max-width:none!important;object-fit:contain;image-rendering:pixelated}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>strong{grid-area:name;position:relative;color:#f6e3b4!important;font:700 24px/28px Georgia,"Times New Roman",serif!important;letter-spacing:.02em!important;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>span:not(.dex-no):not(.dex-dots):not(.dex-pills){grid-area:mark;position:relative;justify-self:center;display:grid;place-items:center;width:80%;height:34px;border-radius:17px;font:700 17px/20px Arial,sans-serif!important;letter-spacing:.03em;text-transform:uppercase}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>.caught-mark{background:linear-gradient(180deg,#0f6a3a,#073c22)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #1fa860!important;color:#fff!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>.muted{background:#151d2e!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #222b3f!important;color:var(--sg-muted)!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>small{display:none!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>.dex-no{grid-area:no;display:block!important;justify-self:start;color:#ffd982;font:700 19px/22px Arial,sans-serif;letter-spacing:.02em}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>.dex-dots{grid-area:dots;display:flex!important;gap:6px;justify-self:end}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-dot{display:block;width:32px;height:32px;padding:0!important;border-radius:50%!important;box-shadow:inset 0 0 0 1px #0d111c,0 0 0 2px #ffffff55}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>.dex-pills{grid-area:pills;display:flex!important;justify-content:center;flex-wrap:wrap;gap:10px}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-pill{display:inline-flex;align-items:center;height:32px;padding:0 16px!important;border-radius:16px!important;font:700 15px/18px Arial,sans-serif!important;font-style:normal;text-transform:uppercase;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #ffffff55}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry>.dex-varieties{position:absolute;left:18px;top:52px}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-cry :is(.dex-variety){color:#ffd982}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-card:is(:hover,:focus-within){background:var(--sg-gems),radial-gradient(circle at 50% 40%,#232c41 0,#192135 34%,#111724 70%),var(--sg-surface)!important;box-shadow:var(--sg-frame),inset 0 0 0 3px #c85c5155!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-gm{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;height:64px;padding:0 14px 14px!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-gm button{position:relative;display:flex!important;align-items:center;justify-content:center;gap:8px;height:46px!important;min-height:46px!important;padding:0 8px!important;border:0!important;border-image:none!important;border-radius:4px!important;background:linear-gradient(180deg,#171f32,#111724)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #c44a43!important;color:#fff!important;font:700 17px/20px Arial,sans-serif!important;letter-spacing:.03em!important;text-transform:uppercase!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-gm button:is(:hover:not(:disabled),:focus-visible,.pad-focus){background:linear-gradient(180deg,#212c46,#141b2a)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px var(--sg-gold-hi),0 0 12px #f3c96b55!important}
 body:not(.mobile-web) #modal#modal[data-view="dex"] .dex-gm button:disabled{opacity:.45}
}
