.artifact-block { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.artifact-block:last-child { margin-bottom: 0; }
.artifact-name { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.artifact-fields { display: flex; flex-direction: column; gap: 7px; }
.af-row { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 10px; font-size: 12px; line-height: 1.6; }
.af-key { color: var(--muted); font-weight: 600; }
.af-val { color: var(--text); word-break: break-word; overflow-wrap: anywhere; min-width: 0; }
.af-val p { margin-bottom: 4px; }
.af-val p:last-child { margin-bottom: 0; }
.af-val code, .dp-level code { font-family: 'Consolas', monospace; background: var(--hover-surface); padding: 1px 5px; border-radius: 4px; font-size: 11px; }
@media (max-width: 900px) { .af-row { grid-template-columns: 1fr; gap: 2px; }
}
.private-lock { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px dashed var(--border); border-radius: 999px; background: var(--input-bg); color: var(--muted); font: inherit; font-size: 11px; line-height: 1.6; cursor: pointer; }
.private-lock:hover { color: var(--text); border-color: var(--muted); }
.private-lock:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.af-locked.is-loading .private-lock { opacity: .6; cursor: progress; }
.lock-ico { flex: none; }
.af-private-open .af-key .lock-ico { color: var(--muted); opacity: .7; margin-right: 4px; vertical-align: -1px; }
.af-locked.is-denied .private-lock, .pv-cell.is-denied .private-lock { cursor: not-allowed; opacity: .75; }
.art-table-wrap { overflow-x: auto; margin-bottom: 4px; }
.art-table { width: max-content; min-width: 100%; table-layout: auto; font-size: 12px; }
.art-table th { white-space: nowrap; }
.art-table th .lock-ico { color: var(--muted); vertical-align: -1px; }
.art-table td { vertical-align: top; min-width: 90px; max-width: 340px; word-break: break-word; overflow-wrap: anywhere; }
.art-table td p { margin-bottom: 3px; }
.art-table td p:last-child { margin-bottom: 0; }
.art-table td code { font-family: 'Consolas', monospace; background: var(--hover-surface); padding: 1px 5px; border-radius: 4px; font-size: 11px; }
.art-table .art-name-cell { min-width: 130px; font-weight: 600; }
.art-table .art-name-cell .title-link { text-align: left; font-weight: 600; }
.art-table .md-list { margin: 0; padding-left: 16px; }
.private-lock-mini { padding: 2px 7px; }
.pv-cell.is-loading .private-lock { opacity: .6; cursor: progress; }
.pv-inline { display: inline-flex; vertical-align: middle; }
.pv-inline.is-loading .private-lock { opacity: .6; cursor: progress; }
.pv-inline.is-denied .private-lock { cursor: not-allowed; opacity: .75; }
.artifact-block { scroll-margin-top: 12px; transition: border-color .3s, box-shadow .3s; }
.artifact-block.is-flash { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.af-locked.is-denied .private-lock:hover { color: var(--muted); border-color: var(--border); }
.tree-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tree-results-head .tree-col-head { margin-bottom: 0; }
.tree-results-head + .tree-chip-leaves { margin-top: 0; }
.tree-col-head { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; margin-bottom: 8px; }
.tree-leaf { margin: 0; }
.tree-leaf-match { box-shadow: 0 0 0 2px var(--accent) inset; }
.tree-leaf-dim { opacity: .35; }
.tree-explorer-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tree-filter-col { display: flex; flex-direction: column; min-width: 0; }
.tree-results-col { min-width: 0; }
@media (max-width: 900px) { .tree-explorer-layout { grid-template-columns: 1fr; }
}
.tree-chip-pool { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.tree-chip-axis { }
.tree-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tree-chip {
  cursor: grab; display: inline-flex; align-items: center; gap: 6px; user-select: none;
  border: 1px solid transparent; transition: all .15s;
}
.tree-chip:hover:not(.tree-chip-disabled) { border-color: currentColor; box-shadow: 0 2px 6px var(--shadow); }
.tree-chip-disabled { opacity: .3; cursor: not-allowed; }
.tree-chip-count { font-size: 9.5px; font-weight: 800; opacity: .75; }
.tree-chip-active {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 48px;
  border: 2px dashed var(--border); border-radius: 10px; padding: 10px 12px; background: var(--hover-surface);
  margin: 10px 0 18px;
}
.tree-chip-placeholder { font-size: 12.5px; color: var(--muted); }
.tree-chip-active-item { cursor: grab; padding-right: 6px; box-shadow: 0 0 0 1px currentColor inset; }
.tree-chip-active-item:active { cursor: grabbing; }
.tree-chip-remove {
  background: none; border: none; cursor: pointer; color: inherit; font-size: 10px; opacity: .7;
  padding: 0 0 0 2px; line-height: 1;
}
.tree-chip-remove:hover { opacity: 1; }
.tree-chip-leaves { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
