/*
    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;
}

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 (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;
    }
}
