.level-badge{display:inline-flex;font-size:10px;line-height:1.7;padding:1px 6px;border:1px solid var(--border,#e0e2dd);border-radius:4px;color:var(--muted,#7a8079);white-space:nowrap;font-weight:500}
/* A quiet outline for navigation; full activity details remain in the work pane. */
.tree-heading{padding:15px 16px 12px;border-bottom:1px solid var(--line);margin-bottom:8px}
.hierarchy-count{color:var(--subtle);font-size:11px;font-weight:500}
.tree-tools{display:flex;gap:14px;margin-top:10px}.tree-tools button{font-size:10px;color:var(--muted);padding:2px 0}.tree-tools button:hover{color:var(--green);background:transparent}
.tree-row{display:flex;align-items:flex-start;min-width:0;margin:2px 8px;border-radius:6px;position:relative}
.tree-row.selected{background:var(--mint)}.tree-row.selected:before{content:'';position:absolute;left:0;top:13px;bottom:13px;width:2px;background:var(--green);border-radius:2px}
.tree-row:hover{background:color-mix(in srgb,var(--mint) 55%,transparent)}.tree-row.selected:hover{background:var(--mint)}
.tree-card{flex:1;min-width:0}
.tree-item{display:block;width:100%;min-width:0;padding:11px 10px 11px 2px;border:0;text-align:left;border-radius:5px;color:var(--ink);background:transparent}
.tree-item:hover:not(:disabled){background:transparent}.tree-item:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.tree-item-main{display:flex;align-items:baseline;gap:10px;line-height:1.6}.tree-item-name{font-size:12px;font-weight:500;flex:1;min-width:0;overflow-wrap:anywhere}.tree-item.selected .tree-item-name{color:var(--green);font-weight:600}
.tree-item-phase{font-size:9px;font-weight:400;flex-shrink:0;color:var(--muted);max-width:90px;text-align:right}.tree-item-phase.active{color:var(--green)}
.tree-item-meta{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:10px;line-height:1.6;color:var(--muted)}.tree-item-context{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-status-note{color:var(--subtle)}.tree-attention{color:var(--gold);font-size:9px;flex-shrink:0}.tree-attention:before{content:'';display:inline-block;width:4px;height:4px;border-radius:50%;background:currentColor;margin-right:4px;vertical-align:middle}
.tree-toggle,.tree-leaf{width:24px;height:28px;flex:none;margin-top:8px}.tree-toggle{display:grid;place-items:center;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);cursor:pointer}.tree-toggle svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.tree-toggle[aria-expanded="true"] svg{transform:rotate(90deg)}.tree-toggle:hover{background:var(--mint);color:var(--green)}.tree-toggle:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.tree-children{margin-left:20px;border-left:1px solid color-mix(in srgb,var(--line) 65%,transparent)}.tree-children[hidden]{display:none}.tree-children .tree-row{margin-left:3px}.ancestor-context>.tree-row .tree-item{opacity:.65}.independent-title{padding:16px 16px 8px;margin-top:6px;font-size:10px;color:var(--muted);border-top:1px solid var(--line)}
#activity-list>.tree-branch{margin-bottom:6px}
.hierarchy-context{margin:0 0 20px}.hierarchy-path{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;font-size:11px;color:var(--muted,#7a8079)}.hierarchy-path button{border:0;background:none;color:inherit;padding:0;font:inherit;cursor:pointer;text-align:left}.end-criteria{font-size:12px;line-height:1.8;color:var(--muted,#7a8079)}.end-criteria strong{color:var(--text,#35433b);margin-right:6px}
.fixture-section{border:1px solid var(--border,#e0e2dd);border-radius:8px;margin:12px 0;overflow:hidden}.fixture-section .fixture-heading{padding:13px 15px;font-size:12px;font-weight:600;line-height:1.6}.fixture-section .fixture-heading span{font-size:10px;color:var(--muted,#7a8079);font-weight:400;margin-left:8px}.fixture-section>p,.fixture-section>small{display:block;margin:12px 15px;font-size:12px;line-height:1.8}.fixture-section .related-row{padding:12px 15px}.fixture-section .related-row strong{font-size:12px}.fixture-section .related-row small{font-size:10px}
.structure-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;padding:10px 15px;border-top:1px solid var(--border,#e0e2dd)}.structure-row small{font-size:10px;color:var(--muted,#7a8079)}.entity-link{display:inline-flex;align-items:center;gap:7px;border:0;border-radius:4px;background:transparent;color:var(--text,#35433b);font:inherit;font-size:12px;padding:4px 0;cursor:pointer;text-align:left}.entity-link:hover{text-decoration:underline}
.fixture-props{margin:0;padding:0 15px 8px;font-size:12px}.fixture-props>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:12px;border-top:1px solid var(--border,#e0e2dd);padding:10px 0;line-height:1.8}.fixture-props dt{color:var(--muted,#7a8079)}.fixture-props dd{margin:0;overflow-wrap:anywhere}.content-record{padding:12px 15px;border-top:1px solid var(--border,#e0e2dd);font-size:12px}.content-record p{line-height:1.8;color:var(--muted,#7a8079)}.content-record .fixture-props{padding:0}.unknown-value{color:#ad8942}.context-alert{padding:12px;background:rgba(180,145,68,.09);border-left:2px solid #ad8942;font-size:12px;line-height:1.8}
.catalog-tabs{display:flex;gap:8px;margin-bottom:15px}.catalog-row{width:100%;display:flex;gap:12px;align-items:center;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--border,#e0e2dd);padding:12px 2px;color:var(--text,#35433b);cursor:pointer}.catalog-row strong{display:block;font-size:13px}.catalog-row small{display:block;margin-top:5px;font-size:11px;color:var(--muted,#7a8079)}#catalog-results{max-height:55vh;overflow:auto}#entity-search-results:not(:empty){padding:12px 0;display:flex;flex-wrap:wrap;gap:15px}.activity-card .card-sub{flex-wrap:wrap;gap:5px}.sidebar .discover{font-size:11px}
:root[data-theme="dark"] .fixture-section,:root[data-theme="dark"] .fixture-props>div,:root[data-theme="dark"] .structure-row,:root[data-theme="dark"] .tree-children,:root[data-theme="dark"] .catalog-row,:root[data-theme="dark"] .level-badge{border-color:#354039}:root[data-theme="dark"] .entity-link,:root[data-theme="dark"] .catalog-row,:root[data-theme="dark"] .end-criteria strong{color:#dce3db}
@media(max-width:760px){.activity-column #activity-list{display:block!important;max-height:440px;overflow:auto}.tree-card .activity-card{min-width:0}.fixture-props>div{grid-template-columns:80px minmax(0,1fr)}.hierarchy-path{gap:4px}}
@media(max-width:760px){.tree-card .activity-card{max-width:none;width:100%}.sidebar nav{overflow-x:auto}.sidebar nav .nav-item{flex:0 0 auto;width:auto}.mobile-preview{gap:8px}.mobile-preview span{margin-right:auto}}

/* Keep entity navigation and subscription as separate keyboard actions. */
.catalog-entry{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--border,var(--line))}.catalog-entry .catalog-row{flex:1;min-width:0;border-bottom:0}.catalog-entry .catalog-row>span{min-width:0;overflow-wrap:anywhere}.catalog-entry>.follow-button{flex-shrink:0;margin-right:4px}.catalog-entry:focus-within{background:var(--surface-soft,rgba(120,145,100,.06))}

/* Range is a compact title control, not a separate content row. */
.page-title-row {display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.activity-scope {display:inline-flex;align-items:center;margin:0;padding:0;flex:none;}
.activity-scope select {max-width:100%;padding:7px 26px 7px 10px;border:1px solid var(--line);border-radius:6px;background-color:var(--paper);color:var(--subtle);font-size:12px;line-height:1.4;cursor:pointer;}
.activity-scope select:focus-visible {outline:2px solid var(--green);outline-offset:2px;}
@media(max-width:760px){.page-title-row {gap:10px;}.activity-scope select {font-size:11px;padding:6px 20px 6px 8px;}.page-heading:has(.activity-scope:not([hidden])) {gap:12px;}.page-heading:has(.activity-scope:not([hidden])) .new-act {flex-shrink:0;}}
