/* =================================================================
   tools/stl-adapters.css
   Auto-extracted from math.css (2026-05-11).
   Loaded via config/js-manifest.php → templates/partials/head-styles.php.
   ================================================================= */

/* ═══════════════════════════════════════════════════════════════════════════
 * STL Adapters — redesign (stack / queue / priority_queue)
 * Amber/orange palette for distinction (seq=violet, asc=indigo, unord=cyan).
 * ═══════════════════════════════════════════════════════════════════════════ */

.math-ds-adapt-panel {
    --adapt-grad-a: #f59e0b;
    --adapt-grad-b: #d97706;
    --adapt-grad-found-a: #10b981;
    --adapt-grad-found-b: #059669;
    --adapt-grad-targeting-a: #f43f5e;
    --adapt-grad-targeting-b: #be123c;
    --adapt-grad-sift-a: #a855f7;
    --adapt-grad-sift-b: #7e22ce;
    --adapt-grad-leaving-a: #94a3b8;
    --adapt-grad-leaving-b: #64748b;
    --adapt-tween: 0.55s;
    --adapt-cell-w: 64px;
    --adapt-cell-h: 44px;
    --adapt-node-size: 44px;
    --adapt-ease: cubic-bezier(0.34, 1.4, 0.64, 1);
}
/* --adapt-tween is set inline by JS (MathDsCore.applySpeed), baseline 0.55s @ ×1.0. */

/* Type segment two-line */
.math-ds-adapt-type-segment .math-mode-segment-btn {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px;
    line-height: 1.25;
    min-height: 52px;
}
.math-ds-adapt-type-segment .adapt-seg-title {
    font-weight: 700;
    font-family: ui-monospace, monospace;
    font-size: 13px;
}
.math-ds-adapt-type-segment .adapt-seg-sub {
    font-size: 10.5px;
    color: var(--math-text-muted);
    font-weight: 500;
    margin-top: 2px;
}
.math-ds-adapt-type-segment .math-mode-segment-btn.active .adapt-seg-sub { color: rgba(255,255,255,0.85); }

/* Info-card per-type */
.math-ds-adapt-info-wrap {
    margin: 8px 0 4px;
    position: relative;
}
.math-ds-adapt-info {
    display: none;
    padding: 14px 16px;
    border-radius: var(--math-radius-md);
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(217,119,6,0.04));
    border: 1px solid rgba(245,158,11,0.20);
}
.math-ds-adapt-info.active { display: block; }
.adapt-info-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.adapt-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    color: #fff;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(217,119,6,0.30);
}
.adapt-info-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--math-text);
    margin-bottom: 2px;
}
.adapt-info-sub {
    font-size: 12.5px;
    color: var(--math-text-muted);
    line-height: 1.5;
}
.adapt-info-sub code {
    background: rgba(245,158,11,0.10);
    color: #b45309;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11.5px;
}
.adapt-info-body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}
.adapt-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--math-text);
}
.adapt-info-list li { padding-left: 0; }
.adapt-info-list strong { color: #b45309; }
.adapt-info-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
.adapt-info-legend {
    font-size: 10.5px;
    color: var(--math-text-muted);
    font-style: italic;
}

/* Mini stack viz (info-card) */
.adapt-mini-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
    padding: 4px 24px 0 0;
}
.adapt-mini-stack-top-tag {
    position: absolute;
    right: -2px;
    top: 4px;
    font-size: 10px;
    color: #b45309;
    font-weight: 700;
    background: rgba(245,158,11,0.15);
    padding: 2px 6px;
    border-radius: 3px;
}
.adapt-mini-stack-item {
    width: 48px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
}
.adapt-mini-stack-floor {
    width: 60px;
    height: 4px;
    background: repeating-linear-gradient(45deg, var(--math-border) 0 4px, transparent 4px 8px);
    border-radius: 2px;
}

