.xhse,
.xhse-nav,
.xhse-machine-launcher,
.xhse-quick-links,
.xhse-service-guide {
    --xhse-ink: #142033;
    --xhse-muted: #617087;
    --xhse-line: #dce4ee;
    --xhse-soft: #f4f7fa;
    --xhse-brand: #155eef;
    --xhse-brand-dark: #0b46bd;
    --xhse-teal: #087a71;
    --xhse-white: #fff;
    box-sizing: border-box;
    color: var(--xhse-ink);
    font: inherit;
}

/* v0.8.6 mechanic-first lookup and directory hierarchy. */
.xhse .xhse__hero--directory {
    display: block;
    padding: clamp(18px, 3vw, 28px);
    background: linear-gradient(135deg, #fff 0%, #f2f7fc 100%);
}

.xhse__hero--directory h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
}

.xhse-lookup {
    display: grid;
    grid-template-columns: minmax(250px, .82fr) minmax(420px, 1.18fr);
    column-gap: 24px;
    align-items: center;
    margin-top: 14px;
    padding: clamp(16px, 2.5vw, 22px);
    border: 1px solid #aac4e6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(19, 48, 88, .08);
}

.xhse-lookup__copy h2,
.xhse-quick-links h2,
.xhse-search__results h2 {
    margin: 0;
    color: var(--xhse-ink);
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}

.xhse-lookup__copy > p:last-child,
.xhse-quick-links > div:first-child > p:last-child {
    margin: 7px 0 0;
    color: var(--xhse-muted);
    line-height: 1.55;
}

.xhse-lookup__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 0;
}

.xhse-lookup__form input,
.xhse-lookup__form button {
    width: 100%;
    min-height: 56px;
    margin: 0;
    border-radius: 10px;
    font: inherit;
}

.xhse-lookup__form input {
    padding: 11px 15px;
    border: 1px solid #9aaac0;
    color: var(--xhse-ink);
    font-size: 1.02rem;
}

