.results-shell {
    width: 100%;
    margin: 0 auto;
    display: block;
    padding-inline: 1rem;
}

.results-main {
    min-width: 0;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    transition: opacity 180ms ease;
}

.results-shell.is-sidebar-open .results-main,
.results-shell.is-saved-records-open .results-main {
    opacity: 0.25;
}

.results-sidebar {
    min-width: 0;
}

.saved-records-drawer {
    position: fixed;
    top: var(--results-sidebar-top, 72px);
    left: 0;
    z-index: 1060;
    width: min(380px, calc(100vw - 3rem));
    max-height: var(--results-sidebar-max-height, calc(100vh - 88px));
    pointer-events: none;
}

.saved-records-drawer-inner {
    box-sizing: border-box;
    max-height: var(--results-sidebar-max-height, calc(100vh - 88px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem;
    border: 1px solid rgba(0, 153, 171, 0.22);
    border-left: 0;
    border-radius: 0 18px 18px 0;
    background: #e6f5f7;
    box-shadow: 18px 18px 48px rgba(15, 23, 42, 0.16);
    transform: translateX(-100%);
    transition: transform 260ms ease;
    pointer-events: auto;
}

.saved-records-drawer.is-open {
    pointer-events: auto;
}

.saved-records-drawer.is-open .saved-records-drawer-inner {
    transform: translateX(0);
}

.saved-records-title {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.saved-records-view-all {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand-medium);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.saved-records-view-all:hover,
.saved-records-view-all:focus-visible {
    color: var(--brand-light);
    text-decoration: underline;
    outline: none;
}

.saved-records-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
}

.saved-records-close:hover,
.saved-records-close:focus-visible {
    background: rgba(0, 153, 171, 0.1);
    color: var(--brand-dark);
    outline: none;
}

.saved-records-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.saved-record-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.62rem 0.68rem;
    border: 1px solid rgba(0, 153, 171, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    transition:
        border-color 140ms ease,
        background-color 140ms ease;
}

.saved-record-row:hover,
.saved-record-row:focus-visible {
    border-color: rgba(0, 153, 171, 0.32);
    background: #fff;
    outline: none;
}

.saved-record-row-title {
    min-width: 0;
    flex: 1 1 auto;
    color: #1e293b;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.saved-record-remove {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    line-height: 1;
}

.saved-record-remove:hover,
.saved-record-remove:focus-visible {
    color: var(--brand-dark);
    outline: none;
}

.saved-records-empty {
    padding: 0.6rem 0.1rem;
    color: #64748b;
    font-size: 0.84rem;
}

.saved-records-results-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.8rem;
    padding: 0.42rem 0.68rem;
    border: 1px solid rgba(0, 153, 171, 0.16);
    border-radius: 999px;
    background: rgba(230, 245, 247, 0.72);
    color: #33515a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.saved-records-results-notice .icon {
    color: var(--brand-light);
}

.record-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.record-action-meta {
    min-width: 0;
    flex: 1 1 auto;
}

.record-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.record-action-buttons .record-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 2.1rem;
    padding: 0 !important;
    line-height: 1;
}

.record-title-metadata {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: -0.15rem 0 0.75rem;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.35;
}

.record-title-metadata-label {
    flex: 0 0 auto;
    color: var(--brand-medium);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.record-title-metadata-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.snippet {
    min-width: 0;
    max-width: 100%;
}

.snippet .doc-snippet-link {
    flex: 0 0 auto;
}

.snippet > .flex-grow-1 {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.report-record-btn.active,
.report-record-btn:focus-visible {
    color: var(--brand-dark);
}

.record-saved-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    max-width: 100%;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(0, 153, 171, 0.16);
    border-radius: 999px;
    background: rgba(230, 245, 247, 0.72);
    color: #33515a;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.record-saved-date-pill .icon {
    color: var(--brand-light);
}

.results-sidebar-toggle {
    display: none;
}

.results-sidebar-inner {
    position: sticky;
    top: 96px;
}

.results-sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin: 0 0 .85rem;
    padding: 0 .15rem .65rem;
    border-bottom: 1px solid rgba(0, 153, 171, 0.16);
    color: var(--brand-dark);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1;
}

.results-sidebar-heading-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.sidebar-summary-action-btn {
    align-self: center;
    box-sizing: border-box;
    height: 32px;
    min-height: 32px;
    padding: 0 .72rem 1px;
    font-size: .78rem;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.sidebar-summary-action-btn .icon,
.sidebar-summary-action-btn span {
    display: block;
}

.endpoint-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.endpoint-card-wrap {
    opacity: 0;
    transform: translateY(10px) scale(.985);
    transition:
        opacity 220ms ease,
        transform 220ms ease,
        margin 220ms ease;
    max-height: 0;
    overflow: hidden;
}

.endpoint-card-wrap.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: none;
    overflow: visible;
}