/* Mini queue viz (info-card) */
.adapt-mini-queue {
    display: flex;
    align-items: center;
    gap: 4px;
}
.adapt-mini-queue-front,
.adapt-mini-queue-back {
    font-size: 10px;
    color: #b45309;
    font-weight: 700;
    background: rgba(245,158,11,0.15);
    padding: 2px 6px;
    border-radius: 3px;
}
.adapt-mini-queue-item {
    width: 30px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
}

/* Mini priority_queue viz (info-card) */
.adapt-mini-pq {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}
.adapt-mini-pq-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.adapt-mini-pq-row {
    display: flex;
    gap: 12px;
}
.adapt-mini-pq-node {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
}
.adapt-mini-pq-root {
    box-shadow: 0 0 0 2px rgba(245,158,11,0.45);
}
.adapt-mini-pq-array {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}
.adapt-mini-pq-cell {
    min-width: 28px;
    padding: 3px 6px;
    background: rgba(245,158,11,0.12);
    border-radius: 3px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: var(--math-text);
    font-weight: 600;
}
.adapt-mini-pq-cell sup {
    color: var(--math-text-muted);
    font-size: 8.5px;
    margin-right: 1px;
}

/* Stats chip-bar */
.math-ds-adapt-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 4px 10px;
    border-bottom: 1px dashed var(--math-border);
    margin-bottom: 8px;
    min-height: 30px;
}
.math-ds-adapt-stats:empty { display: none; }
.adapt-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-family: ui-monospace, monospace;
    font-weight: 600;
    border-radius: 99px;
    background: rgba(245,158,11,0.08);
    color: var(--math-text);
    border: 1px solid rgba(245,158,11,0.18);
    white-space: nowrap;
}
.adapt-chip-accent {
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    color: #fff;
    border-color: transparent;
}
.adapt-chip-good {
    background: rgba(16,185,129,0.10);
    color: #047857;
    border-color: rgba(16,185,129,0.25);
}
.adapt-chip-warn {
    background: rgba(244,63,94,0.10);
    color: #be123c;
    border-color: rgba(244,63,94,0.25);
}
.adapt-chip-peak {
    background: rgba(168,85,247,0.10);
    color: #6b21a8;
    border-color: rgba(168,85,247,0.25);
}
.adapt-chip-muted {
    background: rgba(100,116,139,0.10);
    color: var(--math-text-muted);
    border-color: rgba(100,116,139,0.20);
}
.adapt-chip-empty {
    background: transparent;
    color: var(--math-text-muted);
    border: 1px dashed var(--math-border);
}

/* Action buttons + viz */
.math-ds-adapt-viz {
    min-height: 200px;
    padding: 16px 8px 8px;
    position: relative;
}

