.library-view { padding-bottom: 28px; }
.library-rule { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 18px; border-color: rgba(199,255,89,.3); }
.library-rule small, .library-rule strong { display: block; }
.library-rule small { margin-bottom: 4px; color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.library-rule strong { font-size: 12px; }
.library-rule p { max-width: 720px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.library-health { margin-top: 12px; padding: 0; }
.library-health > summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 18px; cursor: pointer; list-style: none; }
.library-health > summary::-webkit-details-marker { display: none; }
.library-health > summary small, .library-health > summary strong { display: block; }
.library-health > summary small { margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.library-health > summary strong { font-size: 12px; }
.library-health > summary em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.library-health > summary em.is-healthy { color: var(--accent); }
.library-health > summary em.is-warning { color: #ff9e9e; }
.library-health-content { padding: 0 18px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.library-health-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.library-health-card { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #090c11; }
.library-health-card span, .library-health-card strong, .library-health-card small { display: block; }
.library-health-card span { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.library-health-card strong { margin-top: 5px; color: var(--text); font-size: 14px; }
.library-health-card small { margin-top: 4px; line-height: 1.4; }
.library-health-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.library-health-notes > div { padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #090c11; line-height: 1.5; }
.library-health-notes strong, .library-health-notes span { display: block; }
.library-health-notes strong { color: var(--text); font-size: 8px; }
.library-health-notes span { margin-top: 4px; overflow-wrap: anywhere; font: 7px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.library-health-warning { margin-top: 14px; padding: 10px; border: 1px solid rgba(255,102,102,.42); border-radius: 8px; color: #ffb1b1; background: rgba(255,102,102,.06); line-height: 1.5; }
.library-health-items { margin-top: 9px; border: 1px solid var(--line); border-radius: 8px; background: #090c11; }
.library-health-items > summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px; color: var(--text); cursor: pointer; list-style: none; }
.library-health-items > summary::-webkit-details-marker { display: none; }
.library-health-items > summary span { font-weight: 800; }
.library-health-items > summary strong { color: var(--accent); }
.library-health-items > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 9px 9px; }
.library-health-items article { display: flex; justify-content: space-between; align-items: start; gap: 10px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.library-health-items article strong, .library-health-items article span { display: block; }
.library-health-items article strong { color: var(--text); font-size: 7px; }
.library-health-items article span, .library-health-items article small { margin-top: 3px; overflow-wrap: anywhere; font-size: 7px; line-height: 1.4; }
.library-health-items article small { max-width: 48%; text-align: right; }
.library-health-empty { margin-top: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.library-scope { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 12px; padding: 18px; }
.library-scope small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.library-scope h2 { margin: 6px 0 4px; font-size: 16px; }
.library-scope p { margin: 0; color: var(--muted); font-size: 10px; }
.library-surface-buttons { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #090c11; }
.library-surface-button { display: grid; gap: 3px; min-width: 150px; padding: 10px 14px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; text-align: left; cursor: pointer; }
.library-surface-button small { color: inherit; font-size: 7px; font-weight: 700; opacity: .78; }
.library-surface-button.is-active { color: #091004; background: var(--accent); }
.library-categories-panel { margin-top: 12px; padding: 16px; }
.library-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.library-section-heading > div { display: flex; align-items: center; gap: 9px; }
.library-section-heading small, .library-section-heading span { color: var(--muted); font-size: 8px; }
.library-section-heading h2 { margin: 0; font-size: 13px; }
.library-category-buttons { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 8px; margin-top: 13px; }
.library-category-button { min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #0b0e13; text-align: left; cursor: pointer; }
.library-category-button strong, .library-category-button span, .library-category-button small { display: block; }
.library-category-button strong { color: var(--text); font-size: 10px; }
.library-category-button span { margin-top: 6px; color: var(--accent); font-size: 8px; font-weight: 800; }
.library-category-button small { margin-top: 4px; line-height: 1.35; }
.library-category-button.is-active { border-color: var(--accent); background: rgba(199,255,89,.055); box-shadow: inset 0 0 0 1px rgba(199,255,89,.12); }
.library-category-button.is-advanced { border-style: dashed; }
.library-workspace { margin-top: 12px; overflow: hidden; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.library-toolbar > div:first-child { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 8px; }
.library-toolbar .canvas-dot { grid-row: 1 / 3; }
.library-toolbar small { grid-column: 2; color: var(--muted); font-size: 9px; }
.library-search-label { display: grid; grid-template-columns: auto minmax(180px, 270px); align-items: center; gap: 8px; margin: 0; }
.library-search-label input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #090c11; }
.library-workspace > .catalog-error { margin: 10px 14px 0; }
.library-canvas { position: relative; min-height: 650px; overflow: auto; background: #090c11; }
.library-canvas > .canvas-grid { pointer-events: none; }
.library-node-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 18px; width: 100%; padding: 34px 34px 90px; }
.library-node { position: relative; width: 100%; min-width: 0; max-height: none; overflow: visible; border-top-color: var(--accent); }
.library-node::before, .library-node::after { display: none; }
.library-node.is-system { border-top-color: #be88ff; }
.library-node.is-provider { border-top-color: #ff78bd; }
.library-node.is-read-only { border-style: dashed; border-top-color: #718096; }
.library-node.is-draft { border-color: rgba(245,170,93,.58); }
.library-node.is-saving { opacity: .72; pointer-events: none; }
.library-node-header-status { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; letter-spacing: 0; }
.library-current-version { padding: 4px 7px; border: 1px solid rgba(199,255,89,.38); border-radius: 999px; color: var(--text); background: rgba(199,255,89,.055); font-size: 8px; letter-spacing: 0; white-space: nowrap; }
.library-edit-button { padding: 4px 8px; border: 1px solid rgba(199,255,89,.45); border-radius: 999px; color: var(--accent); background: rgba(199,255,89,.04); font-size: 8px; font-weight: 800; cursor: pointer; }
.library-edit-button:hover { color: #0a1005; background: var(--accent); }
.library-node header em.is-available { color: var(--accent); }
.library-node header em.is-archived { color: #ff9e9e; }
.library-node header em.is-unvalidated { color: #b9a1ff; }
.library-node-purpose { min-height: 42px; }
.library-node-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.library-badge { padding: 4px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #0b0e13; font-size: 7px; font-weight: 800; }
.library-badge.is-shared { color: #9ce8e4; border-color: rgba(100,215,209,.35); }
.library-badge.is-draft { color: #ffc47f; border-color: rgba(245,170,93,.35); }
.library-badge.is-unvalidated { color: #c9b8ff; border-color: rgba(185,161,255,.38); }
.library-scope-explanation { display: grid; gap: 3px; margin-top: 10px; padding: 8px; border: 1px solid rgba(255,120,189,.28); border-radius: 7px; color: #d6a7c1; background: rgba(255,120,189,.035); font-size: 8px; line-height: 1.45; }
.library-scope-explanation strong { color: #ffacd5; }
.library-node-section { margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(7,9,13,.5); }
.library-node-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.library-node-section-heading strong { font-size: 9px; }
.library-node-section-heading span { color: var(--muted); font-size: 7px; text-align: right; }
.library-field { display: block; margin-top: 9px; }
.library-field:first-child { margin-top: 0; }
.library-field > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 750; }
.library-field select, .library-field input[type="text"], .library-field textarea { width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; color: #dce2ea; background: #080b10; font-size: 8px; }
.library-field textarea { min-height: 58px; resize: vertical; line-height: 1.45; }
.library-toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; color: var(--muted); font-size: 8px; }
.library-toggle input { accent-color: var(--accent); }
.library-array-options { display: flex; flex-wrap: wrap; gap: 5px; }
.library-array-option { display: flex; align-items: center; gap: 4px; margin: 0; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 7px; cursor: pointer; }
.library-array-option:has(input:checked) { color: var(--text); border-color: rgba(199,255,89,.42); background: rgba(199,255,89,.04); }
.library-array-option input { accent-color: var(--accent); }
.library-preview-state { margin-top: 7px; padding: 7px 8px; border: 1px solid rgba(100,215,209,.24); border-radius: 7px; color: #9ce8e4; background: rgba(100,215,209,.035); font-size: 8px; line-height: 1.45; }
.library-draft-state { margin-top: 8px; padding: 7px 8px; border: 1px solid rgba(245,170,93,.3); border-radius: 7px; color: #ffc47f; background: rgba(245,170,93,.04); font-size: 8px; line-height: 1.45; }
.library-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.library-actions button { min-height: 33px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-3); font-size: 8px; font-weight: 750; cursor: pointer; }
.library-actions button:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.library-actions button:disabled { opacity: .45; cursor: not-allowed; }
.library-actions .is-primary { color: #101509; border-color: var(--accent); background: var(--accent); }
.library-actions .is-danger { color: #ffaaaa; border-color: rgba(255,102,102,.38); background: rgba(255,102,102,.04); }
.library-actions .is-restore { color: #9ce8e4; border-color: rgba(100,215,209,.38); background: rgba(100,215,209,.04); }
.library-node details { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.library-node summary { color: #c9d0d9; font-size: 8px; font-weight: 750; cursor: pointer; }
.library-version-history { border: 1px solid rgba(100,215,209,.24) !important; border-radius: 8px; background: rgba(100,215,209,.025); padding: 0 !important; }
.library-version-history > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; color: #9ce8e4; list-style-position: inside; }
.library-version-history > summary strong { color: var(--text); font-size: 8px; text-align: right; }
.library-version-history[open] > summary { border-bottom: 1px solid rgba(100,215,209,.2); }
.library-version-history > .library-node-section { margin: 0; border: 0; border-radius: 0 0 8px 8px; }
.library-version-list { display: grid; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.library-version-list li { margin: 0; padding: 0; }
.library-version-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.library-version-row:has(.library-version-delete) { grid-template-columns: minmax(0, 1fr) auto auto; }
.library-version-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: #080b10; text-align: left; cursor: pointer; }
.library-version-option:hover { border-color: rgba(100,215,209,.65); }
.library-version-option:focus-visible { border-color: rgba(100,215,209,.8); outline: 2px solid rgba(100,215,209,.65); outline-offset: 2px; }
.library-version-option.is-selected { border-color: var(--accent); background: rgba(199,255,89,.055); }
.library-version-option strong { font-size: 8px; }
.library-version-option small { color: var(--muted); font-size: 7px; text-align: right; }
.library-version-option.is-selected small { color: var(--accent); }
.library-version-lifecycle { min-width: 66px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #080b10; font-size: 7px; font-weight: 800; cursor: pointer; }
.library-version-lifecycle.is-danger { color: #ffaaaa; border-color: rgba(255,102,102,.34); }
.library-version-lifecycle.is-restore { color: #9ce8e4; border-color: rgba(100,215,209,.34); }
.library-version-lifecycle:disabled { opacity: .35; cursor: not-allowed; }
.library-version-delete { min-width: 88px; padding: 6px 8px; border: 1px solid rgba(255,102,102,.5); border-radius: 7px; color: #ffaaaa; background: rgba(255,102,102,.035); font-size: 7px; font-weight: 800; cursor: pointer; }
.library-version-delete:hover { border-color: rgba(255,102,102,.9); background: rgba(255,102,102,.09); }
.library-version-empty { margin-top: 9px; padding: 8px; border: 1px dashed rgba(245,170,93,.35); border-radius: 7px; color: #ffc47f; font-size: 8px; line-height: 1.45; }
.library-details-grid { display: grid; gap: 6px; margin-top: 8px; }
.library-details-grid div { padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: #080b10; }
.library-details-grid span, .library-details-grid strong { display: block; }
.library-details-grid span { color: var(--muted); font-size: 7px; }
.library-details-grid strong { margin-top: 3px; overflow-wrap: anywhere; font: 7px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.library-json { max-height: 220px; margin: 5px 0 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #c9d0d9; font: 7px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.library-details-list { max-height: 210px; margin: 8px 0 0; padding: 0; overflow: auto; list-style: none; }
.library-details-list li { margin-top: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #080b10; font-size: 7px; line-height: 1.5; }
.library-registry-section { border-color: rgba(100,215,209,.26); }
.library-registry-configurations { display: grid; gap: 7px; }
.library-registry-configuration { margin: 0 !important; padding: 0 !important; border: 1px solid var(--line) !important; border-radius: 7px; background: #080b10; }
.library-registry-configuration[open], .library-registry-options[open], .library-registry-groups > details[open] { border-color: rgba(199,255,89,.72) !important; background: rgba(199,255,89,.025); box-shadow: inset 0 0 0 1px rgba(199,255,89,.08); }
.library-registry-configuration[open] > summary, .library-registry-options[open] > summary, .library-registry-groups > details[open] > summary { color: var(--accent); background: rgba(199,255,89,.04); }
.library-registry-configuration > summary { display: flex; justify-content: space-between; gap: 8px; padding: 9px; list-style: none; }
.library-registry-configuration > summary::-webkit-details-marker { display: none; }
.library-registry-configuration > summary span, .library-registry-configuration > summary strong, .library-registry-configuration > summary small { display: block; }
.library-registry-configuration > summary strong { color: var(--text); }
.library-registry-configuration > summary small { margin-top: 4px; color: var(--muted); }
.library-registry-configuration > summary em { color: var(--accent); font-size: 7px; font-style: normal; text-transform: uppercase; }
.library-registry-settings { display: grid; gap: 6px; padding: 9px; border-top: 1px solid var(--line); }
.library-registry-setting { padding: 7px; border: 1px solid rgba(255,255,255,.06); border-radius: 6px; }
.library-registry-setting > strong { display: block; margin-bottom: 5px; color: #9ce8e4; font-size: 7px; text-transform: uppercase; }
.library-registry-setting > div { display: flex; flex-wrap: wrap; gap: 4px; }
.library-registry-value { display: inline-flex; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: 7px; }
.library-registry-empty { color: var(--muted); font-size: 7px; }
.library-registry-meta { padding: 0 9px 9px; overflow-wrap: anywhere; color: var(--muted); font: 7px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.library-registry-options { margin-top: 9px !important; padding: 0 !important; border: 1px solid rgba(100,215,209,.24) !important; border-radius: 7px; }
.library-registry-options > summary, .library-registry-groups > details > summary { display: flex; justify-content: space-between; gap: 8px; padding: 9px; }
.library-registry-groups { display: grid; gap: 6px; padding: 0 8px 8px; }
.library-registry-groups > details { margin: 0 !important; padding: 0 !important; border: 1px solid var(--line) !important; border-radius: 6px; }
.library-registry-groups ul { display: grid; gap: 5px; max-height: 230px; margin: 0; padding: 0 8px 8px; overflow: auto; list-style: none; }
.library-registry-groups li { display: flex; justify-content: space-between; gap: 8px; padding: 7px; border: 1px solid rgba(255,255,255,.05); border-radius: 5px; }
.library-registry-groups li span, .library-registry-groups li strong, .library-registry-groups li small { display: block; }
.library-registry-groups li small { margin-top: 3px; color: var(--muted); }
.library-registry-groups li em { color: var(--accent); font-size: 7px; font-style: normal; text-align: right; }
.library-empty { grid-column: 1 / -1; min-height: 260px; display: grid; place-items: center; padding: 30px; border: 1px dashed var(--line-strong); border-radius: 11px; color: var(--muted); text-align: center; }
.library-loading { min-height: 240px; }
.library-toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 420px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: #141922; box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 9px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .18s ease; }
.library-toast.is-visible { opacity: 1; transform: translateY(0); }
.library-toast.is-error { color: #ffaaaa; border-color: rgba(255,102,102,.45); }
.library-technical-information > summary { color: #9ce8e4; }
.library-technical-body { display: grid; gap: 12px; margin-top: 10px; }
.library-technical-body > section { padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #080b10; }
.library-technical-body h4 { margin: 0; color: var(--text); font-size: 8px; }
.library-edit-dialog { width: min(920px, calc(100vw - 36px)); max-width: 920px; max-height: 90vh; padding: 0; overflow: hidden; border: 1px solid rgba(199,255,89,.42); border-radius: 14px; color: var(--text); background: #0c1016; box-shadow: 0 28px 90px rgba(0,0,0,.72); }
.library-edit-dialog::backdrop { background: rgba(2,4,7,.8); backdrop-filter: blur(3px); }
.library-edit-dialog form { display: flex; flex-direction: column; max-height: 90vh; margin: 0; }
.library-edit-dialog > form > header { padding: 18px 20px 15px; border-bottom: 1px solid var(--line); }
.library-edit-dialog header small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.library-edit-dialog header h2 { margin: 6px 0 0; font-size: 20px; }
.library-edit-dialog header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.library-edit-body { display: grid; gap: 12px; padding: 18px 20px; overflow: auto; }
.library-edit-configuration, .library-edit-reason, .library-edit-field { display: grid; gap: 6px; }
.library-edit-configuration > span, .library-edit-reason > span, .library-edit-field > span { color: var(--muted); font-size: 9px; font-weight: 800; }
.library-edit-configuration select, .library-edit-reason input, .library-edit-field select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #070a0f; font-size: 10px; }
.library-edit-group { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #090c11; }
.library-edit-group h3 { margin: 0; font-size: 12px; }
.library-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.library-edit-array { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.library-edit-array legend { padding: 0 5px; color: var(--muted); font-size: 9px; font-weight: 800; }
.library-edit-array-values { display: flex; flex-wrap: wrap; gap: 6px; }
.library-edit-array-value { display: inline-flex; align-items: center; gap: 6px; padding: 4px 5px 4px 8px; border: 1px solid rgba(199,255,89,.55); border-radius: 7px; color: var(--text); background: rgba(199,255,89,.05); font-size: 9px; }
.library-edit-array-value button { padding: 4px 6px; border: 1px solid rgba(255,102,102,.38); border-radius: 5px; color: #ffaaaa; background: rgba(255,102,102,.035); font-size: 7px; font-weight: 850; cursor: pointer; }
.library-edit-array-value button:disabled { opacity: .35; cursor: not-allowed; }
.library-edit-array-empty { color: var(--muted); font-size: 9px; }
.library-edit-option-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.library-edit-option-controls label { display: grid; gap: 6px; }
.library-edit-option-controls label > span { color: var(--muted); font-size: 8px; font-weight: 800; }
.library-edit-option-controls select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: #070a0f; font-size: 9px; }
.library-edit-option-controls button { min-height: 35px; padding: 7px 12px; border: 1px solid rgba(100,215,209,.45); border-radius: 7px; color: #9ce8e4; background: rgba(100,215,209,.04); font-size: 8px; font-weight: 850; cursor: pointer; }
.library-edit-option-controls button:disabled, .library-edit-option-controls select:disabled { opacity: .4; cursor: not-allowed; }
.library-edit-option-status { margin: 9px 0 0; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 750; }
.library-edit-note { margin: 0; padding: 8px 9px; border-left: 2px solid rgba(100,215,209,.5); color: #9ce8e4; background: rgba(100,215,209,.035); font-size: 9px; line-height: 1.5; }
.library-edit-validation { min-height: 16px; margin: 0; color: #ffc47f; font-size: 9px; }
.library-edit-validation.is-error { color: #ffaaaa; }
.library-edit-dialog footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: #0a0d12; }
.library-edit-dialog footer button { min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #111620; font-size: 10px; font-weight: 850; cursor: pointer; }
.library-edit-dialog footer button.is-primary { color: #0a1005; border-color: var(--accent); background: var(--accent); }
.library-edit-dialog footer button:disabled { opacity: .4; cursor: not-allowed; }
.library-option-remove-dialog { width: min(480px, calc(100vw - 36px)); padding: 0; overflow: hidden; border: 1px solid rgba(255,102,102,.48); border-radius: 14px; color: var(--text); background: #0c1016; box-shadow: 0 28px 90px rgba(0,0,0,.72); }
.library-option-remove-dialog::backdrop { background: rgba(2,4,7,.82); backdrop-filter: blur(3px); }
.library-option-remove-dialog form { margin: 0; }
.library-option-remove-dialog header { padding: 18px 20px 15px; border-bottom: 1px solid var(--line); }
.library-option-remove-dialog header small { color: #ffaaaa; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.library-option-remove-dialog header h2 { margin: 6px 0 0; font-size: 20px; }
.library-option-remove-body { display: grid; gap: 10px; padding: 18px 20px; }
.library-option-remove-body p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.library-option-remove-body strong { padding: 9px 10px; border: 1px solid rgba(255,102,102,.25); border-radius: 8px; color: #ffb7b7; background: rgba(255,102,102,.035); font-size: 9px; }
.library-option-remove-dialog footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: #0a0d12; }
.library-option-remove-dialog footer button { min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #111620; font-size: 10px; font-weight: 850; cursor: pointer; }
.library-option-remove-dialog footer button.is-danger { color: #fff; border-color: #c64141; background: #8f2929; }
.library-delete-dialog { width: min(480px, calc(100vw - 36px)); padding: 0; overflow: hidden; border: 1px solid rgba(255,102,102,.48); border-radius: 14px; color: var(--text); background: #0c1016; box-shadow: 0 28px 90px rgba(0,0,0,.72); }
.library-delete-dialog::backdrop { background: rgba(2,4,7,.82); backdrop-filter: blur(3px); }
.library-delete-dialog form { margin: 0; }
.library-delete-dialog header { padding: 18px 20px 15px; border-bottom: 1px solid var(--line); }
.library-delete-dialog header small { color: #ffaaaa; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.library-delete-dialog header h2 { margin: 6px 0 0; font-size: 20px; }
.library-delete-body { display: grid; gap: 10px; padding: 18px 20px; }
.library-delete-body p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.library-delete-body strong { padding: 9px 10px; border: 1px solid rgba(255,102,102,.25); border-radius: 8px; color: #ffb7b7; background: rgba(255,102,102,.035); font-size: 9px; }
.library-delete-dialog footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: #0a0d12; }
.library-delete-dialog footer button { min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #111620; font-size: 10px; font-weight: 850; cursor: pointer; }
.library-delete-dialog footer button.is-danger { color: #fff; border-color: #c64141; background: #8f2929; }
.library-delete-dialog footer button:disabled { opacity: .4; cursor: not-allowed; }

/* P1D Workflow semantic Library */
.workflow-semantic-node { grid-column: 1 / -1; padding: 0; border-top-color: var(--accent); background: rgba(12,16,22,.96); }
.workflow-semantic-node-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.workflow-semantic-node-header small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.workflow-semantic-node-header h3 { margin: 7px 0 0; font-size: 20px; }
.workflow-semantic-node-header p { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.workflow-semantic-node-header > span { padding: 5px 8px; border: 1px solid rgba(100,215,209,.34); border-radius: 999px; color: #9ce8e4; font-size: 8px; font-weight: 800; white-space: nowrap; }
.workflow-semantic-boundary { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 14px 20px 0; padding: 10px 12px; border: 1px solid rgba(100,215,209,.24); border-radius: 9px; background: rgba(100,215,209,.035); }
.workflow-semantic-boundary strong { color: #9ce8e4; font-size: 9px; }
.workflow-semantic-boundary span { color: var(--muted); font-size: 8px; text-align: right; }
.workflow-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; padding: 14px 20px 20px; }
.workflow-rule-group { min-width: 0; padding: 13px; border: 1px solid var(--line-strong); border-top-color: var(--accent); border-radius: 11px; background: #0a0e14; }
.workflow-rule-group > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.workflow-rule-group > header small { color: #9ce8e4; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workflow-rule-group > header h4 { margin: 6px 0 0; font-size: 12px; }
.workflow-rule-group > p { min-height: 44px; margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.library-version-badge { padding: 4px 7px; border: 1px solid rgba(199,255,89,.38); border-radius: 999px; color: var(--accent); background: rgba(199,255,89,.035); font-size: 7px; font-weight: 850; white-space: nowrap; }
.workflow-group-actions { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-top: 10px; }
.workflow-group-actions button { min-height: 31px; padding: 7px 10px; border: 1px solid rgba(199,255,89,.48); border-radius: 7px; color: var(--accent); background: rgba(199,255,89,.04); font-size: 8px; font-weight: 850; cursor: pointer; }
.workflow-group-actions button:hover:not(:disabled) { color: #091004; background: var(--accent); }
.workflow-group-actions button:disabled { opacity: .38; cursor: not-allowed; }
.workflow-group-actions span { color: var(--muted); font-size: 7px; text-align: right; }
.workflow-rule-group details { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.workflow-rule-group summary { color: #c9d0d9; font-size: 8px; font-weight: 750; cursor: pointer; }
.workflow-rule-list, .workflow-edit-rule-list, .workflow-usage-list, .workflow-evidence-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.workflow-rule-list li, .workflow-edit-rule-list li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #080b10; }
.workflow-rule-list li > span, .workflow-edit-rule-list li > span { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(199,255,89,.35); border-radius: 6px; color: var(--accent); font-size: 7px; font-weight: 850; }
.workflow-rule-list strong, .workflow-rule-list small, .workflow-edit-rule-list strong, .workflow-edit-rule-list small { display: block; }
.workflow-rule-list strong, .workflow-edit-rule-list strong { font-size: 8px; }
.workflow-rule-list small, .workflow-edit-rule-list small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.workflow-rule-group .library-version-option { display: grid; justify-content: stretch; }
.workflow-rule-group .library-version-option small { margin-top: 3px; text-align: left; }
.workflow-usage-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 7px; }
.workflow-usage-list span { color: var(--muted); }
.workflow-evidence-list li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; }
.workflow-evidence-list span { color: var(--accent); font-size: 7px; }
.workflow-evidence-list code, .library-system-details code { overflow-wrap: anywhere; color: var(--muted); font: 7px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.library-system-details { display: grid; gap: 6px; }
.library-system-details p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.workflow-node-advanced { margin: 0 20px 20px !important; padding-top: 10px !important; }
.workflow-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; gap: 12px; padding: 14px 20px 20px; }
.workflow-profile-card { min-width: 0; padding: 13px; border: 1px solid var(--line-strong); border-top-color: #9ce8e4; border-radius: 11px; background: #0a0e14; }
.workflow-profile-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.workflow-profile-card > header small { color: #9ce8e4; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workflow-profile-card h4 { margin: 6px 0 0; font-size: 12px; }
.workflow-profile-card > header > span { color: var(--muted); font-size: 7px; }
.workflow-profile-card dl { display: grid; gap: 6px; margin: 11px 0 0; }
.workflow-profile-card dl > div { padding: 7px; border: 1px solid var(--line); border-radius: 6px; }
.workflow-profile-card dt { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.workflow-profile-card dd { margin: 4px 0 0; color: var(--text); font-size: 8px; line-height: 1.45; }
.workflow-profile-card details { margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.workflow-profile-card summary { color: #c9d0d9; font-size: 8px; font-weight: 750; cursor: pointer; }
.workflow-edit-section { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #090c11; }
.workflow-edit-section > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.workflow-edit-section > header small { color: #9ce8e4; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.workflow-edit-section > header h3 { margin: 5px 0 0; font-size: 12px; }
.workflow-edit-section > header > span { display: grid; min-width: 26px; height: 26px; place-items: center; border: 1px solid rgba(199,255,89,.38); border-radius: 999px; color: var(--accent); font-size: 8px; font-weight: 850; }
.workflow-edit-rule-list { margin-top: 10px; }
.workflow-edit-rule-list button { padding: 6px 8px; border: 1px solid rgba(255,102,102,.4); border-radius: 6px; color: #ffaaaa; background: rgba(255,102,102,.035); font-size: 7px; font-weight: 800; cursor: pointer; }
.workflow-edit-rule-list button:disabled { opacity: .35; cursor: not-allowed; }
.workflow-add-rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.workflow-add-rule { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; padding: 9px; border: 1px solid rgba(100,215,209,.32); border-radius: 7px; color: var(--text); background: rgba(100,215,209,.025); text-align: left; cursor: pointer; }
.workflow-add-rule strong, .workflow-add-rule small { display: block; }
.workflow-add-rule strong { font-size: 8px; }
.workflow-add-rule small { color: var(--muted); font-size: 7px; line-height: 1.4; }
.workflow-add-rule span { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #9ce8e4; font-size: 8px; font-weight: 850; }
.workflow-add-rule:hover { border-color: #9ce8e4; }
.library-edit-validation.is-valid { color: var(--accent); }
@media (max-width: 1120px) {
  .library-category-buttons { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .library-node-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library-health-grid { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .library-health-items > div { grid-template-columns: 1fr 1fr; }
  .workflow-group-grid, .workflow-profile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .library-node-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .library-rule, .library-scope, .library-toolbar { align-items: stretch; flex-direction: column; }
  .library-surface-buttons { width: 100%; }
  .library-surface-button { flex: 1; min-width: 0; }
  .library-category-buttons { grid-template-columns: 1fr 1fr; }
  .library-node-list { grid-template-columns: 1fr; padding: 22px 16px 75px; }
  .library-search-label { grid-template-columns: 1fr; }
  .library-health-notes { grid-template-columns: 1fr; }
  .library-health-items > div { grid-template-columns: 1fr; }
  .library-edit-grid { grid-template-columns: 1fr; }
  .workflow-group-grid, .workflow-profile-grid, .workflow-add-rule-list { grid-template-columns: 1fr; }
  .workflow-semantic-boundary, .workflow-semantic-node-header { align-items: stretch; flex-direction: column; }
  .workflow-semantic-boundary span { text-align: left; }
}

@media (max-width: 520px) {
  .library-category-buttons { grid-template-columns: 1fr; }
  .library-actions { grid-template-columns: 1fr; }
  .library-health-grid { grid-template-columns: 1fr 1fr; }
}

/* SP4 Shared System Library */
.library-node-list.is-sp4-system { display: block; padding: 26px 28px 80px; }
.sp4-sequence-note, .sp4-provider-context { padding: 16px 18px; border: 1px solid rgba(100,215,209,.34); border-radius: 12px; background: rgba(100,215,209,.035); }
.sp4-sequence-note strong, .sp4-sequence-note span, .sp4-sequence-note small { display: block; }
.sp4-sequence-note strong { color: #9ce8e4; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.sp4-sequence-note span { margin-top: 8px; color: var(--text); font-size: 11px; line-height: 1.55; }
.sp4-sequence-note small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.sp4-system-node-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.sp4-system-node { overflow: hidden; border: 1px solid rgba(100,215,209,.28); border-top: 2px solid #64d7d1; border-radius: 12px; background: rgba(13,18,25,.98); }
.sp4-system-node:nth-child(3), .sp4-system-node:nth-child(5) { border-top-color: var(--accent); }
.sp4-system-node > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.sp4-system-node > header small { color: #9ce8e4; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.sp4-system-node > header h3 { margin: 5px 0 0; font-size: 13px; }
.sp4-system-node > p { min-height: 76px; margin: 0; padding: 13px 14px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.sp4-version-badge { flex: none; padding: 5px 7px; border: 1px solid rgba(100,215,209,.42); border-radius: 999px; color: #9ce8e4; font-size: 7px; font-weight: 900; white-space: nowrap; }
.sp4-version-badge.is-static { border-color: rgba(199,255,89,.5); color: var(--accent); }
.sp4-system-node details, .sp4-profile-card details { border-top: 1px solid var(--line); }
.sp4-system-node summary, .sp4-profile-card summary { padding: 10px 13px; color: #c8d2df; font-size: 8px; font-weight: 850; cursor: pointer; }
.sp4-definition-list { display: grid; gap: 6px; padding: 0 12px 12px; }
.sp4-definition-row { padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(4,8,12,.5); }
.sp4-definition-row span, .sp4-definition-row code { display: block; }
.sp4-definition-row span { color: var(--muted); font-size: 7px; text-transform: capitalize; }
.sp4-definition-row code { margin-top: 4px; overflow-wrap: anywhere; color: #dce5f1; font: 8px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: pre-wrap; }
.sp4-version-row { display: grid; grid-template-columns: auto auto minmax(0,1fr); gap: 8px; align-items: center; margin: 0 12px 12px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 8px; }
.sp4-version-row span { color: var(--accent); }
.sp4-version-row code { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.sp4-artifact-preview { max-height: 310px; margin: 0 12px 12px; padding: 11px; overflow: auto; border: 1px solid rgba(199,255,89,.22); border-radius: 8px; color: #dce5f1; background: #070a0e; font: 8px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: pre-wrap; }
.sp4-artifact-meta { display: grid; gap: 6px; margin: 0 12px 10px; }
.sp4-artifact-meta div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 8px; font-size: 7px; }
.sp4-artifact-meta dt { color: var(--muted); }
.sp4-artifact-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.sp4-preview-empty { margin: 0 12px 12px; padding: 10px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 8px; text-align: center; }
.sp4-provider-context { display: grid; grid-template-columns: minmax(280px,1fr) minmax(280px,.8fr) minmax(300px,1.2fr); gap: 16px; align-items: end; }
.sp4-provider-context small { color: #9ce8e4; font-size: 7px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.sp4-provider-context h3 { margin: 5px 0 0; font-size: 16px; }
.sp4-provider-context p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.sp4-provider-context label { display: grid; gap: 6px; color: var(--muted); font-size: 8px; }
.sp4-provider-context select { width: 100%; min-height: 39px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #090d12; }
.sp4-pointer-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.sp4-pointer-summary > span { padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.sp4-pointer-summary strong { display: block; margin-top: 5px; font-size: 8px; line-height: 1.4; }
.sp4-profile-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.sp4-profile-card { overflow: hidden; border: 1px solid rgba(255,180,80,.3); border-top: 2px solid #f7b450; border-radius: 12px; background: rgba(13,18,25,.98); }
.sp4-profile-card > header { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.sp4-profile-card > header small, .sp4-profile-card > header h3, .sp4-profile-card > header code { display: block; }
.sp4-profile-card > header small { color: #f7c47e; font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.sp4-profile-card > header h3 { margin: 5px 0; font-size: 13px; }
.sp4-profile-card > header code { color: var(--muted); font-size: 7px; }
.sp4-profile-card > header > span { height: fit-content; padding: 5px 7px; border: 1px solid rgba(255,180,80,.4); border-radius: 999px; color: #f7c47e; font-size: 7px; font-weight: 900; }
.sp4-assignment-status { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 11px 12px 0; }
.sp4-assignment-status span { padding: 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 7px; text-align: center; }
.sp4-assignment-status span.is-active { border-color: rgba(199,255,89,.55); color: var(--accent); background: rgba(199,255,89,.05); }
.sp4-profile-card > dl { display: grid; gap: 6px; padding: 11px 12px; }
.sp4-profile-card > dl div { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 8px; font-size: 8px; }
.sp4-profile-card dt { color: var(--muted); }
.sp4-profile-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.sp4-profile-card > footer { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 12px; border-top: 1px solid var(--line); }
.sp4-profile-card > footer button { min-width: 0; min-height: 36px; border: 1px solid var(--line); border-radius: 7px; color: #9ce8e4; background: rgba(100,215,209,.035); font-size: 8px; font-weight: 850; cursor: pointer; }
.sp4-profile-card > footer button.is-users { color: var(--accent); background: rgba(199,255,89,.035); }
.sp4-profile-card > footer button.is-actionable:hover { border-color: currentColor; background: rgba(100,215,209,.11); }
.sp4-profile-card > footer button.is-actionable.is-users:hover { background: rgba(199,255,89,.11); }
.sp4-profile-card > footer button.is-current { border-color: rgba(199,255,89,.72); color: var(--accent); background: rgba(199,255,89,.12); box-shadow: inset 0 0 0 1px rgba(199,255,89,.12); cursor: default; opacity: 1; }
.sp4-profile-card > footer button.is-unavailable { border-color: rgba(119,130,145,.22); color: #7e8998; background: rgba(119,130,145,.035); cursor: not-allowed; opacity: 1; }
@media (max-width: 1250px) {
  .sp4-system-node-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .sp4-provider-context { grid-template-columns: 1fr 1fr; }
  .sp4-provider-context > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .sp4-system-node-grid, .sp4-profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .library-node-list.is-sp4-system { padding: 20px 14px 70px; }
  .sp4-system-node-grid, .sp4-profile-grid, .sp4-provider-context, .sp4-pointer-summary { grid-template-columns: 1fr; }
  .sp4-provider-context > div:first-child { grid-column: auto; }
}
.sp4-line-trace { display: grid; gap: 7px; margin: 0 12px 12px; }
.sp4-line-trace > div { display: grid; grid-template-columns: 48px minmax(80px,.55fr) minmax(120px,1.45fr); gap: 8px; align-items: start; padding: 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 7px; }
.sp4-line-trace span { color: #9ce8e4; }
.sp4-line-trace code { overflow-wrap: anywhere; color: var(--muted); white-space: normal; }
.sp4-artifact-status { margin: 0 12px 12px; color: var(--muted); font-size: 7px; }
.sp4-profile-version-select { display: grid; gap: 6px; margin: 0 12px 12px; color: var(--muted); font-size: 8px; }
.sp4-profile-version-select select { width: 100%; min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #090d12; }
@media (max-width: 640px) {
  .sp4-line-trace > div { grid-template-columns: 1fr; }
}
