.ix {
    grid-column: text;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 0.75em;
}

.ix-chart {
    position: relative;
}

.ix-chart svg {
    display: block;
    width: 100%;
    overflow: visible;
    touch-action: pan-y;
}

.ix-chart text {
    fill: #444;
    font-size: 11.5px;
}

.ix-chart text.small {
    font-size: 9.5px;
}

.ix-chart text.strong {
    font-weight: 700;
}

.ix-tip,
.ix-card {
    position: absolute;
    z-index: 1100;
    box-sizing: border-box;
    max-width: min(330px, calc(100vw - 24px));
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 12.5px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ix-tip {
    max-width: min(330px, 100%);
    pointer-events: none;
}

.ix-tip small {
    display: block;
    color: #666;
    font-size: inherit;
}

.ix-card p {
    margin: 5px 0 0;
}

.ix-card p span,
.ix-card small {
    color: #777;
}

.ix-card p.used {
    font-weight: 600;
}

.ix-controls,
.ix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 8px;
}

.ix-controls {
    gap: 4px;
}

.ix button {
    font: inherit;
    color: #333;
    cursor: pointer;
}

.ix-controls button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.ix-controls button[aria-pressed="true"] {
    border-color: #333;
    background: #f3f3f1;
}

.ix-legend span,
.ix-legend button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
}

.ix-legend i {
    width: 10px;
    height: 10px;
    background: var(--c);
}

.ix-legend i.dot {
    border-radius: 50%;
}

.ix-legend i.line {
    width: 16px;
    height: 3px;
}

.ix-legend i.up {
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.ix-legend i.down {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.ix-detail {
    min-height: 3em;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    color: #333;
    overflow-wrap: anywhere;
}

.ix-detail p,
.ix-audit p {
    margin: 0 0 6px;
    font-size: inherit;
    line-height: inherit;
}

.ix .muted,
.ix .ix-note {
    color: #666;
}

.ix .ix-note {
    margin: 6px 0;
    font-size: 12px;
}

.ix-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.ix-slider input {
    flex: 1;
    min-width: 0;
}

.stacked-panel.ix-panel {
    overflow: visible;
}

d-article .ix-neuron.inline {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px dashed #999;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
}

.ix-audit {
    margin: 0 0 2em;
    padding: 14px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.ix-audit .ix-title {
    font-weight: 700;
}

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

.ix-arms small {
    display: block;
    color: #555;
    font-size: 12px;
}

.ix .grade {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin: 3px 3px 3px 0;
    border-radius: 50%;
    background: #ccc;
}

.ix .grade.correct {
    background: #1b9e77;
}

.ix .grade.partial {
    background: #e6ab02;
}

.ix .grade.false_positive {
    background: #d95f02;
}

.ix-tokens {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .ix-arms {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ix-groups {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    margin: 8px 0;
}

.ix-groups > span:first-child,
.ix-groups > span:nth-child(odd) {
    max-width: 260px;
}

.ix-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.ix-dots i {
    box-sizing: border-box;
    width: 9px;
    height: 9px;
    border: 1.5px solid var(--c);
    border-radius: 50%;
}

.ix-dots i.out {
    background: var(--c);
}

@media (max-width: 600px) {
    .ix-groups > span:nth-child(odd) {
        max-width: 135px;
    }

    .ix-groups {
        grid-template-columns: 135px minmax(0, 1fr);
    }
}

.ix-chart svg:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.ix-feature p {
    margin: 0 0 6px;
    font-size: inherit;
    line-height: 1.5;
}

.ix-side {
    margin: 10px 0 14px;
}

.ix-token {
    display: inline-block;
    margin-right: 4px;
    padding: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.ix-passage {
    display: grid;
    grid-template-columns: 3.4em minmax(0, 1fr);
    gap: 8px;
    padding: 5px 0;
    border-top: 1px solid #eee;
    line-height: 1.65;
}

.ix-act {
    color: #777;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ix-text {
    overflow-wrap: anywhere;
}

.ix-text > span {
    white-space: pre-wrap;
}

.ix-text > .peak {
    text-decoration: underline;
}

.ix-legend i.dash {
    width: 16px;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px);
}

@media print {
    figure .ix {
        display: none;
    }

    img.ix-static {
        display: block !important;
    }
}