/* Stack viz */
.math-ds-adapt-stack-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    position: relative;
}
.math-ds-adapt-stack {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 5px;
    min-height: 60px;
    position: relative;
}
.adapt-stack-item {
    width: var(--adapt-cell-w);
    height: var(--adapt-cell-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    color: #fff;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--math-radius-sm);
    box-shadow: 0 2px 6px rgba(217,119,6,0.20);
    transition: transform var(--adapt-tween) var(--adapt-ease),
                box-shadow var(--adapt-tween),
                opacity var(--adapt-tween);
    position: relative;
}
.adapt-stack-floor {
    width: calc(var(--adapt-cell-w) + 24px);
    height: 5px;
    margin-top: 2px;
    background: repeating-linear-gradient(45deg, var(--math-border) 0 5px, transparent 5px 10px);
    border-radius: 2px;
}
.adapt-stack-top-pointer {
    position: absolute;
    right: calc(50% - var(--adapt-cell-w)/2 - 60px);
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    background: rgba(245,158,11,0.18);
    border: 1px solid rgba(245,158,11,0.30);
    padding: 3px 8px;
    border-radius: 99px;
    white-space: nowrap;
    pointer-events: none;
    transition: top var(--adapt-tween) var(--adapt-ease), opacity var(--adapt-tween);
}
.adapt-stack-empty {
    color: var(--math-text-muted);
    font-style: italic;
    font-size: 12.5px;
    padding: 14px 0 6px;
}

/* Queue viz */
.math-ds-adapt-queue-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 8px 4px;
    overflow-x: auto;
}
.math-ds-adapt-queue-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: var(--adapt-cell-h);
}
.adapt-queue-arrow-out,
.adapt-queue-arrow-in {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #b45309;
    font-weight: 700;
    background: rgba(245,158,11,0.10);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.math-ds-adapt-queue {
    display: flex;
    flex-direction: row;
    gap: 4px;
    min-width: 60px;
    flex: 0 0 auto;
    align-items: center;
}
.adapt-queue-item {
    min-width: var(--adapt-cell-w);
    height: var(--adapt-cell-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    color: #fff;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--math-radius-sm);
    box-shadow: 0 2px 6px rgba(217,119,6,0.20);
    transition: transform var(--adapt-tween) var(--adapt-ease),
                box-shadow var(--adapt-tween),
                opacity var(--adapt-tween);
    position: relative;
}
.math-ds-adapt-queue-tags {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 10.5px;
    color: var(--math-text-muted);
    font-weight: 600;
    font-family: ui-monospace, monospace;
}
.adapt-queue-tag {
    padding: 1px 6px;
    background: rgba(245,158,11,0.08);
    border-radius: 3px;
    color: #b45309;
}
.adapt-queue-empty {
    color: var(--math-text-muted);
    font-style: italic;
    font-size: 12.5px;
}

/* Priority queue viz (tree + array strip) */
.math-ds-adapt-pq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.math-ds-adapt-pq-tree {
    position: relative;
    width: 100%;
    min-height: 200px;
}
.math-ds-adapt-pq-tree-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.math-ds-adapt-pq-tree-svg .adapt-pq-edge {
    stroke: var(--math-border);
    stroke-width: 2;
    fill: none;
    transition: stroke var(--adapt-tween), stroke-width var(--adapt-tween);
}
.math-ds-adapt-pq-tree-svg .adapt-pq-edge.is-sift {
    stroke: var(--adapt-grad-sift-a);
    stroke-width: 3;
}
.math-ds-adapt-node {
    position: absolute;
    width: var(--adapt-node-size);
    height: var(--adapt-node-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    color: #fff;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(217,119,6,0.25);
    transform: translate(-50%, -50%);
    transition: left var(--adapt-tween) var(--adapt-ease),
                top var(--adapt-tween) var(--adapt-ease),
                box-shadow var(--adapt-tween),
                background var(--adapt-tween);
}
.math-ds-adapt-node.is-root {
    box-shadow: 0 0 0 3px rgba(245,158,11,0.40), 0 4px 12px rgba(217,119,6,0.30);
}
.math-ds-adapt-node-idx {
    position: absolute;
    font-size: 9px;
    color: var(--math-text-muted);
    font-family: ui-monospace, monospace;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.adapt-pq-array {
    display: flex;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px dashed var(--math-border);
    overflow-x: auto;
}
.adapt-pq-cell {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(245,158,11,0.08);
    color: var(--math-text);
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(245,158,11,0.20);
    border-right: none;
    transition: background var(--adapt-tween), color var(--adapt-tween);
    padding: 2px 4px;
}
.adapt-pq-cell:last-child { border-right: 1px solid rgba(245,158,11,0.20); }
.adapt-pq-cell .adapt-pq-cell-idx {
    font-size: 9px;
    color: var(--math-text-muted);
    font-weight: 500;
}
.adapt-pq-cell.is-root { background: linear-gradient(135deg, rgba(245,158,11,0.30), rgba(217,119,6,0.20)); }
.adapt-pq-cell.is-affected { background: linear-gradient(135deg, var(--adapt-grad-sift-a), var(--adapt-grad-sift-b)); color: #fff; }
.adapt-pq-empty {
    color: var(--math-text-muted);
    font-style: italic;
    font-size: 12.5px;
    text-align: center;
    padding: 24px 0;
}

/* Modifier states (scoped through .math-ds-adapt-viz) */
.math-ds-adapt-viz .adapt-landing       { animation: adapt-item-land var(--adapt-tween) var(--adapt-ease); }
.math-ds-adapt-viz .adapt-found         { animation: adapt-found-pulse var(--adapt-tween) ease-out; box-shadow: 0 0 0 3px rgba(16,185,129,0.45), 0 4px 12px rgba(5,150,105,0.30) !important; background: linear-gradient(135deg, var(--adapt-grad-found-a), var(--adapt-grad-found-b)) !important; }
.math-ds-adapt-viz .adapt-targeting     { animation: adapt-target-pulse var(--adapt-tween) ease-in-out; box-shadow: 0 0 0 3px rgba(244,63,94,0.45), 0 4px 12px rgba(190,18,60,0.30) !important; background: linear-gradient(135deg, var(--adapt-grad-targeting-a), var(--adapt-grad-targeting-b)) !important; }
.math-ds-adapt-viz .adapt-leaving       { animation: adapt-leave-fade var(--adapt-tween) forwards; }
.math-ds-adapt-viz .adapt-sift          { animation: adapt-sift-pulse var(--adapt-tween) ease-in-out; box-shadow: 0 0 0 3px rgba(168,85,247,0.50), 0 4px 12px rgba(126,34,206,0.30) !important; background: linear-gradient(135deg, var(--adapt-grad-sift-a), var(--adapt-grad-sift-b)) !important; }

@keyframes adapt-item-land {
    0%   { transform: translateY(-14px) scale(0.7); opacity: 0; }
    60%  { transform: translateY(2px) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes adapt-found-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.10); }
    100% { transform: scale(1); }
}
@keyframes adapt-target-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
@keyframes adapt-leave-fade {
    0%   { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(-22px) scale(0.85); }
}
@keyframes adapt-sift-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}
/* For PQ nodes (transform already used by translate(-50%,-50%) — different anim) */
.math-ds-adapt-pq-tree .math-ds-adapt-node.adapt-landing { animation: adapt-node-land var(--adapt-tween) var(--adapt-ease); }
.math-ds-adapt-pq-tree .math-ds-adapt-node.adapt-found   { animation: adapt-node-found var(--adapt-tween) ease-out; }
.math-ds-adapt-pq-tree .math-ds-adapt-node.adapt-targeting { animation: adapt-node-target var(--adapt-tween) ease-in-out; }
.math-ds-adapt-pq-tree .math-ds-adapt-node.adapt-sift    { animation: adapt-node-sift var(--adapt-tween) ease-in-out; }
.math-ds-adapt-pq-tree .math-ds-adapt-node.adapt-leaving { animation: adapt-node-leave var(--adapt-tween) forwards; }

@keyframes adapt-node-land {
    0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    60%  { transform: translate(-50%, -50%) scale(1.10); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes adapt-node-found {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.18); }
}
@keyframes adapt-node-target {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes adapt-node-sift {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes adapt-node-leave {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
}

/* Sift banner (priority_queue) */
.math-ds-adapt-sift-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    margin: 0 0 8px;
    background: linear-gradient(135deg, var(--adapt-grad-sift-a), var(--adapt-grad-sift-b));
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    border-radius: 99px;
    box-shadow: 0 2px 6px rgba(126,34,206,0.30);
    animation: adapt-banner-fade 0.4s ease-out;
}
.math-ds-adapt-sift-banner.is-target {
    background: linear-gradient(135deg, var(--adapt-grad-targeting-a), var(--adapt-grad-targeting-b));
    box-shadow: 0 2px 6px rgba(190,18,60,0.30);
}
.math-ds-adapt-sift-banner.is-insert {
    background: linear-gradient(135deg, var(--adapt-grad-a), var(--adapt-grad-b));
    box-shadow: 0 2px 6px rgba(217,119,6,0.30);
}
@keyframes adapt-banner-fade {
    0%   { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Narrator */
.math-ds-adapt-narrator {
    margin-top: 10px;
    padding: 10px 14px;
    border-left: 3px solid var(--adapt-grad-a);
    background: linear-gradient(90deg, rgba(245,158,11,0.06), transparent 80%);
    border-radius: 4px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--math-text);
    min-height: 0;
}
.math-ds-adapt-narrator:empty { display: none; }
.adapt-narr-title {
    font-family: ui-monospace, monospace;
    font-weight: 700;
    color: #b45309;
    font-size: 12px;
    margin-bottom: 4px;
}
.adapt-narr-body { color: var(--math-text); }
.adapt-narr-body code {
    background: rgba(245,158,11,0.12);
    color: #92400e;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11.5px;
}
.adapt-narr-body strong { color: #b45309; }
.adapt-narr-impact {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--math-text-muted);
    font-style: italic;
}

/* Progress chip (random stagger) */
.math-ds-adapt-progress {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--math-radius-md);
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.18);
    transition: opacity 0.4s;
}
.math-ds-adapt-progress[hidden] { display: none; }
.adapt-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-family: ui-monospace, monospace;
    color: var(--math-text);
}
.adapt-progress-label { font-weight: 600; color: #b45309; }
.adapt-progress-counter { color: var(--math-text-muted); }
.adapt-progress-track {
    height: 4px;
    background: rgba(245,158,11,0.15);
    border-radius: 2px;
    overflow: hidden;
}
.adapt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--adapt-grad-a), var(--adapt-grad-b));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease-out;
}

