/* PokéScan MX 0.34 — Mobile-first app shell (escritorio intacto) */
.mobile-app-topbar,.mobile-bottom-nav,.mobile-home,.mobile-profile,.mobile-prices-intro{display:none}
.app-ico{width:22px;height:22px;flex:none;display:inline-block;vertical-align:middle}
.pwa-landing-install{border:0;background:transparent;cursor:pointer;display:none!important}
.pwa-install-nudge{display:none}
.pwa-installed [data-pwa-install]{display:none!important}
[hidden]{display:none!important}
@media(max-width:860px){
 :root{--app-bg:#f3f6fc;--app-ink:#142449;--app-muted:#697b9e;--app-blue:#3269e9;--app-line:#e4eafa}
 html{scroll-padding-top:100px;overflow-x:clip;-webkit-text-size-adjust:100%}
 body.dashboard-page{background:var(--app-bg);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--app-ink);overflow-x:clip;min-height:100dvh}
 body.dashboard-page .header{display:none}
 body.dashboard-page .shell{padding:0 18px;max-width:620px}
 body.dashboard-page main.shell{padding-bottom:calc(107px + env(safe-area-inset-bottom,0px))}
 body.dashboard-page footer{display:none}
 body.dashboard-page footer p{line-height:1.5}
 .mobile-app-topbar{position:sticky;top:0;z-index:60;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:68px;padding:calc(9px + env(safe-area-inset-top,0px)) 20px 10px;background:rgba(248,250,255,.95);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:1px solid rgba(223,231,246,.9)}
 .mobile-app-brand{display:inline-flex;align-items:center;gap:10px;color:#173b87;text-decoration:none;font-size:19px;font-weight:900;letter-spacing:-.8px;line-height:1.02}
 .mobile-app-brand b{color:#e94b61}.mobile-app-brand small{display:block;color:#8192b0;font-size:9px;letter-spacing:2.3px;margin-top:5px}
 .mobile-brand-orb{position:relative;width:39px;height:39px;border-radius:13px;flex:none;background:radial-gradient(circle at 35% 30%,#ff938d,#ed485c 47%,#161f38 48% 56%,#f8fcff 57%);border:3px solid #edf2ff;box-shadow:0 6px 15px #224b9b23}
 .mobile-brand-orb:before{content:'';position:absolute;width:11px;height:11px;border:3px solid #213252;border-radius:50%;background:#fff;left:11px;top:11px;box-shadow:0 0 0 2px #fff}
 .mobile-top-actions{display:flex;gap:11px;align-items:center}.mobile-online-dot{width:9px;height:9px;border-radius:50%;background:#2dc690;box-shadow:0 0 0 4px #2dc69022}
 .mobile-profile-shortcut{height:42px;width:42px;display:grid;place-items:center;border-radius:15px;border:1px solid #e2eafa;background:#fff;color:#2e5bb6;box-shadow:0 4px 15px #244e9920}
 .mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:85;padding:9px 8px calc(7px + env(safe-area-inset-bottom,0px));min-height:calc(75px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-top:1px solid #e8edf7;box-shadow:0 -12px 36px #122a6210}
 .mobile-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative;min-width:0;min-height:56px;border:0;border-radius:14px;background:transparent;color:#8492ac;text-decoration:none;font-weight:700;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .mobile-nav-icon{display:grid;place-items:center;height:26px;width:44px}.mobile-nav-icon .app-ico{height:23px;width:23px;transition:transform .16s ease}
 .mobile-nav-label{font-size:10px;letter-spacing:-.2px}.mobile-nav-item[aria-current=page]{color:#2457bc;background:#f0f5ff}.mobile-nav-item:active .app-ico{transform:scale(.9)}
 .mobile-nav-item.is-main .mobile-nav-icon{margin-top:-22px;width:54px;height:54px;border-radius:19px;background:linear-gradient(140deg,#447af1,#174bbf);color:#fff;box-shadow:0 8px 20px #255dd052;border:4px solid #fff;transform:rotate(-6deg)}
 .mobile-nav-item.is-main .mobile-nav-icon .app-ico{transform:rotate(6deg);width:26px;height:26px}
 .mobile-nav-item.is-main[aria-current=page]{background:transparent;color:#2457bc}
 .mobile-nav-item:focus-visible,.mobile-account-list a:focus-visible,.mobile-account-list button:focus-visible,.mobile-quick-card:focus-visible,.mobile-portfolio-footer button:focus-visible{outline:3px solid #ffb900;outline-offset:2px}
 .mobile-home{display:none;padding-top:22px;animation:mobileEnter .24s ease both}
 body.dashboard-page[data-mobile-screen=home] #mobileHome{display:block}
 .mobile-hello{margin:1px 0 20px}.mobile-kicker{font-size:10px;letter-spacing:2px;color:#5270a6;font-weight:850}
 .mobile-hello h1{font-weight:860;letter-spacing:-1.4px;font-size:clamp(25px,6.5vw,33px);line-height:1.16;color:#142b5a;margin:7px 0 6px;overflow-wrap:anywhere}
 .mobile-hello p{margin:0;color:var(--app-muted);font-size:13px}
 .mobile-portfolio-card{position:relative;overflow:hidden;isolation:isolate;border-radius:24px;padding:25px 22px 17px;color:#fff;background:linear-gradient(123deg,#172c64 0%,#183f9f 58%,#476fe6 100%);box-shadow:0 16px 32px #2555ae32}
 .mobile-portfolio-card:before{content:'';position:absolute;z-index:-1;border:1px solid #ffffff25;width:265px;height:265px;right:-120px;top:-145px;border-radius:50%;box-shadow:0 0 0 36px #ffffff0a,0 0 0 75px #ffffff07}
 .mobile-portfolio-label{display:block;color:#bbd4ff;font-size:10px;font-weight:800;letter-spacing:1.5px;padding-right:46px}
 .mobile-portfolio-card>strong{font-size:clamp(32px,10vw,46px);letter-spacing:-1.8px;font-weight:850;line-height:1.25;display:block;margin-top:14px;overflow-wrap:anywhere}
 .mobile-portfolio-unit{font-size:11px;color:#c2d5fb}.mobile-portfolio-footer{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:23px;padding-top:13px;border-top:1px solid #ffffff33}
 .mobile-portfolio-footer>span{font-size:11px;color:#e6ecff;display:inline-flex;align-items:center;gap:5px}.mobile-portfolio-footer .app-ico{width:16px;height:16px}
 .mobile-portfolio-footer button{display:flex;align-items:center;gap:3px;padding:7px 0;border:0;background:transparent;color:#fff;font-size:11px;font-weight:800;white-space:nowrap}.mobile-portfolio-footer button .app-ico{width:15px;height:15px}
 .mobile-orb-art{position:absolute;right:25px;top:33px;width:43px;height:43px;border-radius:14px;background:#ffffff1b;transform:rotate(18deg);display:grid;place-items:center}.mobile-orb-art span{width:22px;height:22px;border-radius:50%;background:linear-gradient(180deg,#ff858d 45%,#1b2751 45% 55%,#fff 55%);border:2px solid #dae7ff}.mobile-orb-art span:before{content:'';position:absolute;top:18px;left:17px;width:9px;height:9px;border-radius:50%;background:#fff;border:2px solid #24345b}
 .mobile-section-head{margin:27px 0 15px}.mobile-section-head h2{font-size:20px;letter-spacing:-.6px;margin:0;color:#18366b}.mobile-section-head p{margin:3px 0 0;color:#7584a0;font-size:12px}
 .mobile-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mobile-quick-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:146px;padding:16px 14px 14px;border:1px solid #e4eafb;border-radius:20px;background:#fff;box-shadow:0 5px 18px #244b8a0a;text-align:left;color:#193967;text-decoration:none;cursor:pointer;overflow:hidden}
 .mobile-quick-icon{height:43px;width:43px;border-radius:14px;background:#eef4ff;color:#346ce5;display:grid;place-items:center;margin-bottom:13px}.mobile-quick-scan{background:linear-gradient(150deg,#fff 0%,#f0f6ff 100%);border-color:#cbdcff}.mobile-quick-scan .mobile-quick-icon{background:#2b62db;color:#fff;box-shadow:0 6px 12px #3467d240}
 .mobile-quick-card strong{font-size:13px;line-height:1.3}.mobile-quick-card small{font-size:11px;color:#7c8ba4;margin-top:3px}.mobile-quick-arrow{position:absolute;right:14px;top:23px;color:#9dafcf}.mobile-quick-arrow .app-ico{width:15px;height:15px}
 .mobile-home-tip{display:flex;gap:11px;margin-top:20px;padding:15px;border:1px solid #dce8ff;border-radius:17px;background:#eaf2ff;color:#536c9d;align-items:flex-start}.mobile-home-tip .app-ico{width:21px;height:21px;color:#2f67d9}.mobile-home-tip p{font-size:12px;margin:0;line-height:1.55}.mobile-home-tip strong{color:#2556b1;display:block}
 .mobile-install-link{margin-top:14px;background:transparent;color:#2b5ac4;border:0;width:100%;min-height:48px;font-weight:800;font-size:12px;display:flex;align-items:center;justify-content:center;gap:8px}.mobile-install-link .app-ico{height:17px;width:17px}
 body.dashboard-page .hero{display:none}
 body.dashboard-page .stats{display:none}
 body.dashboard-page .desktop-tabs{display:none}
 body.dashboard-page #legacyMigrate{display:none}
 body.dashboard-page[data-mobile-screen=home] #legacyMigrate:not([hidden]){display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
 body.dashboard-page[data-mobile-screen=home] .stats{display:grid;grid-template-columns:1fr 1fr;margin:17px 0 0;gap:10px}
 body.dashboard-page[data-mobile-screen=home] .stats .stat{padding:13px 12px;border-radius:17px;box-shadow:0 4px 18px #254b8b09}
 body.dashboard-page[data-mobile-screen=home] .stat:first-child{display:none}
 body.dashboard-page .stat span{font-size:9px;letter-spacing:.6px}
 body.dashboard-page .stat strong{font-size:22px;letter-spacing:-.6px}
 body.dashboard-page .stat small{font-size:10px}
 body.dashboard-page[data-mobile-screen=scan] #identifyTab,body.dashboard-page[data-mobile-screen=collection] #collectionTab,body.dashboard-page[data-mobile-screen=prices] #collectionTab{animation:mobileEnter .24s ease both}
 body.dashboard-page #identifyTab,body.dashboard-page #collectionTab{padding-top:21px}
 body.dashboard-page .workspace{grid-template-columns:1fr}
 body.dashboard-page .panel{border:1px solid #e4ebf8;box-shadow:0 5px 24px #173c850a;border-radius:21px;padding:17px}
 body.dashboard-page .panel-title{margin-bottom:16px;align-items:center;flex-wrap:wrap}
 body.dashboard-page .panel-title h2{font-size:21px;letter-spacing:-.6px}
 body.dashboard-page .step{font-size:10px;letter-spacing:1.7px;color:#376add}
 body.dashboard-page .subtle-tag{font-size:10px}
 body.dashboard-page .dropzone{border:1.5px dashed #8fb4ff;border-radius:20px;background:linear-gradient(160deg,#f0f6ff,#fff);min-height:315px;padding:26px 14px;position:relative;overflow:hidden}
 body.dashboard-page .dropzone:before,body.dashboard-page .dropzone:after{content:'';position:absolute;width:38px;height:38px;border:3px solid #487de6;opacity:.42;pointer-events:none}
 body.dashboard-page .dropzone:before{top:14px;left:14px;border-right:0;border-bottom:0;border-radius:9px 0 0 0}
 body.dashboard-page .dropzone:after{bottom:14px;right:14px;border-left:0;border-top:0;border-radius:0 0 9px 0}
 body.dashboard-page .camera-icon{display:grid;place-items:center;width:70px;height:70px;font-size:42px;background:#e4efff;border-radius:23px;margin:0 auto 16px;color:#2762d0;text-shadow:none}
 body.dashboard-page .dropzone strong{font-size:19px;letter-spacing:-.4px;color:#193a7b}
 body.dashboard-page .dropzone p{font-size:13px;line-height:1.5;margin:8px 0 18px}
 body.dashboard-page .dropzone small{font-size:10px;line-height:1.5;margin-top:16px}
 body.dashboard-page .photo-choice{display:flex;flex-direction:column;gap:9px;align-items:stretch;width:100%}
 body.dashboard-page .photo-choice button{min-height:51px;min-width:185px;border-radius:14px;font-size:14px}
 body.dashboard-page .primary{border-radius:13px;min-height:47px}
 body.dashboard-page .ghost{border-radius:13px;min-height:43px}
 body.dashboard-page .photo-preview img{max-height:350px;max-width:min(78vw,260px);object-fit:contain}
 body.dashboard-page .details{margin-top:14px}
 body.dashboard-page .details-grid{display:grid;grid-template-columns:1fr;gap:12px}
 body.dashboard-page .detail-img img{max-height:330px}
 body.dashboard-page .detail-body h2{font-size:25px}
 body.dashboard-page .valuation strong{font-size:29px}
 body.dashboard-page .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.dashboard-page input,body.dashboard-page select{font-size:16px;min-height:47px}
 body.dashboard-page #addCard{min-height:51px}
 body.dashboard-page #collectionTab>.panel{display:block}
 body.dashboard-page[data-mobile-screen=prices] #collectionTab>.panel{display:none}
 body.dashboard-page[data-mobile-screen=collection] #pricesOverview{display:none}
 body.dashboard-page[data-mobile-screen=prices] #pricesOverview{display:block}
 .mobile-prices-intro{display:block;margin:0 2px 17px}.mobile-prices-intro h2{font-size:27px;letter-spacing:-1px;margin:5px 0 7px;color:#173668}.mobile-prices-intro p{color:#71819c;font-size:13px;margin:0}
 body.dashboard-page #collectionTab>.panel .panel-title{align-items:start}
 body.dashboard-page .collection-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.dashboard-page .collection-controls input{max-width:none;grid-column:1/-1}
 body.dashboard-page .collection-controls #resetCollectionFilters,body.dashboard-page .collection-controls #clearBtn{font-size:12px;padding:7px 8px}
 body.dashboard-page .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.dashboard-page .collection-card{padding:10px;border-radius:17px;min-width:0}
 body.dashboard-page .collection-card img{height:180px;object-fit:contain;border-radius:10px;background:#f7f9ff}
 body.dashboard-page .collection-card h3{font-size:13px;white-space:normal;overflow-wrap:anywhere}
 body.dashboard-page .collection-card button{min-height:36px}
 body.dashboard-page .collection-dashboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.dashboard-page .metric{padding:14px;border-radius:18px}
 body.dashboard-page .metric>span{font-size:9px;letter-spacing:.35px;overflow-wrap:anywhere}
 body.dashboard-page .metric>strong{font-size:22px}.metric>strong.metric-name{font-size:14px}
 body.dashboard-page .history-summary{grid-template-columns:1fr 1fr;gap:10px}
 body.dashboard-page .history-graph{max-width:100%;overflow-x:auto}
 body.dashboard-page .rank-grid{grid-template-columns:1fr}
 body.dashboard-page .toast{bottom:calc(90px + env(safe-area-inset-bottom,0px));z-index:100;white-space:normal}
 .mobile-profile{display:none;padding-top:24px;animation:mobileEnter .24s ease both}
 body.dashboard-page[data-mobile-screen=profile] #mobileProfile{display:block}
 .mobile-profile-card{display:flex;align-items:center;gap:15px;border-radius:23px;color:#fff;background:linear-gradient(130deg,#1a316a,#3267ce);padding:25px 18px;box-shadow:0 12px 28px #2757ac30}
 .mobile-avatar{height:58px;width:58px;display:grid;place-items:center;border-radius:19px;background:#ffffff27;border:1px solid #ffffff44}.mobile-avatar .app-ico{height:30px;width:30px}
 .mobile-profile-card span{font-size:10px;letter-spacing:1.4px;color:#c3d6ff;font-weight:800}.mobile-profile-card h2{font-size:21px;margin:3px 0;line-height:1.2;overflow-wrap:anywhere}.mobile-profile-card p{font-size:12px;color:#e3ecff;margin:4px 0 0}
 .mobile-account-list{display:grid;gap:9px}.mobile-account-list>a,.mobile-account-list>button{display:flex;align-items:center;gap:13px;text-align:left;background:#fff;border:1px solid #e1e9f7;border-radius:17px;padding:14px;color:#3263c9;text-decoration:none;min-height:70px;font:inherit;width:100%}
 .mobile-account-list>a>.app-ico:first-child,.mobile-account-list>button>.app-ico:first-child{height:24px;width:24px}
 .mobile-account-list>a>span,.mobile-account-list>button>span{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.mobile-account-list strong{font-size:13px;color:#17386e}.mobile-account-list small{font-size:11px;color:#7b8ba6}.mobile-account-list .app-ico:last-child{height:17px;width:17px;color:#9dafca}
 .mobile-profile-security{display:flex;align-items:center;gap:9px;font-size:12px;color:#6b7ea1;margin:22px 3px}.mobile-profile-security .app-ico{color:#28a678}
 .mobile-app-legal{font-size:11px;line-height:1.6;color:#8a99ae;margin:25px 4px}.mobile-app-legal a{color:#315db1}
 .mobile-signout{display:flex;align-items:center;justify-content:center;gap:9px;min-height:51px;width:100%;border:1px solid #f6d2d6;border-radius:15px;background:#fff6f7;color:#c74152;font-weight:800}.mobile-signout .app-ico{width:19px;height:19px}
 body:not(.dashboard-page) .mobile-external-nav{display:grid}
 body:not(.dashboard-page):has(.mobile-external-nav){padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 body:not(.dashboard-page) .pwa-landing-install{display:inline-flex!important}
 body:not(.dashboard-page) .hero .actions{flex-wrap:wrap}
 .pwa-install-nudge{display:flex;position:fixed;z-index:110;bottom:calc(90px + env(safe-area-inset-bottom,0px));left:12px;right:12px;max-width:440px;margin:0 auto;padding:15px 15px 14px;align-items:flex-start;gap:10px;border-radius:19px;background:#172f66;color:white;box-shadow:0 14px 42px #091e53aa;border:1px solid #ffffff22}
 .pwa-install-nudge[hidden]{display:none!important}
 .pwa-install-nudge .pwa-install-copy{flex:1}.pwa-install-nudge strong{display:block;font-size:13px}.pwa-install-nudge p{font-size:11px;color:#d2e0ff;line-height:1.45;margin:3px 0 10px}
 .pwa-install-nudge button{font:inherit;border:0;cursor:pointer}.pwa-install-nudge .pwa-install-accept{min-height:37px;border-radius:10px;padding:7px 14px;font-size:12px;font-weight:800;background:#fff;color:#1743a0}.pwa-install-nudge .pwa-install-close{background:transparent;color:#fff;font-size:22px;line-height:1;min-width:32px;min-height:32px}
 .pwa-guide-dialog{position:fixed;inset:0;z-index:125;background:#0e214d8a;display:grid;place-items:center;padding:20px}.pwa-guide-panel{max-width:370px;width:100%;background:#fff;border-radius:22px;padding:25px;color:#1a3365;box-shadow:0 24px 70px #09132b45}.pwa-guide-panel h2{font-size:19px;margin:0 0 10px}.pwa-guide-panel p{font-size:14px;color:#687a97;line-height:1.6}.pwa-guide-panel button{width:100%;min-height:44px;background:#2960d7;border:0;color:white;border-radius:12px;font-size:14px;font-weight:800}
 @keyframes mobileEnter{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
 @media(prefers-reduced-motion:reduce){.mobile-home,.mobile-profile,body.dashboard-page #identifyTab,body.dashboard-page #collectionTab{animation:none}.mobile-nav-icon .app-ico{transition:none}}
}
@media(max-width:380px){.mobile-nav-label{font-size:9px}.mobile-nav-item{gap:3px}body.dashboard-page .shell{padding-left:13px;padding-right:13px}.mobile-portfolio-card{padding:20px 16px 14px}.mobile-quick-card{padding:13px 10px}.mobile-portfolio-footer button{font-size:10px}}

/* v0.36: toque en la imagen del álbum para vista ampliada. */
.collection-card .collection-preview-trigger{display:block;width:100%;border:0;background:transparent;padding:0;margin:0;line-height:0;border-radius:11px;cursor:zoom-in;overflow:hidden}
.collection-card .collection-preview-trigger img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain}
.collection-card .collection-preview-trigger:focus-visible{outline:3px solid #f6bb28;outline-offset:3px}
@media(max-width:860px){body.dashboard-page .collection-card .collection-preview-trigger{min-height:175px;display:grid;place-items:center}body.dashboard-page .collection-card .collection-preview-trigger img{height:180px;max-height:180px}}
@media(max-width:860px){body.dashboard-page .collection-card{cursor:pointer}body.dashboard-page .collection-card:active{transform:scale(.995)}}

/* v0.76 · Lema «Tu colección bajo control» bajo el logo: siempre en una línea (en celulares de 320–380 px se compacta). */
.mobile-app-brand small{white-space:nowrap;letter-spacing:1.4px}
@media(max-width:380px){.mobile-app-brand small{letter-spacing:.6px;font-size:8.5px}}
@media(max-width:340px){.mobile-app-brand small{letter-spacing:.2px;font-size:8px}}