.xhse-lookup__form button {
    width: auto;
    padding: 11px 24px;
    border: 1px solid var(--xhse-brand);
    background: var(--xhse-brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.xhse-lookup__form input:focus-visible,
.xhse-lookup__form button:focus-visible,
.xhse-quick-links a:focus-visible {
    outline: 3px solid rgba(21, 94, 239, .28);
    outline-offset: 2px;
}

.xhse-lookup__hint {
    grid-column: 2;
    margin: 6px 0 0;
    color: var(--xhse-muted);
    font-size: .8rem;
}

/* On a known machine/system, let the mechanic filter the visible hoses in place. */
.xhse-context-filter {
    display: grid;
    grid-template-columns: minmax(220px, .75fr) minmax(360px, 1.25fr);
    gap: 18px 24px;
    align-items: center;
    margin-top: 14px;
    padding: 18px 20px;
    border: 2px solid #d5e4f7;
    border-radius: 16px;
    background: #f7faff;
}

.xhse-context-filter__copy h2 {
    margin: 0;
    color: var(--xhse-ink);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.xhse-context-filter__copy > p:last-child {
    margin: 6px 0 0;
    color: var(--xhse-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.xhse-context-filter__control,
.xhse-context-filter__control label {
    display: grid;
    gap: 7px;
}

.xhse-context-filter__control label > span:first-child {
    color: #31445f;
    font-size: .82rem;
    font-weight: 800;
}

.xhse-context-filter__input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #879ab5;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(19, 48, 88, .06);
}

.xhse-context-filter__input:focus-within {
    border-color: var(--xhse-brand);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, .16);
}

.xhse-context-filter__input input,
.xhse-context-filter__input button {
    min-height: 52px;
    margin: 0;
    border: 0;
    border-radius: 0;
    font: inherit;
}

.xhse-context-filter__input input {
    min-width: 0;
    padding: 10px 14px;
    color: var(--xhse-ink);
    background: transparent;
}

.xhse-context-filter__input input:focus {
    outline: 0;
}

.xhse-context-filter__input button {
    width: 50px;
    padding: 8px 16px;
    color: #174b91;
    background: #e9f2ff;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
}

.xhse-context-filter__global {
    justify-self: start;
    color: #174b91;
    font-size: .84rem;
    font-weight: 800;
    text-underline-offset: 3px;
}

.xhse-context-filter__empty {
    margin: 14px 0 0;
    padding: 18px;
    border: 1px solid #f0c36d;
    border-radius: 12px;
    color: #68430d;
    background: #fff9e8;
    font-weight: 750;
}

.xhse [hidden] {
    display: none !important;
}

.xhse__coverage {
    margin-top: 12px;
    padding: 0 16px;
    border: 1px solid var(--xhse-line);
    border-radius: 12px;
    background: #fff;
}

.xhse__coverage > summary {
    padding: 13px 0;
    color: #40536d;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
}

.xhse__coverage .xhse__summary {
    padding: 0 0 16px;
}

.xhse__brand-token {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 9px;
    background: #e9f1ff;
    color: #174b9b;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.xhse-quick-links {
    margin: 12px 0 18px;
    padding: clamp(15px, 2.4vw, 20px);
    border: 1px solid var(--xhse-line);
    border-radius: 16px;
    background: #fff;
}

.xhse-quick-links > h2 {
    margin: 0 0 12px;
    color: var(--xhse-ink);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.xhse-quick-links__brands {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
}

.xhse-quick-links__brands a {
    display: grid;
    min-width: 0;
    min-height: 82px;
    grid-template-rows: 42px auto;
    gap: 6px;
    place-items: center;
    padding: 9px 7px;
    border: 1px solid #d7e0eb;
    border-radius: 12px;
    background: #fbfcfe;
    color: #183d70;
    text-align: center;
    text-decoration: none !important;
}

.xhse-quick-links__brands a:hover,
.xhse-quick-links__brands a:focus-visible {
    border-color: #7ca4dc;
    background: #f1f6ff;
}

.xhse-quick-links__brands img {
    display: block;
    width: 100%;
    max-width: 112px;
    height: 40px;
    object-fit: contain;
}

.xhse-quick-links__brands a > span {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    background: #e9f1ff;
    font-size: .76rem;
    font-weight: 900;
}

.xhse-quick-links__brands strong {
    overflow: hidden;
    max-width: 100%;
    font-size: .78rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xhse-quick-links__groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 16px;
}

.xhse-quick-links h3 {
    margin: 0 0 8px;
    color: #4d5e73;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.xhse-quick-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xhse-quick-links__list a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #cfdae8;
    border-radius: 9px;
    background: #f8fafc;
    color: #163f7a;
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
}

.xhse-quick-links__list--brands a {
    gap: 8px;
}

.xhse-quick-links__list--brands a > span,
.xhse-nav__links i {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 7px;
    background: #e9f1ff;
    color: #174b9b;
    font-size: .66rem;
    font-style: normal;
    font-weight: 900;
}

.xhse-nav .xhse-nav__links a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
}

.xhse-nav__links a > span {
    grid-column: 2;
}

.xhse-search__message {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid var(--xhse-line);
    border-radius: 14px;
    background: #fff;
}

.xhse-search__message h2,
.xhse-search__message h3,
.xhse-search__message p {
    margin-top: 0;
}

.xhse-search__message p:last-child {
    margin-bottom: 0;
}

.xhse-search__results-head {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.xhse-search__count {
    color: var(--xhse-muted);
    font-size: .86rem;
}

.xhse-search__next {
    margin-top: 24px;
}

.xhse-search__next a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--xhse-brand);
    border-radius: 9px;
    color: var(--xhse-brand-dark);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 700px) {
    .xhse-lookup__form,
    .xhse-quick-links__groups {
        grid-template-columns: 1fr;
    }

    .xhse-lookup__form button {
        width: 100%;
    }

    .xhse-search__results-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.xhse-machine-launcher {
    width: 100%;
    margin: 14px 0 12px;
    padding: clamp(16px, 2.7vw, 22px);
    border: 1px solid #dce6ee;
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 8%, rgba(236, 163, 63, .18), transparent 34%),
        linear-gradient(145deg, #f7fafc 0%, #edf3f6 100%);
    overflow: hidden;
}

.xhse-machine-launcher > header {
    margin-bottom: 13px;
}

.xhse-machine-launcher > header p {
    grid-column: 1;
    margin: 0 0 3px;
    color: #934807;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.xhse-machine-launcher > header h2 {
    margin: 0;
    color: #142c3e;
    font-size: clamp(1.12rem, 2.2vw, 1.4rem);
    letter-spacing: -.025em;
}

.xhse-machine-launcher > header span {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #506575;
    font-size: .9rem;
    line-height: 1.55;
}

.xhse-machine-launcher__rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.xhse-machine-launcher__card {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 18px;
    grid-template-rows: 86px auto;
    gap: 7px 5px;
    align-items: center;
    min-height: 132px;
    padding: 7px 8px 9px;
    border: 1px solid rgba(36, 62, 79, .12);
    border-radius: 15px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 22px rgba(25, 50, 66, .07);
    color: #17364b;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.xhse-machine-launcher__card:hover,
.xhse-machine-launcher__card:focus-visible {
    border-color: rgba(213, 119, 24, .55);
    box-shadow: 0 12px 28px rgba(25, 50, 66, .13);
    color: #17364b;
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .xhse-machine-launcher__card {
        transition: none;
    }

    .xhse-machine-launcher__card:hover,
    .xhse-machine-launcher__card:focus-visible {
        transform: none;
    }
}

.xhse-machine-launcher__card:focus-visible {
    outline: 3px solid rgba(213, 119, 24, .25);
    outline-offset: 2px;
}

.xhse-machine-launcher__art {
    display: grid;
    width: 100%;
    height: 86px;
    grid-column: 1 / -1;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #243440 0%, #101b22 100%);
    overflow: hidden;
}

.xhse-machine-launcher__art img {
    display: block;
    width: 100%;
    max-width: 142px;
    height: 80px;
    object-fit: contain;
}

.xhse-machine-launcher__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.xhse-machine-launcher__copy strong {
    font-size: .79rem;
    line-height: 1.25;
}

.xhse-machine-launcher__copy small {
    margin-top: 5px;
    color: #657987;
    font-size: .76rem;
}

.xhse-machine-launcher__arrow {
    align-self: center;
    justify-self: end;
    color: #d57718;
    font-size: .9rem;
    font-weight: 800;
}

.xhse *,
.xhse *::before,
.xhse *::after,
.xhse-nav *,
.xhse-nav *::before,
.xhse-nav *::after,
.xhse-machine-launcher *,
.xhse-machine-launcher *::before,
.xhse-machine-launcher *::after,
.xhse-quick-links *,
.xhse-quick-links *::before,
.xhse-quick-links *::after,
.xhse-service-guide *,
.xhse-service-guide *::before,
.xhse-service-guide *::after {
    box-sizing: inherit;
}

.xhse-service-guide {
    margin-top: 26px;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid #dde5ee;
    border-radius: 16px;
    background: #f7f9fc;
}

.xhse-service-guide > h2 {
    margin: 0 0 13px;
    color: var(--xhse-ink);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.xhse-service-guide__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.xhse-service-guide__steps > div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 11px;
    border-radius: 12px;
    background: #fff;
}

.xhse-service-guide__steps svg {
    width: 38px;
    height: 38px;
    grid-row: 1 / span 2;
    padding: 7px;
    border-radius: 10px;
    background: #e9f1ff;
    fill: none;
    stroke: #155eef;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.xhse-service-guide__steps strong {
    font-size: .88rem;
}

.xhse-service-guide__steps span {
    color: var(--xhse-muted);
    font-size: .76rem;
    line-height: 1.35;
}

.xhse {
    padding: clamp(24px, 5vw, 64px) 20px 80px;
    background: #f8fafc;
}

.xhse__shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.xhse__breadcrumbs {
    margin-bottom: 10px;
    color: var(--xhse-muted);
    font-size: .84rem;
}

.xhse__breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.xhse__breadcrumbs li:not(:last-child)::after {
    margin-left: 7px;
    content: "/";
    color: #9aa8bb;
}

.xhse__breadcrumbs a,
.xhse__record-card a,
.xhse__evidence-links a,
.xhse__evidence-grid a,
.xhse__error a {
    color: #124ca2;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.xhse__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid #c9daef;
    border-radius: 26px;
    background:
        radial-gradient(circle at 92% 20%, rgba(8, 122, 113, .14), transparent 28%),
        linear-gradient(135deg, #fff 0%, #eff6ff 100%);
    box-shadow: 0 22px 60px rgba(19, 48, 88, .08);
}

.xhse__eyebrow {
    margin: 0 0 8px;
    color: var(--xhse-teal);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.xhse__hero h1,
.xhse__section h2,
.xhse__parameter-card h2,
.xhse__verify-card h2,
.xhse__error h1 {
    margin: 0;
    color: var(--xhse-ink);
    line-height: 1.15;
}

.xhse__hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 5vw, 3.65rem);
    letter-spacing: -.035em;
}

.xhse__lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--xhse-muted);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.55;
}

.xhse__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.xhse__summary > div,
.xhse__primary-length {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(21, 94, 239, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .82);
}

.xhse__summary dt,
.xhse__primary-length span,
.xhse__mini-specs dt,
.xhse__parameter-list dt {
    color: #6b778a;
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: .025em;
}

.xhse__summary dd {
    margin: 5px 0 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.xhse__section {
    margin-top: clamp(42px, 7vw, 72px);
}

.xhse__section-head {
    max-width: 760px;
    margin-bottom: 20px;
}

.xhse__section h2,
.xhse__parameter-card h2,
.xhse__verify-card h2 {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    letter-spacing: -.02em;
}

.xhse__section-head > p:last-child {
    margin: 10px 0 0;
    color: var(--xhse-muted);
    line-height: 1.65;
}

.xhse__entity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.xhse__entity-grid--brands {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.xhse__entity-link--brand {
    min-height: 100px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    text-align: center;
}

.xhse__brand-logo {
    display: grid;
    width: 100%;
    height: 54px;
    place-items: center;
    margin: 0;
}

.xhse__brand-logo img,
.xhse-nav__links img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.xhse__entity-link--brand strong {
    font-size: .85rem;
    line-height: 1.2;
}

.xhse__entity-link {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    padding: 17px 19px;
    border: 1px solid var(--xhse-line);
    border-radius: 13px;
    background: var(--xhse-white);
    color: #12376f;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.xhse__entity-link:hover {
    border-color: #7da4db;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 55, 105, .09);
}

.xhse__entity-link span {
    margin-top: 4px;
    color: var(--xhse-muted);
    font-size: .82rem;
}

.xhse__entity-link--system {
    display: grid;
    min-height: 92px;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    color: #173a65;
}

.xhse__entity-link--system strong {
    min-width: 0;
    font-size: .96rem;
    line-height: 1.28;
}

.xhse__entity-link--system .xhse__system-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin: 0;
    border-radius: 13px;
    background: #edf4ff;
    color: #174f99;
}

.xhse__system-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.xhse__entity-link--system .xhse__entity-arrow {
    margin: 0;
    color: #d26f10;
    font-size: 1.15rem;
    font-weight: 900;
}

.xhse__entity-link--system:hover .xhse__system-icon,
.xhse__entity-link--system:focus-visible .xhse__system-icon {
    background: #fff1df;
    color: #a95208;
}

.xhse__record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.xhse__record-card {
    display: flex;
    min-width: 0;
    min-height: 300px;
    flex-direction: column;
    padding: 21px;
    border: 1px solid var(--xhse-line);
    border-radius: 16px;
    background: var(--xhse-white);
    box-shadow: 0 8px 24px rgba(20, 32, 51, .045);
}

.xhse__record-kicker {
    margin: 0 0 6px;
    color: var(--xhse-teal);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.xhse__record-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.xhse__record-card h3 a {
    text-decoration: none;
}

.xhse__position {
    margin: 9px 0 0;
    color: #536178;
    font-size: .84rem;
    line-height: 1.55;
}

.xhse__position span {
    font-weight: 750;
}

.xhse__source-text {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.xhse__source-text span {
    font-weight: 750;
}

.xhse__mini-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0;
}

.xhse__mini-specs > div {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 9px;
    background: var(--xhse-soft);
}

.xhse__mini-specs dd {
    margin: 3px 0 0;
    font-size: .86rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.xhse__record-link {
    align-self: flex-start;
    margin-top: auto;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.xhse__faq details {
    border-top: 1px solid var(--xhse-line);
    background: var(--xhse-white);
}

.xhse__faq details:last-child {
    border-bottom: 1px solid var(--xhse-line);
}

.xhse__faq summary {
    padding: 20px 48px 20px 2px;
    color: var(--xhse-ink);
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
}

.xhse__faq-answer {
    max-width: 900px;
    padding: 0 0 22px;
    color: #46546a;
    line-height: 1.72;
}

.xhse__faq-answer p {
    margin: 0;
}

.xhse-ai-check {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 18px 28px;
    margin-top: clamp(42px, 7vw, 72px);
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid #d8e3ef;
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbff 0%, #f2f6fa 100%);
}

.xhse-ai-check h2 {
    margin: 4px 0 9px;
    color: #163a63;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    line-height: 1.2;
}

.xhse-ai-check p {
    margin: 0;
    color: var(--xhse-muted);
    line-height: 1.65;
}

.xhse-ai-check__tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    align-content: start;
}

.xhse-ai-check__tools a,
.xhse-ai-check__tools button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border: 1px solid #cbd9e8;
    border-radius: 9px;
    background: #fff;
    color: #174b85;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.xhse-ai-check__tools button {
    grid-column: 1 / -1;
    justify-content: center;
    background: #174b85;
    color: #fff;
}

.xhse-ai-check__tools a:hover,
.xhse-ai-check__tools a:focus-visible {
    border-color: #6e9bc8;
    background: #edf5ff;
}

.xhse-ai-check details {
    grid-column: 1 / -1;
    border-top: 1px solid #d7e0e9;
    padding-top: 14px;
}

.xhse-ai-check summary {
    color: #425d77;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
}

.xhse-ai-check pre {
    max-height: 280px;
    margin: 12px 0 0;
    padding: 14px;
    border-radius: 10px;
    background: #fff;
    color: #334a60;
    font: inherit;
    font-size: .83rem;
    line-height: 1.55;
    overflow: auto;
    white-space: pre-wrap;
}

.xhse__evidence-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
    font-size: .86rem;
    font-weight: 750;
}

.xhse__safety {
    margin-top: 42px;
    padding: 18px 20px;
    border: 1px solid #f3c96d;
    border-radius: 12px;
    background: #fff9e9;
    color: #624615;
    line-height: 1.65;
}

.xhse__hero--record {
    grid-template-columns: minmax(0, 1fr) auto;
}

.xhse__primary-length {
    min-width: 190px;
}

.xhse__primary-length span,
.xhse__primary-length strong {
    display: block;
}

.xhse__primary-length strong {
    margin-top: 5px;
    color: #12376f;
    font-size: clamp(1.45rem, 4vw, 2.25rem);
}

.xhse__record-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr);
    gap: 20px;
    margin-top: 24px;
}

.xhse__parameter-card,
.xhse__verify-card {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--xhse-line);
    border-radius: 18px;
    background: var(--xhse-white);
}

