.v3-feedback-banner {
    position: relative;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    color: #172033;
    font-size: 0.82rem;
}

.v3-feedback-banner.is-hidden {
    display: none;
}

.v3-feedback-main {
    position: relative;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.35rem 0.8rem 0.35rem 2.4rem;
}

.v3-feedback-dismiss {
    position: absolute;
    top: 3px;
    left: 0.45rem;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    z-index: 2;
}

.v3-feedback-dismiss:hover,
.v3-feedback-dismiss:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: #172033;
    outline: none;
}

.v3-feedback-label {
    font-weight: 750;
    letter-spacing: 0;
    white-space: nowrap;
}

.v3-feedback-label span {
    color: #64748b;
    font-weight: 650;
}

.v3-feedback-toggle {
    border: 0;
    background: transparent;
    color: var(--brand-medium);
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.v3-feedback-toggle:hover,
.v3-feedback-toggle:focus-visible {
    color: var(--brand-dark);
    outline: none;
}

.v3-feedback-panel {
    max-height: 0;
    overflow: hidden;
    display: grid;
    gap: 0.45rem;
    width: min(720px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 0;
    opacity: 0;
    transition: max-height 220ms ease, padding 220ms ease, opacity 160ms ease;
}

.v3-feedback-panel.is-open {
    max-height: 210px;
    padding: 0.1rem 0 0.65rem;
    opacity: 1;
}

.v3-feedback-message {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    background: #fff;
    color: #172033;
    font: inherit;
    line-height: 1.35;
}

.v3-feedback-message:focus {
    border-color: rgba(0, 153, 171, 0.46);
    box-shadow: 0 0 0 3px rgba(0, 153, 171, 0.12);
    outline: none;
}

.v3-feedback-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.v3-feedback-count,
.v3-feedback-status {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
}

.v3-feedback-status {
    padding: 0 0.8rem 0.45rem 2.4rem;
    text-align: center;
}

.v3-feedback-status.is-success {
    color: #0f766e;
}

.v3-feedback-status.is-error {
    color: #b42318;
}

.v3-feedback-submit {
    min-height: 30px;
    border: 1px solid var(--brand-light);
    border-radius: 8px;
    background: var(--brand-light);
    color: #fff;
    padding: 0.28rem 0.8rem;
    font: inherit;
    font-weight: 750;
}

.v3-feedback-submit:hover,
.v3-feedback-submit:focus-visible {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    outline: none;
}

.v3-feedback-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.v3-product-header {
    position: relative;
    z-index: 20;
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 10px clamp(16px, 2.8vw, 44px) 6px;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: var(--brand-dark);
}

.v3-product-brand {
    justify-self: start;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    text-decoration: none;
}

.v3-product-brand img {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
}

.v3-product-brand:hover,
.v3-product-brand:focus-visible {
    opacity: .82;
    outline: none;
}

.v3-product-menu {
    justify-self: center;
}

.v3-product-menu-state,
.v3-product-menu-toggle,
.v3-product-menu-backdrop {
    display: none;
}

.v3-product-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.2vw, 2.15rem);
    min-width: 0;
}

.v3-product-nav-eyebrow {
    display: none;
}

.v3-product-nav-brand {
    display: none;
}

.v3-product-nav-link {
    position: relative;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    color: var(--brand-medium);
    font-size: .88rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.v3-product-nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: transparent;
}

.v3-product-nav-link:hover,
.v3-product-nav-link:focus-visible {
    color: var(--brand-dark);
    outline: none;
}

.v3-product-nav-link.is-active {
    color: var(--brand-dark);
    font-weight: 850;
}

.v3-product-nav-link.is-active::after {
    background: var(--brand-light);
}

.v3-product-header-spacer {
    justify-self: stretch;
}

.v3-product-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.v3-product-actions > * {
    flex: 0 0 auto;
}

.v3-product-actions .notifications-bell {
    order: 1;
}

.v3-product-actions .v3-product-account {
    order: 2;
}

