.xhc {
    --xhc-ink: #14213d;
    --xhc-muted: #5b6678;
    --xhc-line: #d8dee8;
    --xhc-soft: #f4f7fb;
    --xhc-brand: #1557d5;
    --xhc-brand-dark: #0d3fa7;
    --xhc-accent: #f4a000;
    --xhc-teal: #0f766e;
    --xhc-white: #ffffff;
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    color: var(--xhc-ink);
    font: inherit;
    font-size: 16px;
}

.xhc *,
.xhc *::before,
.xhc *::after {
    box-sizing: inherit;
}

.xhc__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.xhc__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 22px 26px;
    overflow: hidden;
    border: 1px solid #1c3156;
    border-radius: 14px;
    background:
        radial-gradient(circle at 72% -40%, rgba(30, 99, 220, 0.44), transparent 48%),
        linear-gradient(135deg, #0b1830 0%, #10284c 100%);
    color: #ffffff;
}

.xhc__intro-copy {
    display: flex;
    min-width: 0;
    gap: 16px;
    align-items: center;
}

.xhc__hose-mark {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
}

.xhc__hose-mark circle {
    fill: rgba(255, 255, 255, 0.06);
    stroke: rgba(255, 255, 255, 0.23);
    stroke-width: 1.5;
}

.xhc__hose-mark path {
    fill: none;
    stroke: #ffc044;
    stroke-width: 5;
    stroke-linecap: round;
}

.xhc__eyebrow {
    margin: 0 0 5px;
    color: #f4a000;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.xhc__intro .xhc__eyebrow {
    color: #ffc44d;
}

.xhc__title,
.xhc__drawer-head h3 {
    margin: 0;
    color: var(--xhc-ink);
    line-height: 1.2;
}

.xhc__title {
    color: #ffffff;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.xhc__lead {
    max-width: 52rem;
    margin: 7px 0 0;
    color: #c7d3e7;
    font-size: 0.93rem;
    line-height: 1.6;
}