.xhse__parameter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    margin: 22px 0 0;
}

.xhse__parameter-list > div {
    min-width: 0;
    padding: 14px 0;
    border-top: 1px solid var(--xhse-line);
}

.xhse__parameter-list dd {
    margin: 5px 0 0;
    font-size: 1rem;
    font-weight: 720;
    overflow-wrap: anywhere;
}

.xhse__verify-card {
    background: #ecf7f5;
}

.xhse__reference-note {
    margin: 28px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--xhse-line);
    color: var(--xhse-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.xhse__verify-card ol {
    margin: 20px 0 0;
    padding-left: 22px;
    color: #405268;
    line-height: 1.7;
}

.xhse__verify-card li + li {
    margin-top: 9px;
}

.xhse__diagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
    gap: 18px;
}

.xhse__diagram {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--xhse-line);
    border-radius: 16px;
    background: var(--xhse-white);
    box-shadow: 0 12px 30px rgba(20, 32, 51, .07);
}

.xhse__diagram--candidate {
    border-color: #e7b84b;
    background: #fffbeb;
}

.xhse__diagram-badge {
    justify-self: start;
    padding: 4px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: .72rem;
    font-weight: 850;
}

.xhse__diagram--candidate .xhse__diagram-badge {
    background: #fef3c7;
    color: #92400e;
}