.v3-product-actions .v3-product-management {
    order: 3;
}

.v3-product-actions .v3-product-admin {
    order: 4;
}

.v3-product-actions .v3-product-logout {
    display: block;
    margin: 0;
    order: 5;
}

.v3-product-logout {
    grid-column: 3;
    justify-self: end;
    margin: 0;
}

.v3-product-account,
.v3-product-management,
.v3-product-admin,
.v3-product-logout-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(0, 103, 146, 0.18);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-dark);
    cursor: pointer;
    text-decoration: none;
}

.v3-product-account svg,
.v3-product-management svg,
.v3-product-logout-button img {
    width: 18px;
    height: 18px;
    display: block;
}

.v3-product-account svg,
.v3-product-management svg,
.v3-product-admin .bi {
    fill: currentColor;
}

.v3-product-admin .bi {
    font-size: 18px;
    line-height: 1;
}

.v3-product-account:hover,
.v3-product-account:focus-visible,
.v3-product-admin:hover,
.v3-product-management:hover,
.v3-product-admin:focus-visible,
.v3-product-management:focus-visible,
.v3-product-logout-button:hover,
.v3-product-logout-button:focus-visible {
    border-color: rgba(0, 153, 171, 0.26);
    background: #f2f9fb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 171, 0.11);
}

.v3-product-login {
    grid-column: 3;
    justify-self: end;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 103, 146, 0.18);
    border-radius: 12px;
    background: #ffffff;
    color: var(--brand-dark);
    text-decoration: none;
}

.v3-product-login:hover,
.v3-product-login:focus-visible {
    border-color: rgba(0, 153, 171, 0.26);
    background: #f2f9fb;
    color: var(--brand-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 171, 0.11);
}

.v3-product-footer {
    margin-top: auto;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

.v3-product-footer-inner {
    width: min(1120px, 100%);
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-inline: auto;
    padding: 1rem clamp(16px, 2.8vw, 44px);
}

.v3-product-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #667085;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.v3-product-footer-wordmark {
    color: #172033;
    font-size: .86rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.v3-product-footer-wordmark:hover,
.v3-product-footer-wordmark:focus-visible {
    color: var(--brand-dark);
    outline: none;
}

.v3-product-footer-copyright::before {
    content: "-";
    margin-right: 0.55rem;
    color: #a8b3c1;
}

.v3-product-footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.v3-product-footer-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #276783;
    font-size: .78rem;
    font-weight: 760;
    text-decoration: none;
}

.v3-product-footer-link:hover,
.v3-product-footer-link:focus-visible {
    border-color: rgba(0, 103, 146, 0.15);
    background: rgba(0, 153, 171, 0.07);
    color: var(--brand-dark);
    outline: none;
}

.v3-product-footer-link.is-active {
    border-color: rgba(0, 103, 146, 0.16);
    background: #eef8fa;
    color: #075674;
    font-weight: 850;
}

@media (max-width: 575.98px) {
    .v3-product-footer-inner {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
        padding-block: 1.15rem;
    }

    .v3-product-footer-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .v3-product-footer-brand {
        justify-content: center;
    }

    .v3-product-footer-link {
        min-height: 42px;
        justify-content: center;
        border-color: rgba(0, 103, 146, 0.1);
        background: #f7fafb;
    }
}

.search-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    transition: padding .3s ease;
}

.datav3-layout.search-v3-layout .search-header {
    min-height: 70px;
    gap: 0;
    padding: 8px clamp(16px, 2.6vw, 44px) 12px;
    background: #fff;
}

.search-header .logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    transition: width .3s ease, margin .3s ease;
}

.datav3-layout.search-v3-layout .search-header .logo {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    display: block;
}

.search-header .back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.search-header .login-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.search-header .back-btn:hover,
.search-header .back-btn:focus-visible,
.search-header .login-btn:hover,
.search-header .login-btn:focus-visible {
    color: var(--brand-dark);
}

