/* Shared database surfaces. Keep item rarity, maps and floating TIPs intact. */
:is(.database-page,.detail-page,.a2-section-page){--db-panel:#1b1d1f;--db-raised:#242628;--db-row:#191b1d;--db-alt:#202224;--db-hover:#2b2d30}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-filter-side,.a2-filter-side form,.a2-section-sidebar,.a2-section-list,.a2-section-profile,.a2-relation-card,.a2-recipe-card,.a2-quest-tip,.a2-item-list){border:0;border-radius:3px;box-shadow:none;background:var(--db-panel)}
:is(.database-page,.detail-page,.a2-section-page) .a2-results{border:0;border-radius:3px;box-shadow:none}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-detail-crumbbar,.a2-detail-quicknav,.a2-db-browser-head){border:0;border-radius:3px;box-shadow:none;background:var(--db-panel)}
:is(.database-page,.detail-page,.a2-section-page) .a2-detail-crumbbar{min-height:40px;margin-bottom:10px}
:is(.database-page,.detail-page,.a2-section-page) .a2-detail-quicknav{min-height:44px;padding:5px 10px;margin-bottom:12px}
:is(.database-page,.detail-page,.a2-section-page) .a2-detail-quicknav a{border-radius:3px;padding:6px 9px}
:is(.database-page,.detail-page,.a2-section-page) .a2-detail-quicknav a[aria-current=location]{background:#34302a;color:#efb45e}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-browser-controls select,.a2-sort-direction,.a2-section-filters input,.a2-section-filters select,.a2-section-filters button,.a2-branch-search,.a2-data-search,.a2-recipe-search){border:0;border-radius:3px;box-shadow:none;background:var(--db-raised)}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-results-summary,.a2-item-list-head,.a2-section-table-head,.a2-recipe-table-head,.a2-quest-table-head,.a2-quest-reward-heading){border:0;background:var(--db-raised)}
:is(.database-page,.detail-page,.a2-section-page) .a2-results-summary{border-radius:3px 3px 0 0;min-height:34px}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-item-row,.a2-section-row,.a2-section-linked,.a2-recipe-row,.a2-quest-source-row,.a2-quest-reward-row,.a2-npc-drop){border-bottom:0;background:var(--db-row)}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-item-row,.a2-section-row,.a2-section-linked,.a2-recipe-row,.a2-quest-source-row,.a2-quest-reward-row,.a2-npc-drop):nth-child(odd){background:var(--db-alt)}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-item-row,.a2-section-row,.a2-section-linked,.a2-recipe-row,.a2-quest-source-row,.a2-quest-reward-row,.a2-npc-drop):hover{background:var(--db-hover);box-shadow:none}
:is(.database-page,.detail-page,.a2-section-page) .a2-item-list.is-list .a2-item-row{min-height:50px;padding:6px 12px}
:is(.database-page,.detail-page,.a2-section-page) .a2-section-row{padding:8px 12px}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-relation-card,.a2-section-list)>header{border:0;background:var(--db-raised);padding:10px 12px}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-relation-heading,.a2-recipe-footer){border:0;border-radius:3px;background:var(--db-panel);padding:10px 12px}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-tree-root,.a2-tree-extra,.a2-section-nav-heading){border:0}
:is(.database-page,.detail-page,.a2-section-page) .a2-tree-divider{background:transparent;margin:3px 0}
:is(.database-page,.detail-page,.a2-section-page) .a2-section-profile dl>div{border:0;padding:6px 0}
:is(.database-page,.detail-page,.a2-section-page) .a2-page-tip .a2-tip{border:0;border-radius:3px;box-shadow:none}
:is(.database-page,.detail-page,.a2-section-page) .a2-page-tip :is(.a2-tip-hero,.a2-tip footer,.a2-enchant-control){border:0}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-item-workbench,.a2-section-detail,.a2-section-relations,.a2-quest-workbench){gap:12px}
:is(.database-page,.detail-page,.a2-section-page) :is(input,select,button,a):focus-visible{outline:2px solid #efb45e;outline-offset:2px}

/* A single flat category panel with a consistent text and count alignment. */
:is(.database-page,.detail-page,.a2-section-page) .a2-filter-content{border:0;border-radius:3px;background:var(--db-panel);box-shadow:none}
:is(.database-page,.detail-page,.a2-section-page) .a2-category-tree{padding:6px;font-size:13px}
:is(.database-page,.detail-page,.a2-section-page) .a2-tree-root{margin:0 0 5px;min-height:34px;padding:5px 8px;border-radius:3px;background:var(--db-raised)}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-tree-root,.a2-tree-all,.a2-tree-group-link,.a2-tree-pending){grid-template-columns:18px minmax(0,1fr) auto;gap:8px}
:is(.database-page,.detail-page,.a2-section-page) .a2-tree-root>.a2-tree-chevron{grid-column:3}
:is(.database-page,.detail-page,.a2-section-page) :is(.a2-tree-all,.a2-tree-group-link,.a2-tree-pending){min-height:32px;padding:5px 8px;border-radius:3px}
:is(.database-page,.detail-page,.a2-section-page) .a2-tree-group-heading>.a2-tree-group-link{padding-right:32px}
:is(.database-page,.detail-page,.a2-section-page) .a2-tree-toggle{right:0;width:28px}
:is(.database-page,.detail-page,.a2-section-page) .a2-tree-children{padding:2px 0 5px 20px;gap:2px}
:is(.database-page,.detail-page,.a2-section-page) .a2-tree-children a{min-height:30px;padding:4px 8px;font-size:13px;line-height:20px}
:is(.database-page,.detail-page,.a2-section-page) .a2-category-tree small{color:#93989e;font-size:10px;font-variant-numeric:tabular-nums;white-space:nowrap}
:is(.database-page,.detail-page,.a2-section-page) .a2-category-tree a.is-active{background:#34302a;color:#efb45e;box-shadow:none}
:is(.database-page,.detail-page,.a2-section-page) .a2-category-tree a.is-active small{color:#c4ac89}
:is(.database-page,.detail-page,.a2-section-page) .a2-category-tree a:not(.is-active):hover{background:var(--db-hover)}
:is(.database-page,.detail-page,.a2-section-page) .a2-section-nav-heading{margin:8px 0 3px;padding:5px 8px;color:#93989e}