.xhse__diagram-candidate-note {
    padding: 9px 11px;
    border-left: 4px solid #d97706;
    border-radius: 6px;
    background: #fff7ed;
    color: #78350f;
    font-weight: 700;
}

.xhse__diagram-canvas {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #e9eef4;
}

.xhse__diagram-canvas img {
    display: block;
    width: 100%;
    height: auto;
}

.xhse__diagram-hotspots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.xhse__diagram-marker {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
}

.xhse__diagram-marker > span {
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid #c81e1e;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 5px rgba(84, 10, 10, .4);
}

.xhse__diagram-marker--current {
    z-index: 3;
    width: 25px;
    height: 25px;
}

.xhse__diagram-marker--current > span {
    border: 4px solid #fff;
    background: #d21f1f;
    box-shadow: 0 0 0 4px rgba(210, 31, 31, .9), 0 3px 12px rgba(84, 10, 10, .55);
}

.xhse__diagram-marker strong {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    max-width: min(180px, 42vw);
    padding: 5px 8px;
    transform: translateX(-50%);
    border-radius: 6px;
    background: #a91414;
    color: #fff;
    font-size: .72rem;
    line-height: 1.2;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(84, 10, 10, .28);
}

.xhse__diagram figcaption {
    display: grid;
    gap: 5px;
    padding: 18px 20px 20px;
    color: var(--xhse-muted);
    font-size: .87rem;
    line-height: 1.5;
}