@media (max-width: 991.98px) {
    body:has(.v3-product-menu-state:checked) {
        overflow: hidden;
    }

    .v3-product-header {
        min-height: 64px;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: .5rem;
        padding: 10px 14px;
    }

    .v3-product-brand {
        position: static;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        transform: none;
    }

    .v3-product-header-spacer {
        display: none;
    }

    .v3-product-logout {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .v3-product-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        justify-self: end;
    }

    .v3-product-menu {
        position: relative;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        display: block;
        width: 40px;
        height: 40px;
    }

    .v3-product-menu-state {
        position: absolute;
        z-index: 32;
        width: 40px;
        height: 40px;
        margin: 0;
        cursor: pointer;
        opacity: 0;
    }

    .v3-product-menu-toggle {
        position: absolute;
        z-index: 31;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        cursor: pointer;
        border: 1px solid rgba(0, 103, 146, 0.18);
        border-radius: 12px;
        background: linear-gradient(145deg, #ffffff, #f2f9fb);
        color: var(--brand-dark);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    }

    .v3-product-menu-backdrop {
        position: fixed;
        z-index: 29;
        inset: 0;
        display: block;
        cursor: pointer;
        background: rgba(15, 23, 42, 0.36);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 220ms ease, visibility 220ms ease;
    }

    .v3-product-menu-state:focus-visible + .v3-product-menu-toggle {
        outline: 3px solid rgba(0, 153, 171, 0.25);
        outline-offset: 2px;
    }

    .v3-product-menu-icon,
    .v3-product-menu-icon::before,
    .v3-product-menu-icon::after {
        width: 18px;
        height: 2px;
        display: block;
        border-radius: 999px;
        background: currentColor;
        content: "";
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .v3-product-menu-icon {
        position: relative;
    }

    .v3-product-menu-icon::before,
    .v3-product-menu-icon::after {
        position: absolute;
        left: 0;
    }

    .v3-product-menu-icon::before {
        top: -6px;
    }

    .v3-product-menu-icon::after {
        top: 6px;
    }

    .v3-product-menu-state:checked + .v3-product-menu-toggle .v3-product-menu-icon {
        background: transparent;
    }

    .v3-product-menu-state:checked + .v3-product-menu-toggle .v3-product-menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .v3-product-menu-state:checked + .v3-product-menu-toggle .v3-product-menu-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .v3-product-nav {
        position: fixed;
        z-index: 30;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        display: grid;
        grid-template-columns: minmax(0, 280px);
        gap: 0.15rem;
        align-content: start;
        justify-content: center;
        padding: calc(1.35rem + env(safe-area-inset-top)) 0.625rem calc(1.25rem + env(safe-area-inset-bottom));
        border: 0;
        border-left: 1px solid rgba(0, 103, 146, 0.12);
        border-radius: 0;
        background: linear-gradient(160deg, #ffffff 0%, #f1f9fb 100%);
        box-shadow: -18px 0 45px rgba(15, 23, 42, 0.2);
        visibility: hidden;
        pointer-events: none;
        transform: translateX(104%);
        transition: transform 240ms ease, visibility 240ms ease;
    }

    .v3-product-menu-state:checked ~ .v3-product-menu-backdrop {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }

    .v3-product-menu-state:checked ~ .v3-product-nav {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .v3-product-nav-brand {
        width: 56px;
        height: 56px;
        display: grid;
        place-items: center;
        justify-self: center;
        margin: 0.15rem 0 1rem;
        border-radius: 999px;
        text-decoration: none;
    }

    .v3-product-nav-brand img {
        width: 48px;
        height: 48px;
        display: block;
        object-fit: contain;
    }

    .v3-product-nav-brand:hover,
    .v3-product-nav-brand:focus-visible {
        opacity: .82;
        outline: none;
    }

    .v3-product-nav-eyebrow {
        display: block;
        width: 100%;
        max-width: 280px;
        justify-self: center;
        padding: 0.35rem 0.65rem 0.25rem;
        color: #6a7a90;
        font-size: 0.66rem;
        font-weight: 800;
        letter-spacing: 0.11em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .v3-product-nav-link {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
        justify-self: center;
        min-height: 46px;
        justify-content: flex-start;
        padding: 0 0.7rem 0 0.85rem;
        border: 1px solid transparent;
        border-radius: 10px;
        color: #145f80;
        font-size: .93rem;
        font-weight: 750;
    }

    .v3-product-nav-link:hover,
    .v3-product-nav-link:focus-visible {
        border-color: rgba(0, 153, 171, 0.14);
        background: rgba(0, 153, 171, 0.09);
        color: var(--brand-dark);
    }

    .v3-product-nav-link.is-active {
        border-color: rgba(0, 103, 146, 0.14);
        background: #006792;
        color: #fff;
        box-shadow: 0 5px 12px rgba(0, 103, 146, 0.2);
    }

    .v3-product-nav-link::after {
        display: none;
    }

    .v3-feedback-main {
        flex-wrap: wrap;
        row-gap: 0.15rem;
        justify-content: flex-start;
        padding-right: 0.75rem;
    }

    .v3-feedback-label,
    .v3-feedback-toggle {
        font-size: 0.78rem;
    }

    .v3-feedback-panel {
        width: calc(100% - 1rem);
    }

    .v3-feedback-actions {
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .v3-product-nav {
        width: 100vw;
        border-left: 0;
    }
}

.search-box {
    position: relative;
    display: block;
    width: 100%;
    max-width: 800px;

    min-height: 56px;
    height: auto;

    border-radius: 28px;
    border: 1px solid #ddd;
    background: var(--bg-soft);
    transition: border-radius 0.15s ease;

    /* sizing tokens */
    --left-btn-x: 8px;
    --left-btn-size: 44px;
    --left-text-gap: 8px;
    /* tweak 4–10px */
}

.datav3-layout.search-v3-layout .search-box {
    max-width: none;
    background: #fff;
    box-shadow: 0 8px 24px rgba(4, 78, 104, .14);
    --left-btn-x: 8px;
    --left-btn-size: 44px;
    --left-text-gap: 10px;
}

.datav3-layout.search-v3-layout .search-box:focus-within {
    box-shadow:
        0 0 0 3px rgba(0, 153, 171, .16),
        0 8px 24px rgba(4, 78, 104, .16);
}

.search-textarea {
    resize: none;
    border: none;
    outline: none;

    width: 100%;
    display: block;
    box-sizing: border-box;

    padding:
        calc(0.9rem + 2px)
        /* ↓ push text down */
        3.5rem calc(0.9rem - 2px)
        /* compensate bottom */
        calc(var(--left-btn-x) + var(--left-btn-size) + var(--left-text-gap));

    font-size: 1rem;
    line-height: 1.5;
    background: transparent;

    min-height: 56px;
    max-height: 800px;

    overflow-y: hidden;
    transition: padding 0.15s ease;
}

.search-input {
    width: 100%;
    min-height: 56px;
    display: block;
    box-sizing: border-box;
    padding: 0 66px 0 calc(var(--left-btn-x) + var(--left-btn-size) + var(--left-text-gap));
    border: 0;
    border-radius: inherit;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 1rem;
    line-height: 56px;
}

.search-input::placeholder {
    color: #667085;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
    display: none;
}

.exact-entity-pill-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: -0.45rem 0 0.35rem;
    padding-inline: 20px;
}

.exact-entity-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: min(800px, 100%);
    padding: .5rem .9rem;
    border: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 999px;
    background: rgba(220, 252, 231, 0.92);
    color: #166534;
    font-size: .82rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.exact-entity-pill-text {
    display: inline;
    min-width: 0;
    overflow-wrap: break-word;
}

.exact-entity-pill-label {
    font-weight: 800;
    white-space: nowrap;
    margin-right: .25rem;
}

.exact-entity-pill-number {
    color: #3f6f50;
    font-weight: 700;
    white-space: nowrap;
    margin-left: .25rem;
}

.exact-entity-pill-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(22, 101, 52, 0.12);
    color: #166534;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.exact-entity-pill-clear:hover {
    background: rgba(22, 101, 52, 0.2);
}

.add-filter-btn {
    position: absolute;
    left: var(--left-btn-x);
    bottom: 10px;

    width: var(--left-btn-size);
    height: var(--left-btn-size);

    /* keep the + centered inside the circle */
    display: grid;
    place-items: center;

    border: 0;
    background: transparent;
    border-radius: 999px;
    z-index: 3;
}

.add-filter-btn svg {
    display: block;
}

.search-btn {
    position: absolute;
    right: 8px;
    bottom: 10px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    border: 0;
    background: var(--brand-light);
    color: #fff;

    border-radius: 999px;
    margin: 0;
    padding: 0;
    z-index: 3;
}

.search-shell {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.datav3-layout.search-v3-layout .search-shell {
    width: min(860px, calc(100vw - 180px));
    max-width: none;
}

.search-memory-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    box-sizing: border-box;
    margin: -0.45rem auto 0.75rem;
    padding-inline: 20px;
}

.recent-searches {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
}

.recent-searches-label {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

.recent-searches-list {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    margin: -3px;
    padding: 3px;
    overflow: hidden;
}

.recent-search-chip {
    flex: 0 1 auto;
    min-height: 30px;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    white-space: nowrap;
    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        box-shadow 140ms ease,
        color 140ms ease;
}

.recent-search-chip:hover,
.recent-search-chip:focus-visible {
    border-color: rgba(0, 103, 146, 0.42);
    background: rgba(0, 153, 171, 0.08);
    color: var(--brand-dark);
    box-shadow: 0 0 0 3px rgba(0, 153, 171, 0.14);
    outline: none;
}

.saved-records-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-left: auto;
    min-height: 30px;
    padding: 0.3rem 0.62rem;
    border: 1px solid rgba(0, 153, 171, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #40b3c0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        box-shadow 140ms ease,
        color 140ms ease;
}

.saved-records-toggle:hover,
.saved-records-toggle:focus-visible,
.saved-records-toggle[aria-expanded="true"] {
    border-color: rgba(0, 153, 171, 0.3);
    background: #fff;
    color: #40b3c0;
    box-shadow: 0 0 0 3px rgba(0, 153, 171, 0.1);
    outline: none;
}

.results-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.results-status-main {
    min-width: 0;
    flex: 0 1 auto;
    width: 100%;
}

.results-status-text {
    display: block;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}

.results-status-text.text-muted {
    color: #64748b !important;
}

.results-status-text.text-danger {
    color: #b42318 !important;
}

.results-status-text.text-primary {
    color: var(--brand-dark);
}

.results-sort-wrap {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.results-sort-dropdown {
    position: relative;
}

.results-sort-toggle {
    position: relative;
    min-width: 132px;
    height: 36px;
    padding: 0 2rem 0 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background-color: #fff;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        background-color 140ms ease;
}

.results-sort-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #64748b;
    border-bottom: 1.5px solid #64748b;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.results-sort-toggle:hover,
.results-sort-toggle:focus-visible,
.results-sort-toggle[aria-expanded="true"] {
    border-color: rgba(0, 153, 171, 0.28);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 153, 171, 0.16);
    outline: none;
}

.results-sort-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 50%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 156px;
    padding: 0.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    transform: translateX(-50%);
}

.results-sort-option {
    width: 100%;
    min-height: 36px;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    transition:
        background-color 140ms ease,
        color 140ms ease;
}

.results-sort-option:hover,
.results-sort-option:focus-visible {
    background: rgba(0, 153, 171, 0.08);
    outline: none;
}

.results-sort-option.is-selected {
    background: var(--brand-light);
    color: #fff;
}

.abr-hint-wrap {
    width: 100%;
    max-width: 800px;
    margin: -0.25rem auto 0.75rem;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
    max-height: 320px;
    transition:
        opacity 840ms ease,
        transform 840ms ease,
        max-height 840ms ease,
        margin 840ms ease;
}

.abr-hint-wrap.is-hiding {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-14px);
    max-height: 0;
    margin-top: -0.5rem;
    margin-bottom: 0;
}

.abr-hint-card {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 153, 171, 0.14);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    padding: 0.85rem 3rem 1rem 1rem;
}

.abr-hint-dismiss {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1;
    transition:
        background-color 140ms ease,
        color 140ms ease;
}

.abr-hint-dismiss:hover,
.abr-hint-dismiss:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: #172033;
    outline: none;
}

.abr-hint-title {
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.abr-hint-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.abr-hint-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    max-width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(0, 153, 171, 0.18);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbfc 100%);
    color: #0f172a;
    text-align: left;
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        border-color 140ms ease;
}

