/* Onda 8: shared MundoDex controls, including panels portalled to body. */
/* Scanner navigation belongs to the shell; the camera screen loads by route. */
.labs-entry { display:none; }
.sidebar nav a.scanner-nav { display:none; }
@media(max-width:800px){
 body.has-scanner-nav .sidebar nav { grid-template-columns:repeat(6,minmax(0,1fr)) !important; }
 body.has-scanner-nav .sidebar nav a.scanner-nav { display:flex; }
 body[data-route="inicio"] .labs-entry { display:flex;flex-wrap:wrap;gap:16px;margin:0 16px 28px;padding:22px 0;border-top:1px solid var(--ah-line);color:var(--ah-ink);align-items:center; }
 .labs-entry h2 { margin:0;font-size:18px; }
 .labs-entry h2 span { display:block;font-size:13px;font-weight:500;color:var(--ah-ink-soft);margin-top:4px; }
 .labs-entry p { font-size:14px;margin:10px 0 0; }
 .labs-entry a { display:flex;gap:20px;align-items:center;min-height:48px;border:1px solid var(--ah-line-strong);padding:12px 16px;border-radius:12px;color:var(--ah-blue);font-weight:750;text-decoration:none; }
}
/* Account actions use the existing palette; irreversible actions require words. */
.account-state-dialog{width:min(92vw,540px);max-height:85dvh;overflow:auto;border:1px solid var(--mdx-control-line,#8ca8be);border-radius:20px;padding:24px;background:var(--mdx-control-bg,#fff);color:var(--mdx-control-ink,#12304b)}
.account-state-dialog::backdrop{background:#07111faa}
.account-state-dialog h2{font:700 24px var(--ah-font-ui,sans-serif);margin:0 0 16px}
.account-state-dialog p{font:400 16px/1.5 var(--ah-font-ui,sans-serif);max-width:65ch}
.account-state-dialog label{display:grid;gap:8px}.account-state-dialog input{font-size:16px;min-height:44px;width:100%}
.account-state-dialog footer,.account-state-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.account-lifecycle{margin-top:24px}.account-lifecycle .button{margin:8px 8px 0 0}
.account-manage{display:block;margin-top:10px;font-size:13px;padding:8px 12px}
.admin-collective { margin:28px 0;color:var(--mdx-control-ink); }
.admin-collective>header { display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px; }
.admin-collective h2 { font:800 clamp(22px,3vw,30px)/1.2 var(--ah-font-ui);margin:0 0 8px;color:inherit; }
.admin-collective :is(h3,h4) { color:inherit;margin:0 0 8px; }
.admin-collective p { max-width:78ch;font:400 13px/1.5 var(--ah-font-ui);color:inherit;opacity:.86; }
.admin-collective label { display:grid;gap:6px;flex-shrink:0;font-size:13px; }
.admin-collective select { height:44px;background:var(--mdx-control-bg);color:inherit;border:1px solid var(--mdx-control-line);border-radius:10px;padding:8px 12px;font-size:14px; }
.collective-rankings { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:18px 0 28px; }
.collective-ranking { min-width:0;border-top:2px solid var(--mdx-control-line);padding-top:14px; }
.collective-ranking ol { margin:0;padding:0;list-style:none;max-height:410px;overflow:auto;scrollbar-width:thin; }
.collective-ranking li { display:flex;gap:10px;align-items:center;min-height:84px;padding:10px 4px;border-bottom:1px solid var(--mdx-control-line); }
.collective-ranking li>div { flex:1;min-width:0; }
.collective-ranking li>img,.collective-art-placeholder { object-fit:contain;width:44px;height:60px;flex-shrink:0; }
.collective-ranking strong { display:block;font-size:14px;line-height:1.3; }
.collective-ranking small { display:block;font:400 12px/1.4 var(--ah-font-ui);margin-top:4px; }
.collective-ranking b { flex-shrink:0;text-align:right;font:700 21px/1.2 var(--ah-font-ui); }
.collective-ranking b small { max-width:82px;font-size:11px; }
.collective-period { padding:20px;border:1px solid var(--mdx-control-line);border-radius:16px;background:var(--mdx-control-bg); }
.collective-totals { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 28px; }
.collective-totals dt { font-size:12px; }.collective-totals dd { margin:6px 0;font-size:26px;font-weight:750; }
.collective-table-scroll { overflow:auto;max-height:350px;scrollbar-width:thin; }
.admin-collective table { width:100%;font-size:13px; }
.admin-collective :is(th,td) { padding:10px;color:inherit;background:transparent;text-align:right;white-space:nowrap; }
.admin-collective :is(th,td):first-child { text-align:left;white-space:normal;min-width:120px; }
.collective-daily { margin:18px 0; }.collective-daily summary { cursor:pointer;padding:12px 0;font-weight:650; }
@media(max-width:650px) { .admin-collective>header { display:block; }.admin-collective label { margin-top:14px; }.collective-rankings { grid-template-columns:1fr; }.collective-totals { grid-template-columns:repeat(2,minmax(0,1fr)); }.collective-period { padding:14px; } }
.pokemon-cards-hero { display:flex;align-items:center;gap:24px;padding:20px 24px;border:1px solid var(--mdx-control-line);border-radius:22px;background:linear-gradient(120deg,var(--mdx-control-bg),var(--mdx-control-active));color:var(--mdx-control-ink); }
.pokemon-cards-hero>div { min-width:0; }
.pokemon-cards-hero img { display:block;width:104px;height:104px;flex:0 0 104px;object-fit:contain;object-position:center; }
.pokemon-cards-hero h1 { margin:0;font:800 clamp(28px,4vw,44px)/1.15 var(--ah-font-ui);color:inherit;overflow-wrap:anywhere; }
.pokemon-cards-hero .eyebrow { color:inherit;margin:0 0 6px;font-size:12px; }
.pokemon-cards-summary { max-width:100%;white-space:nowrap;overflow-x:auto;padding:10px 2px;margin:4px 0;font:400 13px/1.5 var(--ah-font-ui);color:var(--mdx-control-ink);scrollbar-width:thin; }
#card-dialog .card-value-panel.card-price-platforms { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
#card-dialog .card-price-platforms-title { grid-column:1/-1;text-align:center;font-size:12px;font-weight:650;line-height:1.4;color:var(--mdx-control-ink); }
#card-dialog .card-value-panel.card-price-platforms.has-local-liga-test { grid-template-columns:repeat(4,minmax(0,1fr)); }
#card-dialog .card-value-panel.card-price-platforms > .card-price-platform-button.card-price-liga-button { background:#e7eaee;border-color:#b5c0cc;color:#21374d;box-shadow:none; }
#card-dialog .card-value-panel.card-price-platforms > .card-price-platform-button.card-price-liga-button:hover:not(:disabled) { background:#d9dfe7;border-color:#8799ad; }
#card-dialog .card-price-platforms > .card-price-platform-button { display:flex;min-width:0;min-height:48px;margin:0;padding:10px 7px;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;font-size:13px;line-height:1.3;text-align:center;text-decoration:none; }
#card-dialog .card-price-platform-button small { font-size:10px;font-weight:400;opacity:.8; }
#card-dialog .card-dialog-media { display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;width:100%; }
#card-dialog .card-dialog-media > .card-dialog-art { width:100%; }
#card-dialog .card-dialog-media > .card-dialog-position { position:static;transform:none;max-width:100%;box-sizing:border-box;text-align:center;white-space:normal; }
#card-dialog .card-dialog-media > .card-price-platforms { width:min(100%,330px);gap:5px; }
#card-dialog .card-binder-price { box-sizing:border-box;display:grid;gap:5px;width:min(100%,330px);margin:2px 0 0;padding:10px;border:1px solid var(--mdx-control-line);border-radius:9px;background:var(--mdx-control-bg);color:var(--mdx-control-ink);text-align:left; }
#card-dialog .card-binder-price>label { color:inherit;font-size:13px;font-weight:700; }
#card-dialog .card-binder-price>small,#card-dialog .card-binder-price>p { margin:0;color:inherit;font-size:11px;line-height:1.4; }
#card-dialog .card-binder-price>p:empty { display:none; }
#card-dialog .card-binder-price-entry { display:flex;align-items:center;gap:6px;min-width:0; }
#card-dialog .card-binder-price-entry input { min-width:0;flex:1;width:100%;height:44px;padding:8px;border:1px solid var(--mdx-control-line);border-radius:6px;background:var(--mdx-control-bg);color:var(--mdx-control-ink);font:inherit;font-size:16px; }
#card-dialog .card-binder-price-entry .button { flex:0 0 auto;min-height:44px;padding:8px 10px;font-size:12px; }
#card-dialog .card-binder-price-entry input:focus-visible { outline:2px solid currentColor;outline-offset:1px; }
#card-dialog .card-binder-price-entry :disabled { opacity:.65; }
#card-dialog .card-dialog-media .card-price-platform-button { min-height:46px;padding:4px 3px;border-radius:7px;gap:0;flex-wrap:nowrap;font-size:11px;line-height:1.2;white-space:nowrap; }
#card-dialog .card-price-brand { display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:68px;max-width:100%;height:36px;padding:3px 4px;background:transparent; }
#card-dialog .card-price-brand-image { display:block;width:60px;max-width:100%;height:30px;object-fit:contain;object-position:center; }
#card-dialog .card-dialog-media .card-price-platform-button > [aria-hidden] { display:none; }
#card-dialog .card-price-link-status { grid-column:1/-1;font-size:11px;line-height:1.4;text-align:center;color:var(--mdx-control-ink); }
#card-dialog .card-price-link-status button { border:0;background:transparent;color:inherit;padding:3px;text-decoration:underline;cursor:pointer;font:inherit; }
@media(max-width:800px) {
  #card-dialog .card-dialog-stage { height:auto;min-height:350px;max-height:none;padding-bottom:42px; }
  #card-dialog .card-dialog-media { gap:7px; }
  #card-dialog .card-dialog-media > .card-dialog-art { height:auto;max-height:none;overflow:visible; }
  #card-dialog .card-dialog-media .card-price-platform-button { min-height:46px;font-size:10px; }
}
html[data-color-mode=dark] body[data-route=pokemon] .acervo-card .card-content h3 { color:#eaf3ff; }
html[data-color-mode=dark] body[data-route=pokemon] .acervo-card :is(.acervo-card-number,.acervo-card-variant,.acervo-card-rarity,.card-set-line) { color:#b7cde2; }
.admin-usage-controls { display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px;margin-bottom:16px;border:1px solid var(--mdx-control-line);border-radius:16px;background:var(--mdx-control-bg);color:var(--mdx-control-ink); }
.admin-usage-controls label { display:flex;flex:1 1 150px;min-width:0;flex-direction:column;gap:6px;font:600 13px/1.4 var(--ah-font-ui);color:inherit; }
.admin-usage-controls .admin-user-search { flex-basis:240px; }
.admin-usage-controls :is(input,select) { width:100%;min-width:0;height:44px;border:1px solid var(--mdx-control-line);border-radius:10px;background:var(--mdx-control-bg);color:var(--mdx-control-ink);font:400 14px var(--ah-font-ui);padding:8px 12px; }
.admin-usage-count { flex-basis:100%;margin:0;font-size:12px; }
body[data-route=admin] .admin-usage-summary strong { font-size:28px; }
body[data-route=admin] .admin-usage-table :is(th,td),body[data-route=admin] .admin-usage-head p { font-size:13px; }
body[data-route=admin] .admin-usage-table td :is(strong,b) { font-size:14px; }
body[data-route=admin] .admin-usage-table td small,body[data-route=admin] .admin-usage-summary small { font-size:12px; }
html[data-color-mode=dark] body[data-route=admin] :is(.admin-usage-summary,.admin-usage-table th) { background:#102944;border-color:#45667d; }
html[data-color-mode=dark] body[data-route=admin] :is(.admin-usage-hero h1,.admin-usage-head h2,.admin-usage-summary strong,.admin-usage-table td strong,.admin-usage-table td b) { color:#eaf3ff; }
html[data-color-mode=dark] body[data-route=admin] :is(.admin-usage-hero p,.admin-usage-hero span,.admin-usage-head p,.admin-usage-head>span,.admin-usage-summary span,.admin-usage-summary small,.admin-usage-table th,.admin-usage-table td,.admin-usage-table td small) { color:#b7cde2; }
@media(max-width:600px) { .pokemon-cards-hero { padding:16px 14px;gap:16px; }.pokemon-cards-hero img { width:80px;height:80px;flex-basis:80px; }.admin-usage-controls label { flex-basis:calc(50% - 12px); }.admin-usage-controls .admin-user-search { flex-basis:100%; } }
/* Shared gallery: finish and rarity each own a full row, even on narrow cards. */
.acervo-card .acervo-card-secondary {
  grid-template-columns:minmax(0,1fr);
  gap:4px;
  min-height:0;
}
.acervo-card .acervo-card-rarity {
  justify-content:flex-start;
  align-items:baseline;
  text-align:left;
  overflow:visible;
  white-space:normal;
  text-overflow:clip;
}
.acervo-card .acervo-card-rarity .rarity-name {
  overflow:visible;
  white-space:normal;
  text-overflow:clip;
  word-break:normal;
  overflow-wrap:normal;
}
.set-preview-badge { display:inline-flex!important;width:max-content;padding:5px 12px;border:1px solid var(--mdx-control-line);border-radius:20px;background:var(--mdx-control-active);color:var(--mdx-control-ink);font:700 13px/1.3 var(--ah-font-ui); }
.set-preview-summary p { margin:8px 0 0;font-size:14px; }
.set-preview-notice { margin:16px 0;padding:18px;border:1px solid var(--mdx-control-line);border-left:4px solid #258ad0;border-radius:14px;background:var(--mdx-control-bg);color:var(--mdx-control-ink); }
.set-preview-notice p { margin:8px 0;font:400 15px/1.55 var(--ah-font-ui); }
.set-preview-notice a,.set-preview-card a { color:inherit;text-decoration:underline;text-underline-offset:3px; }
.set-preview-grid { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px; }
.set-preview-card { min-width:0;padding:10px;border:1px solid var(--mdx-control-line);border-radius:14px;background:var(--mdx-control-bg);color:var(--mdx-control-ink); }
.set-preview-image { display:flex;align-items:center;justify-content:center;aspect-ratio:63/88;overflow:hidden;border-radius:9px;background:var(--mdx-control-active); }
.set-preview-image img { width:100%;height:100%;object-fit:contain; }
.set-preview-image>span { padding:15px;text-align:center;font-size:14px; }
.set-preview-card-copy h3 { margin:12px 0 6px;font:700 16px/1.35 var(--ah-font-ui);color:inherit;overflow-wrap:anywhere; }
.set-preview-card-copy p,.set-preview-card-copy a { font:400 13px/1.5 var(--ah-font-ui); }
.set-preview-card-copy p span { display:block; }
@media(max-width:1100px){.set-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.set-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}.set-preview-notice{padding:14px;}}
.page-context-navigation { min-height:40px;padding:2px 8px; }
.page-context-navigation .page-context-link { font:550 13px/1.3 var(--ah-font-ui);min-height:36px;gap:6px; }
.page-context-navigation .page-context-link > span { font:inherit; }
.page-context-navigation .page-context-link > span[aria-hidden] { font-size:14px; }
/* One shared pill geometry: the row scrolls, individual controls never shrink. */
html { --mdx-control-bg:#fff;--mdx-control-ink:#164c7c;--mdx-control-line:#bad3e8;--mdx-control-active:#dcefff; }
html[data-color-mode=dark] { --mdx-control-bg:#18354b;--mdx-control-ink:#edf6ff;--mdx-control-line:#45667d;--mdx-control-active:#285675; }
/* Let the footer participate in the viewport height instead of adding it to
   a main sized as viewport minus a fixed, smaller footer estimate. */
html body[data-route=inicio] .workspace { display:flex;flex-direction:column;min-height:100dvh; }
html body[data-route=inicio] main { flex:1 0 auto;min-height:0; }
html body[data-route=inicio] .legal-footer { flex:0 0 auto; }
@media(max-width:800px) {
  html body[data-route=inicio] .workspace { min-height:calc(100dvh - 72px - env(safe-area-inset-bottom)); }
}
html body .multi-energy-symbol { display:inline-block;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background-image:url('/static/assets/pokemon-official/energy-types.png');background-size:88px 66px;background-repeat:no-repeat; }
html body .multi-energy-symbol.energy-fire { background-position:0 0; }
html body .multi-energy-symbol.energy-colorless { background-position:-22px 0; }
html body .multi-energy-symbol.energy-fairy { background-position:-44px 0; }
html body .multi-energy-symbol.energy-metal { background-position:-66px 0; }
html body .multi-energy-symbol.energy-dragon { background-position:0 -22px; }
html body .multi-energy-symbol.energy-fighting { background-position:-44px -22px; }
html body .multi-energy-symbol.energy-psychic { background-position:-66px -22px; }
html body .multi-energy-symbol.energy-darkness { background-position:0 -44px; }
html body .multi-energy-symbol.energy-grass { background-position:-22px -44px; }
html body .multi-energy-symbol.energy-lightning { background-position:-44px -44px; }
html body .multi-energy-symbol.energy-water { background-position:-66px -44px; }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips,.vbind-toolbar) { display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start;overflow-x:auto;gap:8px;min-width:0;max-width:100%;padding:4px 0 8px;margin-inline:0;scrollbar-width:thin; }
html[data-product=mundodex] body[data-route] :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips,.vbind-toolbar)>:is(label,.multi-field,.repeat-control,.button) { flex:0 0 auto;width:max-content;min-width:max-content;max-width:none;height:44px;min-height:44px;box-sizing:border-box; }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips)>:is(label,.multi-field,.repeat-control) { display:flex;flex-direction:row;align-items:center;gap:8px;padding:0 14px;border:1px solid var(--mdx-control-line);border-radius:24px;background:var(--mdx-control-bg);color:var(--mdx-control-ink);box-shadow:none;font:600 14px/1.25 var(--ah-font-ui); }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips) .multi-caption { display:none; }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips) .multi-picker { display:flex;align-items:center;flex:0 0 auto;min-width:max-content;width:auto;height:100%; }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips) .multi-picker>summary { display:flex;align-items:center;gap:6px;width:auto;min-width:max-content;height:100%;min-height:0;padding:0 20px 0 0;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none;overflow:visible;text-overflow:clip;white-space:nowrap;font:inherit; }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips) .multi-picker>summary::after { right:0;top:50%;transform:translateY(-50%);color:inherit; }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips) summary .multi-filter-option-icon { display:none; }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips,.sets-filter-chips,.mdx-select) .filter-chip-icon { position:static;display:flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;border:0;border-radius:0;background:none;color:inherit; }
html body .filter-chip-icon svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
html body :is(.acervo-filter-chips,.set-detail-filter-chips,.dex-filter-chips) .repeat-control-title { font:inherit;white-space:nowrap;overflow:visible;color:var(--mdx-control-ink); }
html body .repeat-display-toggle { display:flex;flex:none;height:30px;border:1px solid var(--mdx-control-line);background:var(--mdx-control-bg);color:var(--mdx-control-ink); }
html body .repeat-display-toggle button { display:grid;place-items:center;min-height:30px;min-width:30px;padding:0;background:transparent;color:var(--mdx-control-ink); }
html body .repeat-display-toggle svg { width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8; }
html body .repeat-display-toggle button[aria-pressed=true] { background:var(--mdx-control-active);color:var(--mdx-control-ink); }
.mdx-select { position:relative;display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid var(--mdx-control-line);border-radius:24px;background:var(--mdx-control-bg);color:var(--mdx-control-ink);font:600 14px/1.3 var(--ah-font-ui);box-sizing:border-box; }
.mdx-select-value { white-space:inherit;overflow-wrap:anywhere;min-width:0; }
.mdx-select-chevron { flex:none;margin-left:auto; }
html body .mdx-select>select,#vbind-config .mdx-select>select { position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;opacity:0;cursor:pointer;font-size:16px; }
.mdx-select:focus-within { outline:2px solid #55aaff;outline-offset:2px; }
.mdx-select.is-disabled { opacity:.6; }
html body .sets-filter-chip .mdx-select { border:0;padding:0;background:transparent;white-space:nowrap; }
html body .sets-filter-chip>svg { width:20px;height:20px;flex:none; }
html body .vbind-toolbar>label { display:block;font-size:0;white-space:nowrap;padding:0;margin:0; }
.vbind-utilities { display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:12px 0; }
.vbind-utilities .button { min-height:44px;font-size:13px; }
html body .results-head { display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0;background:none;border:0; }
html body .results-head #result-count { flex:1 0 100%;font-size:13px; }
html body .catalog-display-controls { display:flex;align-items:center;gap:8px;max-width:100%;min-width:0;overflow-x:auto; }
html body .catalog-display-controls :is(.view-toggle,.set-ownership-slot,.set-ownership-segment) { display:flex;flex:0 0 auto;width:auto;min-width:0;height:auto;margin:0;padding:0;border:0;background:none;box-shadow:none; }
html body .catalog-display-controls :is(.view-toggle,.set-ownership-segment) { gap:3px;padding:3px;border:1px solid var(--mdx-control-line);border-radius:24px;background:var(--mdx-control-bg); }
html body .catalog-display-controls button { display:flex;align-items:center;justify-content:center;gap:6px;flex:none;width:auto;min-width:0;min-height:38px;height:auto;padding:6px 12px;border:0;border-radius:20px;background:none;color:var(--mdx-control-ink);font:600 13px/1.3 var(--ah-font-ui);white-space:nowrap; }
html body .catalog-display-controls button:is(.active,[aria-pressed=true]) { background:var(--mdx-control-active);color:var(--mdx-control-ink);box-shadow:none; }
/* Legacy gallery rules hide labels with !important and add text-glyph icons. */
html body .catalog-display-controls .view-toggle button::before { content:none!important; }
html body .catalog-display-controls .view-toggle button>span:not(.filter-chip-icon) { font-size:13px; }
html body .results-head>.pdf-export { margin-left:auto;min-height:44px;width:auto;font-size:13px;border-radius:24px; }
html body :is(.dex-search,.acervo-search,.set-detail-search) { border-radius:24px;background:var(--mdx-control-bg);color:var(--mdx-control-ink); }
html body :is(.dex-search,.acervo-search,.set-detail-search) input { min-width:0;border:0;background:transparent;box-shadow:none;color:var(--mdx-control-ink); }
html[data-color-mode=dark] body :is(.set-detail-query,.set-detail-progress,.set-detail-hero) { background:#102944;color:#edf6ff;border-color:#45667d; }
html[data-color-mode=dark] body :is(.set-detail-copy h1,.set-detail-copy p,.set-detail-copy>span,.set-progress-copy,.set-progress-copy strong,.set-progress-percent) { color:#edf6ff; }
html[data-color-mode=dark] body .set-objective-bar button { color:#edf6ff; }
html[data-color-mode=dark] body.card-catalog-page .set-mode-toggle button[aria-pressed=true] { color:#fff;background:#285675; }
main.vbind-module .vbind-library { grid-auto-rows:1fr;align-items:stretch; }
main.vbind-module .vbind-cover-shell { height:100%;min-width:0; }
main.vbind-module .vbind-cover { aspect-ratio:auto;min-height:326px;height:100%;overflow:visible;gap:7px; }
main.vbind-module .vbind-cover-art { background:transparent;border:0;box-shadow:none;height:110px;flex-basis:110px;margin:4px 0; }
main.vbind-module .vbind-cover h2 { font-family:var(--ah-font-ui);font-size:16px;line-height:1.3;font-weight:700;letter-spacing:0;margin:2px 0;text-wrap:pretty;word-break:normal; }
main.vbind-module .vbind-cover p { font-size:12px;line-height:1.4;margin:0; }
main.vbind-module .vbind-cover small { font-size:11px;line-height:1.4;color:#c3d8e9; }
main.vbind-module .vbind-cover-model { font-size:10px;letter-spacing:.02em; }
main.vbind-module .vbind-cover>span:last-child { font-size:12px; }
main.vbind-module .vbind-era-group .vbind-library-menu>summary { display:grid;padding:0;width:38px;height:38px;min-height:38px;min-width:38px;place-items:center;list-style:none; }
main.vbind-module .vbind-era-group .vbind-library-menu>summary::before,
main.vbind-module .vbind-era-group .vbind-library-menu>summary::after { content:none; }
main.vbind-module .vbind-library-menu>summary::-webkit-details-marker { display:none; }
.sort-direction { display:flex;gap:8px;padding:4px 0 10px;border-bottom:1px solid var(--binder-line,#90a9bc);margin-bottom:8px; }
.sort-direction .button { flex:1;min-height:44px;font-size:22px; }
.sort-direction .button[aria-pressed=true] { background:#216ba5;color:#fff;border-color:#216ba5; }
html[data-color-mode=dark] .sort-direction .button[aria-pressed=true] { background:#55a7ff;color:#07111f; }
main.vbind-module .vbind-toolbar .multi-caption { display:none; }
main.vbind-module .vbind-toolbar .multi-field { flex:0 0 auto; }
main.vbind-module .vbind-toolbar .multi-picker>summary { min-height:44px;box-sizing:border-box; }
main.vbind-module .vbind-cover>* { flex-shrink:0; }
main.vbind-module .vbind-cover :is(h2,p,small) { height:auto;max-height:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:break-word;-webkit-line-clamp:unset; }
.multi-picker>summary { background:var(--ah-paper);color:var(--ah-ink);border-color:var(--ah-line-strong); }
.multi-panel,.multi-panel-portal { background:var(--ah-paper);color:var(--ah-ink);border-color:var(--ah-line-strong); }
.multi-panel .multi-option { color:var(--ah-ink);min-height:44px;font-size:14px; }
.multi-panel input[type=search] { min-height:44px;font-size:16px;color:var(--ah-ink);background:var(--ah-paper-soft); }
.multi-panel .multi-clear { background:var(--ah-paper-deep);color:var(--ah-blue);min-height:36px; }
html[data-color-mode=dark] .multi-picker>summary,
html[data-color-mode=dark] .multi-panel,
html[data-color-mode=dark] .dex-view-switch,
html[data-color-mode=dark] .dex-capture-filter { background:#102b43;color:#edf6ff;border-color:#527b99; }
html[data-color-mode=dark] .multi-panel .multi-option { color:#edf6ff; }
html[data-color-mode=dark] .multi-panel .multi-option:has(input:checked) { background:#204968;color:#fff;border-radius:6px; }
html[data-color-mode=dark] .rarity-symbol.tone-preto { color:#e7f2ff; }
html[data-color-mode=dark] .rarity-symbol.tone-neutro,
html[data-color-mode=dark] .rarity-symbol.tone-prata { color:#c4d9ea; }
html[data-color-mode=dark] .dex-evolution-family,
html[data-color-mode=dark] .evolution-family { background:#102b43;color:#edf6ff; }
html[data-color-mode=dark][data-product=mundodex] body .evolution-family-head,
html[data-color-mode=dark][data-product=mundodex] body :is(.evolution-branches,.evolution-branch.branched,.evolution-split,.evolution-destination,.evolution-tree-viewport,.evolution-tree-output,.evolution-lanes-viewport) { background:var(--ah-paper);border-color:var(--ah-line-strong); }
html[data-color-mode=dark][data-product=mundodex] body :is(.evolution-family-head h2,.evolution-family-progress>b,.evolution-branch>header strong,.evolution-destination>header strong) { color:var(--ah-ink); }
html[data-color-mode=dark][data-product=mundodex] body :is(.evolution-layout-label,.evolution-sentinel,.evolution-family-progress) { color:var(--ah-muted); }
html[data-color-mode=dark][data-product=mundodex] body :is(.evolution-family-number,.evolution-fork-label) { background:var(--ah-paper-deep);color:var(--ah-ink); }
.color-mode-control,body[data-route] .color-mode-control { display:flex;width:auto;min-width:0;flex-direction:row; }
.color-mode-options { display:flex;width:auto; }
.color-mode-options button { width:44px;height:44px;padding:8px; }
.color-mode-options button>span { font-size:22px;border:0;width:26px;height:26px; }
html body .dex-view-navigation { display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:10px;overflow:visible;align-items:stretch;padding:6px;border:0;background:none; }
html body .dex-view-navigation :is(.dex-capture-filter,.dex-view-switch) { display:flex;flex:0 1 auto;width:auto;min-width:0;height:auto;min-height:0;max-height:none;gap:2px;padding:3px;margin:0;border:1px solid var(--mdx-control-line);border-radius:16px;background:var(--mdx-control-bg); }
html body .dex-view-navigation #dex-ownership { display:none; }
html body .dex-view-navigation :is(a,button) { display:flex;align-items:center;justify-content:center;gap:6px;flex:1 1 0;min-width:0;min-height:44px;padding:7px 10px;margin:0;border:0;border-radius:12px;white-space:nowrap;font:600 12px/1.3 var(--ah-font-ui);color:var(--mdx-control-ink);background:none; }
html body .dex-view-navigation svg { width:18px;height:18px;flex:none; }
@media(min-width:769px) {
 html body[data-route] .dex-view-navigation :is(a,button),
 html body[data-route] .dex-view-navigation :is(a,button) span { font:600 13px/1.3 var(--ah-font-ui);letter-spacing:0; }
 html body[data-route] .dex-view-navigation :is(a,button) { min-height:44px;padding:8px 12px; }
}
html[data-color-mode=dark] body .dashboard-recent-card strong { color:#eaf3ff; }
html[data-color-mode=dark] body .dashboard-recent-card small { color:#b6cbe1; }
html[data-color-mode=dark] body .binder-suggestion-group { background:#102b43;border-color:#456780;color:#eaf3ff; }
html[data-color-mode=dark] body .binder-suggestion-group h3 { color:#eaf3ff; }
html[data-color-mode=dark] body .binder-suggestion-group :is(header p,.binder-suggestion-empty) { color:#b6cbe1; }
html[data-color-mode=dark] body .binder-suggestion-icon { background:#183b59;color:#85c5ff; }
.dex-mobile-label { display:none; }
html[data-color-mode=dark] body .dex-species-card.missing .dex-icon-image { filter:brightness(0) invert(.82);opacity:1; }
html[data-color-mode=dark] body :is(.dex-controls,.acervo-controls,.set-detail-controls) svg { color:#85c5ff; }
html[data-color-mode=dark][data-product=mundodex] body :is(.dex-view-navigation,.dex-generation,.dex-generation>summary,.dex-generation-content,.dex-species-card,.evolution-card-wrap.is-shared .dex-species-card) { background:var(--ah-paper);border-color:var(--ah-line-strong);color:var(--ah-ink); }
html[data-color-mode=dark][data-product=mundodex] body :is(.dex-view-switch a,.dex-capture-option,.dex-species-card h3,.dex-species-card strong,.dex-species-card b,.dex-generation-title strong) { color:var(--ah-ink); }
html[data-color-mode=dark][data-product=mundodex] body :is(.dex-species-card small,.dex-generation-title small,.dex-generation-progress,.dex-species-card .dex-state) { color:var(--ah-muted); }
html[data-color-mode=dark][data-product=mundodex] body :is(.dex-view-switch a.is-active,.dex-capture-option.is-active) { background:#204968;color:#fff;box-shadow:inset 0 0 0 1px #71b9eb; }
#vbind-config { background:var(--ah-paper);color:var(--ah-ink);border:1px solid var(--ah-line-strong);border-radius:16px;font-family:var(--ah-font-ui); }
#vbind-config :is(input,select) { color:var(--ah-ink);background:var(--ah-paper-soft);border:1px solid var(--ah-line-strong);border-radius:9px;min-height:44px;font-size:16px; }
#vbind-config.vbind-guide { width:760px;padding:18px; }
#vbind-config.vbind-guide h2 { margin:0;font-size:22px; }
#vbind-config.vbind-guide form { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px; }
#vbind-config.vbind-guide form>label { margin:0;gap:4px; }
#vbind-config .mdx-select { border-radius:9px;white-space:normal;font-size:16px; }
#vbind-config.vbind-guide .vbind-guide-format { grid-column:1/-1;margin:4px 0;padding:8px 12px;display:grid;grid-template-columns:2fr 1fr;gap:12px;background:var(--ah-paper-soft);border-color:var(--ah-line-strong); }
#vbind-config.vbind-guide .vbind-guide-format label { margin:0;gap:4px; }
#vbind-config.vbind-guide .vbind-config-grid { margin:0;gap:8px; }
#vbind-config.vbind-guide .vbind-guide-help { grid-column:1/-1;margin:0;padding:8px 12px;font-size:12px;line-height:1.4; }
#vbind-config.vbind-guide .vbind-config-actions { grid-column:1/-1;margin:4px 0 0;position:sticky;bottom:0;background:var(--ah-paper);padding:8px 0; }
#vbind-config.vbind-guide .vbind-guide-targets { grid-column:1/-1;max-height:100px;padding:2px; }
#vbind-config.vbind-guide .vbind-guide-targets label { padding:4px 8px;min-height:36px; }
#vbind-config.vbind-guide .vbind-guide-search-status { grid-column:1/-1;margin:0;font-size:12px; }
#vbind-config.vbind-guide .vbind-config-error:empty { display:none; }
main.vbind-module .vbind-pocket.is-unowned .vbind-art { filter:grayscale(1);opacity:.72; }
.vbind-art { position:relative; }
.vbind-art .vbind-no-image { position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:12px;text-align:center;font-size:14px;color:var(--binder-ink);background:var(--binder-surface); }
.vbind-art:has(img:not([hidden])) .vbind-no-image { display:none; }
@media(max-width:600px){
 html body .dex-view-navigation { gap:5px;padding:0; }
 html body .dex-view-navigation .dex-capture-filter { flex:3 1 0; }
 html body .dex-view-navigation .dex-view-switch { flex:2 1 0; }
 html body .dex-view-navigation :is(a,button) { flex-direction:column;gap:3px;padding:6px 2px;font-size:10px;min-height:49px; }
 .dex-view-navigation .dex-desktop-label { display:none; }
 .dex-view-navigation .dex-mobile-label { display:inline; }
 #vbind-config.vbind-guide { padding:12px; }
 #vbind-config.vbind-guide form { gap:8px; }
 #vbind-config.vbind-guide .vbind-guide-format { grid-template-columns:1fr;padding:6px 10px;gap:6px; }
 #vbind-config.vbind-guide .vbind-guide-format>label { grid-column:1/-1; }
 #vbind-config.vbind-guide .vbind-guide-format .vbind-config-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #vbind-config.vbind-guide label { font-size:12px; }
 #vbind-config.vbind-guide select { padding:8px 4px; }
 #vbind-config.vbind-guide .vbind-guide-help { font-size:11px; }
 .page-context-navigation .page-context-link { font-size:12px; }
}
/* Transparent orbit identity: the sidebar always has a navy background. */
html .sidebar-brand-lockup { background:transparent; border:0; box-shadow:none; border-radius:0; overflow:visible; padding:8px 0; justify-content:center; }
html .sidebar-brand-logo { display:block;width:min(100%,160px);height:auto;aspect-ratio:360/260;object-fit:contain;margin-inline:auto; }
html[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-logo { mix-blend-mode:normal; width:72%; max-width:600px; height:auto !important; aspect-ratio:600/160; transform:translateX(-12%); }
@media(max-width:800px){
  html[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-logo { width:83%; max-width:83%; transform:translateX(-6%); }
  html[data-product="mundodex"] body[data-route="inicio"] .mundodex-brand-art { opacity:.3; }
}
/* Homepage: equally tall search cells. */
html body[data-route=inicio] .mundodex-logo-dark { display:none; }
html[data-color-mode=dark] body[data-route=inicio] .mundodex-logo-light { display:none; }
html[data-color-mode=dark] body[data-route=inicio] .mundodex-logo-dark { display:block;mix-blend-mode:normal; }
html[data-product=mundodex] body[data-route=inicio] .dashboard-search-shell .dashboard-search { grid-template-columns:44px minmax(0,1fr);align-items:center;gap:8px; }
html[data-product=mundodex] body[data-route=inicio] .dashboard-search-shell .dashboard-search::before { width:44px;height:44px;align-self:center;background-size:22px; }
html[data-product=mundodex] body[data-route=inicio] .dashboard-search-shell .dashboard-search input { height:44px;min-height:44px;margin:0;padding:8px 10px;text-align:left;font-size:16px; }
.scan-manual #scan-manual-search { margin-top:24px;padding-top:16px;border-top:1px solid var(--ah-line-strong); }
.scan-manual #scan-manual-search h3 { margin:0 0 12px;font-size:18px; }
.scan-manual .scan-review-reason { font-size:14px;color:var(--ah-ink-soft); }
.scan-manual #scan-search-status:empty { display:none; }
@media(max-width:600px) and (max-height:700px){
 #vbind-config.vbind-guide form { gap:6px 8px; }
 #vbind-config.vbind-guide .vbind-guide-targets { max-height:60px; }
}

/* Mobile opening: self-contained tokens; only transform/opacity are animated.
   Uses the already loaded theme assets. No images, fonts or animation runtime. */
#mundodex-splash {
 --md-splash-navy:#07111f;
 --md-splash-depth:#0e2341;
 --md-splash-ink:#eaf3ff;
 --md-splash-blue:#3184f2;
 --md-splash-cyan:#6ed6ef;
 --md-splash-muted:#a8bdd8;
 position:fixed;inset:0;z-index:2147483000;
 display:grid;place-items:center;box-sizing:border-box;
 padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
 overflow:hidden;isolation:isolate;touch-action:none;
 color:var(--md-splash-ink);color-scheme:dark;
 background:radial-gradient(ellipse at 50% 43%,var(--md-splash-depth),var(--md-splash-navy) 72%);
 font-family:var(--ah-font-ui);text-align:center;
 animation:md-splash-exit var(--md-splash-fade) ease-out var(--md-splash-hold) both;
}
#mundodex-splash::before {
 content:"";position:absolute;inset:0;z-index:-1;opacity:.045;pointer-events:none;
 background-image:linear-gradient(var(--md-splash-cyan) 1px,transparent 1px),linear-gradient(90deg,var(--md-splash-cyan) 1px,transparent 1px);
 background-size:48px 48px;
 mask-image:radial-gradient(ellipse at center,#000,transparent 65%);
}
#mundodex-splash .md-splash-composition { width:min(100%,360px); }
#mundodex-splash .md-splash-fan {
 position:relative;width:100%;height:clamp(182px,32vh,262px);margin-bottom:clamp(22px,4vh,34px);
 display:grid;place-items:center;
}
#mundodex-splash .md-splash-card {
 --card-x:0%;--card-y:0%;--card-turn:0deg;
 grid-area:1/1;width:34%;aspect-ratio:63/88;position:relative;
 border:1px solid rgba(234,243,255,.35);border-radius:12%;
 background:linear-gradient(145deg,rgba(255,255,255,.22),rgba(7,17,31,.15)),var(--card-color);
 box-shadow:0 12px 24px rgba(0,0,0,.23),inset 0 0 0 3px rgba(255,255,255,.09);
 transform:translate(var(--card-x),var(--card-y)) rotate(var(--card-turn));
 animation:md-splash-card-in .65s cubic-bezier(.16,1,.3,1) var(--card-delay) both;
}
#mundodex-splash .md-splash-card::before {
 content:"";position:absolute;inset:8%;border:1px solid rgba(255,255,255,.22);border-radius:9%;
 background:linear-gradient(135deg,transparent 45%,rgba(255,255,255,.08) 45% 60%,transparent 60%);
}
#mundodex-splash .md-splash-purple { --card-color:#8e7ec5;--card-x:-74%;--card-y:12%;--card-turn:-26deg;--card-delay:.1s; }
#mundodex-splash .md-splash-gold { --card-color:#e7c769;--card-x:-39%;--card-y:-3%;--card-turn:-13deg;--card-delay:.3s; }
#mundodex-splash .md-splash-coral { --card-color:#da777c;--card-x:73%;--card-y:12%;--card-turn:25deg;--card-delay:.5s; }
#mundodex-splash .md-splash-green { --card-color:#6eb699;--card-x:39%;--card-y:-3%;--card-turn:13deg;--card-delay:.7s; }
#mundodex-splash .md-splash-blue {
 --card-delay:1.1s;--card-y:-5%;width:37%;
 background:linear-gradient(145deg,var(--md-splash-cyan),var(--md-splash-blue) 52%,#1b50ad);
 box-shadow:0 16px 30px rgba(0,0,0,.3),inset 0 0 0 3px rgba(234,243,255,.12);
}
#mundodex-splash .md-splash-symbol { display:block;position:relative;width:80%;height:auto;margin:28% auto;overflow:visible; }
#mundodex-splash .md-splash-arc { stroke:var(--md-splash-ink);stroke-width:7;stroke-linecap:square;transform-origin:50px 50px;animation:md-splash-orbit-in .6s ease-out 1.6s both; }
#mundodex-splash .md-splash-arc-inner { stroke-width:5;stroke:var(--md-splash-cyan);animation-delay:1.72s; }
#mundodex-splash .md-splash-dot { fill:var(--md-splash-ink);transform-origin:50px 50px;animation:md-splash-dot-in .35s ease-out 1.85s both; }
#mundodex-splash .md-splash-wordmark {
 position:relative;display:inline-block;margin:0;color:var(--md-splash-ink);
 font-size:clamp(38px,11vw,52px);font-weight:900;line-height:1.1;letter-spacing:-.055em;
 animation:md-splash-copy-in .45s ease-out 2.2s both;
}
#mundodex-splash .md-splash-wordmark span { color:var(--md-splash-blue); }
#mundodex-splash .md-splash-wordmark i { position:absolute;right:-9px;top:1px;width:5px;height:9px;border-radius:2px;background:#e7c769;transform:rotate(26deg); }
#mundodex-splash .md-splash-tagline {
 margin-top:17px;color:var(--md-splash-muted);font-size:clamp(9px,2.55vw,11px);font-weight:600;line-height:1.6;letter-spacing:.15em;
 animation:md-splash-copy-in .4s ease-out 2.75s both;
}
@keyframes md-splash-card-in {
 from { opacity:0;transform:translate(0%,42%) rotate(0deg) scale(.86); }
 to { opacity:1;transform:translate(var(--card-x),var(--card-y)) rotate(var(--card-turn)); }
}
@keyframes md-splash-orbit-in { from { opacity:0;transform:rotate(-40deg) scale(.82); } to { opacity:1;transform:rotate(0deg) scale(1); } }
@keyframes md-splash-dot-in { from { opacity:0;transform:scale(.4); } to { opacity:1;transform:scale(1); } }
@keyframes md-splash-copy-in { from { opacity:0;transform:translateY(9px); } to { opacity:1;transform:translateY(0); } }
@keyframes md-splash-exit { from { opacity:1; } to { opacity:0; } }
@media (prefers-reduced-motion:reduce) {
 #mundodex-splash :is(.md-splash-card,.md-splash-arc,.md-splash-dot,.md-splash-wordmark,.md-splash-tagline) { animation:none; }
}
@media (min-width:769px) { #mundodex-splash { display:none; } }
/* Compact export choices and read-only holdings share the existing theme. */
html body .export-options { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
html body .export-options .button { display:flex;flex-direction:column;align-items:flex-start;gap:8px;white-space:normal;text-align:left;padding:16px;min-width:0; }
html body .export-options .button span { font-size:13px;font-weight:400;line-height:1.4; }
html body .card-wishlist { display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0; }
html body .card-wishlist .button { min-height:44px;white-space:normal; }
html body .card-wishlist a { font-size:14px; }
html body .card-allocation-panel:has(>h3) .card-holding-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
html body .card-allocation-panel:has(>h3) .card-binder-tag { font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.4; }
@media(max-width:600px) {
  html body .export-options { grid-template-columns:1fr; }
  html body .pdf-panel { padding:22px; }
  html body .card-allocation-panel:has(>h3) .card-holding-row { grid-template-columns:1fr; }
}
/* Home search: independent detail and stock actions, never nested buttons. */
.dashboard-search-results .search-result-row { display:flex;align-items:center;gap:8px;padding-right:10px;background:var(--surface,#fff);border-bottom:1px solid var(--line); }
.wish-button { flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--ah-paper,#fff);color:var(--ink,#175890);cursor:pointer; }
.wish-button svg { width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.wish-button:focus-visible { outline:3px solid #3184f2;outline-offset:2px; }
body .wish-button[aria-pressed="true"] svg { fill:currentColor; }
body .wish-button[aria-pressed="true"],body .card-wishlist button[aria-pressed="true"] { color:var(--primary,#1672ce); }
.card-meta-footer { display:flex;align-items:center;gap:4px;min-width:0; }
body.card-catalog-page[data-route] .card-meta-footer .card-set-line { flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere; }
.card-meta-footer .wish-button,.set-quantity-quick .wish-button { width:32px;min-height:32px;padding:7px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--ink,#175890); }
.card-meta-footer .wish-button svg,.set-quantity-quick .wish-button svg { width:16px;height:16px; }
.card-meta-footer .wish-button:hover,.set-quantity-quick .wish-button:hover { background:rgba(49,132,242,.12); }
.wishlist-editor { width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--ah-paper,#fff);color:var(--ink,#173754); }
.wishlist-editor::backdrop { background:#06142699; }
.wishlist-editor h2 { margin:0 0 12px; }
.wishlist-editor p { line-height:1.5;overflow-wrap:anywhere; }
.wishlist-editor label { display:grid;gap:8px;font-weight:700; }
.wishlist-editor input { font-size:16px;min-height:44px;width:100%;box-sizing:border-box; }
.wishlist-actions { display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:20px; }
main.vbind-module .vbind-era-group>.vbind-library { padding:12px;margin:0; }
.dashboard-search-results .search-suggestion { flex:1;min-width:0;border:0;background:transparent;color:var(--ink); }
.dashboard-search-results .search-suggestion > span:last-child { min-width:0;overflow-wrap:anywhere; }
.dashboard-search-results .search-add { flex:none;display:flex;align-items:center;justify-content:center;gap:4px;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:12px;background:#e5f3ff;color:#175890;font-size:13px;font-weight:700; }
.dashboard-search-results .search-add:focus-visible { outline:2px solid #3184f2;outline-offset:2px; }
.dashboard-search-results .search-add:disabled { opacity:.65; }
html[data-color-mode=dark] .dashboard-search-results,html[data-color-mode=dark] .search-result-row { background:#102b43;color:#eaf3ff; }
html[data-color-mode=dark] .dashboard-search-results .search-suggestion { color:#eaf3ff; }
html[data-color-mode=dark] .dashboard-search-results .search-suggestion small,html[data-color-mode=dark] .dashboard-search-results .search-suggestion em { color:#afcbe5; }
html[data-color-mode=dark] .dashboard-search-results .search-add { background:#193e60;color:#eaf3ff; }
@media(max-width:600px) { .search-add .search-add-label { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); } .dashboard-search-results .search-add { font-size:22px; } }
main.vbind-module .vbind-status[hidden] { display:none; }
@media(max-width:768px){
  main.vbind-module.vbind-editing .vbind-move-handle { display:none!important; }
  main.vbind-module.vbind-editing .vbind-pocket-main { -webkit-touch-callout:none;user-select:none;cursor:pointer; }
}
main.vbind-module .vbind-move-handle { position:absolute;bottom:4px;left:4px;z-index:5;width:36px;height:36px;padding:6px;align-items:center;justify-content:center;border:1px solid var(--binder-line);border-radius:50%;background:var(--binder-surface);color:var(--binder-ink);pointer-events:auto;touch-action:none;cursor:grab; }
main.vbind-module .vbind-move-handle:active { cursor:grabbing; }
main.vbind-module .vbind-move-handle:focus-visible { outline:3px solid #3184f2;outline-offset:2px; }
main.vbind-module.vbind-editing .vbind-pocket-main { cursor:grab;touch-action:pan-y; }
main.vbind-module.vbind-editing [data-vbind-mode] { background:var(--binder-surface);color:var(--binder-ink); }
main.vbind-module.vbind-editing [data-vbind-pocket-tools] { background:#3184f2;color:#fff;border-color:#3184f2; }
main.vbind-module .vbind-toolbar [hidden] { display:none!important; }

/* 1_032: readable context links, preserving card art and the existing identity. */
#card-dialog .card-dialog-context-links { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
#card-dialog .card-context-link { grid-template-columns:28px minmax(0,1fr) auto;gap:9px;min-height:64px;padding:10px;border-color:var(--mdx-control-line,#b5cee4);background:var(--mdx-control-bg,#f6fbff);color:var(--mdx-control-ink,#173b60); }
#card-dialog .card-context-link small { margin-bottom:4px;font-size:11px;line-height:1.35;color:inherit;font-weight:600; }
#card-dialog .card-context-link b { font-size:13px;line-height:1.4;white-space:normal;overflow:visible;overflow-wrap:anywhere;color:inherit; }
#card-dialog .card-context-icon { width:28px;height:28px; }
#card-dialog .card-context-link:focus-visible { outline:3px solid var(--ah-blue,#1565bb);outline-offset:2px; }
.sidebar .sidebar-legal { display:none; }
@media(min-width:1101px) {
  .sidebar .sidebar-legal { display:flex;flex-wrap:wrap;gap:0 12px;margin:auto 8px 0;padding-top:20px; }
  .sidebar .sidebar-legal a { display:inline-flex;align-items:center;min-height:36px;padding:0;color:#c7d8eb;font-size:11px;line-height:1.4;background:none; }
  .sidebar .sidebar-legal a:hover { color:#fff;text-decoration:underline;text-underline-offset:3px; }
  .sidebar .sidebar-legal a:focus-visible { outline:2px solid #9bdaf1;outline-offset:3px; }
  .sidebar .sidebar-bottom { margin-top:8px; }
  footer.legal-footer .legal-links { display:none; }
}
@media(max-width:700px) {
  #card-dialog .card-dialog-context-links { grid-template-columns:1fr;gap:8px; }
  #card-dialog .card-context-link { min-height:54px; }
}
/* The same language control in toolbars, card lists and native dialogs. */
html[data-product=mundodex][data-color-mode] body[data-route] .mdx-language-field {
 display:flex;flex-direction:row;align-items:center;gap:8px;flex:0 0 auto;
 width:max-content;min-width:0;max-width:100%;height:44px;min-height:44px;
 box-sizing:border-box;padding:0 14px;border:1px solid var(--ah-line-strong);
 border-radius:24px;background:var(--ah-paper);color:var(--ah-ink);
 box-shadow:none;font:600 14px/1.25 var(--ah-font-ui);
}
html[data-product=mundodex][data-color-mode] body[data-route] .mdx-language-field .multi-caption { display:none; }
html[data-product=mundodex][data-color-mode] body[data-route] .mdx-language-field .multi-picker { display:flex;align-items:center;min-width:0;width:auto;height:100%; }
html[data-product=mundodex][data-color-mode] body[data-route] .mdx-language-field .multi-picker>summary {
 display:flex;align-items:center;gap:6px;width:auto;min-width:0;height:100%;min-height:0;
 padding:0 22px 0 0;border:0;border-radius:24px;background:transparent;color:inherit;
 box-shadow:none;white-space:nowrap;font:inherit;
}
html[data-product=mundodex][data-color-mode] body[data-route] .mdx-language-field .multi-picker>summary::after { right:0;top:50%;transform:translateY(-50%); }
html[data-product=mundodex] body :is(.mdx-language-panel,#vbind-config .mdx-language-panel) .multi-option {
 display:flex;flex-direction:row;align-items:center;justify-content:flex-start;
 box-sizing:border-box;gap:10px;min-height:44px;margin:0;padding:8px;
 font:500 14px/1.4 var(--ah-font-ui);
}
html[data-product=mundodex] body :is(.mdx-language-panel,#vbind-config .mdx-language-panel) .multi-option input {
 flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;
 margin:0;padding:0;accent-color:var(--ah-blue);
}
html[data-product=mundodex] body :is(.mdx-language-panel,#vbind-config .mdx-language-panel) .multi-option span { font:inherit; }

/* Species identity is independent from an exact biological form. */
.pokemon-cards-summary.pokemon-species-scope{display:flex;align-items:center;gap:8px;flex-wrap:wrap;white-space:normal;overflow:visible}
.pokemon-species-scope .button{flex:none}
.pokemon-species-scope span{min-width:0;flex:1 1 220px}

/* 1_054: consistent gallery rhythm and detail reading order; existing palette. */
.card-grid > .acervo-card { display:flex;flex-direction:column;height:100%;align-self:stretch;box-sizing:border-box; }
.card-grid > .acervo-card > .card-content { display:flex;flex:1;flex-direction:column;min-height:0; }
.card-grid > .acervo-card .acervo-card-primary { min-height:2.6em; }
.card-grid > .acervo-card .acervo-card-secondary { flex:1; }
.card-grid > .acervo-card .acervo-card-variant { min-height:2.6em; }
.card-grid > .acervo-card .card-meta-footer { min-height:3.1em; }
#card-dialog .card-dialog-title-row > span { font-size:15px;font-variant-numeric:tabular-nums; }
#card-dialog .card-wishlist { display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0; }
#card-dialog .card-wishlist-icon { display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:10px; }
#card-dialog .card-wishlist-icon svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8; }
#card-dialog .card-wishlist-icon[aria-pressed="true"] svg { fill:currentColor; }
#card-dialog .trade-button-labeled { display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:44px;height:auto;padding:10px 12px;font:600 13px var(--ah-font-ui); }
#card-dialog .trade-button-labeled svg { flex:0 0 22px;width:22px;height:22px; }
@media(max-width:600px) { #card-dialog .card-dialog-title-row > span { font-size:14px; } }
