@layer legacy, features, arquivo;
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap') layer(legacy);

/* Source: style.css; original cascade layer/order preserved. */
@layer legacy {
:root{--bg:#f6f7f4;--paper:#fff;--ink:#172b26;--muted:#728079;--line:#e2e8e2;--green:#246650;--mint:#e9f3e9;--gold:#d3aa55;--sidebar:232px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',system-ui,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8bc5aa;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,system-ui,sans-serif}h1{font-size:32px;letter-spacing:-1.3px;font-weight:800}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:15px}small{font-size:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:36px 22px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:12px;font:800 20px Manrope,sans-serif;letter-spacing:-.6px;margin-bottom:52px}.brand-mark{font-size:39px;color:var(--green);line-height:1}.brand small{display:block;font:600 9px 'DM Sans',sans-serif;letter-spacing:2px;color:var(--muted);margin-top:5px}.nav-label{font-size:10px;letter-spacing:1.7px;color:#94a099;padding:0 12px;margin-bottom:14px}nav{display:grid;gap:6px}nav a{padding:13px;border-radius:9px;color:#6a7971;display:flex;gap:13px;align-items:center;font-weight:500}nav a span{font-size:22px;line-height:1}nav a.active{background:var(--mint);color:var(--green);font-weight:700}nav a:hover{background:#f2f6f1}.sidebar-bottom{margin-top:auto;padding:20px 10px 0;color:#476458;font-size:12px}.sidebar-bottom small{display:block;margin-top:9px;color:#8a9690;font-size:11px;line-height:1.6}.status-dot{display:inline-block;width:7px;height:7px;background:#5e9e74;border-radius:50%;margin-right:6px}.workspace{margin-left:var(--sidebar)}.topbar{height:70px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;background:#fff9}.local-tag{border:1px solid var(--line);border-radius:20px;padding:6px 11px;font-size:11px}main{max-width:1470px;margin:auto;padding:34px 38px 50px;min-height:calc(100vh - 130px)}.heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--green);margin-bottom:10px}.subtitle{color:var(--muted);line-height:1.6;margin-top:8px}.button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 15px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;gap:9px}.button.primary{background:var(--green);color:white;border-color:var(--green)}.hero-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-bottom:22px}.dex-hero{background:#173f36;color:#fff;border-radius:15px;min-height:245px;display:flex;justify-content:space-between;align-items:center;padding:30px;gap:20px;position:relative;overflow:hidden}.dex-hero:after{content:'';position:absolute;width:260px;height:260px;border:1px solid #ffffff0b;border-radius:50%;right:-125px;top:-130px}.dex-hero .eyebrow{color:#a4c8ac}.dex-hero h2{font-size:24px;margin-bottom:11px}.dex-hero p{color:#b9cec3;line-height:1.7;max-width:300px;font-size:12px}.dex-hero a{display:inline-flex;margin-top:25px;color:#d2e6d5;font-size:12px;font-weight:600}.ring{width:148px;height:148px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#aed3a6 var(--progress),#ffffff16 0)}.ring-inner{width:128px;height:128px;border-radius:50%;background:#173f36;display:flex;flex-direction:column;align-items:center;justify-content:center}.ring strong{font:700 30px Manrope,sans-serif;letter-spacing:-1px}.ring small{color:#b7cec0;font-size:10px;margin-top:4px}.repeat-hero{background:#edeedc;border:1px solid #e2e5d0;border-radius:15px;padding:28px;position:relative;display:flex;flex-direction:column;align-items:start}.repeat-hero .overlap{position:absolute;right:25px;top:24px;font-size:55px;color:#9da975;transform:rotate(-15deg)}.repeat-hero .eyebrow{color:#727d49}.repeat-hero strong{font:800 38px Manrope,sans-serif;letter-spacing:-1.5px;margin:7px 0}.repeat-hero p{color:#78805f;max-width:220px;line-height:1.6;font-size:12px}.repeat-hero a{margin-top:auto;padding-top:17px;font-weight:700;font-size:12px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:20px}.metric-label{color:var(--muted);font-size:12px;display:flex;justify-content:space-between}.metric strong{font:800 29px Manrope,sans-serif;display:block;margin:12px 0 5px;letter-spacing:-1px}.metric small{font-size:10px;color:#8c978f;line-height:1.6}.section-head{display:flex;justify-content:space-between;align-items:center;margin:24px 0 16px;gap:16px}.section-head a{font-size:12px;color:var(--green);font-weight:600}.sets-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.set-tile{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;transition:transform .15s,box-shadow .15s;display:block}.set-tile:hover{transform:translateY(-3px);box-shadow:0 6px 22px #1c3b2610}.set-art{height:110px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#edf1e9}.set-art:before,.set-art:after{content:'';width:170px;height:170px;border:1px solid #ffffff60;position:absolute;border-radius:50%;right:-25px;top:-70px}.set-art:after{right:60px;top:40px;width:200px;height:200px}.set-art b{font:800 32px Manrope,sans-serif;letter-spacing:5px;opacity:.75}.set-art.MEG{background:#e4e8e0;color:#597348}.set-art.PFL{background:#f2e3d9;color:#ae674a}.set-art.WHT{background:#e4e9ed;color:#6b7c95}.set-body{padding:18px}.set-body h3{margin-bottom:7px}.set-body small{color:var(--muted);font-size:11px}.progress-label{display:flex;justify-content:space-between;font-size:11px;margin:19px 0 8px;color:var(--muted)}.progress-track{height:5px;background:#ecf0ea;border-radius:8px;overflow:hidden}.progress-fill{height:100%;background:var(--green);min-width:0}.note{border:1px solid #e0e7db;background:#eef3e9;padding:12px 16px;border-radius:9px;color:#64765b;font-size:12px;line-height:1.65;margin-bottom:24px}.note.warning{background:#fff6e6;border-color:#efdfbd;color:#8b713c}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:28px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px}.panel h2{margin-bottom:16px}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mini-stats strong{font:700 24px Manrope,sans-serif;display:block;margin-bottom:7px}.mini-stats small{color:var(--muted);line-height:1.6}.activity{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:11px 0}.activity:first-of-type{border-top:0}.activity strong{font-size:12px;font-weight:600}.activity small{display:block;color:var(--muted);margin-top:5px;font-size:10px}.activity .delta{color:var(--green);font-weight:700}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px}.toolbar label,.filterbar label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:10px;font-weight:600}.toolbar select,.filterbar select,.filterbar input{border:1px solid var(--line);border-radius:7px;color:var(--ink);padding:10px 11px;background:#fff;max-width:100%;height:39px}.toolbar label.grow{flex:1;min-width:230px}.filterbar{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:10px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:16px;margin-bottom:20px}.filterbar .minimum{max-width:150px}.filterbar input{width:100%;min-width:0}.results-head{display:flex;align-items:center;justify-content:space-between;margin:18px 0 16px;color:var(--muted);font-size:12px}.view-toggle{display:flex;border:1px solid var(--line);border-radius:7px;padding:3px;background:#fff;gap:3px}.view-toggle button{border:0;background:transparent;padding:7px 13px;border-radius:5px;color:var(--muted);font-size:11px}.view-toggle button.active{background:var(--mint);color:var(--green);font-weight:700}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}.card.owned{border-color:#a4c1aa}.card-image{position:relative;background:#eaeee7;padding:18px 21px 16px;aspect-ratio:1/1.32;display:flex;justify-content:center;align-items:center}.card-image img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 5px #132a2028)}.image-fallback{display:grid;place-items:center;text-align:center;color:#829180;position:absolute;inset:16px;border:1px dashed #c4cfbe;border-radius:7px;font-size:12px}.card-image img{z-index:1}.card-image img:not([src]){display:none}.owned-badge{position:absolute;top:9px;right:9px;background:white;color:#778275;padding:5px 8px;border-radius:5px;font-size:9px;z-index:2;box-shadow:0 1px 3px #0001}.owned .owned-badge{background:var(--green);color:white}.card-content{padding:14px}.card-top{display:flex;justify-content:space-between;align-items:baseline;gap:6px;margin-bottom:7px}.card-top h3{font-size:13px;line-height:1.5}.number{font-size:10px;color:#8c978f;white-space:nowrap}.finish{display:inline-block;color:#476853;font-size:10px;background:#edf4ec;border-radius:4px;padding:4px 6px;line-height:1.35;max-width:100%}.card-meta{font-size:10px;color:var(--muted);line-height:1.6;margin-top:7px;min-height:32px}.condition-detail{font-size:10px;color:#738079;margin:8px 0;min-height:14px}.quantity-row{display:flex;gap:7px;align-items:center;padding-top:10px;border-top:1px solid var(--line)}.condition-select{min-width:49px;max-width:65px;border:1px solid var(--line);background:#fff;border-radius:5px;padding:6px 3px;font-size:10px;height:30px}.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-left:auto;flex-shrink:0}.stepper button{border:0;background:#f3f6f1;width:28px;height:29px;font-size:17px;color:var(--green)}.stepper output{width:32px;text-align:center;font-size:12px;font-weight:700}.card-saving{font-size:10px;color:var(--muted);margin-top:6px;min-height:13px}.card-saving.error{color:#a44436}.list-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:#fff}table{border-collapse:collapse;width:100%;text-align:left}th{padding:13px 15px;font-size:10px;color:var(--muted);font-weight:600;background:#f0f3ed}td{padding:13px 15px;border-top:1px solid var(--line);font-size:12px}td .quantity-row{border:0;padding:0;min-width:160px}td .condition-detail{margin-bottom:0}td .stepper{margin-left:8px}.list-name{font-weight:600;min-width:170px}.list-name small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:5px}.list-thumb{height:46px;width:33px;object-fit:contain;float:left;margin-right:12px}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:28px 0;color:var(--muted);font-size:12px}.empty{padding:45px 20px;text-align:center;background:#fff;border:1px dashed #d8e0d3;border-radius:12px;color:var(--muted);line-height:1.8}.empty h3{color:var(--ink);font-size:18px;margin-bottom:8px}.empty .button{margin-top:18px}.loading{padding:70px;text-align:center;color:var(--muted)}.dex-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.dex-item{border:1px solid var(--line);background:white;border-radius:9px;padding:16px;display:flex;gap:12px;align-items:center}.dex-number{font:700 12px Manrope;color:#9ba69b;min-width:42px}.dex-item small{display:block;color:var(--muted);margin-top:5px;font-size:10px}.dex-item.owned{border-color:#a4c1aa;background:#f2f8f0}.dex-check{margin-left:auto;color:var(--green);font-size:12px;white-space:nowrap}footer{max-width:1470px;margin:auto;padding:20px 38px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:10px;color:#939e95}#toast{position:fixed;bottom:24px;left:calc(50% + 116px);transform:translateX(-50%);background:#173f36;color:#fff;padding:13px 20px;border-radius:9px;font-size:12px;box-shadow:0 4px 20px #0002;z-index:20;display:none;max-width:80vw}#toast.visible{display:block}#toast.error{background:#893e33}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){.card-image{padding:24px 32px}}@media(max-width:1150px){:root{--sidebar:190px}.sidebar{padding:30px 14px}.brand{font-size:17px}.topbar{padding:0 25px}main{padding:28px 24px}.hero-grid{grid-template-columns:1.4fr 1fr}.dex-hero{padding:23px;gap:15px}.ring{width:114px;height:114px}.ring-inner{width:98px;height:98px}.ring strong{font-size:25px}.metrics{gap:10px}.metric{padding:16px}.card-grid{gap:12px}.card-image{padding:14px 12px}.card-content{padding:10px}.filterbar{grid-template-columns:repeat(3,1fr)}.dex-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){:root{--sidebar:0px}.sidebar{position:sticky;top:0;width:auto;height:auto;padding:12px 20px;flex-direction:row;justify-content:space-between;align-items:center;box-shadow:0 2px 10px #00000005}.brand{margin:0;font-size:16px;gap:6px}.brand-mark{font-size:30px}.brand small{font-size:7px}.nav-label,.sidebar-bottom{display:none}nav{display:flex;gap:2px}nav a{font-size:11px;padding:10px 9px;gap:5px}nav a span{font-size:15px}.workspace{margin-left:0}.topbar{height:49px;padding:0 20px;font-size:10px}main{padding:25px 20px}h1{font-size:28px}.hero-grid{grid-template-columns:1fr}.repeat-hero{min-height:185px}.metrics{grid-template-columns:repeat(2,1fr)}.sets-grid{grid-template-columns:repeat(2,1fr)}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card-content{padding:14px}.card-image{padding:18px 22px}.bottom-grid{grid-template-columns:1fr}.filterbar{grid-template-columns:repeat(2,1fr)}.filterbar label:first-child{grid-column:1/-1}.heading{align-items:start}.heading .button{white-space:nowrap}.dex-grid{grid-template-columns:1fr}footer{padding:18px 20px}#toast{left:50%}}
@media(max-width:430px){.sidebar{padding:10px}.brand small{display:none}.brand{font-size:14px}nav a{padding:9px 6px;font-size:10px}nav a span{display:none}main{padding:22px 14px}.card-grid{gap:10px}.card-content{padding:10px}.card-image{padding:12px}.sets-grid{grid-template-columns:1fr}.condition-select{width:48px}.quantity-row{gap:4px}.stepper button{width:25px}.stepper output{width:27px}.card-top{display:block}.card-top .number{display:block;margin-top:3px}.heading{flex-wrap:wrap}.dex-hero{padding:20px}.ring{width:106px;height:106px}.ring-inner{width:90px;height:90px}.dex-hero h2{font-size:21px}.local-tag{font-size:9px}}
.set-art{height:148px;width:100%;padding:16px 28px;background:#f4f6f1}
.set-art.has-logo::before,.set-art.has-logo::after{display:none}
.set-logo{position:relative;z-index:1;width:100%;height:100%;object-fit:contain}
.has-logo .set-logo-fallback{display:none}
.set-logo[hidden]{display:none}
.set-logo-small{display:flex;flex:none;align-items:center;justify-content:center;width:86px;height:54px;padding:5px;border-radius:8px;background:#f4f6f1}
.set-logo-small b{font-size:12px;color:#697163}
.set-row-link{display:flex;align-items:center;gap:14px;min-width:240px}
.set-row-link small{display:block;margin-top:4px;font-weight:400}
.set-logo-wrap{display:flex;align-items:center;justify-content:center;gap:8px;background:#f4f6f1;width:100%;padding:0 10px}
.set-logo-wrap .set-art{flex:1;min-width:0}
.set-logo-wrap.compact{width:auto;padding:0;background:transparent}
.country-badge{position:relative;flex:none;width:43px;height:29px;border:1px solid #ccd1c9;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;letter-spacing:.4px;box-shadow:0 1px 4px #0002;z-index:1}
.country-badge.jp{background:radial-gradient(circle at 50% 50%,#bc002d 0 30%,#fff 31%);color:#172820;text-shadow:0 1px 2px #fff}
.country-badge.ch{background:#de2910;color:#ffde00}
.country-badge.ch::before{content:'★';position:absolute;left:3px;top:0;font-size:10px}
.card-grid .card-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:3px;min-height:21px}
.card-grid .card-top h3{min-width:0;overflow-wrap:anywhere;line-height:1.5;text-align:left}
.card-grid .card-top .number{display:inline;margin:0;white-space:nowrap;flex-shrink:0;text-align:right}
.card-set-line{font-size:10px;line-height:1.5;color:var(--muted);margin:0 0 10px;overflow-wrap:anywhere}
.card-trainer-type{display:inline-block;margin:0 0 9px;padding:3px 6px;border-radius:4px;background:#f7f0dc;color:#6f5b27;font-size:9px;font-weight:700;line-height:1.35}
.card-frame{background:#eaeee7}
.card-finish{padding:0 10px 10px;min-height:45px;display:flex;align-items:center;justify-content:center;text-align:center}
.card-finish .finish{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:10px}
.card-grid .card-quick-actions{margin-left:auto;max-width:100%}
.card-grid .card-top .number{font-size:13px;font-weight:800;color:var(--ink)}
.card-grid .card-quick{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.card-grid .card-quick>.finish{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-grid .card-quick-actions{display:flex;align-items:center;gap:4px;flex:none}
.card-grid .card-language{width:53px;height:29px;padding:2px;border:1px solid var(--line);border-radius:5px;background:#fff;font-size:10px}
.card-grid .quantity-row{border:0;padding:0;gap:4px}
.card-grid .condition-select{height:29px}
.card-grid .card-saving{display:none}
.card-grid .card-saving.error{display:block}
/* Keep the same four-column gallery on phones; only the card furniture scales down. */
@media(max-width:800px){
  .card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .card-grid>.card{display:flex;flex-direction:column;min-width:0;border-radius:7px;contain-intrinsic-size:auto 280px}
  .card-grid .card-image{padding:5px;max-height:none}
  .card-grid .owned-badge{top:4px;right:3px;padding:2px 3px;font-size:7px;border-radius:3px}
  .card-grid .image-fallback{font-size:8px;padding:3px}
  .card-grid .card-finish{padding:0 3px 4px;min-height:27px}
  .card-grid .card-finish .finish{font-size:8px;padding:2px 3px;line-height:1.25}
  .card-grid .card-content{display:flex;flex-direction:column;flex:1;padding:5px}
  .card-grid .card-top{gap:3px;min-height:28px;align-items:flex-start}
  .card-grid .card-top h3{font-size:10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .card-grid .card-top .number{font-size:9px;line-height:1.5}
  .card-grid .card-set-line{font-size:8px;line-height:1.35;min-height:22px;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .card-grid .card-trainer-type{margin-bottom:4px;padding:2px 3px;font-size:7px}
  .card-grid .card-quick-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px;width:100%;margin:0;flex:1;min-width:0}
  .card-grid .card-quick{margin-top:auto}
  .card-grid .quantity-row{display:contents}
  .card-grid .card-language,.card-grid .condition-select{appearance:none;width:100%;min-width:0;max-width:none;height:30px;padding:0 6px 0 1px;font-size:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='3' viewBox='0 0 5 3'%3E%3Cpath d='m.5.5 2 2 2-2' fill='none' stroke='%23476853'/%3E%3C/svg%3E") no-repeat right 2px center}
  .card-grid .stepper{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;width:100%;min-width:0;margin:0}
  .card-grid .stepper button{width:100%;height:32px;font-size:18px;padding:0}
  .card-grid .stepper output{width:100%;align-self:center;font-size:10px}
  .card-grid .card-saving.error{grid-column:1/-1;font-size:8px;overflow-wrap:anywhere}
  .card-grid .card.owned .card-image::after{width:30px;height:30px;font-size:22px;border-width:2px}
}
@media(max-width:380px){
  .card-grid{gap:4px}
  .card-grid .card-content{padding:3px}
  .card-grid .card-top h3{font-size:9px}
  .card-grid .card-top .number{font-size:8px}
  .card-grid .card-language,.card-grid .condition-select{font-size:8px}
}
.audit-summary{display:grid;grid-template-columns:1.4fr repeat(5,1fr);gap:12px;margin-bottom:22px;overflow:auto;padding-bottom:3px}
.audit-total,.audit-stat{min-width:145px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:17px;text-align:left;color:var(--ink)}
.audit-total{background:#173f36;color:#fff;display:flex;flex-direction:column}.audit-total small,.audit-stat small{font-size:9px;letter-spacing:1.2px;font-weight:700}.audit-total strong,.audit-stat strong{font:800 27px Manrope,sans-serif;margin:7px 0}.audit-total span{font-size:11px;color:#bbd0c4}.audit-stat:hover{border-color:#9ebbad;background:#f4f8f3}
.audit-filters{grid-template-columns:2fr repeat(3,1fr)}.audit-guide{border-left:3px solid var(--gold);background:#fffaf0;color:#635a45;padding:13px 16px;margin:14px 0 22px;font-size:12px;line-height:1.6}
.audit-list{display:grid;gap:12px}.audit-item{background:#fff;border:1px solid var(--line);border-left:4px solid #b6c0ba;border-radius:11px;overflow:hidden}.audit-item.severity-alta{border-left-color:#bb5c55}.audit-item.severity-media{border-left-color:#d3aa55}.audit-item.severity-baixa{border-left-color:#8ba89a}.audit-item.severity-resolvida{border-left-color:#5e9e74}
.audit-item-head{display:flex;align-items:center;gap:9px;padding:10px 15px;border-bottom:1px solid #edf0ec;background:#fbfcfa}.audit-item-head code{margin-left:auto;color:#8b9690;font-size:10px}.audit-badge{font-size:9px;font-weight:800;letter-spacing:.8px;padding:4px 7px;border-radius:20px;background:#edf1ed}.severity-alta .audit-badge{background:#f8e4e1;color:#8d342e}.severity-media .audit-badge{background:#f7edcf;color:#755d1e}.audit-category{font-size:11px;color:var(--muted)}
.audit-item-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:22px;padding:17px}.audit-item h3{font-size:15px;margin-bottom:5px}.audit-item p{font-size:12px;color:var(--muted);line-height:1.5}.audit-evidence{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:11px;font-size:10px;color:#6c7871}.audit-link{display:inline-block;color:var(--green);font-weight:700;font-size:11px;margin-top:12px}.audit-actions{display:flex;flex-direction:column;justify-content:center;gap:9px}.audit-actions>div{display:flex;justify-content:flex-end;gap:7px}.audit-actions select,.audit-note{width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;padding:9px;font-size:11px}.audit-actions select{max-width:230px}.audit-actions .button{justify-content:center}.audit-note{min-width:220px}
.audit-item-body.has-card-preview{grid-template-columns:112px minmax(0,1fr) minmax(280px,420px)}.audit-card-preview{align-self:start;text-align:center;border:0;background:transparent;padding:0;color:inherit}.audit-card-preview:not(:disabled):hover img{outline:3px solid #8bc5aa;outline-offset:2px}.audit-card-preview img{display:block;width:100%;aspect-ratio:63/88;object-fit:contain;border-radius:7px;background:#eef1ee;box-shadow:0 3px 12px #1d2b2418}.audit-card-preview span{display:block;margin-top:6px;color:var(--green);font-size:9px;font-weight:700}.audit-links{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}.audit-link{border:0;background:none;padding:0}.audit-actions>div{align-items:flex-end}.audit-trainer-types{border:0;padding:0;margin:0 0 2px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:1}.audit-trainer-types legend{grid-column:1/-1;padding:0 0 6px;color:var(--muted);font-size:10px;font-weight:700}.audit-type-option{min-height:35px;border:1px solid #cbd8cd;border-radius:7px;background:#f6f9f5;color:var(--green);font-size:10px;font-weight:700;padding:7px}.audit-type-option:hover{background:var(--mint);border-color:#8eb49b}.audit-type-option small{display:block;margin-top:2px;color:#8b7651;font-size:8px}.audit-type-option.historical{border-style:dashed;background:#fffaf0}
.audit-artist-classifier{display:grid;grid-template-columns:minmax(170px,1fr) minmax(190px,1fr);gap:7px;width:100%}.audit-artist-classifier label{font-size:9px;font-weight:800;letter-spacing:.7px;color:var(--muted)}.audit-artist-classifier input{display:block;width:100%;margin-top:4px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:9px;font-size:11px}.audit-artist-classifier .button{grid-column:1/-1;justify-self:end}
@media(max-width:900px){.audit-summary{grid-template-columns:repeat(3,1fr)}.audit-item-body{grid-template-columns:1fr}.audit-actions>div{justify-content:flex-start;flex-wrap:wrap}.audit-filters{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.audit-item-body.has-card-preview{grid-template-columns:90px minmax(0,1fr)}.audit-item-body.has-card-preview .audit-actions{grid-column:1/-1}}
@media(max-width:600px){.audit-summary{grid-template-columns:repeat(2,1fr)}.audit-item-head code{display:none}.audit-filters{grid-template-columns:1fr}.audit-actions select{max-width:100%}.audit-item-body.has-card-preview{grid-template-columns:76px minmax(0,1fr)}}
@media(max-width:600px){.audit-artist-classifier{grid-template-columns:1fr}.audit-artist-classifier .button{grid-column:auto;justify-self:stretch}}
.dex-details{min-width:0;flex:1}.dex-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center}.dex-icon-image{width:48px;height:48px;object-fit:contain;image-rendering:auto}.dex-check{margin-left:0}
.dex-item:hover{border-color:#8eae99;box-shadow:0 3px 12px #1c3b2610;transform:translateY(-1px)}
.pokemon-filters{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr))}
.pokemon-filters label{min-width:0}.pokemon-filters input,.pokemon-filters select{min-width:0;width:100%}
.pokemon-gallery .card:not(.owned) .card-image img{filter:grayscale(1) drop-shadow(0 5px 5px #132a2028)}
.pokemon-gallery tr:not(.owned) .list-thumb{filter:grayscale(1)}
@media(max-width:1150px){.pokemon-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.pokemon-filters{grid-template-columns:1fr}}
.metric-context{font-size:11px;margin:-10px 0 14px}.metric{display:block;transition:border-color .15s,box-shadow .15s}.metric:hover{border-color:#91b39b;box-shadow:0 4px 16px #1c3b2610}
.rarity-dashboard{margin:32px 0 38px}.rarity-dashboard>.section-head{margin-bottom:15px}.rarity-dashboard .section-head h2{margin-bottom:4px}.rarity-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.rarity-panel{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 3px 16px #173f3609}.rarity-panel-head{display:flex;align-items:flex-start;gap:11px;padding:17px 18px 14px;background:linear-gradient(140deg,#fff,#f7faf6)}.rarity-panel-head h3{font-size:14px;margin:0 0 3px}.rarity-panel-head p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.rarity-market{display:grid;place-items:center;flex:0 0 39px;height:27px;border-radius:5px;background:#173f36;color:#fff;font:800 9px Manrope,sans-serif;letter-spacing:.8px}.rarity-market.jp{background:radial-gradient(circle at 50% 50%,#bc002d 0 29%,#fff 31%);border:1px solid #dadada;color:#172820;text-shadow:0 1px 1px #fff}.rarity-market.cn{position:relative;background:#de2910;color:#ffde00}.rarity-market.cn:before{content:'★';font-size:8px;margin-right:2px}.rarity-list{border-top:1px solid var(--line)}.rarity-row{display:grid;grid-template-columns:66px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:44px;padding:7px 16px;color:var(--ink);border-bottom:1px solid #e8ece8;transition:background .12s,border-color .12s}.rarity-row:last-child{border-bottom:0}.rarity-row:hover{background:#f2f8f2}.rarity-row:focus-visible{position:relative;outline:2px solid #558d6c;outline-offset:-2px}.rarity-symbol{display:inline-flex;align-items:center;justify-content:flex-start;min-width:0;font:900 15px/1 Manrope,sans-serif;letter-spacing:-.8px;color:#171b18;white-space:nowrap}.rarity-symbol.tone-prata{color:#a5aaad;text-shadow:0 1px 0 #fff}.rarity-symbol.tone-dourado{color:#f0ad12}.rarity-symbol.tone-magenta{color:#df1672}.rarity-symbol.tone-verde{color:#a2b500}.rarity-symbol.tone-neutro{color:#747d78}.rarity-symbol.tone-arco_iris{background:linear-gradient(115deg,#ed3d68,#ee9e20,#3cae7a,#2e77c2,#904bbd);-webkit-background-clip:text;background-clip:text;color:transparent}.rarity-description{display:flex;align-items:baseline;gap:7px;min-width:0}.rarity-description strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.rarity-description small{color:var(--muted);font-size:9px;font-weight:700;white-space:nowrap}.rarity-count{min-width:31px;padding:4px 7px;border-radius:5px;background:#78817c;color:#fff;text-align:center;font:800 11px Manrope,sans-serif}.rarity-empty{padding:24px 18px;margin:0;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.rarity-panel:only-child{grid-column:1/-1}
@media(max-width:820px){.rarity-panels{grid-template-columns:1fr}.rarity-row{min-height:42px;padding:7px 13px}.rarity-panel:only-child{grid-column:auto}}
@media(max-width:430px){.rarity-row{grid-template-columns:58px minmax(0,1fr) auto;gap:6px}.rarity-symbol{font-size:13px}.rarity-description strong{font-size:10px}.rarity-description small{font-size:8px}.rarity-panel-head{padding:14px}.rarity-count{min-width:29px;padding:4px 5px}}
.era-list{display:grid;gap:11px}.era-group{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.era-group summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;list-style:none}.era-group summary::-webkit-details-marker{display:none}.era-group summary:before{content:'▸';color:var(--green);font-size:15px}.era-group[open] summary:before{content:'▾'}.era-group summary strong{margin-right:auto;font:700 13px Manrope,sans-serif}.era-group summary span{font-size:11px;color:var(--muted)}.era-group .list-wrap{border:0;border-top:1px solid var(--line);border-radius:0}
.era-group .era-tiles{padding:16px;border-top:1px solid var(--line)}
.set-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.set-era-catalog{border:0;background:transparent;border-radius:0;overflow:visible}.set-era-catalog>summary{padding:15px 2px 12px;border-bottom:1px solid var(--line)}.set-era-catalog>summary:before{display:grid;place-items:center;width:23px;height:23px;border:1px solid #d2ddd4;border-radius:50%;background:#fff;color:var(--green);font-size:11px}.set-era-catalog[open]>summary:before{background:var(--green);border-color:var(--green);color:#fff}.set-era-catalog>.era-tiles{padding:14px 0 8px;border-top:0}.set-tile-compact{display:flex;flex-direction:column;min-width:0;min-height:196px;border-radius:9px;padding:13px 14px 12px;overflow:visible}.set-tile-compact:hover{transform:translateY(-2px);border-color:#a9bbaa;box-shadow:0 5px 18px #173f3610}.compact-set-head{display:flex;align-items:center;gap:7px;min-height:32px}.compact-set-head h3{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--green);font-size:12px;letter-spacing:-.15px}.set-code-chip{display:inline-grid;place-items:center;flex:none;min-width:29px;max-width:47px;height:17px;padding:0 4px;border-radius:2px;background:#333c37;color:#fff;font:800 7px Manrope,sans-serif;letter-spacing:.25px;overflow:hidden}.compact-set-visual{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:72px;margin:5px 0 4px}.set-tile-compact .set-logo-wrap.compact{width:min(150px,67%);height:65px;justify-content:flex-start;gap:5px}.set-tile-compact .set-logo-small{width:100%;height:65px;padding:4px 0;background:transparent;justify-content:flex-start}.set-tile-compact .set-logo-small .set-logo{object-position:left center}.set-tile-compact .set-logo-small b{font-size:15px;color:#657168}.set-tile-compact .country-badge{width:34px;height:23px;font-size:8px;box-shadow:none}.set-tile-compact .prize-series-badge{max-width:65px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px;padding:2px 4px}.compact-set-total{flex:none;color:var(--muted);font-size:9px;text-align:right;white-space:nowrap}.compact-progress-label{display:flex;justify-content:space-between;align-items:center;margin:4px 0 6px;color:#4e5d56;font-size:10px}.compact-progress-label strong{font:800 11px Manrope,sans-serif}.compact-progress-label b{font:800 10px Manrope,sans-serif}.set-tile-compact .progress-track{height:5px;background:#e3e6e2}.set-tile-compact .progress-fill{background:#e06e38}.compact-set-foot{display:flex;justify-content:space-between;gap:7px;margin-top:8px;color:#849088;font-size:8px;line-height:1.25}.compact-set-foot span:last-child{white-space:nowrap;color:var(--green);font-weight:700}
@media(max-width:1180px){.set-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.set-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.set-tile-compact{min-height:184px;padding:10px}.compact-set-head h3{font-size:11px}.set-tile-compact .set-logo-wrap.compact{width:min(130px,67%);height:58px}.set-tile-compact .set-logo-small{height:58px}.compact-set-visual{min-height:64px}}
@media(max-width:470px){.set-catalog-grid{grid-template-columns:1fr}.set-tile-compact{min-height:176px}.set-tile-compact .set-logo-wrap.compact{width:min(170px,70%)}}
.prize-series-badge{position:absolute;right:15px;bottom:10px;z-index:2;background:#fffdf1e8;border:1px solid #d3c495;color:#66542c;padding:4px 7px;border-radius:5px;font:700 11px Manrope,sans-serif;white-space:nowrap;box-shadow:0 2px 6px #0001}.set-logo-wrap{position:relative}.set-logo-wrap.compact .prize-series-badge{position:static;font-size:9px;padding:2px 4px;box-shadow:none}
.card-stream-status{min-height:64px;display:flex;align-items:center;justify-content:center;gap:12px;padding:20px;color:var(--muted);font-size:12px;text-align:center;overflow-anchor:none}
/* Keep prior cards in the DOM without laying out/painting off-screen contents. */
.card-grid>.card{content-visibility:auto;contain-intrinsic-size:auto 420px}

/* Frame físico 63 × 88; a superfície interna mantém a mesma proporção sem alongar. */
.card-image{display:flex;aspect-ratio:63/88}
.card-image>img,.card-image>.card-surface{width:100%;height:auto;aspect-ratio:63/88;max-width:100%;max-height:100%}
.list-thumb{aspect-ratio:63/88}
.audit-card-preview img{height:auto;aspect-ratio:63/88}
.search-suggestion-image{width:38px;height:53px;flex-basis:38px}
/* Cards de destaque inteiros permanecem acionáveis em todos os temas. */
.dashboard-feature-link{color:inherit;cursor:pointer}
.dex-hero .feature-card-cta{display:inline-flex;margin-top:25px;color:#d2e6d5;font-size:12px;font-weight:600}
.repeat-hero .feature-card-cta{margin-top:auto;padding-top:17px;font-size:12px;font-weight:700}
.legal-note{color:var(--muted);font-size:12px;line-height:1.6}.legal-note a,.legal-document a{color:var(--green);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.public-page{min-height:100vh;padding:28px;background:var(--bg)}.legal-document{max-width:720px;min-height:0;margin:0 auto;padding:40px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 30px #173f360c}.legal-document h1{margin-bottom:12px}.legal-document h2{margin:28px 0 8px}.legal-document p{color:var(--muted);line-height:1.75}.legal-document>p:last-child{margin-top:32px}
@media(max-width:600px){.public-page{padding:12px}.legal-document{padding:26px 20px;border-radius:10px}.legal-document h1{font-size:27px}}

}

/* Source: enhancements.css; original cascade layer/order preserved. */
@layer legacy {
.dashboard-search{position:relative;z-index:3;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin:-4px 0 24px;box-shadow:0 5px 18px #153a2610}
.dashboard-search label{display:block;font:700 14px Manrope,sans-serif;color:var(--ink)}
.dashboard-search p{font-size:11px;color:var(--muted);margin:5px 0 12px}
.dashboard-search input{width:100%;height:44px;padding:10px 13px;border:1px solid #c9d9cc;border-radius:8px;background:#fbfdfb;color:var(--ink)}
.dashboard-search-results{position:absolute;top:calc(100% - 1px);left:19px;right:19px;max-height:430px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:0 0 10px 10px;box-shadow:0 15px 25px #19382820}
.dashboard-search-results:empty{display:none}
.search-suggestion{display:flex;align-items:center;text-align:left;gap:12px;width:100%;padding:9px 12px;border:0;border-top:1px solid #eef1ed;background:#fff;color:var(--ink)}
.search-suggestion:hover,.search-suggestion:focus-visible{background:var(--mint)}
.search-suggestion-image{width:39px;height:53px;flex:0 0 39px;display:grid;place-items:center;background:#edf1ec;border-radius:4px;color:var(--green)}
.search-suggestion-image img{width:100%;height:100%;object-fit:contain}
.search-suggestion strong{display:block;font-size:12px}
.search-suggestion small{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.4}
.search-suggestion em{display:block;margin-top:2px;color:#185b9c;font-size:10px;font-style:normal;font-weight:700;line-height:1.35}
.search-state{padding:13px 15px!important;margin:0!important}
.selected-print{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 15px;margin-bottom:16px;border:1px solid #c7dccb;border-radius:8px;background:#eff7ee;color:#315f43;font-size:12px}
.selected-print button{border:0;background:transparent;color:var(--green);font-weight:700;text-decoration:underline}
#results [data-card]{cursor:pointer}
#results [data-card]:not(:has(button:hover)):hover{box-shadow:0 3px 15px #19382812}
#results tr[data-card]:hover{background:#f8fbf7}
#results [data-card]{user-select:none}
#results [data-card] button,#results [data-card] select{user-select:auto}
#card-dialog{width:min(850px,calc(100vw - 32px));max-height:min(90vh,850px);padding:0;border:0;border-radius:15px;background:#fff;box-shadow:0 20px 65px #071b1590;color:var(--ink)}
#card-dialog::backdrop{background:#102a20ae}
.card-dialog-panel{display:grid;grid-template-columns:minmax(230px,42%) minmax(0,1fr);position:relative}
.card-dialog-close{position:absolute;right:12px;top:12px;z-index:2;width:32px;height:32px;border:0;border-radius:50%;background:#fff;color:var(--ink);font-size:24px;line-height:1;box-shadow:0 2px 10px #0002}
.card-dialog-art{min-height:440px;display:grid;place-items:center;padding:25px;background:#eef2ec;cursor:pointer}
.card-dialog-art img{display:block;max-width:100%;max-height:72vh;object-fit:contain;filter:drop-shadow(0 8px 12px #1b332429)}
.card-dialog-info{padding:34px 35px 28px;display:flex;flex-direction:column;align-items:start;gap:13px}
.card-dialog-info h2{font-size:25px;line-height:1.25}
.card-dialog-number{color:var(--muted);font-size:12px}
.card-dialog-info dl{width:100%;margin:4px 0 0;border-top:1px solid var(--line)}
.card-dialog-info dl div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}
.card-dialog-info dt{color:var(--muted)}.card-dialog-info dd{margin:0;text-align:right;font-weight:600}
.pokemon-type{display:inline-flex;align-items:center;gap:5px}.pokemon-type i{display:inline-block;width:11px;height:11px;border-radius:50%;background:var(--type-color);box-shadow:inset 0 0 0 1px #0002}
.card-dialog-info .condition-detail{font-size:12px;margin:0}
.card-dialog-controls{display:flex;align-items:center;gap:10px;width:100%;padding-top:12px;border-top:1px solid var(--line)}
.card-dialog-controls label{font-size:11px;color:var(--muted)}
.card-dialog-controls select{padding:8px;border:1px solid var(--line);border-radius:6px;background:#fff}
.card-dialog-controls .stepper{margin-left:auto}.card-dialog-controls .stepper button{width:36px;height:34px}
.card-dialog-info>small{color:var(--muted);font-size:10px;line-height:1.5}
@media(max-width:650px){.card-dialog-panel{grid-template-columns:1fr}.card-dialog-art{min-height:260px;padding:16px}.card-dialog-art img{max-height:42vh}.card-dialog-info{padding:22px}.card-dialog-info h2{font-size:21px}}
/* O idioma pertence ao exemplar; pode ser escolhido após uma busca unificada. */
.card-dialog-controls{flex-wrap:wrap}
.insight-section{margin:34px 0}.insight-section .section-head{align-items:end}
.achievement-grid,.binder-suggestion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.achievement-card,.binder-suggestion{display:flex;flex-direction:column;gap:14px;padding:18px;border:1px solid var(--line,#dbe3df);border-radius:18px;background:#fff;color:inherit;text-decoration:none}
.achievement-card small,.binder-suggestion small,.acquisition-card small,.acquisition-card span{display:block;color:var(--muted,#68756f);font-size:11px;margin-top:5px}
.achievement-card>b{font-size:13px;color:var(--green,#176b57)}
.acquisition-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.acquisition-card{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line,#dbe3df);border-radius:15px;background:#fff;color:inherit;text-decoration:none;min-width:0}
.acquisition-card img{width:46px;aspect-ratio:63/88;object-fit:contain;border-radius:5px;flex:0 0 auto}.acquisition-card div{min-width:0}.acquisition-card strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.binder-suggestion{flex-direction:row;align-items:center;justify-content:space-between}.binder-suggestion .button{white-space:nowrap}
.highlight-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.highlight-grid .panel h3{margin-top:0}.insight-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;padding:10px 0;border-bottom:1px solid var(--line,#dbe3df);color:inherit;text-decoration:none}.insight-row:last-child{border-bottom:0}.insight-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insight-row b{font-size:12px;color:var(--green,#176b57)}.insight-row small{grid-column:1/-1;color:var(--muted,#68756f)}
@media(max-width:900px){.achievement-grid{grid-template-columns:1fr 1fr}.acquisition-strip{grid-template-columns:1fr 1fr}.binder-suggestion-grid{grid-template-columns:1fr}}
@media(max-width:560px){.achievement-grid,.highlight-grid{grid-template-columns:1fr}.acquisition-strip{grid-template-columns:1fr 1fr}.acquisition-card{padding:7px}.binder-suggestion{gap:8px}}

}

/* Source: interaction.css; original cascade layer/order preserved. */
@layer legacy {
/* Pistas visuais discretas: a posse permanece legível sem cobrir a arte. */
.card.owned .card-image::after,
.card-dialog-art:has(.card-owned-check)::after {
  content: '✓';
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 5px solid currentColor;
  border-radius: 50%;
  color: rgba(255, 255, 255, .55);
  background: rgba(21, 70, 45, .10);
  text-shadow: 0 2px 8px #173f3650;
  box-shadow: 0 1px 9px #173f3633;
  font: 700 58px Manrope, sans-serif;
  pointer-events: none;
}
.card-dialog-art{position:relative}
.card-dialog-art .card-owned-check{display:none}
.card-dialog-art:has(.card-owned-check)::after{width:115px;height:115px;font-size:86px}
.list-name:has(.list-thumb){position:relative}
tr.owned .list-name:has(.list-thumb)::after {
  content: '✓';
  position:absolute;
  left:29px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:rgba(255,255,255,.78);
  background:rgba(23,63,54,.24);
  font-size:20px;
  pointer-events:none;
}
.card-dialog-info a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.card-dialog-info a:hover{color:#1a7555}
.card-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:auto;padding-top:8px}
.dialog-navigation{display:flex;gap:6px}
.dialog-navigation button{height:36px;width:40px;border:1px solid var(--line);border-radius:7px;background:#f1f6ee;color:var(--green);font-size:20px;line-height:1}
.dialog-navigation button:hover:not(:disabled){background:var(--mint)}
.dialog-hint{color:var(--muted);font-size:10px}
.dialog-loading{padding:65px 25px;text-align:center;color:var(--muted)}
.card-saving:not(:has(button)){display:none}
.view-toggle button{font-size:0!important;width:36px;height:29px;padding:3px!important}
.view-toggle button::before{font-size:20px;line-height:1}
.view-toggle button[data-view="grid"]::before{content:'▦'}
.view-toggle button[data-view="list"]::before{content:'☷'}
@media(max-width:650px){.card.owned .card-image::after{width:58px;height:58px;font-size:42px;border-width:4px}.dialog-hint{font-size:9px}}
.search-suggestion-image{position:relative}
.search-suggestion-image.owned::after{content:'✓';position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:26px;height:26px;border:2px solid #ffffffaa;border-radius:50%;background:#173f3655;color:#ffffffcc;font-size:19px;pointer-events:none}
.card-image,.card-dialog-art{touch-action:manipulation}

}

/* Source: pokedex.css; original cascade layer/order preserved. */
@layer features {
.dex-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
.dex-filters label:first-child{grid-column:span 2}
.dex-viewbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 16px}
.dex-viewbar label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:600}
.dex-viewbar label[hidden]{display:none}
.dex-viewbar .view-toggle button span{font-size:18px;line-height:1;vertical-align:-2px;margin-right:4px}
.dex-viewbar select{padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink)}
.binder-page{display:grid;grid-template-columns:repeat(var(--binder-columns),minmax(0,1fr));gap:10px;max-width:790px;margin:0 auto;padding:17px;border:1px solid #cedbc9;border-radius:14px;background:#e3ebdc;box-shadow:0 6px 24px #20392a16}
.binder-pocket{position:relative;min-width:0;aspect-ratio:0.83;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 5px;border:1px solid #bbc8b7;border-radius:9px;background:linear-gradient(145deg,#fff,#edf3eb);box-shadow:inset 0 2px 6px #173f3612,0 2px 4px #173f3611;text-align:center;overflow:hidden}
.binder-pocket:hover{border-color:#72a88b;transform:translateY(-2px)}
.binder-pocket.owned{background:linear-gradient(145deg,#f7fff1,#e8f5e7);border-color:#76ae83}
.binder-pocket .dex-icon{width:min(60%,98px);height:60%;flex:1 1 auto;min-height:0}
.binder-pocket .dex-icon-image{width:100%;height:100%;object-fit:contain}
.binder-pocket strong{display:block;max-width:100%;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
.binder-pocket small{font-size:9px;color:var(--muted);line-height:1.2}
.binder-number{position:absolute;top:7px;left:8px;font-size:9px;font-weight:700;color:#718274}
.binder-pocket.binder-empty{background:#d7e1d1;opacity:.6;box-shadow:inset 0 2px 7px #173f361c}
@media(max-width:430px){html,body{max-width:100%;overflow-x:clip}.list-wrap{max-width:100%;overscroll-behavior-x:contain}}
@media(max-width:800px){.dex-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.binder-page{max-width:620px;padding:12px;gap:8px}}
@media(max-width:430px){.sidebar{display:block}.sidebar .brand{margin:0 0 8px 2px}.sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.sidebar nav a{display:flex;flex-direction:column;gap:2px;align-items:center;padding:6px 2px;text-align:center;font-size:9px;line-height:1.1}.sidebar nav a span{display:block;font-size:15px}.dex-filters label:first-child{grid-column:1/-1}.binder-page{padding:7px;gap:5px}.binder-pocket{padding:7px 2px;gap:2px}.binder-pocket strong{font-size:9px}.binder-pocket small{font-size:8px}.binder-number{font-size:8px;top:4px;left:5px}.dex-viewbar{gap:8px}.dex-viewbar .view-toggle button{padding:7px 8px}}

}

/* Source: foil.css; original cascade layer/order preserved. */
@layer features {
/* Acabamento ilustrativo ligado à variante cadastrada, sem alterar a imagem de origem. */
.card-surface{position:relative;display:block;isolation:isolate;width:100%;height:auto;aspect-ratio:63/88;max-width:100%;max-height:100%;flex:none;overflow:hidden;border-radius:2.5%/1.8%;background:#f4f4f2;box-shadow:0 5px 9px #132a2028}
.card-surface>img{display:block;width:100%;height:100%;object-fit:contain;filter:none!important}
.card-image>.card-surface{z-index:1}
.card-image .card-surface img,.card-dialog-art .card-surface img{max-width:none;max-height:none}
.card-surface.list-thumb{display:inline-block;float:left;width:33px;height:46px;aspect-ratio:63/88;max-width:none;max-height:none;margin-right:12px;vertical-align:middle}
.card-surface.list-thumb>img{height:100%;width:100%}
.card-dialog-art .card-surface{width:min(100%,350px);height:auto;max-height:72vh}
.card-dialog-art{cursor:default}
.foil-card{--foil-x:52%;--foil-y:34%}
.foil-card>.foil-tint,.foil-card>.foil-glow,.foil-card>.foil-emblem{position:absolute;z-index:3;inset:0;pointer-events:none}
.foil-reverse>.foil-tint,.foil-reverse>.foil-glow{
  -webkit-mask-image:url('/static/foil-assets/reverse-mask.svg');
  -webkit-mask-size:100% 100%;
  -webkit-mask-position:center;
  -webkit-mask-repeat:no-repeat;
  mask-image:url('/static/foil-assets/reverse-mask.svg');
  mask-size:100% 100%;
  mask-position:center;
  mask-repeat:no-repeat;
}
.foil-reverse>.foil-tint{
  opacity:.78;
  background:linear-gradient(145deg,#253a4e48 8%,#243f5060 54%,#283c4d48 100%);
  mix-blend-mode:multiply;
}
.foil-reverse.foil-full>.foil-tint,.foil-reverse.foil-full>.foil-glow{-webkit-mask-image:none;mask-image:none}
.foil-reverse>.foil-glow{
  opacity:.62;
  background:
    radial-gradient(ellipse at var(--foil-x) var(--foil-y),#f5fcffb8,transparent 38%),
    linear-gradient(118deg,
      transparent 12%,
      #4fd9ff85 27%,
      #a78bfa70 39%,
      #fffbd4c2 49%,
      #ff83bd73 59%,
      #75f0c985 72%,
      transparent 88%),
    repeating-linear-gradient(132deg,#ffffff22 0 1px,transparent 1px 6px);
  mix-blend-mode:screen;
  filter:saturate(1.25) contrast(1.04);
}
.foil-reverse:not([data-foil-symbol])>.foil-glow{
  background:
    radial-gradient(ellipse at var(--foil-x) var(--foil-y),#f8fdffd1,transparent 38%),
    repeating-linear-gradient(42deg,#87e8ff54 0 2px,#9a7cff3b 2px 4px,#ff8fc43d 4px 6px,#ffe37a42 6px 8px),
    linear-gradient(118deg,transparent 12%,#ffffffbd 49%,transparent 88%);
}
.foil-emblem{opacity:.34;color:#eef7fa;mix-blend-mode:screen}
.foil-emblem svg{
  position:absolute;
  width:72%;
  height:auto;
  left:50%;
  top:73.5%;
  transform:translate(-50%,-50%);
  overflow:visible;
}
.foil-holo>.foil-tint,.foil-holo>.foil-glow,.foil-gold>.foil-glow{
  -webkit-mask-image:url('/static/foil-assets/art-mask.svg');
  -webkit-mask-size:100% 100%;
  -webkit-mask-position:center;
  -webkit-mask-repeat:no-repeat;
  mask-image:url('/static/foil-assets/art-mask.svg');
  mask-size:100% 100%;
  mask-position:center;
  mask-repeat:no-repeat;
}
.foil-holo.foil-full>.foil-tint,.foil-holo.foil-full>.foil-glow,.foil-gold.foil-full>.foil-glow{-webkit-mask-image:none;mask-image:none}
.foil-holo>.foil-tint{
  display:none;
}
.foil-holo>.foil-glow{
  opacity:.68;
  background:radial-gradient(ellipse at var(--foil-x) var(--foil-y),#fff8,transparent 50%),
    linear-gradient(114deg,transparent 18%,#bce8ff4c 36%,#efc7fa5b 47%,#fff6 51%,#95f3d743 62%,transparent 79%);
  mix-blend-mode:screen;
}
.foil-gold>.foil-tint{
  opacity:.25;
  background:linear-gradient(120deg,#8b5d2580,#ffe1a660,#6c431870,#fff2b568);
  mix-blend-mode:overlay;
}
.foil-gold>.foil-glow{
  opacity:.48;
  background:linear-gradient(113deg,transparent 24%,#ffe5a4b0 45%,#fff8d0aa 51%,transparent 72%);
  mix-blend-mode:screen;
}
.pokemon-gallery .card:not(.owned) .card-surface>img,
.pokemon-gallery tr:not(.owned) .card-surface>img{filter:grayscale(1)!important}
.pokemon-gallery .card:not(.owned) .card-surface.foil-card>span,
.pokemon-gallery tr:not(.owned) .card-surface.foil-card>span{filter:grayscale(1)}
@media(max-width:650px){.card-dialog-art .card-surface{width:auto;height:min(42vh,490px)}}
@media(prefers-reduced-motion:reduce){.foil-card>span{transition:none!important;animation:none!important}}

}

/* Source: binders.css; original cascade layer/order preserved. */
@layer features {
.vbind-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.vbind-heading a{font-size:12px;color:var(--green)}.vbind-heading h1{margin:8px 0}.vbind-heading p,.vbind-help{font-size:12px;color:var(--muted);line-height:1.6}.vbind-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}.vbind-cover{display:flex;flex-direction:column;gap:12px;min-height:260px;padding:28px 25px;border-radius:6px 18px 18px 6px;border-left:12px solid #102e29;background:linear-gradient(125deg,#24574a,#173f36);color:#f2ebda;box-shadow:4px 8px 18px #152d2618}.vbind-cover:hover{transform:translateY(-2px)}.vbind-cover-icon{font-size:40px;color:#cfb778}.vbind-cover h2{font-size:20px;overflow-wrap:anywhere}.vbind-cover p,.vbind-cover small{color:#c8dacf}.vbind-cover>span:last-child{margin-top:auto;font-size:12px}.vbind-status{min-height:32px;display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:12px;color:#41654c}.vbind-status .error{color:#a2352d}.vbind-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.vbind-workbench,.vbind-catalog{min-width:0}.vbind-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.vbind-toolbar label{font-size:11px;display:flex;gap:8px;align-items:center}.vbind-toolbar input{width:58px;padding:7px;border:1px solid var(--line);border-radius:6px}.vbind-toolbar>span{margin-left:auto;font-size:11px;color:var(--muted)}.vbind-selection{min-height:55px;padding:9px 12px;margin-bottom:12px;background:#eaf0e7;border:1px solid #d6e2d2;border-radius:8px;font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;overflow-wrap:anywhere}.vbind-selection .button{font-size:10px;padding:6px}.vbind-book{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border-radius:12px;background:linear-gradient(90deg,#294338 47%,#11251b 49%,#849083 50%,#11251b 51%,#294338 53%);box-shadow:0 8px 20px #18352620}.vbind-sheet{min-width:0;background:#e5e7db;border-radius:4px;padding:9px;box-shadow:inset 0 0 7px #132d2828;align-self:start}.vbind-sheet footer{padding:9px 0 0;border:0;text-align:center;font-size:10px;color:#667363;display:block}.vbind-sheet-end{display:grid;place-items:center;align-self:stretch;color:#667363;font-size:12px;min-height:150px}.vbind-pockets{display:grid;grid-template-columns:repeat(var(--vbind-cols),minmax(0,1fr));gap:7px}.vbind-pocket{position:relative;min-width:0;aspect-ratio:5/7;padding:3px;background:linear-gradient(135deg,#fbfcf67a,#c8d0c9aa);border:1px solid #aebaae;border-radius:4px;box-shadow:inset 0 -2px 1px #ffffffaa}.vbind-pocket::after{content:'';position:absolute;bottom:2px;left:2px;right:2px;height:2px;background:#ffffff77;pointer-events:none}.vbind-pocket-main{display:block;width:100%;height:100%;border:0;background:none;padding:0;cursor:pointer;touch-action:manipulation}.vbind-pocket.selected,.vbind-pocket.drop-target{outline:3px solid #ad8329;outline-offset:1px;background:#f9edc5}.vbind-slot-index{position:absolute;left:3px;bottom:3px;font:9px sans-serif;color:#365944;background:#ffffffe0;border-radius:3px;padding:1px 3px;pointer-events:none}.vbind-empty-plus{font-size:23px;color:#9eac9c}.vbind-remove{position:absolute;right:2px;top:2px;width:23px;height:23px;border:1px solid #c6cfc4;border-radius:50%;background:#ffffffeb;color:#6c332b;cursor:pointer;font-size:16px;z-index:3}.vbind-art{display:block;position:relative;width:100%;height:100%;aspect-ratio:5/7;overflow:hidden;border-radius:3px}.vbind-art>img{width:100%;height:100%;object-fit:contain}.vbind-art>.card-surface{width:100%;height:100%}.vbind-no-image{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:5px;font-size:10px;background:#e4eade;color:#48604c}.vbind-no-image small{margin-top:6px;font-size:8px}.vbind-catalog{position:sticky;top:16px;padding:15px;background:white;border:1px solid var(--line);border-radius:12px}.vbind-catalog h2{font-size:18px}.vbind-catalog>p{font-size:11px;line-height:1.5;color:var(--muted);margin:7px 0 12px}.vbind-catalog label,#vbind-config label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:600;min-width:0}.vbind-catalog input,.vbind-catalog select,#vbind-config input,#vbind-config select{border:1px solid var(--line);border-radius:6px;padding:8px;width:100%;min-width:0;background:#fff;font-size:11px;color:var(--ink)}.vbind-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.vbind-catalog summary{font-size:11px;cursor:pointer;color:var(--green)}.vbind-catalog details[open]{max-height:280px;overflow:auto;padding-bottom:6px}.vbind-catalog-scroll{max-height:60vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.vbind-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.vbind-candidate{min-width:0;padding:5px;background:#f4f6f0;border:1px solid #dce5d8;border-radius:6px;cursor:grab;text-align:left;color:var(--ink);touch-action:manipulation}.vbind-candidate .vbind-art{height:auto;margin-bottom:5px}.vbind-candidate strong,.vbind-candidate>span:not(.vbind-art),.vbind-candidate small{display:block;font-size:10px;line-height:1.4;overflow-wrap:anywhere}.vbind-candidate small{color:var(--muted);font-size:9px}.vbind-candidate.selected{border-color:#99722c;outline:2px solid #ba9347;background:#fff4d9}.vbind-more{width:100%;margin-top:12px}.vbind-no-results{grid-column:1/-1;font-size:12px;padding:12px}.vbind-help{margin-top:14px}.vbind-busy .vbind-pocket,.vbind-busy .vbind-candidate{opacity:.65;cursor:wait}.vbind-busy [data-vbind-config]{pointer-events:none;opacity:.5}#vbind-config{width:min(470px,calc(100vw - 30px));padding:24px;border:1px solid var(--line);border-radius:14px;margin:auto;color:var(--ink)}#vbind-config::backdrop{background:#102e2966}#vbind-config h2{margin:0 0 18px}#vbind-config label{margin-top:12px}#vbind-config p{font-size:12px;line-height:1.6;margin:14px 0;color:var(--muted)}.vbind-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.vbind-config-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.vbind-config-error{color:#a2352d!important}.vbind-pocket-main:focus-visible,.vbind-candidate:focus-visible,.vbind-remove:focus-visible{outline:3px solid #ba9347;outline-offset:2px}
.vbind-module [hidden]{display:none!important}
.vbind-slot-index{display:none!important}
.vbind-pockets .vbind-pocket.free-shape{padding:0;border:0;background:none;box-shadow:none;pointer-events:none;outline:none}
.vbind-pocket.free-shape::after{display:none}
.vbind-shape{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:drop-shadow(0 1px 1px #51614e55)}
.vbind-shape-fill{fill:#d9e0d4}
.vbind-pocket.free-shape.selected .vbind-shape-fill,.vbind-pocket.free-shape.drop-target .vbind-shape-fill{fill:#ecd89a}
.vbind-pocket.free-shape.selected .vbind-shape,.vbind-pocket.free-shape.drop-target .vbind-shape{filter:drop-shadow(0 0 2px #a87708) drop-shadow(0 0 2px #a87708)}
.free-shape .vbind-pocket-main{position:absolute;inset:0;pointer-events:auto;overflow:hidden;border-radius:0}
.vbind-custom-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none}
.vbind-edge-cell{position:relative;min-width:0;min-height:0;pointer-events:none;z-index:5}
.vbind-seam button{pointer-events:auto}
.vbind-seam,.vbind-page-insert{opacity:.24;transition:opacity .15s}
.vbind-seam:hover,.vbind-seam:focus-within,.vbind-page-insert:hover,.vbind-page-insert:focus-visible{opacity:1}
.vbind-anchor-tools{position:absolute;top:2px;display:flex;justify-content:space-between;gap:1px;z-index:4;pointer-events:none;opacity:.3;transition:opacity .15s}
.vbind-pocket:hover .vbind-anchor-tools,.vbind-anchor-tools:focus-within{opacity:1}
.vbind-anchor-tools .vbind-remove,.vbind-anchor-tools .vbind-split,.vbind-image-upload,.vbind-allocate-one{position:static;pointer-events:auto;display:grid;place-items:center;border:1px solid #a3b19e;background:#f7f9ef;color:#365944;border-radius:5px;min-width:18px;width:20px;height:20px;cursor:pointer;padding:0;font-size:16px}
.vbind-allocate-one{color:#075985!important;background:#e0f2fe!important;border-color:#38bdf8!important;font-weight:900}
@media(hover:none){.vbind-seam,.vbind-page-insert,.vbind-anchor-tools{opacity:.45}}
.vbind-pockets{--vbind-gap:24px;gap:var(--vbind-gap)!important;grid-template-rows:repeat(var(--vbind-rows),minmax(0,1fr));aspect-ratio:calc(var(--vbind-cols)*5)/calc(var(--vbind-rows)*7)}
.vbind-pockets .vbind-pocket{aspect-ratio:auto;min-height:0;container-type:size}
.vbind-pocket.merged{background:linear-gradient(135deg,#f6f5e6,#c2d1c0);border-color:#7a9475}
.vbind-pocket .vbind-art{aspect-ratio:auto;display:grid;place-items:center}
.vbind-pocket .vbind-art>.card-surface{max-width:100%;max-height:100%;width:min(100cqw,calc(100cqh * 5 / 7));height:auto;aspect-ratio:5/7;margin:auto}
.vbind-seam{position:absolute;z-index:5;display:flex;gap:2px;align-items:center;justify-content:center}
.vbind-seam.across{right:calc(-1*var(--vbind-gap));width:var(--vbind-gap);top:50%;transform:translateY(-50%);flex-direction:column}
.vbind-seam.down{bottom:calc(-1*var(--vbind-gap));height:var(--vbind-gap);left:50%;transform:translateX(-50%)}
.vbind-seam button,.vbind-page-insert,.vbind-split{display:inline-grid;place-items:center;padding:0;width:20px;height:20px;min-width:20px;border:1px solid #9fae9b;border-radius:5px;background:#f7f9ef;color:#365944;font-size:17px;line-height:1;cursor:pointer;touch-action:manipulation}
.vbind-seam button:disabled{opacity:.28;cursor:not-allowed}
.vbind-seam button:hover:not(:disabled),.vbind-split:hover{background:#d5e7cc}
.vbind-seam button:focus-visible,.vbind-split:focus-visible{outline:3px solid #ad8329;outline-offset:1px}
.vbind-split{position:absolute;bottom:3px;right:3px;z-index:3;font-size:13px}
.vbind-page-insert{margin-left:8px;vertical-align:middle}
.vbind-busy .vbind-seam,.vbind-busy .vbind-page-insert,.vbind-busy .vbind-split{pointer-events:none;opacity:.5}
.vbind-drag-count{position:absolute;right:0;bottom:0;padding:5px 8px;border-radius:6px;background:#173f36;color:#fff;font-size:12px;white-space:nowrap}
.vbind-drag-ghost{position:fixed;left:0;top:0;width:90px;height:126px;pointer-events:none;z-index:10000;opacity:.85;filter:drop-shadow(0 5px 8px #0006)}
.vbind-candidate,.vbind-pocket-main{user-select:none;-webkit-user-select:none}
.vbind-pocket.is-planned-missing .vbind-art>img,.vbind-pocket.is-planned-missing .card-surface{filter:grayscale(1);opacity:.48}
.vbind-ownership-badge{position:absolute;left:50%;bottom:7%;transform:translateX(-50%);z-index:4;max-width:88%;padding:3px 6px;border-radius:999px;font-size:clamp(7px,1.2cqw,10px);font-weight:800;line-height:1;white-space:nowrap;box-shadow:0 2px 8px #0f172a24;pointer-events:none}
.vbind-ownership-badge.missing{color:#5f6b7a;background:#f8fafce8;border:1px solid #cbd5e1}.vbind-ownership-badge.available{color:#075985;background:#f0f9ffe8;border:1px solid #7dd3fc}.vbind-ownership-badge.owned{color:#087443;background:#ecfdf5e8;border:1px solid #86efac}
.vbind-workbench{scroll-margin-top:110px}
.vbind-candidate{content-visibility:auto;contain-intrinsic-size:auto 230px}
@media(max-width:650px){.sidebar{display:block}.sidebar .brand{margin:0 0 8px 2px}.sidebar nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}.sidebar nav a{display:flex;flex-direction:column;gap:3px;align-items:center;padding:6px 1px;text-align:center;font-size:9px;line-height:1.1;min-width:0}.sidebar nav a span{display:block;font-size:15px}}
@media(min-width:1500px){.vbind-layout{grid-template-columns:minmax(0,1fr) 370px}.vbind-results{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.vbind-layout{grid-template-columns:minmax(0,1fr) 270px;gap:12px}.vbind-book{padding:8px;gap:8px}.vbind-sheet{padding:5px}.vbind-pockets{gap:4px}.vbind-toolbar{flex-wrap:wrap}}
@media(max-width:800px){.vbind-layout{grid-template-columns:minmax(0,1fr)}.vbind-catalog{position:static}.vbind-catalog-scroll{max-height:52vh}.vbind-results{grid-template-columns:repeat(4,minmax(0,1fr))}.vbind-book{gap:10px;padding:8px}.vbind-pocket{padding:2px}.vbind-heading h1{font-size:23px}.vbind-heading .button{font-size:11px;padding:9px}.vbind-toolbar{gap:6px}.vbind-toolbar .button{padding:8px 12px}.vbind-selection{font-size:11px}.vbind-remove{width:20px;height:20px;font-size:14px}.vbind-sheet footer{font-size:9px}.vbind-candidate strong,.vbind-candidate>span:not(.vbind-art){font-size:9px}.vbind-candidate small{font-size:8px}.vbind-toolbar label{font-size:10px}.vbind-toolbar>span{font-size:10px}.vbind-empty-plus{font-size:16px}}

/* A carta física mede aproximadamente 63 × 88 mm. */
.vbind-pocket,.vbind-art{aspect-ratio:63/88}
.vbind-pockets{aspect-ratio:calc(var(--vbind-cols)*63)/calc(var(--vbind-rows)*88)}
.vbind-pocket .vbind-art>.card-surface{width:min(100cqw,calc(100cqh * 63 / 88));aspect-ratio:63/88}
.vbind-cover-model{align-self:flex-start;padding:4px 9px;border-radius:999px;background:#e8f3ff;color:#12669b;font-size:.7rem;font-style:normal;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.vbind-heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
#vbind-config.vbind-smart-config{width:min(900px,calc(100vw - 24px));max-height:calc(100vh - 32px);overflow:auto}
.vbind-smart-config form{display:grid;gap:13px}.vbind-smart-config form>label{font-weight:750;color:#23354a}.vbind-smart-config small{font-weight:500;color:#687c91}
.vbind-rarity-choice{border:1px solid #dbe5ee;border-radius:12px;padding:12px}.vbind-rarity-choice legend{padding:0 6px;font-weight:850;color:#17283b}.vbind-rarity-choice>p{margin:0 0 10px!important;color:#687c91;font-size:.84rem!important}.vbind-rarity-choice>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.vbind-rarity-choice label{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;margin:0!important;padding:7px 9px;border-radius:9px;background:#f4f7fa;font-size:.82rem!important}.vbind-rarity-choice input{margin:0;width:auto!important}
@media(max-width:700px){.vbind-rarity-choice>div{grid-template-columns:repeat(2,minmax(0,1fr))}.vbind-heading-actions{justify-content:flex-start}}

/* Legibilidade das capas e ações responsivas do criador inteligente. */
.vbind-cover h2{color:#f8fafc!important;text-shadow:0 1px 2px #081a1599}
@media(max-width:700px){
  .vbind-module>.heading{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
  .vbind-module>.heading>div:last-child{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .vbind-module>.heading .button{justify-content:center;min-width:0;white-space:normal;text-align:center;line-height:1.25}
}
@media(max-width:430px){
  .vbind-module>.heading>div:last-child{grid-template-columns:1fr}
  .vbind-module>.heading .button{width:100%}
}

/* Fichários usam a largura extra sem alterar qualquer outra página. */
main.vbind-module{max-width:1800px}
.vbind-layout{grid-template-columns:minmax(0,1fr) 370px;gap:24px}
.vbind-catalog{background:#eef6ff;border-color:#bfd8f2;box-shadow:0 10px 28px #173f6520}
.vbind-catalog h2{color:#123f68}
.vbind-catalog #vbind-filters>details[open]{max-height:none;overflow:visible}
.vbind-catalog #vbind-filters>details[open]>.vbind-filter-grid{overflow:visible}
.vbind-filter-heading{margin:10px 0 2px!important;color:#12669b!important;font-size:11px!important;font-weight:800}
.vbind-filter-extra{display:block;padding-top:2px}
.vbind-pocket.is-planned-missing .vbind-art>img,
.vbind-pocket.is-planned-missing .card-surface{filter:none;opacity:1}
.vbind-pocket.is-virtual-missing{background:linear-gradient(145deg,#f9fbff,#e7f1fb);border-color:#9fc0de}
.vbind-virtual-card{display:flex;width:100%;height:100%;box-sizing:border-box;padding:clamp(4px,7cqw,14px);flex-direction:column;align-items:center;justify-content:center;gap:clamp(3px,4cqh,10px);overflow:hidden;text-align:center;color:#173f65;background:radial-gradient(circle at 50% 28%,#fff 0,#f2f8fd 48%,#dfecf7 100%)}
.vbind-virtual-card b{flex:0 0 auto;max-width:100%;font-size:clamp(8px,8cqw,18px);line-height:1;letter-spacing:.06em;color:#1670ad}
.vbind-virtual-card strong{flex:0 1 auto;max-width:100%;font-size:clamp(9px,9cqw,20px);line-height:1.08;overflow-wrap:anywhere;word-break:normal}
.vbind-virtual-card span{flex:0 1 auto;max-width:100%;font-size:clamp(6px,5.2cqw,12px);line-height:1.18;color:#557189;overflow-wrap:anywhere;word-break:normal}
@media(max-width:800px){
  main.vbind-module{max-width:none}
  .vbind-layout{grid-template-columns:minmax(0,1fr);gap:18px}
}

/* Capas inferidas, exclusão segura e seletor multirregião. */
.vbind-cover-shell{position:relative;min-width:0}
.vbind-cover{isolation:isolate;position:relative;overflow:hidden}
.vbind-cover-art{position:absolute;z-index:-2;inset:0}
.vbind-cover-art img{width:100%;height:100%;object-fit:cover;filter:blur(10px) saturate(1.25);transform:scale(1.15);opacity:.72}
.vbind-cover.theme-set .vbind-cover-art img{object-fit:contain;filter:blur(6px) saturate(1.35);opacity:.82}
.vbind-cover.theme-pokemon .vbind-cover-art img,.vbind-cover[class*="theme-region-"] .vbind-cover-art img{object-fit:contain;filter:drop-shadow(0 12px 14px #0018) saturate(1.18);transform:scale(.86);opacity:.8}
.vbind-cover-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(125deg,#183e36e8,#102d27d6 56%,#0b2230e8)}
.vbind-cover.theme-trainer .vbind-cover-shade{background:linear-gradient(125deg,#10233de8,#1b3650c7,#0c1728eb)}
.vbind-cover.theme-pokedex .vbind-cover-shade,.vbind-cover[class*="theme-region-"] .vbind-cover-shade{background:linear-gradient(125deg,#113653df,#164c5fd0,#0d2736e8)}
.vbind-cover p,.vbind-cover small{color:#dbe9e1}
.vbind-delete{position:absolute;z-index:4;right:10px;top:10px;width:34px;height:34px;border:1px solid #ffffff42;border-radius:50%;background:#091a1eb8;color:#fff;font-size:20px;line-height:1;cursor:pointer;backdrop-filter:blur(6px)}
.vbind-delete:hover,.vbind-delete:focus-visible{background:#b42318;color:#fff;outline:3px solid #fff8}
.vbind-region-choice{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border:1px solid #dbe5ee;border-radius:12px;padding:12px}
.vbind-region-choice[hidden]{display:none!important}
.vbind-region-choice legend{padding:0 6px;font-weight:850;color:#17283b}
.vbind-region-choice label{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;margin:0!important;padding:7px 9px;border-radius:9px;background:#f4f7fa;font-size:.82rem!important}
.vbind-region-choice input{width:auto!important;margin:0}
.vbind-region-all{grid-column:1/-1;background:#e8f3ff!important;color:#12669b}
.vbind-pokedex-config{display:grid;grid-template-columns:1fr;gap:12px}
.vbind-smart-choice{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border:1px solid #dbe5ee;border-radius:12px;padding:12px;min-width:0}
.vbind-smart-choice[hidden]{display:none!important}
.vbind-smart-choice legend{padding:0 6px;font-weight:850;color:#17283b}
.vbind-smart-choice label{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;margin:0!important;padding:7px 9px;border-radius:9px;background:#f4f7fa;font-size:.82rem!important;min-width:0;cursor:pointer}
.vbind-smart-choice label>span:last-child{min-width:0;overflow-wrap:anywhere}
.vbind-smart-choice input[type="checkbox"]{width:auto!important;flex:0 0 auto;margin:0}
.vbind-filter-popover{position:relative;border:1px solid #dbe5ee;border-radius:12px;background:#fff}
.vbind-filter-popover>summary{list-style:none;padding:12px 42px 12px 14px;font-weight:850;color:#17283b;cursor:pointer}
.vbind-filter-popover>summary::-webkit-details-marker{display:none}
.vbind-filter-popover>summary:after{content:'+';position:absolute;right:14px;top:9px;font-size:21px;color:#2563eb}
.vbind-filter-popover[open]>summary:after{content:'−'}
.vbind-filter-popover[open]>.vbind-smart-choice,.vbind-filter-popover[open]>.vbind-rarity-choice{position:absolute;z-index:25;left:-1px;right:-1px;top:calc(100% + 5px);max-height:min(360px,55vh);overflow:auto;background:#fff;box-shadow:0 18px 45px rgba(17,24,39,.18)}
.vbind-filter-popover>.vbind-smart-choice,.vbind-filter-popover>.vbind-rarity-choice{border:1px solid #dbe5ee;border-radius:12px;padding:12px}
.vbind-choice-all{grid-column:1/-1;background:#e8f3ff!important;color:#12669b}
.vbind-energy-choice{grid-template-columns:repeat(5,minmax(0,1fr))}
.vbind-energy-icon{display:block;flex:0 0 30px;width:30px;height:30px;background-image:url('/static/assets/pokemon-official/energy-types.png');background-repeat:no-repeat;background-size:120px 90px;border-radius:50%}
.vbind-energy-icon.energy-fire{background-position:0 0}.vbind-energy-icon.energy-colorless{background-position:-30px 0}.vbind-energy-icon.energy-dragon{background-position:0 -30px}.vbind-energy-icon.energy-metal{background-position:-90px 0}.vbind-energy-icon.energy-fighting{background-position:-60px -30px}.vbind-energy-icon.energy-psychic{background-position:-90px -30px}.vbind-energy-icon.energy-darkness{background-position:0 -60px}.vbind-energy-icon.energy-grass{background-position:-30px -60px}.vbind-energy-icon.energy-lightning{background-position:-60px -60px}.vbind-energy-icon.energy-water{background-position:-90px -60px}
.vbind-pokemon-choice{grid-template-columns:1fr;max-height:340px;overflow:hidden}
.vbind-pokemon-search{margin:0!important}
.vbind-pokemon-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:230px;overflow:auto;overscroll-behavior:contain;padding-right:3px}
.vbind-pokemon-options label{content-visibility:auto;contain-intrinsic-size:auto 48px}
.vbind-pokemon-options img,.vbind-pokemon-icon-empty{width:34px;height:34px;object-fit:contain;flex:0 0 34px}
.vbind-pokemon-icon-empty{display:grid;place-items:center;color:#8aa1b5;font-size:22px}
main.vbind-module{width:min(1800px,calc(100% - 32px));max-width:1800px}
.vbind-catalog{background:linear-gradient(180deg,#e5f2ff,#f4f9ff 130px,#eef6ff);border-color:#9fc6e8;box-shadow:0 12px 32px #173f6529}
.vbind-title-line{display:flex;align-items:center;gap:9px}.vbind-title-line h1{min-width:0}.vbind-rename{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border:1px solid #b9c9d7;border-radius:50%;background:#fff;color:#12669b;font-size:18px;cursor:pointer}.vbind-rename:hover,.vbind-rename:focus-visible{background:#e6f3ff;outline:3px solid #b9dcf5}
/* The generic details rule used by the old filter disclosure clipped the
   absolute multi-select panel to the height of its summary. */
.vbind-catalog .multi-picker[open]{max-height:none!important;overflow:visible!important;padding-bottom:0!important;z-index:50}
.vbind-catalog .multi-panel{z-index:60}

/* Controles compactos do catálogo e navegação natural pelas laterais do fichário. */
.vbind-book-shell{position:relative;min-width:0;max-width:100%;overflow:visible;padding-bottom:42px}
.vbind-book-shell>.vbind-book{min-width:0;max-width:100%;margin:0}
.vbind-page-turn{position:absolute;z-index:18;top:50%;display:grid;place-items:center;width:42px;height:54px;padding:0;border:1px solid #ffffff80;border-radius:12px;background:#102f55dc;color:#fff;box-shadow:0 8px 22px #10233f40;cursor:pointer;transform:translateY(-50%);backdrop-filter:blur(8px)}
.vbind-page-turn.previous{left:10px}.vbind-page-turn.next{right:10px}
.vbind-page-turn:hover,.vbind-page-turn:focus-visible{background:#1769e0;outline:3px solid #a9d2ff;outline-offset:2px}
.vbind-page-turn:disabled{opacity:.28;cursor:not-allowed;box-shadow:none}
.vbind-page-jump{position:absolute;left:50%;bottom:0;display:flex;align-items:center;gap:10px;min-height:34px;padding:4px 10px;border:1px solid #c7d4e3;border-radius:999px;background:#fff;color:#52677f;font-size:10px;box-shadow:0 5px 14px #10233f12;transform:translateX(-50%)}
.vbind-page-jump label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px}
.vbind-page-jump input{width:48px;padding:5px 6px;border:1px solid #c7d4e3;border-radius:7px;text-align:center}
.vbind-toolbar{justify-content:flex-end}
.vbind-toolbar>span{margin-left:0}
.vbind-catalog-filters{position:relative;margin:10px 0;border:1px solid #b9d2e9;border-radius:10px;background:#fff}
.vbind-catalog-filters>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:9px 36px 9px 11px;list-style:none;color:#123f68;font-size:11px;font-weight:850;cursor:pointer}
.vbind-catalog-filters>summary::-webkit-details-marker{display:none}
.vbind-catalog-filters>summary:after{content:'+';position:absolute;right:12px;top:8px;color:#1769e0;font-size:21px;line-height:1}
.vbind-catalog-filters[open]>summary:after{content:'−'}
.vbind-catalog-filters>summary small{color:#6a7f95;font-size:9px;font-weight:650}
.vbind-filter-body{display:grid;gap:8px;padding:0 10px 10px;border-top:1px solid #dce7f2}
.vbind-catalog-filters:not([open])>.vbind-filter-body{display:none}
.vbind-clear-filters{justify-self:start}
.vbind-workbench,.vbind-book,.vbind-sheet,.vbind-pockets{min-width:0;max-width:100%}
.vbind-sheet{width:100%;box-sizing:border-box}

@media(max-width:800px){
  .vbind-page-turn{width:34px;height:46px;border-radius:9px}
  .vbind-page-turn.previous{left:4px}.vbind-page-turn.next{right:4px}
  .vbind-page-jump{max-width:calc(100% - 16px)}
  .vbind-catalog-filters>summary{min-height:46px}
}
@media(max-width:800px){main.vbind-module{width:100%;max-width:none}.vbind-region-choice,.vbind-smart-choice{grid-template-columns:repeat(2,minmax(0,1fr))}.vbind-pokemon-options{grid-template-columns:1fr}.vbind-energy-choice{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Fichário de trocas: uma vitrine de exemplares físicos, não um catálogo genérico. */
.vbind-trade-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;margin:0 0 16px;padding:14px 16px;border:1px solid #bad2e9;border-radius:14px;background:linear-gradient(115deg,#f7fbff,#edf6ff);box-shadow:0 8px 22px #173f6510}
.vbind-trade-summary>div:first-child{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.vbind-trade-summary>div:first-child span{display:flex;min-width:0;flex-direction:column;gap:3px;color:#63778d;font-size:11px}
.vbind-trade-summary>div:first-child strong{overflow:hidden;color:#10233f;font-size:18px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.vbind-trade-summary>p{grid-column:1/-1;margin:0;color:#526b83;font-size:12px;line-height:1.5;max-width:78ch}
.vbind-price-actions [hidden]{display:none!important}
html[data-color-mode="dark"] .vbind-trade-summary{background:#102944;border-color:#426b89;box-shadow:none}
html[data-color-mode="dark"] .vbind-trade-summary>div:first-child span,
html[data-color-mode="dark"] .vbind-trade-summary>p{color:#c5d8e7}
html[data-color-mode="dark"] .vbind-trade-summary>div:first-child strong{color:#f4f9ff}
.vbind-price-actions{display:flex;gap:8px;align-items:center}
.vbind-price-progress{grid-column:1/-1;padding-top:11px;border-top:1px solid #d6e4f1}
.vbind-price-progress>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;color:#233c59;font-size:11px}
.vbind-price-progress progress{display:block;width:100%;height:8px;border:0;border-radius:999px;overflow:hidden;background:#dce8f3;accent-color:#1671df}
.vbind-price-progress progress::-webkit-progress-bar{background:#dce8f3}.vbind-price-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#1671df,#16b8d4)}
.vbind-price-progress p{margin:6px 0 0;color:#63778d;font-size:10px}
.vbind-trade-mode .vbind-pocket-main{display:grid;grid-template-rows:minmax(0,1fr) auto;background:#f7fbff}
.vbind-trade-mode .vbind-pocket-main>.vbind-art{width:100%;height:100%;min-height:0;aspect-ratio:auto;background:#e7eff7}
.vbind-trade-mode .vbind-pocket-main>.vbind-art>img,.vbind-trade-mode .vbind-pocket-main>.vbind-art>.card-surface{width:100%;height:100%;object-fit:contain}
.vbind-trade-meta{position:relative;z-index:5;display:flex;min-width:0;align-items:center;justify-content:space-between;gap:5px;padding:5px 6px;border-top:1px solid #d4e1ed;background:#fff;color:#536a82;font-size:clamp(6px,1.7cqw,10px);line-height:1.05;text-align:left}
.vbind-trade-meta>span{display:flex;min-width:0;align-items:center;gap:4px}.vbind-trade-meta b{color:#10233f;font-size:1.05em}.vbind-trade-meta small{color:#667b90;font-size:.9em}.vbind-trade-meta>strong{overflow:hidden;color:#1264c8;font-size:1.05em;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.vbind-trade-mode .vbind-ownership-badge{bottom:18%}
@media(max-width:800px){
  .vbind-trade-summary{grid-template-columns:1fr;padding:12px}.vbind-trade-summary>div:first-child{grid-template-columns:repeat(2,minmax(0,1fr))}.vbind-price-actions{justify-content:stretch}.vbind-price-actions .button{flex:1}.vbind-trade-summary>div:first-child strong{font-size:16px}
  .vbind-trade-meta{padding:3px 4px;font-size:clamp(5px,2cqw,8px)}
}

}

/* Source: catalog-tools.css; original cascade layer/order preserved. */
@layer features {
.multi-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--muted);font-size:10px;font-weight:600}
.toolbar .multi-field.grow{flex:1;min-width:230px}.multi-picker{position:relative;min-width:0;color:var(--ink)}
.multi-picker>summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:7px;padding:10px 28px 10px 11px;background:white;height:39px;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative}
.multi-picker>summary::-webkit-details-marker{display:none}.multi-picker>summary::after{content:'⌄';position:absolute;right:10px}.multi-picker[open]{z-index:12}.multi-picker[open]>summary{border-color:var(--green)}
.multi-panel{position:absolute;z-index:30;top:calc(100% + 5px);left:0;width:max(100%,245px);max-width:calc(100vw - 40px);padding:10px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 30px #183f3629}
.multi-panel>input{width:100%;height:34px;padding:7px;border:1px solid var(--line);border-radius:5px;font-size:12px}
.multi-options{max-height:260px;overflow-y:auto;overscroll-behavior:contain;margin-top:5px}
.multi-options .multi-option{display:flex;flex-direction:row;align-items:center;gap:9px;padding:8px 4px;color:var(--ink);font-size:12px;font-weight:400;cursor:pointer}
.multi-options .multi-option input{width:16px;height:16px;flex-shrink:0;accent-color:var(--green);padding:0;margin:0}.multi-clear{background:var(--mint);color:var(--green);border:0;border-radius:5px;padding:7px 9px;margin-top:7px;font-size:11px}.is-disabled{opacity:.55}
.multi-rarity-symbol{display:inline-flex;width:72px;min-width:72px;justify-content:center;align-items:center;flex:0 0 72px;white-space:nowrap;font-size:15px;font-weight:700;line-height:1;letter-spacing:-1px}
.multi-rarity-symbol.compact{width:auto;min-width:20px;flex:0 0 auto;font-size:13px}.multi-picker>summary:has(.multi-rarity-symbol){display:flex;align-items:center;gap:7px}
.rarity-symbol.tone-preto{color:#171b18}.rarity-symbol.tone-prata{color:#929ba3}.rarity-symbol.tone-dourado{color:#e3a414}.rarity-symbol.tone-magenta{color:#d91b71}.rarity-symbol.tone-verde{color:#91a900}.rarity-symbol.tone-neutro{color:#747d78}
.rarity-symbol.tone-arco_iris{background:linear-gradient(115deg,#ed3d68,#ee9e20,#3cae7a,#2e77c2,#904bbd);-webkit-background-clip:text;background-clip:text;color:transparent}
.multi-picker-simple .multi-options{margin-top:0}.multi-picker-simple .multi-panel{padding-block:8px}
.multi-panel-portal{position:fixed;z-index:1400;margin:0;overflow:hidden;isolation:isolate}
.multi-panel-portal .multi-options{max-height:min(340px,calc(100dvh - 190px));overflow-y:auto}
.set-heading{align-items:center}.set-heading-brand{display:flex;gap:24px;align-items:center;min-width:0}.set-heading-brand>.set-logo-wrap{width:260px;max-width:40vw;border-radius:12px;flex-shrink:0}.set-heading-brand .set-art{height:125px;padding:15px}.set-heading h1{font-size:25px}.set-tile h3 .set-code{font-size:11px;white-space:nowrap;color:var(--muted);font-weight:500;margin-left:5px}
.set-detail-progress{border:1px solid var(--line);background:white;border-radius:10px;padding:16px 18px;margin:0 0 20px}.set-detail-progress .progress-track{margin:10px 0 0;height:9px}.set-detail-progress .progress-label{margin:0;gap:10px}
.results-head{gap:12px;flex-wrap:wrap}.results-head .pdf-export{margin-left:auto}.pdf-dialog{border:1px solid var(--line);border-radius:14px;padding:0;max-width:500px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 16px 70px #0003}.pdf-dialog::backdrop{background:#18342c66}.pdf-panel{padding:28px;position:relative}.pdf-panel h2{padding-right:24px;margin-bottom:14px}.pdf-panel p{margin:12px 0;line-height:1.6}.pdf-panel progress{width:100%;accent-color:var(--green);height:14px}.pdf-panel small{display:block;color:var(--muted);margin-top:18px;line-height:1.5}.pdf-close{position:absolute;right:12px;top:9px;border:0;background:transparent;font-size:26px;color:var(--muted)}.pdf-done{margin-left:8px}
@media(max-width:800px){.multi-panel-portal{inset:auto 12px calc(74px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:min(58dvh,480px);padding:14px;border-radius:16px;box-shadow:0 22px 60px #10233f3d}.multi-panel-portal .multi-options{max-height:min(43dvh,340px)}}
@media(max-width:600px){.set-heading{flex-wrap:wrap}.set-heading-brand{gap:12px;align-items:center}.set-heading-brand>.set-logo-wrap{width:140px;max-width:38vw}.set-heading-brand .set-art{height:95px;padding:9px}.set-heading h1{font-size:19px}.set-heading .subtitle{font-size:11px}.toolbar .multi-field.grow{min-width:180px}.multi-panel:not(.multi-panel-portal){width:min(285px,calc(100vw - 40px))}.multi-field:nth-child(even) .multi-panel:not(.multi-panel-portal){left:auto;right:0}.results-head .pdf-export{padding:8px 10px}.set-detail-progress{padding:12px}.set-detail-progress .progress-label{font-size:11px}}

}

/* Source: price-lookup.css; original cascade layer/order preserved. */
@layer features {
.price-page{display:grid;gap:24px}.price-search-panel,.price-selection{background:#fff;border:1px solid #e3e8ef;border-radius:14px;padding:24px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.price-search-panel>label{display:block;font-size:.84rem;font-weight:800;color:#334155;margin-bottom:9px}.price-search-field{display:flex;align-items:center;gap:12px;border:2px solid #bfdbfe;background:#f8fbff;border-radius:12px;padding:0 15px;transition:.16s}.price-search-field:focus-within{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.1);background:#fff}.price-search-field span{font-size:1.7rem;color:#2563eb}.price-search-field input{width:100%;border:0;background:transparent;outline:0;padding:15px 0;font:600 1rem Inter,system-ui;color:#0f172a}.price-search-results{display:grid;margin-top:8px;border-radius:10px;overflow:hidden}.price-suggestion{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;text-align:left;border:0;border-bottom:1px solid #edf0f4;background:#fff;padding:9px 10px;cursor:pointer}.price-suggestion:hover,.price-suggestion:focus{background:#eff6ff;outline:0}.price-suggestion>span:first-child{width:34px;height:47px;display:grid;place-items:center;border-radius:4px;overflow:hidden;background:#f1f5f9}.price-suggestion img{width:100%;height:100%;object-fit:cover}.price-suggestion strong,.price-suggestion small{display:block}.price-suggestion small{color:#64748b;margin-top:3px}.price-suggestion i{font-style:normal;color:#2563eb;font-weight:750;font-size:.82rem}.price-no-results{padding:18px;color:#64748b;text-align:center}.price-empty-state{text-align:center;padding:38px 18px;color:#64748b}.price-empty-state>div{width:60px;height:60px;display:grid;place-items:center;margin:auto;border-radius:50%;background:#eff6ff;color:#2563eb;font-size:2.2rem}.price-empty-state h2{color:#0f172a;margin:14px 0 6px}.price-selected-card{display:grid;grid-template-columns:170px 1fr;gap:26px;align-items:start}.price-selected-image{aspect-ratio:2.5/3.5;border-radius:10px;overflow:hidden;background:#f1f5f9;display:grid;place-items:center}.price-selected-image img{width:100%;height:100%;object-fit:contain}.price-selected-info h2{margin:5px 0;font-size:1.7rem}.price-selected-info>p{color:#64748b}.price-kicker{font-size:.72rem;letter-spacing:.14em;font-weight:900;color:#2563eb}.price-attributes{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin:20px 0}.price-attributes label{font-size:.78rem;font-weight:800;color:#475569}.price-attributes select{display:block;width:100%;margin-top:7px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:11px;color:#0f172a;font:600 .9rem Inter,system-ui}.price-search-button{display:inline-flex;gap:8px;align-items:center}.price-search-button span{font-size:1.3rem}.price-note{font-size:.8rem!important;color:#64748b!important;line-height:1.45}.price-dialog{width:min(520px,calc(100vw - 28px));border:0;padding:0;border-radius:18px;box-shadow:0 28px 80px rgba(15,23,42,.28)}.price-dialog::backdrop{background:rgba(15,23,42,.5);backdrop-filter:blur(3px)}.price-dialog-body{position:relative;padding:34px;text-align:center}.price-dialog-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:#64748b;font-size:1.8rem;cursor:pointer}.price-progress-icon{width:70px;height:70px;display:grid;place-items:center;border-radius:50%;background:#eff6ff;color:#2563eb;font-size:2.4rem;margin:0 auto 18px;animation:pricePulse 1.2s ease-in-out infinite}.price-progress h2,.price-result h2{margin:7px 0 8px}.price-progress p{color:#64748b}.price-progress-track{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:24px 0 9px}.price-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#0ea5e9);border-radius:inherit;transition:width .45s ease}.price-progress strong{color:#2563eb}.price-progress small{display:block;color:#94a3b8;margin-top:18px}.price-result-value{font-size:3rem;font-weight:900;color:#16a36a;margin:24px 0}.price-result dl{display:grid;gap:1px;background:#e2e8f0;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;text-align:left}.price-result dl div{display:flex;justify-content:space-between;gap:18px;background:#fff;padding:11px 13px}.price-result dt{color:#64748b}.price-result dd{margin:0;text-align:right;font-weight:750;color:#0f172a}.price-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.price-failure .price-result-value{color:#e75a46}@keyframes pricePulse{50%{transform:scale(1.08);box-shadow:0 0 0 10px rgba(37,99,235,.08)}}
.price-mapping{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:-7px 0 18px;padding:10px 12px;border-radius:9px;background:#f0f7ff;color:#1e3a5f;font-size:.82rem}.price-mapping>span{color:#0ea5e9;font-size:1.1rem}.price-mapping small{margin-left:auto;color:#64748b}.price-search-button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:639px){.price-search-panel,.price-selection{padding:16px}.price-selected-card{grid-template-columns:92px 1fr;gap:15px}.price-selected-info h2{font-size:1.25rem}.price-attributes{grid-template-columns:1fr}.price-mapping small{width:100%;margin-left:0}.price-suggestion{grid-template-columns:38px 1fr}.price-suggestion i{display:none}.price-dialog-body{padding:28px 20px}.price-dialog-actions{flex-direction:column}.price-dialog-actions .button{width:100%;justify-content:center}.price-result-value{font-size:2.5rem}}
.price-search-button[hidden]{display:none!important}

}

/* Source: modern.css; original cascade layer/order preserved. */
@layer legacy {
/* MundoDex Collector Core — camada visual progressiva.
   Carregada por último para modernizar a interface sem alterar os fluxos. */
:root{
  --core-navy:#071824;
  --core-navy-2:#102a3a;
  --core-red:#f23843;
  --core-red-dark:#cf2530;
  --core-gold:#d4a642;
  --core-blue:#2786e8;
  --core-success:#34a66b;
  --bg:#f3f5f7;
  --paper:#fff;
  --ink:#17222b;
  --muted:#687783;
  --line:#dfe5e9;
  --green:#174f68;
  --mint:#eaf3f6;
  --sidebar:244px;
  --shadow-sm:0 5px 16px rgba(7,24,36,.055);
  --shadow-md:0 16px 45px rgba(7,24,36,.10);
  --radius-sm:12px;
  --radius-md:18px;
  --radius-lg:26px;
}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
body:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 82% -12%,rgba(39,134,232,.08),transparent 28rem),linear-gradient(180deg,#f8f9fa 0,#f3f5f7 26rem)}
h1,h2,h3{font-family:Manrope,system-ui,sans-serif;color:var(--ink)}
h1{font-size:clamp(2rem,3vw,3rem);letter-spacing:-.055em;line-height:1.04}
h2{letter-spacing:-.035em}
.workspace{min-width:0}
main{max-width:1520px;padding:36px 42px 60px}
.topbar{position:sticky;top:0;z-index:4;height:64px;padding:0 42px;border-color:rgba(223,229,233,.8);background:rgba(248,249,250,.82);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#75828c}
.local-tag{display:inline-flex;align-items:center;gap:7px;border:0;background:#eaf1f3;color:#52636e;padding:7px 11px;font-weight:700}
.local-tag:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--core-success);box-shadow:0 0 0 4px rgba(52,166,107,.12)}

/* Navegação Collector Dark */
.sidebar{width:var(--sidebar);padding:30px 18px 22px;background:linear-gradient(180deg,#071824,#091c29 72%,#071824);border:0;box-shadow:12px 0 40px rgba(7,24,36,.08);color:#fff}
.brand{gap:12px;margin:0 8px 42px;color:#fff;font-size:21px;letter-spacing:-.04em}
.brand-accent{color:#ff4650}
.brand small{margin-top:3px;color:#7f9aaa;font-size:8px;letter-spacing:2.35px}
.mundodex-mark{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:linear-gradient(145deg,#ff4d56,#de2632);color:#fff;box-shadow:0 8px 22px rgba(242,56,67,.28)}
.mundodex-mark svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.nav-label{padding:0 13px;color:#708897;font-size:9px;font-weight:800;letter-spacing:1.9px}
.sidebar nav{display:grid;gap:5px}
.sidebar nav a{position:relative;gap:13px;min-height:48px;padding:12px 14px;border-radius:12px;color:#9cb0bd;font-weight:600;transition:background .18s,color .18s,transform .18s}
.sidebar nav a:hover{background:rgba(255,255,255,.055);color:#fff;transform:translateX(2px)}
.sidebar nav a.active{background:rgba(255,255,255,.09);color:#fff;font-weight:800}
.sidebar nav a.active:before{content:'';position:absolute;left:-18px;width:4px;height:24px;border-radius:0 5px 5px 0;background:var(--core-red);box-shadow:0 0 16px rgba(242,56,67,.5)}
.sidebar .nav-icon{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;font-size:0}
.sidebar .nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar nav b{font:inherit}
.sidebar-bottom{margin:0 9px;padding:18px 4px 0;border-top:1px solid rgba(255,255,255,.08);color:#a8bac5}
.sidebar-bottom small{color:#688291}
.sidebar .status-dot{background:var(--core-success);box-shadow:0 0 0 4px rgba(52,166,107,.11)}

/* Componentes compartilhados */
.eyebrow{color:var(--core-red);font-size:9px;font-weight:800;letter-spacing:2.1px}
.subtitle{color:var(--muted)}
.button{min-height:39px;border-color:var(--line);border-radius:11px;padding:9px 14px;background:#fff;color:#33424c;box-shadow:0 1px 0 rgba(7,24,36,.02);transition:transform .16s,box-shadow .16s,border-color .16s}
.button:hover{transform:translateY(-1px);border-color:#b7c4cc;box-shadow:var(--shadow-sm)}
.button.primary{background:var(--core-red);border-color:var(--core-red);color:#fff;box-shadow:0 9px 22px rgba(242,56,67,.22)}
.button.primary:hover{background:var(--core-red-dark);border-color:var(--core-red-dark)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(39,134,232,.38);outline-offset:3px}
.panel,.metric,.set-tile,.rarity-panel,.achievement-card,.acquisition-card,.binder-suggestion,.dashboard-search{border-color:var(--line);box-shadow:var(--shadow-sm)}
.panel{border-radius:var(--radius-md)}
.section-head{margin:32px 0 17px;align-items:end}
.section-head h2{font-size:21px}
.section-head a{color:#174f68}
.progress-track{background:#e5e9ec;height:6px}
.progress-fill{background:linear-gradient(90deg,var(--core-red),#ff6b58)}
.note{border-radius:12px}
#toast{left:calc(50% + var(--sidebar)/2);border-radius:12px;background:var(--core-navy);box-shadow:0 12px 38px rgba(7,24,36,.25)}

/* Hero e busca do dashboard */
body[data-route="inicio"] main{padding-top:30px}
.dashboard-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(250px,.55fr);grid-template-areas:"copy art" "search search";gap:18px 30px;min-height:350px;padding:44px 44px 28px;margin-bottom:24px;overflow:visible;border-radius:var(--radius-lg);background:linear-gradient(125deg,#071824 0%,#0b2230 58%,#12364a 100%);box-shadow:0 24px 60px rgba(7,24,36,.18);isolation:isolate}
.dashboard-hero:before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(circle at 87% 15%,rgba(242,56,67,.22),transparent 18rem),radial-gradient(circle at 72% 90%,rgba(39,134,232,.16),transparent 20rem)}
.dashboard-hero:after{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;opacity:.16;background-image:linear-gradient(30deg,transparent 47%,rgba(255,255,255,.16) 48%,transparent 49%);background-size:38px 38px;mask-image:linear-gradient(90deg,transparent 42%,#000)}
.dashboard-hero-copy{grid-area:copy;align-self:center;max-width:720px;color:#fff}
.dashboard-hero-copy .eyebrow{color:#ff6670}
.dashboard-hero-copy h1{max-width:660px;margin:9px 0 14px;color:#fff;font-size:clamp(2.25rem,4.5vw,4.05rem);line-height:.98;letter-spacing:-.064em}
.dashboard-hero-copy>p:not(.eyebrow){max-width:590px;color:#aebfca;font-size:14px;line-height:1.7}
.dashboard-hero-copy .button{margin-top:24px}
.dashboard-hero-cards{grid-area:art;position:relative;align-self:center;justify-self:center;width:220px;height:188px;filter:drop-shadow(0 22px 30px rgba(0,0,0,.35))}
.dashboard-hero-cards i{position:absolute;display:block;width:116px;aspect-ratio:63/88;border:1px solid rgba(255,255,255,.32);border-radius:12px;background:linear-gradient(145deg,#153b50,#091d29);box-shadow:inset 0 0 0 6px rgba(255,255,255,.025)}
.dashboard-hero-cards i:before{content:'';position:absolute;inset:12px;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:radial-gradient(circle at center,transparent 0 18%,rgba(255,255,255,.13) 19% 21%,transparent 22%),linear-gradient(160deg,transparent 52%,rgba(255,255,255,.08) 53%)}
.dashboard-hero-cards i:nth-child(1){left:5px;top:18px;transform:rotate(-14deg)}
.dashboard-hero-cards i:nth-child(2){right:4px;top:13px;transform:rotate(13deg);background:linear-gradient(145deg,#2d3342,#131d27)}
.dashboard-hero-cards i:nth-child(3){left:53px;top:0;background:linear-gradient(145deg,#f44750,#a51622);transform:rotate(-1deg)}
.dashboard-hero-cards i:nth-child(3):before{background:radial-gradient(circle at center,#fff 0 5%,transparent 6% 16%,rgba(255,255,255,.55) 17% 19%,transparent 20%),linear-gradient(150deg,transparent 52%,rgba(255,255,255,.12) 53%)}
.dashboard-hero-cards i span{position:absolute;right:-9px;bottom:-8px;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#fff;color:var(--core-red);font:900 23px Manrope;box-shadow:0 10px 24px rgba(0,0,0,.28)}
.dashboard-hero .dashboard-search{grid-area:search;z-index:3;margin:0;padding:14px 16px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.10);box-shadow:none;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.dashboard-hero .dashboard-search label{color:#fff;font-size:12px}
.dashboard-hero .dashboard-search p{display:none}
.dashboard-hero .dashboard-search input{height:48px;margin-top:8px;border:0;border-radius:11px;background:#fff;color:var(--ink);box-shadow:0 6px 22px rgba(0,0,0,.14)}
.dashboard-hero .dashboard-search-results{top:calc(100% - 5px);left:16px;right:16px;border-radius:0 0 13px 13px}

/* Ações principais e indicadores */
.hero-grid{gap:18px;margin-bottom:34px}
.dex-hero,.repeat-hero{min-height:225px;border-radius:var(--radius-md);box-shadow:var(--shadow-sm)}
.dex-hero{background:linear-gradient(135deg,#0d3043,#164d65);padding:28px 30px}
.dex-hero .eyebrow{color:#67c3ec}.dex-hero h2{color:#fff}.dex-hero p{color:#bed1da}.dex-hero a{color:#fff}
.dex-hero:after{border-color:rgba(255,255,255,.08)}
.ring{background:conic-gradient(#42b6e9 var(--progress),rgba(255,255,255,.12) 0)}
.ring-inner{background:#113d50}
.repeat-hero{border:1px solid #f0d7d8;background:linear-gradient(140deg,#fff7f5,#faeceb);padding:28px 30px}
.repeat-hero .eyebrow{color:#b52933}.repeat-hero .overlap{color:#e6adae}.repeat-hero p{color:#775e61}.repeat-hero a{color:#a3222b}
.dashboard-section-intro{margin:0 0 16px}.dashboard-section-intro h2{font-size:22px}.dashboard-section-intro>p:last-child{margin-top:5px;color:var(--muted);font-size:12px}
.metrics{gap:13px;margin-bottom:38px}
.metric{position:relative;display:flex;align-items:center;gap:14px;min-height:116px;padding:18px;border-radius:16px;background:#fff;transition:transform .18s,box-shadow .18s,border-color .18s}
.metric:hover{transform:translateY(-3px);border-color:#c5d0d6;box-shadow:var(--shadow-md)}
.metric-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:#edf3f6;color:#174f68}
.metric:nth-child(1) .metric-icon{background:#feecee;color:var(--core-red)}
.metric:nth-child(3) .metric-icon{background:#f6f0df;color:#a77716}
.metric:nth-child(4) .metric-icon{background:#fff0dc;color:#dc7b16}
.metric-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.metric>div{min-width:0}.metric .metric-label{display:block;color:var(--muted);font-size:11px}.metric strong{margin:2px 0 0;font-size:29px;line-height:1}.metric small{display:block;margin-top:6px;overflow:hidden;color:#8a969e;text-overflow:ellipsis;white-space:nowrap}.metric-arrow{position:absolute;right:15px;top:14px;color:#a1adb5;font-size:14px}

/* Conteúdo acionável */
.insight-section{margin:42px 0}.insight-section:first-of-type{margin-top:34px}
.achievement-grid,.binder-suggestion-grid{gap:13px}
.achievement-card,.binder-suggestion{border-radius:16px;box-shadow:var(--shadow-sm);transition:transform .18s,box-shadow .18s}
.achievement-card:hover,.binder-suggestion:hover,.acquisition-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.achievement-card>b{color:#9b2730}.achievement-card .progress-fill{background:linear-gradient(90deg,var(--core-gold),#efc65f)}
.acquisition-strip{gap:13px}.acquisition-card{border-radius:15px}.acquisition-card img{width:50px;border-radius:6px}
.highlight-grid{gap:16px}.insight-row b{color:#174f68}
.dashboard-sets{margin:42px 0}
body[data-route="inicio"] .dashboard-sets .sets-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-route="inicio"] .dashboard-sets .set-tile{border-radius:16px}
body[data-route="inicio"] .dashboard-sets .set-art{height:125px;background:linear-gradient(145deg,#eef2f4,#fafbfb)}
body[data-route="inicio"] .dashboard-sets .set-body{padding:16px 17px}

/* Raridades compactas */
.rarity-dashboard{margin:44px 0 36px}
.rarity-panels{gap:14px}
.rarity-panel{border-radius:16px;box-shadow:var(--shadow-sm)}
.rarity-panel-head{background:linear-gradient(145deg,#fff,#f5f7f8)}
.rarity-market{background:var(--core-navy)}
.rarity-row{min-height:42px}.rarity-row:hover{background:#f3f7f9}.rarity-count{background:#62717b}
.rarity-more>summary{cursor:pointer;padding:12px 16px;color:#174f68;font-size:11px;font-weight:800;list-style:none;text-align:center}
.rarity-more>summary::-webkit-details-marker{display:none}
.rarity-more>summary:after{content:' ↓';color:var(--core-red)}
.rarity-more[open]>summary{border-bottom:1px solid var(--line)}
.bottom-grid{gap:16px}.mini-stats strong{color:var(--core-navy)}

/* Catálogo e formulários ganham a mesma linguagem sem mudar o comportamento. */
.heading{margin-bottom:25px}.heading h1{font-size:clamp(1.9rem,3vw,2.75rem)}
.toolbar,.filterbar{border-radius:15px}.filterbar{box-shadow:var(--shadow-sm)}
.toolbar select,.filterbar select,.filterbar input{border-color:#d4dde2;border-radius:10px}
.view-toggle{border-radius:10px}.view-toggle button{border-radius:7px}
.view-toggle button.active{background:#e7eff3;color:#174f68}
.set-tile,.card{border-radius:14px}.set-tile:hover{box-shadow:var(--shadow-md)}
.set-era-catalog>summary:before{color:#174f68}.set-era-catalog[open]>summary:before{background:#174f68;border-color:#174f68}

@media(max-width:1180px){
  :root{--sidebar:204px}
  main{padding-left:28px;padding-right:28px}
  .topbar{padding:0 28px}
  .dashboard-hero{padding:36px 34px 25px}
  .dashboard-hero-cards{transform:scale(.9)}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .metric{padding:15px;gap:10px}.metric-icon{width:40px;height:40px;flex-basis:40px}
  body[data-route="inicio"] .dashboard-sets .sets-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:800px){
  :root{--sidebar:0px}
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  body:before{background:linear-gradient(180deg,#f8f9fa,#f3f5f7)}
  .workspace{margin-left:0}
  .sidebar{position:fixed;inset:auto 0 0;display:block;width:100%;height:calc(70px + env(safe-area-inset-bottom));padding:7px max(8px,env(safe-area-inset-left)) env(safe-area-inset-bottom);border-top:1px solid rgba(255,255,255,.12);box-shadow:0 -12px 34px rgba(7,24,36,.18);z-index:60}
  .sidebar .brand,.sidebar .nav-label,.sidebar .sidebar-bottom{display:none}
  .sidebar nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;height:100%}
  .sidebar nav a{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:55px;padding:5px 2px;border-radius:10px;font-size:9px;text-align:center}
  .sidebar nav a:hover{transform:none}.sidebar nav a.active:before{inset:auto 30% -7px;width:40%;height:3px;border-radius:4px 4px 0 0}
  .sidebar .nav-icon{width:21px;height:21px;flex-basis:21px}.sidebar .nav-icon svg{width:20px;height:20px}.sidebar nav b{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
  .topbar{height:50px;padding:0 18px}.local-tag{padding:5px 8px;font-size:9px}
  main{padding:20px 18px 42px}
  footer{display:none}
  #toast{left:50%;bottom:calc(84px + env(safe-area-inset-bottom));width:min(90vw,420px);text-align:center}
  body[data-route="inicio"] main{padding-top:16px}
  .dashboard-hero{grid-template-columns:1fr;grid-template-areas:"copy" "art" "search";gap:18px;min-height:0;padding:30px 24px 22px;border-radius:21px}
  .dashboard-hero-copy h1{font-size:clamp(2.15rem,10vw,3.25rem)}
  .dashboard-hero-copy>p:not(.eyebrow){font-size:13px}
  .dashboard-hero-cards{display:none}
  .dashboard-hero .dashboard-search{padding:12px}.dashboard-hero .dashboard-search-results{left:12px;right:12px}
  .hero-grid{grid-template-columns:1fr;gap:13px}.dex-hero,.repeat-hero{min-height:200px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{min-height:105px}.metric small{font-size:9px}
  .rarity-panels{grid-template-columns:1fr}
  body[data-route="inicio"] .dashboard-sets .sets-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

@media(max-width:560px){
  .topbar #breadcrumb{max-width:58vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  main{padding-left:13px;padding-right:13px}
  .dashboard-hero{padding:26px 18px 18px;margin-left:-1px;margin-right:-1px}
  .dashboard-hero-copy h1{font-size:2.35rem}
  .dashboard-hero-copy .button{width:100%;justify-content:center}
  .dashboard-search label{font-size:11px}
  .dex-hero{padding:22px 18px}.dex-hero p{font-size:11px}.ring{width:102px;height:102px}.ring-inner{width:88px;height:88px}.ring strong{font-size:23px}
  .repeat-hero{padding:23px 20px}
  .metrics{gap:8px}.metric{display:block;min-height:132px;padding:13px}.metric-icon{margin-bottom:12px}.metric strong{font-size:26px}.metric-arrow{right:12px;top:11px}
  .section-head{align-items:start}.section-head h2{font-size:19px}.section-head>a{white-space:nowrap;font-size:10px}
  .achievement-grid,.highlight-grid{grid-template-columns:1fr}.acquisition-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.acquisition-card{display:block}.acquisition-card img{width:100%;max-height:115px;margin-bottom:8px}
  body[data-route="inicio"] .dashboard-sets .sets-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-route="inicio"] .dashboard-sets .set-art{height:92px;padding:12px}
  body[data-route="inicio"] .dashboard-sets .set-body{padding:11px}
  body[data-route="inicio"] .dashboard-sets .set-body h3{font-size:11px}
  body[data-route="inicio"] .dashboard-sets .set-body small,body[data-route="inicio"] .dashboard-sets .progress-label{font-size:8px}
  .rarity-panel-head{padding:14px}.rarity-row{padding-left:12px;padding-right:12px}
}

@media(max-width:360px){
  .sidebar nav a{font-size:8px}.sidebar nav b{letter-spacing:-.02em}
  .local-tag{display:none}.topbar{justify-content:flex-start}
  .dashboard-hero-copy h1{font-size:2.05rem}
  .metrics{grid-template-columns:1fr 1fr}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* Segunda passagem — superfície clara, conteúdo mais amplo e hierarquia compacta. */
:root{
  --sidebar:218px;
  --bg:#f7f8f9;
  --paper:#fff;
  --line:#e3e8eb;
  --shadow-sm:0 4px 16px rgba(7,24,36,.045);
  --shadow-md:0 15px 38px rgba(7,24,36,.09);
}
body:before{background:radial-gradient(circle at 90% -12%,rgba(39,134,232,.06),transparent 26rem),linear-gradient(180deg,#fbfcfc 0,#f6f8f9 28rem)}
main{width:100%;max-width:none;margin:0;padding:28px clamp(24px,3vw,54px) 60px}
footer{width:100%;max-width:none;padding-left:clamp(24px,3vw,54px);padding-right:clamp(24px,3vw,54px)}
.topbar{height:58px;padding:0 clamp(24px,3vw,54px);background:rgba(252,253,253,.88)}
.sidebar{padding:24px 15px 20px}
.brand{gap:10px;margin:0 9px 32px;font-size:18px}
.brand small{font-size:7px;letter-spacing:2px}
.mundodex-mark{width:34px;height:34px;flex-basis:34px;border-radius:10px;box-shadow:0 6px 17px rgba(242,56,67,.22)}
.mundodex-mark svg{width:23px;height:23px}
.sidebar nav a{min-height:45px;padding:10px 13px}
.sidebar nav a.active:before{left:-15px}

body[data-route="inicio"] main{padding-top:22px}
.dashboard-hero{grid-template-columns:minmax(0,1fr) 190px;grid-template-areas:"copy art";gap:24px;min-height:225px;padding:31px 34px;margin-bottom:14px;overflow:hidden;border:1px solid var(--line);border-radius:21px;background:linear-gradient(120deg,#fff 0%,#fbfcfc 58%,#f1f6f8 100%);box-shadow:var(--shadow-sm)}
.dashboard-hero:before{background:radial-gradient(circle at 92% 12%,rgba(242,56,67,.10),transparent 13rem),radial-gradient(circle at 72% 110%,rgba(39,134,232,.09),transparent 17rem)}
.dashboard-hero:after{opacity:.24;background-image:linear-gradient(30deg,transparent 47%,rgba(7,24,36,.06) 48%,transparent 49%);background-size:34px 34px;mask-image:linear-gradient(90deg,transparent 56%,#000)}
.dashboard-hero-copy{max-width:780px;color:var(--ink)}
.dashboard-hero-copy .eyebrow{color:var(--core-red)}
.dashboard-hero-copy h1{max-width:720px;margin:7px 0 10px;color:var(--ink);font-size:clamp(2rem,3vw,3rem);line-height:1.03;letter-spacing:-.055em}
.dashboard-hero-copy>p:not(.eyebrow){max-width:630px;color:var(--muted);font-size:13px;line-height:1.65}
.dashboard-hero-copy .button{margin-top:18px}
.dashboard-hero-cards{width:168px;height:142px;filter:drop-shadow(0 16px 20px rgba(7,24,36,.16))}
.dashboard-hero-cards i{width:87px;border-radius:9px;border-color:rgba(7,24,36,.16);background:linear-gradient(145deg,#21485e,#0b2230)}
.dashboard-hero-cards i:nth-child(1){left:2px;top:18px}.dashboard-hero-cards i:nth-child(2){right:2px;top:14px}.dashboard-hero-cards i:nth-child(3){left:40px}
.dashboard-hero-cards i:before{inset:9px}
.dashboard-hero-cards i span{right:-7px;bottom:-7px;width:34px;height:34px;border-radius:10px;font-size:18px}

.dashboard-search-shell{position:relative;margin:0 0 18px}
.dashboard-search-shell .dashboard-search{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:15px;margin:0;padding:12px 15px;border-radius:15px;background:#fff;box-shadow:var(--shadow-sm)}
.dashboard-search-shell .dashboard-search:before{content:'';width:36px;height:36px;border-radius:11px;background:#eff3f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23174f68' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/18px no-repeat}
.dashboard-search-shell .dashboard-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.dashboard-search-shell .dashboard-search input{height:42px;margin:0;padding:8px 2px;border:0;background:transparent;font-size:13px;box-shadow:none}
.dashboard-search-shell .dashboard-search input:focus{outline:0}
.dashboard-search-shell .dashboard-search-results{top:calc(100% - 1px);left:15px;right:15px;border-radius:0 0 13px 13px}

.hero-grid{grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr);gap:14px;margin-bottom:30px}
.dex-hero,.repeat-hero{min-height:188px;padding:25px 27px;border-radius:17px;overflow:hidden}
.dex-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;border:1px solid #d9e8ef;background:linear-gradient(135deg,#f4fafc,#eaf4f7)}
.dex-hero:after{border-color:rgba(23,79,104,.06)}
.dex-hero .eyebrow{color:#27799c}.dex-hero h2{color:var(--ink);font-size:22px}.dex-hero p{max-width:430px;color:#607884}.dex-hero a{color:#165d7b}
.ring{width:118px;height:118px;background:conic-gradient(#2786e8 var(--progress),#dce8ed 0)}
.ring-inner{width:102px;height:102px;background:#fff}.ring strong{color:#173f52;font-size:25px}.ring small{color:#728995}
.repeat-hero{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:18px;border-color:#f0d7d8;background:linear-gradient(140deg,#fffafa,#fceeee)}
.repeat-hero>div{display:flex;min-height:137px;flex-direction:column;align-items:start}
.repeat-hero strong{margin:4px 0;font-size:34px}.repeat-hero a{margin-top:auto}.repeat-hero p{max-width:310px}
.feature-panel-icon{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border-radius:16px;background:#fff;color:#20779b;box-shadow:0 5px 16px rgba(23,79,104,.09)}
.repeat-hero .feature-panel-icon{background:#fff;color:var(--core-red);box-shadow:0 5px 16px rgba(242,56,67,.08)}
.feature-panel-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.feature-panel-icon .dashboard-pokedex-icon,.feature-panel-icon .dashboard-trade-icon{width:38px;height:38px;overflow:visible}

.dashboard-section-intro{margin-top:0}
.insight-section{margin:34px 0}
.dashboard-sets{margin:34px 0}
.binder-suggestions-section{margin-top:36px;padding-top:4px}
.vbind-module>.binder-suggestions-section{clear:both}

@media(min-width:1500px){
  body[data-route="inicio"] .dashboard-sets .sets-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .rarity-panels{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:1180px){
  :root{--sidebar:196px}
  main{padding-left:24px;padding-right:24px}
  .dashboard-hero{padding:28px 30px}
  .dashboard-hero-cards{transform:scale(.88)}
  .hero-grid{grid-template-columns:1fr}
  .dex-hero,.repeat-hero{min-height:175px}
}

@media(max-width:800px){
  :root{--sidebar:0px}
  main{padding:18px 16px 42px}
  .topbar{padding:0 16px}
  body[data-route="inicio"] main{padding-top:13px}
  .dashboard-hero{grid-template-columns:1fr;grid-template-areas:"copy";min-height:0;padding:24px 22px;border-radius:18px}
  .dashboard-hero-copy h1{font-size:clamp(1.85rem,8vw,2.55rem)}
  .dashboard-hero-cards{display:none}
  .dashboard-search-shell .dashboard-search{padding:10px 12px}
  .dashboard-search-shell .dashboard-search-results{left:12px;right:12px}
  .hero-grid{gap:11px}
  .dex-hero{grid-template-columns:auto minmax(0,1fr) auto;padding:22px 20px}
  .repeat-hero{grid-template-columns:auto minmax(0,1fr);padding:22px 20px}
  .feature-panel-icon{width:45px;height:45px;flex-basis:45px;border-radius:13px}
  .feature-panel-icon svg{width:23px;height:23px}
  .feature-panel-icon .dashboard-pokedex-icon,.feature-panel-icon .dashboard-trade-icon{width:32px;height:32px}
}

@media(max-width:560px){
  main{padding-left:12px;padding-right:12px}
  .dashboard-hero{padding:22px 18px;margin:0 0 10px}
  .dashboard-hero-copy h1{font-size:2rem}
  .dashboard-hero-copy .button{width:auto}
  .dashboard-search-shell{margin-bottom:12px}
  .dashboard-search-shell .dashboard-search{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:7px 10px}
  .dashboard-search-shell .dashboard-search:before{width:30px;height:30px;border-radius:9px;background-size:16px}
  .dashboard-search-shell .dashboard-search input{height:38px;font-size:12px}
  .dex-hero{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:19px 16px}
  .dex-hero .ring{grid-column:1/-1;justify-self:stretch;width:100%;height:8px;border-radius:10px;background:linear-gradient(90deg,#2786e8 var(--progress),#dce8ed 0)}
  .dex-hero .ring-inner{display:none}
  .dex-hero p{font-size:11px}
  .repeat-hero{gap:12px;padding:19px 16px}
  .repeat-hero>div{min-height:145px}
  .dex-hero,.repeat-hero{min-height:0}
}

/* Ajuste de densidade — conteúdo novamente centralizado e galerias contidas. */
main{max-width:1440px;margin-left:auto;margin-right:auto;padding-left:42px;padding-right:42px}
footer{max-width:1440px;margin-left:auto;margin-right:auto;padding-left:42px;padding-right:42px}
.card-grid{width:100%;max-width:1060px;margin-left:auto;margin-right:auto}

@media(min-width:1500px){
  body[data-route="inicio"] .dashboard-sets .sets-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rarity-panels{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:1180px){
  main{padding-left:28px;padding-right:28px}
  footer{padding-left:28px;padding-right:28px}
}

@media(max-width:800px){
  main{max-width:none;padding-left:16px;padding-right:16px}
  footer{max-width:none;padding-left:16px;padding-right:16px}
  .card-grid{max-width:none}
}

@media(max-width:560px){
  main{padding-left:12px;padding-right:12px}
}

/* Coleções e raridades — identidade visual e dois objetivos simultâneos. */
.rarity-market.flag,.rarity-market.flags{
  display:flex;align-items:center;justify-content:center;overflow:hidden;width:46px;height:31px;
  flex:0 0 46px;padding:0;border:1px solid #d9e0e4;border-radius:7px;background:#fff;
  color:inherit;font:normal 21px/1 system-ui;letter-spacing:0;box-shadow:0 2px 6px rgba(8,24,36,.08)
}
.rarity-market.flags i{display:grid;place-items:center;height:100%;font-style:normal;overflow:hidden}
.rarity-market.flags.intl i{width:50%;font-size:22px}
.rarity-market.flags.intl i:first-child{justify-content:flex-start}
.rarity-market.flags.intl i:last-child{justify-content:flex-end}
.rarity-market.flags.asian{gap:2px;width:58px;flex-basis:58px;padding:0 3px}
.rarity-market.flags.asian i{width:50%;font-size:20px}

.set-progress-pair{display:grid;gap:9px;margin-top:12px}
.set-progress-item{min-width:0}
.set-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px;color:#41515b;font-size:10px}
.set-progress-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750}
.set-progress-meta b{flex:none;color:var(--core-navy);font:800 10px Manrope,system-ui,sans-serif}
.set-progress-count{margin-top:4px;color:#7b8992;font-size:8px;line-height:1.2}
.set-progress-item.estendido .progress-fill{background:linear-gradient(90deg,#247bc8,#4ab6dc)}
.set-progress-item.padrao .progress-fill{background:linear-gradient(90deg,#ef554f,#ef8a54)}
.set-progress-item .progress-track{height:6px;background:#e6ebee}

body[data-route="inicio"] .dashboard-set-tile .set-body{padding-top:14px}
body[data-route="inicio"] .dashboard-set-tile .set-body>h3{margin-bottom:2px;font-size:15px}
body[data-route="inicio"] .dashboard-set-tile .set-progress-pair{margin-top:13px;gap:10px}
body[data-route="inicio"] .dashboard-set-tile .compact-set-foot{margin-top:10px}

.set-era-catalog{border:1px solid #dce5ea;border-radius:17px;background:linear-gradient(145deg,#f3f7f9,#edf3f6);overflow:hidden;box-shadow:0 5px 18px rgba(8,36,51,.055)}
.set-era-catalog>summary{min-height:66px;padding:15px 20px;border:0;background:linear-gradient(100deg,#e8f1f5 0%,#f8fafb 62%,#fff 100%)}
.set-era-catalog>summary strong{color:var(--core-navy);font:800 18px/1.2 Manrope,system-ui,sans-serif;letter-spacing:-.35px}
.set-era-catalog>summary span{padding:5px 9px;border:1px solid #d9e3e8;border-radius:999px;background:#fff;color:#687984;font-size:10px;font-weight:700}
.set-era-catalog>.era-tiles{padding:16px;border-top:1px solid #dce5ea}
.set-era-catalog>summary:before{width:29px;height:29px;flex:0 0 29px}

.set-tile-compact{min-height:226px;padding:14px 15px 12px;border-color:#dce4e8;border-radius:13px}
.set-card-logo-bg{display:none}
.compact-set-head{min-height:31px;gap:9px}
.compact-set-head h3{font-size:14px;line-height:1.15;letter-spacing:-.25px}
.set-code-chip{min-width:34px;max-width:54px;height:20px;border-radius:4px;font-size:8px}
.compact-set-visual{min-height:72px;margin:2px 0 1px;justify-content:flex-start}
.set-tile-compact .set-logo-wrap.compact{width:100%;height:72px;justify-content:flex-start}
.set-tile-compact .set-logo-small{width:100%;height:72px;padding:3px 0}
.set-tile-compact .set-logo-small .set-logo{max-width:190px;object-position:left center}
.set-tile-compact .set-progress-pair{gap:7px;margin-top:7px}
.set-tile-compact .set-progress-meta{margin-bottom:3px;font-size:9px}
.set-tile-compact .set-progress-meta b{font-size:9px}
.set-tile-compact .set-progress-count{font-size:7px}
.set-tile-compact .compact-set-foot{margin-top:7px;font-size:8px}

@media(max-width:800px){
  .set-era-catalog>summary{min-height:58px;padding:13px 14px}
  .set-era-catalog>summary strong{font-size:16px}
  .set-era-catalog>.era-tiles{padding:10px}
  .set-tile-compact{min-height:218px;padding:11px}
  .compact-set-head h3{font-size:12px}
  .set-tile-compact .set-logo-wrap.compact,.set-tile-compact .set-logo-small{height:62px}
  .set-tile-compact .set-logo-small .set-logo{max-width:145px}
}

@media(max-width:470px){
  .set-era-catalog>summary strong{font-size:15px}
  .set-era-catalog>summary span{font-size:8px}
  .set-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .set-tile-compact{min-height:220px;padding:10px 9px}
  .compact-set-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px}
  .compact-set-head h3{font-size:11px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .set-tile-compact .set-logo-wrap.compact,.set-tile-compact .set-logo-small{height:56px}
  .set-tile-compact .set-logo-small .set-logo{max-width:112px}
  .set-progress-meta{font-size:8px}.set-progress-meta b{font-size:8px}
  .set-progress-count{font-size:7px}
  .compact-set-foot span:first-child{display:none}
}

/* Painel essencial — ícones protagonistas e somente indicadores acionáveis. */
.feature-panel-icon{width:90px;height:90px;flex:0 0 90px;border-radius:22px}
.feature-panel-icon .dashboard-pokedex-icon,.feature-panel-icon .dashboard-trade-icon{width:70px;height:70px}
.dex-hero,.repeat-hero{gap:22px}
.dashboard-primary-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}
.dashboard-primary-metrics .metric{display:grid;grid-template-columns:minmax(88px,28%) minmax(0,1fr);align-items:center;gap:17px;min-height:124px;padding:10px 18px 10px 10px}
.dashboard-primary-metrics .metric-icon{width:100%;height:100%;min-height:102px;flex:none;border-radius:14px}
.dashboard-primary-metrics .metric-icon svg{width:60px;height:60px;overflow:visible}
.dashboard-primary-metrics .metric>div{align-self:center}
.dashboard-primary-metrics .metric-label{color:var(--ink);font-size:13px;font-weight:750}
.dashboard-primary-metrics .metric strong{margin-top:7px;font-size:36px}
.rarity-dashboard{margin-top:30px}
.rarity-dashboard>.section-head{margin-bottom:14px}
.rarity-dashboard>.section-head h2{font-size:22px}
.rarity-panel-head{align-items:center;min-height:58px}
.rarity-panel-head h3{margin:0}

@media(max-width:800px){
  .feature-panel-icon{width:72px;height:72px;flex-basis:72px;border-radius:18px}
  .feature-panel-icon .dashboard-pokedex-icon,.feature-panel-icon .dashboard-trade-icon{width:56px;height:56px}
  .dashboard-primary-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dashboard-primary-metrics .metric{grid-template-columns:68px minmax(0,1fr);min-height:104px;padding:8px 12px 8px 8px;gap:11px}
  .dashboard-primary-metrics .metric-icon{min-height:86px}
  .dashboard-primary-metrics .metric-icon svg{width:48px;height:48px}
  .dashboard-primary-metrics .metric strong{font-size:30px}
}

@media(max-width:520px){
  .dashboard-primary-metrics{grid-template-columns:1fr}
  .dashboard-primary-metrics .metric{grid-template-columns:78px minmax(0,1fr)}
}

.nav-separator{display:block;height:1px;margin:8px 12px;background:rgba(148,163,184,.28)}
.dashboard-recent{margin-top:30px}
.dashboard-recent-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.dashboard-recent-card{display:grid;grid-template-rows:auto auto auto;gap:5px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left;cursor:pointer;box-shadow:0 2px 8px rgba(17,24,39,.04)}
.dashboard-recent-card:hover{border-color:#9ac9f4;background:#f8fbff}
.dashboard-recent-card img{width:100%;aspect-ratio:63/88;object-fit:contain;border-radius:8px;background:#f2f4f7}
.dashboard-recent-card strong,.dashboard-recent-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-recent-card strong{font-size:13px;color:#17283b}.dashboard-recent-card small{font-size:11px;color:#667085}
@media(max-width:800px){.dashboard-recent-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.dashboard-recent-card{padding:5px}.dashboard-recent-card strong{font-size:10px}.dashboard-recent-card small{font-size:9px}}

/* Terceira passagem — faixas visuais integradas e tipografia mais legível. */
.dashboard-hero-copy h1{max-width:620px;font-size:clamp(1.8rem,2.35vw,2.35rem);line-height:1.08}
.dashboard-hero-copy>p:not(.eyebrow){font-size:14px}
.dashboard-search-shell .dashboard-search input{font-size:14px}

.dex-hero,.repeat-hero{align-items:stretch;gap:0;padding:0}
.dex-hero{grid-template-columns:128px minmax(0,1fr) auto}
.repeat-hero{grid-template-columns:128px minmax(0,1fr)}
.feature-panel-icon{align-self:stretch;width:128px;height:auto;min-height:188px;border-radius:0;box-shadow:none}
.dex-hero .feature-panel-icon{border-right:1px solid #d4e5ec;background:linear-gradient(145deg,#dfeff5,#f2f9fb)}
.repeat-hero .feature-panel-icon{border-right:1px solid #efd5d8;background:linear-gradient(145deg,#f9dfe2,#fff3f3);box-shadow:none}
.feature-panel-icon .dashboard-pokedex-icon,.feature-panel-icon .dashboard-trade-icon{width:78px;height:78px}
.dex-hero>div:not(.ring){align-self:center;padding:25px 24px}
.dex-hero .ring{align-self:center;margin-right:25px}
.repeat-hero>div{justify-content:center;min-height:188px;padding:25px 27px}
.dex-hero h2,.repeat-hero h2{font-size:21px;line-height:1.25}
.dex-hero p,.repeat-hero p{font-size:13px;line-height:1.55}
.dex-hero a,.repeat-hero a{font-size:12px;font-weight:750}

.dashboard-primary-metrics .metric{grid-template-columns:28% minmax(0,1fr);gap:0;min-height:124px;padding:0;overflow:hidden}
.dashboard-primary-metrics .metric-icon{width:100%;height:100%;min-height:124px;border-radius:0}
.dashboard-primary-metrics .metric-icon svg{width:58px;height:58px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.dashboard-primary-metrics .metric>div{padding:17px 18px}
.dashboard-primary-metrics .metric-label{font-size:14px}
.dashboard-primary-metrics .metric strong{font-size:35px}
.collector-studio-icon{display:none}

.rarity-dashboard{border:0}
.rarity-dashboard>summary,.rarity-panel>summary{list-style:none}
.rarity-dashboard>summary::-webkit-details-marker,.rarity-panel>summary::-webkit-details-marker{display:none}
.rarity-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:4px 2px;cursor:pointer}
.rarity-dashboard-head h2{font-size:22px}
.rarity-dashboard-head span{color:var(--muted);font-size:11px;font-weight:700}
.rarity-dashboard-head:after{content:'−';display:grid;place-items:center;width:28px;height:28px;margin-left:auto;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--core-navy);font-size:17px}
.rarity-dashboard:not([open]) .rarity-dashboard-head:after{content:'+'}
.rarity-panel-head{display:flex;cursor:pointer}
.rarity-panel-head .rarity-toggle{width:24px;height:24px;margin-left:auto;border-radius:50%;background:#eef2f4}
.rarity-panel-head .rarity-toggle:after{content:'−';display:grid;place-items:center;width:100%;height:100%;color:var(--core-navy);font-size:15px}
.rarity-panel:not([open]) .rarity-toggle:after{content:'+'}
.rarity-description strong{font-size:12px}.rarity-description small{font-size:10px}.rarity-symbol{font-size:16px}.rarity-count{font-size:11px}

@media(max-width:800px){
  .dex-hero{grid-template-columns:112px minmax(0,1fr) auto}
  .repeat-hero{grid-template-columns:112px minmax(0,1fr)}
  .feature-panel-icon{width:112px;min-height:175px;border-radius:0}
  .feature-panel-icon .dashboard-pokedex-icon,.feature-panel-icon .dashboard-trade-icon{width:70px;height:70px}
  .dashboard-primary-metrics .metric{grid-template-columns:34% minmax(0,1fr);min-height:108px;padding:0}
  .dashboard-primary-metrics .metric-icon{min-height:108px}
  .dashboard-primary-metrics .metric-icon svg{width:50px;height:50px}
  .dashboard-primary-metrics .metric>div{padding:13px}
}

@media(max-width:560px){
  .dashboard-hero-copy h1{font-size:1.85rem}
  .dex-hero{grid-template-columns:94px minmax(0,1fr)}
  .repeat-hero{grid-template-columns:94px minmax(0,1fr)}
  .feature-panel-icon{width:94px;min-height:100%;grid-row:1/-1}
  .feature-panel-icon .dashboard-pokedex-icon,.feature-panel-icon .dashboard-trade-icon{width:62px;height:62px}
  .dex-hero>div:not(.ring),.repeat-hero>div{padding:20px 17px}
  .dex-hero .ring{grid-column:1/-1;width:auto;margin:0 16px 16px}
  .dashboard-primary-metrics .metric{grid-template-columns:92px minmax(0,1fr)}
  .dashboard-primary-metrics .metric-icon{min-height:105px}
  .rarity-dashboard-head span{display:none}
}

/* Catálogo de coleções — cards maiores, logos centrados e temas por bloco. */
body[data-route="sets"] .set-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body[data-route="sets"] .set-era-catalog>.era-tiles{gap:16px;padding:18px}
body[data-route="sets"] .set-tile-compact{min-height:282px;padding:17px 18px 15px;border-radius:15px}
body[data-route="sets"] .compact-set-head{align-items:flex-start;min-height:43px;gap:10px}
body[data-route="sets"] .compact-set-head h3{
  display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  white-space:normal;color:#153f55;font-size:15px;line-height:1.25;letter-spacing:-.2px
}
body[data-route="sets"] .set-code-chip{min-width:38px;height:22px;padding:0 6px;font-size:9px}
body[data-route="sets"] .compact-set-visual{min-height:94px;margin:3px 0 5px;justify-content:center}
body[data-route="sets"] .set-tile-compact .set-logo-wrap.compact{width:100%;height:94px;justify-content:center}
body[data-route="sets"] .set-tile-compact .set-logo-small{width:100%;height:94px;padding:4px 8px;justify-content:center}
body[data-route="sets"] .set-tile-compact .set-logo-small .set-logo{width:100%;max-width:225px;object-position:center center}
body[data-route="sets"] .set-tile-compact .set-logo-small b{font-size:22px;text-align:center}
body[data-route="sets"] .set-tile-compact .country-badge{position:absolute;right:0;bottom:4px}
body[data-route="sets"] .set-tile-compact .prize-series-badge{position:absolute;right:0;bottom:4px}
body[data-route="sets"] .set-tile-compact .set-progress-pair{gap:11px;margin-top:7px}
body[data-route="sets"] .set-tile-compact .set-progress-meta{margin-bottom:5px;font-size:11px}
body[data-route="sets"] .set-tile-compact .set-progress-meta b{font-size:11px}
body[data-route="sets"] .set-tile-compact .set-progress-count{margin-top:5px;font-size:9px}
body[data-route="sets"] .set-tile-compact .set-progress-item .progress-track{height:7px}
body[data-route="sets"] .set-tile-compact .compact-set-foot{margin-top:11px;font-size:9px}

.set-era-catalog{--era-start:#e8f1f5;--era-mid:#f4f8fa;--era-end:#fff;--era-accent:#315f75;--era-ink:#102c3a}
.set-era-catalog>summary{
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(105deg,var(--era-start),var(--era-mid) 58%,var(--era-end));
  box-shadow:inset 7px 0 0 var(--era-accent)
}
.set-era-catalog>summary:after{
  content:'';position:absolute;z-index:-1;right:-35px;top:-70px;width:230px;height:180px;
  border:1px solid color-mix(in srgb,var(--era-accent) 22%,transparent);border-radius:50%;
  box-shadow:0 0 0 28px color-mix(in srgb,var(--era-accent) 6%,transparent)
}
.set-era-catalog>summary strong{color:var(--era-ink);font-size:20px}
.set-era-catalog>summary:before{border-color:color-mix(in srgb,var(--era-accent) 45%,#fff);color:var(--era-accent)}
.set-era-catalog[open]>summary:before{border-color:var(--era-accent);background:var(--era-accent)}
.set-era-catalog>summary span{position:relative;z-index:1;border-color:color-mix(in srgb,var(--era-accent) 20%,#dce4e8);color:var(--era-ink)}

.set-era-catalog[data-era-theme="mega"]{--era-start:#e8e6fb;--era-mid:#f4eaff;--era-end:#fff2cf;--era-accent:#6b36be;--era-ink:#291a4c}
.set-era-catalog[data-era-theme="scarlet-violet"]{--era-start:#ffe4e9;--era-mid:#fae9ff;--era-end:#e8eaff;--era-accent:#c52f69;--era-ink:#531638}
.set-era-catalog[data-era-theme="sword-shield"]{--era-start:#dcf5ff;--era-mid:#e9f7ff;--era-end:#ffe5f3;--era-accent:#138fc5;--era-ink:#103f59}
.set-era-catalog[data-era-theme="sun-moon"]{--era-start:#fff0bd;--era-mid:#fff7db;--era-end:#e5edff;--era-accent:#e19a19;--era-ink:#5b3b08}
.set-era-catalog[data-era-theme="xy"]{--era-start:#ddecff;--era-mid:#f0f5ff;--era-end:#ffe4ea;--era-accent:#367fc5;--era-ink:#153f70}
.set-era-catalog[data-era-theme="black-white"]{--era-start:#dfe3e7;--era-mid:#f1f3f5;--era-end:#fff;--era-accent:#292d31;--era-ink:#171a1d}
.set-era-catalog[data-era-theme="hgss"]{--era-start:#ffefb9;--era-mid:#fbf4d9;--era-end:#e9eef2;--era-accent:#aa7b19;--era-ink:#50390a}
.set-era-catalog[data-era-theme="platinum"]{--era-start:#dfe4ea;--era-mid:#eef1f5;--era-end:#fafbfc;--era-accent:#697788;--era-ink:#2d3742}
.set-era-catalog[data-era-theme="diamond-pearl"]{--era-start:#dff2ff;--era-mid:#edf7ff;--era-end:#fde2ef;--era-accent:#438fc7;--era-ink:#194d70}
.set-era-catalog[data-era-theme="ex"]{--era-start:#ffe2e1;--era-mid:#f5eef3;--era-end:#ddecff;--era-accent:#bc3a40;--era-ink:#5a1b20}
.set-era-catalog[data-era-theme="ecard"]{--era-start:#ddf4f2;--era-mid:#edf8f7;--era-end:#e6efff;--era-accent:#2c8d91;--era-ink:#155154}
.set-era-catalog[data-era-theme="legendary"]{--era-start:#ffe8ae;--era-mid:#fff2d4;--era-end:#f3e2d0;--era-accent:#b26b24;--era-ink:#5b3510}
.set-era-catalog[data-era-theme="neo"]{--era-start:#e9e0ff;--era-mid:#f5ecff;--era-end:#fff0d1;--era-accent:#6951ac;--era-ink:#32255f}
.set-era-catalog[data-era-theme="original"]{--era-start:#ffe0e0;--era-mid:#fff1d7;--era-end:#e0ebff;--era-accent:#d33e3e;--era-ink:#571d1d}

@media(min-width:1580px){
  body[data-route="sets"] .set-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:900px){
  body[data-route="sets"] .set-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  body[data-route="sets"] .set-era-catalog>.era-tiles{padding:12px}
  body[data-route="sets"] .set-tile-compact{min-height:270px;padding:14px}
  body[data-route="sets"] .compact-set-head h3{font-size:14px}
  body[data-route="sets"] .set-tile-compact .set-logo-wrap.compact,
  body[data-route="sets"] .set-tile-compact .set-logo-small{height:84px}
}

@media(max-width:520px){
  body[data-route="sets"] .set-catalog-grid{grid-template-columns:1fr}
  body[data-route="sets"] .set-era-catalog>.era-tiles{padding:10px}
  body[data-route="sets"] .set-tile-compact{min-height:268px;padding:15px 16px}
  body[data-route="sets"] .compact-set-head h3{font-size:15px}
  body[data-route="sets"] .set-tile-compact .set-logo-wrap.compact,
  body[data-route="sets"] .set-tile-compact .set-logo-small{height:88px}
  .set-era-catalog>summary strong{font-size:17px}
}

}

/* Source: mundodex-theme.css; original cascade layer/order preserved. */
@layer legacy {
/* MundoDex — sistema visual. Every rule is isolated from outras aparências antigas. */
:root[data-theme="mundodex"]{
  color-scheme:light;
  --cs-bg:#f7f7f5;--cs-surface:#fff;--cs-surface-soft:#f3f4f6;--cs-structure:#111827;--cs-structure-2:#1f2937;
  --cs-primary:#2563eb;--cs-primary-hover:#1d4ed8;--cs-info:#0ea5e9;--cs-success:#16a36a;
  --cs-achievement:#d5a72a;--cs-danger:#e75a46;--cs-ink:#111827;--cs-muted:#667085;--cs-subtle:#98a2b3;
  --cs-border:#e5e7eb;--cs-border-strong:#d0d5dd;
  --cs-font:"Inter","Geist","DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --cs-font-display:"Inter","Geist","Manrope",system-ui,sans-serif;
  --cs-text-xs:.6875rem;--cs-text-sm:.8125rem;--cs-text-md:.9375rem;--cs-text-lg:1.125rem;
  --cs-text-xl:1.5rem;--cs-text-2xl:clamp(2rem,3.8vw,3.25rem);
  --cs-1:4px;--cs-2:8px;--cs-3:12px;--cs-4:16px;--cs-5:20px;--cs-6:24px;--cs-8:32px;--cs-10:40px;--cs-12:48px;
  --cs-radius-sm:8px;--cs-radius:12px;--cs-radius-lg:16px;--cs-radius-pill:999px;
  --cs-shadow-xs:0 1px 2px rgba(17,24,39,.04);--cs-shadow-sm:0 5px 18px rgba(17,24,39,.055);
  --cs-shadow-md:0 14px 36px rgba(17,24,39,.10);--cs-ease:cubic-bezier(.2,.8,.2,1);
  --cs-fast:140ms;--cs-normal:220ms;--cs-z-nav:60;--cs-z-topbar:40;--cs-z-popover:80;--cs-z-toast:120;
  --background:var(--cs-bg);--surface:var(--cs-surface);--surface-elevated:var(--cs-surface);--border:var(--cs-border);
  --text-primary:var(--cs-ink);--text-secondary:var(--cs-muted);--primary:var(--cs-primary);--primary-hover:var(--cs-primary-hover);
  --secondary:var(--cs-info);--accent:var(--cs-achievement);--success:var(--cs-success);--danger:var(--cs-danger);
  --bg:var(--cs-bg);--paper:var(--cs-surface);--ink:var(--cs-ink);--muted:var(--cs-muted);--line:var(--cs-border);
  --green:var(--cs-primary);--mint:#eff6ff;--core-navy:var(--cs-structure);--core-navy-2:var(--cs-structure-2);
  --core-red:var(--cs-primary);--core-red-dark:var(--cs-primary-hover);--core-blue:var(--cs-info);
  --core-gold:var(--cs-achievement);--core-success:var(--cs-success);--shadow-sm:var(--cs-shadow-sm);--shadow-md:var(--cs-shadow-md)
}
:root[data-theme="mundodex"] body{background:var(--cs-bg);color:var(--cs-ink);font-family:var(--cs-font)}
:root[data-theme="mundodex"] body:before{background:var(--cs-bg)}
:root[data-theme="mundodex"] h1,:root[data-theme="mundodex"] h2,:root[data-theme="mundodex"] h3{font-family:var(--cs-font-display);color:var(--cs-ink)}
:root[data-theme="mundodex"] h1{font-size:var(--cs-text-2xl);line-height:1.06;letter-spacing:-.045em}
:root[data-theme="mundodex"] h2{letter-spacing:-.025em}
:root[data-theme="mundodex"] a,:root[data-theme="mundodex"] button,:root[data-theme="mundodex"] input,:root[data-theme="mundodex"] select{transition:border-color var(--cs-fast) var(--cs-ease),background var(--cs-fast) var(--cs-ease),color var(--cs-fast) var(--cs-ease),box-shadow var(--cs-fast) var(--cs-ease),transform var(--cs-fast) var(--cs-ease)}
:root[data-theme="mundodex"] button:focus-visible,:root[data-theme="mundodex"] a:focus-visible,:root[data-theme="mundodex"] input:focus-visible,:root[data-theme="mundodex"] select:focus-visible{outline:3px solid rgba(14,165,233,.30);outline-offset:3px}

/* Navigation and structure */
:root[data-theme="mundodex"] .sidebar{z-index:var(--cs-z-nav);background:var(--cs-structure);box-shadow:none}
:root[data-theme="mundodex"] .mundodex-mark{border-radius:var(--cs-radius);background:var(--cs-primary);box-shadow:none}
:root[data-theme="mundodex"] .brand-accent{color:#60a5fa}
:root[data-theme="mundodex"] .sidebar nav a{border-radius:var(--cs-radius-sm);color:#9ca3af}
:root[data-theme="mundodex"] .sidebar nav a:hover{background:rgba(255,255,255,.07);color:#fff;transform:none}
:root[data-theme="mundodex"] .sidebar nav a.active{background:rgba(37,99,235,.20);color:#fff}
:root[data-theme="mundodex"] .sidebar nav a.active:before{background:#60a5fa;box-shadow:none}
:root[data-theme="mundodex"] .sidebar .nav-icon svg,:root[data-theme="mundodex"] .feature-panel-icon svg,:root[data-theme="mundodex"] .metric-icon svg{fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme="mundodex"] .topbar{z-index:var(--cs-z-topbar);height:56px;border-color:rgba(229,231,235,.88);background:rgba(247,247,245,.88);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:var(--cs-muted)}
:root[data-theme="mundodex"] .local-tag{border:1px solid var(--cs-border);background:var(--cs-surface);color:var(--cs-muted)}
:root[data-theme="mundodex"] main{max-width:1440px;padding-top:var(--cs-6)}
:root[data-theme="mundodex"] footer{border-color:var(--cs-border);color:var(--cs-subtle)}

/* Reusable surfaces */
:root[data-theme="mundodex"] .panel,:root[data-theme="mundodex"] .metric,:root[data-theme="mundodex"] .set-tile,
:root[data-theme="mundodex"] .rarity-panel,:root[data-theme="mundodex"] .achievement-card,:root[data-theme="mundodex"] .acquisition-card,
:root[data-theme="mundodex"] .binder-suggestion,:root[data-theme="mundodex"] .dashboard-search,:root[data-theme="mundodex"] .toolbar,
:root[data-theme="mundodex"] .filterbar,:root[data-theme="mundodex"] .card,:root[data-theme="mundodex"] .list-wrap,
:root[data-theme="mundodex"] .audit-item,:root[data-theme="mundodex"] .vbind-catalog{
  border:1px solid var(--cs-border);border-radius:var(--cs-radius);background:var(--cs-surface);box-shadow:var(--cs-shadow-xs)
}
:root[data-theme="mundodex"] .panel:hover,:root[data-theme="mundodex"] .metric:hover,:root[data-theme="mundodex"] .set-tile:hover,
:root[data-theme="mundodex"] .achievement-card:hover,:root[data-theme="mundodex"] .acquisition-card:hover{border-color:var(--cs-border-strong);box-shadow:var(--cs-shadow-sm);transform:translateY(-2px)}
:root[data-theme="mundodex"] .eyebrow{color:var(--cs-primary);font-size:var(--cs-text-xs);letter-spacing:.14em}
:root[data-theme="mundodex"] .subtitle{color:var(--cs-muted)}
:root[data-theme="mundodex"] .button{min-height:40px;padding:9px 14px;border:1px solid var(--cs-border-strong);border-radius:var(--cs-radius-sm);background:var(--cs-surface);color:#344054;box-shadow:var(--cs-shadow-xs);font-weight:650}
:root[data-theme="mundodex"] .button:hover{border-color:#98a2b3;background:#f9fafb;box-shadow:var(--cs-shadow-sm);transform:translateY(-1px)}
:root[data-theme="mundodex"] .button.primary{border-color:var(--cs-primary);background:var(--cs-primary);color:#fff;box-shadow:0 5px 14px rgba(37,99,235,.18)}
:root[data-theme="mundodex"] .button.primary:hover{border-color:var(--cs-primary-hover);background:var(--cs-primary-hover)}
:root[data-theme="mundodex"] .toolbar select,:root[data-theme="mundodex"] .toolbar input,:root[data-theme="mundodex"] .filterbar select,
:root[data-theme="mundodex"] .filterbar input,:root[data-theme="mundodex"] .condition-select,:root[data-theme="mundodex"] .vbind-catalog input,
:root[data-theme="mundodex"] .vbind-catalog select{height:40px;border:1px solid var(--cs-border-strong);border-radius:var(--cs-radius-sm);background:#fff;color:var(--cs-ink)}
:root[data-theme="mundodex"] .toolbar select:hover,:root[data-theme="mundodex"] .filterbar select:hover,:root[data-theme="mundodex"] .filterbar input:hover{border-color:#98a2b3}
:root[data-theme="mundodex"] .view-toggle{border-color:var(--cs-border);border-radius:10px;background:#f3f4f6}
:root[data-theme="mundodex"] .view-toggle button.active{background:#fff;color:var(--cs-primary);box-shadow:var(--cs-shadow-xs)}

/* Dashboard uses accents rather than large module color fields. */
:root[data-theme="mundodex"] .dashboard-hero{min-height:216px;border:1px solid var(--cs-border);border-radius:var(--cs-radius-lg);background:#fff;box-shadow:var(--cs-shadow-xs)}
:root[data-theme="mundodex"] .dashboard-hero:before{background:radial-gradient(circle at 91% 10%,rgba(14,165,233,.08),transparent 14rem)}
:root[data-theme="mundodex"] .dashboard-hero:after{opacity:.10}
:root[data-theme="mundodex"] .dashboard-hero-copy{color:var(--cs-ink)}
:root[data-theme="mundodex"] .dashboard-hero-copy h1{color:var(--cs-ink)}
:root[data-theme="mundodex"] .dashboard-hero-copy>p:not(.eyebrow){color:var(--cs-muted)}
:root[data-theme="mundodex"] .dashboard-hero-cards{filter:drop-shadow(0 16px 21px rgba(17,24,39,.16))}
:root[data-theme="mundodex"] .dashboard-hero-cards i{border-color:#d0d5dd;background:linear-gradient(145deg,#fff,#eaecf0)}
:root[data-theme="mundodex"] .dashboard-hero-cards i:nth-child(1){background:linear-gradient(145deg,#dbeafe,#93c5fd)}
:root[data-theme="mundodex"] .dashboard-hero-cards i:nth-child(2){background:linear-gradient(145deg,#fef3c7,#fde68a)}
:root[data-theme="mundodex"] .dashboard-hero-cards i:nth-child(3){background:linear-gradient(145deg,#2563eb,#0ea5e9)}
:root[data-theme="mundodex"] .dashboard-hero-cards i span{color:var(--cs-success)}
:root[data-theme="mundodex"] .dashboard-search-shell{margin:22px 0 26px}
:root[data-theme="mundodex"] .dashboard-search-shell .dashboard-search{min-height:72px;padding:10px 18px;border:2px solid #93c5fd;background:linear-gradient(105deg,#eff6ff,#fff 34%);box-shadow:0 12px 30px rgba(37,99,235,.13)}
:root[data-theme="mundodex"] .dashboard-search-shell .dashboard-search:before{width:48px;height:48px;border-radius:14px;background:#2563eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/24px no-repeat;box-shadow:0 7px 16px rgba(37,99,235,.23)}
:root[data-theme="mundodex"] .dashboard-search-shell .dashboard-search input{height:50px;padding:8px 4px;color:var(--cs-ink);font-size:16px;font-weight:650}
:root[data-theme="mundodex"] .dashboard-search-shell .dashboard-search:focus-within{border-color:#2563eb;box-shadow:0 15px 36px rgba(37,99,235,.18),0 0 0 4px rgba(37,99,235,.10)}
:root[data-theme="mundodex"] .dex-hero,:root[data-theme="mundodex"] .repeat-hero{border:1px solid var(--cs-border);background:#fff;box-shadow:var(--cs-shadow-xs)}
:root[data-theme="mundodex"] .dex-hero{border-color:var(--cs-border);background:linear-gradient(112deg,#e6f3ff 0%,#f5faff 58%,#fff 100%);box-shadow:var(--cs-shadow-xs)}
:root[data-theme="mundodex"] .repeat-hero{border-color:var(--cs-border);background:linear-gradient(112deg,#eaf4ff 0%,#fff0ed 74%,#fff 100%);box-shadow:var(--cs-shadow-xs)}
:root[data-theme="mundodex"] .dex-hero .eyebrow,:root[data-theme="mundodex"] .dex-hero a{color:var(--cs-primary)}
:root[data-theme="mundodex"] .dex-hero h2,:root[data-theme="mundodex"] .repeat-hero h2{color:var(--cs-ink)}
:root[data-theme="mundodex"] .dex-hero p,:root[data-theme="mundodex"] .repeat-hero p{color:var(--cs-muted)}
:root[data-theme="mundodex"] .repeat-hero .eyebrow,:root[data-theme="mundodex"] .repeat-hero a{color:var(--cs-danger)}
:root[data-theme="mundodex"] .dex-hero .feature-card-cta{color:var(--cs-primary)}
:root[data-theme="mundodex"] .repeat-hero .feature-card-cta{color:var(--cs-danger)}
:root[data-theme="mundodex"] .dashboard-feature-link{transition:transform var(--cs-normal) var(--cs-ease),box-shadow var(--cs-normal) var(--cs-ease),border-color var(--cs-fast) var(--cs-ease)}
:root[data-theme="mundodex"] .dashboard-feature-link:hover{transform:translateY(-2px);border-color:var(--cs-border-strong);box-shadow:var(--cs-shadow-sm)}
:root[data-theme="mundodex"] .feature-panel-icon{border:1px solid #bfdbfe;background:#eff6ff;color:var(--cs-primary);box-shadow:none}
:root[data-theme="mundodex"] .repeat-hero .feature-panel-icon{border-color:#fed7d1;background:#fff5f3;color:var(--cs-danger);box-shadow:none}
:root[data-theme="mundodex"] .ring{background:conic-gradient(var(--cs-primary) var(--progress),#e5e7eb 0)}
:root[data-theme="mundodex"] .ring-inner{background:#fff}
:root[data-theme="mundodex"] .ring strong{color:var(--cs-ink)}
:root[data-theme="mundodex"] .ring small{color:var(--cs-muted)}
:root[data-theme="mundodex"] .metric-icon{border:1px solid var(--cs-border);background:#f9fafb;color:var(--cs-structure)}
:root[data-theme="mundodex"] .metric:nth-child(1) .metric-icon{border-color:#bfdbfe;background:#eff6ff;color:var(--cs-primary)}
:root[data-theme="mundodex"] .metric:nth-child(2) .metric-icon{border-color:#bae6fd;background:#f0f9ff;color:var(--cs-info)}
:root[data-theme="mundodex"] .metric:nth-child(3) .metric-icon{border-color:#fde68a;background:#fffbeb;color:#a16207}
:root[data-theme="mundodex"] .metric strong{color:var(--cs-ink)}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(1){border-color:var(--cs-border);background:linear-gradient(108deg,#e4f7ff,#f5fcff 68%,#fff);box-shadow:var(--cs-shadow-xs)}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(2){border-color:var(--cs-border);background:linear-gradient(108deg,#e8f1ff,#f7faff 68%,#fff);box-shadow:var(--cs-shadow-xs)}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(3){border-color:var(--cs-border);background:linear-gradient(108deg,#fff0d8,#fff9ef 68%,#fff);box-shadow:var(--cs-shadow-xs)}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric-label{font-size:17px;font-weight:800;line-height:1.15;letter-spacing:-.02em}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(1) .metric-label{color:#075985}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(2) .metric-label{color:#1e3a8a}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-label{color:#9a480f}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric strong{font-size:38px;color:#111827}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric-context{display:block;margin-top:7px;color:var(--cs-muted);font-size:11px;font-weight:650;line-height:1.25;white-space:normal}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric{grid-template-columns:27% minmax(0,1fr) 96px}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric-simple{grid-template-columns:44% minmax(0,1fr);gap:0}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric-simple>div{align-self:start;padding:22px 8px 8px;text-align:center}
:root[data-theme="mundodex"] .metric-count-stack{display:flex!important;flex-direction:column;align-items:center;justify-content:center!important;gap:9px;padding:15px 6px!important}
:root[data-theme="mundodex"] .metric-count-stack>span:first-child{display:flex;flex-direction:column;align-items:center}
:root[data-theme="mundodex"] .metric-secondary-count{display:flex;align-items:center;justify-content:center;gap:7px;padding-top:8px;border-top:1px solid rgba(14,116,144,.16);color:#075985;font-size:11px;font-weight:800}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric .metric-secondary-count b{color:#075985;font-size:17px;line-height:1}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric-arrow{display:none}
:root[data-theme="mundodex"] .metric-gauge{--metric-gauge-color:var(--cs-info);position:relative;display:grid;place-items:center;width:84px;height:84px;justify-self:start;border-radius:50%;background:conic-gradient(var(--metric-gauge-color) var(--metric-progress),#e5e7eb 0);box-shadow:inset 0 0 0 1px rgba(17,24,39,.03)}
:root[data-theme="mundodex"] .metric-gauge-split{background:conic-gradient(var(--cs-info) 0 var(--metric-progress),var(--cs-danger) var(--metric-progress) 100%)}
:root[data-theme="mundodex"] .metric-gauge-composition{background:var(--metric-gradient)}
:root[data-theme="mundodex"] .metric:nth-child(2) .metric-gauge{--metric-gauge-color:var(--cs-primary)}
:root[data-theme="mundodex"] .metric:nth-child(3) .metric-gauge{--metric-gauge-color:var(--cs-achievement)}
:root[data-theme="mundodex"] .metric-gauge:before{content:"";position:absolute;inset:8px;border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 0 0 1px rgba(17,24,39,.035)}
:root[data-theme="mundodex"] .metric-gauge>span{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
:root[data-theme="mundodex"] .metric-gauge b{color:var(--cs-ink);font-size:14px;line-height:1}
:root[data-theme="mundodex"] .metric-gauge small{margin-top:5px;color:var(--cs-muted);font-size:7px;font-weight:800;line-height:1;letter-spacing:.06em;white-space:nowrap}
:root[data-theme="mundodex"] .metric-composition{isolation:isolate;grid-template-columns:27% minmax(0,1fr)!important;grid-template-rows:74px minmax(0,1fr)}
:root[data-theme="mundodex"] .metric-main-link{position:absolute;inset:0;z-index:1;border-radius:inherit}
:root[data-theme="mundodex"] .metric-composition>.metric-main-link{inset:0 0 auto;height:74px}
:root[data-theme="mundodex"] .metric-composition>.metric-icon,:root[data-theme="mundodex"] .metric-composition>div{position:relative;z-index:2;pointer-events:none}
:root[data-theme="mundodex"] .metric-composition>.metric-icon{grid-column:1;grid-row:1/3;min-height:100%}
:root[data-theme="mundodex"] .metric-composition>div:not(.metric-type-panel){grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:18px 10px 6px!important;text-align:center}
:root[data-theme="mundodex"] .metric-type-panel{position:relative;z-index:3;grid-column:2;grid-row:2;align-self:stretch;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:center;gap:5px;min-width:0;box-sizing:border-box;margin:0;padding:7px 10px 10px;border:0;border-radius:0;background:transparent;box-shadow:none;pointer-events:auto!important}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(2) .metric-type-panel{grid-template-columns:repeat(5,minmax(0,1fr))}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:5px 10px 10px}
:root[data-theme="mundodex"] .metric-type-item{position:relative;display:grid;place-items:center;gap:2px;min-width:0;padding:3px 1px;border-radius:9px;color:var(--cs-ink);text-decoration:none;transition:transform .15s ease,background .15s ease,box-shadow .15s ease}
:root[data-theme="mundodex"] .metric-type-item .metric-type-symbol{display:grid;place-items:center;width:31px;height:31px;border:1px solid color-mix(in srgb,var(--type-color) 34%,white);border-radius:50%;background:color-mix(in srgb,var(--type-color) 12%,white);font-size:15px;line-height:1;filter:saturate(.96);box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
:root[data-theme="mundodex"] .metric-type-item b{font-size:10px;font-weight:850;line-height:1;color:color-mix(in srgb,var(--type-color) 72%,#111827)}
:root[data-theme="mundodex"] .metric-type-item:hover,:root[data-theme="mundodex"] .metric-type-item:focus-visible{z-index:8;outline:none;background:rgba(255,255,255,.94);box-shadow:0 7px 18px rgba(17,24,39,.16);transform:translateY(-2px) scale(1.09)}
:root[data-theme="mundodex"] .metric-type-item:after{content:attr(data-tooltip);position:absolute;z-index:20;left:50%;bottom:calc(100% + 7px);width:max-content;max-width:150px;padding:6px 9px;border:1px solid rgba(255,255,255,.28);border-radius:8px;background:#111827;color:#fff;box-shadow:0 8px 20px rgba(17,24,39,.22);font-size:10px;font-weight:750;line-height:1.2;letter-spacing:.01em;opacity:0;pointer-events:none;transform:translate(-50%,5px) scale(.96);transition:opacity .14s ease,transform .14s ease}
:root[data-theme="mundodex"] .metric-type-item:hover:after,:root[data-theme="mundodex"] .metric-type-item:focus-visible:after{opacity:1;transform:translate(-50%,0) scale(1)}
:root[data-theme="mundodex"] .metric-composition{overflow:visible}
:root[data-theme="mundodex"] .official-energy{display:block;width:30px;height:30px;background-image:url('/static/assets/pokemon-official/energy-types.png');background-repeat:no-repeat;background-size:120px 90px;image-rendering:auto}
:root[data-theme="mundodex"] .energy-fire{background-position:0 0}
:root[data-theme="mundodex"] .energy-colorless{background-position:-30px 0}
:root[data-theme="mundodex"] .energy-metal{background-position:-90px 0}
:root[data-theme="mundodex"] .energy-fighting{background-position:-60px -30px}
:root[data-theme="mundodex"] .energy-psychic{background-position:-90px -30px}
:root[data-theme="mundodex"] .energy-darkness{background-position:0 -60px}
:root[data-theme="mundodex"] .energy-grass{background-position:-30px -60px}
:root[data-theme="mundodex"] .energy-lightning{background-position:-60px -60px}
:root[data-theme="mundodex"] .energy-water{background-position:-90px -60px}
:root[data-theme="mundodex"] .metric-type-symbol>svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;min-height:29px;padding:2px 4px;border-radius:8px}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item .metric-type-symbol{display:block;width:100%;height:23px;border:0;border-radius:0;background:transparent;box-shadow:none;filter:none}
:root[data-theme="mundodex"] .trainer-type-word{display:grid;place-items:center;width:100%;height:100%;padding:0 5px;border:1px solid rgba(255,255,255,.86);border-radius:999px;background:linear-gradient(#fff,#dce3ea);box-shadow:inset 0 -2px 4px rgba(17,24,39,.13),0 1px 2px rgba(17,24,39,.13);font-size:9px;font-weight:950;font-style:italic;line-height:1;letter-spacing:-.025em;text-shadow:0 1px #fff;white-space:nowrap}
:root[data-theme="mundodex"] .trainer-type-item{color:#176aa4;background:linear-gradient(#f9fdff,#b8d9ec)}
:root[data-theme="mundodex"] .trainer-type-supporter{color:#b93b26;background:linear-gradient(#fffaf8,#f1b8a6)}
:root[data-theme="mundodex"] .trainer-type-stadium{color:#277b36;background:linear-gradient(#fbfffb,#b8dfbd)}
:root[data-theme="mundodex"] .trainer-type-tool{color:#62419a;background:linear-gradient(#fefcff,#d7c6ec);font-size:7px}
:root[data-theme="mundodex"] .trainer-text-label{display:grid;place-items:center;width:100%;height:100%;border-radius:999px;background:linear-gradient(#f8fafc,#dce2e8);color:#344054;font-size:9px;font-weight:850;font-style:italic;white-space:nowrap}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item b{min-width:20px;font-size:11px;text-align:right}
:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item:hover,:root[data-theme="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item:focus-visible{transform:translateY(-1px) scale(1.025)}
:root[data-theme="mundodex"] .type-glyph{font-size:18px;font-weight:900;color:var(--type-color)}
:root[data-theme="mundodex"] .type-glyph-dragon{color:#6d56c7;text-shadow:0 1px 5px #b8a8ff}
:root[data-theme="mundodex"] .type-glyph-rocket{font-family:Georgia,serif;font-style:italic}
:root[data-theme="mundodex"] .rarity-empty{padding:16px;color:var(--cs-muted);font-size:12px}
:root[data-theme="mundodex"] .rarity-dashboard>.rarity-dashboard-head{cursor:default}
:root[data-theme="mundodex"] .rarity-dashboard>.rarity-dashboard-head:after{display:none}
@media(min-width:640px){:root[data-theme="mundodex"] .rarity-panels{grid-template-columns:repeat(3,minmax(0,1fr))}}
:root[data-theme="mundodex"] .feature-panel-icon,:root[data-theme="mundodex"] .dashboard-primary-metrics .metric-icon{position:relative;isolation:isolate;display:grid;place-items:center;overflow:hidden;padding:0;background:#edf2f7}
:root[data-theme="mundodex"] .feature-panel-icon:after,:root[data-theme="mundodex"] .dashboard-primary-metrics .metric-icon:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(145deg,rgba(255,255,255,.14),rgba(17,24,39,.06));box-shadow:inset 0 0 0 1px rgba(255,255,255,.30)}
:root[data-theme="mundodex"] .feature-panel-icon>svg,:root[data-theme="mundodex"] .dashboard-primary-metrics .metric-icon>svg{display:none}
:root[data-theme="mundodex"] .collector-studio-icon{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;opacity:.86;filter:saturate(.90) contrast(.98);transform:scale(1.035)}
:root[data-theme="mundodex"] .feature-panel-icon .collector-studio-icon-pokedex,:root[data-theme="mundodex"] .feature-panel-icon .collector-studio-icon-repeats,:root[data-theme="mundodex"] .dashboard-primary-metrics .collector-studio-icon{width:82%;height:82%;max-width:82%;max-height:82%;margin:auto;object-fit:contain;object-position:center;opacity:.86;filter:saturate(.90) contrast(.98);transform:none;mix-blend-mode:normal}
:root[data-theme="mundodex"] .feature-panel-icon .collector-studio-icon-pokedex{clip-path:inset(2% round 18%)}
:root[data-theme="mundodex"] .feature-panel-icon .collector-studio-icon-repeats{opacity:.82}
:root[data-theme="mundodex"] .dashboard-primary-metrics .collector-studio-icon-pokemon,:root[data-theme="mundodex"] .dashboard-primary-metrics .collector-studio-icon-trainer{object-position:center;transform:scale(1.14)}
:root[data-theme="mundodex"] .dashboard-primary-metrics .collector-studio-icon-collection{object-position:50% 25%;transform:scale(1.52) translateY(10%)}

@media(min-width:801px){
  :root[data-theme="mundodex"] .dashboard-primary-metrics{grid-template-columns:.68fr 1.30fr 1.02fr}
}

/* Collection state is blue/green; card rarity is gold. */
:root[data-theme="mundodex"] .set-era-catalog{border:1px solid var(--cs-border);border-radius:var(--cs-radius-lg);background:#fff;box-shadow:var(--cs-shadow-xs)}
:root[data-theme="mundodex"] .set-era-catalog>summary{background:#f9fafb;box-shadow:inset 4px 0 0 var(--era-accent)}
:root[data-theme="mundodex"] .set-era-catalog>summary strong{color:var(--cs-ink)}
:root[data-theme="mundodex"] .set-era-catalog>.era-tiles{border-color:var(--cs-border);background:#fff}
:root[data-theme="mundodex"] .set-tile-compact{position:relative;isolation:isolate;overflow:hidden;content-visibility:auto;contain-intrinsic-size:auto 282px;border-color:var(--cs-border);background:#fff}
:root[data-theme="mundodex"] .set-tile-compact>.set-card-logo-bg{display:block;position:absolute;z-index:-2;inset:-28%;overflow:hidden;pointer-events:none}
:root[data-theme="mundodex"] .set-tile-compact>.set-card-logo-bg img{display:block;width:100%;height:100%;object-fit:cover;opacity:.34;filter:blur(16px) saturate(1.45);transform:scale(1.14)}
:root[data-theme="mundodex"] .set-tile-compact:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:linear-gradient(145deg,rgba(255,255,255,.50),rgba(255,255,255,.74) 58%,rgba(255,255,255,.88))}
:root[data-theme="mundodex"] .set-tile-compact:hover{border-color:#93c5fd;box-shadow:var(--cs-shadow-sm)}
:root[data-theme="mundodex"] .set-code-chip{border-color:#d0d5dd;background:#f3f4f6;color:#344054}
:root[data-theme="mundodex"] .set-progress-item.padrao .progress-fill{background:var(--cs-primary)}
:root[data-theme="mundodex"] .set-progress-item.estendido .progress-fill{background:var(--cs-info)}
:root[data-theme="mundodex"] .progress-track{background:#eaecf0}
:root[data-theme="mundodex"] .owned .owned-badge{background:var(--cs-success);color:#fff}
:root[data-theme="mundodex"] .rarity-panel-head{background:#f9fafb}
:root[data-theme="mundodex"] .rarity-row:hover{background:#fffbeb}
:root[data-theme="mundodex"] .rarity-symbol{color:#171b18}
:root[data-theme="mundodex"] .rarity-symbol.tone-preto{color:#171b18;text-shadow:none}
:root[data-theme="mundodex"] .rarity-symbol.tone-prata{color:#a5aaad;text-shadow:0 1px 0 #fff}
:root[data-theme="mundodex"] .rarity-symbol.tone-dourado{color:#f0ad12;text-shadow:none}
:root[data-theme="mundodex"] .rarity-symbol.tone-magenta{color:#df1672;text-shadow:none}
:root[data-theme="mundodex"] .rarity-symbol.tone-verde{color:#a2b500;text-shadow:none}
:root[data-theme="mundodex"] .rarity-symbol.tone-neutro{color:#747d78;text-shadow:none}
:root[data-theme="mundodex"] .rarity-symbol.tone-arco_iris{background:linear-gradient(115deg,#ed3d68,#ee9e20,#3cae7a,#2e77c2,#904bbd);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}
:root[data-theme="mundodex"] .rarity-symbol-promo{position:relative;display:grid;place-items:center;width:38px;height:32px;color:#111827!important;background:none!important;text-shadow:none!important}
:root[data-theme="mundodex"] .rarity-symbol-promo>span{font-size:32px;line-height:1;transform:scaleX(1.08)}
:root[data-theme="mundodex"] .rarity-symbol-promo>b{position:absolute;inset:auto 0 11px;color:#fff;font-size:5px;font-weight:950;line-height:1;letter-spacing:-.02em;text-align:center}
:root[data-theme="mundodex"] .rarity-count{background:var(--cs-structure-2);color:#fff}
:root[data-theme="mundodex"] .achievement-card>b,:root[data-theme="mundodex"] .insight-row b{color:var(--cs-achievement)}
:root[data-theme="mundodex"] .achievement-card .progress-fill{background:var(--cs-achievement)}

/* Card gallery and details */
:root[data-theme="mundodex"] .card{overflow:hidden}
:root[data-theme="mundodex"] .card.owned{border-color:#86d5b5;box-shadow:inset 0 0 0 1px rgba(22,163,106,.06)}
:root[data-theme="mundodex"] .card-image{background:#f3f4f6}
:root[data-theme="mundodex"] .card-image img{filter:drop-shadow(0 5px 8px rgba(17,24,39,.14))}
:root[data-theme="mundodex"] .finish{border:1px solid #e5e7eb;background:rgba(255,255,255,.90);color:#475467}
:root[data-theme="mundodex"] .number{color:var(--cs-primary);font-weight:750}
:root[data-theme="mundodex"] .quantity-row{border-color:var(--cs-border)}
:root[data-theme="mundodex"] .stepper{border-color:var(--cs-border-strong);border-radius:var(--cs-radius-sm)}
:root[data-theme="mundodex"] .stepper button{background:#f9fafb;color:var(--cs-primary)}
:root[data-theme="mundodex"] .stepper button:hover{background:#eff6ff}
:root[data-theme="mundodex"] #card-dialog{border:1px solid var(--cs-border);border-radius:var(--cs-radius-lg);box-shadow:0 24px 70px rgba(17,24,39,.24)}
:root[data-theme="mundodex"] #card-dialog::backdrop{background:rgba(17,24,39,.55);backdrop-filter:blur(4px)}
:root[data-theme="mundodex"] .card-dialog-art{background:#f3f4f6}
:root[data-theme="mundodex"] .card-dialog-close{box-shadow:var(--cs-shadow-sm)}
:root[data-theme="mundodex"] .foil-reverse>.foil-tint{opacity:.48}
:root[data-theme="mundodex"] .foil-reverse>.foil-glow{opacity:.15}
:root[data-theme="mundodex"] .foil-holo>.foil-glow{opacity:.38}
:root[data-theme="mundodex"] .foil-gold>.foil-tint{opacity:.18}
:root[data-theme="mundodex"] .foil-gold>.foil-glow{opacity:.34}
:root[data-theme="mundodex"] .foil-emblem{opacity:.18}

/* Binder, audit, feedback and resilient states */
:root[data-theme="mundodex"] .vbind-cover{border-left-color:var(--cs-primary);background:linear-gradient(135deg,#1f2937,#111827);color:#fff}
:root[data-theme="mundodex"] .vbind-selection{border-color:#bfdbfe;background:#eff6ff}
:root[data-theme="mundodex"] .vbind-book{background:linear-gradient(90deg,#374151 47%,#111827 49%,#6b7280 50%,#111827 51%,#374151 53%)}
:root[data-theme="mundodex"] .vbind-candidate{border-color:var(--cs-border);border-radius:var(--cs-radius-sm);background:#f9fafb}
:root[data-theme="mundodex"] .vbind-candidate.selected{border-color:var(--cs-primary);outline-color:#93c5fd;background:#eff6ff}
:root[data-theme="mundodex"] .audit-badge{border-radius:var(--cs-radius-pill)}
:root[data-theme="mundodex"] .severity-alta{border-left-color:var(--cs-danger)}
:root[data-theme="mundodex"] #toast{z-index:var(--cs-z-toast);border-radius:var(--cs-radius);background:var(--cs-structure);box-shadow:var(--cs-shadow-md)}
:root[data-theme="mundodex"] #toast.error{background:#9f3527}
:root[data-theme="mundodex"] .card-saving.error,:root[data-theme="mundodex"] .vbind-config-error,:root[data-theme="mundodex"] .vbind-status .error{color:var(--cs-danger)}
:root[data-theme="mundodex"] .empty{min-height:180px;border:1px dashed var(--cs-border-strong);border-radius:var(--cs-radius);background:#fff;color:var(--cs-muted)}
:root[data-theme="mundodex"] .empty h3{color:var(--cs-ink)}
:root[data-theme="mundodex"] .loading{position:relative;display:grid;place-items:center;min-height:240px;padding-top:150px;color:var(--cs-muted);font-weight:650}
:root[data-theme="mundodex"] .loading:before{content:"";position:absolute;top:36px;width:min(680px,82%);height:96px;border-radius:var(--cs-radius);background:linear-gradient(90deg,#eceef0 20%,#f8f8f7 38%,#eceef0 56%);background-size:220% 100%;animation:cs-shimmer 1.25s linear infinite;box-shadow:0 116px 0 #f0f1f2,0 156px 0 #f0f1f2}
@keyframes cs-shimmer{to{background-position:-220% 0}}

/* <640, 640–1023, 1024–1439, >=1440 */
@media(max-width:639px){
  :root[data-theme="mundodex"] main{padding:16px 12px 40px}
  :root[data-theme="mundodex"] .dashboard-hero{padding:22px 18px}
  :root[data-theme="mundodex"] .dashboard-hero-copy h1{font-size:1.95rem}
  :root[data-theme="mundodex"] .dashboard-search-shell{margin:14px 0 18px}
  :root[data-theme="mundodex"] .dashboard-search-shell .dashboard-search{min-height:58px;grid-template-columns:40px minmax(0,1fr);gap:10px;padding:8px 11px}
  :root[data-theme="mundodex"] .dashboard-search-shell .dashboard-search:before{width:40px;height:40px;border-radius:12px;background-size:20px}
  :root[data-theme="mundodex"] .dashboard-search-shell .dashboard-search input{height:42px;font-size:13px}
  :root[data-theme="mundodex"] .metrics{gap:8px}
  :root[data-theme="mundodex"] .metric{min-height:116px;padding:12px}
  :root[data-theme="mundodex"] .metric-icon{width:40px;height:40px;margin-bottom:8px}
  :root[data-theme="mundodex"] .dashboard-primary-metrics .metric{grid-template-columns:92px minmax(0,1fr) 82px;padding:0}
  :root[data-theme="mundodex"] .dashboard-primary-metrics .metric-simple{grid-template-columns:92px minmax(0,1fr)}
  :root[data-theme="mundodex"] .dashboard-primary-metrics .metric-composition{grid-template-columns:92px minmax(0,1fr)!important;grid-template-rows:70px minmax(0,1fr)}
  :root[data-theme="mundodex"] .metric-main-link{right:0}
  :root[data-theme="mundodex"] .metric-type-panel{gap:5px;padding:7px}
  :root[data-theme="mundodex"] .metric-type-item .metric-type-symbol{width:27px;height:27px;font-size:13px}
  :root[data-theme="mundodex"] .official-energy{width:26px;height:26px;background-size:104px 78px}
  :root[data-theme="mundodex"] .energy-colorless{background-position:-26px 0}:root[data-theme="mundodex"] .energy-metal{background-position:-78px 0}:root[data-theme="mundodex"] .energy-fighting{background-position:-52px -26px}:root[data-theme="mundodex"] .energy-psychic{background-position:-78px -26px}:root[data-theme="mundodex"] .energy-darkness{background-position:0 -52px}:root[data-theme="mundodex"] .energy-grass{background-position:-26px -52px}:root[data-theme="mundodex"] .energy-lightning{background-position:-52px -52px}:root[data-theme="mundodex"] .energy-water{background-position:-78px -52px}
  :root[data-theme="mundodex"] .metric-type-item b{font-size:9px}
  :root[data-theme="mundodex"] .metric-gauge{width:72px;height:72px;margin:0}
  :root[data-theme="mundodex"] .metric-gauge:before{inset:7px}
  :root[data-theme="mundodex"] .metric-gauge b{font-size:12px}
  :root[data-theme="mundodex"] .metric-gauge small{font-size:6px}
  :root[data-theme="mundodex"] .card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  :root[data-theme="mundodex"] .card{border-radius:7px}
  :root[data-theme="mundodex"] .card-image{padding:3px}
  :root[data-theme="mundodex"] .card-content{padding:6px 4px}
  :root[data-theme="mundodex"] .card-top{display:block;margin-bottom:3px}
  :root[data-theme="mundodex"] .card-top h3{font-size:8px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  :root[data-theme="mundodex"] .number{font-size:7px}
  :root[data-theme="mundodex"] .card-set-line,:root[data-theme="mundodex"] .card-trainer-type{font-size:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  :root[data-theme="mundodex"] .card-finish{padding:2px}
  :root[data-theme="mundodex"] .finish{max-width:100%;padding:2px 3px;font-size:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  :root[data-theme="mundodex"] .owned-badge{top:3px;right:3px;padding:2px;font-size:0;border-radius:50%}
  :root[data-theme="mundodex"] .owned .owned-badge{width:15px;height:15px;font-size:0}
  :root[data-theme="mundodex"] .owned .owned-badge:after{content:"✓";font-size:9px}
  :root[data-theme="mundodex"] .quantity-row{display:grid;grid-template-columns:1fr;padding-top:4px;gap:3px}
  :root[data-theme="mundodex"] .condition-select{width:100%;min-width:0;max-width:none;height:23px;font-size:7px}
  :root[data-theme="mundodex"] .stepper{width:100%;margin:0;justify-content:space-between}
  :root[data-theme="mundodex"] .stepper button{width:22px;height:22px;font-size:13px}
  :root[data-theme="mundodex"] .stepper output{width:auto;font-size:8px}
  :root[data-theme="mundodex"] .card-saving{display:none}
}
@media(min-width:640px) and (max-width:1023px){
  :root[data-theme="mundodex"] main{padding-left:24px;padding-right:24px}
  :root[data-theme="mundodex"] .card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  :root[data-theme="mundodex"] .sets-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1024px) and (max-width:1439px){:root[data-theme="mundodex"] .card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1440px){
  :root[data-theme="mundodex"] main,:root[data-theme="mundodex"] footer{max-width:1520px}
  :root[data-theme="mundodex"] .card-grid{max-width:1120px}
}
@media(prefers-reduced-motion:reduce){:root[data-theme="mundodex"] .loading:before{animation:none}}

}

/* Source: mundodex.css; original cascade layer/order preserved. */
@layer legacy {
/* MundoDex — identidade vigente sobre o sistema visual Collector Studio. */
:root[data-product="mundodex"] .brand-mark{
  overflow:hidden;
  padding:0;
  border:1px solid rgba(255,255,255,.18);
  background:#0ea5e9;
}
:root[data-product="mundodex"] .brand-mark img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.03);
}
:root[data-product="mundodex"] .brand-mark .brand-fallback-icon{display:none}
:root[data-product="mundodex"] .brand-accent{color:#38bdf8}

:root[data-product="mundodex"] .mundodex-brand-hero{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:148px;
  margin:0 0 18px;
  overflow:hidden;
  border:1px solid var(--cs-border);
  border-radius:var(--cs-radius-lg);
  background:#fff;
  box-shadow:var(--cs-shadow-xs);
}
:root[data-product="mundodex"] .mundodex-brand-hero img{
  display:block;
  width:min(820px,88%);
  height:auto;
  max-height:184px;
  object-fit:contain;
}

/* Cartas e repetidas são destinos independentes dentro do mesmo resumo. */
:root[data-product="mundodex"] .dashboard-primary-metrics .metric-collection{
  position:relative;
  display:grid;
  grid-template-columns:44% minmax(0,1fr);
  grid-template-rows:minmax(72px,1fr) auto;
  gap:0;
  padding:0;
  overflow:hidden;
}
:root[data-product="mundodex"] .metric-collection-icon-link{
  grid-column:1;
  grid-row:1/3;
  display:block;
  min-width:0;
}
:root[data-product="mundodex"] .metric-collection-icon-link .metric-icon{
  width:100%;
  height:100%;
  min-height:124px;
  border-radius:0;
}
:root[data-product="mundodex"] .metric-collection-main{
  grid-column:2;
  grid-row:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:16px 8px 5px;
  text-align:center;
}
:root[data-product="mundodex"] .metric-collection-main strong{
  margin:7px 0 0;
}
:root[data-product="mundodex"] .metric-collection .metric-secondary-count{
  grid-column:2;
  grid-row:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:39px;
  margin:0 10px 10px;
  padding:8px 4px 2px;
  border-top:1px solid rgba(14,116,144,.18);
  color:#075985;
  font-size:11px;
  font-weight:800;
}
:root[data-product="mundodex"] .metric-collection .metric-secondary-count:hover{
  color:#0369a1;
  background:rgba(255,255,255,.45);
  border-radius:8px;
}

/* Nos treinadores, o identificador ocupa a primeira linha e a contagem a segunda. */
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item{
  --trainer-bg:linear-gradient(135deg,#edf1f5,#dde4ea);
  --trainer-ink:#334155;
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:21px auto;
  place-items:center;
  gap:1px;
  min-height:36px;
  padding:0 3px;
  background:transparent;
  box-shadow:none;
}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-panel{gap:2px 5px;padding:2px 10px 7px}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item .metric-type-symbol{
  display:grid;
  place-items:center;
  width:100%;
  height:21px;
}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .trainer-type-text{
  display:block;
  width:100%;
  overflow:hidden;
  padding:0 6px;
  border-radius:0;
  background:transparent;
  color:var(--trainer-ink);
  font-size:11.5px;
  font-weight:900;
  line-height:21px;
  letter-spacing:.01em;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item[data-trainer-type="ITEM"]{--trainer-bg:linear-gradient(135deg,#d9edf8,#b8d9ee);--trainer-ink:#155675}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item[data-trainer-type="APOIADOR"]{--trainer-bg:linear-gradient(135deg,#fbe1d7,#f1bfae);--trainer-ink:#8f3825}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item[data-trainer-type="ESTADIO"]{--trainer-bg:linear-gradient(135deg,#dcefdc,#b9dfc0);--trainer-ink:#28643a}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item[data-trainer-type="FERRAMENTA_POKEMON"]{--trainer-bg:linear-gradient(135deg,#e9e0f5,#d1bfe9);--trainer-ink:#573983}
:root[data-product="mundodex"] .metric-type-item[data-trainer-type="FERRAMENTA_POKEMON"] .trainer-type-text{font-size:10px;letter-spacing:-.015em}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item[data-trainer-type="FOSSIL"]{--trainer-bg:linear-gradient(135deg,#f4ead9,#e4d0aa);--trainer-ink:#715229}
:root[data-product="mundodex"] .metric-type-item[data-trainer-type="MAQUINA_TECNICA"] .trainer-type-text,
:root[data-product="mundodex"] .metric-type-item[data-trainer-type="MAQUINA_SECRETA_ROCKET"] .trainer-type-text{font-size:10px;letter-spacing:-.01em}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item b{
  display:grid;
  place-items:center;
  width:100%;
  min-width:0;
  min-height:14px;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:var(--trainer-ink);
  font-size:11px;
  font-weight:900;
  line-height:1.1;
  text-align:center;
}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(2) .metric-type-item b{
  font-size:12px;
  font-weight:900;
  line-height:1.1;
}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item:hover,
:root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item:focus-visible{
  background:transparent;
  box-shadow:none;
}

/* Todos os ícones-resumo ocupam a mesma área visual do card. */
:root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition>.metric-icon{
  width:100%;
  height:100%;
  min-height:100%;
  margin:0;
  border-radius:0;
}
:root[data-product="mundodex"] .dashboard-primary-metrics .metric-icon .collector-studio-icon{
  width:82%;
  height:82%;
  max-width:82%;
  max-height:82%;
  margin:auto;
  object-fit:contain;
}

/* Cards respondem por cor e sombra, sem deslocar o conteúdo da página. */
:root[data-product="mundodex"] .panel:hover,
:root[data-product="mundodex"] .metric:hover,
:root[data-product="mundodex"] .set-tile:hover,
:root[data-product="mundodex"] .achievement-card:hover,
:root[data-product="mundodex"] .acquisition-card:hover,
:root[data-product="mundodex"] .binder-suggestion:hover,
:root[data-product="mundodex"] .dashboard-feature-link:hover,
:root[data-product="mundodex"] .metric-type-item:hover,
:root[data-product="mundodex"] .metric-type-item:focus-visible{transform:none!important}

/* Os grupos de raridade começam recolhidos e deixam clara a expansão. */
:root[data-product="mundodex"] .rarity-panel-head{min-height:64px;padding:13px 14px;transition:background .15s ease}
:root[data-product="mundodex"] .rarity-panel-head:hover{background:#f0f6ff}
:root[data-product="mundodex"] .rarity-panel-head .rarity-toggle{
  width:32px;
  height:32px;
  border:1px solid #93b9ee;
  background:#e8f1ff;
  box-shadow:0 2px 7px rgba(37,99,235,.14);
}
:root[data-product="mundodex"] .rarity-panel-head .rarity-toggle:after{color:#1d5fc1;font-size:20px;font-weight:800}
:root[data-product="mundodex"] .rarity-panel[open] .rarity-toggle{border-color:#72a4e9;background:#dbeafe}

/* Pokédex — progresso geral, filtros e gerações carregadas sob demanda. */
:root[data-product="mundodex"] .dex-page-hero{
  display:grid;
  grid-template-columns:116px minmax(0,1fr);
  align-items:center;
  min-height:126px;
  margin-bottom:18px;
  overflow:hidden;
  border:1px solid #cfe2f6;
  border-radius:18px;
  background:linear-gradient(112deg,#e7f3ff 0%,#f7fbff 62%,#fff 100%);
  box-shadow:0 8px 24px rgba(16,48,83,.06);
}
:root[data-product="mundodex"] .dex-page-icon{
  align-self:stretch;
  display:grid;
  place-items:center;
  padding:12px;
  border-right:1px solid #cfe2f6;
  background:linear-gradient(145deg,rgba(14,165,233,.15),rgba(37,99,235,.05));
}
:root[data-product="mundodex"] .dex-page-icon img{width:88px;height:88px;object-fit:contain;border-radius:22px}
:root[data-product="mundodex"] .dex-page-hero>div{padding:22px 26px}
:root[data-product="mundodex"] .dex-page-hero h1{font-size:30px;color:#10223d}
:root[data-product="mundodex"] .dex-page-hero p:last-child{max-width:700px;margin-top:7px;color:#5b6f86;line-height:1.55}
:root[data-product="mundodex"] .dex-page-hero .eyebrow{margin:0 0 7px;color:#1478bc}

:root[data-product="mundodex"] .dex-filters{grid-template-columns:2fr repeat(3,minmax(135px,1fr));padding:14px;border-radius:14px}
:root[data-product="mundodex"] .dex-filters label:first-child{grid-column:span 2}
:root[data-product="mundodex"] .dex-viewbar{justify-content:flex-end;margin-bottom:15px}

:root[data-product="mundodex"] .dex-overview{
  display:grid;
  grid-template-columns:minmax(260px,1.25fr) minmax(210px,.8fr) 130px;
  align-items:center;
  gap:24px;
  min-height:150px;
  margin-bottom:22px;
  padding:22px 26px;
  border:1px solid #dce4ec;
  border-radius:18px;
  background:#fff;
  box-shadow:0 7px 22px rgba(16,24,40,.045);
}
:root[data-product="mundodex"] .dex-overview-count{display:flex;align-items:center;gap:18px;min-width:0}
:root[data-product="mundodex"] .dex-overview-count>strong{font:850 58px/1 Manrope,Inter,sans-serif;letter-spacing:-3px;color:#111827}
:root[data-product="mundodex"] .dex-overview-count span{display:flex;flex-direction:column;gap:3px;color:#64748b}
:root[data-product="mundodex"] .dex-overview-count b{font-size:19px;color:#1478bc}
:root[data-product="mundodex"] .dex-overview-count small{font-size:13px}
:root[data-product="mundodex"] .dex-overview-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px}
:root[data-product="mundodex"] .dex-overview-stats span{padding:11px 12px;border-radius:11px;background:#f4f7fa;color:#6b788a;font-size:11px;text-align:center}
:root[data-product="mundodex"] .dex-overview-stats b{display:block;margin-bottom:2px;font:800 18px Manrope,sans-serif;color:#1f2937}
:root[data-product="mundodex"] .dex-overview-ring{
  justify-self:end;
  width:112px;
  height:112px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:conic-gradient(#1687dc var(--dex-progress),#e5edf4 0);
  position:relative;
}
:root[data-product="mundodex"] .dex-overview-ring:before{content:'';position:absolute;inset:12px;border-radius:50%;background:#fff}
:root[data-product="mundodex"] .dex-overview-ring span{position:relative;font:850 19px Manrope,sans-serif;color:#116ea9}

:root[data-product="mundodex"] .dex-generations{display:grid;gap:13px}
:root[data-product="mundodex"] .dex-generation{overflow:hidden;border:1px solid #dbe3eb;border-radius:15px;background:#fff;box-shadow:0 4px 14px rgba(16,24,40,.035)}
:root[data-product="mundodex"] .dex-generation>summary{display:grid;grid-template-columns:46px minmax(150px,1fr) minmax(220px,350px) 28px;align-items:center;gap:14px;min-height:75px;padding:12px 17px;cursor:pointer;list-style:none;transition:background .16s ease}
:root[data-product="mundodex"] .dex-generation>summary::-webkit-details-marker{display:none}
:root[data-product="mundodex"] .dex-generation>summary:hover{background:#f6faff}
:root[data-product="mundodex"] .dex-generation[open]>summary{border-bottom:1px solid #e4eaf0;background:#f8fbff}
:root[data-product="mundodex"] .dex-generation-badge{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#166fc6,#29a8e9);color:#fff;font:850 15px Manrope,sans-serif;box-shadow:0 5px 13px rgba(37,99,235,.2)}
:root[data-product="mundodex"] .dex-generation-title{display:flex;flex-direction:column;gap:3px}
:root[data-product="mundodex"] .dex-generation-title strong{font:800 17px Manrope,sans-serif;color:#172033}
:root[data-product="mundodex"] .dex-generation-title small{color:#77859a}
:root[data-product="mundodex"] .dex-generation-progress{display:grid;grid-template-columns:auto minmax(90px,1fr) 48px;align-items:center;gap:10px;color:#5d6a7a}
:root[data-product="mundodex"] .dex-generation-progress>b{font-size:12px;white-space:nowrap}
:root[data-product="mundodex"] .dex-generation-progress>i{height:7px;overflow:hidden;border-radius:20px;background:#e7edf3}
:root[data-product="mundodex"] .dex-generation-progress>i>em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#0ea5e9)}
:root[data-product="mundodex"] .dex-generation-progress>small{text-align:right;font-weight:800;color:#2576b8}
:root[data-product="mundodex"] .dex-generation-chevron{font-size:24px;color:#718096;transition:transform .18s ease}
:root[data-product="mundodex"] .dex-generation[open] .dex-generation-chevron{transform:rotate(180deg)}
:root[data-product="mundodex"] .dex-generation-content{padding:17px;background:#f8fafc}

:root[data-product="mundodex"] .dex-species-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
:root[data-product="mundodex"] .dex-species-card{position:relative;min-width:0;min-height:176px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px 10px 12px;overflow:hidden;border:1px solid #dde4eb;border-radius:15px;background:linear-gradient(145deg,#fff,#f4f7fa);text-align:center;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
:root[data-product="mundodex"] .dex-species-card:hover{border-color:#8cbce5;box-shadow:0 8px 20px rgba(25,85,135,.1);transform:none}
:root[data-product="mundodex"] .dex-species-card.owned{border-color:#b9d8c6;background:linear-gradient(145deg,#f8fffb,#edf8f2)}
:root[data-product="mundodex"] .dex-species-link{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
:root[data-product="mundodex"] .dex-species-number{position:absolute;top:9px;right:11px;color:#8290a0;font-size:11px;font-weight:700}
:root[data-product="mundodex"] .dex-favorite{position:absolute;top:7px;left:8px;z-index:2;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.84);box-shadow:0 2px 8px rgba(15,23,42,.1);color:#91a0b3;font:800 23px/1 Arial,sans-serif;transition:color .15s ease,background .15s ease,transform .15s ease}
:root[data-product="mundodex"] .dex-favorite:hover,:root[data-product="mundodex"] .dex-favorite:focus-visible{background:#fff;color:#e34f67;transform:scale(1.08)}
:root[data-product="mundodex"] .dex-species-card.favorite .dex-favorite{color:#e11d48;background:#fff0f4}
:root[data-product="mundodex"] .dex-favorite:disabled{opacity:.65}
:root[data-product="mundodex"] .dex-species-card .dex-icon{width:78px;height:73px;flex:0 0 73px}
:root[data-product="mundodex"] .dex-species-card .dex-icon-image{width:100%;height:100%;object-fit:contain}
:root[data-product="mundodex"] .dex-species-card.missing .dex-icon-image{filter:grayscale(1) brightness(.35);opacity:.35}
:root[data-product="mundodex"] .dex-species-copy{display:flex;max-width:100%;flex-direction:column;gap:2px}
:root[data-product="mundodex"] .dex-species-copy strong{overflow:hidden;font:800 14px/1.25 Manrope,sans-serif;text-overflow:ellipsis;white-space:nowrap}
:root[data-product="mundodex"] .dex-species-copy small{overflow:hidden;color:#768497;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
:root[data-product="mundodex"] .dex-species-status{font-size:9px;font-weight:750;color:#8390a0}
:root[data-product="mundodex"] .dex-species-card.owned .dex-species-status{color:#15814c}
:root[data-product="mundodex"] .dex-binder-pages{display:grid;gap:18px}

/* Pokédex por linhas evolutivas */
:root[data-product="mundodex"] .dex-evolution-link{display:inline-flex;margin-top:15px;color:#116da8;background:#fff;border-color:#b8d7ec}
:root[data-product="mundodex"] .evolution-filters{grid-template-columns:minmax(230px,2fr) minmax(145px,1fr) minmax(190px,1fr) auto;margin-bottom:14px}
:root[data-product="mundodex"] .evolution-favorite-filter{align-self:end;min-height:42px;display:flex;flex-direction:row;align-items:center;gap:8px;padding:0 13px;border:1px solid #d7e0e8;border-radius:10px;background:#fff;color:#475569;font-size:12px;font-weight:750;white-space:nowrap}
:root[data-product="mundodex"] .evolution-favorite-filter input{width:17px;height:17px;margin:0;accent-color:#e11d48}
:root[data-product="mundodex"] .evolution-families{display:grid;gap:30px}
:root[data-product="mundodex"] .evolution-family{overflow:hidden;border:1px solid #d8e1e9;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(15,45,75,.05)}
:root[data-product="mundodex"] .evolution-family-head{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:79px;padding:14px 18px;border-bottom:1px solid #e3e9ef;background:linear-gradient(110deg,#f7fbff,#fff 64%)}
:root[data-product="mundodex"] .evolution-family-head>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
:root[data-product="mundodex"] .evolution-family-paths{display:flex;flex-direction:column;gap:4px;min-width:0}
:root[data-product="mundodex"] .evolution-family-head h2{margin:0;font:800 19px/1.2 Manrope,Inter,sans-serif;color:#142238}
:root[data-product="mundodex"] .evolution-family-head h2{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
:root[data-product="mundodex"] .evolution-title-code{display:inline-flex;align-items:center;padding:5px 7px;border-radius:8px;background:#0f5d91;color:#fff;font-size:10px;font-weight:850;letter-spacing:.05em}
:root[data-product="mundodex"] .evolution-title-name{white-space:nowrap}
:root[data-product="mundodex"] .evolution-title-arrow,:root[data-product="mundodex"] .evolution-title-divider{color:#6e8195;font-weight:750}
:root[data-product="mundodex"] .evolution-title-destination{display:inline-flex;align-items:center;gap:6px}
:root[data-product="mundodex"] .evolution-family-paths h2+h2{padding-top:4px;border-top:1px solid #dce8f1}
:root[data-product="mundodex"] .evolution-family-number{padding:6px 8px;border-radius:8px;background:#0f5d91;color:#fff;font-size:10px;font-weight:850;letter-spacing:.05em}
:root[data-product="mundodex"] .evolution-fork-label{padding:5px 8px;border-radius:999px;background:#edf5ff;color:#176aa3;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
:root[data-product="mundodex"] .evolution-family-progress{min-width:218px;display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:9px;color:#64748b;font-size:10px}
:root[data-product="mundodex"] .evolution-family-progress>b{color:#334155;white-space:nowrap}
:root[data-product="mundodex"] .evolution-family-progress>span{height:7px;overflow:hidden;border-radius:99px;background:#e4ebf1}
:root[data-product="mundodex"] .evolution-family-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#0ea5e9)}
:root[data-product="mundodex"] .evolution-family-progress small{font-weight:800;color:#1777b5}
:root[data-product="mundodex"] .evolution-branches{display:grid;gap:15px;padding:17px;background:#f7f9fb}
:root[data-product="mundodex"] .evolution-branch{min-width:0}
:root[data-product="mundodex"] .evolution-branch.branched{padding:13px;border:1px solid #dce7ef;border-radius:14px;background:#fff}
:root[data-product="mundodex"] .evolution-branch>header{display:flex;align-items:center;gap:9px;margin:0 0 11px;color:#64748b}
:root[data-product="mundodex"] .evolution-branch>header span{padding:4px 7px;border-radius:6px;background:#186ea8;color:#fff;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
:root[data-product="mundodex"] .evolution-branch>header strong{font-size:12px;color:#34465b}
:root[data-product="mundodex"] .evolution-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
:root[data-product="mundodex"] .evolution-split{--evolution-card-size:210px;display:grid;grid-template-columns:minmax(0,var(--evolution-common-track,1.25fr)) 48px minmax(0,var(--evolution-destination-track,1fr));align-items:stretch;gap:8px;padding:18px;background:#f7f9fb}
:root[data-product="mundodex"] .evolution-common{align-self:center;min-width:0}
:root[data-product="mundodex"] .evolution-layout-label{display:block;margin:0 0 8px;color:#6c7b8d;font-size:8px;font-weight:850;letter-spacing:.08em;text-align:right;text-transform:uppercase}
:root[data-product="mundodex"] .evolution-common-grid{display:flex;justify-content:flex-end;gap:10px;min-width:0}
:root[data-product="mundodex"] .evolution-common-grid>.evolution-card-wrap{flex:1 1 0;width:auto;max-width:var(--evolution-card-size)}
:root[data-product="mundodex"] .evolution-fork-node{position:relative;align-self:stretch;display:grid;place-items:center;color:#fff;font:850 20px/1 Manrope,sans-serif;z-index:1}
:root[data-product="mundodex"] .evolution-fork-node:before{content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:#76aace;z-index:-2}
:root[data-product="mundodex"] .evolution-fork-node:after{content:'';position:absolute;left:50%;top:12.5%;bottom:12.5%;width:2px;background:#76aace;z-index:-2}
:root[data-product="mundodex"] .evolution-fork-node{background:radial-gradient(circle at center,#1976ae 0 14px,transparent 15px)}
:root[data-product="mundodex"] .evolution-destinations{display:grid;grid-template-rows:repeat(var(--evolution-branches),minmax(0,1fr));gap:12px;min-width:0}
:root[data-product="mundodex"] .evolution-destination{position:relative;display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:9px;padding:10px;border:1px solid #d8e5ee;border-radius:13px;background:#fff}
:root[data-product="mundodex"] .evolution-destination:before{content:'';position:absolute;left:-32px;top:50%;width:32px;height:2px;background:#76aace}
:root[data-product="mundodex"] .evolution-destination>header{display:flex;flex-direction:column;gap:5px;min-width:0}
:root[data-product="mundodex"] .evolution-destination>header span{align-self:flex-start;padding:4px 6px;border-radius:6px;background:#176fa8;color:#fff;font-size:8px;font-weight:850;text-transform:uppercase}
:root[data-product="mundodex"] .evolution-destination>header strong{color:#334b60;font-size:10px;line-height:1.35}
:root[data-product="mundodex"] .evolution-destination-grid{display:flex;align-items:stretch;gap:8px;min-width:0}
:root[data-product="mundodex"] .evolution-destination-grid>.evolution-card-wrap{flex:1 1 0;width:auto;max-width:var(--evolution-card-size)}
:root[data-product="mundodex"] .evolution-card-wrap{position:relative;min-width:0}
:root[data-product="mundodex"] .evolution-card-wrap .dex-species-card{height:100%}
:root[data-product="mundodex"] .evolution-card-wrap.is-shared .dex-species-card{border-style:dashed;border-color:#82b7dc;background:linear-gradient(145deg,#fbfdff,#eff7fc)}
:root[data-product="mundodex"] .evolution-shared{position:absolute;z-index:3;right:7px;bottom:7px;max-width:calc(100% - 14px);padding:4px 6px;border-radius:999px;background:rgba(15,93,145,.9);color:#fff;font-size:7px;font-weight:800;letter-spacing:.025em;white-space:nowrap;pointer-events:none}
:root[data-product="mundodex"] .evolution-sentinel{min-height:44px;display:grid;place-items:center;color:#728196;font-size:10px;font-weight:700}
:root[data-product="mundodex"] .evolution-tree-viewport{container-type:inline-size;overflow-x:hidden;padding:24px 20px;background:#f7f9fb}
:root[data-product="mundodex"] .evolution-tree{display:flex;width:100%;min-width:0;align-items:center;justify-content:flex-start;gap:18px}
:root[data-product="mundodex"] .evolution-tree-node{display:grid;grid-template-columns:auto 42px minmax(0,auto);align-items:center;min-width:0}
:root[data-product="mundodex"] .evolution-tree-source,:root[data-product="mundodex"] .evolution-tree-leaf{display:flex;align-items:stretch;justify-content:center;gap:10px}
:root[data-product="mundodex"] .evolution-tree-source>.evolution-card-wrap,:root[data-product="mundodex"] .evolution-tree-leaf>.evolution-tree-source>.evolution-card-wrap{width:min(180px,max(64px,calc(var(--evolution-card-share) - 56px)));flex:0 0 min(180px,max(64px,calc(var(--evolution-card-share) - 56px)))}
:root[data-product="mundodex"] .evolution-tree-connector{position:relative;align-self:stretch;display:grid;place-items:center;color:#fff;font:850 18px/1 Manrope,sans-serif;background:radial-gradient(circle at center,#1976ae 0 13px,transparent 14px);z-index:1}
:root[data-product="mundodex"] .evolution-tree-connector:before{content:'';position:absolute;left:0;right:0;top:50%;height:2px;background:#76aace;z-index:-2}
:root[data-product="mundodex"] .evolution-tree-node.multiple-outputs>.evolution-tree-connector:after{content:'';position:absolute;left:50%;top:12%;bottom:12%;width:2px;background:#76aace;z-index:-2}
:root[data-product="mundodex"] .evolution-tree-outputs{display:grid;gap:14px;align-items:center}
:root[data-product="mundodex"] .evolution-tree-output{position:relative;display:block;min-width:0;padding:9px;border:1px solid #d8e5ee;border-radius:13px;background:#fff}
:root[data-product="mundodex"] .evolution-tree-output:before{content:'';position:absolute;left:-21px;top:50%;width:21px;height:2px;background:#76aace}
:root[data-product="mundodex"] .evolution-tree-output>div{min-width:0}
:root[data-product="mundodex"] .evolution-tree-output>.evolution-card-wrap,:root[data-product="mundodex"] .evolution-tree-output>div>.evolution-card-wrap{width:min(180px,max(64px,calc(var(--evolution-card-share) - 56px)));flex:0 0 min(180px,max(64px,calc(var(--evolution-card-share) - 56px)))}
:root[data-product="mundodex"] .evolution-parallel-path{display:flex;align-items:center;gap:8px}
:root[data-product="mundodex"] .evolution-parallel-path>.evolution-card-wrap{width:min(180px,max(64px,calc(var(--evolution-card-share) - 56px)));flex:0 0 min(180px,max(64px,calc(var(--evolution-card-share) - 56px)))}
:root[data-product="mundodex"] .evolution-parallel-arrow{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;border-radius:50%;background:#1976ae;color:#fff;font-weight:850}
:root[data-product="mundodex"] .evolution-lanes-viewport{container-type:inline-size;overflow:hidden;padding:24px 20px;background:#f7f9fb}
:root[data-product="mundodex"] .evolution-lanes{display:grid;gap:16px;width:100%;min-width:0}
:root[data-product="mundodex"] .evolution-lane-row{display:grid;grid-template-columns:repeat(var(--lane-depth),minmax(0,1fr));gap:42px;min-width:0;position:relative}
:root[data-product="mundodex"] .evolution-lane-row:not(:first-child){padding-top:9px;border-top:1px dashed rgba(118,170,206,.24)}
:root[data-product="mundodex"] .evolution-lane-cell{position:relative;display:flex;align-items:stretch;justify-content:flex-start;min-width:0;z-index:1}
:root[data-product="mundodex"] .evolution-lane-cards{position:relative;z-index:2;display:flex;align-items:stretch;justify-content:flex-start;gap:8px;min-width:0;width:100%}
:root[data-product="mundodex"] .evolution-lane-cards>.evolution-card-wrap{width:auto;min-width:0;max-width:220px;flex:1 1 0}
:root[data-product="mundodex"] .evolution-lane-horizontal{position:absolute;z-index:1;left:min(220px,100%);top:50%;display:flex;align-items:center;justify-content:center;width:calc((100% + 42px) * var(--lane-span) - min(220px,100%));height:2px;background:#76aace;color:#fff;font-size:14px;font-weight:900;line-height:1}
:root[data-product="mundodex"] .evolution-lane-horizontal:after{content:'→';display:grid;width:26px;height:26px;flex:0 0 26px;place-items:center;border-radius:50%;background:#1976ae}
:root[data-product="mundodex"] .evolution-lane-vertical{position:absolute;z-index:-1;left:50%;bottom:50%;width:2px;height:calc(var(--lane-up) * (100% + 17px));background:#76aace}
:root[data-product="mundodex"] .evolution-lane-row .dex-species-copy strong{overflow:visible;min-height:2.5em;text-overflow:clip;white-space:normal}
:root[data-product="mundodex"] .evolution-lane-row.regional .dex-species-card{background:linear-gradient(145deg,#fbfdff,#f1f7fb)}
:root[data-product="mundodex"] .evolution-lane-row.special .dex-species-card{background:linear-gradient(145deg,#fffdfa,#f7f2fb)}

@media(max-width:1023px){
  :root[data-product="mundodex"] .dex-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  :root[data-product="mundodex"] .dex-filters label:first-child{grid-column:span 2}
  :root[data-product="mundodex"] .dex-overview{grid-template-columns:1fr 110px}
  :root[data-product="mundodex"] .dex-overview-stats{grid-column:1/2;grid-row:2}
  :root[data-product="mundodex"] .dex-overview-ring{grid-row:1/3;grid-column:2}
  :root[data-product="mundodex"] .dex-species-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  :root[data-product="mundodex"] .evolution-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  :root[data-product="mundodex"] .evolution-filters label:first-child{grid-column:1/-1}
  :root[data-product="mundodex"] .evolution-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:639px){
  :root[data-product="mundodex"] .mundodex-brand-hero{min-height:92px;margin-bottom:12px;border-radius:12px}
  :root[data-product="mundodex"] .mundodex-brand-hero img{width:96%;max-height:118px}
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-collection{grid-template-columns:92px minmax(0,1fr)}
  :root[data-product="mundodex"] .metric-collection-icon-link .metric-icon{min-height:105px}
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition{grid-template-rows:66px minmax(0,1fr)}
  :root[data-product="mundodex"] .metric-collection-main{padding:12px 6px 3px}
  :root[data-product="mundodex"] .metric-collection .metric-secondary-count{min-height:32px;margin:0 7px 7px;padding-top:5px}
  :root[data-product="mundodex"] .dex-page-hero{grid-template-columns:82px minmax(0,1fr);min-height:100px;border-radius:14px}
  :root[data-product="mundodex"] .dex-page-icon{padding:8px}
  :root[data-product="mundodex"] .dex-page-icon img{width:63px;height:63px;border-radius:16px}
  :root[data-product="mundodex"] .dex-page-hero>div{padding:16px 14px}
  :root[data-product="mundodex"] .dex-page-hero h1{font-size:24px}
  :root[data-product="mundodex"] .dex-page-hero p:last-child{font-size:10px}
  :root[data-product="mundodex"] .dex-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
  :root[data-product="mundodex"] .dex-filters label:first-child{grid-column:1/-1}
  :root[data-product="mundodex"] .dex-overview{grid-template-columns:1fr 88px;gap:13px;min-height:124px;padding:17px 15px;border-radius:14px}
  :root[data-product="mundodex"] .dex-overview-count{gap:9px}
  :root[data-product="mundodex"] .dex-overview-count>strong{font-size:39px;letter-spacing:-2px}
  :root[data-product="mundodex"] .dex-overview-count b{font-size:14px}
  :root[data-product="mundodex"] .dex-overview-count small{font-size:9px}
  :root[data-product="mundodex"] .dex-overview-stats{gap:5px}
  :root[data-product="mundodex"] .dex-overview-stats span{padding:7px 4px;font-size:8px}
  :root[data-product="mundodex"] .dex-overview-stats b{font-size:13px}
  :root[data-product="mundodex"] .dex-overview-ring{width:82px;height:82px}
  :root[data-product="mundodex"] .dex-overview-ring:before{inset:9px}
  :root[data-product="mundodex"] .dex-overview-ring span{font-size:14px}
  :root[data-product="mundodex"] .dex-generation>summary{grid-template-columns:39px minmax(100px,1fr) auto 20px;gap:9px;min-height:67px;padding:10px}
  :root[data-product="mundodex"] .dex-generation-badge{width:36px;height:36px;border-radius:11px;font-size:12px}
  :root[data-product="mundodex"] .dex-generation-title strong{font-size:14px}
  :root[data-product="mundodex"] .dex-generation-title small{font-size:9px}
  :root[data-product="mundodex"] .dex-generation-progress{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
  :root[data-product="mundodex"] .dex-generation-progress>i{display:none}
  :root[data-product="mundodex"] .dex-generation-progress>b{font-size:10px}
  :root[data-product="mundodex"] .dex-generation-progress>small{font-size:9px}
  :root[data-product="mundodex"] .dex-generation-content{padding:8px}
  :root[data-product="mundodex"] .dex-species-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  :root[data-product="mundodex"] .dex-species-card{min-height:142px;padding:17px 4px 8px;border-radius:12px;gap:5px}
  :root[data-product="mundodex"] .dex-species-link{gap:5px}
  :root[data-product="mundodex"] .dex-species-card .dex-icon{width:60px;height:58px;flex-basis:58px}
  :root[data-product="mundodex"] .dex-species-copy strong{font-size:11px}
  :root[data-product="mundodex"] .dex-species-copy small{font-size:7px}
  :root[data-product="mundodex"] .dex-species-status{font-size:7px}
  :root[data-product="mundodex"] .dex-species-number{top:6px;right:7px;font-size:8px}
  :root[data-product="mundodex"] .dex-favorite{top:4px;left:4px;width:25px;height:25px;font-size:18px}
  :root[data-product="mundodex"] .evolution-favorite-filter{white-space:normal;font-size:9px}
  :root[data-product="mundodex"] .evolution-families{gap:22px}
  :root[data-product="mundodex"] .evolution-family{border-radius:13px}
  :root[data-product="mundodex"] .evolution-family-head{min-height:66px;padding:10px;gap:8px}
  :root[data-product="mundodex"] .evolution-family-head h2{font-size:14px}
  :root[data-product="mundodex"] .evolution-family-head h2{gap:4px}
  :root[data-product="mundodex"] .evolution-title-code{padding:3px 5px;border-radius:6px;font-size:8px}
  :root[data-product="mundodex"] .evolution-fork-label{font-size:7px}
  :root[data-product="mundodex"] .evolution-family-progress{min-width:96px;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
  :root[data-product="mundodex"] .evolution-family-progress>span{display:none}
  :root[data-product="mundodex"] .evolution-branches{gap:9px;padding:7px}
  :root[data-product="mundodex"] .evolution-branch.branched{padding:7px;border-radius:10px}
  :root[data-product="mundodex"] .evolution-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  :root[data-product="mundodex"] .evolution-split{grid-template-columns:1fr;gap:5px;padding:7px}
  :root[data-product="mundodex"] .evolution-layout-label{text-align:left;margin:0 0 5px}
  :root[data-product="mundodex"] .evolution-common-grid{justify-content:flex-start;gap:5px}
  :root[data-product="mundodex"] .evolution-common-grid>.evolution-card-wrap{flex:0 0 calc(25% - 4px);width:auto;max-width:none}
  :root[data-product="mundodex"] .evolution-fork-node{height:31px;align-self:auto;transform:rotate(90deg);font-size:16px;background:radial-gradient(circle at center,#1976ae 0 11px,transparent 12px)}
  :root[data-product="mundodex"] .evolution-fork-node:after{top:0;bottom:0}
  :root[data-product="mundodex"] .evolution-destinations{gap:7px}
  :root[data-product="mundodex"] .evolution-destination{grid-template-columns:70px minmax(0,1fr);gap:5px;padding:5px;border-radius:9px}
  :root[data-product="mundodex"] .evolution-destination:before{display:none}
  :root[data-product="mundodex"] .evolution-destination>header strong{font-size:7px}
  :root[data-product="mundodex"] .evolution-destination>header span{padding:3px 4px;font-size:6px}
  :root[data-product="mundodex"] .evolution-destination-grid{gap:4px}
  :root[data-product="mundodex"] .evolution-destination-grid>.evolution-card-wrap{flex:0 0 calc(25% - 4px);width:auto;max-width:none}
  :root[data-product="mundodex"] .evolution-shared{right:3px;bottom:3px;max-width:calc(100% - 6px);padding:3px;font-size:5px}
  :root[data-product="mundodex"] .evolution-tree-viewport{padding:10px 7px}
  :root[data-product="mundodex"] .evolution-tree{justify-content:flex-start;gap:7px}
  :root[data-product="mundodex"] .evolution-tree-node{grid-template-columns:auto 28px auto}
  :root[data-product="mundodex"] .evolution-tree-source>.evolution-card-wrap,:root[data-product="mundodex"] .evolution-tree-leaf>.evolution-tree-source>.evolution-card-wrap,:root[data-product="mundodex"] .evolution-tree-output>.evolution-card-wrap,:root[data-product="mundodex"] .evolution-tree-output>div>.evolution-card-wrap{width:min(118px,max(58px,calc(var(--evolution-card-share) - 36px)));flex-basis:min(118px,max(58px,calc(var(--evolution-card-share) - 36px)))}
  :root[data-product="mundodex"] .evolution-parallel-path{gap:3px}
  :root[data-product="mundodex"] .evolution-parallel-path>.evolution-card-wrap{width:min(118px,max(58px,calc(var(--evolution-card-share) - 36px)));flex-basis:min(118px,max(58px,calc(var(--evolution-card-share) - 36px)))}
  :root[data-product="mundodex"] .evolution-parallel-arrow{width:17px;height:17px;flex-basis:17px;font-size:9px}
  :root[data-product="mundodex"] .evolution-tree-connector{font-size:13px;background:radial-gradient(circle at center,#1976ae 0 9px,transparent 10px)}
  :root[data-product="mundodex"] .evolution-tree-outputs{gap:7px}
  :root[data-product="mundodex"] .evolution-tree-output{padding:5px;border-radius:9px}
  :root[data-product="mundodex"] .evolution-tree-output:before{left:-14px;width:14px}
  :root[data-product="mundodex"] .evolution-lanes-viewport{padding:10px 7px}
  :root[data-product="mundodex"] .evolution-lanes{gap:8px}
  :root[data-product="mundodex"] .evolution-lane-row{gap:18px}
  :root[data-product="mundodex"] .evolution-lane-row:not(:first-child){padding-top:5px}
  :root[data-product="mundodex"] .evolution-lane-cards{gap:3px}
  :root[data-product="mundodex"] .evolution-lane-cards>.evolution-card-wrap{width:auto;max-width:none;flex:1 1 0}
  :root[data-product="mundodex"] .evolution-lane-horizontal{left:100%;width:calc((100% + 18px) * var(--lane-span) - 100%)}
  :root[data-product="mundodex"] .evolution-lane-horizontal:after{width:18px;height:18px;font-size:9px}
  :root[data-product="mundodex"] .evolution-lane-vertical{left:50%;height:calc(var(--lane-up) * (100% + 9px))}
  :root[data-product="mundodex"] .evolution-lane-row .dex-species-copy strong{font-size:10px;line-height:1.2}
}

}

/* Source: ingestion.css; original cascade layer/order preserved. */
@layer features {
.registration-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:24px;align-items:start}.registration-form{position:sticky;top:88px;display:grid;gap:18px}.registration-form label,.registration-decision label,.registration-manual label{display:grid;gap:7px;font-size:.78rem;font-weight:800;letter-spacing:.04em}.registration-form textarea{resize:vertical;min-height:150px}.registration-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.registration-drop{padding:18px;border:1px dashed var(--border,#d1d5db);border-radius:14px;background:rgba(255,255,255,.45)}.registration-drop span,.registration-safety,.registration-hint{color:var(--muted,#64748b);font-size:.82rem;font-weight:500;line-height:1.5}.registration-results{display:grid;gap:16px;min-width:0}.registration-summary{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.registration-summary>*{padding:8px 12px;border-radius:999px;background:var(--panel,#fff);border:1px solid var(--border,#e5e7eb)}.registration-entry{padding:20px;border:1px solid var(--border,#e5e7eb);border-radius:18px;background:var(--panel,#fff);box-shadow:0 10px 32px rgba(15,23,42,.05)}.registration-entry>header{display:flex;gap:16px;align-items:flex-start}.registration-entry h3{margin:8px 0 4px}.registration-entry p{margin:0}.registration-preview{width:92px;aspect-ratio:5/7;object-fit:cover;border-radius:10px;background:#eef2f7}.registration-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:.72rem;font-weight:900;text-transform:uppercase}.status-cadastrado{background:#dcfce7;color:#166534}.status-aguardando_revisao,.status-erro{background:#fef3c7;color:#92400e}.status-rejeitado{background:#fee2e2;color:#991b1b}.registration-candidates{display:grid;gap:9px;margin-top:16px}.registration-candidate{display:grid;grid-template-columns:52px 1fr;gap:12px;padding:10px;border:1px solid var(--border,#e5e7eb);border-radius:12px;cursor:pointer}.registration-candidate:has(input:checked){border-color:#2563eb;background:#eff6ff}.registration-candidate img,.registration-image-placeholder{width:52px;height:70px;object-fit:cover;border-radius:7px;background:#e2e8f0;display:grid;place-items:center}.registration-candidate span span{display:grid;gap:3px}.registration-candidate strong,.registration-candidate small,.registration-candidate a{display:block}.registration-candidate small{color:var(--muted,#64748b)}.registration-candidate a{margin-top:4px;font-size:.78rem}.registration-decision,.registration-entry-actions,.registration-manual{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-top:16px}.registration-decision label{min-width:120px}.registration-manual label{flex:1;min-width:220px}.registration-success{margin-top:16px;padding:12px;border-radius:12px;background:#ecfdf5;color:#166534;font-weight:700}.button.ghost{background:transparent;color:var(--muted,#64748b);border:1px solid var(--border,#d1d5db)}@media(max-width:900px){.registration-layout{grid-template-columns:1fr}.registration-form{position:static}.registration-entry{padding:16px}}@media(max-width:560px){.registration-form-row{grid-template-columns:1fr}.registration-entry>header{align-items:center}.registration-preview{width:70px}.registration-candidate{grid-template-columns:44px 1fr}.registration-candidate img,.registration-image-placeholder{width:44px;height:62px}.registration-decision>*{flex:1 1 100%}.registration-decision .button,.registration-entry-actions .button{width:100%}}

}

@layer arquivo {
  :root {
    color-scheme: light;
    --ah-sleeve: #f7f9fc;
    --ah-paper: #ffffff;
    --ah-paper-soft: #f0f4f9;
    --ah-paper-deep: #e7edf5;
    --ah-ink: #10233f;
    --ah-ink-soft: #38506f;
    --ah-muted: #718198;
    --ah-line: #d9e1ec;
    --ah-line-strong: #bdc9d9;
    --ah-blue: #1769e0;
    --ah-blue-deep: #0e4fae;
    --ah-cyan: #12b9d6;
    --ah-coral: #ee465b;
    --ah-gold: #d9a320;
    --ah-green: #18835c;
    --ah-danger: #cf3348;
    --ah-navy: #10233f;
    --ah-navy-2: #162f52;
    --ah-holo: linear-gradient(110deg, rgba(23,105,224,.18), rgba(18,185,214,.2) 36%, rgba(217,163,32,.16) 67%, rgba(238,70,91,.14));
    --ah-space-1: 4px;
    --ah-space-2: 8px;
    --ah-space-3: 12px;
    --ah-space-4: 16px;
    --ah-space-5: 20px;
    --ah-space-6: 24px;
    --ah-space-8: 32px;
    --ah-space-10: 40px;
    --ah-space-12: 48px;
    --ah-radius-xs: 6px;
    --ah-radius-sm: 9px;
    --ah-radius: 12px;
    --ah-radius-lg: 18px;
    --ah-shadow-1: 0 1px 2px rgba(16,35,63,.06), 0 6px 18px rgba(16,35,63,.04);
    --ah-shadow-2: 0 12px 34px rgba(16,35,63,.11);
    --ah-ring: 0 0 0 3px rgba(23,105,224,.22);
    --ah-sidebar: 216px;
    --ah-max: 1480px;
    --ah-font-ui: Archivo, "Avenir Next", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ah-font-data: Barlow, "Avenir Next Condensed", "Arial Narrow", var(--ah-font-ui);
    --ah-ease: cubic-bezier(.2,.7,.2,1);

    --bg: var(--ah-sleeve);
    --paper: var(--ah-paper);
    --ink: var(--ah-ink);
    --muted: var(--ah-muted);
    --line: var(--ah-line);
    --green: var(--ah-blue);
    --sidebar: var(--ah-sidebar);
    --core-navy: var(--ah-navy);
    --core-red: var(--ah-coral);
    --core-blue: var(--ah-blue);
    --core-gold: var(--ah-gold);
    --cs-primary: var(--ah-blue);
    --cs-accent: var(--ah-cyan);
    --cs-border: var(--ah-line);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; background: var(--ah-sleeve); }
  body {
    min-width: 320px;
    margin: 0;
    background:
      linear-gradient(rgba(16,35,63,.025) 1px, transparent 1px) 0 0 / 100% 28px,
      var(--ah-sleeve);
    color: var(--ah-ink);
    font-family: var(--ah-font-ui);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  body::before { display: none; }
  button, input, select, textarea { font: inherit; }
  button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
  a { color: inherit; }
  img { max-width: 100%; }
  :where(h1, h2, h3, h4, p, li, dt, dd, label, a, button, summary, strong, small, span, td, th) {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  h1, h2, h3, h4 {
    margin-top: 0;
    color: var(--ah-ink);
    font-family: var(--ah-font-ui);
    letter-spacing: -.025em;
  }
  h1 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.05; }
  h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.14; }
  h3 { font-size: 1rem; line-height: 1.2; }
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--ah-blue) !important;
    outline-offset: 3px;
    box-shadow: var(--ah-ring);
  }
  ::selection { background: rgba(18,185,214,.24); color: var(--ah-ink); }

  /* Estrutura: um arquivo de coleção, não um painel SaaS. */
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: flex;
    width: var(--ah-sidebar);
    padding: 22px 14px 18px;
    flex-direction: column;
    border: 0;
    background:
      linear-gradient(180deg, rgba(255,255,255,.035), transparent 22%),
      var(--ah-navy);
    color: #fff;
    box-shadow: 8px 0 26px rgba(16,35,63,.08);
  }
  .brand {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 6px 30px;
    color: #fff;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -.035em;
    text-decoration: none;
  }
  .sidebar-brand-lockup {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
  }
  .sidebar-brand-logo {
    display: block;
    width: 100%;
    height: auto;
  }
  :root[data-product="mundodex"] .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: var(--ah-blue);
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
  }
  :root[data-product="mundodex"] .brand-mark img { width: 100%; height: 100%; object-fit: cover; }
  .brand small {
    display: block;
    margin-top: 1px;
    color: #9bb0cb;
    font-family: var(--ah-font-data);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
  }
  .brand-accent { color: #53cbea !important; }
  .nav-label {
    margin: 0 12px 8px;
    padding: 0;
    color: #7890ad;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: none;
  }
  .sidebar nav { display: grid; gap: 4px; }
  .sidebar nav a {
    position: relative;
    display: flex;
    min-height: 43px;
    padding: 9px 10px;
    gap: 11px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #b8c7da;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms var(--ah-ease), background-color 160ms var(--ah-ease), border-color 160ms var(--ah-ease);
  }
  .sidebar nav a:hover { transform: none; background: rgba(255,255,255,.055); color: #fff; }
  .sidebar nav a.active {
    border-color: rgba(83,203,234,.2);
    background: rgba(23,105,224,.2);
    color: #fff;
  }
  .sidebar nav a.active::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px -14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--ah-cyan);
    box-shadow: none;
  }
  .sidebar .nav-icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; }
  .sidebar .nav-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav-separator { height: 1px; margin: 8px 10px; background: rgba(255,255,255,.08); }
  .sidebar-bottom {
    margin: auto 8px 0;
    padding: 14px 2px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #afbed0;
    font-size: 10px;
  }
  .sidebar-bottom small { display: block; margin-top: 4px; color: #7188a4; line-height: 1.35; }
  .status-dot { background: var(--ah-green); }
  .workspace { min-width: 0; margin-left: var(--ah-sidebar); }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 55;
    display: grid;
    width: 100%;
    height: 68px;
    padding: 10px clamp(20px, 3vw, 42px);
    grid-template-columns: minmax(180px,.7fr) minmax(300px,600px) minmax(180px,.7fr);
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid rgba(189,201,217,.75);
    background: rgba(247,249,252,.92);
    backdrop-filter: blur(15px) saturate(1.2);
    -webkit-backdrop-filter: blur(15px) saturate(1.2);
  }
  .topbar-location { min-width: 0; }
  #breadcrumb {
    display: block;
    overflow: hidden;
    color: var(--ah-muted);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .command-search {
    display: flex;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--ah-line-strong);
    border-radius: 10px;
    background: var(--ah-paper);
    color: var(--ah-muted);
    cursor: pointer;
    box-shadow: var(--ah-shadow-1);
    transition: border-color 160ms var(--ah-ease), box-shadow 160ms var(--ah-ease);
  }
  .command-search:hover { border-color: var(--ah-blue); box-shadow: var(--ah-ring); }
  .command-search svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: var(--ah-blue); stroke-width: 2; stroke-linecap: round; }
  .command-search span { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
  .command-search kbd { margin-left: auto; padding: 2px 7px; border: 1px solid var(--ah-line); border-bottom-width: 2px; border-radius: 5px; background: var(--ah-paper-soft); color: var(--ah-ink-soft); font: 700 10px var(--ah-font-ui); }
  .topbar-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
  .local-tag { border: 0; background: transparent; color: var(--ah-muted); font-size: 10px; font-weight: 700; }
  .local-tag::before { background: var(--ah-green); box-shadow: 0 0 0 3px rgba(24,131,92,.12); }
  .quick-add {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 12px;
    gap: 6px;
    align-items: center;
    border-radius: 9px;
    background: var(--ah-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
  }
  .quick-add span { font-size: 18px; line-height: 1; }
  main {
    width: min(var(--ah-max), calc(100% - 48px));
    max-width: var(--ah-max);
    min-height: calc(100vh - 116px);
    margin: 0 auto;
    padding: 34px 0 64px;
  }
  footer { width: min(var(--ah-max), calc(100% - 48px)); margin: 0 auto; padding: 20px 0 30px; color: var(--ah-muted); }
  footer.legal-footer { align-items: center; gap: 16px; }
  footer.legal-footer .app-version { font-size: .85em; white-space: nowrap; font-weight: 400; }
  footer.legal-footer .legal-links { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
  footer.legal-footer a { color: var(--ah-blue); text-decoration: underline; text-underline-offset: 3px; }

  /* Componentes fundamentais. */
  .eyebrow {
    margin: 0 0 6px;
    color: var(--ah-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: none;
  }
  .subtitle { max-width: 74ch; color: var(--ah-muted); font-size: 14px; line-height: 1.55; }
  .heading { gap: 20px; align-items: end; margin-bottom: 26px; }
  .heading h1 { margin: 0 0 7px; }
  .heading .subtitle { margin: 0; }
  .button {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--ah-line-strong);
    border-radius: 9px;
    background: var(--ah-paper);
    color: var(--ah-ink-soft);
    font-size: 12px;
    font-weight: 720;
    box-shadow: none;
    transition: border-color 160ms var(--ah-ease), background-color 160ms var(--ah-ease), color 160ms var(--ah-ease);
  }
  .button:hover { transform: none; border-color: var(--ah-blue); background: #f3f7ff; box-shadow: none; }
  .button.primary { border-color: var(--ah-blue); background: var(--ah-blue); color: #fff; box-shadow: none; }
  .button.primary:hover { border-color: var(--ah-blue-deep); background: var(--ah-blue-deep); }
  .panel, .metric, .set-tile, .rarity-panel, .achievement-card, .acquisition-card, .binder-suggestion, .dashboard-search {
    border: 1px solid var(--ah-line);
    background: var(--ah-paper);
    box-shadow: var(--ah-shadow-1);
  }
  .panel { border-radius: var(--ah-radius); }
  .note { border: 1px solid #bdd9f8; border-radius: 10px; background: #edf6ff; color: var(--ah-ink-soft); }
  .note.warning { border-color: #ead5a4; background: #fff8e9; }
  .empty {
    border: 1px dashed var(--ah-line-strong);
    border-radius: var(--ah-radius);
    background: rgba(255,255,255,.62);
    color: var(--ah-muted);
  }
  .empty h3 { color: var(--ah-ink); }
  .loading, .skeleton {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius);
    background: var(--ah-paper-soft);
    color: var(--ah-muted);
  }
  .loading::after, .skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.86) 48%, transparent 66%);
    transform: translateX(-100%);
    animation: ah-shimmer 1.35s infinite;
  }
  @keyframes ah-shimmer { to { transform: translateX(100%); } }
  #toast {
    left: calc(50% + var(--ah-sidebar)/2);
    bottom: 24px;
    max-width: min(480px, calc(100vw - 32px));
    border-radius: 9px;
    background: var(--ah-navy);
    box-shadow: var(--ah-shadow-2);
  }
  #toast.error { background: var(--ah-danger); }
  .progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--ah-paper-deep); }
  .progress-fill { border-radius: inherit; background: linear-gradient(90deg, var(--ah-blue), var(--ah-cyan)); }
  .finish {
    display: inline-flex;
    max-width: 100%;
    min-height: 22px;
    padding: 3px 7px;
    align-items: center;
    border: 1px solid rgba(23,105,224,.16);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--ah-blue-deep);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.15;
  }
  .number, .set-code, .set-code-chip, .rarity-count, .dex-species-number, .card-dialog-number, .progress-label b, .set-progress-count, .metric strong, .stepper output {
    font-family: var(--ah-font-data);
    font-variant-numeric: tabular-nums;
  }
  .toolbar, .filterbar {
    display: flex;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--ah-line);
    border-radius: 11px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--ah-shadow-1);
  }
  .filterbar { box-shadow: none; }
  .toolbar label, .filterbar label {
    gap: 5px;
    color: var(--ah-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .025em;
  }
  .toolbar input, .toolbar select, .filterbar input, .filterbar select, input, select, textarea {
    min-height: 39px;
    border: 1px solid var(--ah-line-strong);
    border-radius: 8px;
    background: var(--ah-paper);
    color: var(--ah-ink);
  }
  .toolbar input:hover, .toolbar select:hover, .filterbar input:hover, .filterbar select:hover { border-color: #91a8c6; }
  .view-toggle { padding: 3px; border: 1px solid var(--ah-line); border-radius: 9px; background: var(--ah-paper-soft); }
  .view-toggle button { min-height: 32px; border-radius: 6px; }
  .view-toggle button.active { background: var(--ah-paper); color: var(--ah-blue); box-shadow: 0 1px 4px rgba(16,35,63,.1); }
  .section-head { margin: 38px 0 15px; align-items: end; }
  .section-head h2 { margin-bottom: 0; }
  .section-head a { color: var(--ah-blue); font-size: 12px; font-weight: 750; }
  body[data-route="inicio"] .dashboard-section-heading {
    margin: 34px 0 14px;
    align-items: center;
  }
  body[data-route="inicio"] .dashboard-section-heading h2 {
    margin: 0;
    color: var(--ah-blue);
    font-size: clamp(1.2rem, 1.65vw, 1.42rem);
    font-weight: 780;
    letter-spacing: -.018em;
    line-height: 1.15;
  }

  /* Página inicial: logo, busca e atalhos em ordem clara. */
  body[data-route="inicio"] main { padding-top: 24px; }
  :root[data-product="mundodex"] .mundodex-brand-hero {
    width: 100%;
    height: clamp(105px, 15vw, 190px);
    min-height: 0;
    margin: 0 0 14px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  :root[data-product="mundodex"] .mundodex-brand-hero img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: none;
    margin-inline: auto;
    object-fit: contain;
    object-position: center;
  }
  @media (min-width: 801px) {
    :root[data-product="mundodex"] .mundodex-brand-hero img {
      mix-blend-mode: multiply;
    }
  }
  .dashboard-search-shell { position: relative; z-index: 12; margin-bottom: 18px; }
  .dashboard-search {
    margin: 0;
    padding: 16px;
    border-color: #aec5e4;
    border-left: 4px solid var(--ah-blue);
    border-radius: var(--ah-radius);
  }
  .dashboard-search label { color: var(--ah-ink); font-size: 13px; font-weight: 800; }
  .dashboard-search p { margin: 4px 0 0; color: var(--ah-muted); font-size: 11px; }
  .dashboard-search input { height: 48px; margin-top: 9px; padding-left: 44px; border-color: var(--ah-line-strong); background-color: #fff; font-size: 15px; }
  .dashboard-search::after {
    content: none;
  }
  .dashboard-search-results { z-index: 80; border: 1px solid var(--ah-line-strong); border-radius: 0 0 10px 10px; box-shadow: var(--ah-shadow-2); }
  .hero-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 28px; }
  .dex-hero, .binders-hero, .repeat-hero {
    position: relative;
    display: grid;
    min-height: 172px;
    grid-template-columns: 104px minmax(0,1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius);
    box-shadow: var(--ah-shadow-1);
    transition: border-color 160ms var(--ah-ease), box-shadow 160ms var(--ah-ease);
  }
  .dex-hero:hover, .binders-hero:hover, .repeat-hero:hover { transform: none; border-color: #95adca; box-shadow: var(--ah-shadow-2); }
  .dex-hero { background: linear-gradient(105deg, #f4faff 0 58%, #dff7fb); color: var(--ah-ink); }
  .binders-hero { background: linear-gradient(105deg, #f4fbff 0 58%, #e5f5ff); }
  .repeat-hero { background: linear-gradient(105deg, #fff8f9 0 62%, #ffeaee); }
  .dex-hero .eyebrow { color: var(--ah-blue); }
  .binders-hero .eyebrow { color: #147db5; }
  .dex-hero h2, .binders-hero h2, .repeat-hero h2 { color: var(--ah-ink); }
  .dex-hero p, .binders-hero p, .repeat-hero p { max-width: 56ch; color: var(--ah-muted); }
  body[data-route="inicio"] .hero-grid p:not(.eyebrow) { display: none; }
  .dex-hero > div, .binders-hero > div, .repeat-hero > div { display: flex; min-width: 0; min-height: 172px; flex-direction: column; justify-content: center; padding: 16px; }
  .dex-hero .feature-card-cta, .binders-hero .feature-card-cta, .repeat-hero .feature-card-cta { margin-top: 12px; }
  .binders-hero .feature-card-cta { margin-top: 12px; color: #147db5; }
  .feature-panel-icon { align-self: stretch; display: grid; place-items: center; width: 104px; min-height: 100%; border-radius: 10px; background: transparent; }
  .feature-panel-icon .collector-studio-icon {
    display: block !important;
    width: min(82%, 96px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    opacity: .94;
    filter: saturate(.94) drop-shadow(0 8px 14px rgba(16,35,63,.12));
    mix-blend-mode: multiply;
  }
  .feature-panel-icon > svg { display: none; }
  .feature-panel-icon .collector-studio-icon-pokedex { display: block !important; }
  .feature-panel-icon .collector-studio-icon-pokedex + svg {
    display: none !important;
  }
  .feature-card-cta { color: var(--ah-blue); font-size: 12px; font-weight: 800; }
  .dex-hero .feature-panel-icon { place-items: center; padding-top: 0; }
  .ring { position: absolute; bottom: 19px; left: 23px; width: 58px; height: 58px; background: conic-gradient(var(--ah-blue) var(--progress), var(--ah-paper-deep) 0); }
  .ring-inner { width: 48px; height: 48px; background: rgba(255,255,255,.94); color: var(--ah-ink); }
  .ring strong { font-family: var(--ah-font-data); font-size: 15px; }
  .ring small { font-size: 6px; }
  .ring small { color: var(--ah-muted); }
  .dashboard-section-intro { margin: 0 0 12px; }
  .dashboard-section-intro h2 { margin: 0; }
  .dashboard-primary-metrics { display: grid; grid-template-columns: .78fr 1.34fr 1fr; gap: 12px; margin-bottom: 34px; }
  .metric {
    min-height: 132px;
    border-radius: var(--ah-radius);
    transition: border-color 160ms var(--ah-ease), box-shadow 160ms var(--ah-ease);
  }
  .metric:hover { transform: none; border-color: #aebed2; box-shadow: var(--ah-shadow-2); }
  .metric .metric-label { color: var(--ah-ink-soft); font-size: 14px; font-weight: 800; }
  .metric strong { color: var(--ah-ink); font-size: 32px; }
  .metric-icon { overflow: hidden; border-radius: 0; background: transparent !important; }
  .metric-icon .collector-studio-icon { display: block !important; width: 100%; height: 100%; object-fit: contain; opacity: .88; }
  .metric-icon > svg { display: none; }
  .metric-composition { overflow: hidden; }
  .metric-main-link { border-radius: inherit; }
  .metric-type-panel { align-content: center; background: transparent; }
  .metric-type-item { border: 1px solid rgba(16,35,63,.08); background: rgba(255,255,255,.56); }
  .metric-type-item:hover { transform: none; border-color: var(--type-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--type-color) 20%, transparent); }
  .metric-type-item b { font-size: 13px; }
  .rarity-dashboard { margin: 34px 0; }
  .rarity-dashboard-head h2 { margin: 0; }
  .rarity-panels { gap: 12px; }
  .rarity-panel { overflow: hidden; border-radius: var(--ah-radius); box-shadow: none; }
  .rarity-panel-head { background: #f5f7fb; }
  .rarity-row:hover { background: #f3f7ff; }
  .rarity-count { background: var(--ah-navy); }
  .dashboard-sets { margin: 38px 0; }
  .dashboard-recent-grid { gap: 9px; }
  .dashboard-recent-card { border-color: var(--ah-line); border-radius: 9px; background: var(--ah-paper); }
  .dashboard-recent-card:hover { transform: none; border-color: var(--ah-blue); }

  /* Coleções: arquivo por era e progresso em duas trilhas. */
  .era-group {
    overflow: clip;
    margin: 0 0 18px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius);
    background: var(--ah-paper);
    box-shadow: var(--ah-shadow-1);
  }
  .era-group > summary {
    min-height: 58px;
    padding: 14px 18px;
    border-bottom: 1px solid transparent;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--era-color, var(--ah-blue)) 12%, white), #fff 72%);
    cursor: pointer;
  }
  .era-group[open] > summary { border-bottom-color: var(--ah-line); }
  .era-group > summary strong { color: var(--ah-ink); font-size: 18px; }
  .era-group > summary span { color: var(--ah-muted); }
  .era-group[data-era-theme="mega"] { --era-color: #ca303a; }
  .era-group[data-era-theme="scarlet-violet"] { --era-color: #8558d8; }
  .era-group[data-era-theme="sword-shield"] { --era-color: #17a7cb; }
  .era-group[data-era-theme="sun-moon"] { --era-color: #df9c2a; }
  .era-group[data-era-theme="xy"] { --era-color: #df394c; }
  .era-group[data-era-theme="black-white"] { --era-color: #4e637d; }
  .era-group[data-era-theme="original"] { --era-color: #1769e0; }
  .set-catalog-grid { padding: 14px; }
  .set-tile {
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    box-shadow: none;
    transition: border-color 160ms var(--ah-ease), box-shadow 160ms var(--ah-ease);
  }
  .set-tile:hover { transform: none; border-color: #9fb3cd; box-shadow: var(--ah-shadow-2); }
  .set-card-logo-bg { opacity: .16; filter: blur(16px) saturate(1.25); }
  .set-tile-compact::before { background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.88)); }
  .compact-set-head { min-height: 54px; align-items: start; }
  .compact-set-head h3 { font-size: 14px; line-height: 1.25; }
  .set-code-chip { border: 0; border-radius: 5px; background: var(--ah-navy); color: #fff; font-size: 10px; }
  .compact-set-visual { height: 94px; }
  .set-logo-small { width: min(164px, 86%); height: 82px; background: transparent; }
  .set-progress-pair { gap: 9px; }
  .set-progress-meta, .set-progress-count { color: var(--ah-muted); font-size: 10px; }
  .set-progress-meta b { color: var(--ah-ink); }
  .set-progress-item.estendido .progress-fill { background: linear-gradient(90deg, var(--ah-gold), #f1c85a); }
  .compact-set-foot { border-top-color: var(--ah-line); color: var(--ah-blue); }

  /* Índice de coleções: uma entrada direta, filtros essenciais e alternância visual. */
  body[data-route="sets"] .collections-intro {
    margin: 2px 0 18px;
  }
  body[data-route="sets"] .collections-intro h1 {
    margin: 0;
    color: var(--ah-blue);
    font-size: clamp(22px,2.25vw,31px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -.025em;
  }
  body[data-route="sets"] .collections-toolbar {
    display: grid;
    grid-template-columns: minmax(170px,.72fr) minmax(210px,.92fr) minmax(260px,1.55fr);
    align-items: end;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius);
    background: var(--ah-paper);
    box-shadow: var(--ah-shadow-1);
  }
  body[data-route="sets"] .collections-toolbar label {
    min-width: 0;
    color: var(--ah-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .045em;
  }
  body[data-route="sets"] .collections-toolbar select,
  body[data-route="sets"] .collections-toolbar input {
    width: 100%;
    min-height: 42px;
    margin-top: 6px;
    border: 1px solid var(--ah-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--ah-ink);
    font: 500 13px/1 var(--ah-font-ui);
  }
  body[data-route="sets"] .collections-toolbar input { padding-inline: 13px; }
  body[data-route="sets"] .collections-toolbar select:focus-visible,
  body[data-route="sets"] .collections-toolbar input:focus-visible,
  body[data-route="sets"] .catalog-view-toggle button:focus-visible {
    outline: none;
    border-color: var(--ah-blue);
    box-shadow: var(--ah-ring);
  }
  body[data-route="sets"] .collections-available-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
  }
  body[data-route="sets"] .collections-available-head > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
  }
  body[data-route="sets"] .collections-available-head h2 {
    margin: 0;
    color: var(--ah-ink);
    font-size: clamp(18px,1.65vw,23px);
    font-weight: 640;
  }
  body[data-route="sets"] .collections-available-head .subtitle {
    color: var(--ah-muted);
    font-size: 11px;
  }
  body[data-route="sets"] .catalog-view-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--ah-line);
    border-radius: 10px;
    background: var(--ah-paper-soft);
  }
  body[data-route="sets"] .catalog-view-toggle button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--ah-muted);
    cursor: pointer;
  }
  body[data-route="sets"] .catalog-view-toggle button:hover { color: var(--ah-blue); }
  body[data-route="sets"] .catalog-view-toggle button.active {
    border-color: #c9d8ed;
    background: #fff;
    color: var(--ah-blue);
    box-shadow: 0 1px 3px rgba(16,35,63,.08);
  }
  body[data-route="sets"] .catalog-view-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Cada coleção herda a própria identidade cromática do logo, sem perder leitura. */
  body[data-route="sets"] .set-tile-compact > .set-card-logo-bg {
    opacity: 1;
    filter: none;
  }
  body[data-route="sets"] .set-tile-compact > .set-card-logo-bg img {
    opacity: .30;
    filter: blur(12px) saturate(1.45);
    transform: scale(1.2);
  }
  body[data-route="sets"] .set-tile-compact > .set-card-promo-bg {
    opacity: .09;
    transform: rotate(-8deg) scale(1.08);
  }
  body[data-route="sets"] .set-card-promo-bg img {
    opacity: 1;
    filter: none;
    object-fit: contain;
    transform: none;
  }
  .promo-set-symbol { object-fit: contain; }
  .set-logo-small .promo-set-symbol { width: auto; max-width: 92px; }
  body[data-route="sets"] .set-heading .promo-set-symbol { width: auto; max-width: 128px; }
  body[data-route="sets"] .set-tile-compact::before {
    background: linear-gradient(145deg,rgba(255,255,255,.56),rgba(255,255,255,.73) 58%,rgba(255,255,255,.84));
  }
  body[data-route="sets"] .set-tile-compact {
    min-height: 286px;
    padding: 15px 17px 14px;
  }
  body[data-route="sets"] .compact-set-head {
    min-height: 34px;
    align-items: center;
    gap: 9px;
  }
  body[data-route="sets"] .compact-set-head h3 {
    font-size: 15px;
    line-height: 1.18;
  }
  body[data-route="sets"] .compact-set-visual {
    height: 108px;
    min-height: 108px;
    margin: 0 0 3px;
  }
  body[data-route="sets"] .set-tile-compact .set-logo-wrap.compact,
  body[data-route="sets"] .set-tile-compact .set-logo-small {
    height: 108px;
  }
  body[data-route="sets"] .set-tile-compact .set-logo-small .set-logo {
    max-width: 260px;
    max-height: 104px;
  }
  body[data-route="sets"] .set-tile-compact .compact-set-foot {
    justify-content: flex-end;
    margin-top: 9px;
    font-size: 10px;
    font-weight: 590;
  }

  /* Lista: a mesma informação em cartões horizontais, sem criar outro fluxo. */
  body[data-route="sets"] .set-catalog-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    padding: 0;
  }
  body[data-route="sets"] .set-catalog-list .set-tile-compact {
    display: grid;
    grid-template-columns: minmax(0,1fr) 150px;
    grid-template-areas:
      "head visual"
      "progress visual"
      "foot visual";
    column-gap: 14px;
    min-height: 174px;
    padding: 14px 15px;
  }
  body[data-route="sets"] .set-catalog-list .compact-set-head { grid-area: head; }
  body[data-route="sets"] .set-catalog-list .compact-set-visual {
    grid-area: visual;
    align-self: center;
    height: 132px;
    min-height: 132px;
  }
  body[data-route="sets"] .set-catalog-list .set-logo-wrap.compact,
  body[data-route="sets"] .set-catalog-list .set-logo-small { height: 132px; }
  body[data-route="sets"] .set-catalog-list .set-logo-small .set-logo { max-width: 150px; max-height: 124px; }
  body[data-route="sets"] .set-catalog-list .set-progress-pair { grid-area: progress; align-self: center; }
  body[data-route="sets"] .set-catalog-list .compact-set-foot { grid-area: foot; }
  .set-heading {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--ah-line);
    border-left: 4px solid var(--ah-blue);
    border-radius: var(--ah-radius);
    background: var(--ah-paper);
    box-shadow: var(--ah-shadow-1);
  }
  .set-heading-brand { min-width: 0; }
  .set-heading-brand > div { min-width: 0; }
  .set-heading-brand h1 { overflow-wrap: normal; word-break: normal; hyphens: none; }
  .set-heading .set-art { height: 90px; background: transparent; }
  .set-detail-progress { margin-bottom: 18px; padding: 13px 15px; border: 1px solid var(--ah-line); border-radius: 10px; background: var(--ah-paper); }

  /* Galeria e detalhes: a carta permanece protagonista. */
  .card-grid { gap: 18px 14px; }
  .card {
    overflow: visible;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
  }
  .card:hover { transform: none; box-shadow: none; }
  .card-frame {
    position: relative;
    padding: 5px;
    border: 1px solid var(--ah-line);
    border-radius: 10px;
    background: #eaf0f7;
    box-shadow: 0 5px 14px rgba(16,35,63,.09);
    transition: border-color 160ms var(--ah-ease), box-shadow 160ms var(--ah-ease);
  }
  .card:hover .card-frame { border-color: #9fb4cf; box-shadow: 0 9px 22px rgba(16,35,63,.15); }
  .card.owned .card-frame { border-color: rgba(24,131,92,.55); }
  .card-image { width: 100%; aspect-ratio: 63/88; overflow: hidden; border-radius: 6px; background: #dfe6ef; }
  .card-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .owned-badge { top: 7px; right: 7px; bottom: auto; left: auto; padding: 4px 7px; border: 1px solid rgba(255,255,255,.65); background: rgba(16,35,63,.78); color: #fff; font-size: 9px; backdrop-filter: blur(6px); }
  .card.owned .owned-badge { background: rgba(24,131,92,.86); }
  .card-finish { position: absolute; inset: auto 9px 9px; z-index: 6; pointer-events: none; }
  .card-finish .finish { max-width: 100%; overflow: hidden; border-color: rgba(255,255,255,.55); background: rgba(16,35,63,.78); color: #fff; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(6px); }
  .card-content { padding: 10px 3px 0; }
  .card-top { gap: 8px; align-items: baseline; }
  .card-top h3 { margin: 0; font-size: 13px; line-height: 1.2; }
  .card-top .number { margin-left: auto; color: var(--ah-blue-deep); font-size: 13px; font-weight: 800; }
  .card-set-line { margin: 4px 0 8px; color: var(--ah-muted); font-size: 9px; line-height: 1.25; }
  .card-trainer-type { color: var(--ah-ink-soft); }
  .card-quick { border-top: 1px solid var(--ah-line); }
  .card-quick-actions { gap: 5px; }
  .card-language, .condition-select { min-height: 30px; border-radius: 6px; font-size: 10px; }
  .stepper { border-color: var(--ah-line-strong); border-radius: 7px; background: var(--ah-paper); }
  .stepper button { color: var(--ah-blue); }
  .stepper output { min-width: 27px; color: var(--ah-ink); font-weight: 800; }
  .card-saving { color: var(--ah-muted); font-size: 8px; }
  .list-wrap { border: 1px solid var(--ah-line); border-radius: var(--ah-radius); box-shadow: var(--ah-shadow-1); }
  table { background: var(--ah-paper); }
  thead th { background: var(--ah-paper-soft); color: var(--ah-ink-soft); font-size: 10px; letter-spacing: .025em; }
  tbody tr:hover { background: #f4f8ff; }
  .list-thumb { width: 44px; aspect-ratio: 63/88; object-fit: contain; border-radius: 4px; }
  #card-dialog { width: min(1040px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: var(--ah-paper); box-shadow: 0 28px 90px rgba(16,35,63,.3); }
  #card-dialog::backdrop { background: rgba(9,23,42,.62); backdrop-filter: blur(3px); }
  .card-dialog-panel { display: grid; grid-template-columns: minmax(280px, .84fr) minmax(360px, 1.16fr); min-height: 570px; }
  .card-dialog-art { display: grid; padding: 26px; place-items: center; background: #eaf0f7; }
  .card-dialog-art img { width: min(100%, 390px); max-height: calc(94vh - 52px); aspect-ratio: 63/88; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 38px rgba(16,35,63,.22); }
  .card-dialog-info { padding: 32px; overflow: auto; }
  .card-dialog-close { top: 12px; right: 12px; border: 1px solid var(--ah-line); background: rgba(255,255,255,.92); color: var(--ah-ink); }
  .card-dialog-info h2 { font-size: 1.9rem; }
  .card-dialog-info dl { border-color: var(--ah-line); }
  .card-dialog-info dt { color: var(--ah-muted); }
  .card-dialog-info dd { color: var(--ah-ink); }
  .card-dialog-controls, .card-allocation-panel { border-color: var(--ah-line); border-radius: 10px; background: var(--ah-paper-soft); }
  .card-allocation-panel { display: grid; gap: 12px; margin-top: 12px; padding: 14px; }
  .card-allocation-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
  .card-allocation-head .eyebrow { margin-bottom: 3px; }
  .card-allocation-head h3, .card-allocation-locations h4, .card-allocation-add h4 { margin: 0; }
  .card-allocation-totals { display: grid; grid-template-columns: repeat(3,minmax(62px,1fr)); gap: 6px; }
  .card-allocation-totals span {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 7px 8px;
    border: 1px solid var(--ah-line);
    border-radius: 8px;
    background: rgba(255,255,255,.76);
    color: var(--ah-muted);
    font-size: 9px;
  }
  .card-allocation-totals b { color: var(--ah-blue); font: 800 18px/1 var(--ah-font-data); }
  .card-stock-lines { display: flex; flex-wrap: wrap; gap: 6px; }
  .card-stock-lines span { padding: 5px 8px; border-radius: 6px; background: #fff; color: var(--ah-ink-soft); font-size: 10px; }
  .card-allocation-note { margin: 0; color: var(--ah-muted); font-size: 10px; line-height: 1.45; }
  .card-allocation-locations { display: grid; gap: 7px; }
  .card-allocation-locations > div {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--ah-line);
    border-radius: 8px;
    background: #fff;
  }
  .card-allocation-locations > div > span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 8px; min-width: 0; }
  .card-allocation-locations a { overflow: hidden; color: var(--ah-blue-deep); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
  .card-allocation-locations small { grid-column: 1 / -1; color: var(--ah-muted); }
  .card-allocation-locations button { border: 1px solid var(--ah-line-strong); border-radius: 7px; background: #fff; padding: 7px 10px; color: var(--ah-ink); font-weight: 750; }
  .automatic-allocation { display: inline-flex; width: max-content; padding: 2px 5px; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 800; }
  .card-allocation-add { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 8px; align-items: end; }
  .card-allocation-add h4 { grid-column: 1 / -1; }
  .dialog-navigation button { border-color: var(--ah-line-strong); background: var(--ah-paper); color: var(--ah-blue); }

  /* Pokédex: índice físico, progressos e espécies por geração. */
  .dex-hero-panel {
    overflow: hidden;
    border: 1px solid #b8d2ee;
    border-left: 4px solid var(--ah-blue);
    border-radius: var(--ah-radius);
    background: linear-gradient(110deg, #f7fbff, #eaf7fb);
    box-shadow: var(--ah-shadow-1);
  }
  .dex-hero-panel .dex-icon, .dex-heading-icon { border-radius: 10px; background: #fff; }
  .dex-summary-card { border-radius: 10px; background: rgba(255,255,255,.76); }
  .dex-filters { position: sticky; top: 78px; z-index: 25; }
  .dex-generation {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius);
    background: var(--ah-paper);
    box-shadow: var(--ah-shadow-1);
  }
  .dex-generation > summary { padding: 14px 17px; border-bottom: 1px solid transparent; background: var(--ah-paper-soft); }
  .dex-generation[open] > summary { border-bottom-color: var(--ah-line); }
  .dex-generation > summary strong { font-size: 17px; }
  .dex-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; padding: 14px; }
  .dex-species-card {
    min-width: 0;
    border: 1px solid var(--ah-line);
    border-radius: 10px;
    background: var(--ah-paper);
    box-shadow: none;
    transition: border-color 160ms var(--ah-ease), background-color 160ms var(--ah-ease);
  }
  .dex-species-card:hover { transform: none; border-color: #98b1cf; box-shadow: none; }
  .dex-species-card.owned { border-color: rgba(24,131,92,.38); background: #f3fbf7; }
  .dex-species-card.missing { background: #f6f8fb; }
  .dex-species-link { min-height: 150px; }
  .dex-icon { width: 76px; height: 76px; }
  .dex-species-copy strong { font-size: 14px; }
  .dex-species-status { font-size: 10px; }
  .dex-favorite { color: var(--ah-coral); }
  .evolution-bay { border-color: var(--ah-line); border-radius: var(--ah-radius); background: #f2f6fb; box-shadow: var(--ah-shadow-1); }
  .evolution-card { border-color: var(--ah-line); border-radius: 10px; background: var(--ah-paper); }

  /* Fichários: uma mesa especializada, mais ampla, sem contaminar outras páginas. */
  main.vbind-module { width: min(1840px, calc(100% - 28px)); max-width: 1840px; }
  .vbind-module {
    --binder-leather: #132a48;
    --binder-paper: #eef3f8;
    --binder-stitch: #9cb1c9;
  }
  .vbind-module > .heading {
    padding: 16px 18px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius);
    background: var(--ah-paper);
  }
  .vbind-cover {
    min-height: 220px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(16,35,63,.18);
  }
  .vbind-cover-shade { background: linear-gradient(125deg, rgba(16,35,63,.92), rgba(22,47,82,.74), rgba(10,24,43,.94)); }
  .vbind-cover h2 { letter-spacing: -.02em; }
  .vbind-cover h2, .vbind-cover p, .vbind-cover small, .vbind-cover > span:last-child { color: #fff; }
  .vbind-cover p, .vbind-cover small { opacity: .82; }
  .vbind-cover > span:last-child { opacity: .92; font-weight: 800; }
  .vbind-layout { grid-template-columns: minmax(0,1fr) 350px; gap: 20px; }
  .vbind-book {
    border: 1px solid #7f94ad;
    border-radius: 16px;
    background: var(--binder-leather);
    box-shadow: 0 16px 40px rgba(16,35,63,.22), inset 0 0 0 2px rgba(255,255,255,.04);
  }
  .vbind-book::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); }
  .vbind-sheet { border-radius: 10px; background: var(--binder-paper); box-shadow: inset 0 0 0 1px rgba(16,35,63,.12); }
  .vbind-pocket { border-color: rgba(83,111,143,.44); background: rgba(255,255,255,.42); }
  .vbind-catalog {
    top: 82px;
    border: 1px solid #adc7e5;
    border-top: 4px solid var(--ah-blue);
    border-radius: var(--ah-radius);
    background: #f3f8ff;
    box-shadow: var(--ah-shadow-2);
  }
  .vbind-catalog h2 { color: var(--ah-ink); }
  .vbind-candidate { border-color: var(--ah-line); border-radius: 8px; background: var(--ah-paper); }
  .vbind-candidate:hover { border-color: var(--ah-blue); }
  .vbind-candidate.selected { border-color: var(--ah-gold); outline-color: rgba(217,163,32,.38); background: #fff9e9; }
  .vbind-filter-popover { border-color: var(--ah-line); border-radius: 9px; }
  .vbind-filter-popover > summary { color: var(--ah-ink); }
  .vbind-filter-popover > summary::after { color: var(--ah-blue); }
  .vbind-virtual-card { color: var(--ah-ink); background: linear-gradient(145deg, #fff, #eaf1f8); }
  .vbind-virtual-card b { color: var(--ah-blue); }
  #vbind-config { border-radius: 14px; background: var(--ah-paper); }

  /* Cadastro, preços e auditoria: densos e operacionais. */
  body[data-route="cadastro"] main, body[data-route="precos"] main, body[data-route="auditoria"] main { --ah-max: 1380px; }
  .ingestion-shell, .price-shell, .audit-summary, .audit-card, .audit-group {
    border-color: var(--ah-line);
    border-radius: var(--ah-radius);
    background: var(--ah-paper);
    box-shadow: var(--ah-shadow-1);
  }
  .ingestion-intro, .price-intro { border-left: 4px solid var(--ah-blue); background: #f4f8ff; }
  .ingestion-dropzone { border-color: #9fb7d3; border-radius: 10px; background: #f7fbff; }
  .ingestion-dropzone:hover, .ingestion-dropzone.is-dragging { border-color: var(--ah-blue); background: #edf5ff; }
  .audit-filters { position: sticky; top: 78px; z-index: 25; }
  .price-search-field input { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; }
  .audit-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
    gap: 12px;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .audit-total, .audit-stat { min-width: 0; min-height: 116px; }
  .audit-stat { display: flex; flex-direction: column; justify-content: center; }
  .audit-severity-alta { border-left-color: var(--ah-danger); }
  .audit-severity-media { border-left-color: var(--ah-gold); }
  .audit-severity-baixa { border-left-color: var(--ah-blue); }

  /* Estados de interface e pequenos refinamentos. */
  .owned-badge, .card-owned-check, .vbind-ownership-badge { font-family: var(--ah-font-ui); }
  .card-owned-check { background: rgba(24,131,92,.86); color: #fff; backdrop-filter: blur(4px); }
  .automatic-allocation { color: var(--ah-blue); background: #eaf3ff; }
  details > summary { user-select: none; }
  summary::-webkit-details-marker { display: none; }

  /* Tablet: ainda há espaço para catálogo e quatro espécies. */
  @media (max-width: 1180px) {
    :root { --ah-sidebar: 190px; }
    .topbar { grid-template-columns: minmax(130px,.5fr) minmax(260px,1fr) auto; padding-inline: 24px; }
    main { width: min(var(--ah-max), calc(100% - 36px)); }
    .dashboard-primary-metrics { grid-template-columns: 1fr 1.35fr; }
    .dashboard-primary-metrics .metric:last-child { grid-column: 1 / -1; }
    .hero-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .repeat-hero { grid-column: 1 / -1; }
    .set-catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .vbind-layout { grid-template-columns: minmax(0,1fr) 310px; }
  }

  /* Mobile/tablet estreito: navegação inferior e quatro cartas por fileira. */
  @media (max-width: 800px) {
    :root { --ah-sidebar: 0px; }
    body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .workspace { margin-left: 0; }
    .sidebar {
      inset: auto 0 0;
      display: block;
      width: 100%;
      height: calc(66px + env(safe-area-inset-bottom));
      padding: 5px max(8px, env(safe-area-inset-left)) env(safe-area-inset-bottom);
      border-top: 1px solid rgba(255,255,255,.1);
      box-shadow: 0 -8px 24px rgba(16,35,63,.18);
    }
    .sidebar .brand, .sidebar .nav-label, .sidebar .sidebar-bottom { display: none; }
    .sidebar nav { display: grid; height: 100%; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; }
    .sidebar nav:has(.admin-access:not([hidden])) { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .sidebar nav a { min-height: 54px; padding: 5px 2px; flex-direction: column; justify-content: center; gap: 2px; border-radius: 7px; font-size: 9px; text-align: center; }
    .sidebar nav a.active::before { inset: auto 28% -5px; width: 44%; height: 3px; border-radius: 3px 3px 0 0; }
    .sidebar .nav-icon { width: 20px; height: 20px; flex-basis: 20px; }
    .sidebar nav b { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
    .nav-separator { display: none; }
    .topbar { height: 58px; padding: 7px 14px; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; }
    .topbar-location { display: none; }
    .command-search { height: 42px; grid-column: 2; }
    .command-search span { font-size: 11px; }
    .command-search kbd, .local-tag { display: none; }
    .topbar-actions { grid-column: 3; }
    .quick-add { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 10px; }
    .quick-add b { display: none; }
    .quick-add span { font-size: 22px; }
    .topbar::before {
      content: "";
      grid-column: 1;
      width: 38px;
      height: 38px;
      border-radius: 9px;
      background: url('/static/assets/mundodex/brand-orbit/icon-512.png') center / cover no-repeat;
    }
    main { width: 100%; min-height: calc(100vh - 124px); padding: 20px 14px 38px; }
    footer:not(.legal-footer) { display: none; }
    footer.legal-footer { display: flex; width: calc(100% - 28px); padding: 18px 0 calc(92px + env(safe-area-inset-bottom)); flex-direction: column; align-items: flex-start; font-size: 10px; }
    footer.legal-footer .legal-links { justify-content: flex-start; gap: 10px 14px; }
    #toast { left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); }
    :root[data-product="mundodex"] .mundodex-brand-hero { height: clamp(92px, 30vw, 118px); min-height: 0; }
    :root[data-product="mundodex"] .mundodex-brand-hero img {
      width: 100%;
      max-width: none;
      height: 100%;
      max-height: none;
      margin-inline: 0;
      object-fit: cover;
    }
    .dashboard-search { padding: 12px; }
    .dashboard-search p { display: none; }
    .dashboard-search input { height: 44px; }
    .dashboard-search::after { left: 24px; bottom: 23px; }
    .hero-grid { grid-template-columns: 1fr; }
    .dex-hero, .binders-hero, .repeat-hero { min-height: 158px; padding: 18px; }
    .feature-panel-icon { width: 88px; min-height: 112px; }
    .dex-hero p, .binders-hero p, .repeat-hero p { font-size: 11px; }
    .ring { width: 82px; height: 82px; }
    .ring-inner { width: 69px; height: 69px; }
    .dashboard-primary-metrics { grid-template-columns: 1fr; }
    .dashboard-primary-metrics .metric:last-child { grid-column: auto; }
    .metric { min-height: 120px; }
    .rarity-panels { grid-template-columns: 1fr; }
    .toolbar, .filterbar { position: static; overflow: visible; align-items: end; scrollbar-width: thin; }
    .filterbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
    :root[data-product="mundodex"] .dex-filters { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    :root[data-product="mundodex"] .dex-filters > label:first-child { grid-column: 1 / -1 !important; }
    .toolbar label, .filterbar label, .filterbar .multi-field { min-width: 0; }
    .toolbar label.grow, .filterbar label:first-child { min-width: 0; grid-column: 1 / -1; }
    .toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .toolbar label.grow { grid-column: 1 / -1; }
    body.card-catalog-page .filterbar {
      display: flex;
      flex-wrap: nowrap;
      width: calc(100% + 28px);
      margin-inline: -14px;
      padding: 12px 14px 14px;
      gap: 10px;
      align-items: end;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-padding-inline: 14px;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
      overscroll-behavior-inline: contain;
      -webkit-overflow-scrolling: touch;
      border-inline: 0;
      border-radius: 0;
      background: rgba(255,255,255,.72);
      box-shadow: inset 0 1px 0 var(--ah-line), inset 0 -1px 0 var(--ah-line);
    }
    body.card-catalog-page .filterbar::-webkit-scrollbar { display: none; }
    body.card-catalog-page .filterbar > label,
    body.card-catalog-page .filterbar > .multi-field {
      flex: 0 0 154px;
      min-width: 154px;
      max-width: 154px;
      scroll-snap-align: start;
    }
    body.card-catalog-page .filterbar > label:first-child {
      flex-basis: 210px;
      min-width: 210px;
      max-width: 210px;
      grid-column: auto;
    }
    body.card-catalog-page .filterbar > :last-child {
      flex-basis: 188px;
      min-width: 188px;
      max-width: 188px;
    }
    body.card-catalog-page .filterbar label,
    body.card-catalog-page .filterbar .multi-field {
      gap: 6px;
      color: var(--ah-ink-soft);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .015em;
      white-space: nowrap;
    }
    body.card-catalog-page .filterbar > label > input,
    body.card-catalog-page .filterbar > label > select,
    body.card-catalog-page .filterbar .multi-picker > summary {
      width: 100%;
      height: 42px;
      min-height: 42px;
      border-color: var(--ah-line-strong);
      border-radius: 10px;
      background: var(--ah-paper);
      color: var(--ah-ink);
      font-size: 12px;
      box-shadow: 0 2px 8px rgba(16,35,63,.045);
    }
    body.card-catalog-page .filterbar .multi-picker > summary {
      padding: 11px 30px 11px 12px;
    }
    body.card-catalog-page .filterbar .multi-panel {
      position: fixed;
      inset: auto 12px calc(74px + env(safe-area-inset-bottom));
      z-index: 120;
      width: auto;
      max-width: none;
      max-height: min(58dvh, 480px);
      padding: 14px;
      overflow: hidden;
      border-color: var(--ah-line-strong);
      border-radius: 16px;
      box-shadow: 0 22px 60px rgba(16,35,63,.24);
    }
    body.card-catalog-page .filterbar .multi-options {
      max-height: min(40dvh, 320px);
    }
    body.card-catalog-page .filterbar .multi-option {
      min-height: 42px;
      gap: 10px;
      color: var(--ah-ink-soft);
      font-size: 12px;
      letter-spacing: 0;
      white-space: normal;
    }
    body.card-catalog-page .filterbar .multi-option input {
      width: 18px;
      height: 18px;
      min-height: 0;
      flex: 0 0 18px;
      box-shadow: none;
    }
    .set-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 9px; gap: 9px; }
    .compact-set-head { min-height: 48px; }
    .compact-set-head h3 { font-size: 11px; }
    .compact-set-visual { height: 76px; }
    .set-logo-small { height: 67px; }
    .set-progress-meta, .set-progress-count { font-size: 8px; }
    .card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 5px; }
    .card-frame { padding: 2px; border-radius: 6px; }
    .card-image { border-radius: 4px; }
    .owned-badge { top: 3px; right: 3px; max-width: calc(100% - 6px); padding: 2px 3px; font-size: 6px; }
    .card-finish { inset: auto 4px 4px; }
    .card-finish .finish { min-height: 15px; padding: 2px 3px; font-size: 6px; }
    .card-content { padding: 6px 1px 0; }
    .card-top {
      display: grid;
      grid-template-columns: minmax(0,1fr);
      width: 100%;
      min-height: 25px;
      align-content: start;
      justify-items: center;
      gap: 2px;
      text-align: center;
    }
    .card-top h3 {
      width: 100%;
      min-height: 0;
      overflow: hidden;
      color: var(--ah-ink);
      font-size: clamp(8px,2.35vw,10px);
      font-weight: 820;
      line-height: 1.15;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .card-top .number {
      display: block;
      max-width: 100%;
      margin: 0;
      overflow: hidden;
      color: var(--ah-blue-deep);
      font-size: clamp(8px,2.2vw,9px);
      font-weight: 850;
      line-height: 1.15;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .card-set-line { display: none; }
    .card-quick { margin-top: 4px; padding-top: 4px; }
    .card-quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; width: 100%; }
    .card-quick-actions .quantity-row { display: contents; }
    .card-language, .condition-select {
      width: 100%;
      min-width: 0;
      height: 28px;
      min-height: 28px;
      padding: 3px 5px;
      border: 1px solid var(--ah-line-strong);
      border-radius: 7px;
      background-color: #fff;
      color: var(--ah-ink);
      font-size: 8px;
      font-weight: 700;
    }
    .card-quick-actions .stepper { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; border-radius: 7px; background: #fff; }
    .stepper button { min-width: 20px; padding: 0; }
    .stepper output { min-width: 18px; padding: 0; font-size: 8px; }
    .card-saving { display: none !important; }
    #card-dialog { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
    .card-dialog-panel { grid-template-columns: 1fr; max-height: 92dvh; overflow: auto; }
    .card-dialog-art { min-height: 46dvh; padding: 18px; }
    .card-dialog-art img { width: min(68vw, 330px); max-height: 44dvh; }
    .card-dialog-info { padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); overflow: visible; }
    .card-dialog-info h2 { font-size: 1.55rem; }
    .dex-filters, .audit-filters { position: static; }
    .dex-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; padding: 8px; }
    .dex-species-link { min-height: 120px; padding: 7px 3px; }
    .dex-icon { width: 52px; height: 52px; }
    .dex-species-number { font-size: 8px; }
    .dex-species-copy strong { font-size: 9px; }
    .dex-species-copy small, .dex-species-status { font-size: 7px; }
    .dex-favorite { width: 27px; height: 27px; font-size: 18px; }
    main.vbind-module { width: 100%; max-width: none; padding-inline: 8px; }
    .vbind-layout { grid-template-columns: 1fr; gap: 16px; }
    .vbind-catalog { position: static; border-top-width: 3px; }
    .vbind-results { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .vbind-book { padding: 6px; gap: 7px; border-radius: 12px; }
  }

  @media (max-width: 520px) {
    .command-search span { max-width: 42vw; }
    .hero-grid h2 { font-size: 1.15rem; }
    .feature-panel-icon { width: 76px; min-height: 98px; }
    .ring { display: none; }
    .dashboard-primary-metrics .metric-composition { grid-template-columns: 78px minmax(0,1fr); }
    .metric-type-panel { grid-column: 1 / -1; }
    .set-heading { grid-template-columns: 1fr; gap: 12px; padding: 13px; }
    .set-heading-brand { display: grid; grid-template-columns: 82px minmax(0,1fr); }
    .set-heading-brand .set-logo-wrap { width: 82px; min-width: 0; padding: 0; }
    .set-heading .set-art { width: 82px; height: 66px; }
    .set-heading-brand h1 {
      font-size: clamp(1.3rem,6.2vw,1.7rem);
      line-height: 1.08;
      overflow-wrap: normal;
      word-break: normal;
      hyphens: none;
    }
    .heading { align-items: start; }
    .heading > .button { flex: 0 0 auto; }
    .card-allocation-head { display: grid; }
    .card-allocation-totals { width: 100%; }
    .card-allocation-add { grid-template-columns: 1fr; }
    .card-allocation-add h4 { grid-column: auto; }
  }

  @media (max-width: 350px) {
    .card-language, .condition-select {
      height: 27px;
      min-height: 27px;
      padding-inline: 2px;
      font-size: 7px;
    }
  }

  @media (min-width: 1440px) {
    .card-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
    .set-catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .dashboard-recent-grid { grid-template-columns: repeat(8,minmax(0,1fr)); }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: .001ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: .001ms !important;
    }
  }

  @media (prefers-contrast: more) {
    :root { --ah-line: #8292a8; --ah-line-strong: #4c607c; }
    .sidebar nav a { color: #e1e8f2; }
    .subtitle, .card-set-line, .set-progress-count { color: #455b77; }
  }

  /* Recupera a composição já aprovada de "Sua coleção" sem desfazer o tema novo. */
  :root[data-product="mundodex"] .dashboard-primary-metrics {
    display: grid;
    grid-template-columns: .68fr 1.30fr 1.02fr;
    gap: 12px;
    margin-bottom: 16px;
  }
  :root[data-product="mundodex"] .dashboard-collection-overview .rarity-dashboard { margin: 0 0 34px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric {
    min-height: 176px;
    padding: 0;
    overflow: hidden;
    border-color: var(--ah-line);
    border-radius: 12px;
    box-shadow: var(--ah-shadow-1);
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(1) { background: linear-gradient(108deg,#e4f7ff,#f5fcff 68%,#fff); }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(2) { background: linear-gradient(108deg,#e8f1ff,#f7faff 68%,#fff); }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) { background: linear-gradient(108deg,#fff0d8,#fff9ef 68%,#fff); }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:hover { transform: none; border-color: #aebed2; box-shadow: var(--ah-shadow-2); }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-label { font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(1) .metric-label { color: #075985; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(2) .metric-label { color: #1e3a8a; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-label { color: #9a480f; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric strong { color: #111827; font-size: 38px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-context { display: block; margin-top: 7px; color: var(--ah-muted); font-size: 11px; font-weight: 650; line-height: 1.25; white-space: normal; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-simple { grid-template-columns: 44% minmax(0,1fr); gap: 0; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-simple > div { align-self: start; padding: 22px 8px 8px; text-align: center; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition {
    isolation: isolate;
    grid-template-columns: 27% minmax(0,1fr) !important;
    grid-template-rows: 74px minmax(0,1fr);
    overflow: visible;
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-main-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition > .metric-main-link { inset: 0 0 auto; height: 74px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition > .metric-icon,
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition > div { position: relative; z-index: 2; pointer-events: none; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition > .metric-icon { grid-column: 1; grid-row: 1 / 3; min-height: 100%; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition > div:not(.metric-type-panel) {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 10px 6px !important;
    text-align: center;
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-type-panel {
    position: relative;
    z-index: 3;
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-content: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 7px 10px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: auto !important;
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(2) .metric-type-panel { grid-template-columns: repeat(5,minmax(0,1fr)); }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-panel { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 5px 8px 9px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-type-item {
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    padding: 3px 1px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ah-ink);
    text-decoration: none;
    pointer-events: auto;
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-type-item:hover { z-index: 8; transform: translateY(-2px) scale(1.06); border-color: transparent; background: rgba(255,255,255,.92); box-shadow: 0 7px 18px rgba(17,24,39,.14); }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-type-item .metric-type-symbol { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-type-item b { font-size: 11px; font-weight: 900; line-height: 1; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-item {
    grid-template-rows: 11px 38px 12px;
    align-content: center;
    gap: 1px;
    padding: 2px;
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-symbol {
    width: 38px;
    height: 38px;
    min-width: 0;
    border-radius: 50%;
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .trainer-type-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #7c3f0d;
    font-size: 8px;
    font-weight: 650;
    line-height: 11px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .trainer-type-icon { display: block; width: 38px; height: 38px; object-fit: contain; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-icon { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; padding: 0; border-radius: 0; background: transparent !important; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-icon .collector-studio-icon {
    display: block !important;
    width: min(82%, 96px);
    height: auto;
    max-width: none;
    max-height: none;
    aspect-ratio: 1;
    margin: auto;
    object-fit: contain;
    opacity: .94;
    filter: saturate(.94) drop-shadow(0 8px 14px rgba(16,35,63,.12));
    mix-blend-mode: multiply;
  }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-icon > svg { display: none; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .official-energy { display: block; width: 30px; height: 30px; border-radius: 50%; background-image: url('/static/assets/pokemon-official/energy-types.png'); background-repeat: no-repeat; background-size: 120px 90px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-fire { background-position: 0 0; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-colorless { background-position: -30px 0; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-dragon { background-position: 0 -30px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-metal { background-position: -90px 0; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-fighting { background-position: -60px -30px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-psychic { background-position: -90px -30px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-darkness { background-position: 0 -60px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-grass { background-position: -30px -60px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-lightning { background-position: -60px -60px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .energy-water { background-position: -90px -60px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric:last-child { grid-column: auto; }

  @media (max-width: 1180px) and (min-width: 801px) {
    :root[data-product="mundodex"] .dashboard-primary-metrics { grid-template-columns: 1fr 1.35fr; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric:last-child { grid-column: 1 / -1; }
  }

  @media (max-width: 800px) {
    :root[data-product="mundodex"] .dashboard-primary-metrics { grid-template-columns: 1fr; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric { min-height: 150px; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric-simple { grid-template-columns: 92px minmax(0,1fr); }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition { grid-template-columns: 92px minmax(0,1fr) !important; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric:last-child { grid-column: auto; }
  }

  /* Internacional e Ásia formam dois agrupadores, sem rolagem lateral. */
  :root[data-product="mundodex"] .rarity-panels {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  :root[data-product="mundodex"] .rarity-region-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px 6px;
    color: var(--ah-muted);
    font-size: 11px;
    letter-spacing: .035em;
    text-transform: uppercase;
  }
  :root[data-product="mundodex"] .rarity-region-label + .rarity-list { border-top: 1px solid var(--ah-line); }
  :root[data-product="mundodex"] .rarity-region-label:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--ah-line); }

  /* O fichário nunca deve ampliar o documento além da largura útil. */
  main.vbind-module {
    box-sizing: border-box;
    width: min(1800px, calc(100% - 24px));
    max-width: calc(100vw - var(--ah-sidebar) - 24px);
    overflow-x: clip;
  }
  .vbind-module .vbind-layout,
  .vbind-module .vbind-workbench,
  .vbind-module .vbind-book-shell,
  .vbind-module .vbind-book,
  .vbind-module .vbind-sheet,
  .vbind-module .vbind-pockets { min-width: 0; max-width: 100%; }

  @media (max-width: 639px) {
    :root[data-product="mundodex"] .rarity-panels {
      grid-template-columns: 1fr;
      overflow-x: visible;
    }
    :root[data-product="mundodex"] .rarity-panel-head h3 { font-size: 13px; }
    :root[data-product="mundodex"] .rarity-row { min-width: 0; }
    :root[data-product="mundodex"] .rarity-description { min-width: 0; }
    :root[data-product="mundodex"] .rarity-description strong { overflow-wrap: anywhere; font-size: 12px; }
    main.vbind-module { width: 100%; max-width: 100vw; }
  }

  /* Refinamento responsivo da página inicial e dos detalhes de carta. */
  body[data-route="inicio"] .dashboard-section-intro.section-head,
  body[data-route="inicio"] .rarity-dashboard-head.section-head { margin: 28px 0 12px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics { margin-bottom: 26px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric { min-height: 150px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-label { font-size: 15px; font-weight: 760; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric strong { margin-top: 6px; font-size: 31px; font-weight: 760; letter-spacing: -.035em; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-simple > div { padding-top: 17px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition { grid-template-rows: 64px minmax(0,1fr); }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition > .metric-main-link { height: 64px; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition > div:not(.metric-type-panel) { padding-top: 13px !important; }
  :root[data-product="mundodex"] .dashboard-primary-metrics .trainer-type-name { font-weight: 620; }

  #card-dialog {
    box-sizing: border-box;
    width: min(980px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }
  .card-dialog-panel { grid-template-columns: minmax(330px,.9fr) minmax(360px,1.1fr); height: min(92vh,820px); max-height: min(92vh,820px); min-height: 0; overflow: hidden; }
  .card-dialog-stage {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    align-items: center;
    min-width: 0;
    background: #eaf0f7;
  }
  .card-dialog-art { min-width: 0; min-height: 520px; padding: 22px 8px; background: transparent; touch-action: pan-y; }
  .card-dialog-art img { width: min(100%,350px); max-height: min(78vh,540px); }
  .card-dialog-step {
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(16,35,63,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.88);
    color: var(--ah-blue-deep);
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(16,35,63,.1);
  }
  .card-dialog-step:hover:not(:disabled) { border-color: var(--ah-blue); background: #fff; }
  .card-dialog-step:disabled { visibility: hidden; }
  .card-dialog-info { min-height: 0; max-height: min(92vh,820px); gap: 10px; padding: 27px 28px; }
  .card-dialog-info h2 { margin: 0; font-size: 1.72rem; line-height: 1.12; }
  .card-dialog-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .card-dialog-number {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 7px;
    background: #e8f2ff;
    color: var(--ah-blue-deep);
    font-size: 13px;
    font-weight: 850;
  }
  .card-dialog-identity .finish { padding: 5px 8px; font-size: 10px; }
  .card-dialog-artist { margin: -1px 0 2px; color: var(--ah-ink-soft); font-size: 11px; }
  .card-dialog-artist span { margin-right: 5px; color: var(--ah-muted); }
  .card-dialog-artist a { color: var(--ah-blue); font-weight: 750; text-decoration: underline; text-decoration-color: rgba(37,99,235,.26); text-underline-offset: 2px; }
  .card-dialog-details { width: 100%; border: 1px solid var(--ah-line); border-radius: 9px; background: #fff; }
  .card-dialog-details > summary { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 12px; cursor: pointer; }
  .card-dialog-details > summary::after { content: "+"; margin-left: auto; color: var(--ah-blue); font-size: 18px; }
  .card-dialog-details[open] > summary::after { content: "−"; }
  .card-dialog-details > summary span { color: var(--ah-ink); font-size: 12px; font-weight: 800; }
  .card-dialog-details > summary small { color: var(--ah-muted); font-size: 9px; }
  .card-dialog-details dl {
    width: auto;
    max-width: none;
    margin: 0 12px 8px;
  }
  .card-dialog-details .condition-detail { margin: 0 12px 12px; }
  .card-dialog-add-panel { width: 100%; padding: 12px; border: 1px solid var(--ah-line); border-radius: 10px; background: var(--ah-paper-soft); }
  .card-dialog-section-title { margin-bottom: 10px; }
  .card-dialog-section-title .eyebrow { margin-bottom: 2px; }
  .card-dialog-section-title h3 { margin: 0; font-size: 14px; }
  .card-dialog-controls { display: grid; grid-template-columns: minmax(95px,1fr) minmax(86px,1fr) auto; gap: 8px; padding: 0; border: 0; background: transparent; }
  .card-dialog-controls label, .card-dialog-quantity { display: grid; align-content: end; gap: 5px; min-width: 0; color: var(--ah-muted); font-size: 9px; font-weight: 750; }
  .card-dialog-controls select { width: 100%; min-width: 0; height: 36px; padding: 6px 8px; border: 1px solid var(--ah-line-strong); border-radius: 7px; background: #fff; }
  .card-dialog-quantity .stepper { height: 36px; margin: 0; border-radius: 7px; background: #fff; }
  .card-dialog-quantity .stepper button { width: 34px; height: 34px; }
  .dialog-hint { margin: 1px 0 0; color: var(--ah-muted); font-size: 9px; line-height: 1.4; }

  @media (max-width: 800px) {
    body[data-route="inicio"] .topbar { display: none; }
    body[data-route="inicio"] main { min-height: calc(100vh - 70px); padding-top: 12px; }
    body[data-route="inicio"] .mundodex-brand-hero { order: 0; margin-bottom: 8px; }
    body[data-route="inicio"] .dashboard-search-shell { margin-bottom: 8px; }
    body[data-route="inicio"] .dashboard-section-heading { margin: 24px 0 11px; }
    body[data-route="inicio"] .dashboard-section-intro.section-head { margin-top: 18px; }
    body[data-route="inicio"] .dashboard-section-heading h2 { font-size: 1.08rem; }
    body[data-route="inicio"] .hero-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 24px; }
    body[data-route="inicio"] .dex-hero,
    body[data-route="inicio"] .binders-hero,
    body[data-route="inicio"] .repeat-hero { grid-template-columns: 58px minmax(0,1fr); min-width: 0; min-height: 132px; padding: 0; }
    body[data-route="inicio"] .feature-panel-icon { grid-row: 1; width: 58px; min-height: 100%; }
    body[data-route="inicio"] .feature-panel-icon .dashboard-pokedex-icon,
    body[data-route="inicio"] .feature-panel-icon .dashboard-trade-icon { width: 46px; height: 46px; }
    body[data-route="inicio"] .dex-hero > div,
    body[data-route="inicio"] .binders-hero > div,
    body[data-route="inicio"] .repeat-hero > div { min-width: 0; min-height: 0; padding: 12px 9px; }
    body[data-route="inicio"] .dex-hero .eyebrow,
    body[data-route="inicio"] .binders-hero .eyebrow,
    body[data-route="inicio"] .repeat-hero .eyebrow { margin-bottom: 5px; font-size: 7px; letter-spacing: .12em; }
    body[data-route="inicio"] .dex-hero h2,
    body[data-route="inicio"] .binders-hero h2,
    body[data-route="inicio"] .repeat-hero h2 { font-size: 12px; line-height: 1.24; }
    body[data-route="inicio"] .dex-hero p:not(.eyebrow),
    body[data-route="inicio"] .binders-hero p:not(.eyebrow),
    body[data-route="inicio"] .repeat-hero p:not(.eyebrow) { display: none; }
    body[data-route="inicio"] .repeat-hero { grid-column: 1 / -1; }
    body[data-route="inicio"] .feature-card-cta { display: inline-flex; margin-top: 9px; padding: 0; font-size: 9px; line-height: 1.2; }
    body[data-route="inicio"] .ring { display: none; }
    :root[data-product="mundodex"] .dashboard-primary-metrics { gap: 8px; margin-bottom: 22px; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric { min-height: 124px; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric-simple,
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric-composition { grid-template-columns: 74px minmax(0,1fr) !important; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric-label { font-size: 14px; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric strong { font-size: 28px; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric-icon .collector-studio-icon { width: min(82%, 64px); height: auto; max-width: none; max-height: none; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .trainer-type-name { font-size: 8px; }
    :root[data-product="mundodex"] .dashboard-primary-metrics .metric:nth-child(3) .metric-type-symbol,
    :root[data-product="mundodex"] .dashboard-primary-metrics .trainer-type-icon { width: 34px; height: 34px; min-height: 34px; }

    #card-dialog {
      position: fixed;
      inset:
        max(6px, env(safe-area-inset-top))
        max(6px, env(safe-area-inset-right))
        max(6px, env(safe-area-inset-bottom))
        max(6px, env(safe-area-inset-left));
      box-sizing: border-box;
      width: auto !important;
      min-width: 0;
      max-width: none !important;
      height: auto;
      max-height: none;
      margin: 0 !important;
      overflow: hidden;
      border-radius: 14px;
      overscroll-behavior: contain;
    }
    #card-dialog *,
    .card-dialog-panel, .card-dialog-stage, .card-dialog-info,
    .card-dialog-details, .card-dialog-add-panel, .card-allocation-panel {
      box-sizing: border-box;
      min-width: 0;
      max-width: 100%;
    }
    .card-dialog-panel { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; height: 100%; max-height: 100%; overflow-x: clip; overflow-y: auto; }
    .card-dialog-stage { grid-template-columns: 38px minmax(0,1fr) 38px; min-height: 0; height: min(35dvh,294px); max-height: 294px; padding: 7px 3px; overflow: hidden; }
    .card-dialog-art { min-height: 0; height: 100%; max-height: 280px; padding: 4px; overflow: hidden; }
    .card-dialog-art img { width: auto !important; max-width: min(62vw,210px) !important; height: min(32dvh,270px) !important; max-height: min(32dvh,270px) !important; object-fit: contain; }
    .card-dialog-art .card-surface {
      width: auto !important;
      max-width: min(62vw,210px) !important;
      height: min(32dvh,270px) !important;
      max-height: min(32dvh,270px) !important;
      aspect-ratio: 63 / 88;
    }
    .card-dialog-art .card-surface > img {
      width: 100% !important;
      max-width: none !important;
      height: 100% !important;
      max-height: none !important;
    }
    .card-dialog-step { width: 34px; height: 44px; border-radius: 9px; font-size: 18px; }
    .card-dialog-info { width: 100%; gap: 9px; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); overflow: visible; overflow-wrap: normal; word-break: normal; }
    .card-dialog-info h2 { padding-right: 24px; font-size: 1.35rem; line-height: 1.12; }
    .card-dialog-identity { gap: 6px; }
    .card-dialog-number { min-height: 26px; padding: 4px 8px; font-size: 12px; }
    .card-dialog-add-panel { padding: 10px; }
    .card-dialog-controls { grid-template-columns: minmax(70px,1fr) minmax(70px,1fr) auto; gap: 6px; }
    .card-dialog-controls select { height: 34px; padding-inline: 5px; font-size: 11px; }
    .card-dialog-quantity .stepper { height: 34px; }
    .card-dialog-quantity .stepper button { width: 31px; height: 32px; }
    .card-dialog-quantity .stepper output { min-width: 25px; }
    .card-allocation-panel { padding: 11px; }
    .card-allocation-head, .card-allocation-locations > div { min-width: 0; }
    .card-allocation-totals { grid-template-columns: repeat(3,minmax(0,1fr)); }
  }

  @media (max-width: 420px) {
    body[data-route="inicio"] .dex-hero,
    body[data-route="inicio"] .binders-hero,
    body[data-route="inicio"] .repeat-hero { grid-template-columns: 50px minmax(0,1fr); }
    body[data-route="inicio"] .feature-panel-icon { width: 50px; }
    body[data-route="inicio"] .feature-panel-icon .dashboard-pokedex-icon,
    body[data-route="inicio"] .feature-panel-icon .dashboard-trade-icon { width: 41px; height: 41px; }
    body[data-route="inicio"] .dex-hero h2,
    body[data-route="inicio"] .binders-hero h2,
    body[data-route="inicio"] .repeat-hero h2 { font-size: 11px; }
    body[data-route="inicio"] .feature-card-cta { font-size: 8px; }
  }

  /* Hierarquia tipográfica mais calma: títulos guiam, textos apoiam. */
  body { font-weight: 400; }
  h1 { font-weight: 730; }
  h2 { font-weight: 700; }
  h3 { font-weight: 660; }
  strong, b { font-weight: 650; }
  .subtitle { font-weight: 400; }
  .eyebrow { font-weight: 700; letter-spacing: .055em; }
  .button { font-weight: 640; }
  nav a b { font-weight: 610; }
  nav a.active b { font-weight: 700; }

  /* Página inicial: ênfase por hierarquia, não por excesso de negrito. */
  body[data-route="inicio"] .dashboard-section-heading h2 { font-weight: 640; letter-spacing: -.012em; }
  body[data-route="inicio"] .dashboard-section-heading > a { font-weight: 580; }
  body[data-route="inicio"] .dex-hero .eyebrow,
  body[data-route="inicio"] .binders-hero .eyebrow,
  body[data-route="inicio"] .repeat-hero .eyebrow { font-weight: 580; }
  body[data-route="inicio"] .dex-hero h2,
  body[data-route="inicio"] .binders-hero h2,
  body[data-route="inicio"] .repeat-hero h2 { font-weight: 640; }
  body[data-route="inicio"] .feature-card-cta { font-weight: 620; }
  body[data-route="inicio"] .ring strong { font-weight: 660; }
  :root[data-product="mundodex"] body[data-route="inicio"] .dashboard-primary-metrics .metric-label { font-weight: 620; }
  :root[data-product="mundodex"] body[data-route="inicio"] .dashboard-primary-metrics .metric strong { font-weight: 670; }
  :root[data-product="mundodex"] body[data-route="inicio"] .dashboard-primary-metrics .metric-context { font-weight: 450; }
  :root[data-product="mundodex"] body[data-route="inicio"] .metric-secondary-count { font-weight: 500; }
  :root[data-product="mundodex"] body[data-route="inicio"] .metric-secondary-count b { font-weight: 650; }
  :root[data-product="mundodex"] body[data-route="inicio"] .dashboard-primary-metrics .metric-type-item b { font-weight: 650; }
  :root[data-product="mundodex"] body[data-route="inicio"] .dashboard-primary-metrics .trainer-type-name { font-weight: 560; }
  body[data-route="inicio"] .rarity-panel-head h3 { font-weight: 600; }
  body[data-route="inicio"] .rarity-description strong { font-weight: 540; }
  body[data-route="inicio"] .rarity-description small { font-weight: 500; }
  body[data-route="inicio"] .rarity-count { font-weight: 650; }
  body[data-route="inicio"] .dashboard-set-tile .set-body > h3,
  body[data-route="inicio"] .dashboard-set-tile .compact-set-head h3 { font-weight: 600; }
  body[data-route="inicio"] .dashboard-set-tile .progress-label strong,
  body[data-route="inicio"] .dashboard-set-tile .progress-label b,
  body[data-route="inicio"] .dashboard-set-tile .compact-progress-label strong,
  body[data-route="inicio"] .dashboard-set-tile .compact-progress-label b { font-weight: 600; }
  body[data-route="inicio"] .dashboard-set-tile .compact-set-foot span:last-child { font-weight: 560; }
  body[data-route="inicio"] .dashboard-recent-card strong { font-weight: 560; }

  @media (min-width: 1181px) {
    body[data-route="inicio"] .dashboard-sets .sets-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  }

  /* A antiga barra global repetia ações já presentes na navegação e nas páginas. */
  .topbar { display: none !important; }
  main { min-height: calc(100vh - 52px); }

  /* Detalhes da carta: colunas elásticas e conteúdo sempre contido. */
  .card-dialog-details { min-width: 0; }
  .card-dialog-details > summary { min-width: 0; }
  .card-dialog-details > summary span { flex: 0 0 auto; font-size: 13px; font-weight: 680; }
  .card-dialog-details > summary small {
    min-width: 0;
    overflow: hidden;
    color: var(--ah-muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card-dialog-details dl > div {
    display: grid;
    grid-template-columns: minmax(86px,.8fr) minmax(0,1.2fr);
    align-items: start;
    gap: 12px;
  }
  .card-dialog-details dt,
  .card-dialog-details dd { min-width: 0; line-height: 1.35; }
  .card-dialog-details dt { color: var(--ah-muted); font-weight: 430; }
  .card-dialog-details dd {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
    font-weight: 590;
    text-align: right;
  }
  .card-dialog-artist a { font-weight: 620; }
  .card-dialog-controls label,
  .card-dialog-quantity { font-weight: 620; }
  .card-dialog-section-title h3 { font-weight: 680; }

  /* Sugestões em três famílias reconhecíveis, sem uma parede de cartões iguais. */
  .binder-suggestion-categories {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
  }
  .binder-suggestion-group {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--ah-line);
    border-radius: var(--ah-radius);
    background: rgba(255,255,255,.72);
    box-shadow: var(--ah-shadow-1);
  }
  .binder-suggestion-group > header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin-bottom: 10px;
  }
  .binder-suggestion-group > header div { min-width: 0; }
  .binder-suggestion-group h3 { margin: 0; color: var(--ah-ink); font-size: 15px; font-weight: 690; }
  .binder-suggestion-group header p { margin: 3px 0 0; color: var(--ah-muted); font-size: 11px; line-height: 1.35; }
  .binder-suggestion-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eaf3ff;
    color: var(--ah-blue);
  }
  .binder-suggestion-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .binder-suggestion-group .binder-suggestion-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .binder-suggestion-group .binder-suggestion {
    min-width: 0;
    gap: 8px;
    padding: 11px;
    border-radius: 9px;
    box-shadow: none;
  }
  .binder-suggestion-group .binder-suggestion > div { min-width: 0; }
  .binder-suggestion-group .binder-suggestion strong { display: block; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .binder-suggestion-group .binder-suggestion small { font-size: 10px; line-height: 1.35; }
  .binder-suggestion-group .binder-suggestion .button { min-height: 32px; padding: 6px 9px; font-size: 10px; }
  .binder-suggestion-empty { margin: 0; padding: 14px 6px; color: var(--ah-muted); font-size: 11px; line-height: 1.45; }

  /* Criador inteligente: todos os campos usam a mesma escala e o mesmo peso. */
  #vbind-config.vbind-smart-config { color: var(--ah-ink); }
  #vbind-config.vbind-smart-config form { gap: 12px; }
  #vbind-config.vbind-smart-config .eyebrow { margin: 0 0 -3px; font-size: 10px; font-weight: 700; }
  #vbind-config.vbind-smart-config h2 { margin: 0 0 2px; font-size: clamp(21px,2.6vw,26px); font-weight: 710; line-height: 1.15; }
  #vbind-config.vbind-smart-config form > p:not(.eyebrow):not(.vbind-config-error) { margin: 0 0 5px; font-size: 12px; font-weight: 400; line-height: 1.5; }
  #vbind-config.vbind-smart-config label,
  #vbind-config.vbind-smart-config form > label { margin-top: 0; color: var(--ah-ink-soft); font-size: 11px; font-weight: 610; line-height: 1.3; }
  #vbind-config.vbind-smart-config input,
  #vbind-config.vbind-smart-config select { min-height: 40px; border-radius: 8px; font-size: 12px; font-weight: 480; }
  #vbind-config.vbind-smart-config .vbind-filter-popover > summary {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 42px 10px 13px;
    color: var(--ah-ink-soft);
    font-size: 12px;
    font-weight: 630;
    line-height: 1.3;
  }
  #vbind-config.vbind-smart-config .vbind-rarity-choice > p { color: var(--ah-muted); font-size: 11px !important; font-weight: 400; }
  #vbind-config.vbind-smart-config .vbind-rarity-choice label,
  #vbind-config.vbind-smart-config .vbind-smart-choice label { color: var(--ah-ink-soft); font-size: 11px !important; font-weight: 500; }

  /* Atalhos do início: títulos compactos, legíveis e sempre em uma linha. */
  body[data-route="inicio"] .hero-grid h2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-block: 2px;
    width: 100%;
    min-height: 18px;
    font-size: clamp(11.75px,.94vw,15px);
    line-height: 1.2;
    letter-spacing: -.035em;
    text-align: left;
    white-space: nowrap;
  }
  body[data-route="inicio"] .repeat-hero h2 {
    font-size: clamp(10.5px,.83vw,13.5px);
  }

  body[data-route="inicio"] .dashboard-section-cta {
    display: inline-flex;
    align-items: center;
    color: var(--ah-blue);
    font-size: 12px;
    font-weight: 620;
    line-height: 1.2;
    white-space: nowrap;
  }
  body[data-route="inicio"] .dashboard-section-heading > .dashboard-section-cta {
    font-weight: 620;
    line-height: 18px;
  }

  /* Mantém os três blocos de texto com a mesma altura no desktop. */
  @media (min-width: 801px) {
    body[data-route="inicio"] .hero-grid .feature-card-cta {
      align-self: stretch;
      width: 100%;
      padding-top: 0;
      white-space: nowrap;
    }
  }

  @media (max-width: 1050px) {
    .binder-suggestion-categories { grid-template-columns: minmax(0,1fr); }
    .binder-suggestion-group .binder-suggestion-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body[data-route="sets"] .set-catalog-list { grid-template-columns: minmax(0,1fr); }
  }

  @media (max-width: 560px) {
    body[data-route="inicio"] .hero-grid h2 {
      min-height: 10px;
      font-size: clamp(5.5px,1.75vw,7.4px);
      letter-spacing: -.035em;
    }
    body[data-route="inicio"] .repeat-hero h2 {
      font-size: clamp(5.5px,1.75vw,7.4px);
    }
    body[data-route="inicio"] .dashboard-section-cta { font-size: 9px; }
    .binder-suggestion-group .binder-suggestion-grid { grid-template-columns: minmax(0,1fr); }
    .binder-suggestion-group .binder-suggestion { align-items: center; }
    .card-dialog-details > summary small { display: none; }
    .card-dialog-details dl > div { grid-template-columns: minmax(76px,.75fr) minmax(0,1.25fr); gap: 8px; }
    body[data-route="sets"] .collections-intro { margin-bottom: 14px; }
    body[data-route="sets"] .collections-intro h1 { font-size: 22px; }
    body[data-route="sets"] .collections-toolbar {
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 9px;
      padding: 11px;
    }
    body[data-route="sets"] .collections-toolbar .grow { grid-column: 1 / -1; }
    body[data-route="sets"] .collections-toolbar label { font-size: 9px; }
    body[data-route="sets"] .collections-toolbar select,
    body[data-route="sets"] .collections-toolbar input { min-height: 40px; font-size: 12px; }
    body[data-route="sets"] .collections-available-head { align-items: center; }
    body[data-route="sets"] .collections-available-head > div:first-child { display: block; }
    body[data-route="sets"] .collections-available-head h2 { font-size: 18px; }
    body[data-route="sets"] .collections-available-head .subtitle { display: block; margin-top: 2px; }
    body[data-route="sets"] .catalog-view-toggle button { width: 35px; height: 32px; }
    body[data-route="sets"] .set-tile-compact { min-height: 274px; }
    body[data-route="sets"] .compact-set-visual,
    body[data-route="sets"] .set-tile-compact .set-logo-wrap.compact,
    body[data-route="sets"] .set-tile-compact .set-logo-small { height: 100px; min-height: 100px; }
    body[data-route="sets"] .set-catalog-list .set-tile-compact {
      grid-template-columns: minmax(0,1fr) 112px;
      min-height: 166px;
      padding: 12px;
    }
    body[data-route="sets"] .set-catalog-list .compact-set-visual,
    body[data-route="sets"] .set-catalog-list .set-logo-wrap.compact,
    body[data-route="sets"] .set-catalog-list .set-logo-small { height: 112px; min-height: 112px; }
    body[data-route="sets"] .set-catalog-list .set-logo-small .set-logo { max-width: 112px; max-height: 106px; }
  }
}

/* Onda 4 — detalhe da carta: leitura compacta, ampliação e gesto de fechar. */
@layer arquivo {
  .card-dialog-title-row { display:flex; align-items:center; gap:10px; min-width:0; }
  .card-dialog-title-row h2 { min-width:0; }
  .card-dialog-title-row > span {
    flex:0 0 auto;
    padding:5px 8px;
    border:1px solid #c5dced;
    border-radius:8px;
    background:#edf7fe;
    color:#356b9e;
    font-size:10px;
    font-weight:750;
    line-height:1;
  }
  .card-dialog-summary { align-items:start; }
  .card-dialog-summary > div { align-self:start; padding:0 12px 0 0!important; }
  .card-dialog-summary > div:nth-child(3n+2),
  .card-dialog-summary > div:nth-child(3n+3) { padding-left:14px!important; }
  .card-dialog-controls label > span,
  .card-dialog-quantity > span {
    color:#4279b6;
    font-size:9px;
    font-weight:700;
    letter-spacing:.035em;
    line-height:1.1;
    text-transform:uppercase;
  }
  .card-dialog-quantity .stepper output {
    color:#12365f;
    font-family:var(--ah-font-ui);
    font-size:12px;
    font-weight:720;
  }
  .card-dialog-art > img { width:min(100%,360px); max-width:360px; }
  .card-dialog-art .card-surface { width:min(100%,360px); }

  .card-image-zoom {
    touch-action:pan-y pinch-zoom;
    position:fixed;
    z-index:80;
    inset:0;
    display:grid;
    padding:28px;
    place-items:center;
    background:rgba(6,24,48,.78);
    opacity:0;
    backdrop-filter:blur(10px);
    transition:opacity .18s ease;
  }
  .card-image-zoom.is-visible { opacity:1; }
  .card-image-zoom > button {
    position:absolute;
    z-index:2;
    top:max(18px,env(safe-area-inset-top));
    right:max(18px,env(safe-area-inset-right));
    width:44px;
    height:44px;
    padding:0;
    border:1px solid rgba(255,255,255,.42);
    border-radius:50%;
    background:rgba(255,255,255,.9);
    color:#496b8d;
    font-size:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.22);
  }
  .card-image-zoom-frame { display:grid; max-width:100%; max-height:100%; place-items:center; }
  .card-image-zoom-frame > .image-fallback,
  .card-image-zoom-frame > img,
  .card-image-zoom-frame > .card-surface {
    display:grid;
    width:min(430px,calc(100vw - 96px));
    max-width:100%;
    max-height:88dvh;
    aspect-ratio:var(--card-image-aspect,63 / 88);
    place-items:center;
    border-radius:15px;
    filter:drop-shadow(0 28px 38px rgba(0,0,0,.42));
  }
  .card-image-zoom-frame > img { height:auto; object-fit:contain; }
  .card-image-zoom-frame > .card-surface > img { width:100%; height:100%; object-fit:fill; }
  .card-dialog-panel { transition:transform .22s ease,opacity .22s ease; }
  .card-dialog-panel.is-dragging { transition:none; }

  @media (max-width:800px) {
    .card-dialog-stage {
      min-height:350px;
      height:41dvh;
      max-height:374px;
      touch-action:none;
    }
    .card-dialog-art { max-height:306px; touch-action:none; }
    .card-dialog-art > img {
      max-width:min(68vw,232px)!important;
      height:min(35dvh,298px)!important;
      max-height:min(35dvh,298px)!important;
    }
    .card-dialog-art .card-surface {
      max-width:min(68vw,232px)!important;
      height:min(35dvh,298px)!important;
      max-height:min(35dvh,298px)!important;
    }
    .card-dialog-context-links { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
    .card-context-link {
      grid-template-columns:22px minmax(0,1fr) 10px;
      min-height:62px;
      padding:7px;
      gap:6px;
    }
    .card-context-icon { width:22px; height:22px; font-size:12px; }
    .card-context-link small { font-size:8px; line-height:1.15; }
    .card-context-link b {
      display:-webkit-box;
      overflow:visible;
      font-size:9px;
      line-height:1.18;
      text-overflow:clip;
      white-space:normal;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
    }
    .card-dialog-title-row { gap:8px; }
    .card-dialog-title-row h2 { font-size:23px; }
    .card-dialog-title-row > span { padding:4px 7px; font-size:9px; }
    .card-dialog-summary {
      grid-template-columns:repeat(3,minmax(0,1fr));
      grid-template-rows:repeat(2,auto);
      gap:14px 0;
    }
    .card-dialog-summary > div { padding:0 9px 0 0!important; }
    .card-dialog-summary > div:nth-child(2),
    .card-dialog-summary > div:nth-child(3) { padding-left:9px!important; }
    .card-dialog-summary > div:nth-child(4) { grid-column:1 / 3; padding-left:0!important; }
    .card-dialog-summary > div:nth-child(5) { grid-column:3; padding-left:9px!important; padding-right:0!important; }
    .card-dialog-summary > div > span:first-child { font-size:8px; }
    .card-dialog-summary b { font-size:10px; line-height:1.18; }
    .card-dialog-summary .pokemon-type i { width:11px; height:11px; }
    .card-dialog-controls { grid-template-columns:minmax(72px,1fr) minmax(72px,1fr) minmax(96px,1.2fr); align-items:end; }
    .card-dialog-quantity { grid-column:auto; }
    .card-dialog-quantity .stepper { min-width:0; }
    .card-dialog-quantity .stepper button { width:30px; }
    .card-dialog-quantity .stepper output { min-width:20px; font-size:11px; }
    .card-image-zoom { padding:22px 15px; }
    .card-image-zoom-frame > .image-fallback,
    .card-image-zoom-frame > img,
    .card-image-zoom-frame > .card-surface {
      width:min(86vw,330px);
      max-height:82dvh;
      border-radius:12px;
    }
  }

  @media (max-width:350px) {
    .card-dialog-context-links { grid-template-columns:1fr; }
    .card-dialog-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .card-dialog-quantity { grid-column:1 / -1; }
  }

  @media (prefers-reduced-motion:reduce) {
    .card-image-zoom,.card-dialog-panel { transition:none; }
  }
}

/* Onda 4 — Detalhes da carta: galeria + painel de coleção. */
@layer arquivo {
  #card-dialog {
    width: min(1180px,calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: min(94vh,900px);
    overflow: hidden;
    border: 1px solid #bdd8ed;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 86px rgba(8,47,99,.28);
  }
  #card-dialog::backdrop { background: rgba(9,31,58,.58); backdrop-filter: blur(4px); }
  .card-dialog-panel {
    display: grid;
    grid-template-columns: minmax(390px,.92fr) minmax(500px,1.08fr);
    width: 100%;
    height: min(94vh,900px);
    min-height: 0;
    max-height: min(94vh,900px);
    overflow: hidden;
  }
  .card-dialog-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) 52px;
    align-items: center;
    min-width: 0;
    padding: 32px 20px;
    overflow: hidden;
    background:
      linear-gradient(130deg,transparent 0 16%,rgba(255,255,255,.76) 16% 29%,transparent 29% 48%,rgba(92,177,239,.13) 48% 63%,transparent 63%),
      radial-gradient(circle at 82% 20%,rgba(45,151,231,.2),transparent 32%),
      #eaf7ff;
  }
  .card-dialog-stage::after {
    content:"";
    position:absolute;
    z-index:-1;
    right:-120px;
    top:-100px;
    width:340px;
    height:340px;
    border:54px solid rgba(45,151,231,.07);
    border-radius:50%;
  }
  .card-dialog-art {
    min-width:0;
    min-height:0;
    height:auto;
    max-height:none;
    padding:8px;
    overflow:visible;
    background:transparent;
    touch-action:pan-y;
  }
  .card-dialog-art > img {
    width:min(100%,330px);
    max-width:330px;
    height:auto;
    max-height:min(70vh,600px);
    border-radius:13px;
    object-fit:contain;
    filter:drop-shadow(0 22px 26px rgba(4,32,67,.3));
    box-shadow:none;
  }
  .card-dialog-art .card-surface {
    display:grid;
    width:min(100%,330px);
    height:auto;
    max-height:min(70vh,600px);
    aspect-ratio:var(--card-image-aspect,63 / 88);
    place-items:center;
  }
  .card-dialog-art .card-surface > img {
    width:100%;
    max-width:none;
    height:100%;
    max-height:none;
    object-fit:fill;
  }
  .card-dialog-step {
    z-index:3;
    width:44px;
    height:48px;
    border:1px solid #b9d9ef;
    border-radius:13px;
    background:rgba(255,255,255,.9);
    color:#176bd5;
    box-shadow:0 8px 22px rgba(8,47,99,.11);
  }
  .card-dialog-position {
    position:absolute;
    z-index:3;
    left:50%;
    bottom:22px;
    transform:translateX(-50%);
    padding:7px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.76);
    color:#53789f;
    font-size:10px;
    font-weight:700;
    white-space:nowrap;
  }
  .card-dialog-close {
    z-index:10;
    top:15px;
    right:15px;
    width:40px;
    height:40px;
    border:1px solid rgba(21,91,157,.15);
    background:rgba(255,255,255,.92);
    color:#67809b;
    box-shadow:0 8px 24px rgba(8,47,99,.12);
  }
  .card-dialog-info {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:13px;
    min-width:0;
    min-height:0;
    max-height:min(94vh,900px);
    padding:34px 34px 28px;
    overflow:auto;
    background:rgba(255,255,255,.98);
  }
  .card-dialog-info > * { flex:0 0 auto; }
  .card-dialog-heading { display:grid; gap:9px; padding-right:36px; }
  .card-dialog-context-links { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr); gap:7px; }
  .card-context-link { display:grid; grid-template-columns:25px minmax(0,1fr) auto; align-items:center; gap:7px; min-height:43px; padding:7px 9px; border:1px solid #c6deef; border-radius:11px; background:#f6fbff; color:#214f7e; text-decoration:none!important; }
  .card-context-link:hover { border-color:#79b5e5; background:#edf8ff; }
  .card-context-link:focus-visible { outline:3px solid rgba(22,112,201,.24); outline-offset:2px; border-color:#559ed8; }
  .card-context-icon { display:grid; width:25px; height:25px; place-items:center; border-radius:8px; background:#e0f1fd; color:#1670c9; font-size:14px; font-weight:800; }
  .card-context-link > span:nth-child(2) { display:block; min-width:0; }
  .card-context-link small { display:block; margin-bottom:2px; color:#527596; font-size:10px; font-weight:720; line-height:1.05; }
  .card-context-link b { display:block; overflow:hidden; color:#185b9c; font-size:11px; font-weight:750; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
  .card-context-link > i { color:#3b7dbb; font-size:12px; font-style:normal; }
  .card-context-static { cursor:default; }
  .card-context-static:hover { border-color:#c6deef; background:#f6fbff; }
  .card-dialog-title-row { display:block; }
  .card-dialog-info h2 { margin:0; color:#082f63; font-size:30px; font-weight:780; line-height:1.08; }
  .card-dialog-identity { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; }
  .card-dialog-number,.card-dialog-rarity,.card-dialog-identity .finish {
    display:inline-flex;
    min-height:30px;
    align-items:center;
    gap:6px;
    padding:5px 9px;
    border:1px solid #bcd9ed;
    border-radius:9px;
    background:#edf7fe;
    color:#285b91;
    font-size:11px;
    font-weight:700;
    line-height:1;
  }
  .card-dialog-rarity { background:#fff8e8; border-color:#f3d58d; color:#885e0a; }
  .card-dialog-rarity .rarity-symbol { min-width:13px; justify-content:center; font-size:13px; }
  .card-dialog-identity .finish { background:#f6f8fb; color:#526b86; }
  .card-dialog-summary {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
    gap:12px 0;
    overflow:visible;
    padding:5px 0 10px;
    border:0;
    border-bottom:1px solid #d8e7f2;
    border-radius:0;
    background:transparent;
  }
  .card-dialog-summary > div { position:relative; min-width:0; padding:0 10px 0 17px; border:0; }
  .card-dialog-summary > div:nth-child(3n+1) { padding-left:0; }
  .card-dialog-summary > div > span:first-child { display:block; color:#4279b6; font-size:9px; font-weight:700; letter-spacing:.035em; line-height:1.1; text-transform:uppercase; }
  .card-dialog-summary b { display:block; margin-top:4px; overflow:visible; color:#12365f; font-size:12px; font-weight:720; line-height:1.2; text-overflow:clip; white-space:normal; }
  .card-dialog-summary .card-dialog-rarity-value { display:inline-flex; align-items:center; gap:5px; }
  .card-dialog-summary .card-dialog-rarity-value > span { display:inline; color:inherit; font-size:inherit; letter-spacing:0; text-transform:none; }
  .card-dialog-summary .card-dialog-rarity-value .rarity-symbol { min-width:12px; font-size:12px; text-align:center; }
  .card-dialog-summary .pokemon-type { display:inline-flex; align-items:center; }
  .card-dialog-add-panel,.card-allocation-panel,.card-value-panel {
    width:100%;
    margin:0;
    padding:15px;
    border:1px solid #cbe0f0;
    border-radius:15px;
    background:#fff;
    box-shadow:0 7px 20px rgba(33,83,126,.045);
  }
  .card-dialog-section-title { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:0 0 12px; }
  .card-dialog-section-title > div { min-width:0; }
  .card-dialog-section-title .eyebrow,.card-allocation-head .eyebrow { margin:0 0 2px; color:#4279b6; font-size:9px; letter-spacing:.035em; }
  .card-dialog-section-title h3,.card-allocation-head h3 { margin:0; color:#12365f; font-size:15px; font-weight:700; }
  .card-dialog-section-title > small { color:#7289a5; font-size:9px; white-space:nowrap; }
  .card-dialog-controls { display:grid; grid-template-columns:minmax(96px,1fr) minmax(90px,1fr) auto; gap:8px; padding:0; border:0; background:transparent; }
  .card-dialog-controls select,.card-dialog-quantity .stepper { height:38px; border-color:#c5d8e7; border-radius:9px; }
  .card-dialog-quantity .stepper button { width:35px; height:36px; }
  .card-allocation-panel { display:grid; gap:10px; }
  .card-allocation-head { display:flex; align-items:start; justify-content:space-between; gap:12px; }
  .card-allocation-count { padding:6px 9px; border-radius:9px; background:#e8f6ff; color:#2468a9; font-size:10px; font-weight:800; white-space:nowrap; }
  .card-allocation-choice { display:grid; gap:3px; padding:11px 12px; border:1px solid #f0c66b; border-radius:11px; background:#fff8e8; color:#714f0d; }
  .card-allocation-choice strong { font-size:12px; line-height:1.25; }
  .card-allocation-choice span { font-size:10px; line-height:1.4; }
  .card-holding-list { display:grid; gap:7px; }
  .card-holding-row { display:grid; grid-template-columns:116px minmax(0,1fr) auto; align-items:center; gap:10px; padding:9px 10px; border-radius:11px; background:#f5f9fc; }
  .card-holding-row.allocation-choice-candidate { outline:2px solid #f0c66b; outline-offset:1px; background:#fffaf0; }
  .card-holding-id { display:block; min-width:0; }
  .card-holding-id b { display:block; color:#12365f; font-size:11px; }
  .card-holding-id small { display:block; margin-top:3px; color:#7289a5; font-size:9px; }
  .card-binder-tags { display:flex; flex-wrap:wrap; align-items:center; gap:5px; min-width:0; }
  .card-binder-tag { display:inline-flex; max-width:100%; padding:5px 7px; overflow:hidden; border:1px solid #c4dff1; border-radius:8px; background:#fff; color:#356c9e; font-size:9px; font-weight:700; line-height:1.1; text-decoration:none!important; text-overflow:ellipsis; white-space:nowrap; }
  .card-binder-tag.empty { border-style:dashed; background:transparent; color:#8194a8; }
  .card-holding-action { width:32px; height:32px; padding:0; border:1px solid #d7c5c5; border-radius:9px; background:#fff; color:#a55a58; font-size:16px; }
  .card-allocation-empty { margin:0; padding:12px 13px; border:1px solid #dbe7f2; border-radius:10px; background:#f3f8fc; color:#4f6882; font-size:11px; font-weight:520; line-height:1.5; }
  .card-allocation-add { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:7px; padding-top:2px; }
  .card-allocation-add h4 { grid-column:1/-1; margin:0; color:#56708b; font-size:10px; font-weight:700; }
  .card-allocation-add select { min-width:0; height:35px; border:1px solid #c5d8e7; border-radius:8px; background:#fff; color:#12365f; font-size:10px; }
  .card-allocation-add .button { min-height:35px; padding:7px 12px; border-radius:8px; font-size:10px; }
  .card-allocation-note { font-size:9px; }
  .card-value-panel { background:linear-gradient(135deg,#f8fcff,#fff); }
  .dialog-hint { margin:0; padding:0 2px; font-size:8px; text-align:center; }

  @media (min-width:801px) {
    .card-dialog-info { gap:9px; padding:24px 26px 20px; }
    .card-dialog-summary > div { padding-right:8px; }
    .card-dialog-summary b { margin-top:3px; }
    .card-dialog-add-panel { display:grid; grid-template-columns:138px minmax(0,1fr); align-items:end; gap:10px; padding:12px 13px; }
    .card-dialog-add-panel .card-dialog-section-title { display:block; margin:0; }
    .card-dialog-add-panel .card-dialog-section-title > small { display:block; margin-top:3px; }
    .card-dialog-controls select,.card-dialog-quantity .stepper { height:35px; }
    .card-dialog-quantity .stepper button { height:33px; }
    .card-allocation-panel,.card-value-panel { padding:12px 13px; }
  }

  @media (max-width:800px) {
    #card-dialog {
      position:fixed!important;
      inset:auto!important;
      top:max(5px,env(safe-area-inset-top))!important;
      right:max(5px,env(safe-area-inset-right))!important;
      bottom:max(5px,env(safe-area-inset-bottom))!important;
      left:max(5px,env(safe-area-inset-left))!important;
      box-sizing:border-box;
      width:auto!important;
      max-width:none!important;
      min-width:0!important;
      height:auto;
      max-height:none;
      margin:0!important;
      transform:none!important;
      overscroll-behavior:contain;
      border-radius:16px;
    }
    .card-dialog-panel { display:grid; grid-template-columns:minmax(0,1fr); width:100%; min-width:0; max-width:100%; height:100%; max-height:100%; overflow-x:hidden; overflow-y:auto; }
    .card-dialog-stage { grid-template-columns:40px minmax(0,1fr) 40px; flex:0 0 auto; width:100%; min-width:0; max-width:100%; min-height:330px; height:38dvh; max-height:342px; padding:9px 4px 37px; overflow:hidden; }
    .card-dialog-art { height:100%; max-height:280px; padding:3px; overflow:hidden; }
    .card-dialog-art > img { width:auto!important; max-width:min(62vw,210px)!important; height:min(31dvh,267px)!important; max-height:min(31dvh,267px)!important; object-fit:contain; filter:drop-shadow(0 13px 15px rgba(4,32,67,.24)); }
    .card-dialog-art .card-surface { width:auto!important; max-width:min(62vw,210px)!important; height:min(31dvh,267px)!important; max-height:min(31dvh,267px)!important; aspect-ratio:var(--card-image-aspect,63 / 88); }
    .card-dialog-art .card-surface > img { width:100%!important; max-width:none!important; height:100%!important; max-height:none!important; object-fit:fill; }
    .card-dialog-step { width:35px; height:44px; }
    .card-dialog-position { bottom:13px; padding:6px 10px; font-size:9px; }
    .card-dialog-close { top:9px; right:9px; width:36px; height:36px; }
    .card-dialog-info { box-sizing:border-box; width:100%; min-width:0; max-width:100%; max-height:none; gap:12px; padding:18px 12px calc(20px + env(safe-area-inset-bottom)); overflow:visible; }
    .card-dialog-heading { gap:8px; padding-right:20px; }
    .card-dialog-context-links { grid-template-columns:1fr; }
    .card-context-link { min-height:41px; }
    .card-dialog-title-row { display:block; }
    .card-dialog-info h2 { font-size:23px; }
    .card-dialog-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px 0; padding:4px 0 11px; }
    .card-dialog-summary > div { padding:0 10px 0 13px; border:0; }
    .card-dialog-summary > div:nth-child(odd) { padding-left:0; }
    .card-dialog-summary > div:nth-child(even) { padding-right:0; }
    .card-dialog-summary > div > span:first-child { font-size:9px; }
    .card-dialog-summary b { font-size:11px; white-space:normal; }
    .card-dialog-summary .card-dialog-rarity-value { align-items:flex-start; gap:4px; max-width:100%; line-height:1.15; }
    .card-dialog-summary .card-dialog-rarity-value .rarity-symbol { flex:0 0 auto; }
    .card-dialog-summary .card-dialog-rarity-value > span:last-child { min-width:0; }
    .card-dialog-add-panel,.card-allocation-panel,.card-value-panel { padding:13px; border-radius:14px; }
    .card-dialog-section-title { align-items:start; }
    .card-dialog-section-title > small { max-width:74px; white-space:normal; text-align:right; }
    .card-dialog-controls { grid-template-columns:minmax(72px,1fr) minmax(72px,1fr); gap:7px; }
    .card-dialog-quantity { grid-column:1/-1; }
    .card-dialog-quantity .stepper { width:100%; }
    .card-dialog-quantity .stepper output { flex:1; }
    .card-holding-row { grid-template-columns:88px minmax(0,1fr) auto; gap:7px; padding:9px; }
    .card-binder-tag { padding:4px 6px; font-size:8px; white-space:normal; }
    .card-allocation-add { grid-template-columns:1fr; }
    .card-allocation-add h4 { grid-column:auto; }
    .card-value-controls { grid-template-columns:minmax(0,1fr) auto; }
  }
}

/* Terceira onda local — Linhas Evolutivas com a identidade visual da Pokédex. */
@layer arquivo {
  body[data-route="evolucoes"] main { color: #113457; }
  body[data-route="evolucoes"] .dex-page-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #b9dcf5;
    border-radius: 15px;
    background:
      linear-gradient(127deg,transparent 0 18%,rgba(105,183,239,.12) 18% 29%,transparent 29% 47%,rgba(105,183,239,.1) 47% 59%,transparent 59%),
      linear-gradient(110deg,#fafdff 0%,#eaf7ff 58%,#d8efff 100%);
    box-shadow: 0 5px 18px rgba(23,93,150,.055);
  }
  body[data-route="evolucoes"] .dex-page-hero {
    position: relative;
    display: block;
    min-height: 146px;
    margin: 0;
    padding: 18px 300px 12px 172px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body[data-route="evolucoes"] .dex-page-hero::before {
    content: '';
    position: absolute;
    right: 190px;
    bottom: -72px;
    width: 220px;
    height: 220px;
    border: 18px solid rgba(255,255,255,.28);
    border-radius: 50%;
  }
  body[data-route="evolucoes"] .dex-page-mark {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 32px;
    width: 124px;
    height: 112px;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 7px 9px rgba(25,103,169,.12));
  }
  body[data-route="evolucoes"] .dex-page-copy { position: relative; z-index: 3; min-width: 0; padding: 0; }
  body[data-route="evolucoes"] .dex-page-copy h1 {
    margin: 0 0 2px;
    color: #0b3566;
    font-family: var(--ah-font-ui);
    font-size: clamp(42px,5vw,62px);
    font-weight: 720;
    line-height: .98;
    letter-spacing: -.045em;
  }
  body[data-route="evolucoes"] .dex-page-copy > p { max-width: 570px; margin: 0; color: #1667bd; font-size: 17px; line-height: 1.35; }
  body[data-route="evolucoes"] .dex-page-art {
    position: absolute;
    z-index: 1;
    top: -38px;
    right: -22px;
    width: 340px;
    height: 224px;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(-12px 13px 16px rgba(21,70,113,.12));
  }
  body[data-route="evolucoes"] .dex-controls { display: grid; gap: 10px; padding: 0 18px 16px; }
  body[data-route="evolucoes"] .dex-search {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    align-items: center;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #9ecbf0;
    border-radius: 11px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 8px rgba(30,105,170,.08);
  }
  body[data-route="evolucoes"] .dex-search > svg { justify-self: center; width: 27px; height: 27px; fill: none; stroke: #076be3; stroke-width: 2.2; stroke-linecap: round; }
  body[data-route="evolucoes"] .dex-search input { width: 100%; height: 52px; padding: 0 16px 0 0; border: 0; outline: 0; background: transparent; color: #173b62; font: 500 16px/1 var(--ah-font-ui); }
  body[data-route="evolucoes"] .dex-search input::placeholder { color: #607bb0; opacity: .82; }
  body[data-route="evolucoes"] .dex-filter-chips { display: grid; grid-template-columns: repeat(2,minmax(190px,260px)); gap: 9px; }
  body[data-route="evolucoes"] .dex-filter-chips > label,
  body[data-route="evolucoes"] .dex-filter-chips > .multi-field {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    align-items: center;
    gap: 7px;
    height: 44px;
    min-height: 44px;
    padding: 0 9px;
    border: 1px solid #a8cff0;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    color: #075bc1;
    box-shadow: 0 2px 6px rgba(32,104,167,.06);
  }
  body[data-route="evolucoes"] .dex-filter-chips .filter-chip-icon { width: 26px; height: 26px; color: #075bc1; }
  body[data-route="evolucoes"] .dex-filter-chips .filter-chip-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body[data-route="evolucoes"] .dex-filter-chips .multi-caption { display: none; }
  body[data-route="evolucoes"] .dex-filter-chips .multi-picker { grid-column: 2; align-self: stretch; display: flex; align-items: center; height: 100%; min-width: 0; }
  body[data-route="evolucoes"] .dex-filter-chips .multi-picker > summary { display: flex; width: 100%; height: 100%; min-height: 0; align-items: center; padding: 0 16px 0 0; overflow: hidden; color: #0754b2; font-size: 12px; font-weight: 550; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="evolucoes"] .dex-filter-chips .multi-picker > summary::after { top: 50%; color: #2678ce; transform: translateY(-50%); }
  body[data-route="evolucoes"] .evolution-favorite-filter { cursor: pointer; }
  body[data-route="evolucoes"] .evolution-favorite-filter input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  body[data-route="evolucoes"] .evolution-favorite-filter > span:last-child { align-self: center; overflow: hidden; color: #0754b2; font-size: 12px; font-weight: 550; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="evolucoes"] .evolution-favorite-filter:has(input:checked) { border-color: #318bd4; background: #e5f5ff; box-shadow: inset 0 0 0 1px rgba(49,139,212,.12); }
  body[data-route="evolucoes"] .evolution-favorite-filter:has(input:checked) .filter-chip-icon { color: #e35a85; }
  body[data-route="evolucoes"] .evolution-favorite-filter:has(input:checked) .filter-chip-icon svg { fill: currentColor; }
  body[data-route="evolucoes"] .evolution-results-head { min-height: 42px; margin: 0 0 10px; padding: 0 14px; border: 1px solid #c5e1f3; border-radius: 11px; background: linear-gradient(105deg,#eef9ff,#f8fcff); color: #38729f; font-size: 12px; font-weight: 580; }
  body[data-route="evolucoes"] .evolution-family { overflow: hidden; border-color: #c7e1f2; border-radius: 14px; box-shadow: 0 4px 14px rgba(23,93,150,.05); }
  body[data-route="evolucoes"] .evolution-family-head { border-bottom-color: #d4e8f5; background: linear-gradient(123deg,#f5fbff 0 26%,#e9f7ff 26% 44%,#f8fcff 44% 68%,#edf8ff 68%); }
  body[data-route="evolucoes"] .evolution-family-head h2 { color: #174e7d; font-family: var(--ah-font-ui); font-weight: 650; }
  body[data-route="evolucoes"] .evolution-family-number { border-color: #9cc9e9; background: rgba(255,255,255,.78); color: #176aa8; }
  body[data-route="evolucoes"] .evolution-family-progress > span { background: #dcecf7; }
  body[data-route="evolucoes"] .evolution-family-progress > span > i { background: linear-gradient(90deg,#55aee3,#1687dc); }
}

@media(max-width:639px){
  @layer arquivo {
    body[data-route="evolucoes"] main { padding-inline: 7px; }
    body[data-route="evolucoes"] .dex-page-intro { border-radius: 13px; }
    body[data-route="evolucoes"] .dex-page-hero { min-height: 132px; padding: 52px 90px 8px 12px; }
    body[data-route="evolucoes"] .dex-page-hero::before { right: 72px; bottom: -88px; width: 170px; height: 170px; border-width: 12px; }
    body[data-route="evolucoes"] .dex-page-mark { top: 6px; left: 13px; width: 70px; height: 48px; }
    body[data-route="evolucoes"] .dex-page-copy h1 { margin-bottom: 3px; font-size: 27px; }
    body[data-route="evolucoes"] .dex-page-copy > p { max-width: 245px; font-size: 12px; }
    body[data-route="evolucoes"] .dex-page-art { top: -24px; right: -66px; width: 205px; height: 174px; }
    body[data-route="evolucoes"] .dex-controls { gap: 8px; padding: 0 8px 10px; }
    body[data-route="evolucoes"] .dex-search { grid-template-columns: 46px minmax(0,1fr); min-height: 46px; }
    body[data-route="evolucoes"] .dex-search > svg { width: 23px; height: 23px; }
    body[data-route="evolucoes"] .dex-search input { height: 44px; font-size: 12px; }
    body[data-route="evolucoes"] .dex-filter-chips { display: flex; min-width: 0; margin: 0; padding-bottom: 5px; overflow-x: auto; scroll-snap-type: x proximity; }
    body[data-route="evolucoes"] .dex-filter-chips > label,
    body[data-route="evolucoes"] .dex-filter-chips > .multi-field { flex: 0 0 150px; height: 40px; min-height: 40px; scroll-snap-align: start; }
    body[data-route="evolucoes"] .evolution-favorite-filter { flex-basis: 170px; }
    body[data-route="evolucoes"] .evolution-results-head { min-height: 38px; padding: 0 10px; font-size: 10px; }
  }
}

/* Página interna do Set — mesma linguagem visual do catálogo de Sets. */
@layer arquivo {
  body[data-route="sets"] .set-detail-hero {
    position: relative;
    isolation: isolate;
    min-height: 164px;
    margin: 0 0 9px;
    padding: 28px 300px 22px 196px;
    overflow: hidden;
    border: 1px solid #b9dbf3;
    border-radius: 14px;
    background: linear-gradient(112deg,#f9fdff 0 43%,#dff2ff 70%,#b9ddfa 100%);
    box-shadow: 0 8px 24px rgba(34,104,167,.08);
  }
  body[data-route="sets"] .set-detail-hero::before,
  body[data-route="sets"] .set-objective-bar::before,
  body[data-route="sets"] .set-detail-query::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(132deg,transparent 0 108px,rgba(32,140,226,.075) 109px 135px);
    pointer-events: none;
  }
  body[data-route="sets"] .set-detail-brand {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 24px;
    display: grid;
    width: 154px;
    height: 122px;
    place-items: center;
  }
  body[data-route="sets"] .set-detail-brand .set-logo-wrap,
  body[data-route="sets"] .set-detail-brand .set-art {
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
  }
  body[data-route="sets"] .set-detail-brand .set-logo { object-position: center; }
  body[data-route="sets"] .set-detail-copy { position: relative; z-index: 2; min-width: 0; }
  body[data-route="sets"] .set-detail-copy p {
    margin: 0 0 5px;
    color: #3974aa;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  body[data-route="sets"] .set-detail-copy h1 {
    max-width: 720px;
    margin: 0 0 5px;
    color: #0b3566;
    font-size: clamp(34px,4.3vw,54px);
    font-weight: 720;
    line-height: 1;
    letter-spacing: -.04em;
  }
  body[data-route="sets"] .set-detail-copy > span { color: #1667bd; font-size: 15px; line-height: 1.3; }
  body[data-route="sets"] .set-detail-art {
    position: absolute;
    z-index: 1;
    top: -36px;
    right: -22px;
    width: 340px;
    height: 224px;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(-12px 13px 16px rgba(21,70,113,.12));
  }

  body[data-route="sets"] .set-objective-bar {
    position: relative;
    isolation: isolate;
    min-height: 48px;
    margin: 0 0 8px;
    padding: 5px 7px 5px 13px;
    overflow: hidden;
    border-color: #c3e0f4;
    border-radius: 10px;
    background: linear-gradient(100deg,#eaf7ff,#f7fcff);
    box-shadow: 0 2px 8px rgba(30,105,170,.045);
  }
  body[data-route="sets"] .set-objective-label { color: #376b93; font-size: 10px; font-weight: 610; }
  body[data-route="sets"] .set-mode-toggle { background: rgba(215,237,251,.72); }
  body[data-route="sets"] .set-mode-toggle button { min-height: 34px; color: #557b99; font-size: 10px; }
  body[data-route="sets"] .set-mode-toggle button[aria-pressed="true"] { color: #075fc0; box-shadow: 0 2px 6px rgba(25,87,137,.09); }

  body[data-route="sets"] #set-progress { margin: 0 0 8px; }
  body[data-route="sets"] .set-detail-progress {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 7px 14px;
    margin: 0;
    padding: 9px 13px 10px;
    border: 1px solid #c3e0f4;
    border-radius: 10px;
    background: linear-gradient(100deg,#eaf7ff,#f8fcff);
    box-shadow: 0 2px 8px rgba(30,105,170,.045);
  }
  body[data-route="sets"] .set-progress-copy { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
  body[data-route="sets"] .set-progress-copy span { color: #5a7b96; font-size: 9px; font-weight: 580; }
  body[data-route="sets"] .set-progress-copy strong { color: #174f7b; font-size: 11px; font-weight: 640; }
  body[data-route="sets"] .set-progress-percent { color: #0767ca; font: 680 11px/1 var(--ah-font-data); }
  body[data-route="sets"] .set-detail-progress .progress-track { grid-column: 1 / -1; height: 6px; background: #d7e9f5; }
  body[data-route="sets"] .set-detail-progress .progress-fill { height: 100%; background: linear-gradient(90deg,#0876df,#27bdd0); }

  body[data-route="sets"] .set-detail-query {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 10px;
    overflow: visible;
    border: 1px solid #b9dbf3;
    border-radius: 12px;
    background: linear-gradient(112deg,#f9fdff,#e5f5ff);
  }
  body[data-route="sets"] .set-detail-search {
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    align-items: center;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid #9ecbf0;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 8px rgba(30,105,170,.08);
  }
  body[data-route="sets"] .set-detail-search > svg {
    justify-self: center;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #076be3;
    stroke-width: 2.2;
    stroke-linecap: round;
  }
  body[data-route="sets"] .set-detail-search input {
    width: 100%;
    height: 48px;
    min-width: 0;
    padding: 0 14px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173b62;
    font: 500 15px/1 var(--ah-font-ui);
  }
  body[data-route="sets"] .set-detail-search input::placeholder { color: #607bb0; opacity: .82; }
  body[data-route="sets"] .set-detail-search:focus-within { border-color: #6da9dc; box-shadow: 0 0 0 3px rgba(20,115,210,.12); }
  body[data-route="sets"] .set-detail-filter-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(132px,1fr));
    gap: 7px;
    overflow: visible;
  }
  body[data-route="sets"] .set-detail-filter-chips > label,
  body[data-route="sets"] .set-detail-filter-chips > .multi-field {
    box-sizing: border-box;
    position: relative;
    display: grid;
    grid-template-columns: 25px minmax(0,1fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 5px;
    height: 42px;
    min-width: 0;
    min-height: 42px;
    padding: 0 7px;
    border: 1px solid #a8cff0;
    border-radius: 9px;
    background: rgba(255,255,255,.94);
    color: #075bc1;
    font-size: 8px;
    font-weight: 570;
    letter-spacing: .02em;
    box-shadow: 0 2px 6px rgba(32,104,167,.05);
  }
  body[data-route="sets"] .set-detail-filter-chips > .multi-field[hidden] { display: none !important; }
  body[data-route="sets"] .set-detail-filter-chips > .set-energy-filter { min-width: 154px; }
  body[data-route="sets"] .set-detail-filter-chips > :hover { border-color: #78b4e4; background: #fff; }
  body[data-route="sets"] .set-detail-filter-chips .filter-chip-icon {
    grid-row: 1;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #075bc1;
  }
  body[data-route="sets"] .set-detail-filter-chips .filter-chip-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body[data-route="sets"] .set-detail-filter-chips select {
    width: 100%;
    height: 40px;
    min-width: 0;
    padding: 0 16px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0754b2;
    font: 550 10px/1.15 var(--ah-font-ui);
  }
  body[data-route="sets"] .set-detail-filter-chips .multi-caption { display: none; }
  body[data-route="sets"] .set-detail-filter-chips .multi-picker { grid-column: 2; align-self: stretch; display: flex; min-width: 0; align-items: center; height: 100%; }
  body[data-route="sets"] .set-detail-filter-chips .multi-picker > summary {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 14px 0 0;
    align-items: center;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #0754b2;
    font-size: 10px;
    font-weight: 550;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-route="sets"] .set-detail-filter-chips .multi-picker > summary::after { top: 50%; right: 1px; color: #2678ce; transform: translateY(-50%); }

  body.card-catalog-page[data-route="sets"] .results-head {
    min-height: 42px;
    gap: 10px;
  }
  body.card-catalog-page[data-route="sets"] .set-ownership-slot {
    display: flex;
    flex: 1 1 250px;
    justify-content: center;
  }
  body.card-catalog-page[data-route="sets"] .set-ownership-segment {
    display: grid;
    grid-template-columns: repeat(3,minmax(68px,1fr));
    gap: 3px;
    padding: 3px;
    border: 1px solid #b7d8ef;
    border-radius: 9px;
    background: #e7f4fc;
    box-shadow: inset 0 1px 2px rgba(28,94,145,.045);
  }
  body.card-catalog-page[data-route="sets"] .set-ownership-segment button {
    min-height: 31px;
    padding: 5px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #517695;
    font: 560 10px/1 var(--ah-font-ui);
    white-space: nowrap;
  }
  body.card-catalog-page[data-route="sets"] .set-ownership-segment button:hover { color: #075fc0; }
  body.card-catalog-page[data-route="sets"] .set-ownership-segment button[aria-pressed="true"] {
    background: #fff;
    color: #075fc0;
    box-shadow: 0 1px 5px rgba(19,83,137,.12);
  }
  body.card-catalog-page[data-route="sets"] .set-ownership-segment button:focus-visible {
    outline: 2px solid #65a8de;
    outline-offset: 1px;
  }
  body.card-catalog-page[data-route="sets"] .results-head .pdf-export { margin-left: 0; }

  @media (max-width: 1100px) and (min-width: 801px) {
    body[data-route="sets"] .set-detail-filter-chips { grid-template-columns: repeat(4,minmax(0,1fr)); }
  }

  @media (max-width: 800px) {
    body[data-route="sets"] .set-detail-hero {
      min-height: 132px;
      padding: 56px 88px 11px 12px;
      border-radius: 13px;
    }
    body[data-route="sets"] .set-detail-brand { top: 5px; left: 12px; width: 126px; height: 48px; place-items: start; }
    body[data-route="sets"] .set-detail-brand .set-logo-wrap,
    body[data-route="sets"] .set-detail-brand .set-art { width: 126px; height: 48px; justify-content: flex-start; }
    body[data-route="sets"] .set-detail-brand .set-logo { object-position: left center; }
    body[data-route="sets"] .set-detail-copy p { margin-bottom: 2px; font-size: 7px; }
    body[data-route="sets"] .set-detail-copy h1 { margin-bottom: 3px; font-size: clamp(22px,6.3vw,28px); line-height: 1.02; }
    body[data-route="sets"] .set-detail-copy > span { font-size: 10px; }
    body[data-route="sets"] .set-detail-art { top: -22px; right: -66px; width: 205px; height: 174px; }
    body[data-route="sets"] .set-objective-bar { display: grid; grid-template-columns: auto minmax(0,1fr); padding: 5px 6px 5px 9px; }
    body[data-route="sets"] .set-objective-label { display: block; padding: 0; font-size: 8px; }
    body[data-route="sets"] .set-mode-toggle { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
    body[data-route="sets"] .set-mode-toggle button { justify-content: center; min-height: 32px; padding: 5px; font-size: 8px; }
    body[data-route="sets"] .set-mode-toggle svg { width: 15px; height: 15px; }
    body[data-route="sets"] .set-progress-copy { display: grid; gap: 1px; }
    body[data-route="sets"] .set-progress-copy span { font-size: 7px; }
    body[data-route="sets"] .set-progress-copy strong { font-size: 9px; }
    body[data-route="sets"] .set-progress-percent { font-size: 9px; }
    body[data-route="sets"] .set-detail-query { gap: 7px; padding: 8px; }
    body[data-route="sets"] .set-detail-search { grid-template-columns: 44px minmax(0,1fr); min-height: 44px; }
    body[data-route="sets"] .set-detail-search > svg { width: 22px; height: 22px; }
    body[data-route="sets"] .set-detail-search input { height: 42px; font-size: 11px; }
    body[data-route="sets"] .set-detail-filter-chips {
      display: flex;
      gap: 7px;
      margin-inline: -8px;
      padding: 0 8px 2px;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
    }
    body[data-route="sets"] .set-detail-filter-chips::-webkit-scrollbar { display: none; }
    body[data-route="sets"] .set-detail-filter-chips > label,
    body[data-route="sets"] .set-detail-filter-chips > .multi-field { flex: 0 0 148px; width: 148px; min-width: 148px; scroll-snap-align: start; }
    body[data-route="sets"] .set-detail-filter-chips > label:first-child,
    body[data-route="sets"] .set-detail-filter-chips > .multi-field:first-child { flex-basis: 172px; width: 172px; min-width: 172px; }
    body[data-route="sets"] .set-detail-filter-chips > .set-energy-filter { flex-basis: 164px; width: 164px; min-width: 164px; }
    body.card-catalog-page[data-route="sets"] .results-head {
      display: grid;
      grid-template-columns: minmax(0,1fr) auto;
      gap: 7px 8px;
    }
    body.card-catalog-page[data-route="sets"] .results-head #result-count { align-self: center; }
    body.card-catalog-page[data-route="sets"] .results-head .view-toggle { grid-row: 1; grid-column: 2; }
    body.card-catalog-page[data-route="sets"] .set-ownership-slot { grid-row: 2; grid-column: 1; min-width: 0; justify-content: stretch; }
    body.card-catalog-page[data-route="sets"] .set-ownership-segment { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
    body.card-catalog-page[data-route="sets"] .set-ownership-segment button { min-width: 0; padding-inline: 6px; font-size: 8.5px; }
    body.card-catalog-page[data-route="sets"] .results-head .pdf-export { grid-row: 2; grid-column: 2; }
  }
}

/* Barra contextual fina e seletor de visualização da Pokédex. */
@layer arquivo {
  .page-context-navigation {
    display: flex;
    min-height: 34px;
    margin: 7px 0 12px;
    padding: 2px 7px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #c9dfef;
    border-radius: 9px;
    background: linear-gradient(115deg,rgba(244,251,255,.96),rgba(235,247,254,.94));
    box-shadow: 0 2px 7px rgba(25,82,125,.045);
  }
  .page-context-link {
    display: inline-flex;
    min-width: 0;
    min-height: 24px;
    padding: 0 5px;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    color: #718a9d;
    font-size: 7px;
    font-weight: 450;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
  }
  .page-context-link > span[aria-hidden="true"] {
    display: inline-flex;
    color: #7193aa;
    font-size: 8.5px;
    font-weight: 450;
    line-height: 1;
    opacity: .78;
  }
  .page-context-link > span:not([aria-hidden="true"]) { display: inline-flex; }
  .page-context-link:hover { background: rgba(255,255,255,.66); color: #315f80; }
  .page-context-forward { margin-left: auto; }

  .dex-view-navigation {
    display: flex;
    min-height: 38px;
    margin: 8px 0 13px;
    padding: 3px 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9dfef;
    border-radius: 9px;
    background: linear-gradient(115deg,#f4fbff,#edf7fd 55%,#f9fcff);
    box-shadow: 0 2px 7px rgba(23,83,129,.045);
  }
  .dex-view-navigation .dex-view-switch {
    width: min(100%,480px);
    gap: 2px;
    padding: 2px;
    border: 0;
    background: rgba(255,255,255,.72);
  }
  .dex-view-navigation .dex-view-switch a {
    min-height: 29px;
    padding: 0 10px;
    gap: 6px;
    font-size: 8px;
    font-weight: 560;
  }
  .dex-view-navigation .dex-view-switch svg { width: 13px; height: 13px; }
  .page-context-navigation a:focus-visible,
  .dex-view-navigation a:focus-visible { outline: 3px solid rgba(17,116,191,.24); outline-offset: 1px; }

  @media (max-width: 800px) {
    .page-context-navigation { min-height: 32px; margin: 6px 0 9px; padding: 2px 5px; }
    .page-context-link { min-height: 23px; padding: 0 4px; gap: 4px; font-size: 6.5px; font-weight: 450; }
    .page-context-link > span[aria-hidden="true"] { font-size: 8px; }
    .dex-view-navigation { min-height: 36px; margin: 7px 0 10px; padding: 3px 4px; }
    .dex-view-navigation .dex-view-switch { width: 100%; }
    .dex-view-navigation .dex-view-switch a { min-height: 28px; padding: 0 4px; gap: 4px; font-size: 7px; white-space: nowrap; }
    .dex-view-navigation .dex-view-switch svg { width: 12px; height: 12px; }
  }
}

/* Base dos dois modos de visualização da Pokédex. */
@layer arquivo {
  .dex-view-switch {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 3px;
    padding: 3px;
    border: 1px solid #c5deef;
    border-radius: 10px;
    background: rgba(255,255,255,.76);
  }
  .dex-view-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    color: #52748f;
    font-size: 11px;
    font-weight: 570;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease,color .16s ease,box-shadow .16s ease;
  }
  .dex-view-switch svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .dex-view-switch a:hover { color: #0b62aa; background: #edf8ff; }
  .dex-view-switch a.is-active {
    color: #075fb3;
    background: linear-gradient(180deg,#e6f5ff,#dcefff);
    box-shadow: inset 0 0 0 1px #a8d2ef,0 2px 5px rgba(25,96,151,.07);
  }
  @media (max-width: 800px) {
    .dex-view-switch { width: 100%; }
    .dex-view-switch a { min-height: 37px; padding: 0 5px; font-size: 9.5px; white-space: normal; }
    .dex-view-switch svg { width: 16px; height: 16px; }
  }
}

/* Refinamento homologado da Pokédex: cabeçalho idêntico ao catálogo,
   captura explícita e faixa de progresso com linguagem própria do jogo. */
@layer arquivo {
  body[data-route="pokedex"] .dex-page-hero {
    display: block;
    min-height: 146px;
    padding: 18px 300px 12px 172px;
  }
  body[data-route="pokedex"] .dex-page-mark {
    position: absolute;
    top: 17px;
    left: 32px;
    width: 124px;
    height: 112px;
    margin: 0;
  }
  body[data-route="pokedex"] .dex-page-copy { padding: 0; }
  body[data-route="pokedex"] .dex-page-copy h1 {
    margin: 0 0 2px;
    color: #0b3566;
    font-size: clamp(42px,5vw,62px);
    font-weight: 720;
    line-height: .98;
    letter-spacing: -.045em;
  }
  body[data-route="pokedex"] .dex-page-copy > p {
    max-width: 570px;
    color: #1667bd;
    font-size: 17px;
    line-height: 1.35;
  }
  body[data-route="pokedex"] .dex-page-art {
    top: -38px;
    right: -22px;
    width: 340px;
    height: 224px;
  }

  body[data-route="pokedex"] .dex-filter-chips {
    grid-template-columns: minmax(290px,1.65fr) repeat(4,minmax(145px,1fr));
  }
  body[data-route="pokedex"] .dex-capture-filter {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: stretch;
    height: 44px;
    padding: 3px;
    border: 1px solid #a8cff0;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 2px 6px rgba(32,104,167,.06);
  }
  body[data-route="pokedex"] .dex-capture-filter > select {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body[data-route="pokedex"] .dex-capture-option {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #56789a;
    font: 550 10px/1.05 var(--ah-font-ui);
    cursor: pointer;
  }
  body[data-route="pokedex"] .dex-capture-option + .dex-capture-option { border-left: 1px solid #d9e9f5; border-radius: 0 7px 7px 0; }
  body[data-route="pokedex"] .dex-capture-option svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body[data-route="pokedex"] .dex-capture-option.is-active {
    background: #e2f2ff;
    color: #075fc7;
    box-shadow: inset 0 0 0 1px #9dcef3;
  }
  body[data-route="pokedex"] .dex-capture-option:focus-visible { outline: 2px solid #086fd7; outline-offset: 1px; }

  body[data-route="pokedex"] .dex-overview {
    position: relative;
    isolation: isolate;
    grid-template-columns: 78px minmax(230px,1.2fr) minmax(210px,.85fr) 116px;
    min-height: 142px;
    overflow: hidden;
    gap: 18px;
    padding: 18px 22px;
    border: 1px solid #0567bd;
    background:
      radial-gradient(circle at 74% 20%,rgba(255,220,72,.2) 0 3%,transparent 3.2%),
      linear-gradient(122deg,transparent 0 22%,rgba(255,255,255,.08) 22% 34%,transparent 34% 54%,rgba(255,255,255,.06) 54% 66%,transparent 66%),
      linear-gradient(110deg,#0756b4 0%,#0788d6 60%,#08a7ce 100%);
    box-shadow: 0 8px 20px rgba(5,81,151,.14);
  }
  body[data-route="pokedex"] .dex-overview::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: 112px;
    bottom: -104px;
    width: 230px;
    height: 230px;
    border: 22px solid rgba(255,255,255,.09);
    border-radius: 50%;
  }
  body[data-route="pokedex"] .dex-overview-emblem {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.64);
    border-radius: 50%;
    background: linear-gradient(145deg,#ff5b62,#e82f47);
    box-shadow: 0 7px 16px rgba(5,50,108,.2),inset 0 1px 0 rgba(255,255,255,.35);
  }
  body[data-route="pokedex"] .dex-overview-emblem svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 4; }
  body[data-route="pokedex"] .dex-overview-count > strong { color: #fff; font-size: 54px; text-shadow: 0 2px 0 rgba(0,49,102,.18); }
  body[data-route="pokedex"] .dex-overview-count b { color: #fff; font-size: 18px; }
  body[data-route="pokedex"] .dex-overview-count small { color: rgba(255,255,255,.78); }
  body[data-route="pokedex"] .dex-overview-stats span {
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.13);
    color: rgba(255,255,255,.82);
    backdrop-filter: blur(3px);
  }
  body[data-route="pokedex"] .dex-overview-stats b { color: #fff; }
  body[data-route="pokedex"] .dex-overview-ring {
    width: 108px;
    height: 108px;
    background: conic-gradient(#ffdb3d var(--dex-progress),rgba(255,255,255,.24) 0);
    box-shadow: 0 8px 18px rgba(0,55,112,.18);
  }
  body[data-route="pokedex"] .dex-overview-ring::before { inset: 10px; background: #076fc0; }
  body[data-route="pokedex"] .dex-overview-ring span { display: flex; flex-direction: column; align-items: center; color: #fff; }
  body[data-route="pokedex"] .dex-overview-ring span b { font-size: 17px; font-weight: 720; }
  body[data-route="pokedex"] .dex-overview-ring span small { margin-top: 1px; color: rgba(255,255,255,.72); font-size: 8px; font-weight: 550; }

  @media (max-width: 1100px) {
    body[data-route="pokedex"] .dex-filter-chips { display: flex; }
    body[data-route="pokedex"] .dex-capture-filter { flex: 0 0 310px; scroll-snap-align: start; }
  }
  @media (max-width: 800px) {
    body[data-route="pokedex"] .dex-page-hero { min-height: 132px; padding: 52px 90px 8px 12px; }
    body[data-route="pokedex"] .dex-page-mark { top: 6px; left: 13px; width: 70px; height: 48px; }
    body[data-route="pokedex"] .dex-page-copy h1 { font-size: 27px; }
    body[data-route="pokedex"] .dex-page-copy > p { max-width: 245px; font-size: 12px; }
    body[data-route="pokedex"] .dex-page-art { top: -24px; right: -66px; width: 205px; height: 174px; }
    body[data-route="pokedex"] .dex-capture-filter { flex-basis: 300px; height: 40px; min-height: 40px; }
    body[data-route="pokedex"] .dex-capture-option { padding-inline: 5px; font-size: 9px; }
    body[data-route="pokedex"] .dex-capture-option svg { width: 16px; height: 16px; flex-basis: 16px; }
    body[data-route="pokedex"] .dex-overview {
      grid-template-columns: 52px minmax(0,1fr) 72px;
      grid-template-rows: auto auto;
      gap: 9px;
      min-height: 128px;
      padding: 12px;
    }
    body[data-route="pokedex"] .dex-overview-emblem { grid-column: 1; grid-row: 1; width: 48px; height: 48px; }
    body[data-route="pokedex"] .dex-overview-emblem svg { width: 34px; height: 34px; stroke-width: 3.5; }
    body[data-route="pokedex"] .dex-overview-count { grid-column: 2; grid-row: 1; gap: 8px; }
    body[data-route="pokedex"] .dex-overview-count > strong { font-size: 38px; }
    body[data-route="pokedex"] .dex-overview-count b { font-size: 13px; }
    body[data-route="pokedex"] .dex-overview-count small { max-width: 145px; font-size: 9px; }
    body[data-route="pokedex"] .dex-overview-stats { grid-column: 1 / -1; grid-row: 2; }
    body[data-route="pokedex"] .dex-overview-ring { grid-column: 3; grid-row: 1; width: 68px; height: 68px; }
    body[data-route="pokedex"] .dex-overview-ring::before { inset: 7px; }
    body[data-route="pokedex"] .dex-overview-ring span b { font-size: 11px; }
    body[data-route="pokedex"] .dex-overview-ring span small { font-size: 7px; }
  }
}

/* Onda visual — Pokédex alinhada à identidade de Todas as Cartas. */
@layer arquivo {
  body[data-route="pokedex"] main { color: #113457; }
  body[data-route="pokedex"] .dex-page-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #b9dcf5;
    border-radius: 15px;
    background:
      linear-gradient(127deg,transparent 0 18%,rgba(105,183,239,.12) 18% 29%,transparent 29% 47%,rgba(105,183,239,.1) 47% 59%,transparent 59%),
      linear-gradient(110deg,#fafdff 0%,#eaf7ff 58%,#d8efff 100%);
    box-shadow: 0 5px 18px rgba(23,93,150,.055);
  }
  body[data-route="pokedex"] .dex-page-hero {
    position: relative;
    display: grid;
    grid-template-columns: 122px minmax(0,1fr) 300px;
    align-items: center;
    min-height: 154px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body[data-route="pokedex"] .dex-page-hero::before {
    content: '';
    position: absolute;
    right: 190px;
    bottom: -72px;
    width: 220px;
    height: 220px;
    border: 18px solid rgba(255,255,255,.28);
    border-radius: 50%;
  }
  body[data-route="pokedex"] .dex-page-mark {
    position: relative;
    z-index: 2;
    width: 108px;
    height: 96px;
    margin-left: 23px;
    object-fit: contain;
    filter: drop-shadow(0 7px 9px rgba(25,103,169,.12));
  }
  body[data-route="pokedex"] .dex-page-copy {
    position: relative;
    z-index: 3;
    min-width: 0;
    padding: 20px 24px 17px;
  }
  body[data-route="pokedex"] .dex-page-copy h1 {
    margin: 0 0 4px;
    color: #0b3566;
    font: 720 clamp(42px,5vw,62px)/.98 var(--ah-font-display);
    letter-spacing: -.045em;
  }
  body[data-route="pokedex"] .dex-page-copy > p {
    max-width: 590px;
    margin: 0;
    color: #1767b9;
    font-size: 16px;
    line-height: 1.38;
  }
  body[data-route="pokedex"] .dex-page-art {
    position: absolute;
    z-index: 1;
    top: -42px;
    right: -28px;
    width: 335px;
    height: 230px;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(-12px 13px 16px rgba(21,70,113,.12));
  }
  body[data-route="pokedex"] .dex-evolution-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #096fd4;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }
  body[data-route="pokedex"] .dex-evolution-link:hover { color: #034c9a; text-decoration: underline; text-underline-offset: 3px; }

  body[data-route="pokedex"] .dex-controls { display: grid; gap: 10px; padding: 0 18px 16px; }
  body[data-route="pokedex"] .dex-search {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    align-items: center;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #9ecbf0;
    border-radius: 11px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 8px rgba(30,105,170,.08);
  }
  body[data-route="pokedex"] .dex-search > svg {
    justify-self: center;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #076be3;
    stroke-width: 2.2;
    stroke-linecap: round;
  }
  body[data-route="pokedex"] .dex-search input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173b62;
    font: 500 16px/1 var(--ah-font-ui);
  }
  body[data-route="pokedex"] .dex-search input::placeholder { color: #607bb0; opacity: .82; }
  body[data-route="pokedex"] .dex-filter-chips { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
  body[data-route="pokedex"] .dex-filter-chips > label,
  body[data-route="pokedex"] .dex-filter-chips > .multi-field {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    align-items: center;
    gap: 7px;
    height: 44px;
    min-height: 44px;
    padding: 0 9px;
    border: 1px solid #a8cff0;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    color: #075bc1;
    box-shadow: 0 2px 6px rgba(32,104,167,.06);
  }
  body[data-route="pokedex"] .dex-filter-chips .filter-chip-icon { width: 26px; height: 26px; color: #075bc1; }
  body[data-route="pokedex"] .dex-filter-chips .filter-chip-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body[data-route="pokedex"] .dex-filter-chips .multi-caption { display: none; }
  body[data-route="pokedex"] .dex-filter-chips .multi-picker { grid-column: 2; align-self: stretch; display: flex; align-items: center; height: 100%; min-width: 0; }
  body[data-route="pokedex"] .dex-filter-chips .multi-picker > summary {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: center;
    padding: 0 16px 0 0;
    overflow: hidden;
    color: #0754b2;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-route="pokedex"] .dex-filter-chips .multi-picker > summary::after { top: 50%; color: #2678ce; transform: translateY(-50%); }

  body[data-route="pokedex"] .dex-overview {
    grid-template-columns: minmax(240px,1.2fr) minmax(200px,.85fr) 112px;
    min-height: 124px;
    gap: 22px;
    margin-bottom: 14px;
    padding: 16px 22px;
    border: 1px solid #c4e1f4;
    border-radius: 13px;
    background:
      linear-gradient(125deg,rgba(79,172,232,.08) 0 17%,transparent 17% 34%,rgba(79,172,232,.06) 34% 51%,transparent 51%),
      linear-gradient(100deg,#f2fbff,#e7f6ff);
    box-shadow: none;
  }
  body[data-route="pokedex"] .dex-overview-count > strong { color: #0b3d70; font-size: 50px; font-weight: 720; letter-spacing: -2.5px; }
  body[data-route="pokedex"] .dex-overview-count b { color: #1766a7; font-size: 17px; font-weight: 620; }
  body[data-route="pokedex"] .dex-overview-count small { color: #64809b; }
  body[data-route="pokedex"] .dex-overview-stats span { border: 1px solid rgba(151,202,235,.7); background: rgba(255,255,255,.65); color: #59738d; }
  body[data-route="pokedex"] .dex-overview-stats b { color: #174e7d; font-weight: 680; }
  body[data-route="pokedex"] .dex-overview-ring { width: 96px; height: 96px; background: conic-gradient(#1687dc var(--dex-progress),rgba(158,203,235,.45) 0); }
  body[data-route="pokedex"] .dex-overview-ring::before { inset: 10px; background: #effaff; }
  body[data-route="pokedex"] .dex-overview-ring span { color: #176aa8; font-size: 16px; font-weight: 680; }

  body[data-route="pokedex"] .dex-generations { gap: 10px; }
  body[data-route="pokedex"] .dex-generation { border-color: #c9e2f3; border-radius: 13px; box-shadow: 0 3px 10px rgba(22,84,133,.035); }
  body[data-route="pokedex"] .dex-generation > summary { grid-template-columns: 46px minmax(150px,1fr) minmax(220px,350px) 28px; min-height: 68px; padding: 10px 16px; background: linear-gradient(100deg,#f8fcff,#edf8ff); }
  body[data-route="pokedex"] .dex-generation > summary:hover { background: linear-gradient(100deg,#f1faff,#e6f5ff); }
  body[data-route="pokedex"] .dex-generation[open] > summary { border-bottom-color: #d5e8f4; background: linear-gradient(100deg,#eaf7ff,#f6fbff); }
  body[data-route="pokedex"] .dex-generation-badge { border: 1px solid #87bee6; border-radius: 12px; background: rgba(255,255,255,.72); box-shadow: none; color: #176aa8; font-weight: 680; }
  body[data-route="pokedex"] .dex-generation-title strong { color: #174e7d; font-size: 16px; font-weight: 620; }
  body[data-route="pokedex"] .dex-generation-title small { color: #6d879e; }
  body[data-route="pokedex"] .dex-generation-progress > i { background: #dcecf7; }
  body[data-route="pokedex"] .dex-generation-progress > i > em { background: linear-gradient(90deg,#55aee3,#1687dc); }
  body[data-route="pokedex"] .dex-generation-progress > small { color: #317db3; font-weight: 620; }
  body[data-route="pokedex"] .dex-generation-chevron { color: #6f94ae; }
  body[data-route="pokedex"] .dex-generation-content { background: #f6fbfe; }
  body[data-route="pokedex"] .dex-species-card { border-color: #d4e5f0; box-shadow: none; }

  @media (max-width: 1100px) {
    body[data-route="pokedex"] .dex-filter-chips { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
    body[data-route="pokedex"] .dex-filter-chips > label,
    body[data-route="pokedex"] .dex-filter-chips > .multi-field { flex: 0 0 168px; scroll-snap-align: start; }
  }
  @media (max-width: 800px) {
    body[data-route="pokedex"] main { padding-inline: 7px; }
    body[data-route="pokedex"] .dex-page-intro { border-radius: 13px; }
    body[data-route="pokedex"] .dex-page-hero { display: block; min-height: 137px; padding: 50px 92px 8px 12px; }
    body[data-route="pokedex"] .dex-page-hero::before { right: 72px; bottom: -88px; width: 170px; height: 170px; border-width: 12px; }
    body[data-route="pokedex"] .dex-page-mark { position: absolute; top: 7px; left: 12px; width: 70px; height: 46px; margin: 0; }
    body[data-route="pokedex"] .dex-page-copy { padding: 0; }
    body[data-route="pokedex"] .dex-page-copy h1 { margin-bottom: 3px; font-size: 28px; }
    body[data-route="pokedex"] .dex-page-copy > p { max-width: 250px; font-size: 12px; line-height: 1.35; }
    body[data-route="pokedex"] .dex-page-art { top: -23px; right: -69px; width: 210px; height: 176px; }
    body[data-route="pokedex"] .dex-evolution-link { margin-top: 8px; font-size: 10px; }
    body[data-route="pokedex"] .dex-controls { gap: 8px; padding: 0 8px 10px; }
    body[data-route="pokedex"] .dex-search { grid-template-columns: 46px minmax(0,1fr); min-height: 46px; }
    body[data-route="pokedex"] .dex-search > svg { width: 23px; height: 23px; }
    body[data-route="pokedex"] .dex-search input { height: 44px; font-size: 12px; }
    body[data-route="pokedex"] .dex-filter-chips { min-width: 0; margin: 0; padding-bottom: 5px; }
    body[data-route="pokedex"] .dex-filter-chips > label,
    body[data-route="pokedex"] .dex-filter-chips > .multi-field { flex-basis: 150px; height: 40px; min-height: 40px; }
    body[data-route="pokedex"] .dex-overview { grid-template-columns: minmax(0,1fr) 70px; gap: 10px; min-height: 98px; padding: 12px; }
    body[data-route="pokedex"] .dex-overview-count { gap: 10px; }
    body[data-route="pokedex"] .dex-overview-count > strong { font-size: 38px; }
    body[data-route="pokedex"] .dex-overview-count b { font-size: 14px; }
    body[data-route="pokedex"] .dex-overview-count small { font-size: 10px; }
    body[data-route="pokedex"] .dex-overview-stats { grid-column: 1 / -1; grid-row: 2; gap: 6px; }
    body[data-route="pokedex"] .dex-overview-stats span { padding: 6px; font-size: 9px; }
    body[data-route="pokedex"] .dex-overview-stats b { display: inline; margin-right: 3px; font-size: 12px; }
    body[data-route="pokedex"] .dex-overview-ring { grid-column: 2; grid-row: 1; width: 66px; height: 66px; }
    body[data-route="pokedex"] .dex-overview-ring::before { inset: 7px; }
    body[data-route="pokedex"] .dex-overview-ring span { font-size: 12px; }
    body[data-route="pokedex"] .dex-generation > summary { grid-template-columns: 38px minmax(0,1fr) 20px; gap: 9px; min-height: 62px; padding: 9px; }
    body[data-route="pokedex"] .dex-generation-badge { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
    body[data-route="pokedex"] .dex-generation-title strong { font-size: 14px; }
    body[data-route="pokedex"] .dex-generation-title small { font-size: 10px; }
    body[data-route="pokedex"] .dex-generation-progress { grid-column: 2; grid-row: 2; grid-template-columns: auto minmax(60px,1fr) 40px; gap: 6px; margin-top: -5px; }
    body[data-route="pokedex"] .dex-generation-progress > b,
    body[data-route="pokedex"] .dex-generation-progress > small { font-size: 9px; }
    body[data-route="pokedex"] .dex-generation-chevron { grid-column: 3; grid-row: 1 / span 2; }
    body[data-route="pokedex"] .dex-generation-content { padding: 8px; }
  }
}

@layer arquivo {
  /* Repetidas reutiliza a identidade de Minha Coleção e acrescenta apenas os
     controles necessários para quantidade e forma de exibição. */
  body.acervo-repeat-page[data-route="acervo"] .acervo-filter-chips {
    grid-template-columns: repeat(6,minmax(0,1fr)) minmax(125px,1.1fr) minmax(165px,1.45fr);
    gap: 7px;
  }
  body.acervo-repeat-page[data-route="acervo"] .acervo-filter-chips:has(> [hidden]) {
    grid-template-columns: repeat(5,minmax(0,1fr)) minmax(125px,1.1fr) minmax(165px,1.45fr);
  }
  body.acervo-repeat-page[data-route="acervo"] .acervo-filter-chips > label {
    grid-template-columns: 23px minmax(0,1fr);
    gap: 5px;
    padding-inline: 7px;
  }
  body.acervo-repeat-page[data-route="acervo"] .acervo-filter-chips > label > svg {
    width: 21px;
    height: 21px;
  }
  body.acervo-repeat-page[data-route="acervo"] .acervo-filter-chips > label .multi-summary,
  body.acervo-repeat-page[data-route="acervo"] .acervo-filter-chips > label select {
    font-size: 9.5px;
  }
  body[data-route="acervo"] .acervo-filter-chips > .repeat-control {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 23px minmax(0,1fr);
    align-items: center;
    gap: 5px;
    height: 44px;
    min-height: 44px;
    min-width: 0;
    padding: 0 7px;
    border: 1px solid #a8cff0;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    color: #075bc1;
    box-shadow: 0 2px 6px rgba(32,104,167,.06);
  }
  body[data-route="acervo"] .repeat-control > svg { width: 21px; height: 21px; }
  body[data-route="acervo"] .repeat-control-title { min-width: 0; overflow: hidden; color: #075bc1; font-size: 9.5px; font-weight: 650; line-height: 1.1; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="acervo"] .repeat-minimum-filter { grid-template-columns: 22px 20px minmax(0,1fr) 20px !important; gap: 3px !important; }
  body[data-route="acervo"] .repeat-control-action { display: grid; width: 20px; height: 20px; padding: 0; place-items: center; border: 1px solid #bed8ed; border-radius: 50%; background: #f7fbfe; color: #1769ad; font: 600 13px/1 var(--ah-font-ui); cursor: pointer; }
  body[data-route="acervo"] .repeat-display-filter { grid-template-columns: 22px minmax(0,1fr) 46px !important; gap: 4px !important; }
  body[data-route="acervo"] .repeat-display-toggle { display: flex; height: 24px; align-items: center; overflow: hidden; border: 1px solid #bed8ed; border-radius: 7px; background: #f7fbfe; }
  body[data-route="acervo"] .repeat-display-toggle button { display: grid; width: 23px; height: 100%; padding: 0; place-items: center; border: 0; background: transparent; color: #6894b5; cursor: pointer; }
  body[data-route="acervo"] .repeat-display-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  body[data-route="acervo"] .repeat-display-toggle button[aria-pressed="true"] { background: #dcedfa; color: #0756a6; }
  body[data-route="acervo"] .repeat-control-action:focus-visible,
  body[data-route="acervo"] .repeat-display-toggle button:focus-visible { position: relative; z-index: 1; outline: 2px solid #0870d7; outline-offset: -2px; }
  body[data-route="acervo"] .repeat-minimum-filter input[data-filter="minimum"] { display: none; }
  body[data-route="acervo"] .repeat-card-count { display: flex; min-height: 23px; margin: 5px -2px -1px; align-items: center; justify-content: center; gap: 3px; border: 1px solid #b9daf1; border-radius: 7px; background: #e8f5fd; color: #075aa8; font-size: 9px; font-weight: 620; }
  body[data-route="acervo"] .repeat-card-count > span { font-size: 12px; }
  body[data-route="acervo"] .repeat-catalog-heading { margin-bottom: 7px; }

  @media (max-width: 1100px) {
    body[data-route="acervo"] .acervo-filter-chips > .repeat-control { flex: 0 0 168px; }
  }
  @media (max-width: 800px) {
    body[data-route="acervo"] .acervo-filter-chips > .repeat-control {
      width: 160px;
      min-width: 160px;
      flex: 0 0 160px;
      height: 40px;
      min-height: 40px;
    }
    body[data-route="acervo"] .repeat-control-title { font-size: 9px; }
    body[data-route="acervo"] .repeat-display-toggle { height: 22px; }
    body[data-route="acervo"] .repeat-card-count { min-height: 20px; font-size: 8px; }
  }
}

/* A grade de destaque usa cinco cartas no desktop, como o catálogo principal. */
body[data-route="acervo"] .card-grid.acervo-owned-strip {
  grid-template-columns: repeat(5,minmax(0,1fr));
}
@layer legacy {
  body[data-route="acervo"] #results .acervo-card:not(.owned) .card-image > img,
  body[data-route="acervo"] #results .acervo-card:not(.owned) .card-surface > img {
    filter: grayscale(1) saturate(0) contrast(.94) opacity(.76) drop-shadow(0 4px 5px rgba(18,45,70,.12)) !important;
  }
}
@media (max-width: 800px) {
  body[data-route="acervo"] .card-grid.acervo-owned-strip {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  body[data-route="acervo"] .card-grid.acervo-owned-strip > .card:nth-child(n+7) {
    display: none;
  }
}

/* Página Cartas — Cartas 1 aprovada para a homologação local. */
@layer arquivo {
  body[data-route="acervo"],
  body[data-route="acervo"] .workspace,
  body[data-route="acervo"] main { background: #f2f6fa; }
  body[data-route="acervo"] main { padding-top: 22px; padding-bottom: 48px; }

  body[data-route="acervo"] .acervo-page-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; min-height: 126px; margin-bottom: 13px; padding: 14px 230px 14px 20px; overflow: hidden; border: 1px solid #c9dceb; border-radius: 15px; background: linear-gradient(115deg,#f9fdff 0 46%,#d9edfc 74%,#b8daf4 100%); box-shadow: 0 7px 22px rgba(27,64,96,.055); }
  body[data-route="acervo"] .acervo-page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(132deg,transparent 0 72px,rgba(50,141,211,.055) 73px 96px); }
  body[data-route="acervo"] .acervo-page-icon { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 7px 9px rgba(18,62,100,.16)); }
  body[data-route="acervo"] .acervo-page-art { position: absolute; z-index: -1; top: -25px; right: -28px; width: 260px; height: 174px; object-fit: contain; object-position: right center; }
  body[data-route="acervo"] .acervo-page-hero .eyebrow { margin-bottom: 3px; color: #49708f; letter-spacing: .12em; }
  body[data-route="acervo"] .acervo-page-hero h1 { margin: 0 0 3px; color: #173b5c; font-size: clamp(1.85rem,3vw,2.55rem); font-weight: 650; }
  body[data-route="acervo"] .acervo-page-hero p:last-child { max-width: 540px; margin: 0; color: #446b89; font-size: 12px; }

  body[data-route="acervo"] .acervo-query {
    display: grid;
    gap: 11px;
    margin-bottom: 24px;
  }
  body[data-route="acervo"] .acervo-search {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    align-items: center;
    min-height: 58px;
    overflow: hidden;
    border: 1px solid #c9d9e7;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(27,64,96,.055);
  }
  body[data-route="acervo"] .acervo-search:focus-within { border-color: #6da9dc; box-shadow: 0 0 0 3px rgba(20,115,210,.12); }
  body[data-route="acervo"] .acervo-search > svg { width: 22px; height: 22px; justify-self: center; fill: none; stroke: #3978a8; stroke-width: 1.9; stroke-linecap: round; }
  body[data-route="acervo"] .acervo-search input { width: 100%; height: 56px; min-width: 0; padding: 0 16px 0 0; border: 0; outline: 0; background: transparent; color: #173b5c; font-size: 15px; font-weight: 450; }
  body[data-route="acervo"] .acervo-search input::placeholder { color: #8699aa; opacity: 1; }

  body[data-route="acervo"] .acervo-filter-chips {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 8px;
    overflow: visible;
  }
  body[data-route="acervo"] .acervo-filter-chips > label,
  body[data-route="acervo"] .acervo-filter-chips > .multi-field {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0,1fr);
    grid-template-rows: auto auto;
    gap: 1px 7px;
    min-width: 0;
    min-height: 57px;
    padding: 7px 8px;
    border: 1px solid #cedbe6;
    border-radius: 11px;
    background: rgba(255,255,255,.9);
    color: #58748c;
    font-size: 8px;
    font-weight: 560;
    letter-spacing: .045em;
  }
  body[data-route="acervo"] .acervo-filter-chips > .multi-field[hidden] { display: none !important; }
  body[data-route="acervo"] .acervo-filter-chips > :hover { border-color: #9db9cf; background: #fff; }
  body[data-route="acervo"] .filter-chip-icon {
    grid-row: 1 / 3;
    display: grid;
    width: 28px;
    height: 28px;
    align-self: center;
    place-items: center;
    border-radius: 8px;
    background: #e7f1f8;
    color: #487a9f;
  }
  body[data-route="acervo"] .filter-chip-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
  body[data-route="acervo"] .acervo-filter-chips .multi-caption { grid-column: 2; align-self: end; color: #7790a4; font-size: 7.5px; font-weight: 560; letter-spacing: .05em; }
  body[data-route="acervo"] .acervo-filter-chips .multi-picker { grid-column: 2; min-width: 0; }
  body[data-route="acervo"] .acervo-filter-chips .multi-picker > summary { min-height: 19px; padding: 0 16px 0 0; overflow: hidden; border: 0; background: transparent; color: #284f6f; font-size: 10px; font-weight: 520; line-height: 19px; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="acervo"] .acervo-filter-chips .multi-picker > summary::after { right: 2px; color: #7893a8; }

  body[data-route="acervo"] .category-sort-filter .multi-picker > summary {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  body[data-route="acervo"] .multi-filter-option-icon {
    grid-row: auto;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #edf5fa;
    color: #487a9f;
  }
  body[data-route="acervo"] .multi-filter-option-icon svg { width: 14px; height: 14px; }
  body[data-route="acervo"] .multi-filter-option-icon.compact { width: 17px; height: 17px; border-radius: 5px; }
  body[data-route="acervo"] .multi-filter-option-icon.compact svg { width: 11px; height: 11px; }
  body[data-route="acervo"] .multi-panel .multi-option:has(input[type="radio"]:checked) { color: #185f99; font-weight: 650; }

  body[data-route="acervo"] .acervo-owned-preview { margin: 2px 0 25px; }
  body[data-route="acervo"] .acervo-owned-preview[hidden] { display: none; }
  body[data-route="acervo"] .acervo-section-heading,
  body[data-route="acervo"] .acervo-catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 8px 11px; border-radius: 10px; background: #e6f0f7; }
  body[data-route="acervo"] .acervo-section-heading .eyebrow,
  body[data-route="acervo"] .acervo-catalog-heading .eyebrow { margin: 0 0 2px; color: #66859d; font-size: 8px; letter-spacing: .1em; }
  body[data-route="acervo"] .acervo-section-heading h2,
  body[data-route="acervo"] .acervo-catalog-heading h2 { margin: 0; color: #254e6e; font-size: 15px; font-weight: 570; letter-spacing: -.01em; }
  body[data-route="acervo"] .acervo-section-heading a { color: #5c819e; font-size: 10px; font-weight: 520; text-decoration: none; }
  body[data-route="acervo"] .acervo-section-links { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
  body[data-route="acervo"] .acervo-section-links a:first-child { color: #68869d; }
  body[data-route="acervo"] .acervo-catalog-heading { margin-top: 6px; margin-bottom: 4px; background: #e9f1f6; }
  body[data-route="acervo"] .acervo-catalog-heading > p { margin: 0; color: #6d8497; font-size: 10px; }

  body[data-route="acervo"] .acervo-owned-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  body[data-route="acervo"] .acervo-owned-card { display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; min-height: 74px; padding: 8px; border: 1px solid #d0dde7; border-radius: 11px; background: #fff; color: #254e6e; text-align: left; box-shadow: 0 3px 12px rgba(27,64,96,.035); }
  body[data-route="acervo"] .acervo-owned-card:hover { border-color: #9fb9ce; }
  body[data-route="acervo"] .acervo-owned-card img { width: 48px; height: 60px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(18,45,70,.16)); }
  body[data-route="acervo"] .acervo-owned-card > span { display: grid; min-width: 0; gap: 3px; }
  body[data-route="acervo"] .acervo-owned-card strong,
  body[data-route="acervo"] .acervo-owned-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="acervo"] .acervo-owned-card strong { font-size: 11px; font-weight: 570; }
  body[data-route="acervo"] .acervo-owned-card small { color: #7b8fa0; font-size: 8.5px; font-weight: 440; }

  body[data-route="acervo"] .acervo-first-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid #c7dbe9; border-radius: 13px; background: linear-gradient(120deg,#e5f3fb,#f8fbfd); }
  body[data-route="acervo"] .acervo-first-card-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #afd1e7; border-radius: 50%; background: rgba(255,255,255,.8); color: #3a7dab; font-size: 25px; font-weight: 320; }
  body[data-route="acervo"] .acervo-first-card .eyebrow { margin: 0 0 3px; color: #6b8aa1; font-size: 8px; }
  body[data-route="acervo"] .acervo-first-card h2 { margin: 0 0 3px; color: #244d6d; font-size: 16px; font-weight: 580; }
  body[data-route="acervo"] .acervo-first-card p:last-child { margin: 0; color: #657f94; font-size: 10px; }
  body[data-route="acervo"] .acervo-first-actions { display: flex; gap: 7px; }

  body[data-route="acervo"] .results-head { margin: 8px 0 13px; }
  body[data-route="acervo"] .card-grid { align-items: start; }
  body[data-route="acervo"] .acervo-ownership-divider,
  body[data-route="acervo"] .acervo-set-divider { grid-column: 1 / -1; }
  body[data-route="acervo"] .acervo-ownership-divider { display: flex; align-items: baseline; gap: 9px; margin-top: 7px; padding-top: 11px; border-top: 1px solid #cfdae4; color: #315a78; }
  body[data-route="acervo"] .acervo-ownership-divider:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  body[data-route="acervo"] .acervo-ownership-divider strong { font-size: 14px; font-weight: 580; }
  body[data-route="acervo"] .acervo-ownership-divider span { color: #7990a2; font-size: 9px; }
  body[data-route="acervo"] .acervo-set-divider { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: -10px; padding: 7px 9px; border-radius: 8px; background: #eaf1f6; color: #3d6480; }
  body[data-route="acervo"] .acervo-set-divider strong { font-size: 10px; font-weight: 560; }
  body[data-route="acervo"] .acervo-set-divider span { color: #8396a5; font-size: 8px; }
  body[data-route="acervo"] .card:not(.owned) .card-image img { filter: grayscale(1) saturate(0) contrast(.9) opacity(.72) drop-shadow(0 4px 5px rgba(18,45,70,.13)); }
  body[data-route="acervo"] .card:not(.owned) { border-color: #d6dee6; background: rgba(255,255,255,.88); }
  body[data-route="acervo"] .card:not(.owned) .owned-badge { background: rgba(83,100,115,.76); }

  @media (max-width: 1100px) {
    body[data-route="acervo"] .acervo-filter-chips { grid-template-columns: repeat(3,minmax(0,1fr)); }
  }
  @media (max-width: 800px) {
    body[data-route="acervo"] main { padding-top: 13px; padding-inline: 10px; }
    body[data-route="acervo"] .acervo-page-hero { grid-template-columns: 66px minmax(0,1fr); min-height: 100px; margin-bottom: 10px; padding: 10px 112px 10px 10px; border-radius: 13px; }
    body[data-route="acervo"] .acervo-page-icon { width: 60px; height: 60px; }
    body[data-route="acervo"] .acervo-page-art { top: -20px; right: -47px; width: 164px; height: 138px; }
    body[data-route="acervo"] .acervo-page-hero h1 { font-size: 24px; }
    body[data-route="acervo"] .acervo-page-hero p:last-child { font-size: 9.5px; line-height: 1.35; }
    body[data-route="acervo"] .acervo-search { grid-template-columns: 42px minmax(0,1fr); min-height: 52px; border-radius: 12px; }
    body[data-route="acervo"] .acervo-search input { height: 50px; font-size: 13px; }
    body[data-route="acervo"] .acervo-filter-chips { display: flex; gap: 7px; margin-inline: -10px; padding: 1px 10px 7px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
    body[data-route="acervo"] .acervo-filter-chips::-webkit-scrollbar { display: none; }
    body[data-route="acervo"] .acervo-filter-chips > label,
    body[data-route="acervo"] .acervo-filter-chips > .multi-field { flex: 0 0 150px; scroll-snap-align: start; }
    body[data-route="acervo"] .acervo-filter-chips > .multi-field:first-child { flex-basis: 178px; }
    body[data-route="acervo"] .acervo-section-heading,
    body[data-route="acervo"] .acervo-catalog-heading { align-items: center; padding: 7px 8px; }
    body[data-route="acervo"] .acervo-catalog-heading > p { max-width: 48%; text-align: right; line-height: 1.25; }
    body[data-route="acervo"] .acervo-owned-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
    body[data-route="acervo"] .acervo-owned-card { grid-template-columns: 43px minmax(0,1fr); min-height: 64px; gap: 7px; padding: 6px; }
    body[data-route="acervo"] .acervo-owned-card img { width: 39px; height: 51px; }
    body[data-route="acervo"] .acervo-first-card { grid-template-columns: 42px minmax(0,1fr); gap: 10px; padding: 12px; }
    body[data-route="acervo"] .acervo-first-card-icon { width: 40px; height: 40px; }
    body[data-route="acervo"] .acervo-first-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    body[data-route="acervo"] .acervo-first-actions .button { justify-content: center; padding-inline: 8px; text-align: center; }
    body[data-route="acervo"] .acervo-ownership-divider { display: grid; gap: 1px; }
  }
  @media (max-width: 420px) {
    body[data-route="acervo"] .acervo-section-heading:has(.acervo-section-links) { flex-wrap: wrap; }
    body[data-route="acervo"] .acervo-section-links { width: 100%; justify-content: space-between; }
    body[data-route="acervo"] .acervo-owned-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
    body[data-route="acervo"] .acervo-owned-strip > .card:nth-child(n+7) { display: none; }
    body[data-route="acervo"] .acervo-catalog-heading > p { font-size: 8px; }
  }
}

/* Cartas 1 — fidelidade visual ao protótipo aprovado. */
@layer arquivo {
  body[data-route="acervo"] main { padding-top: 10px; }
  body[data-route="acervo"] .acervo-intro {
    position: relative;
    isolation: isolate;
    margin-bottom: 12px;
    overflow: visible;
    border: 1px solid #bedcf5;
    border-radius: 14px;
    background: linear-gradient(112deg,#f9fdff 0 43%,#dff2ff 70%,#b9ddfa 100%);
    box-shadow: 0 8px 24px rgba(34,104,167,.08);
  }
  body[data-route="acervo"] .acervo-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    background: repeating-linear-gradient(132deg,transparent 0 108px,rgba(32,140,226,.075) 109px 135px);
  }
  body[data-route="acervo"] .acervo-page-hero {
    display: block;
    min-height: 146px;
    margin: 0;
    padding: 18px 300px 12px 172px;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: transparent;
    box-shadow: none;
  }
  body[data-route="acervo"] .acervo-page-hero::before { display: none; }
  body[data-route="acervo"] .acervo-page-icon {
    position: absolute;
    left: 32px;
    width: 124px;
    height: 112px;
  }
  body[data-route="acervo"] .acervo-page-art { top: -38px; right: -22px; width: 340px; height: 224px; }
  body[data-route="acervo"] .acervo-page-hero h1 { margin: 0 0 2px; color: #0b3566; font-size: clamp(42px,5vw,62px); font-weight: 720; line-height: .98; letter-spacing: -.045em; }
  body[data-route="acervo"] .acervo-page-hero p:last-child { max-width: 570px; color: #1667bd; font-size: 17px; line-height: 1.35; }

  body[data-route="acervo"] .acervo-query { gap: 10px; margin: 0; padding: 0 18px 16px; }
  body[data-route="acervo"] .acervo-search {
    grid-template-columns: 58px minmax(0,1fr);
    min-height: 54px;
    border-color: #9ecbf0;
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(30,105,170,.08);
  }
  body[data-route="acervo"] .acervo-search > svg { width: 27px; height: 27px; stroke: #076be3; stroke-width: 2.2; }
  body[data-route="acervo"] .acervo-search input { height: 52px; font-size: 16px; }
  body[data-route="acervo"] .acervo-search input::placeholder { color: #607bb0; }
  body[data-route="acervo"] .acervo-filter-chips { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; }
  body[data-route="acervo"] .acervo-filter-chips > label,
  body[data-route="acervo"] .acervo-filter-chips > .multi-field {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 7px;
    height: 44px;
    min-height: 44px;
    padding: 0 9px;
    border-color: #a8cff0;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    color: #075bc1;
    box-shadow: 0 2px 6px rgba(32,104,167,.06);
  }
  body[data-route="acervo"] .filter-chip-icon { grid-row: 1; width: 26px; height: 26px; border-radius: 0; background: transparent; color: #075bc1; }
  body[data-route="acervo"] .filter-chip-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
  body[data-route="acervo"] .acervo-filter-chips .multi-caption { display: none; }
  body[data-route="acervo"] .acervo-filter-chips .multi-picker { grid-column: 2; align-self: stretch; display: flex; align-items: center; height: 100%; }
  body[data-route="acervo"] .acervo-filter-chips .multi-picker > summary { display: flex; width: 100%; height: 100%; min-height: 0; align-items: center; padding: 0 16px 0 0; color: #0754b2; font-size: 12px; font-weight: 550; line-height: 1.2; }
  body[data-route="acervo"] .acervo-filter-chips .multi-picker > summary::after { top: 50%; color: #2678ce; transform: translateY(-50%); }

  body[data-route="acervo"] .acervo-owned-preview { margin: 0 0 13px; padding: 10px 12px 12px; border: 1px solid #c2e2f8; border-radius: 12px; background: linear-gradient(100deg,#e4f5ff,#d6efff); }
  body[data-route="acervo"] .acervo-section-heading,
  body[data-route="acervo"] .acervo-catalog-heading { min-height: 34px; margin: 0; padding: 0 2px 7px; border-radius: 0; background: transparent; }
  body[data-route="acervo"] .acervo-section-heading h2,
  body[data-route="acervo"] .acervo-catalog-heading h2 { color: #0756a6; font-size: 22px; font-weight: 610; }
  body[data-route="acervo"] .acervo-section-heading a,
  body[data-route="acervo"] .acervo-catalog-heading a { color: #006fec; font-size: 12px; font-weight: 520; text-decoration: none; }
  body[data-route="acervo"] .acervo-section-links { gap: 12px; }
  body[data-route="acervo"] .card-grid.acervo-owned-strip { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }

  body[data-route="acervo"] .acervo-catalog-heading {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 5px 12px;
    border: 1px solid #c6e3f7;
    border-radius: 11px;
    background: linear-gradient(90deg,#dff3ff,#eaf8ff);
  }
  body[data-route="acervo"] .acervo-catalog-heading > div { display: flex; align-items: baseline; gap: 26px; min-width: 0; }
  body[data-route="acervo"] .acervo-catalog-heading p { margin: 0; color: #3e70a8; font-size: 11px; }
  body[data-route="acervo"] .acervo-catalog-tip { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 10px; min-height: 40px; margin: 5px 0 6px; padding: 5px 10px; border: 1px solid #9fcff1; border-radius: 9px; background: #eaf7ff; color: #0670dc; }
  body[data-route="acervo"] .acervo-catalog-tip > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #0877e8; color: #fff; font: 700 17px/1 Georgia,serif; }
  body[data-route="acervo"] .acervo-catalog-tip p { margin: 0; font-size: 11px; }
  body[data-route="acervo"] .results-head { display: none; }
  body[data-route="acervo"] #results { overflow: hidden; border: 1px solid #c8e5f7; border-radius: 10px; background: #eaf7ff; }
  body[data-route="acervo"] #results > .card-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; padding: 0 8px 10px; }
  body[data-route="acervo"] #results.acervo-started-set-groups { display: grid; gap: 13px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
  body[data-route="acervo"] .acervo-set-group { overflow: hidden; border: 1px solid #c8e5f7; border-radius: 10px; background: #eaf7ff; }
  body[data-route="acervo"] .acervo-set-cards { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; padding: 9px 8px 10px; }
  body[data-route="acervo"] .acervo-set-divider { min-height: 30px; margin: 0 -8px; padding: 5px 11px; border-radius: 0; background: #def1fd; color: #145a9d; }
  body[data-route="acervo"] .acervo-set-divider strong { font-size: 12px; font-weight: 570; }
  body[data-route="acervo"] .acervo-set-divider span { color: #1765ad; font-size: 10px; }
  body[data-route="acervo"] .acervo-set-group .acervo-set-divider { margin: 0; padding: 7px 11px; align-items: center; }
  body[data-route="acervo"] .acervo-set-copy { display: grid; gap: 2px; min-width: 0; }
  body[data-route="acervo"] .acervo-set-copy strong,
  body[data-route="acervo"] .acervo-set-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="acervo"] .acervo-set-group .acervo-set-divider > a { flex: 0 0 auto; color: #0870d7; font-size: 11px; font-weight: 560; text-decoration: none; }
  body[data-route="acervo"] .acervo-set-group .acervo-set-divider > a:focus-visible { outline: 2px solid #0870d7; outline-offset: 3px; border-radius: 3px; }

  body[data-route="acervo"] .acervo-card { overflow: visible; padding: 7px; border: 1px solid #c9e4f5; border-radius: 9px; background: rgba(255,255,255,.9); box-shadow: 0 2px 7px rgba(19,91,151,.045); }
  body[data-route="acervo"] .acervo-card .card-frame { padding: 0; border: 0; border-radius: 7px; background: transparent; box-shadow: none; }
  body[data-route="acervo"] .acervo-card .card-image { position: relative; padding: 0; border-radius: 6px; background: #e5edf3; }
  body[data-route="acervo"] .acervo-card .image-fallback {
    inset: 0;
    padding: 12px;
    border: 1px dashed #b9d4e7;
    background: linear-gradient(145deg,#eef7fc,#dfeef8);
    color: #66839a;
    font-size: 10px;
    line-height: 1.4;
  }
  body[data-route="acervo"] .acervo-card .card-image img { position: relative; z-index: 2; object-fit: contain; border-radius: inherit; }
  body[data-route="acervo"] .acervo-card:not(.owned) .card-image img { filter: grayscale(1) saturate(0) contrast(.93); opacity: .72; }
  body[data-route="acervo"] .acervo-add-card { position: absolute; right: 0; bottom: 0; left: 0; z-index: 5; min-height: 32px; border: 1px solid #69b0ef; border-radius: 999px; background: rgba(255,255,255,.97); color: #0872db; font: 550 11px/1 var(--ah-font-ui); box-shadow: 0 1px 4px rgba(12,91,165,.1); cursor: pointer; }
  body[data-route="acervo"] .acervo-card .card-content { display: grid; gap: 3px; min-width: 0; padding: 7px 2px 0; }
  body[data-route="acervo"] .acervo-card-primary,
  body[data-route="acervo"] .acervo-card-secondary { display: grid; align-items: baseline; min-width: 0; gap: 6px; }
  body[data-route="acervo"] .acervo-card-primary { grid-template-columns: minmax(0,1fr) auto; }
  body[data-route="acervo"] .acervo-card-secondary { grid-template-columns: minmax(0,1fr) minmax(48px,42%); align-items: start; min-height: 2.5em; }
  body[data-route="acervo"] .acervo-card .card-content h3 { min-width: 0; margin: 0; overflow: hidden; color: #0a4f95; font-size: 12px; font-weight: 570; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="acervo"] .acervo-card .card-set-line,
  body[data-route="acervo"] .acervo-card-number,
  body[data-route="acervo"] .acervo-card-variant,
  body[data-route="acervo"] .acervo-card-rarity { margin: 0; overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="acervo"] .acervo-card-number { justify-self: end; color: #3371ab; font-variant-numeric: tabular-nums; text-align: right; }
  body[data-route="acervo"] .acervo-card-variant { min-width: 0; overflow: visible; color: #3371ab; line-height: 1.2; text-overflow: clip; white-space: normal; }
  body[data-route="acervo"] .acervo-card .card-set-line { display: block; color: #6f87a0; font-size: 9px; }
  body[data-route="acervo"] .acervo-card-rarity { display: flex; min-width: 0; gap: 4px; align-items: center; justify-content: flex-end; color: #5f6fa1; text-align: right; }
  body[data-route="acervo"] .acervo-card-rarity .rarity-symbol { flex: 0 0 auto; min-width: 13px; justify-content: center; color: #171b18; font-size: 13px; line-height: 1; letter-spacing: -1px; }
  body[data-route="acervo"] .acervo-card-rarity .rarity-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body[data-route="acervo"] .acervo-card-rarity .tone-preto { color: #171b18; }
  body[data-route="acervo"] .acervo-card-rarity .tone-prata { color: #929ba3; }
  body[data-route="acervo"] .acervo-card-rarity .tone-dourado { color: #e3a414; }
  body[data-route="acervo"] .acervo-card-rarity .tone-magenta { color: #d91b71; }
  body[data-route="acervo"] .acervo-card-rarity .tone-verde { color: #91a900; }
  body[data-route="acervo"] .acervo-card-rarity .tone-neutro { color: #747d78; }
  body[data-route="acervo"] .acervo-card-rarity .tone-arco_iris { background: linear-gradient(115deg,#ed3d68,#ee9e20,#3cae7a,#2e77c2,#904bbd); -webkit-background-clip: text; background-clip: text; color: transparent; }
  body[data-route="acervo"] .acervo-card-preview { cursor: pointer; }
  body[data-route="acervo"] .acervo-card-preview:focus-visible { outline: 3px solid rgba(8,112,215,.42); outline-offset: 3px; }
  body[data-route="acervo"] .acervo-first-card { border: 0; border-radius: 8px; background: rgba(255,255,255,.72); }

  @media (max-width: 1100px) {
    body[data-route="acervo"] .acervo-filter-chips { display: flex; overflow-x: auto; }
    body[data-route="acervo"] .acervo-filter-chips > label,
    body[data-route="acervo"] .acervo-filter-chips > .multi-field { flex: 0 0 168px; }
  }
  @media (max-width: 800px) {
    body[data-route="acervo"] main { padding-inline: 7px; }
    body[data-route="acervo"] .acervo-page-hero { display: block; min-height: 132px; padding: 52px 90px 8px 12px; }
    body[data-route="acervo"] .acervo-page-icon { top: 6px; left: 13px; width: 70px; height: 48px; object-fit: contain; }
    body[data-route="acervo"] .acervo-page-art { top: -24px; right: -66px; width: 205px; height: 174px; }
    body[data-route="acervo"] .acervo-page-hero h1 { font-size: 27px; }
    body[data-route="acervo"] .acervo-page-hero p:last-child { max-width: 245px; font-size: 12px; }
    body[data-route="acervo"] .acervo-query { padding: 0 8px 10px; }
    body[data-route="acervo"] .acervo-search { grid-template-columns: 46px minmax(0,1fr); min-height: 46px; }
    body[data-route="acervo"] .acervo-search input { height: 44px; font-size: 12px; }
    body[data-route="acervo"] .acervo-filter-chips { min-width: 0; margin-inline: 0; padding: 0 0 5px; }
    body[data-route="acervo"] .acervo-filter-chips > label,
    body[data-route="acervo"] .acervo-filter-chips > .multi-field,
    body[data-route="acervo"] .acervo-filter-chips > .multi-field:first-child { flex-basis: 150px; height: 40px; min-height: 40px; }
    body[data-route="acervo"] .acervo-section-heading h2,
    body[data-route="acervo"] .acervo-catalog-heading h2 { font-size: 18px; }
    body[data-route="acervo"] .card-grid.acervo-owned-strip,
    body[data-route="acervo"] #results > .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
    body[data-route="acervo"] .acervo-set-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
    body[data-route="acervo"] .acervo-set-cards > .card:nth-child(n+7) { display: none; }
    body[data-route="acervo"] .acervo-set-group .acervo-set-divider { gap: 8px; padding: 7px 8px; }
    body[data-route="acervo"] .acervo-set-group .acervo-set-divider > a { font-size: 9px; }
    body[data-route="acervo"] .card-grid.acervo-owned-strip > .card:nth-child(n+7) { display: none; }
    body[data-route="acervo"] .acervo-card { padding: 5px; border-radius: 8px; }
    body[data-route="acervo"] .acervo-card .card-content { gap: 2px; padding-top: 5px; }
    body[data-route="acervo"] .acervo-card-primary,
    body[data-route="acervo"] .acervo-card-secondary { gap: 3px; }
    body[data-route="acervo"] .acervo-card .card-content h3 { font-size: 10px; }
    body[data-route="acervo"] .acervo-card .card-set-line,
    body[data-route="acervo"] .acervo-card-number,
    body[data-route="acervo"] .acervo-card-variant,
    body[data-route="acervo"] .acervo-card-rarity { font-size: 8px; }
    body[data-route="acervo"] .acervo-card .card-set-line { font-size: 7.5px; }
    body[data-route="acervo"] .acervo-card-rarity .rarity-symbol { font-size: 11px; }
    body[data-route="acervo"] .acervo-add-card { min-height: 26px; border-color: rgba(105,176,239,.82); background: rgba(255,255,255,.86); font-size: 8.5px; backdrop-filter: blur(4px); }
    body[data-route="acervo"] .acervo-catalog-heading > div { display: block; }
    body[data-route="acervo"] .acervo-catalog-heading p { margin-top: 2px; font-size: 9px; }
    body[data-route="acervo"] .acervo-catalog-heading a { font-size: 9px; }
    body[data-route="acervo"] .acervo-catalog-tip p { font-size: 9px; line-height: 1.3; }
  }
}

/* Página interna da coleção: identidade ampla, objetivo explícito e catálogo leve. */
body[data-route="sets"] .set-heading {
  min-height: 174px;
  padding: 20px 22px;
  overflow: hidden;
  background: linear-gradient(110deg,#fff 0%,#fff 68%,#f4f8fd 100%);
}
body[data-route="sets"] .set-heading-brand {
  display: grid;
  grid-template-columns: minmax(260px,34%) minmax(0,1fr);
  width: 100%;
  gap: 24px;
}
body[data-route="sets"] .set-heading-brand > .set-logo-wrap {
  width: 100%;
  max-width: none;
  padding: 0;
  justify-content: flex-start;
  background: transparent;
}
body[data-route="sets"] .set-heading .set-art {
  width: 100%;
  height: 132px;
  padding: 4px 8px;
  justify-content: flex-start;
}
body[data-route="sets"] .set-heading .set-logo { object-position: left center; }
body[data-route="sets"] .set-heading .eyebrow { margin-bottom: 7px; font-weight: 650; }
body[data-route="sets"] .set-heading h1 { font-size: clamp(25px,3vw,38px); font-weight: 650; line-height: 1.08; }
body[data-route="sets"] .set-back-button {
  align-self: center;
  min-height: 44px;
  border-color: var(--ah-blue);
  background: var(--ah-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(23,105,224,.18);
}
body[data-route="sets"] .set-back-button:hover { background: var(--ah-blue-deep); }

body[data-route="sets"] .set-objective-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 9px 11px 9px 15px;
  border: 1px solid var(--ah-line);
  border-radius: 11px;
  background: var(--ah-paper);
}
body[data-route="sets"] .set-objective-label { color: var(--ah-muted); font-size: 11px; font-weight: 550; }
body[data-route="sets"] .set-mode-toggle { display: inline-flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--ah-paper-soft); }
body[data-route="sets"] .set-mode-toggle button {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 12px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ah-muted);
  font-weight: 500;
}
body[data-route="sets"] .set-mode-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ah-blue);
  box-shadow: 0 2px 7px rgba(16,35,63,.1);
}
body[data-route="sets"] .set-mode-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

body[data-route="sets"] .filterbar { align-items: end; }
body.card-catalog-page .card-query-filters {
  position: relative;
  flex-wrap: wrap;
  overflow: visible;
}
body.card-catalog-page .card-query-filters > label,
body.card-catalog-page .card-query-filters > .multi-field { flex: 1 1 154px; }
body.card-catalog-page .card-query-filters > .card-search-filter { flex: 2 1 310px; }
body[data-route="sets"] .filterbar label,
body[data-route="sets"] .filterbar .multi-caption { font-weight: 550; letter-spacing: .02em; }
body[data-route="sets"] .filterbar input,
body[data-route="sets"] .filterbar select,
body[data-route="sets"] .filterbar option,
body[data-route="sets"] .filterbar .multi-picker > summary { font-weight: 450; }
body[data-route="sets"] .card-search-filter { flex: 1 1 360px; min-width: 320px; }
body[data-route="sets"] .card-search-filter input { width: 100%; min-height: 44px; font-size: 13px; }
body[data-route="sets"] .card-sort-filter { flex: 0 0 180px; }
body[data-route="sets"] .card-sort-filter select { width: 100%; min-height: 44px; }

body.card-catalog-page .results-head .pdf-export {
  min-height: 39px;
  border-color: var(--ah-blue);
  background: var(--ah-blue);
  color: #fff;
  font-weight: 550;
}
body.card-catalog-page .results-head .pdf-export svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

body.card-catalog-page .card-grid {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 22px 14px;
}
body.card-catalog-page .card-top h3 { font-weight: 480; }
body.card-catalog-page .card-top .number {
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf4fd;
  color: #436381;
  font-size: 11px;
  font-weight: 600;
}
body.card-catalog-page .card-quick { padding-top: 7px; }
body.card-catalog-page .card-quick-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}
body.card-catalog-page .card-quick-actions .stepper { width: min(100%,156px); margin: 0 auto; }
body.card-catalog-page .card-quick-actions .stepper button { flex: 0 0 38px; }
body.card-catalog-page .card-quick-actions .stepper output { flex: 1 1 auto; min-width: 34px; font-weight: 600; }

/* Preço de referência: carta + variante + idioma + condição, mesmo sem estoque. */
.card-value-panel {
  display: grid;
  width: 100%;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--ah-line);
  border-radius: 10px;
  background: linear-gradient(135deg,#f7fbff,#fff);
}
.card-value-head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 14px; }
.card-value-head .card-dialog-section-title { margin: 0; }
.card-value-current { display: grid; justify-items: end; gap: 2px; white-space: nowrap; min-width: max-content; margin-left: auto; }
.card-value-current strong { color: var(--ah-blue-deep); font: 750 18px/1.15 var(--ah-font-data); }
.card-value-current small, .card-value-note { color: #607790; font-size: 10px; }
.card-value-note { margin: 0; line-height: 1.45; }
.card-value-controls { display: grid; grid-template-columns: minmax(110px,1fr) auto auto auto; align-items: end; gap: 7px; }
.card-value-controls label { display: grid; gap: 5px; min-width: 0; color: var(--ah-muted); font-size: 9px; font-weight: 650; }
.money-input { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; height: 36px; overflow: hidden; border: 1px solid var(--ah-line-strong); border-radius: 7px; background: #fff; }
.money-input i { padding-left: 9px; color: var(--ah-muted); font: normal 650 11px/1 var(--ah-font-data); }
.money-input input { width: 100%; min-width: 0; height: 34px; padding: 6px 8px 6px 5px; border: 0; outline: 0; background: transparent; color: var(--ah-ink); font: 650 12px/1 var(--ah-font-data); }
.card-value-controls .button { min-height: 36px; padding: 7px 10px; border-radius: 7px; white-space: nowrap; font-size: 9px; }
.price-card-action { border-color: rgba(37,99,235,.35); background: #eaf3ff; color: var(--ah-blue-deep); }
.card-value-remove { width: 36px; height: 36px; border: 1px solid #e6c5c1; border-radius: 7px; background: #fff8f7; color: #b44135; font-size: 18px; }
.card-value-progress { position: relative; min-height: 28px; overflow: hidden; border-radius: 7px; background: #e5ecf5; }
.card-value-progress i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg,var(--ah-blue),#13b7cb); transition: width .25s ease; opacity: .24; }
.card-value-progress span { position: relative; z-index: 1; display: grid; min-height: 28px; place-items: center; padding: 5px 9px; color: var(--ah-ink-soft); font-size: 9px; }
.card-value-quote { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 14px; padding: 11px 12px; border: 1px solid rgba(37,99,235,.24); border-radius: 9px; background: #fff; }
.card-value-meta { display: grid; min-width: 0; gap: 5px; }
.card-value-freshness { display: flex; margin: 0; gap: 6px 10px; align-items: center; flex-wrap: wrap; color: #405e7c; font-size: 11.5px; line-height: 1.5; }
.card-value-freshness strong { color: #1d568a; font-size: 11px; font-weight: 750; }
.card-value-market { margin: 0; color: #405e7c; font-size: 11.5px; line-height: 1.5; }
.card-value-quote > a { display: inline-flex; min-height: 38px; padding: 8px 12px; align-items: center; justify-content: center; gap: 5px; border: 1px solid #8fbee7; border-radius: 8px; background: #e9f4ff; color: #075eaf; font-size: 11.5px; font-weight: 750; line-height: 1.2; white-space: nowrap; text-align: center; text-decoration: none; }
.card-value-quote > a:hover { border-color: #6faee3; background: #e2f1ff; color: #064d8e; }
.card-value-quote > a:focus-visible { outline: 3px solid rgba(8,112,215,.28); outline-offset: 2px; }
#card-dialog .card-value-panel > .card-price-liga-button { display: flex; box-sizing: border-box; width: 100%; min-height: 48px; margin-top: 12px; padding: 12px 18px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #075eaf; border-radius: 12px; background: #075eaf; color: #fff; font: inherit; font-size: 15px; font-weight: 750; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; }
#card-dialog .card-value-panel > .card-price-liga-button:hover { background: #064d8e; border-color: #064d8e; color: #fff; }
#card-dialog .card-value-panel > .card-price-liga-button:focus-visible { outline: 3px solid #75b9f4; outline-offset: 3px; }
html[data-color-mode="dark"] #card-dialog .card-value-panel > .card-price-liga-button { background: #55a8ff; border-color: #83c0ff; color: #082039; }
html[data-color-mode="dark"] #card-dialog .card-value-panel > .card-price-liga-button:hover { background: #83c0ff; color: #082039; }
.card-value-unavailable { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #ead5b7; border-radius: 8px; background: #fffaf1; }
#card-dialog .card-value-panel.card-value-action-only { padding: 0; border: 0; background: transparent; box-shadow: none; }
#card-dialog .card-value-action-only > .card-price-liga-button { margin-top: 0; }
#card-dialog .card-value-action-only > .card-price-liga-button:disabled { opacity: .65; cursor: default; }
.card-value-unavailable p { margin: 0; color: var(--ah-ink-soft); font-size: 9px; line-height: 1.4; }
.card-value-unavailable .button { min-height: 34px; flex-shrink: 0; max-width: 100%; padding: 6px 10px; border-radius: 7px; font-size: 9px; white-space: normal; }

@media (max-width: 800px) {
  body.card-catalog-page .card-query-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }
  body[data-route="sets"] .set-heading { min-height: 0; padding: 14px; }
  body[data-route="sets"] .set-heading-brand { grid-template-columns: 116px minmax(0,1fr); gap: 12px; }
  body[data-route="sets"] .set-heading-brand .set-logo-wrap { width: 116px; }
  body[data-route="sets"] .set-heading .set-art { width: 116px; height: 82px; padding: 2px; }
  body[data-route="sets"] .set-heading h1 { font-size: clamp(20px,5.7vw,27px); }
  body[data-route="sets"] .set-back-button { width: 100%; justify-content: center; }
  body[data-route="sets"] .set-objective-bar { display: block; padding: 9px; }
  body[data-route="sets"] .set-objective-label { display: block; padding: 2px 3px 7px; }
  body[data-route="sets"] .set-mode-toggle { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
  body[data-route="sets"] .set-mode-toggle button { justify-content: center; padding-inline: 7px; font-size: 10px; }
  body[data-route="sets"] .filterbar > .card-search-filter { flex-basis: 232px; min-width: 232px; max-width: 232px; }
  body[data-route="sets"] .filterbar > .card-sort-filter { flex-basis: 184px; min-width: 184px; max-width: 184px; }
  body.card-catalog-page .results-head .pdf-export { margin-left: auto; padding-inline: 11px; }
  body.card-catalog-page .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px 8px; }
  body.card-catalog-page .card-top h3 { font-weight: 480; }
  body.card-catalog-page .card-top .number { padding: 2px 5px; font-size: 8px; font-weight: 550; }
  body.card-catalog-page .card-quick-actions .stepper { width: 100%; }
  body.card-catalog-page .card-quick-actions .stepper button { flex-basis: 30px; }
  .card-value-controls { grid-template-columns: minmax(0,1fr) auto; }
  .card-value-controls label { grid-column: 1 / -1; }
  .card-value-controls .price-card-action { grid-column: 1 / -1; }
  .card-value-remove { grid-row: 2; grid-column: 2; }
  .card-value-quote { grid-template-columns: minmax(0,1fr); }
  .card-allocation-empty { padding: 13px 14px; font-size: 12px; }
  .card-value-current small, .card-value-note { font-size: 11px; }
  .card-value-freshness, .card-value-market { font-size: 12.5px; line-height: 1.55; }
  .card-value-freshness strong { font-size: 12px; }
  .card-value-quote > a { width: 100%; min-height: 42px; font-size: 12px; text-align: center; }
}

@media (max-width: 420px) {
  body.card-catalog-page .results-head { align-items: center; }
  body.card-catalog-page .results-head .pdf-export span { max-width: 98px; line-height: 1.15; text-align: left; }
}

/* Página inicial — Opção 8 aprovada para a homologação local. */
@layer arquivo {
  body[data-route="inicio"],
  body[data-route="inicio"] .workspace,
  body[data-route="inicio"] main {
    background: #f2f6fa;
  }
  body[data-route="inicio"] main {
    padding-top: 18px;
    padding-bottom: 42px;
  }

  :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-items: center;
    width: 100%;
    height: clamp(146px,15vw,204px);
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid #cfe0ef;
    border-radius: 18px;
    background:
      linear-gradient(118deg,rgba(255,255,255,.96) 0 53%,rgba(230,243,255,.92) 74%,rgba(204,229,252,.9)),
      #e9f3fb;
    box-shadow: 0 8px 28px rgba(28,66,102,.07);
  }
  :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .78;
    background:
      linear-gradient(133deg,transparent 0 37%,rgba(92,171,232,.09) 37% 43%,transparent 43% 55%,rgba(63,151,223,.14) 55% 64%,transparent 64%),
      linear-gradient(133deg,transparent 0 72%,rgba(114,190,245,.13) 72% 82%,transparent 82%);
  }
  :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 18%;
    bottom: -52%;
    width: 118px;
    aspect-ratio: .7;
    border: 7px solid rgba(255,255,255,.45);
    border-radius: 16px;
    opacity: .72;
    transform: rotate(-18deg);
    box-shadow: inset 0 0 0 3px rgba(75,155,218,.12);
  }
  :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-logo {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: auto;
    max-width: 68%;
    height: calc(clamp(146px,15vw,204px) - 24px) !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    transform: translateX(-20%);
  }
  :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-art {
    position: absolute;
    z-index: 2;
    top: -24%;
    right: -8%;
    display: block;
    width: min(440px,34%);
    max-width: none;
    height: 154%;
    opacity: .98;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 14px 22px rgba(22,70,114,.2));
  }

  body[data-route="inicio"] .dashboard-search-shell {
    margin-bottom: 12px;
  }
  body[data-route="inicio"] .dashboard-search-shell .dashboard-search {
    border: 1px solid #c7d8e8;
    border-left: 1px solid #c7d8e8;
    border-radius: 13px;
    background:
      linear-gradient(133deg,transparent 0 34%,rgba(88,166,226,.08) 34% 42%,transparent 42% 58%,rgba(69,153,218,.11) 58% 67%,transparent 67%),
      linear-gradient(100deg,rgba(246,251,255,.98),rgba(226,241,252,.94));
    box-shadow: 0 5px 18px rgba(23,55,87,.055);
  }
  body[data-route="inicio"] .dashboard-search-shell .dashboard-search::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background:
      rgba(235,244,250,.9)
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233978a8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E")
      center/20px no-repeat;
    box-shadow: none;
  }

  body[data-route="inicio"] .dashboard-section-heading,
  body[data-route="inicio"] .dashboard-section-intro.section-head {
    min-height: 38px;
    margin: 14px 0 8px;
    padding: 7px 11px;
    border: 1px solid rgba(126,159,188,.12);
    border-radius: 10px;
    background: linear-gradient(90deg,rgba(218,233,246,.78),rgba(233,242,249,.64));
  }
  body[data-route="inicio"] .dashboard-section-heading h2 {
    color: #3e6682;
    font-size: clamp(1rem,1.38vw,1.22rem);
    font-weight: 590;
    letter-spacing: -.014em;
  }
  body[data-route="inicio"] .dashboard-section-cta {
    gap: 7px;
    color: #54728a;
    font-size: 11px;
    font-weight: 520;
    text-decoration: none;
  }

  body[data-route="inicio"] .dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
  }
  body[data-route="inicio"] .dashboard-summary-card {
    --panel-start:#eef7fb;
    --panel-end:#fbfdff;
    --panel-geometry:rgba(75,154,210,.11);
    display: grid;
    grid-template-columns: 72px minmax(0,1fr);
    align-items: center;
    position: relative;
    isolation: isolate;
    min-height: 104px;
    overflow: hidden;
    border: 1px solid #d3e0eb;
    border-radius: 12px;
    background: linear-gradient(120deg,var(--panel-start),var(--panel-end));
    color: #143250;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(24,58,91,.045);
    transition: border-color .15s ease,background .15s ease;
  }
  body[data-route="inicio"] .dashboard-summary-card::before,
  body[data-route="inicio"] .dashboard-quick-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(132deg,transparent 0 24%,rgba(255,255,255,.48) 24% 38%,transparent 38% 100%),
      linear-gradient(132deg,transparent 0 61%,var(--panel-geometry) 61% 71%,transparent 71% 100%),
      linear-gradient(132deg,transparent 0 78%,rgba(255,255,255,.32) 78% 86%,transparent 86% 100%);
  }
  body[data-route="inicio"] .dashboard-summary-card > *,
  body[data-route="inicio"] .dashboard-quick-card > * { position: relative;z-index: 1; }
  body[data-route="inicio"] .dashboard-summary-card:hover,
  body[data-route="inicio"] .dashboard-summary-card:focus-visible {
    border-color: #9fb9cf;
    box-shadow: 0 7px 18px rgba(24,58,91,.075);
  }
  body[data-route="inicio"] .dashboard-summary-card.tone-cards {
    --icon-ink:#276387;--icon-accent:#63bee5;--icon-accent-2:#d9f3ff;--icon-soft:#e8f7fd;
    --panel-start:#dff2fb;--panel-end:#fbfdff;--panel-geometry:rgba(44,151,207,.13);
  }
  body[data-route="inicio"] .dashboard-summary-card.tone-pokemon {
    --icon-ink:#315f7d;--icon-accent:#ef7b79;--icon-accent-2:#8ed5ed;--icon-soft:#fff0ef;
    --panel-start:#fde8e7;--panel-end:#fffdfd;--panel-geometry:rgba(230,112,111,.12);
  }
  body[data-route="inicio"] .dashboard-summary-card.tone-trainers {
    --icon-ink:#52677b;--icon-accent:#e7b85d;--icon-accent-2:#8bc9e3;--icon-soft:#fff6df;
    --panel-start:#fff1d4;--panel-end:#fffefd;--panel-geometry:rgba(214,163,63,.13);
  }
  body[data-route="inicio"] .dashboard-summary-card.tone-repeats {
    --icon-ink:#52668b;--icon-accent:#9a9fe0;--icon-accent-2:#7dc8e5;--icon-soft:#eef0fc;
    --panel-start:#e8ebfa;--panel-end:#fdfdff;--panel-geometry:rgba(115,122,194,.12);
  }
  body[data-route="inicio"] .dashboard-summary-icon {
    display: grid;
    align-self: stretch;
    place-items: center;
    padding: 9px;
    background: transparent;
  }
  body[data-route="inicio"] .dashboard-symbol {
    display: block;
    width: 58px;
    height: 58px;
    overflow: visible;
    padding: 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: drop-shadow(0 3px 5px rgba(28,72,105,.08));
  }
  body[data-route="inicio"] .dashboard-symbol .icon-paper { fill: rgba(255,255,255,.92); }
  body[data-route="inicio"] .dashboard-symbol .icon-soft { fill: var(--icon-soft); }
  body[data-route="inicio"] .dashboard-symbol .icon-accent { fill: var(--icon-accent); }
  body[data-route="inicio"] .dashboard-symbol .icon-accent-2 { fill: var(--icon-accent-2); }
  body[data-route="inicio"] .dashboard-symbol .icon-line {
    stroke: var(--icon-ink);stroke-width: 1.45;stroke-linecap: round;stroke-linejoin: round;
  }
  body[data-route="inicio"] .dashboard-symbol .icon-detail { fill: var(--icon-accent-2); }
  body[data-route="inicio"] .dashboard-symbol .icon-detail-line {
    fill: none;stroke: var(--icon-accent-2);stroke-width: 1.7;stroke-linecap: round;stroke-linejoin: round;
  }
  body[data-route="inicio"] .dashboard-summary-icon > svg { display: block !important; }
  body[data-route="inicio"] .dashboard-summary-card > span:last-child {
    display: grid;
    gap: 4px;
    padding: 10px 12px 10px 9px;
  }
  body[data-route="inicio"] .dashboard-summary-card small {
    color: #355873;
    font-size: 12px;
    font-weight: 560;
  }
  body[data-route="inicio"] .dashboard-summary-card strong {
    color: #152b44;
    font: 610 29px/1 var(--ah-font-data);
  }

  body[data-route="inicio"] .dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
  }
  body[data-route="inicio"] .dashboard-quick-card {
    --panel-start:#edf7fb;
    --panel-end:#fbfdff;
    --panel-geometry:rgba(65,145,194,.11);
    display: grid;
    grid-template-columns: 82px minmax(0,1fr) 32px;
    align-items: center;
    position: relative;
    isolation: isolate;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid #d1dfeb;
    border-radius: 13px;
    background: linear-gradient(120deg,var(--panel-start),var(--panel-end));
    color: #16456f;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(25,58,90,.045);
  }
  body[data-route="inicio"] .dashboard-quick-card.quick-pokedex {
    --icon-ink:#2a6385;--icon-accent:#e96f73;--icon-accent-2:#86d5eb;--icon-soft:#e7f7fc;
    --panel-start:#dcf1fb;--panel-end:#f9fdff;--panel-geometry:rgba(47,151,205,.13);
  }
  body[data-route="inicio"] .dashboard-quick-card.quick-binders {
    --icon-ink:#34657c;--icon-accent:#70c5c9;--icon-accent-2:#a8e0e1;--icon-soft:#eaf8f7;
    --panel-start:#e1f4f2;--panel-end:#fbfefd;--panel-geometry:rgba(72,165,166,.12);
  }
  body[data-route="inicio"] .dashboard-quick-card.quick-trades {
    --icon-ink:#586783;--icon-accent:#ee8b79;--icon-accent-2:#74badf;--icon-soft:#fff1e8;
    --panel-start:#feeadc;--panel-end:#fffdf9;--panel-geometry:rgba(221,128,95,.12);
  }
  body[data-route="inicio"] .dashboard-quick-card:hover,
  body[data-route="inicio"] .dashboard-quick-card:focus-visible {
    border-color: #9db8cf;
    box-shadow: 0 7px 18px rgba(24,58,91,.075);
  }
  body[data-route="inicio"] .dashboard-quick-card .feature-panel-icon {
    display: grid;
    align-self: stretch;
    width: 82px;
    place-items: center;
    border: 0;
    background: transparent;
  }
  body[data-route="inicio"] .dashboard-quick-card .feature-panel-icon .dashboard-symbol { width: 64px;height: 64px; }
  body[data-route="inicio"] .dashboard-quick-card .feature-panel-icon > svg { display: block !important; }
  body[data-route="inicio"] .dashboard-quick-card strong {
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 580;
    line-height: 1.3;
  }

  body[data-route="inicio"] .dashboard-soft-arrow {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    margin-right: 8px;
    border: 1px solid rgba(120,148,168,.32);
    border-radius: 50%;
    background: rgba(232,240,246,.62);
    color: #7894a8;
    font: 470 15px/1 var(--ah-font-ui);
    box-shadow: none;
  }
  body[data-route="inicio"] .dashboard-section-cta .dashboard-soft-arrow {
    width: 22px;
    height: 22px;
    margin: 0;
    font-size: 12px;
  }

  body[data-route="inicio"] .dashboard-masterset-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 9px;
  }
  body[data-route="inicio"] .dashboard-masterset-card {
    display: grid;
    grid-template-columns: minmax(94px,36%) minmax(0,1fr) 30px;
    align-items: center;
    min-height: 102px;
    overflow: hidden;
    border: 1px solid #d1dfeb;
    border-radius: 12px;
    background: rgba(255,255,255,.88);
    color: #1d4669;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(24,58,91,.04);
  }
  body[data-route="inicio"] .dashboard-masterset-card:hover,
  body[data-route="inicio"] .dashboard-masterset-card:focus-visible { border-color: #9db8cf; background: #fff; }
  body[data-route="inicio"] .dashboard-masterset-logo {
    display: grid;
    align-self: stretch;
    place-items: center;
    min-width: 0;
    padding: 7px;
    background: linear-gradient(135deg,#dcefff,#f4f8fc 58%,#f6eafa);
  }
  body[data-route="inicio"] .dashboard-masterset-logo .set-logo-wrap.compact,
  body[data-route="inicio"] .dashboard-masterset-logo .set-logo-small {
    width: 100%;
    height: 72px;
    min-width: 0;
    padding: 0;
    background: transparent;
  }
  body[data-route="inicio"] .dashboard-masterset-logo .set-logo-small .set-logo {
    max-width: 100%;
    max-height: 68px;
    object-position: center;
  }
  body[data-route="inicio"] .dashboard-masterset-logo .prize-series-badge,
  body[data-route="inicio"] .dashboard-masterset-logo .country-badge { display: none; }
  body[data-route="inicio"] .dashboard-masterset-copy {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
    padding: 10px 8px 10px 12px;
  }
  body[data-route="inicio"] .dashboard-masterset-copy strong {
    overflow: hidden;
    color: #234b6d;
    font-size: 12px;
    font-weight: 580;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-route="inicio"] .dashboard-masterset-copy small {
    color: #6d8295;
    font-size: 10px;
    font-weight: 430;
  }
  body[data-route="inicio"] .dashboard-masterset-copy > span {
    width: max-content;
    max-width: 100%;
    margin-top: 4px;
    padding: 4px 7px;
    overflow: hidden;
    border: 1px solid #bfd2e2;
    border-radius: 999px;
    background: #f8fbfd;
    color: #52748f;
    font-size: 9px;
    font-weight: 530;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-route="inicio"] .dashboard-masterset-card > .dashboard-soft-arrow { margin-right: 6px; }
  body[data-route="inicio"] .note {
    margin-top: 18px;
    border-color: #cbdce9;
    background: rgba(232,243,251,.76);
    color: #355c79;
  }

  @media (max-width: 1050px) and (min-width: 801px) {
    body[data-route="inicio"] .dashboard-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body[data-route="inicio"] .dashboard-masterset-card { grid-template-columns: 92px minmax(0,1fr) 28px; }
  }

  @media (max-width: 800px) {
    body[data-route="inicio"] main {
      padding-top: 10px;
      padding-inline: 10px;
    }
    :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-hero {
      grid-template-columns: minmax(0,1fr);
      height: 112px;
      margin-bottom: 8px;
      border-radius: 14px;
    }
    :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-logo {
      width: auto;
      max-width: 76%;
      height: 72px !important;
      padding: 0;
      object-position: center;
      transform: translateX(-18%);
    }
    :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-art {
      top: -22%;
      right: -36px;
      width: 174px;
      height: 146%;
      opacity: .98;
    }
    body[data-route="inicio"] .dashboard-section-heading,
    body[data-route="inicio"] .dashboard-section-intro.section-head {
      min-height: 34px;
      margin: 10px 0 6px;
      padding: 6px 8px;
      border-radius: 9px;
    }
    body[data-route="inicio"] .dashboard-section-heading h2 { font-size: .98rem; }
    body[data-route="inicio"] .dashboard-summary-grid {
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 6px;
    }
    body[data-route="inicio"] .dashboard-summary-card {
      grid-template-columns: 58px minmax(0,1fr);
      min-height: 76px;
      border-radius: 10px;
    }
    body[data-route="inicio"] .dashboard-summary-icon { padding: 6px; }
    body[data-route="inicio"] .dashboard-summary-icon .dashboard-symbol { width: 48px; height: 48px; padding: 3px; }
    body[data-route="inicio"] .dashboard-summary-card > span:last-child { gap: 2px; padding: 7px 8px 7px 6px; }
    body[data-route="inicio"] .dashboard-summary-card small { font-size: 10px; }
    body[data-route="inicio"] .dashboard-summary-card strong { font-size: 23px; }
    body[data-route="inicio"] .dashboard-quick-grid,
    body[data-route="inicio"] .dashboard-masterset-grid {
      grid-template-columns: minmax(0,1fr);
      gap: 5px;
    }
    body[data-route="inicio"] .dashboard-quick-card {
      grid-template-columns: 58px minmax(0,1fr) 31px;
      min-height: 58px;
      border-radius: 10px;
    }
    body[data-route="inicio"] .dashboard-quick-card .feature-panel-icon { width: 58px; }
    body[data-route="inicio"] .dashboard-quick-card .feature-panel-icon .dashboard-symbol { width: 48px; height: 48px; padding: 3px; }
    body[data-route="inicio"] .dashboard-quick-card strong { padding: 8px 10px; font-size: 12px; }
    body[data-route="inicio"] .dashboard-soft-arrow { width: 25px; height: 25px; font-size: 13px; }
    body[data-route="inicio"] .dashboard-masterset-card {
      grid-template-columns: 106px minmax(0,1fr) 31px;
      min-height: 66px;
      border-radius: 10px;
    }
    body[data-route="inicio"] .dashboard-masterset-logo { padding: 4px 7px; }
    body[data-route="inicio"] .dashboard-masterset-logo .set-logo-wrap.compact,
    body[data-route="inicio"] .dashboard-masterset-logo .set-logo-small { height: 58px; }
    body[data-route="inicio"] .dashboard-masterset-logo .set-logo-small .set-logo { max-height: 54px; }
    body[data-route="inicio"] .dashboard-masterset-copy { padding: 7px 6px 7px 10px; }
    body[data-route="inicio"] .dashboard-masterset-copy strong { font-size: 11px; }
    body[data-route="inicio"] .dashboard-masterset-copy > span { display: none; }
    body[data-route="inicio"] .dashboard-section-cta { font-size: 9px; }
  }

  @media (max-width: 420px) {
    :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-hero {
      height: 96px;
    }
    :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-logo { width: auto; max-width: 78%; height: 72px !important; transform: translateX(-19%); }
    :root[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-art { right: -38px; width: 148px; }
    body[data-route="inicio"] .dashboard-masterset-card { grid-template-columns: 91px minmax(0,1fr) 29px; }
    body[data-route="inicio"] .dashboard-masterset-copy strong { font-size: 10.5px; }
  }
}

@layer arquivo {
  /* Reforço final após os estilos genéricos do catálogo. */
  body[data-route="acervo"] .results-head .pdf-export { display: none; }

  @media (max-width: 800px) {
    body[data-route="acervo"] .acervo-filter-chips > label,
    body[data-route="acervo"] .acervo-filter-chips > .multi-field {
      width: 150px;
      min-width: 150px;
      flex: 0 0 150px;
    }
    body[data-route="acervo"] .acervo-filter-chips > label:first-child,
    body[data-route="acervo"] .acervo-filter-chips > .multi-field:first-child {
      width: 178px;
      min-width: 178px;
      flex-basis: 178px;
    }
  }
}

@layer arquivo {
  /* Onda local: artes tonais em altura total, integradas aos cards do início. */
  body[data-route="inicio"] .dashboard-summary-card {
    display: block;
  }
  body[data-route="inicio"] .dashboard-summary-icon {
    position: absolute;
    z-index: 0;
    inset: -12% -5% -12% auto;
    display: block;
    width: 62%;
    padding: 0;
    opacity: .9;
    pointer-events: none;
  }
  body[data-route="inicio"] .dashboard-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(0 5px 8px rgba(24,58,91,.12));
    transform: scale(1.08) translateX(5%);
    transform-origin: right center;
  }
  body[data-route="inicio"] .dashboard-art-pokemon { transform: scale(1.18) translateX(10%); }
  body[data-route="inicio"] .dashboard-art-trainer { transform: scale(1.12) translateX(7%); }
  body[data-route="inicio"] .dashboard-art-repeats { transform: scale(1.08) translateX(7%); }
  body[data-route="inicio"] .dashboard-summary-card > span:last-child {
    position: relative;
    z-index: 2;
    align-content: center;
    width: 58%;
    min-height: 104px;
    padding: 12px 6px 12px 14px;
    text-shadow: 0 1px 0 rgba(255,255,255,.72);
  }

  body[data-route="inicio"] .dashboard-quick-card {
    grid-template-columns: minmax(0,1fr) 32px;
  }
  body[data-route="inicio"] .dashboard-quick-card .feature-panel-icon {
    position: absolute;
    z-index: 0;
    inset: -18% 10px -18% auto;
    display: block;
    width: 52%;
    min-height: 0;
    opacity: .88;
    pointer-events: none;
  }
  body[data-route="inicio"] .dashboard-quick-card .dashboard-art {
    transform: scale(1.08) translateX(6%);
  }
  body[data-route="inicio"] .dashboard-quick-card .dashboard-art-pokedex {
    transform: scale(1.08) translateX(6%);
  }
  body[data-route="inicio"] .dashboard-quick-card .dashboard-art-binders {
    transform: scale(1.12) translateX(8%);
  }
  body[data-route="inicio"] .dashboard-quick-card .dashboard-art-trades {
    transform: scale(1.05) translateX(7%);
  }
  body[data-route="inicio"] .dashboard-quick-card strong {
    position: relative;
    z-index: 2;
    grid-column: 1;
    width: 64%;
    padding: 12px 10px 12px 16px;
    text-shadow: 0 1px 0 rgba(255,255,255,.74);
  }
  body[data-route="inicio"] .dashboard-quick-card .dashboard-soft-arrow {
    position: relative;
    z-index: 3;
    grid-column: 2;
  }

  @media (max-width: 800px) {
    body[data-route="inicio"] .dashboard-summary-icon {
      inset: -14% -8% -14% auto;
      width: 66%;
    }
    body[data-route="inicio"] .dashboard-summary-card > span:last-child {
      width: 61%;
      min-height: 76px;
      padding: 8px 4px 8px 9px;
    }
    body[data-route="inicio"] .dashboard-quick-card {
      grid-template-columns: minmax(0,1fr) 31px;
      min-height: 62px;
    }
    body[data-route="inicio"] .dashboard-quick-card .feature-panel-icon {
      inset: -34% 15px -34% auto;
      width: 46%;
    }
    body[data-route="inicio"] .dashboard-quick-card.quick-pokedex .feature-panel-icon {
      inset: -20% 6px -20% auto;
      width: 38%;
    }
    body[data-route="inicio"] .dashboard-quick-card.quick-pokedex .dashboard-art-pokedex {
      transform: scale(.92) translateX(12%);
    }
    body[data-route="inicio"] .dashboard-quick-card strong {
      width: 67%;
      padding: 9px 8px 9px 12px;
    }
  }
}

/* Mantém o refinamento da Pokédex acima da primeira versão da onda no cascade. */
@layer arquivo {
  html body[data-route="pokedex"] .dex-page-hero { display: block; min-height: 146px; padding: 18px 300px 12px 172px; }
  html body[data-route="pokedex"] .dex-page-mark { position: absolute; top: 17px; left: 32px; width: 124px; height: 112px; margin: 0; }
  html body[data-route="pokedex"] .dex-page-copy { padding: 0; }
  html body[data-route="pokedex"] .dex-page-copy h1 { margin: 0 0 2px; color: #0b3566; font-size: clamp(42px,5vw,62px); font-weight: 720; line-height: .98; letter-spacing: -.045em; }
  html body[data-route="pokedex"] .dex-page-copy > p { max-width: 570px; color: #1667bd; font-size: 17px; line-height: 1.35; }
  html body[data-route="pokedex"] .dex-page-art { top: -38px; right: -22px; width: 340px; height: 224px; }
  html body[data-route="pokedex"] .dex-filter-chips { grid-template-columns: minmax(290px,1.65fr) repeat(4,minmax(145px,1fr)); }
  html body[data-route="pokedex"] .dex-overview { grid-template-columns: 78px minmax(230px,1.2fr) minmax(210px,.85fr) 116px; min-height: 142px; gap: 18px; padding: 18px 22px; border-color: #0567bd; background: radial-gradient(circle at 74% 20%,rgba(255,220,72,.2) 0 3%,transparent 3.2%),linear-gradient(122deg,transparent 0 22%,rgba(255,255,255,.08) 22% 34%,transparent 34% 54%,rgba(255,255,255,.06) 54% 66%,transparent 66%),linear-gradient(110deg,#0756b4 0%,#0788d6 60%,#08a7ce 100%); box-shadow: 0 8px 20px rgba(5,81,151,.14); }
  html body[data-route="pokedex"] .dex-overview-count > strong { color: #fff; font-size: 54px; text-shadow: 0 2px 0 rgba(0,49,102,.18); }
  html body[data-route="pokedex"] .dex-overview-count b { color: #fff; font-size: 18px; }
  html body[data-route="pokedex"] .dex-overview-count small { color: rgba(255,255,255,.78); }
  html body[data-route="pokedex"] .dex-overview-stats span { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.13); color: rgba(255,255,255,.82); }
  html body[data-route="pokedex"] .dex-overview-stats b { color: #fff; }
  html body[data-route="pokedex"] .dex-overview-ring { width: 108px; height: 108px; background: conic-gradient(#ffdb3d var(--dex-progress),rgba(255,255,255,.24) 0); box-shadow: 0 8px 18px rgba(0,55,112,.18); }
  html body[data-route="pokedex"] .dex-overview-ring::before { inset: 10px; background: #076fc0; }
  html body[data-route="pokedex"] .dex-overview-ring span { color: #fff; }
  @media (max-width: 1100px) {
    html body[data-route="pokedex"] .dex-filter-chips { display: flex; }
  }
  @media (max-width: 800px) {
    html body[data-route="pokedex"] .dex-page-hero { min-height: 132px; padding: 52px 90px 8px 12px; }
    html body[data-route="pokedex"] .dex-page-mark { top: 6px; left: 13px; width: 70px; height: 48px; }
    html body[data-route="pokedex"] .dex-page-copy h1 { font-size: 27px; }
    html body[data-route="pokedex"] .dex-page-copy > p { max-width: 245px; font-size: 12px; }
    html body[data-route="pokedex"] .dex-page-art { top: -24px; right: -66px; width: 205px; height: 174px; }
    html body[data-route="pokedex"] .dex-overview { grid-template-columns: 52px minmax(0,1fr) 72px; grid-template-rows: auto auto; gap: 9px; min-height: 128px; padding: 12px; }
    html body[data-route="pokedex"] .dex-overview-count > strong { font-size: 38px; }
    html body[data-route="pokedex"] .dex-overview-count b { font-size: 13px; }
    html body[data-route="pokedex"] .dex-overview-count small { font-size: 9px; }
    html body[data-route="pokedex"] .dex-overview-stats { grid-column: 1 / -1; grid-row: 2; }
    html body[data-route="pokedex"] .dex-overview-ring { grid-column: 3; grid-row: 1; width: 68px; height: 68px; }
    html body[data-route="pokedex"] .dex-overview-ring::before { inset: 7px; }
  }
}

/* Garante que as duas opções da visualização nunca se sobreponham. */
@layer arquivo {
  html body[data-route="pokedex"] .dex-view-navigation .dex-view-switch,
  html body[data-route="evolucoes"] .dex-view-navigation .dex-view-switch {
    width: min(100%,680px);
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  html body[data-route="pokedex"] .dex-view-navigation .dex-view-switch a,
  html body[data-route="evolucoes"] .dex-view-navigation .dex-view-switch a {
    min-width: 0;
    max-width: 100%;
    font-size: 8px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  @media (max-width: 800px) {
    html body[data-route="pokedex"] .dex-view-navigation .dex-view-switch a,
    html body[data-route="evolucoes"] .dex-view-navigation .dex-view-switch a {
      font-size: 7px;
    }
    html body[data-route="pokedex"] .dex-view-navigation .dex-view-switch a span,
    html body[data-route="evolucoes"] .dex-view-navigation .dex-view-switch a span {
      display: inline;
      min-width: 0;
      overflow: hidden;
      font-size: inherit;
      line-height: inherit;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}

/* Onda local: índice de Sets com a identidade visual do catálogo e da Pokédex. */
@layer arquivo {
  body[data-route="sets"] .sets-index-intro,
  body[data-route="ficharios"] .sets-index-intro {
    position: relative;
    isolation: isolate;
    margin: 0 0 10px;
    overflow: hidden;
    border: 1px solid #b9dbf3;
    border-radius: 14px;
    background: linear-gradient(112deg,#f9fdff 0 43%,#dff2ff 70%,#b9ddfa 100%);
    box-shadow: 0 8px 24px rgba(34,104,167,.08);
  }
  body[data-route="sets"] .sets-index-intro::before,
  body[data-route="ficharios"] .sets-index-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(132deg,transparent 0 108px,rgba(32,140,226,.075) 109px 135px);
  }
  body[data-route="sets"] .sets-page-hero,
  body[data-route="ficharios"] .sets-page-hero {
    position: relative;
    display: block;
    min-height: 146px;
    padding: 18px 300px 12px 172px;
    overflow: hidden;
  }
  body[data-route="sets"] .sets-page-icon,
  body[data-route="ficharios"] .sets-page-icon {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 32px;
    width: 124px;
    height: 112px;
    object-fit: contain;
  }
  body[data-route="sets"] .sets-page-copy,
  body[data-route="ficharios"] .sets-page-copy { position: relative; z-index: 2; }
  body[data-route="sets"] .sets-page-copy h1,
  body[data-route="ficharios"] .sets-page-copy h1 {
    margin: 0 0 2px;
    color: #0b3566;
    font-size: clamp(42px,5vw,62px);
    font-weight: 720;
    line-height: .98;
    letter-spacing: -.045em;
  }
  body[data-route="sets"] .sets-page-copy p,
  body[data-route="ficharios"] .sets-page-copy p {
    max-width: 570px;
    margin: 0;
    color: #1667bd;
    font-size: 17px;
    line-height: 1.35;
  }
  body[data-route="sets"] .sets-page-art,
  body[data-route="ficharios"] .sets-page-art {
    position: absolute;
    z-index: 1;
    top: -38px;
    right: -22px;
    width: 340px;
    height: 224px;
    object-fit: contain;
    object-position: right center;
    filter: drop-shadow(-12px 13px 16px rgba(21,70,113,.12));
  }
  body[data-route="sets"] .sets-catalog-tools {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 9px;
    padding: 0 18px 16px;
  }
  body[data-route="sets"] .sets-search {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr);
    align-items: center;
    min-height: 54px;
    overflow: hidden;
    border: 1px solid #9ecbf0;
    border-radius: 11px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 8px rgba(30,105,170,.08);
  }
  body[data-route="sets"] .sets-search > svg {
    justify-self: center;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #076be3;
    stroke-width: 2.2;
    stroke-linecap: round;
  }
  body[data-route="sets"] .sets-search input {
    width: 100%;
    height: 52px;
    min-width: 0;
    padding: 0 16px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #173b62;
    font: 500 16px/1 var(--ah-font-ui);
  }
  body[data-route="sets"] .sets-search input::placeholder { color: #607bb0; opacity: .82; }
  body[data-route="sets"] .sets-filter-chips {
    display: grid;
    grid-template-columns: repeat(2,minmax(190px,250px));
    gap: 9px;
  }
  body[data-route="sets"] .sets-filter-chip {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr);
    align-items: center;
    gap: 7px;
    height: 44px;
    min-height: 44px;
    padding: 0 9px;
    border: 1px solid #a8cff0;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    color: #075bc1;
    box-shadow: 0 2px 6px rgba(32,104,167,.06);
  }
  body[data-route="sets"] .sets-filter-chip > svg {
    width: 22px;
    height: 22px;
    justify-self: center;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body[data-route="sets"] .sets-filter-chip select {
    width: 100%;
    height: 42px;
    min-width: 0;
    padding: 0 24px 0 0;
    border: 0;
    outline: 0;
    background-color: transparent;
    color: #0754b2;
    font: 550 12px/1.2 var(--ah-font-ui);
  }
  body[data-route="sets"] .sets-search:focus-within,
  body[data-route="sets"] .sets-filter-chip:focus-within { border-color: #6da9dc; box-shadow: 0 0 0 3px rgba(20,115,210,.12); }
  body[data-route="sets"] .collections-available-head,
  body[data-route="sets"] .sets-pending-head {
    min-height: 44px;
    margin: 0 0 9px;
    padding: 5px 10px 5px 12px;
    border: 1px solid #c6e3f7;
    border-radius: 11px;
    background: linear-gradient(133deg,transparent 0 36%,rgba(67,157,222,.07) 36% 44%,transparent 44%),linear-gradient(90deg,#dff3ff,#eaf8ff);
  }
  body[data-route="sets"] .collections-available-head h2,
  body[data-route="sets"] .sets-pending-head h2 { color: #0756a6; font-size: 20px; font-weight: 610; }
  body[data-route="sets"] .collections-available-head .subtitle,
  body[data-route="sets"] .sets-pending-head .subtitle { color: #3e70a8; font-size: 10px; }
  body[data-route="sets"] .sets-pending-head { display: flex; align-items: baseline; gap: 22px; margin-top: 18px; }
  body[data-route="sets"] .sets-pending-copy { margin: -3px 2px 10px; color: #66819a; font-size: 10px; }
  body[data-route="sets"] .catalog-view-toggle { border-color: #afd4ee; background: rgba(240,248,253,.9); }
  body[data-route="sets"] .catalog-view-toggle button { width: 34px; height: 30px; color: #6485a0; }
  body[data-route="sets"] .catalog-view-toggle button.active { border-color: #9fc9e8; color: #075fc0; box-shadow: none; }
  body[data-route="sets"] #set-index .era-list { gap: 9px; }
  body[data-route="sets"] #set-index .era-group { border-color: #c9e2f3; border-radius: 12px; box-shadow: 0 3px 10px rgba(22,84,133,.035); }
  body[data-route="sets"] #set-index .era-group > summary {
    position: relative;
    min-height: 52px;
    padding: 9px 14px;
    overflow: hidden;
    border-left: 5px solid var(--era-color,#4f9fd7);
    background: linear-gradient(128deg,transparent 0 64%,color-mix(in srgb,var(--era-color,#4f9fd7) 7%,white) 64% 76%,transparent 76%),linear-gradient(100deg,color-mix(in srgb,var(--era-color,#4f9fd7) 9%,white),#f8fcff 72%);
  }
  body[data-route="sets"] #set-index .era-group > summary::before {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border: 1px solid color-mix(in srgb,var(--era-color,#4f9fd7) 34%,white);
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    color: color-mix(in srgb,var(--era-color,#4f9fd7) 80%,#153b5a);
    font-size: 10px;
  }
  body[data-route="sets"] #set-index .era-group > summary strong { color: #234f72; font-size: 15px; font-weight: 610; }
  body[data-route="sets"] #set-index .era-group > summary span { color: #66849c; font-size: 10px; }
  body[data-route="sets"] #set-index .era-group[open] > summary { border-bottom-color: #d4e7f3; }
  body[data-route="sets"] #set-index .era-tiles { background: #f4faff; }
  body[data-route="sets"] #set-index .set-tile-compact { border-color: #cadfeb; box-shadow: 0 2px 8px rgba(31,86,128,.045); }
  body[data-route="sets"] #set-index .compact-set-head h3 { color: #214d70; font-weight: 590; }
  body[data-route="sets"] #set-index .compact-set-foot { color: #4d7898; font-weight: 540; }
  @media (max-width: 800px) {
    body[data-route="sets"] main { padding-inline: 7px; }
    body[data-route="sets"] .sets-index-intro,
    body[data-route="ficharios"] .sets-index-intro { border-radius: 13px; }
    body[data-route="sets"] .sets-page-hero,
    body[data-route="ficharios"] .sets-page-hero { min-height: 132px; padding: 52px 90px 8px 12px; }
    body[data-route="sets"] .sets-page-icon,
    body[data-route="ficharios"] .sets-page-icon { top: 6px; left: 13px; width: 70px; height: 48px; }
    body[data-route="sets"] .sets-page-copy h1,
    body[data-route="ficharios"] .sets-page-copy h1 { font-size: 27px; }
    body[data-route="sets"] .sets-page-copy p,
    body[data-route="ficharios"] .sets-page-copy p { max-width: 245px; font-size: 12px; }
    body[data-route="sets"] .sets-page-art,
    body[data-route="ficharios"] .sets-page-art { top: -24px; right: -66px; width: 205px; height: 174px; }
    body[data-route="sets"] .sets-catalog-tools { gap: 8px; padding: 0 8px 10px; }
    body[data-route="sets"] .sets-search { grid-template-columns: 46px minmax(0,1fr); min-height: 46px; }
    body[data-route="sets"] .sets-search > svg { width: 23px; height: 23px; }
    body[data-route="sets"] .sets-search input { height: 44px; font-size: 12px; }
    body[data-route="sets"] .sets-filter-chips { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
    body[data-route="sets"] .sets-filter-chip { grid-template-columns: 26px minmax(0,1fr); gap: 5px; height: 40px; min-height: 40px; padding: 0 7px; }
    body[data-route="sets"] .sets-filter-chip > svg { width: 19px; height: 19px; }
    body[data-route="sets"] .sets-filter-chip select { height: 38px; padding-right: 14px; font-size: 9px; }
    body[data-route="sets"] .collections-available-head h2,
    body[data-route="sets"] .sets-pending-head h2 { font-size: 17px; }
    body[data-route="sets"] .sets-pending-head { display: block; }
    body[data-route="sets"] .sets-pending-head .subtitle { display: block; margin-top: 2px; }
    body[data-route="sets"] .sets-pending-copy { font-size: 9px; line-height: 1.35; }
    body[data-route="sets"] #set-index .era-group > summary { min-height: 46px; padding: 7px 9px; border-left-width: 4px; }
    body[data-route="sets"] #set-index .era-group > summary::before { width: 22px; height: 22px; flex-basis: 22px; }
    body[data-route="sets"] #set-index .era-group > summary strong { font-size: 13px; }
    body[data-route="sets"] #set-index .era-group > summary span { font-size: 9px; }
  }
}

@layer arquivo {
  /* Reforço final da página interna após os estilos legados do catálogo. */
  body.card-catalog-page[data-route="sets"] .set-detail-brand { width: 170px; height: 128px; }
  body.card-catalog-page[data-route="sets"] .set-detail-brand .set-logo {
    transform: scale(1.2);
    filter: drop-shadow(0 7px 8px rgba(13,63,108,.16));
  }
  body.card-catalog-page[data-route="sets"] .set-objective-bar {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 48px;
    margin: 0 0 8px;
    padding: 5px 7px 5px 13px;
    overflow: hidden;
    border-color: #c3e0f4;
    border-radius: 10px;
    background: linear-gradient(100deg,#eaf7ff,#f7fcff);
    box-shadow: 0 2px 8px rgba(30,105,170,.045);
  }
  body.card-catalog-page[data-route="sets"] .set-objective-label { display: block; padding: 0; color: #376b93; font-size: 10px; font-weight: 610; }
  body.card-catalog-page[data-route="sets"] .set-mode-toggle { display: inline-flex; width: auto; background: rgba(215,237,251,.72); }
  body.card-catalog-page[data-route="sets"] .set-mode-toggle button { min-height: 34px; padding: 6px 10px; color: #557b99; font-size: 10px; }
  body.card-catalog-page[data-route="sets"] .set-mode-toggle button[aria-pressed="true"] { color: #075fc0; box-shadow: 0 2px 6px rgba(25,87,137,.09); }

  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card {
    overflow: visible;
    padding: 7px;
    border: 1px solid #c9e4f5;
    border-radius: 9px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 7px rgba(19,91,151,.045);
  }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-frame { padding: 0; border: 0; border-radius: 7px; background: transparent; box-shadow: none; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-image { position: relative; padding: 0; border-radius: 6px; background: #e5edf3; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .image-fallback {
    inset: 12px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-color: #c8d8c4;
    color: #7990a5;
    font-size: 9px;
    line-height: 1.3;
  }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-image img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-add-card {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    min-height: 32px;
    border: 1px solid #69b0ef;
    border-radius: 999px;
    background: rgba(255,255,255,.97);
    color: #0872db;
    font: 550 11px/1 var(--ah-font-ui);
    box-shadow: 0 1px 4px rgba(12,91,165,.1);
    cursor: pointer;
  }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-content { display: grid; gap: 3px; min-width: 0; padding: 7px 2px 0; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-primary,
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-secondary { display: grid; align-items: baseline; min-width: 0; gap: 6px; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-primary { grid-template-columns: minmax(0,1fr) auto; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-secondary { grid-template-columns: minmax(0,1fr) minmax(48px,42%); align-items: start; min-height: 2.5em; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-content h3 { min-width: 0; margin: 0; overflow: hidden; color: #0a4f95; font-size: 12px; font-weight: 570; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-set-line,
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-number,
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-variant,
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity { margin: 0; overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-number { justify-self: end; color: #3371ab; font-variant-numeric: tabular-nums; text-align: right; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-variant { min-width: 0; overflow: visible; color: #3371ab; line-height: 1.2; text-overflow: clip; white-space: normal; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-set-line { display: block; margin-top: 2px; color: #6f87a0; font-size: 9px; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity { display: flex; min-width: 0; gap: 4px; align-items: center; justify-content: flex-end; color: #5f6fa1; text-align: right; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .rarity-symbol { flex: 0 0 auto; min-width: 13px; justify-content: center; color: #171b18; font-size: 13px; line-height: 1; letter-spacing: -1px; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .rarity-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .tone-preto { color: #171b18; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .tone-prata { color: #929ba3; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .tone-dourado { color: #e3a414; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .tone-magenta { color: #d91b71; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .tone-verde { color: #91a900; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .tone-neutro { color: #747d78; }
  body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .tone-arco_iris { background: linear-gradient(115deg,#ed3d68,#ee9e20,#3cae7a,#2e77c2,#904bbd); -webkit-background-clip: text; background-clip: text; color: transparent; }
  @media (max-width: 800px) {
    body.card-catalog-page[data-route="sets"] .set-detail-brand { width: 142px; height: 52px; }
    body.card-catalog-page[data-route="sets"] .set-detail-brand .set-logo { transform: scale(1.12); }
    body.card-catalog-page[data-route="sets"] .set-objective-bar { display: grid; grid-template-columns: auto minmax(0,1fr); padding: 5px 6px 5px 9px; }
    body.card-catalog-page[data-route="sets"] .set-objective-label { font-size: 8px; }
    body.card-catalog-page[data-route="sets"] .set-mode-toggle { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; }
    body.card-catalog-page[data-route="sets"] .set-mode-toggle button { justify-content: center; min-height: 32px; padding: 5px; font-size: 8px; }
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card { padding: 5px; border-radius: 8px; }
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-content { gap: 2px; padding-top: 5px; }
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-primary,
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-secondary { gap: 3px; }
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-content h3 { font-size: 10px; }
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-set-line,
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-number,
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-variant,
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity { font-size: 8px; }
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card .card-set-line { font-size: 7.5px; }
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-card-rarity .rarity-symbol { font-size: 11px; }
    body.card-catalog-page:is([data-route="sets"],[data-route="pokemon"]) .acervo-add-card { min-height: 26px; border-color: rgba(105,176,239,.82); background: rgba(255,255,255,.86); font-size: 8.5px; backdrop-filter: blur(4px); }
  }
}

@layer arquivo {
  /* A ação permanece legível sem esconder o rodapé gráfico da carta. */
  body.card-catalog-page[data-route] .acervo-add-card {
    border-color: rgba(29,126,216,.5);
    background: rgba(255,255,255,.56);
    color: #075dad;
    text-shadow: 0 1px 1px rgba(255,255,255,.96);
    box-shadow: 0 1px 3px rgba(10,74,132,.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color 140ms ease, border-color 140ms ease;
  }
  body.card-catalog-page[data-route] .acervo-add-card:hover,
  body.card-catalog-page[data-route] .acervo-add-card:focus-visible {
    border-color: rgba(8,114,219,.72);
    background: rgba(255,255,255,.84);
  }
}

/* As duas visões da Pokédex compartilham filtros e faixa de captura; só o
   conteúdo organizado abaixo do seletor muda. */
@layer arquivo {
  html body[data-route="evolucoes"] .dex-filter-chips {
    grid-template-columns: minmax(290px,1.65fr) repeat(4,minmax(145px,1fr));
  }
  html body[data-route="evolucoes"] .dex-capture-filter {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: stretch;
    height: 44px;
    padding: 3px;
    border: 1px solid #a8cff0;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 2px 6px rgba(32,104,167,.06);
  }
  html body[data-route="evolucoes"] .dex-capture-filter > select {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  html body[data-route="evolucoes"] .dex-capture-option {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #56789a;
    font: 550 10px/1.05 var(--ah-font-ui);
    cursor: pointer;
  }
  html body[data-route="evolucoes"] .dex-capture-option + .dex-capture-option { border-left: 1px solid #d9e9f5; border-radius: 0 7px 7px 0; }
  html body[data-route="evolucoes"] .dex-capture-option svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  html body[data-route="evolucoes"] .dex-capture-option.is-active { background: #e2f2ff; color: #075fc7; box-shadow: inset 0 0 0 1px #9dcef3; }
  html body[data-route="evolucoes"] .dex-capture-option:focus-visible { outline: 2px solid #086fd7; outline-offset: 1px; }

  html body[data-route="evolucoes"] .dex-overview {
    grid-template-columns: 78px minmax(230px,1.2fr) minmax(210px,.85fr) 116px;
    min-height: 142px;
    gap: 18px;
    padding: 18px 22px;
    border-color: #0567bd;
    background: radial-gradient(circle at 74% 20%,rgba(255,220,72,.2) 0 3%,transparent 3.2%),linear-gradient(122deg,transparent 0 22%,rgba(255,255,255,.08) 22% 34%,transparent 34% 54%,rgba(255,255,255,.06) 54% 66%,transparent 66%),linear-gradient(110deg,#0756b4 0%,#0788d6 60%,#08a7ce 100%);
    box-shadow: 0 8px 20px rgba(5,81,151,.14);
  }
  html body[data-route="evolucoes"] .dex-overview::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: 112px;
    bottom: -104px;
    width: 230px;
    height: 230px;
    border: 22px solid rgba(255,255,255,.09);
    border-radius: 50%;
  }
  html body[data-route="evolucoes"] .dex-overview-emblem {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.64);
    border-radius: 50%;
    background: linear-gradient(145deg,#ff5b62,#e82f47);
    box-shadow: 0 7px 16px rgba(5,50,108,.2),inset 0 1px 0 rgba(255,255,255,.35);
  }
  html body[data-route="evolucoes"] .dex-overview-emblem svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 4; }
  html body[data-route="evolucoes"] .dex-overview-count > strong { color: #fff; font-size: 54px; text-shadow: 0 2px 0 rgba(0,49,102,.18); }
  html body[data-route="evolucoes"] .dex-overview-count b { color: #fff; font-size: 18px; }
  html body[data-route="evolucoes"] .dex-overview-count small { color: rgba(255,255,255,.78); }
  html body[data-route="evolucoes"] .dex-overview-stats span { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.13); color: rgba(255,255,255,.82); backdrop-filter: blur(3px); }
  html body[data-route="evolucoes"] .dex-overview-stats b { color: #fff; }
  html body[data-route="evolucoes"] .dex-overview-ring { width: 108px; height: 108px; background: conic-gradient(#ffdb3d var(--dex-progress),rgba(255,255,255,.24) 0); box-shadow: 0 8px 18px rgba(0,55,112,.18); }
  html body[data-route="evolucoes"] .dex-overview-ring::before { inset: 10px; background: #076fc0; }
  html body[data-route="evolucoes"] .dex-overview-ring span { display: flex; flex-direction: column; align-items: center; color: #fff; }
  html body[data-route="evolucoes"] .dex-overview-ring span b { font-size: 17px; font-weight: 720; }
  html body[data-route="evolucoes"] .dex-overview-ring span small { margin-top: 1px; color: rgba(255,255,255,.72); font-size: 8px; font-weight: 550; }

  @media (max-width: 1100px) {
    html body[data-route="evolucoes"] .dex-filter-chips { display: flex; }
    html body[data-route="evolucoes"] .dex-capture-filter { flex: 0 0 310px; scroll-snap-align: start; }
  }
  @media (max-width: 800px) {
    html body[data-route="evolucoes"] .dex-capture-filter { flex-basis: 300px; height: 40px; min-height: 40px; }
    html body[data-route="evolucoes"] .dex-capture-option { padding-inline: 5px; font-size: 9px; }
    html body[data-route="evolucoes"] .dex-capture-option svg { width: 16px; height: 16px; flex-basis: 16px; }
    html body[data-route="evolucoes"] .dex-overview { grid-template-columns: 52px minmax(0,1fr) 72px; grid-template-rows: auto auto; gap: 9px; min-height: 128px; padding: 12px; }
    html body[data-route="evolucoes"] .dex-overview-emblem { grid-column: 1; grid-row: 1; width: 48px; height: 48px; }
    html body[data-route="evolucoes"] .dex-overview-emblem svg { width: 34px; height: 34px; stroke-width: 3.5; }
    html body[data-route="evolucoes"] .dex-overview-count { grid-column: 2; grid-row: 1; gap: 8px; }
    html body[data-route="evolucoes"] .dex-overview-count > strong { font-size: 38px; }
    html body[data-route="evolucoes"] .dex-overview-count b { font-size: 13px; }
    html body[data-route="evolucoes"] .dex-overview-count small { font-size: 9px; }
    html body[data-route="evolucoes"] .dex-overview-stats { grid-column: 1 / -1; grid-row: 2; }
    html body[data-route="evolucoes"] .dex-overview-ring { grid-column: 3; grid-row: 1; width: 68px; height: 68px; }
    html body[data-route="evolucoes"] .dex-overview-ring::before { inset: 7px; }
    html body[data-route="evolucoes"] .dex-overview-ring span b { font-size: 11px; }
    html body[data-route="evolucoes"] .dex-overview-ring span small { font-size: 7px; }
  }

  /* Administração — um livro-caixa visual, sem revelar o conteúdo dos acervos. */
  .admin-access[hidden] { display: none !important; }
  .topbar .admin-access {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 11px;
    align-items: center;
    gap: 6px;
    border: 1px solid #b9d5ee;
    border-radius: 9px;
    background: #f5faff;
    color: #155eaa;
    font-size: 11px;
    font-weight: 720;
  }
  .topbar .admin-access svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .topbar .admin-access:hover { border-color: var(--ah-blue); background: #eaf5ff; }
  .dashboard-admin-access { display: inline-flex; align-items: center; gap: 7px; color: #376f9d; font-size: 10px; font-weight: 680; text-decoration: none; }
  .dashboard-admin-access svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dashboard-admin-access:hover { color: var(--ah-blue); }
  body[data-route="admin"] main { max-width: 1280px; }
  .admin-usage-hero {
    position: relative;
    display: flex;
    min-height: 170px;
    padding: 30px 34px;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid #a9d2ef;
    border-radius: 16px;
    background: linear-gradient(124deg,rgba(255,255,255,.98) 0 43%,rgba(224,243,255,.92) 43% 72%,rgba(196,228,251,.9) 72%),repeating-linear-gradient(132deg,transparent 0 58px,rgba(23,105,224,.08) 58px 92px);
    box-shadow: 0 8px 24px rgba(35,86,136,.08);
  }
  .admin-usage-hero::after {
    content: '';
    position: absolute;
    right: -50px;
    width: 290px;
    height: 290px;
    border: 34px solid rgba(23,105,224,.08);
    border-radius: 50%;
  }
  .admin-usage-hero > div { position: relative; z-index: 1; }
  .admin-usage-hero p { margin: 0 0 6px; color: #2775bd; font-size: 11px; font-weight: 700; }
  .admin-usage-hero h1 { margin: 0 0 8px; color: #0d3768; font-size: clamp(32px,4vw,52px); letter-spacing: -.035em; }
  .admin-usage-hero span { color: #557494; font-size: 14px; }
  .admin-usage-hero > svg { position: relative; z-index: 1; width: 118px; height: 118px; margin-right: 42px; fill: none; stroke: #1769e0; stroke-width: 7; stroke-linecap: round; opacity: .78; }
  .admin-usage-summary {
    display: grid;
    margin: 18px 0 28px;
    grid-template-columns: repeat(4,minmax(0,1fr));
    border: 1px solid #c7dcea;
    border-radius: 13px;
    background: rgba(255,255,255,.9);
    overflow: hidden;
  }
  .admin-usage-summary article { position: relative; min-width: 0; padding: 20px 22px; }
  .admin-usage-summary article + article { border-left: 1px solid #d8e5ef; }
  .admin-usage-summary span { display: block; color: #5b7693; font-size: 11px; font-weight: 650; }
  .admin-usage-summary strong { display: block; margin: 7px 0 3px; color: #0e4b88; font: 760 30px/1 var(--ah-font-display); }
  .admin-usage-summary small { color: #8295a9; font-size: 9px; }
  .admin-usage-head { display: flex; margin: 0 2px 12px; align-items: end; justify-content: space-between; gap: 18px; }
  .admin-usage-head h2 { margin: 0 0 4px; color: #183e68; font-size: 20px; }
  .admin-usage-head p,.admin-usage-head > span { margin: 0; color: #71869d; font-size: 10px; }
  .admin-usage-table-wrap { overflow: hidden; border: 1px solid #cbdce9; border-radius: 13px; background: #fff; }
  .admin-usage-table { width: 100%; }
  .admin-usage-table th { padding: 12px 14px; background: #eaf4fb; color: #4b6c8e; font-size: 9px; letter-spacing: .01em; text-transform: none; }
  .admin-usage-table td { padding: 14px; border-top-color: #e1eaf1; color: #49627d; font-size: 11px; vertical-align: middle; }
  .admin-usage-table td:first-child { min-width: 190px; }
  .admin-usage-table td strong { display: block; color: #143b67; font-size: 12px; }
  .admin-usage-table td small { display: block; max-width: 250px; margin-top: 3px; overflow: hidden; color: #8294a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .admin-usage-table td b { color: #155fa9; font-size: 12px; }
  .admin-usage-meter { display: block; width: 76px; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #e1ebf3; }
  .admin-usage-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1769e0,#12b9d6); }

  @media (max-width: 800px) {
    .topbar .admin-access { width: 42px; height: 42px; min-height: 42px; padding: 0; justify-content: center; }
    .topbar .admin-access b { display: none; }
    .sidebar .admin-access { display: none !important; }
    .dashboard-admin-access { font-size: 9px; }
    .admin-usage-hero { min-height: 132px; padding: 22px 20px; }
    .admin-usage-hero h1 { font-size: 30px; }
    .admin-usage-hero span { display: block; max-width: 220px; font-size: 11px; }
    .admin-usage-hero > svg { width: 76px; height: 76px; margin-right: 3px; stroke-width: 7; }
    .admin-usage-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-usage-summary article { padding: 16px; }
    .admin-usage-summary article + article { border-left: 0; }
    .admin-usage-summary article:nth-child(even) { border-left: 1px solid #d8e5ef; }
    .admin-usage-summary article:nth-child(n+3) { border-top: 1px solid #d8e5ef; }
    .admin-usage-summary strong { font-size: 25px; }
    .admin-usage-head { align-items: start; flex-direction: column; gap: 5px; }
    .admin-usage-table thead { display: none; }
    .admin-usage-table,.admin-usage-table tbody,.admin-usage-table tr,.admin-usage-table td { display: block; width: 100%; }
    .admin-usage-table tr { display: grid; padding: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 18px; border-top: 1px solid #dfe9f1; }
    .admin-usage-table tr:first-child { border-top: 0; }
    .admin-usage-table td { padding: 0; border: 0; }
    .admin-usage-table td:first-child { grid-column: 1 / -1; min-width: 0; padding-bottom: 10px; border-bottom: 1px solid #e4edf4; }
    .admin-usage-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #8799aa; font-size: 8px; font-weight: 650; }
    .admin-usage-table td:first-child::before { display: none; }
    .admin-usage-meter { width: min(100%,100px); }
  }
}

/* 1_086: desktop filters wrap as complete controls; mobile keeps its scroll row.
   The inherited shared toolbar declares nowrap!important in onda8.css. */
@media (min-width: 801px) {
  :root[data-product="mundodex"] body[data-route] :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips) {
    display: flex;
    flex-wrap: wrap !important;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    overflow: visible;
  }
  :root[data-product="mundodex"] body[data-route] :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips) > :is(label,.multi-field,.repeat-control,.button) {
    flex: 0 1 auto;
    width: max-content;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    white-space: normal;
  }
  :root[data-product="mundodex"] body[data-route] :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips) .multi-picker {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }
  :root[data-product="mundodex"] body[data-route] :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips) .multi-picker > summary {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    height: auto;
    padding-block: 9px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: break-word;
  }
  :root[data-product="mundodex"] body[data-route] :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips) :is(.mdx-select,.mdx-select-value,.repeat-control-title) {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: break-word;
  }
}
/* Ajustes finais do detalhe permanecem após as camadas históricas da tela. */
@layer arquivo {
  #card-dialog .card-dialog-title-row { display:flex; align-items:center; gap:10px; min-width:0; }
  #card-dialog .card-dialog-title-row h2 { min-width:0; }
  #card-dialog .card-dialog-title-row > span { margin-left:auto; padding:6px 10px; font-size:12px; }
  #card-dialog .card-dialog-summary { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  #card-dialog .card-dialog-summary > div { align-self:start; padding:0 12px 0 0!important; }
  #card-dialog .card-dialog-summary > div:nth-child(even) { padding-right:0!important; padding-left:14px!important; }
  #card-dialog .card-dialog-summary > div:nth-child(odd) { padding-left:0!important; }
  #card-dialog .card-dialog-art > img { width:min(100%,360px); max-width:360px; }
  #card-dialog .card-dialog-art .card-surface { width:min(100%,360px); }
  #card-dialog .card-dialog-quantity .stepper output { min-width:20px; color:#12365f; font-family:var(--ah-font-ui); font-size:12px; font-weight:720; }

  @media (max-width:800px) {
    #card-dialog .card-dialog-stage { min-height:350px; height:41dvh; max-height:374px; touch-action:none; }
    #card-dialog .card-dialog-art { max-height:306px; touch-action:none; }
    #card-dialog .card-dialog-art > img {
      max-width:min(68vw,232px)!important;
      height:min(35dvh,298px)!important;
      max-height:min(35dvh,298px)!important;
    }
    #card-dialog .card-dialog-art .card-surface {
      max-width:min(68vw,232px)!important;
      height:min(35dvh,298px)!important;
      max-height:min(35dvh,298px)!important;
    }
    #card-dialog .card-dialog-context-links { grid-template-columns:1fr; gap:7px; }
    #card-dialog .card-context-link { grid-template-columns:25px minmax(0,1fr) 12px; min-height:41px; padding:7px 9px; gap:7px; }
    #card-dialog .card-context-icon { width:25px; height:25px; font-size:14px; }
    #card-dialog .card-context-link small { font-size:10px; line-height:1.05; }
    #card-dialog .card-context-link b { overflow:visible; font-size:11px; line-height:1.15; text-overflow:clip; white-space:normal; }
    #card-dialog .card-dialog-title-row > span { padding:5px 9px; font-size:11px; }
    #card-dialog .card-dialog-summary {
      grid-template-columns:repeat(2,minmax(0,1fr));
      grid-template-rows:repeat(2,auto);
      gap:14px 0;
    }
    #card-dialog .card-dialog-summary > div:nth-child(4) { grid-column:auto; }
    #card-dialog .card-dialog-controls { grid-template-columns:minmax(72px,1fr) minmax(72px,1fr) minmax(96px,1.2fr); align-items:end; }
    #card-dialog .card-dialog-quantity { grid-column:auto; }
    #card-dialog .card-dialog-quantity .stepper { min-width:0; width:100%; }
    #card-dialog .card-dialog-quantity .stepper button { width:30px; }
    #card-dialog .card-dialog-quantity .stepper output { min-width:20px; font-size:11px; }
  }

  @media (max-width:350px) {
    #card-dialog .card-dialog-context-links { grid-template-columns:1fr; }
    #card-dialog .card-dialog-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #card-dialog .card-dialog-quantity { grid-column:1 / -1; }
  }

  /* 1_033 local: only an open binder uses the fluid desktop workspace.
     The library and every other screen keep their previous container sizes.
     Reading and pocket editing share this same live layout; mobile is unchanged. */
  @media (min-width:1101px) {
    :root[data-product="mundodex"] .workspace > main.vbind-module:has(.vbind-layout),
    :root[data-product="mundodex"] .workspace > main.vbind-module:has(.vbind-layout) ~ footer.legal-footer {
      width: calc(100% - 2 * var(--ah-space-3));
      max-width: none;
      margin-inline: var(--ah-space-3);
    }
  }
}
#card-dialog .card-dialog-art { position:relative; }
#card-dialog .card-dialog-art > .image-fallback { color:var(--ink); font-size:14px; }
#card-dialog .card-dialog-art > .image-fallback[hidden] { display:none; }
#card-dialog .card-dialog-art:has(> .image-fallback:not([hidden])) { min-height:min(31dvh,267px); }
.acervo-card .image-fallback[hidden] { display:none; }

/* UX078: native reading actions, independent from adding a copy. */
[data-card] .card-detail-trigger {
  display: inline-block; max-width: 100%; min-height: 44px; padding: 4px 0;
  border: 0; border-radius: 3px; box-shadow: none; background: transparent;
  color: inherit; font: inherit; line-height: inherit; text-align: start;
  white-space: normal; overflow-wrap: anywhere; cursor: pointer; scroll-margin-block: 100px;
}
[data-card] .card-detail-trigger:is(:hover,:focus-visible) {
  background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 3px;
}
[data-card] .card-detail-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Keep species identities and status readable; let the grid and height adapt. */
:root[data-product="mundodex"] body[data-route="pokedex"] .dex-species-copy strong {
  font-size: 14px; line-height: 1.35; white-space: normal; overflow: visible; overflow-wrap: anywhere;
}
:root[data-product="mundodex"] body[data-route="pokedex"] :is(.dex-species-copy small,.dex-species-status,.dex-species-number) {
  font-size: 12px; line-height: 1.4; white-space: normal; overflow: visible; overflow-wrap: anywhere;
}
:root[data-product="mundodex"] body[data-route="pokedex"] .dex-species-link { min-height: 176px; height: auto; padding: 20px 6px 8px; }
:root[data-product="mundodex"] body[data-route="pokedex"] .dex-favorite { width: 44px; height: 44px; }
:root[data-product="mundodex"] body[data-route="inicio"] :is(.dashboard-summary-card small,.dashboard-quick-card > strong,.dashboard-masterset-copy > strong) { font-size: 14px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
:root[data-product="mundodex"] body[data-route="inicio"] :is(.dashboard-section-cta,.dashboard-masterset-copy small,.dashboard-masterset-copy > span,.feature-card-cta) { font-size: 12px; line-height: 1.4; white-space: normal; }
@media(max-width: 600px) {
  :root[data-product="mundodex"] body[data-route="pokedex"] :is(.dex-grid,.dex-species-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  :root[data-product="mundodex"] body[data-route="inicio"] .dashboard-quick-grid { grid-template-columns: 1fr; }
}
:root[data-product="mundodex"] body[data-route="pokedex"] :is(.dex-species-copy small,.dex-species-status,.dex-species-number) { color: var(--ah-ink-soft); }
:root[data-product="mundodex"] body[data-route="pokedex"] .dex-species-card.owned .dex-species-status { color: #14714e; }
:root[data-product="mundodex"][data-color-mode="dark"] body[data-route="pokedex"] .dex-species-card.owned .dex-species-status { color: var(--ah-green); }

/* 1_087: shared card galleries follow the mobile/desktop layout boundary.
   Three columns through 800px; five above. Physical binder grids are separate. */
:root[data-product="mundodex"] body:is([data-route="acervo"],[data-route="sets"],[data-route="colecao"],[data-route="pokemon"],[data-route="repetidas"]) #main .card-grid {
  grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px 12px; align-items: stretch;
}
@media(max-width:800px) {
  :root[data-product="mundodex"] body:is([data-route="acervo"],[data-route="sets"],[data-route="colecao"],[data-route="pokemon"],[data-route="repetidas"]) #main .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
:root[data-product="mundodex"] body .card-grid .acervo-card { min-width: 0; height: auto; align-self: stretch; padding: 6px; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; height: auto; padding: 8px 2px 2px; }
:root[data-product="mundodex"] body .card-grid .acervo-card :is(.acervo-card-primary,.acervo-card-secondary) { display: grid; grid-template-columns: minmax(0,1fr); gap: 4px; min-width: 0; min-height: 0; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-content h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; white-space: normal; overflow: visible; overflow-wrap: break-word; color: var(--ah-ink); }
:root[data-product="mundodex"] body .card-grid .acervo-card :is(.acervo-card-number,.acervo-card-variant,.acervo-card-rarity,.card-set-line,.repeat-card-count) { min-width: 0; margin: 0; font-size: 14px; line-height: 1.35; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; color: var(--ah-ink-soft); }
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-card-number { text-align: start; justify-self: start; font-variant-numeric: tabular-nums; }
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-card-rarity { justify-content: start; text-align: start; align-items: baseline; }
:root[data-product="mundodex"] body .card-grid .acervo-card .rarity-name { white-space: normal; overflow: visible; min-width: 0; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-meta-footer { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; margin-top: auto; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-set-line { flex: 1 1 120px; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-secondary-actions { display: flex; flex: 0 1 auto; max-width: 100%; min-width: 0; gap: 4px; flex-wrap: wrap; }
:root[data-product="mundodex"] body .card-grid .acervo-card :is(.wish-button,.trade-button) { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card { min-height: 44px; height: auto; padding: 6px 2px; font-size: 14px; line-height: 1.2; white-space: normal; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-detail-trigger { overflow-wrap: break-word; }
@media(max-width:600px) {
  :root[data-product="mundodex"] body:is([data-route="acervo"],[data-route="sets"],[data-route="colecao"],[data-route="pokemon"],[data-route="repetidas"]) #main .card-grid { gap: 12px 6px; }
  :root[data-product="mundodex"] body .card-grid .acervo-card { padding: 3px; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .card-content { padding: 6px 1px 2px; gap: 5px; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .card-content h3 { font-size: 14px; }
  :root[data-product="mundodex"] body .card-grid .acervo-card :is(.acervo-card-number,.acervo-card-variant,.acervo-card-rarity,.card-set-line,.repeat-card-count) { font-size: 12px; }
}

:root[data-product="mundodex"] body .card-grid .acervo-card .repeat-card-count {
  display: block; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--ah-ink); font-weight: 600;
}
:root[data-product="mundodex"] body .card-grid .acervo-card .repeat-card-count span { color: inherit; opacity: 1; }
:root[data-product="mundodex"] body .card-grid .acervo-card :is(.repeat-card-count,[data-collection-copy-count])[hidden] { display: none; }

/* 1_081: the count accompanies the heart; other actions may wrap separately. */
:root[data-product="mundodex"] body .card-grid .acervo-card .card-set-line { flex-basis: 100%; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-secondary-actions { flex: 1 1 100%; align-items: center; }
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary {
  display: flex; flex: 1 1 100px; align-items: center; gap: 4px; min-width: 0;
}
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .wish-button { flex: 0 0 44px; }
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .repeat-card-count {
  flex: 1 1 0; min-width: 0; overflow-wrap: anywhere;
}
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .repeat-card-count span {
  display: block; min-width: 0; white-space: normal; overflow-wrap: anywhere;
}
@media(max-width:600px) {
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card { font-size: 13px; }
}

/* 1_082: compact visible action, with the full mobile touch area preserved. */
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card-label { display: contents; }
@media(max-width:600px) {
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card,
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card:is(:hover,:focus-visible) {
    display: flex; align-items: flex-end; justify-content: center;
    height: 44px; min-height: 44px; padding: 0 2px 2px;
    border: 0; background: transparent; box-shadow: none; text-shadow: none;
    font-size: 12px; line-height: 1.05;
  }
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card-label {
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box; width: 100%; min-width: 0; height: 28px;
    padding: 0 2px; border: 1px solid #75baff; border-radius: 8px;
    background: #e5f3ff; color: #07569e; white-space: normal;
  }
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card:hover .acervo-add-card-label { background: #f3f9ff; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card:focus-visible .acervo-add-card-label { outline: 2px solid #07569e; outline-offset: 1px; }
}

/* 1_083: lighter add-action backgrounds across the shared galleries. */
@media(min-width:601px) {
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card { background: rgba(255,255,255,.52); color: #071c32; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card:is(:hover,:focus-visible) { background: rgba(255,255,255,.72); }
  :root[data-product="mundodex"][data-color-mode="dark"] body .card-grid .acervo-card .acervo-add-card { background: rgba(229,243,255,.86); color: #07569e; }
  :root[data-product="mundodex"][data-color-mode="dark"] body .card-grid .acervo-card .acervo-add-card:is(:hover,:focus-visible) { background: rgba(243,249,255,.94); }
}
@media(max-width:600px) {
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card-label { background: rgba(229,243,255,.86); }
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-add-card:is(:hover,:focus-visible) .acervo-add-card-label { background: rgba(243,249,255,.94); }
}

/* 1_084: explicit gallery control sizing at every viewport, with visible translucency. */
/* Shared gallery action: visible control is smaller than its native hit target. */
:root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card,
:root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card:is(:hover,:focus-visible) {
  display: flex; align-items: flex-end; justify-content: center;
  height: 44px; min-height: 44px; padding: 0 2px 2px;
  border: 0; background: transparent; box-shadow: none; text-shadow: none;
  font-size: 12px; line-height: 1;
}
:root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card-label {
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; flex: 1 1 auto; width: 100%; max-width: 100%; min-width: 0; height: 24px;
  padding: 0 2px; border: 1px solid rgba(62,110,152,.6); border-radius: 4px;
  background: rgba(246,251,255,.55); color: #031a2f;
  font-size: inherit; font-weight: 600; line-height: 1; white-space: normal; text-shadow: none;
}
:root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card:is(:hover,:focus-visible) .acervo-add-card-label { background: rgba(246,251,255,.66); }
:root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card:focus-visible { outline: 0; }
:root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card:focus-visible .acervo-add-card-label { outline: 2px solid #031a2f; outline-offset: 1px; }
@media(max-width:600px) {
  :root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card,
  :root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card:is(:hover,:focus-visible) { font-size: 11px; }
  :root[data-product="mundodex"] #main .card-grid .acervo-card .acervo-add-card-label { padding-inline: 0; }
}

/* Desktop appearance belongs below sign-out, outside the reading workspace. */
@media(min-width:801px){
  :root[data-product="mundodex"] .workspace>footer.legal-footer{display:none!important}
  :root[data-product="mundodex"] .sidebar-appearance:not([hidden]){display:flex;justify-content:center;flex:none;margin:10px 8px 0;padding:0}
  :root[data-product="mundodex"] .sidebar-appearance .color-mode-control{display:flex;width:auto}
  :root[data-product="mundodex"] .sidebar-appearance .color-mode-options{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.16);padding:3px}
  :root[data-product="mundodex"] .sidebar-appearance .color-mode-options button{width:38px;height:36px;min-height:36px;padding:4px;color:#b8c7da}
  :root[data-product="mundodex"] .sidebar-appearance .color-mode-options button>span{font-size:19px}
  :root[data-product="mundodex"] .sidebar-appearance .color-mode-options button[aria-pressed="true"]{background:#204467;color:#fff;box-shadow:none}
  :root[data-product="mundodex"] .sidebar-appearance .color-mode-options button:focus-visible{outline:2px solid #4ed6e8;outline-offset:2px}
}

@media(min-width:801px){
  :root[data-product="mundodex"] .sidebar{height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain}
  :root[data-product="mundodex"] .sidebar>*{flex-shrink:0}
}
/* Short notebooks keep sign-out and all appearance choices in view. */
@media(min-width:801px) and (max-height:820px){
  :root[data-product="mundodex"] .sidebar{padding:14px 14px 12px}
  :root[data-product="mundodex"] .sidebar .sidebar-brand-lockup{margin-bottom:14px;padding-block:4px}
  :root[data-product="mundodex"] .sidebar .sidebar-brand-logo{height:90px;object-fit:contain}
  :root[data-product="mundodex"] .sidebar>.simulated-account{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center;margin:4px 4px 12px;padding:8px 0 10px}
  :root[data-product="mundodex"] .sidebar .simulated-account__avatar{width:44px;height:44px}
  :root[data-product="mundodex"] .sidebar .nav-label{margin-bottom:6px}
  :root[data-product="mundodex"] .sidebar>nav:not(.sidebar-legal){gap:2px}
  :root[data-product="mundodex"] .sidebar>nav:not(.sidebar-legal)>a{min-height:38px;padding-block:7px}
  :root[data-product="mundodex"] .sidebar .sidebar-legal{padding-top:10px}
  :root[data-product="mundodex"] .sidebar .sidebar-bottom{margin-top:6px;padding-top:8px}
  :root[data-product="mundodex"] .sidebar .simulated-logout{height:36px;min-height:36px;padding:6px 10px}
  :root[data-product="mundodex"] .sidebar .sidebar-appearance{margin-top:8px}
}

/* 1_097: registered values share the existing copy/action area. */
:root[data-product="mundodex"] .registered-card-price {
  display:inline-flex; align-items:baseline; justify-content:flex-start; flex-wrap:wrap;
  gap:0 3px; min-width:0; max-width:100%; color:var(--ah-ink);
  font-size:12px; line-height:1.15; font-variant-numeric:tabular-nums;
}
:root[data-product="mundodex"] .registered-card-price b { font:inherit; font-weight:650; overflow-wrap:anywhere; }
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .repeat-card-count {
  display:flex; flex-direction:column; justify-content:center; gap:1px;
}
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .registered-card-price {
  display:flex; flex-direction:row; white-space:normal; font-size:12px;
}
:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .registered-card-price>span {
  display:inline; white-space:nowrap; overflow-wrap:normal;
}
:root[data-product="mundodex"] body .card-grid .acervo-card [hidden] { display:none; }
:root[data-product="mundodex"] body .card-grid .acervo-card-preview .repeat-card-count {
  display:flex; align-items:baseline; justify-content:space-between; gap:4px;
}
:root[data-product="mundodex"] .card-dialog-position {
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:4px 10px;
  box-sizing:border-box; max-width:calc(100% - 24px);
}
:root[data-product="mundodex"] .card-dialog-position .registered-card-price { color:var(--ah-ink); }
:root[data-product="mundodex"] main.vbind-module .vbind-candidate-identity {
  display:flex; align-items:baseline; justify-content:space-between; gap:3px; min-width:0;
}
:root[data-product="mundodex"] main.vbind-module .vbind-candidate-identity>.registered-card-price { font-size:11px; }

:root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .repeat-card-count[hidden] { display:none; }

:root[data-product="mundodex"] .copy-count-compact { display:none; }
@media(max-width:600px) {
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .repeat-card-count.has-registered-price {
    display:block; line-height:14px;
  }
  :root[data-product="mundodex"] body .card-grid .acervo-card .has-registered-price .copy-count-full { display:none; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .has-registered-price .copy-count-compact { display:inline; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .has-registered-price [data-collection-copy-count] { display:inline; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .acervo-copy-summary .has-registered-price .registered-card-price { display:contents; line-height:14px; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .has-registered-price .registered-card-price b { display:inline; }
}
/* Preserve the full count for assistive technology; compact only priced rows. */
:root[data-product="mundodex"] body .card-grid .acervo-card .repeat-card-count [data-collection-copy-count] .copy-count-compact { display:none; }
@media(max-width:600px) {
  :root[data-product="mundodex"] body .card-grid .acervo-card .repeat-card-count.has-registered-price [data-collection-copy-count] { display:inline; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .repeat-card-count.has-registered-price [data-collection-copy-count] .copy-count-full { display:none; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .repeat-card-count.has-registered-price [data-collection-copy-count] .copy-count-compact,
  :root[data-product="mundodex"] body .card-grid .acervo-card .repeat-card-count.has-registered-price .copy-count-compact [aria-hidden="true"] { display:inline; }
}

/* Chooser prices sit within the existing thumbnail, never add a caption row. */
:root[data-product="mundodex"] main.vbind-module .vbind-candidate .vbind-art>.registered-card-price {
  position:absolute; right:4px; bottom:4px; z-index:4; box-sizing:border-box;
  max-width:calc(100% - 8px); padding:3px 4px; border-radius:4px;
  border:1px solid var(--binder-line); background:var(--ah-paper); color:var(--ah-ink);
  font-size:12px; line-height:1.15; pointer-events:none;
}

/* 1_098: normal metadata typography, with quantity and price on one line. */
:root[data-product="mundodex"] body .card-grid .acervo-card .card-meta-footer { display:block; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-footer-main { display:flow-root; width:100%; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-footer-actions {
  float:right; display:flex; flex-direction:row; flex-wrap:nowrap; gap:4px;
  margin:0 0 0 6px; min-width:0; max-width:none;
}
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics {
  display:flex; flex-direction:row; align-items:baseline; justify-content:flex-start;
  gap:6px; margin:4px 0 0; padding:0; min-width:0; max-width:100%;
  color:var(--ah-ink-soft); font-family:var(--ah-font-ui); font-size:14px;
  font-weight:400; line-height:1.35; white-space:nowrap;
  overflow-x:auto; overflow-y:hidden; scrollbar-width:none;
}
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics::-webkit-scrollbar { display:none; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics>span {
  display:inline-flex; flex:0 0 auto; min-width:0; font:inherit; color:inherit; white-space:nowrap;
}
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics .registered-card-price { gap:3px; flex-wrap:nowrap; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics .registered-card-price :is(span,b) { display:inline; font:inherit; color:inherit; white-space:nowrap; overflow-wrap:normal; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics .copy-count-full { display:inline; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics .copy-count-compact { display:none; }
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics[hidden],
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics [data-collection-copy-count][hidden],
:root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics [data-collection-copy-count][hidden]+.card-price-separator { display:none; }
@media(max-width:600px) {
  :root[data-product="mundodex"] body .card-grid .acervo-card .card-footer-actions { flex-direction:column; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics { font-size:12px; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics.has-registered-price [data-collection-copy-count] .copy-count-full { display:none; }
  :root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics.has-registered-price [data-collection-copy-count] .copy-count-compact,
  :root[data-product="mundodex"] body .card-grid .acervo-card .card-inline-metrics.has-registered-price .copy-count-compact [aria-hidden="true"] { display:inline; }
}

:root[data-product="mundodex"][data-color-mode="dark"] body .card-grid .acervo-card :is(.card-set-line,.card-inline-metrics) { color:var(--ah-ink-soft); }