.xhc__workflow {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.xhc__workflow li {
    display: flex;
    min-height: 42px;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #e6edf8;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.xhc__workflow span {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #ffc044;
    color: #14213d;
    font-size: 0.75rem;
    font-weight: 900;
}

.xhc__form {
    margin-top: 14px;
    padding: 18px 20px 20px;
    border: 1px solid var(--xhc-line);
    border-radius: 12px;
    background: var(--xhc-white);
    box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

.xhc__form-head {
    display: flex;
    gap: 14px;
    align-items: baseline;
    margin-bottom: 13px;
}

.xhc__form-head h3,
.xhc__results-head h3 {
    margin: 0;
    color: var(--xhc-ink);
    font-size: 1.08rem;
    line-height: 1.35;
}

.xhc__form-head p {
    margin: 0;
    color: var(--xhc-muted);
    font-size: 0.82rem;
}

.xhc__filter-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.xhc__filter-group legend {
    float: left;
    width: 100%;
    margin: 0 0 7px;
    padding: 0;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 800;
}

.xhc__filter-group legend + * {
    clear: both;
}

.xhc__filter-group--keywords {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #e4e8ef;
}

.xhc__cascade,
.xhc__keywords {
    display: grid;
    gap: 12px;
}

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

.xhc__keywords {
    grid-template-columns: minmax(190px, 0.8fr) minmax(280px, 1.5fr) auto;
    align-items: end;
}

.xhc__field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.xhc__field > span {
    color: #344054;
    font-size: 0.84rem;
    font-weight: 760;
}

.xhc__field select,
.xhc__field input {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #aeb9c9;
    border-radius: 8px;
    background: var(--xhc-white);
    color: var(--xhc-ink);
    font: inherit;
    font-size: 0.94rem;
    line-height: 1.3;
}

.xhc__field input::placeholder {
    color: #8490a3;
}

.xhc__field select:disabled {
    cursor: not-allowed;
    background: #edf1f5;
    color: #737d8e;
    opacity: 1;
}

.xhc__field select:focus-visible,
.xhc__field input:focus-visible,
.xhc__button:focus-visible,
.xhc__filter-chip:focus-visible,
.xhc__clear-filters:focus-visible,
.xhc__part-link:focus-visible,
.xhc__close:focus-visible {
    outline: 3px solid rgba(21, 87, 213, 0.3);
    outline-offset: 2px;
    border-color: var(--xhc-brand);
}

.xhc__actions {
    display: flex;
    gap: 8px;
}

.xhc__button,
.xhc__close {
    min-height: 46px;
    border-radius: 8px;
    font: inherit;
    font-weight: 780;
    cursor: pointer;
}

.xhc__button {
    padding: 9px 18px;
    border: 1px solid transparent;
}

.xhc__button--primary {
    background: var(--xhc-brand);
    color: var(--xhc-white);
    box-shadow: 0 4px 10px rgba(21, 87, 213, 0.2);
}

.xhc__button--primary:hover {
    background: var(--xhc-brand-dark);
}

.xhc__button--quiet {
    border-color: #aeb9c9;
    background: var(--xhc-white);
    color: #27364e;
}

.xhc__button--quiet:hover {
    border-color: #7388a7;
    background: #f4f7fb;
}

.xhc__button:disabled {
    cursor: progress;
    opacity: 0.58;
}

.xhc__filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #cbd9ee;
    border-radius: 10px;
    background: #f1f6ff;
}

.xhc__filter-bar[hidden] {
    display: none;
}

.xhc__filter-label {
    flex: 0 0 auto;
    color: #344054;
    font-size: 0.8rem;
    font-weight: 800;
}

.xhc__filter-chips {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 7px;
}

.xhc__filter-chip,
.xhc__clear-filters {
    min-height: 36px;
    margin: 0;
    border-radius: 999px;
    background: #ffffff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
}

.xhc__filter-chip {
    max-width: 100%;
    padding: 6px 11px;
    overflow: hidden;
    border: 1px solid #8facd7;
    color: #17447f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xhc__filter-chip:hover {
    border-color: var(--xhc-brand);
    background: #e7f0ff;
}

.xhc__clear-filters {
    flex: 0 0 auto;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: #3f5f8d;
}

.xhc__clear-filters:hover {
    color: #0d3fa7;
    text-decoration: underline;
}

.xhc__results-section {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--xhc-line);
    border-radius: 12px;
    background: var(--xhc-white);
    box-shadow: 0 8px 24px rgba(20, 33, 61, 0.05);
}

.xhc__results-head {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid var(--xhc-line);
}

.xhc__status {
    min-height: 20px;
    margin: 3px 0 0;
    color: var(--xhc-muted);
    font-size: 0.82rem;
}

.xhc__results-help {
    margin: 0;
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: right;
}

.xhc__results[aria-busy="true"] {
    cursor: progress;
}