.endpoint-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: none !important;
    backdrop-filter: blur(8px);
}

.endpoint-card-loading {
    border-style: dashed;
}

.sidebar-summary-card {
    border-color: rgba(13, 110, 253, 0.16);
    background: rgba(255, 255, 255, 0.9);
}

.sidebar-summary-heading {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .55rem;
    color: #0d6efd;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
}

.sidebar-summary-text {
    margin: 0;
    color: #1f2937;
    font-size: .88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sidebar-summary-list {
    margin: .35rem 0 0;
    padding-left: 1.05rem;
    color: #334155;
    font-size: .82rem;
    line-height: 1.35;
}

.sidebar-summary-list li + li {
    margin-top: .3rem;
}

.sidebar-summary-subheading {
    margin-top: .75rem;
    color: #991b1b;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
}

.sidebar-summary-list strong,
.sidebar-summary-text strong {
    font-weight: 800;
}

.sidebar-summary-empty {
    margin-top: .65rem;
    color: #64748b;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.3;
}

.sidebar-insight-section {
    min-width: 0;
}

.sidebar-insight-section + .sidebar-insight-section {
    margin-top: 1rem;
}

.sidebar-insight-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.sidebar-insight-toggle:hover .sidebar-insight-title,
.sidebar-insight-toggle:focus-visible .sidebar-insight-title {
    color: var(--brand-dark);
}

.sidebar-insight-toggle:focus-visible {
    outline: 3px solid rgba(0, 153, 171, 0.18);
    outline-offset: .35rem;
    border-radius: .5rem;
}

.sidebar-insight-toggle:disabled {
    cursor: default;
}

.sidebar-insight-toggle:disabled:hover .sidebar-insight-title,
.sidebar-insight-toggle:disabled:focus-visible .sidebar-insight-title {
    color: inherit;
}

.sidebar-insight-summary {
    display: block;
    min-width: 0;
}

.sidebar-insight-summary-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.sidebar-insight-label {
    min-width: 0;
    color: #334155;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.sidebar-insight-external-icon {
    display: inline-block;
    margin-left: .3rem;
    color: var(--brand-light);
    vertical-align: -0.12em;
}

.sidebar-insight-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 1.65rem;
    height: 1.35rem;
    padding: 0 .38rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.sidebar-insight-pill-check,
.sidebar-insight-pill-count {
    border: 1px solid rgba(22, 163, 74, 0.24);
    background: rgba(220, 252, 231, 0.92);
    color: #15803d;
}

.sidebar-insight-pill-empty {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(226, 232, 240, 0.75);
    color: #64748b;
}

.sidebar-insight-pill-loading {
    border: 1px solid rgba(0, 153, 171, 0.24);
    background: rgba(230, 245, 247, 0.92);
    color: var(--brand-light);
}

.sidebar-mini-spinner {
    width: .72rem;
    height: .72rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: sidebar-mini-spin 700ms linear infinite;
}

.sidebar-insight-title {
    margin-top: .45rem;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    color: var(--bs-body-color);
}

.sidebar-insight-caret {
    width: .62rem;
    height: .62rem;
    flex: 0 0 auto;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 180ms ease;
}

.sidebar-insight-section.is-expanded .sidebar-insight-caret {
    transform: rotate(225deg);
}

.sidebar-insight-section.is-empty {
    opacity: .58;
}

.sidebar-insight-section.is-empty .sidebar-insight-label,
.sidebar-insight-section.is-empty .sidebar-insight-title {
    color: #64748b;
}

.sidebar-insight-body {
    min-width: 0;
    padding-top: 1rem;
}

@keyframes sidebar-mini-spin {
    to {
        transform: rotate(360deg);
    }
}

.endpoint-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: .75rem;
}

.endpoint-kv {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: .4rem .75rem;
    font-size: .95rem;
}

.endpoint-kv + .endpoint-kv {
    margin-top: .35rem;
}

.endpoint-kv-label {
    color: #6b7280;
    font-weight: 600;
}

.endpoint-kv-value {
    min-width: 0;
    word-break: break-word;
}

.endpoint-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}

.endpoint-chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    background: rgba(0, 153, 171, 0.08);
    border: 1px solid rgba(0, 153, 171, 0.18);
    color: var(--brand-dark);
}

.record-meta-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .5rem;
}

.record-meta-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .45rem .72rem;
    border-radius: 999px;
    border: 1px solid #d9dee8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
    color: #1e293b;
    font-size: .82rem;
    line-height: 1.2;
}

.record-copy-pill {
    cursor: pointer;
}

.record-copy-pill:hover,
.record-copy-pill:focus-visible {
    border-color: rgba(0, 153, 171, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 153, 171, 0.12);
    outline: none;
}