.abr-hint-chip:hover,
.abr-hint-chip:focus-visible {
    border-color: rgba(0, 153, 171, 0.45);
    box-shadow: 0 10px 20px rgba(0, 153, 171, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.abr-hint-chip-name {
    display: block;
    max-width: 100%;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.abr-hint-chip-abn {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-dark);
}


.search-box.is-multiline .search-textarea {
    padding-left: 1rem;
    /* text shifts left */
    padding-top: 0.9rem;
    /* no extra drop */
    padding-bottom: 3.6rem;
    /* keep toolbar row empty */
}

/* Single-line: buttons sit level with the first line of text */
.search-box:not(.is-multiline) .add-filter-btn,
.search-box:not(.is-multiline) .search-btn {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

/* Multiline: buttons go back down to the toolbar row */
.search-box.is-multiline .add-filter-btn,
.search-box.is-multiline .search-btn {
    top: auto;
    bottom: 10px;
    transform: none;
}

.datav3-layout.search-v3-layout .search-box.is-multiline .add-filter-btn {
    top: 7px;
    bottom: auto;
    transform: none;
}

.datav3-layout.search-v3-layout .search-box.is-multiline .search-textarea {
    padding-left: calc(var(--left-btn-x) + var(--left-btn-size) + var(--left-text-gap));
    padding-top: calc(0.9rem + 2px);
}


.add-filter-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.search-btn:hover {
    background: var(--brand-dark);
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 153, 171, .25);
}

.search-box.ai-mode .search-textarea {
    padding-right: 5.0rem;
    /* gives room for wider AI button */
}

.search-box.is-multiline.ai-mode .search-textarea {
    padding-right: 1rem; /* pick your value */
}

.search-btn {
    gap: 4px;
}

/* Icons sizing */
.search-btn .search-icon,
.search-btn .ai-icon {
    width: 1.25em;
    height: 1.25em;
}

.search-btn .ai-icon {
    color: #fff;
    opacity: 0.85;
}

@media (max-width: 767.98px) {
    .datav3-layout.search-v3-layout .search-header {
        min-height: 66px;
        padding: 8px 16px 12px;
    }

    .datav3-layout.search-v3-layout .search-shell {
        width: 100%;
    }

    .search-memory-row {
        align-items: flex-start;
        margin-top: -0.55rem;
    }

    .recent-searches {
        min-width: 0;
    }

    .recent-searches-label {
        padding-top: 0.42rem;
    }

    .recent-searches-list {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .recent-searches-list::-webkit-scrollbar {
        display: none;
    }

    .recent-search-chip {
        flex: 0 0 auto;
    }

    .saved-records-toggle {
        margin-top: 0.02rem;
    }

    .abr-hint-wrap {
        margin-top: -0.1rem;
    }

    .abr-hint-card {
        border-radius: 18px;
        padding-inline: 0.85rem 2.8rem;
    }

    .abr-hint-list {
        gap: 0.5rem;
    }

    .abr-hint-chip {
        width: 100%;
        border-radius: 18px;
    }

    .abr-hint-chip-name {
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .results-sort-toggle {
        min-width: 124px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abr-hint-wrap {
        transition: none;
    }
}