.xhc__table-shell {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.xhc__record-table {
    width: 100%;
    min-width: 1120px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.xhc__record-table th,
.xhc__record-table td {
    border: 0;
    border-bottom: 1px solid #e2e6ed;
    text-align: left;
    vertical-align: middle;
}

.xhc__record-table th {
    padding: 10px 12px;
    background: #f0f3f7;
    color: #4a5669;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.xhc__record-table td {
    padding: 11px 12px;
    background: #ffffff;
    color: #263349;
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.xhc__record-table th:nth-child(1),
.xhc__record-table td:nth-child(1) { width: 13%; }
.xhc__record-table th:nth-child(2),
.xhc__record-table td:nth-child(2) { width: 24%; }
.xhc__record-table th:nth-child(3),
.xhc__record-table td:nth-child(3) { width: 7%; }
.xhc__record-table th:nth-child(4),
.xhc__record-table td:nth-child(4) { width: 9%; }
.xhc__record-table th:nth-child(5),
.xhc__record-table td:nth-child(5) { width: 14%; }
.xhc__record-table th:nth-child(6),
.xhc__record-table td:nth-child(6),
.xhc__record-table th:nth-child(7),
.xhc__record-table td:nth-child(7) { width: 16.5%; }

.xhc__record-row {
    cursor: pointer;
}

.xhc__record-row:hover td,
.xhc__record-row:focus-within td {
    background: #f4f8ff;
}

.xhc__record-row.is-selected td {
    background: #eaf2ff;
}

.xhc__record-row:last-child td {
    border-bottom: 0;
}

.xhc__part-link {
    min-height: 36px;
    max-width: 100%;
    margin: 0;
    padding: 4px 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #0d4db4;
    font: inherit;
    font-weight: 850;
    line-height: 1.35;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: #a9c3eb;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.xhc__part-link:hover {
    color: #092f72;
    text-decoration-color: currentColor;
}

.xhc__part-link:disabled {
    color: #6b7280;
    cursor: not-allowed;
}

.xhc__record-position .xhc__cell-value {
    color: #24344d;
    font-weight: 650;
}

.xhc__record-context {
    display: block;
    margin-top: 3px;
    color: #748095;
    font-size: 0.72rem;
    line-height: 1.35;
}

.xhc__record-pipe,
.xhc__record-length {
    font-variant-numeric: tabular-nums;
}

.xhc__record-pipe .xhc__cell-value {
    display: inline-flex;
    min-width: 30px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e8eef8;
    color: #2d4568;
    font-weight: 850;
}

.xhc__record-length .xhc__cell-value {
    color: #0b5c55;
    font-weight: 900;
}

.xhc__record-spec .xhc__cell-value,
.xhc__record-fitting .xhc__cell-value {
    font-weight: 680;
}

.xhc__results-loading {
    display: grid;
    gap: 1px;
    background: #e2e6ed;
}

.xhc__results-loading span {
    display: block;
    height: 55px;
    background: linear-gradient(90deg, #f7f8fa 25%, #eef1f5 45%, #f7f8fa 65%);
    background-size: 220% 100%;
    animation: xhc-loading 1.2s linear infinite;
}

.xhc__empty {
    padding: 34px 20px;
    text-align: center;
}

.xhc__empty h4 {
    margin: 0;
    color: var(--xhc-ink);
    font-size: 1.05rem;
}

.xhc__empty p {
    margin: 7px 0 16px;
    color: var(--xhc-muted);
    font-size: 0.88rem;
}

.xhc__empty--error {
    background: #fff9f7;
}

.xhc__more-wrap {
    padding: 14px;
    border-top: 1px solid var(--xhc-line);
    text-align: center;
}

.xhc__more-wrap[hidden] {
    display: none;
}

@keyframes xhc-loading {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}

.xhc__drawer {
    inset: 0;
    width: min(1480px, 96vw);
    max-width: none;
    height: min(94dvh, 980px);
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    background: var(--xhc-white);
    color: var(--xhc-ink);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.xhc__drawer[open] {
    animation: xhc-slide-in 180ms ease-out;
}

.xhc__drawer::backdrop {
    background: rgba(15, 23, 42, 0.52);
}

.xhc__drawer-panel {
    height: 100%;
    min-height: 100%;
    padding: clamp(18px, 2.8vw, 34px);
    overflow: auto;
}

.xhc__drawer-head {
    position: sticky;
    z-index: 8;
    top: calc(clamp(18px, 2.8vw, 34px) * -1);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    margin: calc(clamp(18px, 2.8vw, 34px) * -1) calc(clamp(18px, 2.8vw, 34px) * -1) 22px;
    padding: clamp(18px, 2.8vw, 34px);
    border-bottom: 1px solid var(--xhc-line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

.xhc__drawer-head h3 {
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    overflow-wrap: anywhere;
}

.xhc__dialog-path {
    margin: 7px 0 0;
    color: var(--xhc-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.xhc__close {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 5px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #aab7ca;
    background: var(--xhc-white);
    color: #27364e;
    font-size: 0.84rem;
    line-height: 1;
}

.xhc__close [aria-hidden="true"] {
    font-size: 1.35rem;
    font-weight: 500;
}

.xhc__detail-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
    grid-template-areas:
        "diagram detail"
        "assembly detail";
    gap: 22px;
    align-items: start;
}

.xhc__diagram-host {
    grid-area: diagram;
    min-width: 0;
    margin: 0;
}

.xhc__diagram-list {
    display: grid;
    gap: 20px;
}

.xhc__diagram-figure,
.xhc__diagram-fallback {
    margin: 0;
    padding: clamp(13px, 2vw, 20px);
    border: 1px solid var(--xhc-line);
    border-radius: 15px;
    background: #f8fafc;
}

.xhc__diagram-heading {
    display: block;
    margin: 0 0 12px;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.xhc__diagram-viewer {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
}

.xhc__diagram-image,
.xhc__diagram-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.xhc__diagram-image {
    object-fit: contain;
    z-index: 1;
}

.xhc__diagram-overlay {
    z-index: 2;
    pointer-events: none;
}

.xhc__overlay-polyline,
.xhc__overlay-rect,
.xhc__overlay-circle {
    fill: none;
    stroke: #e11d48;
    stroke-width: 5;
    vector-effect: non-scaling-stroke;
}

.xhc__overlay-polyline {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.xhc__overlay-circle,
.xhc__overlay-rect {
    fill: rgba(225, 29, 72, 0.08);
}

.xhc__overlay-label {
    fill: #be123c;
    stroke: #ffffff;
    stroke-width: 4px;
    paint-order: stroke fill;
    font-weight: 900;
    pointer-events: none;
}

.xhc__hotspot-layer {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
}

.xhc__hotspot-marker,
.xhc__hotspot-chip {
    display: inline-grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font: inherit;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.34);
    cursor: pointer;
}

.xhc__hotspot-marker {
    position: absolute;
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.xhc__hotspot-marker.is-current,
.xhc__hotspot-chip.is-current {
    background: #e11d48;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.2), 0 2px 8px rgba(15, 23, 42, 0.32);
}

.xhc__hotspot-marker:disabled,
.xhc__hotspot-chip:disabled {
    cursor: default;
    opacity: 1;
}

.xhc__hotspot-marker:focus-visible,
.xhc__hotspot-chip:focus-visible {
    outline: 3px solid rgba(21, 94, 239, 0.42);
    outline-offset: 3px;
}

.xhc__hotspot-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 13px;
}

.xhc__hotspot-caption {
    margin-right: 2px;
    color: #344054;
    font-size: 0.82rem;
    font-weight: 800;
}

.xhc__hotspot-chip {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 10px;
    border-width: 1px;
    box-shadow: none;
}

.xhc__hotspot-help,
.xhc__hotspot-empty {
    margin: 9px 0 0;
    color: var(--xhc-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.xhc__diagram-evidence,
.xhc__diagram-empty,
.xhc__diagram-image-error,
.xhc__diagram-document-closed {
    margin: 11px 0 0;
    color: var(--xhc-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.xhc__diagram-pdf {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-top: 10px;
    padding: 7px 12px;
    border: 1px solid #94a8c5;
    border-radius: 8px;
    color: #12376f;
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.xhc__diagram-pdf:hover {
    border-color: #7590b4;
    background: #eef4fb;
}

.xhc__diagram-pdf:focus-visible {
    outline: 3px solid rgba(21, 94, 239, 0.32);
    outline-offset: 2px;
}

.xhc__diagram-viewer--failed {
    display: grid;
    place-items: center;
    min-height: 180px;
    aspect-ratio: auto !important;
    padding: 20px;
}

.xhc__diagram-image-error {
    margin: 0;
    text-align: center;
}

.xhc__fallback-art {
    display: block;
    width: 100%;
    height: auto;
    color: #5b667a;
}

.xhc__fallback-halo,
.xhc__fallback-line {
    fill: none;
    stroke-linecap: round;
}

.xhc__fallback-halo {
    stroke: #ffffff;
    stroke-width: 34;
}

.xhc__fallback-line {
    stroke: #94a3b8;
    stroke-width: 20;
}

.xhc__detail {
    grid-area: detail;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--xhc-line);
    border-radius: 15px;
    background: var(--xhc-white);
}

.xhc__detail-summary {
    padding: 18px 20px;
    background: linear-gradient(135deg, #12376f 0%, #155eef 100%);
    color: #ffffff;
}

.xhc__detail-summary-label,
.xhc__detail-summary-meta {
    margin: 0;
    opacity: 0.78;
    font-size: 0.8rem;
}

.xhc__detail-summary-title {
    margin: 4px 0;
    color: #ffffff;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.3;
}

.xhc__detail-group + .xhc__detail-group {
    border-top: 1px solid var(--xhc-line);
}

.xhc__detail-group-title {
    margin: 0;
    padding: 10px 14px;
    background: #eff5ff;
    color: #12376f;
    font-size: 0.9rem;
    font-weight: 850;
}

.xhc__detail-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0;
    background: var(--xhc-line);
}

.xhc__detail-list > div {
    display: grid;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 13px 14px;
    background: var(--xhc-white);
}

.xhc__detail-list dt {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 750;
}

.xhc__detail-list dd {
    margin: 0;
    color: var(--xhc-ink);
    overflow-wrap: anywhere;
    text-align: right;
}

.xhc__detail-updated {
    margin: 0;
    padding: 12px 14px;
    border-top: 1px solid var(--xhc-line);
    color: var(--xhc-muted);
    font-size: 0.76rem;
    text-align: right;
}

.xhc__assembly-host {
    grid-area: assembly;
    min-width: 0;
}

.xhc__assembly-panel {
    padding: clamp(13px, 2vw, 20px);
    border: 1px solid var(--xhc-line);
    border-radius: 15px;
    background: #f8fafc;
}

.xhc__assembly-title {
    margin: 0;
    color: var(--xhc-ink);
    font-size: 1rem;
    font-weight: 850;
}

.xhc__assembly-kicker,
.xhc__assembly-empty {
    margin: 7px 0 13px;
    color: var(--xhc-muted);
    font-size: 0.79rem;
    line-height: 1.55;
}

.xhc__assembly-viewer {
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
}

.xhc__assembly-art {
    display: block;
    width: 100%;
    height: auto;
}

.xhc__assembly-hose-halo,
.xhc__assembly-hose {
    fill: none;
    stroke-linecap: round;
}

.xhc__assembly-hose-halo {
    stroke: #d8dee8;
    stroke-width: 34;
}

.xhc__assembly-hose {
    stroke: #172033;
    stroke-width: 24;
    stroke-dasharray: 5 3;
}

.xhc__assembly-fitting {
    fill: #94a3b8;
    stroke: #475569;
    stroke-width: 3;
}

.xhc__assembly-fitting-line,
.xhc__assembly-measure {
    fill: none;
    stroke: #475569;
    stroke-width: 3;
}

.xhc__assembly-measure {
    stroke-width: 2;
}

.xhc__assembly-label,
.xhc__assembly-length {
    fill: #344054;
    font-size: 17px;
    font-weight: 750;
}

.xhc__assembly-length {
    font-size: 16px;
}

.xhc__assembly-caption {
    margin: 10px 0 0;
    color: var(--xhc-muted);
    font-size: 0.79rem;
    text-align: center;
}

.xhc__notice {
    margin: 20px 0 0;
    padding: 14px 16px;
    border-left: 4px solid var(--xhc-teal);
    background: #effcf8;
    color: #27433f;
    font-size: 0.86rem;
    line-height: 1.65;
}

.xhc__detail-loading,
.xhc__detail-error {
    color: var(--xhc-muted);
}

@keyframes xhc-slide-in {
    from { transform: translateX(24px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 920px) {
    .xhc__intro {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .xhc__workflow {
        flex-wrap: wrap;
    }

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

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

    .xhc__actions {
        grid-column: 1 / -1;
    }

    .xhc__detail-workspace {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "diagram"
            "detail"
            "assembly";
    }
}

@media (max-width: 720px) {
    .xhc__results-section {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .xhc__results-head {
        align-items: flex-start;
        padding: 14px 2px 9px;
        border-bottom: 0;
    }

    .xhc__results-help {
        max-width: 13rem;
    }

    .xhc__table-shell {
        overflow: visible;
    }

    .xhc__record-table {
        display: block;
        min-width: 0;
        background: transparent;
    }

    .xhc__record-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .xhc__record-table tbody {
        display: grid;
        gap: 11px;
    }

    .xhc__record-table .xhc__record-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid #cfd7e3;
        border-radius: 11px;
        background: #ffffff;
        box-shadow: 0 5px 16px rgba(20, 33, 61, 0.06);
    }

    .xhc__record-table td,
    .xhc__record-table td:nth-child(n) {
        display: block;
        width: auto;
        min-width: 0;
        padding: 9px 12px;
        border: 0;
        background: #ffffff;
        font-size: 0.86rem;
    }

    .xhc__record-table td::before {
        display: block;
        margin-bottom: 2px;
        color: #6b7484;
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 800;
    }

    .xhc__record-table .xhc__record-part {
        grid-column: 1 / -1;
        padding: 11px 13px 9px;
        border-bottom: 1px solid #dce4ef;
        background: #eef4ff;
    }

    .xhc__record-table .xhc__record-part::before {
        color: #56719b;
    }

    .xhc__part-link {
        min-height: 42px;
        padding: 5px 0;
        color: #0b49ac;
        font-size: 1.06rem;
    }

    .xhc__record-table .xhc__record-position {
        grid-column: 1 / -1;
        padding-top: 11px;
        padding-bottom: 11px;
        border-bottom: 1px solid #edf0f4;
    }

    .xhc__record-table .xhc__record-spec {
        grid-column: 1 / -1;
        border-top: 1px solid #edf0f4;
    }

    .xhc__record-table .xhc__record-fitting {
        border-top: 1px solid #edf0f4;
        background: #fafbfc;
    }

    .xhc__record-row:hover td,
    .xhc__record-row:focus-within td {
        background: #f5f8ff;
    }

    .xhc__record-row:hover .xhc__record-part,
    .xhc__record-row:focus-within .xhc__record-part {
        background: #e8f0ff;
    }

    .xhc__more-wrap {
        margin-top: 10px;
        border: 1px solid var(--xhc-line);
        border-radius: 10px;
        background: #ffffff;
    }
}

@media (max-width: 640px) {
    .xhc__intro {
        padding: 18px;
        border-radius: 12px;
    }

    .xhc__intro-copy {
        align-items: flex-start;
    }

    .xhc__hose-mark {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

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

    .xhc__workflow li {
        min-height: 66px;
        flex-direction: column;
        justify-content: center;
        padding: 6px;
        font-size: 0.72rem;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
    }

    .xhc__form {
        padding: 16px;
    }

    .xhc__form-head {
        display: block;
    }

    .xhc__form-head p {
        margin-top: 3px;
    }

    .xhc__cascade,
    .xhc__keywords {
        grid-template-columns: 1fr;
    }

    .xhc__actions,
    .xhc__button {
        width: 100%;
    }

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

    .xhc__field select,
    .xhc__field input,
    .xhc__button {
        min-height: 48px;
    }

    .xhc__filter-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .xhc__filter-label {
        width: 100%;
    }

    .xhc__filter-chips {
        flex-wrap: nowrap;
        padding-bottom: 3px;
        overflow-x: auto;
    }

    .xhc__filter-chip {
        flex: 0 0 auto;
        min-height: 42px;
    }

    .xhc__results-head {
        display: block;
    }

    .xhc__results-help {
        max-width: none;
        margin-top: 5px;
        text-align: left;
    }

    .xhc__drawer {
        inset: auto 0 0;
        width: 100%;
        height: 96dvh;
        margin: auto 0 0;
        border-radius: 20px 20px 0 0;
    }

    .xhc__drawer-panel {
        padding: 16px;
    }

    .xhc__drawer-head {
        top: -16px;
        margin: -16px -16px 16px;
        padding: 16px;
    }

    .xhc__close {
        min-width: 46px;
        min-height: 46px;
        padding: 0 10px;
    }

    .xhc__close span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .xhc__detail-list > div {
        grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
    }

    .xhc__hotspot-marker {
        min-width: 36px;
        height: 36px;
    }

    .xhc__drawer[open] {
        animation-name: xhc-sheet-in;
    }
}

@keyframes xhc-sheet-in {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .xhc__drawer[open],
    .xhc__results-loading span {
        animation: none;
    }
}