.xhse__diagram figcaption > strong {
    color: var(--xhse-ink);
    font-size: 1rem;
}

.xhse__diagram-current {
    color: #a91414;
    font-weight: 800;
}

.xhse__diagram figcaption a {
    justify-self: start;
    margin-top: 5px;
    color: #124ca2;
    font-weight: 750;
    text-underline-offset: 3px;
}

.xhse__evidence-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.xhse__evidence-grid article {
    padding: 20px;
    border: 1px solid var(--xhse-line);
    border-radius: 13px;
    background: var(--xhse-white);
}

.xhse__evidence-grid h3 {
    margin: 0;
    font-size: 1rem;
}

.xhse__evidence-grid p,
.xhse__evidence-grid span,
.xhse__evidence-grid a {
    display: block;
    margin: 8px 0 0;
    color: var(--xhse-muted);
    font-size: .86rem;
}

.xhse__error {
    max-width: 720px;
    padding: clamp(28px, 6vw, 60px);
    border: 1px solid var(--xhse-line);
    border-radius: 20px;
    background: var(--xhse-white);
}

.xhse__error p {
    color: var(--xhse-muted);
    line-height: 1.65;
}

.xhse-nav {
    width: 100%;
    margin-top: 32px;
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--xhse-line);
    border-radius: 18px;
    background: #f8fafc;
}

