/* Shared reading hierarchy: content 16, controls 14, supporting labels 12. */
:root{--type-body:16px;--type-control:14px;--type-label:12px;--type-caption:11px;--type-title:28px}
.workspace-name{font-size:var(--type-control)}
.map-item-text,.new-map,.sample-entry,.account-entry,.ai-entry{font-size:var(--type-control)}
.breadcrumbs button,.view-toggle button,.map-type-control,.context-toggle{font-size:var(--type-label)}
.workspace-scope,.offline-note,.sync-button,.local-note,.storage-label,.sidebar-help,.public-links,.save-line{font-size:var(--type-caption)}
.depth-active .active-title{font-size:var(--type-title);line-height:1.5;letter-spacing:0;max-height:84px}
.depth-active .active-notes{font-size:var(--type-body);line-height:1.75;max-height:56px}
.depth-active .card-kicker,.depth-active .field-count,.depth-active .card-footer,.depth-active .card-footer button{font-size:var(--type-caption)}
.depth-scene.focus-scene{--card-h:300px}
.depth-active .field-count{bottom:58px}.depth-active .card-footer{bottom:16px}
.depth-neighbor strong{font-size:14px;line-height:1.6}.depth-relation{font-size:10px}
.depth-hint,.depth-root-label,.depth-nav button,.depth-nav span{font-size:var(--type-caption)}
.sheet-head h2{font-size:22px;line-height:1.6}.eyebrow{font-size:var(--type-caption)}
.sheet-body p,.field-input,.type-name-label,.type-sample-option,.menu-action,.search-result strong{font-size:var(--type-control)}
.type-choice strong,.sample-card strong{font-size:var(--type-control)}
.type-choice small,.sample-kind,.sample-meta,.sample-result-count,.sample-card-description,.type-description,.map-limits-note,.sample-copy-note{font-size:var(--type-caption)!important;line-height:1.8!important}
.sample-filters input,.sample-filters select,.primary-action,.secondary-action,.sample-more{font-size:var(--type-control)}
.sample-outline,.sample-sources{font-size:var(--type-control)}
.diagram-node strong{font-size:16px!important;line-height:1.5}.diagram-node small{font-size:12px!important}
.creation-bar button{font-size:14px}.creation-bar .add-sibling{font-size:13px}
@media(max-width:900px),(max-width:1000px) and (max-height:500px){
 :root{--type-title:23px}
 .depth-scene.focus-scene{--card-h:280px}
 .depth-active .active-title{max-height:69px;min-height:36px}
 .depth-active .field-count{bottom:51px;font-size:10px}
 .depth-active .card-footer,.depth-active .card-footer button{font-size:10px}
 .depth-peer strong,.depth-child strong,.depth-grandchild strong,.depth-ancestor strong{font-size:12px}
 .depth-relation{font-size:9px}.depth-nav button{font-size:11px}
 .sheet-head h2{font-size:20px}.field-input,.sample-filters input,.sample-filters select{font-size:16px}
 .type-choice strong,.sample-card strong{font-size:13px}
 .creation-bar button{font-size:13px}.creation-bar .add-sibling{font-size:12px}
}
@media(max-width:900px) and (min-height:521px) and (max-height:700px),(max-width:1000px) and (max-height:500px){
 body:not(.keyboard-open) .depth-scene.focus-scene{--card-h:210px}
 body:not(.keyboard-open) .depth-active .active-title{font-size:21px;max-height:36px}
 body:not(.keyboard-open) .depth-active .active-notes{font-size:16px;max-height:45px;line-height:1.4}
 body:not(.keyboard-open) .depth-active .field-count{font-size:9px;bottom:42px}
 body:not(.keyboard-open) .depth-child{min-height:36px;padding:3px 7px}
 body:not(.keyboard-open) .depth-child .depth-relation{display:none}
 body:not(.keyboard-open) .depth-hint{display:none}
}
.keyboard-open .depth-scene.focus-scene{--card-h:180px}
.keyboard-open .depth-active .active-title{font-size:21px;max-height:42px}
.keyboard-open .depth-active .active-notes{font-size:16px;max-height:36px}

.diagram-node{padding:6px 10px!important}.diagram-node strong{font-size:15px!important;line-height:1.4;-webkit-line-clamp:2}.diagram-node small{font-size:11px!important;line-height:1.3;margin-top:3px!important}.diagram-root strong{font-size:17px!important}.diagram-node.bubble-node{padding:22px!important}
