/*
    Aion America Database redesign layer.
    Loaded after the older database styles so the current UI stays consistent
    across home, browse, search and entity detail pages.
*/

:root {
    --aa-ui-bg: #05070a;
    --aa-ui-bg-2: #081018;
    --aa-ui-surface: #0b131c;
    --aa-ui-surface-2: #101b27;
    --aa-ui-surface-3: #162333;
    --aa-ui-line: rgba(205, 176, 111, 0.2);
    --aa-ui-line-cool: rgba(101, 158, 220, 0.24);
    --aa-ui-gold: #d8bd79;
    --aa-ui-gold-2: #f1d99a;
    --aa-ui-blue: #4d8dd8;
    --aa-ui-blue-2: #235a9c;
    --aa-ui-text: #eef4fa;
    --aa-ui-muted: #aebccc;
    --aa-ui-dim: #7e8b9a;
    --aa-ui-danger: #d76b6b;
    --aa-ui-radius: 8px;
    --aa-ui-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

html {
    background: var(--aa-ui-bg);
}

body.aa-db-host-body {
    background:
        linear-gradient(180deg, #0b1118 0, var(--aa-ui-bg) 340px, #030405 100%) !important;
    color: var(--aa-ui-text);
    text-rendering: optimizeLegibility;
}

body.aa-db-host-body *,
body.aa-db-host-body *::before,
body.aa-db-host-body *::after {
    letter-spacing: 0 !important;
}

body.aa-db-host-body::before {
    opacity: 0.16 !important;
}

body.aa-db-host-body::after {
    opacity: 0.12 !important;
}

body.aa-db-host-body a {
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

body.aa-db-host-body a:focus-visible,
body.aa-db-host-body button:focus-visible,
body.aa-db-host-body input:focus-visible,
body.aa-db-host-body select:focus-visible,
body.aa-db-host-body summary:focus-visible {
    outline: 2px solid rgba(112, 178, 242, 0.9);
    outline-offset: 3px;
}

body.aa-db-host-body .container {
    max-width: min(1680px, calc(100vw - 32px));
}

body.aa-db-host-body .aa-db-host-main {
    min-height: calc(100vh - 220px);
}

body.aa-db-host-body .aa-db-alert-shell {
    padding-top: 82px !important;
}

/* Header */
body.aa-db-host-body .aa-db-sitebar {
    background:
        linear-gradient(180deg, rgba(8, 10, 13, 0.98), rgba(5, 7, 10, 0.97)) !important;
    border-bottom: 1px solid rgba(216, 189, 121, 0.2) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(18px);
}

body.aa-db-host-body .aa-db-sitebar .container {
    max-width: min(1760px, calc(100vw - 32px));
}

body.aa-db-host-body .aa-db-sitebar-inner {
    min-height: 68px !important;
    display: grid !important;
    grid-template-columns: minmax(186px, 240px) minmax(0, 1fr) max-content;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

body.aa-db-host-body .aa-db-sitebar-brand {
    min-width: 0 !important;
    max-width: 100%;
    gap: 11px !important;
}

body.aa-db-host-body .aa-db-sitebar-brand-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: var(--aa-ui-radius) !important;
    border-color: rgba(216, 189, 121, 0.42) !important;
    background: linear-gradient(180deg, #182536, #0b1018) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.32) !important;
}

body.aa-db-host-body .aa-db-sitebar-brand-copy .eyebrow {
    color: var(--aa-ui-gold-2) !important;
    font-size: 0.8rem;
    font-weight: 800;
}

body.aa-db-host-body .aa-db-sitebar-brand-copy .title {
    color: #f7efe0 !important;
    font-size: 1.02rem !important;
    line-height: 1;
}

body.aa-db-host-body .aa-db-sitebar-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
}

body.aa-db-host-body .aa-db-sitebar-mobile-nav,
body.aa-db-host-body .aa-db-sitebar-nav-groups,
body.aa-db-host-body .aa-db-sitebar-search {
    display: none !important;
}

body.aa-db-host-body .aa-db-sitebar-home-quicknav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
}

body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link,
body.aa-db-host-body .aa-db-sitebar-main-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(132, 151, 173, 0.24) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: linear-gradient(180deg, rgba(20, 30, 42, 0.92), rgba(8, 12, 17, 0.96)) !important;
    color: rgba(240, 245, 249, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:hover,
body.aa-db-host-body .aa-db-sitebar-main-link:hover {
    border-color: rgba(216, 189, 121, 0.42) !important;
    background: linear-gradient(180deg, rgba(30, 42, 56, 0.98), rgba(10, 15, 21, 0.98)) !important;
    color: #ffffff !important;
}

body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link.is-active {
    border-color: rgba(98, 164, 232, 0.78) !important;
    background: linear-gradient(180deg, var(--aa-ui-blue), var(--aa-ui-blue-2)) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(21, 76, 146, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

body.aa-db-host-body .aa-db-nav-button-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
}

body.aa-db-host-body .aa-db-nav-icon {
    width: 18px !important;
    height: 18px !important;
    color: var(--aa-ui-gold) !important;
}

body.aa-db-host-body .aa-db-sitebar-home-quicknav .is-active .aa-db-nav-icon {
    color: #fff6df !important;
}

body.aa-db-host-body .aa-db-nav-label {
    font-size: 0.88rem !important;
    font-weight: 800;
    line-height: 1;
}

body.aa-db-host-body .aa-db-sitebar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    width: auto !important;
    min-width: max-content !important;
}

body.aa-db-host-body .aa-db-sitebar-main-link {
    min-width: 138px !important;
    border-color: rgba(216, 189, 121, 0.28) !important;
}

@media (min-width: 1800px) {
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link {
        display: inline-flex !important;
    }
}

@media (min-width: 1500px) and (max-width: 1799.98px) {
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(n + 11):not(:nth-child(12)) {
        display: none !important;
    }
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
    body.aa-db-host-body .aa-db-sitebar-inner {
        grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) max-content;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav {
        gap: 5px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link {
        display: none !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(-n + 6),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(8),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(9),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(12) {
        display: inline-flex !important;
    }

    body.aa-db-host-body .aa-db-nav-label {
        font-size: 0.82rem !important;
    }

    body.aa-db-host-body .aa-db-sitebar-main-link {
        min-width: 126px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    body.aa-db-host-body .aa-db-alert-shell {
        padding-top: 124px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-inner {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 8px 12px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-center {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start !important;
    }

    body.aa-db-host-body .aa-db-sitebar-actions {
        grid-column: 2;
        grid-row: 1;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav {
        justify-content: flex-start !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(-n + 5),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(8),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(12) {
        display: inline-flex !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    body.aa-db-host-body .aa-db-alert-shell {
        padding-top: 126px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-inner {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 8px 10px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-center {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start !important;
    }

    body.aa-db-host-body .aa-db-sitebar-actions {
        grid-column: 2;
        grid-row: 1;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav {
        justify-content: flex-start !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(-n + 4),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(8),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(12) {
        display: inline-flex !important;
    }
}

@media (max-width: 767.98px) {
    body.aa-db-host-body .container {
        max-width: calc(100vw - 20px);
    }

    body.aa-db-host-body .aa-db-alert-shell {
        padding-top: 120px !important;
    }

    body.aa-db-host-body .aa-db-sitebar .container {
        max-width: calc(100vw - 18px);
    }

    body.aa-db-host-body .aa-db-sitebar-inner {
        grid-template-columns: minmax(0, 1fr) max-content;
        min-height: 0 !important;
        gap: 8px !important;
        padding-top: 7px !important;
        padding-bottom: 8px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-center {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start !important;
    }

    body.aa-db-host-body .aa-db-sitebar-actions {
        grid-column: 2;
        grid-row: 1;
    }

    body.aa-db-host-body .aa-db-sitebar-brand-mark {
        width: 34px !important;
        height: 34px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-brand-copy .eyebrow {
        font-size: 0.72rem;
    }

    body.aa-db-host-body .aa-db-sitebar-brand-copy .title {
        font-size: 0.92rem !important;
    }

    body.aa-db-host-body .aa-db-sitebar-main-link {
        min-width: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav {
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link {
        display: none !important;
        min-height: 34px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(1),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(2),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(3),
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(8) {
        display: inline-flex !important;
    }

    body.aa-db-host-body .aa-db-nav-icon {
        width: 16px !important;
        height: 16px !important;
    }

    body.aa-db-host-body .aa-db-nav-label {
        font-size: 0.78rem !important;
    }
}

@media (min-width: 480px) and (max-width: 767.98px) {
    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link:nth-child(12) {
        display: inline-flex !important;
    }
}

/* Affiliate row */
body.aa-db-host-body .aa-db-affiliate-shell {
    padding: 9px 0 10px !important;
    border-bottom: 1px solid rgba(216, 189, 121, 0.12) !important;
    background: linear-gradient(180deg, rgba(9, 12, 15, 0.95), rgba(6, 8, 11, 0.98)) !important;
}

body.aa-db-host-body .aa-db-affiliate-inline {
    justify-content: center !important;
    gap: 8px !important;
    transform: none !important;
}

body.aa-db-host-body .aa-db-affiliate-tag {
    min-height: 22px !important;
    border-color: rgba(216, 189, 121, 0.18) !important;
    background: rgba(216, 189, 121, 0.06) !important;
    color: rgba(222, 207, 172, 0.78) !important;
}

body.aa-db-host-body .aa-db-affiliate-inline-link {
    min-height: 38px !important;
    max-width: min(900px, 100%) !important;
    padding: 6px 12px !important;
    border-radius: var(--aa-ui-radius) !important;
    border-color: rgba(132, 151, 173, 0.2) !important;
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.72), rgba(9, 12, 16, 0.86)) !important;
    color: rgba(231, 239, 247, 0.82) !important;
}

body.aa-db-host-body .aa-db-affiliate-inline-link:hover {
    border-color: rgba(216, 189, 121, 0.28) !important;
    background: linear-gradient(180deg, rgba(23, 32, 42, 0.86), rgba(10, 14, 19, 0.94)) !important;
    transform: none !important;
}

body.aa-db-host-body .aa-db-affiliate-inline-logo {
    width: 108px !important;
    height: 24px !important;
    opacity: 0.92 !important;
}

body.aa-db-host-body .aa-db-affiliate-inline-copy {
    color: rgba(206, 217, 229, 0.76) !important;
    font-size: 0.82rem !important;
}

body.aa-db-host-body .aa-db-affiliate-inline-cta {
    color: #ecd798 !important;
}

@media (max-width: 767.98px) {
    body.aa-db-host-body .aa-db-affiliate-shell {
        padding: 7px 0 !important;
    }

    body.aa-db-host-body .aa-db-affiliate-tag,
    body.aa-db-host-body .aa-db-affiliate-inline-copy {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-affiliate-inline-link {
        width: 100%;
        justify-content: center;
    }
}

/* Shared page shell */
body.aa-db-host-body .aa-db-hero {
    margin-top: 0 !important;
    padding: 30px 0 44px !important;
    background:
        linear-gradient(180deg, rgba(10, 17, 25, 0.98) 0, rgba(6, 10, 15, 0.99) 62%, #050607 100%) !important;
}

body.aa-db-host-body .aa-db-shell,
body.aa-db-host-body .aa-db-shell-home-clean {
    border: 1px solid rgba(216, 189, 121, 0.18) !important;
    border-radius: var(--aa-ui-radius) !important;
    background:
        linear-gradient(180deg, rgba(12, 19, 27, 0.98), rgba(7, 11, 16, 0.99)) !important;
    box-shadow: var(--aa-ui-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
    overflow: hidden !important;
}

body.aa-db-host-body .aa-db-head,
body.aa-db-host-body .aa-db-head-themed,
body.aa-db-host-body .aa-db-npc-head {
    padding: 24px 26px !important;
    border-bottom: 1px solid rgba(216, 189, 121, 0.16) !important;
    background:
        linear-gradient(180deg, rgba(17, 31, 45, 0.96), rgba(10, 17, 25, 0.98)) !important;
}

body.aa-db-host-body .aa-db-head h1,
body.aa-db-host-body .aa-db-head h2 {
    color: #fff5df !important;
    font-size: clamp(1.75rem, 3vw, 3.1rem) !important;
    line-height: 1.05 !important;
}

body.aa-db-host-body .aa-db-head p {
    max-width: 78ch;
    color: rgba(220, 230, 240, 0.78) !important;
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
}

body.aa-db-host-body .aa-db-body,
body.aa-db-host-body .aa-db-body-detail-clean,
body.aa-db-host-body .aa-db-body-browse-clean {
    padding: 24px 26px 30px !important;
}

body.aa-db-host-body .aa-db-card,
body.aa-db-host-body .aa-db-results-toolbar,
body.aa-db-host-body .aa-db-search-summary,
body.aa-db-host-body .aa-db-search-group,
body.aa-db-host-body .aa-db-search-card,
body.aa-db-host-body .aa-db-results-grid .aa-db-result,
body.aa-db-host-body .aa-db-filter-panel {
    border: 1px solid rgba(101, 158, 220, 0.22) !important;
    border-radius: var(--aa-ui-radius) !important;
    background:
        linear-gradient(180deg, rgba(14, 22, 31, 0.94), rgba(7, 12, 18, 0.98)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.aa-db-host-body .aa-db-card {
    padding: 18px !important;
}

body.aa-db-host-body .aa-db-muted,
body.aa-db-host-body .aa-db-result-sub,
body.aa-db-host-body .aa-db-list-sub {
    color: rgba(199, 211, 224, 0.74) !important;
}

body.aa-db-host-body .aa-db-pill,
body.aa-db-host-body .aa-db-filter-chip,
body.aa-db-host-body .aa-db-section-jump,
body.aa-db-host-body .aa-db-check-label,
body.aa-db-host-body .aa-db-page-btn,
body.aa-db-host-body .aa-db-page-index {
    border-radius: var(--aa-ui-radius) !important;
}

/* Home */
body.aa-db-host-body.aa-db-home-page .aa-db-hero-home-clean,
body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-hero-home-clean {
    padding: 30px 0 46px !important;
}

body.aa-db-host-body.aa-db-home-page .aa-db-shell-home-clean,
body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-shell-home-clean {
    max-width: 1240px !important;
    margin-inline: auto !important;
}

body.aa-db-host-body .aa-db-home-clean {
    padding: clamp(28px, 4vw, 48px) !important;
}

body.aa-db-host-body .aa-db-home-command {
    display: grid;
    gap: 24px;
    text-align: left !important;
}

body.aa-db-host-body .aa-db-home-command-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
    gap: 30px;
    align-items: end;
}

body.aa-db-host-body .aa-db-home-clean-kicker,
body.aa-db-host-body .aa-db-browse-head-kicker,
body.aa-db-host-body .aa-db-search-summary-kicker,
body.aa-db-host-body .aa-db-filter-label,
body.aa-db-host-body .aa-db-filter-section-title {
    color: var(--aa-ui-gold) !important;
}

body.aa-db-host-body .aa-db-home-command-copy h1 {
    margin: 8px 0 12px !important;
    color: #fff5df !important;
    font-family: "Cinzel", serif !important;
    font-size: clamp(3rem, 5.4vw, 5.4rem) !important;
    line-height: 0.96 !important;
    text-shadow: 0 14px 32px rgba(0, 0, 0, 0.42) !important;
}

body.aa-db-host-body .aa-db-home-command-copy p {
    max-width: 66ch;
    margin: 0 !important;
    color: rgba(220, 230, 240, 0.78) !important;
    font-size: 1.02rem !important;
    line-height: 1.65 !important;
}

body.aa-db-host-body .aa-db-home-command-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.aa-db-host-body .aa-db-home-command-counts span {
    min-height: 70px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid rgba(216, 189, 121, 0.18);
    border-radius: var(--aa-ui-radius);
    background: linear-gradient(180deg, rgba(19, 31, 43, 0.88), rgba(9, 14, 20, 0.96));
}

body.aa-db-host-body .aa-db-home-command-counts strong {
    color: #fff8e7;
    font-size: 1.12rem;
    line-height: 1;
}

body.aa-db-host-body .aa-db-home-command-counts em {
    color: rgba(188, 202, 217, 0.82);
    font-size: 0.75rem;
    font-style: normal;
    text-transform: uppercase;
}

body.aa-db-host-body .aa-db-searchbar,
body.aa-db-host-body .aa-db-home-clean-search {
    width: 100%;
    max-width: none !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    gap: 10px;
    padding: 10px !important;
    border: 1px solid rgba(101, 158, 220, 0.38) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: linear-gradient(180deg, rgba(5, 11, 18, 0.98), rgba(3, 7, 12, 0.98)) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.aa-db-host-body .aa-db-searchbar input,
body.aa-db-host-body .aa-db-home-clean-search input,
body.aa-db-host-body .aa-db-results-refine input[type="search"],
body.aa-db-host-body .aa-db-inline-field input[type="text"],
body.aa-db-host-body .aa-db-inline-field input[type="number"],
body.aa-db-host-body .aa-db-select-wrap select {
    min-height: 44px !important;
    border: 1px solid rgba(101, 158, 220, 0.28) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: rgba(3, 8, 14, 0.92) !important;
    color: #f4f8fc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.aa-db-host-body .aa-db-searchbar input::placeholder,
body.aa-db-host-body .aa-db-results-refine input::placeholder {
    color: rgba(184, 197, 211, 0.62) !important;
}

body.aa-db-host-body .aa-db-searchbar button,
body.aa-db-host-body .aa-db-home-clean-search button,
body.aa-db-host-body .aa-db-results-refine button,
body.aa-db-host-body .aa-db-results-toolbar button,
body.aa-db-host-body .aa-db-options-btn {
    min-height: 44px !important;
    border: 1px solid rgba(119, 176, 236, 0.38) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: linear-gradient(180deg, var(--aa-ui-blue), var(--aa-ui-blue-2)) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 12px 28px rgba(17, 71, 140, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

body.aa-db-host-body .aa-db-searchbar button:hover,
body.aa-db-host-body .aa-db-home-clean-search button:hover,
body.aa-db-host-body .aa-db-results-refine button:hover,
body.aa-db-host-body .aa-db-results-toolbar button:hover {
    filter: brightness(1.08);
}

body.aa-db-host-body .aa-db-home-paths {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.aa-db-host-body .aa-db-home-path {
    min-height: 116px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(216, 189, 121, 0.18) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: linear-gradient(180deg, rgba(17, 29, 42, 0.86), rgba(7, 12, 18, 0.97)) !important;
    color: var(--aa-ui-text) !important;
    text-decoration: none !important;
}

body.aa-db-host-body .aa-db-home-path:hover {
    border-color: rgba(216, 189, 121, 0.4) !important;
    background: linear-gradient(180deg, rgba(24, 39, 55, 0.96), rgba(8, 14, 20, 0.99)) !important;
    transform: translateY(-1px);
}

body.aa-db-host-body .aa-db-home-path-index {
    color: var(--aa-ui-gold-2) !important;
    font-size: 0.8rem !important;
    font-weight: 900 !important;
}

body.aa-db-host-body .aa-db-home-path strong {
    display: block;
    color: #fff4df !important;
    font-size: 1rem !important;
    margin-bottom: 6px;
}

body.aa-db-host-body .aa-db-home-path em {
    display: block;
    color: rgba(194, 207, 221, 0.78) !important;
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
}

body.aa-db-host-body .aa-db-home-topic-row {
    display: flex;
    justify-content: flex-start !important;
    gap: 8px !important;
}

body.aa-db-host-body .aa-db-home-clean-link {
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(132, 151, 173, 0.22) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: rgba(8, 13, 19, 0.75) !important;
    color: rgba(232, 239, 246, 0.88) !important;
}

body.aa-db-host-body .aa-db-home-clean-link:hover {
    border-color: rgba(216, 189, 121, 0.34) !important;
    color: #ffffff !important;
}

@media (max-width: 1199.98px) {
    body.aa-db-host-body .aa-db-home-command-head {
        grid-template-columns: 1fr;
    }

    body.aa-db-host-body .aa-db-home-paths {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.aa-db-host-body.aa-db-home-page .aa-db-hero-home-clean,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-hero-home-clean {
        padding-top: 18px !important;
        padding-bottom: 28px !important;
    }

    body.aa-db-host-body .aa-db-home-clean {
        padding: 18px !important;
    }

    body.aa-db-host-body .aa-db-home-command {
        gap: 16px;
    }

    body.aa-db-host-body .aa-db-home-command-head {
        display: contents;
    }

    body.aa-db-host-body .aa-db-home-command-copy {
        order: 1;
    }

    body.aa-db-host-body .aa-db-home-clean-search {
        order: 2;
    }

    body.aa-db-host-body .aa-db-home-command-counts {
        order: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.aa-db-host-body .aa-db-home-paths {
        order: 4;
        grid-template-columns: 1fr;
    }

    body.aa-db-host-body .aa-db-home-topic-row {
        order: 5;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    body.aa-db-host-body .aa-db-home-command-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.1rem) !important;
        line-height: 1.02 !important;
    }

    body.aa-db-host-body .aa-db-home-command-copy p {
        font-size: 0.94rem !important;
        line-height: 1.5 !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts span {
        min-height: 62px;
        padding: 10px 11px;
    }

    body.aa-db-host-body .aa-db-searchbar,
    body.aa-db-host-body .aa-db-home-clean-search {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px !important;
    }

    body.aa-db-host-body .aa-db-home-path {
        min-height: 0;
        padding: 13px;
    }
}

/* Browse and search controls */
body.aa-db-host-body .aa-db-filter-panel {
    padding: 18px !important;
    gap: 16px !important;
}

body.aa-db-host-body .aa-db-filter-panel-head {
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

body.aa-db-host-body .aa-db-filter-section-title {
    font-family: "Cinzel", serif !important;
    font-size: 1.08rem !important;
}

body.aa-db-host-body .aa-db-filter-section-copy {
    color: rgba(196, 209, 224, 0.74) !important;
}

body.aa-db-host-body .aa-db-filter-panel-tools {
    align-items: flex-end !important;
    gap: 10px !important;
}

body.aa-db-host-body .aa-db-filter-lines {
    gap: 15px !important;
}

body.aa-db-host-body .aa-db-filter-inline-group,
body.aa-db-host-body .aa-db-filter-inline-combo,
body.aa-db-host-body .aa-db-filter-inline-row {
    min-width: 0 !important;
}

body.aa-db-host-body .aa-db-filter-inline-group-center,
body.aa-db-host-body .aa-db-filter-inline-combo-center {
    justify-items: start !important;
    justify-content: flex-start !important;
}

body.aa-db-host-body .aa-db-filter-inline-group-center .aa-db-filter-label {
    text-align: left !important;
}

body.aa-db-host-body .aa-db-filter-inline-group-center .aa-db-check-grid,
body.aa-db-host-body .aa-db-filter-inline-combo-center .aa-db-filter-inline-row {
    justify-content: flex-start !important;
}

body.aa-db-host-body .aa-db-filter-label,
body.aa-db-host-body .aa-db-inline-field label {
    color: rgba(216, 189, 121, 0.9) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

body.aa-db-host-body .aa-db-check-grid {
    gap: 8px !important;
}

body.aa-db-host-body .aa-db-check-label {
    min-height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(101, 158, 220, 0.22) !important;
    background: linear-gradient(180deg, rgba(16, 26, 37, 0.86), rgba(8, 12, 18, 0.94)) !important;
    color: rgba(237, 243, 249, 0.9) !important;
    font-size: 0.84rem !important;
    line-height: 1 !important;
}

body.aa-db-host-body .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(216, 189, 121, 0.55) !important;
    background: linear-gradient(180deg, rgba(53, 86, 128, 0.9), rgba(27, 58, 99, 0.94)) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.aa-db-host-body .aa-db-filter-reset {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(216, 189, 121, 0.24);
    border-radius: var(--aa-ui-radius);
    background: rgba(216, 189, 121, 0.06);
    color: #ecd798 !important;
    text-decoration: none;
    font-weight: 800;
}

body.aa-db-host-body .aa-db-filter-reset:hover {
    border-color: rgba(216, 189, 121, 0.42);
    background: rgba(216, 189, 121, 0.1);
}

body.aa-db-host-body .aa-db-results-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 10px 12px !important;
    flex-wrap: wrap !important;
    padding: 14px !important;
}

body.aa-db-host-body .aa-db-results-toolbar-search {
    align-items: flex-end !important;
}

body.aa-db-host-body .aa-db-results-refine {
    min-width: min(100%, 300px) !important;
    flex: 1 1 330px !important;
    gap: 7px !important;
}

body.aa-db-host-body .aa-db-results-refine-compact {
    flex: 0 0 auto !important;
    min-width: 0 !important;
}

body.aa-db-host-body .aa-db-pill,
body.aa-db-host-body .aa-db-filter-chip,
body.aa-db-host-body .aa-db-search-summary-pill {
    border: 1px solid rgba(101, 158, 220, 0.22) !important;
    background: linear-gradient(180deg, rgba(16, 26, 37, 0.82), rgba(8, 12, 18, 0.94)) !important;
    color: rgba(235, 242, 249, 0.9) !important;
}

body.aa-db-host-body .aa-db-filter-summary,
body.aa-db-host-body .aa-db-section-jumps {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

@media (max-width: 767.98px) {
    body.aa-db-host-body .aa-db-head,
    body.aa-db-host-body .aa-db-head-themed,
    body.aa-db-host-body .aa-db-npc-head {
        padding: 18px !important;
    }

    body.aa-db-host-body .aa-db-head h1,
    body.aa-db-host-body .aa-db-head h2 {
        font-size: clamp(1.55rem, 8vw, 2rem) !important;
    }

    body.aa-db-host-body .aa-db-body,
    body.aa-db-host-body .aa-db-body-detail-clean,
    body.aa-db-host-body .aa-db-body-browse-clean {
        padding: 16px !important;
    }

    body.aa-db-host-body .aa-db-filter-panel {
        padding: 14px !important;
        gap: 13px !important;
    }

    body.aa-db-host-body .aa-db-filter-panel-head {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 12px !important;
    }

    body.aa-db-host-body .aa-db-filter-section-copy {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-filter-panel-tools {
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: end !important;
        width: 100%;
    }

    body.aa-db-host-body .aa-db-filter-panel-tools .aa-db-inline-control[data-filter-group="sort"] {
        grid-column: 1 / -1;
    }

    body.aa-db-host-body .aa-db-check-grid-inline,
    body.aa-db-host-body .aa-db-check-grid-categories,
    body.aa-db-host-body .aa-db-check-grid-tight,
    body.aa-db-host-body .aa-db-check-grid-grade,
    body.aa-db-host-body .aa-db-check-grid-race {
        width: 100%;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 7px;
        scrollbar-width: thin;
    }

    body.aa-db-host-body .aa-db-check {
        flex: 0 0 auto;
    }

    body.aa-db-host-body .aa-db-check-label {
        min-height: 34px !important;
        padding: 0 10px !important;
        font-size: 0.78rem !important;
    }

    body.aa-db-host-body .aa-db-filter-inline-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    body.aa-db-host-body .aa-db-inline-field-map,
    body.aa-db-host-body .aa-db-filter-inline-row-wide .aa-db-inline-field {
        grid-column: 1 / -1;
        min-width: 0 !important;
        width: 100%;
    }

    body.aa-db-host-body .aa-db-results-toolbar {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: stretch !important;
        padding: 12px !important;
    }

    body.aa-db-host-body .aa-db-results-refine,
    body.aa-db-host-body .aa-db-results-refine-compact {
        width: 100% !important;
        flex: none !important;
    }

    body.aa-db-host-body .aa-db-section-jumps {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 6px;
    }
}

/* Results */
body.aa-db-host-body .aa-db-results,
body.aa-db-host-body .aa-db-list {
    gap: 12px !important;
}

body.aa-db-host-body .aa-db-results-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 12px !important;
}

body.aa-db-host-body .aa-db-result,
body.aa-db-host-body .aa-db-list-item,
body.aa-db-host-body .aa-db-search-card {
    color: inherit !important;
    text-decoration: none !important;
}

body.aa-db-host-body .aa-db-results-grid .aa-db-result,
body.aa-db-host-body .aa-db-search-card {
    position: relative;
    min-height: 76px;
    padding: 14px !important;
}

body.aa-db-host-body .aa-db-results-grid .aa-db-result:hover,
body.aa-db-host-body .aa-db-search-card:hover,
body.aa-db-host-body .aa-db-list-item:hover {
    border-color: rgba(216, 189, 121, 0.34) !important;
    background: linear-gradient(180deg, rgba(19, 32, 45, 0.98), rgba(8, 13, 19, 0.99)) !important;
    transform: translateY(-1px);
}

body.aa-db-host-body .aa-db-result-main,
body.aa-db-host-body .aa-db-search-main {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0;
}

body.aa-db-host-body .aa-db-result-icon,
body.aa-db-host-body .aa-db-entity-icon {
    flex: 0 0 auto !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    border-radius: 7px !important;
    border: 1px solid rgba(216, 189, 121, 0.26) !important;
    background: rgba(0, 0, 0, 0.28) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

body.aa-db-host-body .aa-db-result-heading,
body.aa-db-host-body .aa-db-search-content {
    min-width: 0;
}

body.aa-db-host-body .aa-db-result-title,
body.aa-db-host-body .aa-db-search-title,
body.aa-db-host-body .aa-db-list-title {
    color: #f8fbff !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
}

body.aa-db-host-body .aa-db-result-sub,
body.aa-db-host-body .aa-db-search-sub,
body.aa-db-host-body .aa-db-search-meta {
    margin-top: 4px !important;
    font-size: 0.82rem !important;
}

body.aa-db-host-body .aa-db-search-group {
    padding: 14px !important;
}

body.aa-db-host-body .aa-db-search-group-head {
    margin-bottom: 12px !important;
}

body.aa-db-host-body .aa-db-search-group-head h3 {
    color: #fff4df !important;
    font-family: "Cinzel", serif !important;
    font-size: 1.1rem !important;
}

body.aa-db-host-body .aa-db-search-results {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 12px !important;
}

body.aa-db-host-body .aa-db-search-summary {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px !important;
    align-items: center !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
}

body.aa-db-host-body .aa-db-search-summary-main h3 {
    color: #fff4df !important;
    margin-bottom: 6px !important;
    overflow-wrap: anywhere;
}

body.aa-db-host-body .aa-db-search-summary-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

body.aa-db-host-body .aa-db-type-pill {
    border-radius: 6px !important;
}

body.aa-db-host-body .aa-db-search-arrow {
    color: rgba(216, 189, 121, 0.8) !important;
}

@media (max-width: 767.98px) {
    body.aa-db-host-body .aa-db-results-grid,
    body.aa-db-host-body .aa-db-search-results {
        grid-template-columns: 1fr !important;
    }

    body.aa-db-host-body .aa-db-results-grid .aa-db-result,
    body.aa-db-host-body .aa-db-search-card {
        padding: 12px !important;
        min-height: 68px;
    }

    body.aa-db-host-body .aa-db-result-icon,
    body.aa-db-host-body .aa-db-entity-icon {
        width: 40px !important;
        height: 40px !important;
    }

    body.aa-db-host-body .aa-db-search-summary {
        grid-template-columns: 1fr;
        align-items: start !important;
        padding: 13px !important;
    }

    body.aa-db-host-body .aa-db-search-summary-stats {
        justify-content: flex-start !important;
    }

    body.aa-db-host-body .aa-db-pagination {
        overflow-x: auto;
        padding-bottom: 4px;
        justify-content: flex-start !important;
    }
}

/* Detail pages */
body.aa-db-host-body .aa-db-grid,
body.aa-db-host-body .aa-db-item-detail-grid {
    gap: 16px !important;
}

body.aa-db-host-body .aa-db-item-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
}

/* Keep long relation panels flowing below the item details instead of waiting
   for the much taller actions sidebar to end. */
body.aa-db-host-body .aa-db-item-detail-grid.is-continuous-columns {
    align-items: start;
}

body.aa-db-host-body .aa-db-item-main-column {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 16px;
}

body.aa-db-host-body .aa-db-item-main-column > .aa-db-card {
    min-width: 0;
    margin-top: 0 !important;
}

body.aa-db-host-body .aa-db-item-secondary-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

body.aa-db-host-body .aa-db-item-secondary-grid > [data-db-item-secondary-panel] {
    min-width: 0;
    margin-top: 0 !important;
    padding: 16px;
    border: 1px solid rgba(120, 174, 231, 0.2);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(12, 28, 50, 0.92), rgba(6, 17, 32, 0.96));
}

body.aa-db-host-body .aa-db-item-secondary-grid > [data-db-item-secondary-panel="requirements"] {
    grid-column: 1 / -1;
}

body.aa-db-host-body [data-db-table-browser]:not(.is-table-browser-ready) [data-db-table-browser-row]:nth-child(n + 21) {
    display: none;
}

body.aa-db-host-body .aa-db-skill-unlocked-browser {
    min-width: 0;
}

body.aa-db-host-body .aa-db-item-detail-grid.is-continuous-columns > .aa-db-item-sidebar {
    position: static;
    top: auto;
}

body.aa-db-host-body .aa-db-item-headline,
body.aa-db-host-body .aa-db-entity-summary-hero,
body.aa-db-host-body .aa-db-item-summary-hero {
    min-width: 0;
}

body.aa-db-host-body .aa-db-item-headline-copy h1,
body.aa-db-host-body .aa-db-entity-summary-title,
body.aa-db-host-body .aa-db-item-q {
    overflow-wrap: anywhere;
}

body.aa-db-host-body .aa-db-item-id-shortcut,
body.aa-db-host-body .aa-db-entity-tag-row,
body.aa-db-host-body .aa-db-item-link-strip {
    gap: 8px !important;
}

body.aa-db-host-body .aa-db-entity-facts,
body.aa-db-host-body .aa-db-item-facts {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    gap: 8px !important;
}

body.aa-db-host-body .aa-db-entity-fact,
body.aa-db-host-body .aa-db-item-fact,
body.aa-db-host-body .aa-db-stat {
    border: 1px solid rgba(101, 158, 220, 0.2) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: rgba(7, 12, 18, 0.72) !important;
    color: rgba(237, 243, 249, 0.92) !important;
}

body.aa-db-host-body .aa-db-entity-fact-label,
body.aa-db-host-body .aa-db-item-fact-label,
body.aa-db-host-body .aa-db-stat-label,
body.aa-db-host-body .aa-db-meta .label {
    color: rgba(216, 189, 121, 0.88) !important;
    font-weight: 800 !important;
}

body.aa-db-host-body .aa-db-entity-fact-value,
body.aa-db-host-body .aa-db-item-fact-value,
body.aa-db-host-body .aa-db-stat-value {
    color: #f4f8fc !important;
}

body.aa-db-host-body .aa-db-item-link-pill,
body.aa-db-host-body .aa-db-quest-reward-chip,
body.aa-db-host-body .aa-db-relation-chip {
    border: 1px solid rgba(101, 158, 220, 0.22) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: linear-gradient(180deg, rgba(15, 25, 36, 0.82), rgba(8, 12, 18, 0.94)) !important;
}

body.aa-db-host-body .aa-db-table {
    border-color: rgba(101, 158, 220, 0.18) !important;
}

body.aa-db-host-body .aa-db-table th {
    color: rgba(216, 189, 121, 0.92) !important;
    background: rgba(15, 24, 35, 0.78) !important;
}

body.aa-db-host-body .aa-db-table td {
    border-color: rgba(101, 158, 220, 0.13) !important;
}

body.aa-db-host-body .aa-db-collapsible summary {
    color: #fff4df !important;
}

@media (max-width: 991.98px) {
    body.aa-db-host-body .aa-db-grid,
    body.aa-db-host-body .aa-db-item-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 2200px) {
    body.aa-db-host-body .aa-db-item-secondary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.aa-db-host-body .aa-db-item-secondary-grid > [data-db-item-secondary-panel="requirements"] {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    body.aa-db-host-body .aa-db-card {
        padding: 14px !important;
    }

    body.aa-db-host-body .aa-db-entity-summary-top,
    body.aa-db-host-body .aa-db-item-detail-summary-head,
    body.aa-db-host-body .aa-db-item-headline {
        align-items: flex-start !important;
    }

    body.aa-db-host-body .aa-db-entity-summary-icon,
    body.aa-db-host-body .aa-db-entity-summary-icon-wrap {
        width: 48px !important;
        height: 48px !important;
    }

    body.aa-db-host-body .aa-db-entity-facts,
    body.aa-db-host-body .aa-db-item-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.aa-db-host-body .aa-db-table {
        min-width: 680px;
    }

    body.aa-db-host-body .aa-db-card:has(.aa-db-table),
    body.aa-db-host-body .aa-db-collapse-content:has(.aa-db-table) {
        overflow-x: auto;
    }
}

@media (max-width: 420px) {
    body.aa-db-host-body .aa-db-entity-facts,
    body.aa-db-host-body .aa-db-item-facts,
    body.aa-db-host-body .aa-db-filter-inline-row {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile density pass for internal search and browse pages */
@media (max-width: 767.98px) {
    body.aa-db-host-body:not(.aa-db-home-page) .aa-db-hero {
        padding-top: 18px !important;
        padding-bottom: 28px !important;
    }

    body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head {
        padding: 16px 18px !important;
    }

    body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head p {
        margin-top: 6px !important;
        font-size: 0.9rem !important;
        line-height: 1.42 !important;
    }

    body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head-browse-clean p {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-browse-head-meta {
        margin-top: 12px !important;
        gap: 8px !important;
    }

    body.aa-db-host-body .aa-db-search-prefix-strip {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-search-summary {
        margin-bottom: 12px !important;
        padding: 12px !important;
        gap: 10px !important;
    }

    body.aa-db-host-body .aa-db-search-summary-main h3 {
        margin-bottom: 0 !important;
        font-size: 1.25rem !important;
        line-height: 1.1 !important;
    }

    body.aa-db-host-body .aa-db-search-summary-main p {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-search-summary-stats {
        gap: 6px !important;
    }

    body.aa-db-host-body .aa-db-search-summary-stats .aa-db-search-summary-pill:nth-child(n + 4) {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar {
        margin-top: 12px !important;
        gap: 8px !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search .aa-db-muted {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar .aa-db-pill {
        min-height: 34px !important;
        align-items: center !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar .aa-db-results-refine {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px !important;
        min-width: 0 !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar .aa-db-results-refine .aa-db-filter-label {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar .aa-db-results-refine input[type="search"] {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar .aa-db-results-refine button,
    body.aa-db-host-body .aa-db-results-toolbar .aa-db-select-wrap select {
        min-height: 40px !important;
    }

    body.aa-db-host-body .aa-db-results-grade {
        display: block !important;
        overflow: hidden;
    }

    body.aa-db-host-body .aa-db-results-grade .aa-db-check-grid {
        width: 100%;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    body.aa-db-host-body .aa-db-results-refine-compact:not(.aa-db-results-grade) {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    body.aa-db-host-body .aa-db-pagination-top,
    body.aa-db-host-body .aa-db-section-jumps {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-filter-summary {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

    body.aa-db-host-body .aa-db-results-grid.mt-3,
    body.aa-db-host-body .aa-db-search-groups {
        margin-top: 12px !important;
    }
}

/* Strong notebook nav cap. Older landing rules have high specificity, so keep this last. */
@media (min-width: 1200px) and (max-width: 1279.98px) {
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link {
        display: none !important;
    }

    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(-n + 6),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(8),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(12) {
        display: inline-flex !important;
    }
}

@media (min-width: 1280px) and (max-width: 1499.98px) {
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link {
        display: none !important;
    }

    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(-n + 6),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(8),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(9),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(12) {
        display: inline-flex !important;
    }
}

/* Large monitors keep a full header search without crowding Main Site. */
@media (min-width: 1600px) {
    body.aa-db-host-body .aa-db-alert-shell {
        padding-top: 124px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-inner {
        grid-template-columns: minmax(170px, 240px) minmax(0, 1fr) max-content !important;
        grid-template-rows: auto auto;
        min-height: 112px !important;
        gap: 8px 12px !important;
        align-items: center !important;
    }

    body.aa-db-host-body .aa-db-sitebar-brand {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: center;
    }

    body.aa-db-host-body .aa-db-sitebar-center {
        grid-column: 2;
        grid-row: 1;
    }

    body.aa-db-host-body .aa-db-sitebar-actions {
        display: contents !important;
        width: auto !important;
        min-width: 0 !important;
    }

    body.aa-db-host-body .aa-db-sitebar-main-link {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    body.aa-db-host-body .aa-db-sitebar-search {
        position: relative;
        grid-column: 2 / 4;
        grid-row: 2;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-self: end;
        gap: 8px;
        width: min(820px, 100%);
        min-width: min(100%, 460px);
        padding: 6px;
        border: 1px solid rgba(101, 158, 220, 0.3);
        border-radius: var(--aa-ui-radius);
        background: linear-gradient(180deg, rgba(5, 11, 18, 0.94), rgba(3, 7, 12, 0.96));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    body.aa-db-host-body .aa-db-sitebar-search input {
        display: block !important;
        width: 100%;
        min-width: 0;
        height: 36px;
        min-height: 36px !important;
        padding: 0 12px;
        border: 1px solid rgba(101, 158, 220, 0.24);
        border-radius: var(--aa-ui-radius);
        background: rgba(3, 8, 14, 0.92);
        color: #f4f8fc;
        font-size: 0.86rem;
    }

    body.aa-db-host-body .aa-db-sitebar-search input::placeholder {
        color: rgba(184, 197, 211, 0.62);
    }

    body.aa-db-host-body .aa-db-sitebar-search button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        height: 36px;
        min-height: 36px !important;
        padding: 0 14px;
        border: 1px solid rgba(119, 176, 236, 0.38);
        border-radius: var(--aa-ui-radius);
        background: linear-gradient(180deg, var(--aa-ui-blue), var(--aa-ui-blue-2));
        color: #fff;
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    body.aa-db-host-body .aa-db-sitebar-search .aa-db-autocomplete-list {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1800px) {
    body.aa-db-host-body .aa-db-sitebar-search {
        width: min(940px, 100%);
    }
}

/* Ultrawide landing composition. */
@media (min-width: 2200px) {
    body.aa-db-host-body .container {
        max-width: min(2240px, calc(100vw - 180px));
    }

    body.aa-db-host-body .aa-db-sitebar .container {
        max-width: min(2520px, calc(100vw - 160px));
    }

    body.aa-db-host-body .aa-db-sitebar-inner {
        grid-template-columns: minmax(210px, 280px) minmax(0, 1fr) max-content !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav {
        gap: 9px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-search {
        width: min(1160px, 100%);
    }

    body.aa-db-host-body .aa-db-affiliate-inline-link {
        max-width: min(1120px, 100%) !important;
    }

    body.aa-db-host-body.aa-db-home-page .aa-db-shell-home-clean,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-shell-home-clean {
        max-width: 1540px !important;
    }

    body.aa-db-host-body .aa-db-home-clean {
        padding: 62px 84px !important;
    }

    body.aa-db-host-body .aa-db-home-command {
        gap: 26px !important;
    }

    body.aa-db-host-body .aa-db-home-command-head {
        grid-template-columns: minmax(0, 1fr) minmax(440px, 520px) !important;
        gap: 44px !important;
        align-items: center !important;
    }

    body.aa-db-host-body .aa-db-home-command-copy h1 {
        max-width: 760px;
        font-size: clamp(4.8rem, 2.7vw, 5.9rem) !important;
        line-height: 0.96 !important;
    }

    body.aa-db-host-body .aa-db-home-command-copy p {
        max-width: 62ch;
        font-size: 1.08rem !important;
        line-height: 1.6 !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts {
        width: 100%;
        max-width: 520px;
        justify-self: end;
        align-self: center;
        gap: 10px !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts span {
        min-height: 82px !important;
        padding: 16px 18px !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts strong {
        font-size: 1.24rem !important;
    }

    body.aa-db-host-body .aa-db-home-clean-hero.aa-db-home-command {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        text-align: left !important;
    }

    body.aa-db-host-body .aa-db-home-clean-search,
    body.aa-db-host-body .aa-db-home-paths,
    body.aa-db-host-body .aa-db-home-clean-links {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.aa-db-host-body .aa-db-home-path {
        min-height: 122px !important;
        padding: 18px !important;
    }
}

@media (min-width: 3000px) {
    body.aa-db-host-body.aa-db-home-page .aa-db-shell-home-clean,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-shell-home-clean {
        max-width: 1600px !important;
    }

    body.aa-db-host-body .aa-db-home-clean {
        padding-left: 88px !important;
        padding-right: 88px !important;
    }
}

/* Large desktop home review: make the first viewport feel intentional, not boxed in. */
@media (min-width: 1800px) {
    body.aa-db-host-body.aa-db-home-page .aa-db-hero-home-clean,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-hero-home-clean {
        min-height: 0;
        display: flex;
        align-items: flex-start;
        padding: 66px 0 96px !important;
        background:
            linear-gradient(90deg, rgba(3, 5, 8, 0.99) 0%, rgba(8, 15, 23, 0.99) 24%, rgba(13, 22, 33, 0.99) 50%, rgba(8, 15, 23, 0.99) 76%, rgba(3, 5, 8, 0.99) 100%) !important;
    }

    body.aa-db-host-body.aa-db-home-page .aa-db-shell-home-clean,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-shell-home-clean {
        max-width: 1540px !important;
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body.aa-db-host-body .aa-db-home-clean {
        padding: 0 34px !important;
    }

    body.aa-db-host-body .aa-db-home-command {
        gap: 28px !important;
    }

    body.aa-db-host-body .aa-db-home-command-head {
        grid-template-columns: minmax(0, 1fr) minmax(440px, 520px) !important;
        gap: 60px !important;
        align-items: center !important;
    }

    body.aa-db-host-body .aa-db-home-command-copy h1 {
        max-width: 820px;
        font-size: clamp(4.9rem, 4.6vw, 6rem) !important;
        line-height: 0.95 !important;
    }

    body.aa-db-host-body .aa-db-home-command-copy p {
        max-width: 64ch;
        font-size: 1.08rem !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts {
        width: 100%;
        max-width: 520px;
        justify-self: end;
        gap: 12px !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts span {
        min-height: 84px !important;
        border-color: rgba(101, 158, 220, 0.28) !important;
        background: linear-gradient(180deg, rgba(20, 36, 53, 0.96), rgba(7, 12, 18, 0.98)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 38px rgba(0, 0, 0, 0.22) !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts strong {
        color: #ffffff !important;
        font-size: 1.28rem !important;
    }

    body.aa-db-host-body .aa-db-home-clean-search {
        min-height: 68px !important;
        padding: 12px !important;
        border-color: rgba(101, 158, 220, 0.56) !important;
        background: linear-gradient(180deg, rgba(4, 11, 19, 0.98), rgba(2, 6, 11, 0.99)) !important;
        box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    }

    body.aa-db-host-body .aa-db-home-clean-search input {
        min-height: 46px !important;
    }

    body.aa-db-host-body .aa-db-home-clean-search button {
        min-width: 138px;
    }

    body.aa-db-host-body .aa-db-home-paths {
        gap: 14px !important;
    }

    body.aa-db-host-body .aa-db-home-path {
        min-height: 132px !important;
        padding: 18px !important;
        border-color: rgba(101, 158, 220, 0.28) !important;
        background: linear-gradient(180deg, rgba(17, 31, 46, 0.95), rgba(6, 11, 17, 0.99)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 16px 38px rgba(0, 0, 0, 0.18) !important;
    }

    body.aa-db-host-body .aa-db-home-clean-link {
        background: rgba(6, 12, 19, 0.86) !important;
        border-color: rgba(101, 158, 220, 0.24) !important;
    }
}

@media (min-width: 2200px) {
    body.aa-db-host-body.aa-db-home-page .aa-db-shell-home-clean,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-shell-home-clean {
        max-width: 1740px !important;
    }

    body.aa-db-host-body .aa-db-home-clean {
        padding-left: 42px !important;
        padding-right: 42px !important;
    }

    body.aa-db-host-body .aa-db-home-command-head {
        grid-template-columns: minmax(0, 1fr) minmax(520px, 620px) !important;
        gap: 84px !important;
    }

    body.aa-db-host-body .aa-db-home-command-copy h1 {
        max-width: 900px;
        font-size: clamp(5.6rem, 3.05vw, 6.6rem) !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts {
        max-width: 620px;
    }

    body.aa-db-host-body .aa-db-home-command-counts span {
        min-height: 92px !important;
    }

    body.aa-db-host-body .aa-db-home-command-counts strong {
        font-size: 1.36rem !important;
    }

    body.aa-db-host-body .aa-db-home-path {
        min-height: 144px !important;
    }
}

/* Final correction: compact header search, lean home, neutral footer links. */
body.aa-db-host-body .aa-db-site-footer a,
body.aa-db-host-body .aa-db-footer-list a {
    color: rgba(244, 240, 232, 0.82) !important;
    text-decoration: none !important;
    background: transparent !important;
}

body.aa-db-host-body .aa-db-site-footer a:hover,
body.aa-db-host-body .aa-db-footer-list a:hover {
    color: var(--aa-ui-gold-2) !important;
}

body.aa-db-host-body .aa-db-footer-social {
    border-color: rgba(216, 189, 121, 0.18) !important;
    background: linear-gradient(180deg, rgba(20, 20, 18, 0.96), rgba(7, 7, 6, 0.98)) !important;
}

body.aa-db-host-body .aa-db-footer-social:hover {
    border-color: rgba(216, 189, 121, 0.38) !important;
    background: linear-gradient(180deg, rgba(31, 28, 20, 0.98), rgba(10, 9, 7, 0.98)) !important;
}

body.aa-db-host-body.aa-db-home-page .aa-db-shell-home-clean,
body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-shell-home-clean {
    max-width: 920px !important;
}

body.aa-db-host-body .aa-db-home-command {
    gap: 18px !important;
    text-align: center !important;
}

body.aa-db-host-body .aa-db-home-command-head {
    display: block !important;
}

body.aa-db-host-body .aa-db-home-command-copy h1 {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(2.55rem, 4vw, 3.9rem) !important;
    line-height: 1.02 !important;
}

body.aa-db-host-body .aa-db-home-command-copy p {
    max-width: 58ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.aa-db-host-body .aa-db-home-clean-search {
    width: min(760px, 100%) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 1600px) {
    body.aa-db-host-body .aa-db-alert-shell {
        padding-top: 82px !important;
    }

    body.aa-db-host-body .aa-db-sitebar .container {
        max-width: min(2520px, calc(100vw - 56px)) !important;
    }

    body.aa-db-host-body .aa-db-sitebar-inner {
        grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) max-content !important;
        grid-template-rows: auto !important;
        min-height: 68px !important;
        gap: 10px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-brand,
    body.aa-db-host-body .aa-db-sitebar-center,
    body.aa-db-host-body .aa-db-sitebar-main-link,
    body.aa-db-host-body .aa-db-sitebar-search {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    body.aa-db-host-body .aa-db-sitebar-brand {
        align-self: center !important;
    }

    body.aa-db-host-body .aa-db-sitebar-center {
        justify-content: center !important;
    }

    body.aa-db-host-body .aa-db-sitebar-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        gap: 8px !important;
        width: auto !important;
        min-width: 0 !important;
    }

    body.aa-db-host-body .aa-db-sitebar-search {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 6px !important;
        width: clamp(280px, 18vw, 360px) !important;
        min-width: 0 !important;
        max-width: 360px !important;
        padding: 5px !important;
        border: 1px solid rgba(101, 158, 220, 0.26) !important;
        border-radius: var(--aa-ui-radius) !important;
        background: linear-gradient(180deg, rgba(5, 11, 18, 0.94), rgba(3, 7, 12, 0.96)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    }

    body.aa-db-host-body .aa-db-sitebar-search input {
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 10px !important;
        font-size: 0.8rem !important;
    }

    body.aa-db-host-body .aa-db-sitebar-search button {
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 11px !important;
        font-size: 0.72rem !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav {
        gap: 5px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link,
    body.aa-db-host-body .aa-db-sitebar-main-link {
        min-height: 36px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    body.aa-db-host-body .aa-db-nav-icon {
        width: 15px !important;
        height: 15px !important;
    }

    body.aa-db-host-body .aa-db-nav-label {
        font-size: 0.76rem !important;
    }

    body.aa-db-host-body .aa-db-sitebar-main-link {
        min-width: 118px !important;
    }
}

@media (min-width: 2200px) {
    body.aa-db-host-body .aa-db-sitebar-search {
        width: 380px !important;
        max-width: 380px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav {
        gap: 7px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav .aa-db-sitebar-home-link,
    body.aa-db-host-body .aa-db-sitebar-main-link {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.aa-db-host-body .aa-db-nav-label {
        font-size: 0.84rem !important;
    }
}

@media (min-width: 1800px) {
    body.aa-db-host-body.aa-db-home-page .aa-db-hero-home-clean,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-hero-home-clean {
        display: block !important;
        min-height: 0 !important;
        padding: 46px 0 64px !important;
        background:
            linear-gradient(180deg, rgba(8, 14, 21, 0.98) 0%, rgba(4, 7, 10, 0.99) 100%) !important;
    }

    body.aa-db-host-body.aa-db-home-page .aa-db-shell-home-clean,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-shell-home-clean {
        max-width: 920px !important;
        border-color: rgba(216, 189, 121, 0.16) !important;
        background: linear-gradient(180deg, rgba(11, 18, 26, 0.98), rgba(6, 10, 15, 0.99)) !important;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
        overflow: visible !important;
    }

    body.aa-db-host-body .aa-db-home-clean {
        padding: 42px 52px !important;
    }

    body.aa-db-host-body .aa-db-home-command-copy h1 {
        font-size: clamp(2.75rem, 2vw, 3.5rem) !important;
    }

    body.aa-db-host-body .aa-db-home-clean-search {
        min-height: 58px !important;
        padding: 8px !important;
        border-color: rgba(101, 158, 220, 0.38) !important;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    }

    body.aa-db-host-body .aa-db-home-clean-search input {
        min-height: 40px !important;
    }

    body.aa-db-host-body .aa-db-home-clean-search button {
        min-height: 40px !important;
        min-width: 116px !important;
    }
}

/* Desktop-only width fixes: keep notebook layout untouched. */
@media (min-width: 1600px) {
    body.aa-db-host-body .aa-db-affiliate-shell {
        width: min(820px, calc(100vw - 56px)) !important;
        max-width: 820px !important;
        padding: 8px 0 !important;
        border-bottom: 0 !important;
        background: transparent !important;
    }

    body.aa-db-host-body .aa-db-affiliate-tag {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-affiliate-inline {
        width: 100% !important;
        height: auto !important;
        transform: none !important;
    }

    body.aa-db-host-body .aa-db-affiliate-inline-link {
        width: 100% !important;
        max-width: 760px !important;
        min-height: 42px !important;
        justify-content: center !important;
        border-color: rgba(216, 189, 121, 0.16) !important;
        background: linear-gradient(180deg, rgba(13, 16, 20, 0.9), rgba(6, 8, 11, 0.95)) !important;
    }

    body.aa-db-host-body .aa-db-site-footer .container {
        width: min(960px, calc(100vw - 56px)) !important;
        max-width: 960px !important;
    }

    body.aa-db-host-body.aa-db-home-page .aa-db-site-footer .row,
    body.aa-db-host-body:has(.aa-db-hero-home-clean) .aa-db-site-footer .row {
        grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) minmax(180px, 0.7fr) !important;
        gap: 28px !important;
    }
}

/* Search filters: center grade chips and restore item grade colors. */
body.aa-db-host-body .aa-db-filter-inline-group-center,
body.aa-db-host-body .aa-db-filter-inline-combo-center {
    justify-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

body.aa-db-host-body .aa-db-filter-inline-group-center .aa-db-filter-label,
body.aa-db-host-body .aa-db-results-grade .aa-db-filter-label {
    width: 100%;
    text-align: center !important;
}

body.aa-db-host-body .aa-db-filter-inline-group-center .aa-db-check-grid,
body.aa-db-host-body .aa-db-filter-inline-combo-center .aa-db-filter-inline-row,
body.aa-db-host-body .aa-db-results-grade .aa-db-check-grid-grade {
    justify-content: center !important;
}

body.aa-db-host-body .aa-db-results-toolbar-search .aa-db-results-grade {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin: 8px auto 0 !important;
    display: grid !important;
    justify-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
}

body.aa-db-host-body .aa-db-results-grade .aa-db-check-grid-grade {
    width: auto !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

body.aa-db-host-body .aa-db-check-grid-grade .aa-db-check-label {
    justify-content: center !important;
    font-weight: 800 !important;
}

body.aa-db-host-body .aa-db-check-common .aa-db-check-label {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(180deg, rgba(65, 74, 86, 0.42), rgba(25, 30, 37, 0.74)) !important;
    color: #eef5fb !important;
}

body.aa-db-host-body .aa-db-check-common .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(255, 255, 255, 0.48) !important;
    background: linear-gradient(180deg, rgba(88, 100, 116, 0.62), rgba(36, 43, 53, 0.86)) !important;
    color: #ffffff !important;
}

body.aa-db-host-body .aa-db-check-rare .aa-db-check-label {
    border-color: rgba(69, 235, 114, 0.24) !important;
    background: linear-gradient(180deg, rgba(21, 73, 40, 0.58), rgba(9, 32, 18, 0.8)) !important;
    color: #d3ffe0 !important;
}

body.aa-db-host-body .aa-db-check-rare .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(69, 235, 114, 0.68) !important;
    background: linear-gradient(180deg, rgba(38, 127, 65, 0.78), rgba(13, 63, 31, 0.9)) !important;
    color: #e8ffed !important;
}

body.aa-db-host-body .aa-db-check-legend .aa-db-check-label {
    border-color: rgba(91, 183, 255, 0.24) !important;
    background: linear-gradient(180deg, rgba(18, 58, 98, 0.58), rgba(8, 25, 48, 0.82)) !important;
    color: #d9efff !important;
}

body.aa-db-host-body .aa-db-check-legend .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(91, 183, 255, 0.68) !important;
    background: linear-gradient(180deg, rgba(35, 99, 158, 0.78), rgba(10, 48, 93, 0.92)) !important;
    color: #eef8ff !important;
}

body.aa-db-host-body .aa-db-check-unique .aa-db-check-label {
    border-color: rgba(255, 212, 77, 0.24) !important;
    background: linear-gradient(180deg, rgba(111, 84, 17, 0.6), rgba(49, 35, 7, 0.82)) !important;
    color: #fff1c4 !important;
}

body.aa-db-host-body .aa-db-check-unique .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(255, 212, 77, 0.72) !important;
    background: linear-gradient(180deg, rgba(150, 112, 24, 0.8), rgba(77, 54, 9, 0.92)) !important;
    color: #fff8db !important;
}

body.aa-db-host-body .aa-db-check-epic .aa-db-check-label {
    border-color: rgba(255, 156, 62, 0.26) !important;
    background: linear-gradient(180deg, rgba(115, 55, 18, 0.6), rgba(49, 20, 7, 0.84)) !important;
    color: #ffe0be !important;
}

body.aa-db-host-body .aa-db-check-epic .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(255, 156, 62, 0.72) !important;
    background: linear-gradient(180deg, rgba(162, 78, 26, 0.8), rgba(80, 31, 9, 0.94)) !important;
    color: #fff0dc !important;
}

body.aa-db-host-body .aa-db-check-mythic .aa-db-check-label {
    border-color: rgba(210, 132, 255, 0.26) !important;
    background: linear-gradient(180deg, rgba(79, 35, 116, 0.6), rgba(32, 15, 53, 0.84)) !important;
    color: #f1ddff !important;
}

body.aa-db-host-body .aa-db-check-mythic .aa-db-check-input:checked + .aa-db-check-label {
    border-color: rgba(210, 132, 255, 0.74) !important;
    background: linear-gradient(180deg, rgba(111, 48, 164, 0.82), rgba(52, 22, 91, 0.94)) !important;
    color: #f8eaff !important;
}

/* Result cards: item names should keep their Aion grade color. */
body.aa-db-host-body .aa-db-result-title.aa-db-item-q,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.46) !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.common,
body.aa-db-host-body .aa-db-result-title.aa-db-item-q.normal,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.common,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.normal {
    color: #ffffff !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.rare,
body.aa-db-host-body .aa-db-result-title.aa-db-item-q.superior,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.rare,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.superior {
    color: #2cff5a !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.legend,
body.aa-db-host-body .aa-db-result-title.aa-db-item-q.heroic,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.legend,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.heroic {
    color: #5bb7ff !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.unique,
body.aa-db-host-body .aa-db-result-title.aa-db-item-q.fabled,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.unique,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.fabled {
    color: #ffd44d !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.epic,
body.aa-db-host-body .aa-db-result-title.aa-db-item-q.eternal,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.epic,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.eternal {
    color: #ff9c3e !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.mythic,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.mythic {
    color: #c57aff !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.ancient,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.ancient {
    color: #d9a839 !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.relic,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.relic {
    color: #ff5ff1 !important;
}

body.aa-db-host-body .aa-db-result-title.aa-db-item-q.finality,
body.aa-db-host-body .aa-db-search-title.aa-db-item-q.finality {
    color: #fe4b4b !important;
}

/* Notebook header cap: internal pages need room for Main Site and the header search. */
@media (min-width: 1200px) and (max-width: 2199.98px) {
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav {
        justify-content: center !important;
        gap: 5px !important;
        overflow: hidden !important;
    }

    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link {
        display: none !important;
        min-height: 36px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(-n + 6),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(8),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(12),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link.is-active {
        display: inline-flex !important;
    }

    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(7),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(9),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(10),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(11),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(13) {
        display: none !important;
    }

    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(-n + 6),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(8),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link:nth-child(12),
    body.aa-db-host-body.aa-db-host-body .aa-db-sitebar-center .aa-db-sitebar-home-quicknav > .aa-db-sitebar-home-link.is-active {
        display: inline-flex !important;
    }

    body.aa-db-host-body .aa-db-nav-icon {
        width: 15px !important;
        height: 15px !important;
    }

    body.aa-db-host-body .aa-db-nav-label {
        font-size: 0.76rem !important;
    }
}

@media (min-width: 1600px) and (max-width: 2199.98px) {
    body.aa-db-host-body .aa-db-sitebar-inner {
        grid-template-columns: minmax(140px, 190px) minmax(0, 1fr) max-content !important;
        gap: 10px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-actions {
        gap: 10px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-search {
        width: clamp(250px, 14vw, 286px) !important;
        max-width: 286px !important;
        padding: 5px !important;
    }

    body.aa-db-host-body .aa-db-sitebar-search input {
        height: 34px !important;
        min-height: 34px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 0.78rem !important;
    }

    body.aa-db-host-body .aa-db-sitebar-search button {
        height: 34px !important;
        min-height: 34px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 0.7rem !important;
    }

    body.aa-db-host-body .aa-db-sitebar-main-link {
        min-width: 112px !important;
    }
}

/* Footer proportions: keep the base compact on notebook and desktop instead of spanning the whole viewport. */
@media (min-width: 1200px) {
    body.aa-db-host-body .aa-db-site-footer .container {
        width: min(960px, calc(100vw - 56px)) !important;
        max-width: 960px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Ultrawide internal pages: preserve the wide header, but keep browse/search content readable. */
@media (min-width: 2200px) {
    body.aa-db-host-body:not(.aa-db-home-page):not(:has(.aa-db-hero-home-clean)) .aa-db-hero > .container {
        max-width: min(1760px, calc(100vw - 96px)) !important;
    }
}

/* Ultrawide item pages: keep the item lookup compact and use the right side of the tooltip area. */
@media (min-width: 2200px) {
    body.aa-db-host-body:has(.aa-db-item-detail-grid) .aa-db-hero > .container {
        max-width: min(1760px, calc(100vw - 96px)) !important;
    }

    body.aa-db-host-body:has(.aa-db-item-detail-grid) .aa-db-item-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 340px) !important;
    }

    body.aa-db-host-body:has(.aa-db-item-detail-grid) .aa-db-item-primary-card {
        display: grid !important;
        grid-template-columns: minmax(500px, 540px) minmax(0, 1fr) !important;
        grid-auto-rows: auto !important;
        gap: 16px 18px !important;
        align-items: start !important;
    }

    body.aa-db-host-body:has(.aa-db-item-detail-grid) .aa-db-item-primary-card > h3 {
        grid-column: 1 / -1 !important;
        margin-bottom: 0 !important;
    }

    body.aa-db-host-body:has(.aa-db-item-detail-grid) .aa-db-item-primary-card > .aiondb-static-tooltip {
        grid-column: 1 !important;
        grid-row: 2 / span 8 !important;
        width: min(100%, 540px) !important;
        max-width: 540px !important;
    }

    body.aa-db-host-body:has(.aa-db-item-detail-grid) .aa-db-item-primary-card > .aa-db-item-detail-overview {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding-top: 0 !important;
    }

    body.aa-db-host-body:has(.aa-db-item-detail-grid) .aa-db-item-primary-card > :not(h3):not(.aiondb-static-tooltip):not(.aa-db-item-detail-overview) {
        grid-column: 2 !important;
        min-width: 0 !important;
        margin-top: 0 !important;
    }

    body.aa-db-host-body:has(.aa-db-item-detail-grid) .aa-db-item-primary-card > :not(h3):not(.aiondb-static-tooltip):not(.aa-db-item-detail-overview) .aa-db-collapse-content:has(.aa-db-table) {
        overflow-x: auto !important;
    }
}

/* Template polish: keep internal pages compact, readable, and resistant to wide-screen drift. */
body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head,
body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head-themed,
body.aa-db-host-body:not(.aa-db-home-page) .aa-db-npc-head {
    padding-top: clamp(18px, 1.5vw, 30px) !important;
    padding-bottom: clamp(18px, 1.5vw, 30px) !important;
}

body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head h1,
body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head h2 {
    font-size: clamp(2rem, 2.2vw, 3.15rem) !important;
}

body.aa-db-host-body:not(.aa-db-home-page) .aa-db-body,
body.aa-db-host-body:not(.aa-db-home-page) .aa-db-body-detail-clean,
body.aa-db-host-body:not(.aa-db-home-page) .aa-db-body-browse-clean {
    padding-top: clamp(18px, 1.4vw, 26px) !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result,
body.aa-db-host-body .aa-db-body-search .aa-db-search-card {
    min-height: 88px !important;
    display: flex !important;
    align-items: stretch !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-result-main,
body.aa-db-host-body .aa-db-body-search .aa-db-search-main,
body.aa-db-host-body .aa-db-body-browse-clean .aa-db-result-heading,
body.aa-db-host-body .aa-db-body-search .aa-db-search-content {
    width: 100% !important;
    min-width: 0 !important;
}

body.aa-db-host-body .aa-db-result-title,
body.aa-db-host-body .aa-db-search-title,
body.aa-db-host-body .aa-db-list-title {
    letter-spacing: 0 !important;
    text-wrap: balance;
}

body.aa-db-host-body .aa-db-results-toolbar,
body.aa-db-host-body .aa-db-filter-panel,
body.aa-db-host-body .aa-db-search-summary {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 12px 26px rgba(0, 0, 0, 0.18) !important;
}

body.aa-db-host-body .aa-db-site-footer .container,
body.aa-db-host-body .aa-db-site-footer-inner {
    max-width: 960px !important;
}

body.aa-db-host-body .aa-db-site-footer a:not(.aa-db-footer-social),
body.aa-db-host-body .aa-db-footer-list a {
    color: rgba(244, 240, 232, 0.82) !important;
}

/* Browse result cards use normal block flow; search cards keep their compact flex layout. */
body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result {
    display: block !important;
    min-height: 76px !important;
    align-items: normal !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result .aa-db-result-main {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-right: 26px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result .aa-db-result-heading {
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result .aa-db-result-title {
    max-width: 100% !important;
}

/* Browse quest cards: keep reward-rich cards in normal vertical flow. */
body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest {
    display: block !important;
    min-height: 126px !important;
    padding: 12px 14px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-result-main {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding-right: 22px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-result-icon {
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border-radius: 10px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-result-heading {
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-result-title {
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 0.92rem !important;
    line-height: 1.24 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: auto !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-card-extra {
    display: grid !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-rewards {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-reward-chip,
body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-reward-item {
    min-height: 23px !important;
    max-width: 100% !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-reward-chip,
body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-reward-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 2px 8px 2px 3px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-reward-chip img,
body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-reward-item img {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    border-radius: 5px !important;
    object-fit: cover !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-quest-reward-item span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-meta-inline {
    margin-top: 8px !important;
    gap: 8px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result-quest .aa-db-pill {
    min-height: 22px !important;
    padding: 2px 8px !important;
    font-size: 0.7rem !important;
}

/* Detail page guardrails: do not let browse/search card rules reshape Quest/NPC/Item internals. */
body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-card {
    padding: 20px !important;
    border-radius: 16px !important;
    border-color: rgba(151, 205, 245, 0.12) !important;
    background:
        linear-gradient(180deg, rgba(7, 18, 34, 0.94), rgba(5, 12, 23, 0.98)),
        radial-gradient(110% 100% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 50%) !important;
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-card h3 {
    margin-bottom: 14px !important;
    font-size: 20px !important;
    letter-spacing: 0.01em !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-card .aa-db-result-main {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    align-items: center !important;
    gap: 0 !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-card .aa-db-result-icon {
    flex: 0 0 auto !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 10px 0 0 !important;
    border-radius: 6px !important;
    object-fit: cover !important;
    box-shadow: none !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-table .aa-db-result-main {
    display: inline-flex !important;
    width: auto !important;
    gap: 0 !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-table .aa-db-result-icon,
body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-table .aa-db-npc-inline-emblem {
    width: 32px !important;
    height: 32px !important;
    margin: 0 8px 0 0 !important;
    border-radius: 5px !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-intel-strip,
body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-reward-summary {
    margin-top: 14px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border-color: rgba(140, 202, 246, 0.12) !important;
    background: rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-intel-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-intel-grid,
body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-reward-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-intel-chip,
body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-reward-summary-chip {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 9px !important;
    border-radius: 10px !important;
    border-color: rgba(140, 202, 246, 0.12) !important;
    background: rgba(255, 255, 255, 0.035) !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-reward-summary-chip {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
}

body.aa-db-host-body .aa-db-body:not(.aa-db-body-browse-clean):not(.aa-db-body-search) .aa-db-quest-reward-summary-chip img {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    object-fit: contain !important;
}

/* Search page: keep a real search command visible even when the header search is hidden. */
body.aa-db-host-body .aa-db-search-page-command {
    width: min(860px, 100%) !important;
    margin-top: 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 126px !important;
    gap: 8px !important;
    padding: 7px !important;
    border: 1px solid rgba(88, 153, 220, 0.34) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: rgba(3, 10, 18, 0.72) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22) !important;
}

body.aa-db-host-body .aa-db-search-page-command input[type="text"] {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    border-radius: 7px !important;
    border: 1px solid rgba(101, 158, 220, 0.24) !important;
    background: rgba(0, 8, 16, 0.78) !important;
    color: #f5f8fb !important;
    padding: 0 14px !important;
}

body.aa-db-host-body .aa-db-search-page-command button {
    min-height: 42px !important;
    border-radius: 7px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-empty {
    border: 1px solid rgba(101, 158, 220, 0.16) !important;
    border-radius: var(--aa-ui-radius) !important;
    background: rgba(255, 255, 255, 0.035) !important;
}

@media (min-width: 992px) {
    body.aa-db-host-body .aa-db-results-toolbar-search {
        display: grid !important;
        grid-template-columns: max-content max-content max-content minmax(260px, 1fr) max-content !important;
        align-items: end !important;
        gap: 10px 14px !important;
        padding: 12px 14px !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search > .aa-db-pill,
    body.aa-db-host-body .aa-db-results-toolbar-search > .aa-db-muted {
        align-self: center !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search .aa-db-results-grade {
        grid-column: 1 / span 3 !important;
        grid-row: 2 !important;
        width: auto !important;
        flex: 0 1 auto !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search .aa-db-results-grade .aa-db-filter-label {
        width: auto !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search .aa-db-results-grade .aa-db-check-grid-grade {
        width: auto !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 7px !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search form[data-db-search-refine-form] {
        grid-column: 4 !important;
        grid-row: 2 !important;
        min-width: 0 !important;
        flex: unset !important;
        display: grid !important;
        grid-template-columns: auto minmax(220px, 1fr) !important;
        align-items: center !important;
        gap: 8px !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search form[data-db-search-refine-form] .aa-db-filter-label {
        margin: 0 !important;
        white-space: nowrap !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search form[data-db-search-refine-form] input[type="search"] {
        min-height: 38px !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar-search > .aa-db-results-refine-compact:not(.aa-db-results-grade) {
        grid-column: 5 !important;
        grid-row: 2 !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: auto 96px !important;
        align-items: center !important;
        gap: 8px !important;
    }
}

@media (max-width: 991.98px) {
    body.aa-db-host-body .aa-db-search-page-command {
        grid-template-columns: 1fr !important;
    }

    body.aa-db-host-body .aa-db-search-page-command button {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    body.aa-db-host-body .aa-db-filter-panel {
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    body.aa-db-host-body .aa-db-filter-panel-head {
        align-items: center !important;
        gap: 12px !important;
    }

    body.aa-db-host-body .aa-db-filter-section-copy {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-filter-panel-tools {
        gap: 8px !important;
    }

    body.aa-db-host-body .aa-db-filter-lines {
        gap: 10px !important;
    }

    body.aa-db-host-body .aa-db-filter-inline-group-center,
    body.aa-db-host-body .aa-db-filter-inline-combo-center {
        gap: 6px !important;
    }

    body.aa-db-host-body .aa-db-check-grid {
        gap: 7px !important;
    }

    body.aa-db-host-body .aa-db-check-label,
    body.aa-db-host-body .aa-db-filter-reset {
        min-height: 34px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.aa-db-host-body .aa-db-results-toolbar {
        margin-top: 16px !important;
        padding: 12px 14px !important;
    }
}

@media (min-width: 2200px) {
    body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head h1,
    body.aa-db-host-body:not(.aa-db-home-page) .aa-db-head h2 {
        font-size: clamp(2.15rem, 1.6vw, 3.2rem) !important;
    }

    body.aa-db-host-body .aa-db-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)) !important;
    }
}

/* Search and browser density pass. */
body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean {
    padding: clamp(18px, 1.6vw, 28px) clamp(18px, 2vw, 30px) !important;
}

body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean h1,
body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean h2 {
    font-size: clamp(1.8rem, 2vw, 2.75rem) !important;
    margin-bottom: 8px !important;
}

body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean p {
    margin-bottom: 12px !important;
}

@media (min-width: 992px) {
    body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean {
        display: grid !important;
        grid-template-columns: minmax(280px, 440px) minmax(420px, 720px) !important;
        grid-template-areas:
            "kicker command"
            "title command"
            "copy command"
            "prefix prefix" !important;
        align-items: end !important;
        column-gap: 34px !important;
        row-gap: 8px !important;
    }

    body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean .aa-db-browse-head-kicker {
        grid-area: kicker !important;
    }

    body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean h1,
    body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean h2 {
        grid-area: title !important;
    }

    body.aa-db-host-body .aa-db-hero-search .aa-db-head-detail-clean p {
        grid-area: copy !important;
    }

    body.aa-db-host-body .aa-db-hero-search .aa-db-search-page-command {
        grid-area: command !important;
        align-self: center !important;
        margin-top: 0 !important;
        width: 100% !important;
    }

    body.aa-db-host-body .aa-db-hero-search .aa-db-search-prefix-strip {
        grid-area: prefix !important;
        max-width: 1080px !important;
    }
}

body.aa-db-host-body .aa-db-search-prefix-strip {
    gap: 6px !important;
    margin-top: 8px !important;
}

body.aa-db-host-body .aa-db-search-prefix-chip {
    min-height: 27px !important;
    padding: 4px 10px !important;
    font-size: 0.76rem !important;
}

body.aa-db-host-body .aa-db-search-page-command {
    width: min(720px, 100%) !important;
    margin-top: 12px !important;
    grid-template-columns: minmax(0, 1fr) 116px !important;
    padding: 6px !important;
}

body.aa-db-host-body .aa-db-search-page-command input[type="text"],
body.aa-db-host-body .aa-db-search-page-command button {
    min-height: 38px !important;
}

body.aa-db-host-body .aa-db-body-search {
    padding-top: 16px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-summary {
    margin-bottom: 14px !important;
    padding: 12px 14px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-summary-main h3 {
    font-size: clamp(1.45rem, 1.55vw, 2rem) !important;
    margin-bottom: 4px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-summary-main p {
    margin-bottom: 0 !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-summary-pill {
    min-height: 28px !important;
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-groups {
    gap: 14px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-group {
    padding: 12px 14px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-group-head {
    margin-bottom: 10px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-results {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    align-items: start !important;
    gap: 10px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-card {
    min-height: 0 !important;
    padding: 10px 12px !important;
    align-self: start !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-main {
    gap: 9px !important;
    align-items: center !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-icon-wrap .aa-db-result-icon,
body.aa-db-host-body .aa-db-body-search .aa-db-entity-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-title {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: auto !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-top {
    align-items: center !important;
    gap: 8px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-type-pill,
body.aa-db-host-body .aa-db-body-search .aa-db-search-open,
body.aa-db-host-body .aa-db-body-search .aa-db-search-id {
    min-height: 23px !important;
    padding: 2px 8px !important;
    font-size: 0.69rem !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-meta {
    margin-top: 5px !important;
    gap: 6px !important;
}

body.aa-db-host-body .aa-db-body-search .aa-db-search-arrow {
    font-size: 0.9rem !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid {
    align-items: start !important;
}

body.aa-db-host-body .aa-db-body-browse-clean:not(:has(.aa-db-result-quest)) .aa-db-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)) !important;
    gap: 10px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result:not(.aa-db-result-quest) {
    min-height: 0 !important;
    padding: 10px 12px !important;
    align-self: start !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result:not(.aa-db-result-quest) .aa-db-result-main {
    align-items: center !important;
    gap: 10px !important;
    padding-right: 22px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result:not(.aa-db-result-quest) .aa-db-result-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result:not(.aa-db-result-quest) .aa-db-result-title {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: auto !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result:not(.aa-db-result-quest) .aa-db-meta-inline {
    margin-top: 7px !important;
    gap: 7px !important;
}

body.aa-db-host-body .aa-db-body-browse-clean .aa-db-results-grid .aa-db-result:not(.aa-db-result-quest) .aa-db-pill {
    min-height: 23px !important;
    padding: 2px 8px !important;
    font-size: 0.69rem !important;
}

body.aa-db-host-body.aa-db-skill-detail-page .aa-db-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

body.aa-db-host-body.aa-db-skill-detail-page .aa-db-card {
    width: 100% !important;
}

body.aa-db-host-body.aa-db-skill-detail-page .aa-db-entity-facts {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
}

body.aa-db-host-body.aa-db-skill-detail-page .aa-db-entity-summary-title-row,
body.aa-db-host-body.aa-db-skill-detail-page .aa-db-entity-tag-row {
    gap: 8px !important;
}

@media (max-width: 991.98px) {
    body.aa-db-host-body .aa-db-search-page-command {
        grid-template-columns: 1fr !important;
    }

    body.aa-db-host-body .aa-db-body-search .aa-db-search-results {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    }
}

@media (min-width: 2200px) {
    body.aa-db-host-body .aa-db-body-search .aa-db-search-results,
    body.aa-db-host-body .aa-db-body-browse-clean:not(:has(.aa-db-result-quest)) .aa-db-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)) !important;
    }
}

/* Responsive corrections: the compact menu must remain reachable at every
   tablet/mobile width, and horizontally scrollable filter rows must start at
   their first option instead of centering content outside the viewport. */
@media (max-width: 991.98px) {
    body.aa-db-host-body .aa-db-sitebar-mobile-nav {
        display: block !important;
        width: min(100%, 420px) !important;
    }

    body.aa-db-host-body .aa-db-sitebar-home-quicknav {
        display: none !important;
    }

    body.aa-db-host-body .aa-db-sitebar-mobile-nav .aa-db-nav-trigger {
        width: 100% !important;
        min-height: 38px !important;
        justify-content: space-between !important;
    }

    body.aa-db-host-body .aa-db-sitebar-mobile-nav .dropdown-menu {
        width: min(420px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        max-height: min(70vh, 520px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
}

@media (max-width: 767.98px) {
    body.aa-db-host-body .aa-db-filter-inline-group-center,
    body.aa-db-host-body .aa-db-results-toolbar-search .aa-db-results-grade {
        justify-items: start !important;
        justify-content: start !important;
        text-align: left !important;
    }

    body.aa-db-host-body .aa-db-filter-inline-group-center .aa-db-filter-label,
    body.aa-db-host-body .aa-db-results-grade .aa-db-filter-label {
        text-align: left !important;
    }

    body.aa-db-host-body .aa-db-filter-inline-group-center .aa-db-check-grid,
    body.aa-db-host-body .aa-db-results-grade .aa-db-check-grid-grade {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline proximity;
        scrollbar-width: thin;
    }

    body.aa-db-host-body .aa-db-filter-inline-group-center .aa-db-check-grid > *,
    body.aa-db-host-body .aa-db-results-grade .aa-db-check-grid-grade > * {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }
}
