.advanced-labs { max-width: 960px; margin: 0 auto; padding: 16px 28px 44px; display: flex; flex-direction: column; gap: 18px; }
.advanced-labs .kit-card__desc { font-size: 12px; color: var(--text-muted); }
.adv-card .kit-card__body { gap: 12px; display: flex; flex-direction: column; }
.adv-meter { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--wb-rule); border-radius: var(--radius-sm); background: var(--bg-inset); }
.adv-meter__bar { height: 8px; background: var(--bg-surface); border-radius: 4px; overflow: hidden; }
.adv-meter__fill { height: 100%; transition: width 0.3s; }
.adv-meter__fill.is-ok { background: var(--status-success); }
.adv-meter__fill.is-warning { background: var(--status-warn); }
.adv-meter__fill.is-error { background: var(--status-error); }
.adv-meter__stats { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
.adv-list, .adv-chain-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; border: 1px solid var(--wb-rule); border-radius: 6px; padding: 6px; background: var(--bg-surface-2); }
.adv-list > .adv-row, .adv-chain-list > .adv-row { flex-shrink: 0; }
.adv-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.adv-row__name { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv-row__icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; color: var(--text-secondary); }
.adv-row__icon img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; }
.adv-card .kit-card__title { letter-spacing: -0.01em; }
.adv-card .kit-card__head { border-left: 3px solid var(--accent); padding-left: 12px; }
.adv-actions, .adv-add-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adv-add-row .input { flex: 1 1 120px; }
.adv-tree-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--wb-rule); border-radius: 6px; padding: 6px; background: var(--bg-surface-2); }
.adv-editor-row { display: flex; flex-direction: column; gap: 8px; }
.adv-preview { font-size: 13px; line-height: 1.5; }
.adv-display-sprite { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; transition: transform 0.2s; }
.adv-display-caption { position: absolute; bottom: 8px; left: 10px; color: var(--text-secondary); font: 11px var(--font-mono); }
.adv-quantum-chest { image-rendering: pixelated; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.adv-quantum-chest.is-pending { filter: blur(1px) drop-shadow(0 0 14px var(--accent)); }
.adv-code { font-family: var(--font-mono); font-size: 11px; }
.adv-search-row { display: flex; gap: 8px; }
.adv-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.adv-slider { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.adv-graph-canvas { position: relative; min-height: 200px; }
.adv-node { position: absolute; width: 140px; border: 1px solid var(--wb-rule); border-radius: 8px; background: var(--bg-surface); box-shadow: 0 2px 8px rgba(0,0,0,0.2); font-size: 11px; overflow: hidden; }
.adv-node__head { padding: 4px 8px; font-weight: 700; background: var(--bg-inset); border-bottom: 1px solid var(--wb-rule); }
.adv-node__body { padding: 6px 8px; }
.adv-node--pool { border-color: var(--status-info); }
.adv-node--entry { border-color: var(--status-success); }
.adv-node--ref { border-color: var(--status-warn); background: color-mix(in srgb, var(--status-warn) 10%, transparent); }
.adv-node--func { border-color: var(--tag-compound); background: color-mix(in srgb, var(--tag-compound) 10%, transparent); }
.adv-line { position: absolute; height: 2px; background: var(--wb-rule); }
.adv-cb { font-family: var(--font-mono); }
.adv-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--wb-rule); border-radius: 8px; background: var(--bg-surface); position: sticky; top: 0; z-index: 2; }
.adv-tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--border-subtle); background: var(--bg-surface-2); color: var(--text-secondary); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.adv-tab .ui-icon { color: var(--text-muted); }
.adv-tab:hover { color: var(--text-primary); border-color: var(--border-strong); }
.adv-tab.is-active { background: var(--bg-active); border-color: var(--accent); color: var(--text-primary); }
.adv-tab.is-active .ui-icon { color: var(--accent); }
.adv-tab:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
@media (max-width: 700px) { .adv-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; } .adv-tab { flex: none; } }
.adv-section-wrap { display: flex; flex-direction: column; gap: 16px; }
.adv-section-wrap > section[hidden] { display: none !important; }