/* Busy state (during stagger) */
.math-ds-adapt-panel.is-busy .math-ds-adapt-type-segment .math-mode-segment-btn,
.math-ds-adapt-panel.is-busy .math-ds-adapt-actions .math-btn,
.math-ds-adapt-panel.is-busy #adaptValue,
.math-ds-adapt-panel.is-busy #adaptRandomBtn,
.math-ds-adapt-panel.is-busy #adaptSpeed .math-mode-segment-btn {
    pointer-events: none;
    opacity: 0.55;
}

/* Mobile */
@media (max-width: 640px) {
    .math-ds-adapt-panel {
        --adapt-cell-w: 56px;
        --adapt-cell-h: 38px;
        --adapt-node-size: 36px;
    }
    .math-ds-adapt-stats {
        flex-wrap: nowrap;
        overflow-x: auto;
        mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    }
    .adapt-info-body {
        grid-template-columns: 1fr;
    }
    .adapt-info-mini { align-items: flex-start; }
    .math-ds-adapt-type-segment .math-mode-segment-btn { min-height: 56px; padding: 6px 8px; }
    .math-ds-adapt-type-segment .adapt-seg-title { font-size: 12px; }
    .math-ds-adapt-type-segment .adapt-seg-sub { font-size: 9.5px; }
    .adapt-rand-text-long { display: none; }
    .math-ds-adapt-pq-tree { min-height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
    .math-ds-adapt-viz .adapt-landing,
    .math-ds-adapt-viz .adapt-found,
    .math-ds-adapt-viz .adapt-targeting,
    .math-ds-adapt-viz .adapt-leaving,
    .math-ds-adapt-viz .adapt-sift,
    .adapt-stack-item,
    .adapt-queue-item,
    .math-ds-adapt-node,
    .math-ds-adapt-sift-banner,
    .math-ds-adapt-progress .adapt-progress-fill {
        animation: none !important;
        transition-duration: 0ms !important;
    }
}