.xhse-nav > div:first-child p {
    margin: 0 0 4px;
    color: var(--xhse-teal);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.xhse-nav h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
}

.xhse-nav__links,
.xhse-nav__records {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.xhse-nav__links a,
.xhse-nav__records a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 12px 14px;
    border: 1px solid var(--xhse-line);
    border-radius: 10px;
    background: var(--xhse-white);
    color: #12376f;
    text-decoration: none;
}

.xhse-nav__links span,
.xhse-nav__records span {
    margin-top: 3px;
    color: var(--xhse-muted);
    font-size: .78rem;
}

@media (max-width: 900px) {
    .xhse-lookup,
    .xhse-context-filter {
        grid-template-columns: 1fr;
    }

    .xhse-lookup__form {
        margin-top: 14px;
    }

    .xhse-lookup__hint {
        grid-column: 1;
    }

    .xhse__hero,
    .xhse__hero--record,
    .xhse__record-layout {
        grid-template-columns: 1fr;
    }

    .xhse__entity-grid,
    .xhse__record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xhse__entity-grid--brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .xhse__diagram-grid {
        grid-template-columns: 1fr;
    }

    .xhse-nav__links,
    .xhse-nav__records {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .xhse-machine-launcher__rail,
    .xhse-quick-links__brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .xhse-service-guide__steps {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 620px) {
    .xhse {
        padding-inline: 14px;
    }

    .xhse__hero {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .xhse__summary,
    .xhse__entity-grid,
    .xhse__record-grid,
    .xhse__diagram-grid,
    .xhse__parameter-list,
    .xhse__evidence-grid,
    .xhse-nav__links,
    .xhse-nav__records {
        grid-template-columns: 1fr;
    }

    .xhse__entity-grid--brands {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .xhse-context-filter {
        padding: 15px;
    }

    .xhse-context-filter__input {
        grid-template-columns: 1fr;
    }

    .xhse-context-filter__input button {
        width: 100%;
        min-height: 44px;
    }

    .xhse__entity-link--brand {
        min-height: 88px;
        padding: 8px 5px;
    }

    .xhse__entity-grid--systems {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xhse__entity-link--system {
        min-height: 86px;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
    }

    .xhse__entity-link--system .xhse__system-icon {
        width: 42px;
        height: 42px;
    }

    .xhse__entity-link--system .xhse__entity-arrow {
        display: none;
    }

    .xhse-ai-check {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .xhse-ai-check__tools {
        grid-template-columns: 1fr;
    }

    .xhse-ai-check__tools button,
    .xhse-ai-check details {
        grid-column: 1;
    }

    .xhse__brand-logo {
        height: 45px;
    }

    .xhse__record-card {
        min-height: 0;
    }

    .xhse-machine-launcher {
        margin-top: 14px;
        padding-inline: 14px;
    }

    .xhse-machine-launcher__rail,
    .xhse-quick-links__brands {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .xhse-machine-launcher__card {
        min-width: 0;
    }

    .xhse-machine-launcher__art {
        height: 72px;
    }

    .xhse-machine-launcher__art img {
        height: 68px;
    }

    .xhse-machine-launcher__card {
        min-height: 118px;
        grid-template-rows: 72px auto;
    }

    .xhse-machine-launcher__arrow {
        display: none;
    }

    .xhse-machine-launcher__copy {
        grid-column: 1 / -1;
        text-align: center;
    }

    .xhse-quick-links__brands a {
        min-height: 74px;
    }

    .xhse-service-guide__steps {
        grid-template-columns: 1fr;
    }

    .xhse__diagram-marker strong {
        display: none;
    }
}