.record-copy-pill.is-copied {
    border-color: rgba(22, 163, 74, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.record-copy-pill.is-copy-failed {
    border-color: rgba(220, 38, 38, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.record-meta-pill .icon {
    color: #64748b;
    flex: 0 0 auto;
}

.record-meta-pill a {
    color: inherit;
    text-decoration: none;
}

.record-meta-pill a:hover {
    text-decoration: underline;
}

.record-meta-pill-relation {
    max-width: min(100%, 42rem);
    min-width: 0;
}

.record-meta-pill-relation a,
.record-meta-pill-relation span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-meta-pill-tracking-target {
    gap: .45rem;
    padding-right: .45rem;
}

.record-meta-pill-tracking-target .record-meta-pill-label {
    color: #64748b;
    font-weight: 700;
}

.record-meta-pill-tracking-target .record-meta-pill-title {
    min-width: 0;
}

.record-meta-pill-tracking-target .record-inquiry-info {
    margin-left: -.18rem;
}

.record-meta-pill-tracking-target .track-record-parent {
    flex: 0 0 auto;
    padding: .18rem .48rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.2;
}

.record-meta-pill-breadcrumb {
    max-width: min(100%, 42rem);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}

.record-meta-pill-breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-meta-pill-number {
    font-weight: 600;
}

.record-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: .12rem .35rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.16);
    color: #166534;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.record-related-number {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
    margin: -.35rem 0 1rem;
    padding: .42rem .62rem;
    border: 1px solid rgba(22, 163, 74, 0.16);
    border-radius: 8px;
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
    font-size: .78rem;
    line-height: 1.25;
}

.record-related-number-label {
    flex: 0 0 auto;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.record-related-number-value {
    min-width: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.record-date-meta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
}

.record-date-icon {
    flex: 0 0 auto;
}

.record-date-text {
    font-weight: 500;
    color: var(--bs-body-color);
}

.record-date-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: .92rem;
    height: .92rem;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #6b7280;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.record-date-info:hover,
.record-date-info:focus-visible {
    color: var(--brand-dark);
    border-color: rgba(0, 153, 171, 0.35);
    outline: none;
}

.record-date-popover {
    --bs-popover-max-width: 280px;
}

.record-date-popover .popover-body {
    font-size: .8rem;
}

.record-series-summary {
    margin-top: -.35rem;
    margin-bottom: 1rem;
}

.record-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.record-title {
    color: var(--brand-light);
    text-decoration: none;
}

a.record-title:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

#registryInsightWrap h5,
#acncInsightWrap h5,
#asicNoticesInsightWrap h5,
#ndisCommissionInsightWrap h5 {
    font-weight: 600;
}

#asicNoticesInsightWrap h6,
#ndisCommissionInsightWrap h6 {
    font-weight: 600;
}

.asic-notice-card,
.asic-notice-card .fw-semibold,
.asic-notice-card .text-body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.asic-notice-source-link {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}

.austender-contract-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.austender-contract-block {
    margin-bottom: .9rem;
}

.austender-contract-block-title {
    margin-bottom: .28rem;
    color: #64748b;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;
}

.austender-contract-supplier,
.austender-contract-title,
.austender-contract-amount {
    color: #0f172a;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.25;
}

.austender-contract-field-grid {
    display: grid;
    gap: .45rem;
}

.austender-contract-field {
    min-width: 0;
}

.austender-contract-label {
    color: #64748b;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;
}

.austender-contract-value {
    color: #334155;
    font-size: .875rem;
    line-height: 1.3;
}

.austender-contract-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.austender-contract-source-btn {
    display: inline-flex;
    align-items: center;
}

.published-notices-section-bordered {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}

@media (min-width: 1600px) {
    :root {
        --results-sidebar-surface: #e6f5f7;
        --results-sidebar-border: rgba(0, 153, 171, 0.24);
        --results-sidebar-top: 140px;
        --results-sidebar-max-height: calc(100vh - 160px);
    }

    /* Change: on desktop, detach the sidebar from the centered results flow
       and pin it to the right side of the viewport. */
    .results-sidebar {
        position: fixed;
        top: var(--results-sidebar-top);
        right: 1.5rem;
        width: clamp(360px, 22vw, 440px);
        max-height: var(--results-sidebar-max-height);
        overflow-y: auto;
        /* Change: keep the fixed insights sidebar above the sticky header. */
        z-index: 1040;
    }

    .saved-records-drawer {
        top: var(--results-sidebar-top);
        max-height: var(--results-sidebar-max-height);
    }

    .saved-records-drawer-inner {
        max-height: var(--results-sidebar-max-height);
    }

    .results-sidebar-inner {
        position: static;
        box-sizing: border-box;
        max-height: var(--results-sidebar-max-height);
        overflow-y: auto;
        padding: 0.85rem;
        border: 1px solid var(--results-sidebar-border);
        border-radius: 18px;
        background: var(--results-sidebar-surface);
        box-shadow: none;
    }
}

@media (max-width: 1599.98px) {
    :root {
        --results-sidebar-compact-width: min(420px, calc(100vw - 3rem));
        --results-sidebar-surface: #e6f5f7;
        --results-sidebar-border: rgba(0, 153, 171, 0.24);
        --results-sidebar-top: 72px;
        --results-sidebar-bottom-safe-area: 34px;
        --results-sidebar-max-height: calc(100vh - var(--results-sidebar-top) - 1rem);
    }

    .results-sidebar {
        position: fixed;
        top: var(--results-sidebar-top);
        right: 0;
        width: var(--results-sidebar-compact-width);
        max-height: var(--results-sidebar-max-height);
        overflow: visible;
        z-index: 1060;
        pointer-events: none;
    }

    .results-sidebar.is-open {
        pointer-events: auto;
    }

    .results-sidebar-inner {
        position: relative;
        z-index: 1;
        box-sizing: border-box;
        max-height: var(--results-sidebar-max-height);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 0.85rem 0.85rem 1.25rem;
        border: 1px solid transparent;
        border-right: 0;
        border-radius: 18px 0 0 18px;
        background: transparent;
        box-shadow: none;
        transform: translateX(100%);
        transition:
            transform 260ms ease,
            background-color 160ms ease,
            border-color 160ms ease,
            box-shadow 160ms ease;
        pointer-events: auto;
    }

    .results-sidebar.is-open .results-sidebar-inner {
        border-color: var(--results-sidebar-border);
        background: var(--results-sidebar-surface);
        box-shadow: -18px 18px 48px rgba(15, 23, 42, 0.18);
        transform: translateX(0);
    }

    .results-sidebar-toggle {
        position: fixed;
        top: 1rem;
        right: 0;
        z-index: 1061;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 48px;
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-right: 0;
        border-radius: 14px 0 0 14px;
        background: #fff;
        color: #40b3c0;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
        transition:
            right 260ms ease,
            background-color 140ms ease,
            box-shadow 140ms ease,
            color 140ms ease;
        pointer-events: auto;
    }

    .results-sidebar.is-open .results-sidebar-toggle {
        right: 0;
        color: #40b3c0;
    }

    .results-sidebar.has-insight-results .results-sidebar-toggle,
    .results-sidebar.has-insight-results.is-open .results-sidebar-toggle {
        color: #166534;
    }

    .results-sidebar-toggle:hover,
    .results-sidebar-toggle:focus-visible,
    .results-sidebar-toggle[aria-expanded="true"] {
        background: #fff;
        color: #40b3c0;
        box-shadow:
            0 12px 28px rgba(15, 23, 42, 0.16),
            0 0 0 3px rgba(0, 153, 171, 0.12);
        outline: none;
    }

    .results-sidebar.has-insight-results .results-sidebar-toggle:hover,
    .results-sidebar.has-insight-results .results-sidebar-toggle:focus-visible,
    .results-sidebar.has-insight-results .results-sidebar-toggle[aria-expanded="true"] {
        color: #166534;
        box-shadow:
            0 12px 28px rgba(15, 23, 42, 0.16),
            0 0 0 3px rgba(22, 163, 74, 0.14);
    }

    .results-sidebar-toggle.is-attention {
        animation: insights-lightbulb-pulse 900ms ease-out infinite;
    }

    .endpoint-sidebar-stack {
        gap: .75rem;
    }

    .record-date-meta {
        flex-wrap: wrap;
    }

    .record-meta-pills {
        gap: .45rem;
    }

    .record-meta-pill {
        padding: .42rem .65rem;
        font-size: .78rem;
    }
}

@media (max-width: 575.98px) {
    .results-sidebar-inner {
        padding-bottom: calc(var(--results-sidebar-bottom-safe-area) - 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .results-sidebar-inner,
    .results-sidebar-toggle,
    .saved-records-drawer-inner {
        transition: none;
        animation: none;
    }

    .endpoint-card-wrap {
        transition: none;
    }
}

@keyframes insights-lightbulb-pulse {
    0%,
    100% {
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
        transform: translateX(0) scale(1);
    }

    24%,
    64% {
        box-shadow:
            0 12px 28px rgba(15, 23, 42, 0.16),
            0 0 0 4px rgba(0, 153, 171, 0.18),
            0 0 24px rgba(0, 153, 171, 0.38);
        transform: translateX(-2px) scale(1.04);
    }

    44%,
    84% {
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
        transform: translateX(0) scale(1);
    }
}


/* .results-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.record-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.record-title {
    color: var(--brand-light);
    text-decoration: none;
}

a.record-title:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}


#registryInsightWrap .card {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

#registryInsightWrap h5 {
    font-weight: 600;
}

#registryInsightWrap .bi-building-check {
    line-height: 1;
} */
