.entity-workspace{display:grid;grid-template-columns:var(--entity-sidebar-width,250px) 8px minmax(0,1fr);gap:8px;align-items:start;min-width:0}
body main.entity-page{padding:16px;max-width:1600px;margin-inline:auto}
.entity-browser{position:sticky;top:calc(var(--nav-height) + 16px);height:calc(100dvh - var(--nav-height) - 32px);display:flex;flex-direction:column;overflow:hidden;min-width:0}
.entity-browser-head,.entity-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line)}
.entity-browser-head h2{font-size:15px;margin:0}.entity-node-count{font-size:12px;color:var(--muted);white-space:nowrap}
.entity-filter{padding:10px 12px 4px;display:grid;gap:6px}.entity-scheme-label{display:grid;grid-template-columns:52px minmax(0,1fr);gap:6px;align-items:center;font-size:12px;color:var(--muted)}
.entity-scheme{width:100%;min-width:0;height:30px;padding:4px;border:1px solid var(--line);border-radius:5px;background:white;font-size:12px}
.entity-filter .chart-search{grid-template-columns:52px minmax(0,1fr)}.entity-query-help{font-size:11px;color:var(--muted)}.entity-query-help summary{cursor:pointer}.entity-query-help p{line-height:1.7;margin:6px 0}
.entity-validation{margin:0;font-size:12px;color:#b23d3d;line-height:1.6}.entity-validation:empty{display:none}
.entity-tree-tools{display:flex;gap:12px;padding:6px 12px;border-bottom:1px solid var(--line)}.entity-tree-tools button{font-size:12px;padding:4px 0}.entity-tree-tools [data-reset]{margin-left:auto}
.entity-tree{overflow:auto;flex:1;min-height:0;padding:6px;overscroll-behavior:contain}.entity-tree ul{list-style:none;margin:0;padding:0}.entity-node-row{display:flex;align-items:center;gap:4px;padding:3px 8px 3px calc(4px + var(--node-depth)*8px);min-height:32px;border-radius:5px}.entity-node-row:hover{background:#f4f7f5}
.entity-tree [aria-selected=true]>.entity-node-row{background:var(--pale);color:var(--green)}.entity-toggle,.entity-leaf{width:22px;flex-shrink:0;text-align:center;color:var(--muted)}.entity-toggle{padding:0;height:30px;border:0;background:transparent;cursor:pointer;font-size:15px}
.entity-node-name{flex:1;min-width:0;text-align:left;padding:4px 0;background:transparent;border:0;color:inherit;font-size:13px;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}.entity-node-row input{width:16px;height:16px;flex-shrink:0;accent-color:var(--green);margin-left:5px;cursor:pointer}.entity-node-row input:disabled{cursor:default;opacity:.4}
.entity-detail{min-width:0;overflow:hidden}.entity-detail-head{align-items:flex-start}.entity-detail-head h1{font-size:20px;margin:0;line-height:1.5;overflow-wrap:anywhere}.entity-selection-status{font-size:12px;color:var(--muted);margin:4px 0 0}.entity-detail-head>button{font-size:12px;white-space:nowrap;padding:8px 0}
.entity-selected{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px}.entity-selected:not(:empty){padding-block:12px}.entity-chip{border:1px solid #cee0d4;border-radius:5px;padding:6px 8px;color:var(--green);background:var(--pale);font-size:12px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.attribute-table-scroll{overflow-x:auto;padding:0 16px}.entity-attributes{border-collapse:collapse;width:100%;table-layout:fixed;font-size:13px;line-height:1.8}.entity-attributes th,.entity-attributes td{padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere;white-space:normal}.entity-attributes th:first-child{width:145px;color:var(--muted);font-weight:400;background:#fafcfb}.entity-attributes thead th{color:var(--green);font-weight:600;background:#f6faf7}.entity-attributes small{display:block;font-weight:400;color:var(--muted);font-size:11px}.entity-attributes summary{cursor:pointer;color:var(--green)}
.entity-scope-note{padding:14px 16px;margin:0;color:var(--muted);font-size:11px;line-height:1.8}.entity-empty{padding:18px 12px;color:var(--muted);font-size:13px;line-height:1.8}
.entity-section{border-top:1px solid var(--line);padding-bottom:8px}.entity-section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:16px}.entity-section-head h2,.entity-section-head h3,.entity-section-head h4{margin:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere}.entity-section-head h4{font-size:13px}.entity-source-links{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;line-height:1.8;min-width:0}.entity-source-links a{color:var(--green);overflow-wrap:anywhere}.entity-introduction,.entity-programme>p{padding:0 16px;white-space:pre-wrap;font-size:13px;line-height:1.9}.entity-programme+.entity-programme{border-top:1px dashed var(--line)}.entity-preparation{padding:20px 16px;font-size:13px;line-height:1.9;color:var(--muted)}.entity-preparation h2{margin-top:0;font-size:17px;color:var(--ink)}
.entity-programme>summary{padding:12px 16px;cursor:pointer;font-size:13px;line-height:1.7;color:var(--green);overflow-wrap:anywhere}.entity-section .attribute-table-scroll{max-height:none;overflow-x:auto}.entity-section .entity-attributes thead{position:sticky;top:0;background:var(--paper,#fff);z-index:1}
.entity-programme-tree{padding:0 16px 12px}.entity-programme-group{border:1px solid var(--line);border-radius:6px;margin-bottom:8px;overflow:hidden}.entity-programme-group>summary{padding:12px;cursor:pointer;color:var(--green);background:#f6faf7;font-size:13px;font-weight:600;line-height:1.8;overflow-wrap:anywhere}.entity-programme-group>summary>span{margin-left:10px;font-size:11px;font-weight:400;color:var(--muted)}.entity-programme-children{margin-left:16px;border-left:1px solid #d6e3dc}.entity-programme-rank{display:inline-block;margin-left:8px;font-size:11px;color:var(--muted)}
.entity-resizable-table thead th{position:relative;min-width:0;padding-right:18px}.entity-resizable-table th:first-child{width:auto}.entity-column-resizer{position:absolute;inset:0 -4px 0 auto;width:9px;min-height:0;padding:0;cursor:col-resize;touch-action:none;z-index:2;border-radius:0}.entity-column-resizer::after{content:'';position:absolute;inset:8px 4px;background:#cfded5;width:1px}.entity-column-resizer:hover::after,.entity-column-resizer.is-resizing::after{background:var(--green);width:2px}.entity-column-resizer.is-resizing{user-select:none}.entity-column-help{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0;padding:0;border:1px solid #8ca79a;border-radius:50%;font-size:11px;line-height:1;color:var(--green);vertical-align:middle;cursor:help}.entity-column-tooltip{position:fixed;z-index:200;width:340px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:12px 14px;border:1px solid #cfded5;border-radius:8px;background:white;box-shadow:0 6px 28px #163b2829;font-size:12px;line-height:1.8;color:var(--ink);white-space:normal}.entity-column-tooltip[hidden]{display:none}
body.components-page.entity-gallery .component-main{margin-right:0}.entity-gallery .component-defaults{display:none}.components-page .entity-workspace{grid-template-columns:var(--entity-sidebar-width,250px) 8px minmax(0,1fr)}.components-page .entity-browser{height:650px;position:static}.components-page #attribute-table-preview{padding:0;overflow:hidden}
@media(max-width:1100px){.entity-workspace{grid-template-columns:var(--entity-sidebar-width,240px) 8px minmax(0,1fr)}.entity-attributes th:first-child{width:110px}}
@media(max-width:760px){body main.entity-page{padding:12px}.entity-workspace,.components-page .entity-workspace{grid-template-columns:minmax(0,1fr);gap:12px}.entity-browser,.components-page .entity-browser{position:static;height:auto;max-height:none;min-height:260px}.entity-tree{min-height:120px;max-height:280px;flex:auto}.entity-node-row{min-height:44px}.entity-node-name{font-size:14px;min-height:38px}.entity-toggle{height:38px;width:26px}.entity-node-row input{width:20px;height:20px}.entity-filter input,.entity-scheme{height:44px;font-size:16px}.entity-tree-tools button{min-height:36px}.entity-attributes{min-width:350px}.entity-attributes:has(th:nth-child(3)){min-width:590px}.entity-attributes:has(th:nth-child(4)){min-width:760px}.entity-detail-head h1{font-size:18px}.entity-detail{scroll-margin-top:calc(var(--nav-height) + 12px)}}

.entity-section-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.entity-section-title button{font-size:12px}.entity-section-body[hidden]{display:none}.entity-resizable-table[data-ranking-table] th,.entity-resizable-table[data-ranking-table] td{padding:10px 8px}.entity-resizable-table[data-ranking-table] thead th{padding-right:12px}

.entity-browser-head{padding:12px}.entity-filter .chart-search input{height:30px;padding:4px 6px;font-size:12px}.entity-course-list{margin:8px 0;padding-left:18px}.entity-programme-comparison td{white-space:normal}.entity-programme-comparison h4{font-size:13px;margin:0}.entity-programme-comparison .entity-scope-note{padding:4px 0}
@media(max-width:760px){.entity-filter .chart-search input{height:44px;font-size:16px}}

.entity-sidebar-resizer{position:sticky;top:calc(var(--nav-height) + 16px);height:calc(100dvh - var(--nav-height) - 32px);cursor:col-resize;touch-action:none;border-radius:4px;background:transparent}.entity-sidebar-resizer::after{content:'';position:absolute;left:3px;top:0;bottom:0;width:2px;background:#d5e0d9}.entity-sidebar-resizer:hover::after,.entity-sidebar-resizer:focus-visible::after{background:var(--green)}.entity-associated-group{margin:0 16px 10px;border:1px solid var(--line);border-radius:6px}.entity-associated-group>summary{padding:10px 12px;background:#f6faf7;color:var(--green);cursor:pointer;font-size:13px}.entity-associated-programme{padding:0 12px 12px;font-size:13px;line-height:1.8}.entity-associated-programme+.entity-associated-programme{border-top:1px solid var(--line)}.entity-associated-programme .entity-section-head{padding:12px 0 0}.entity-programme-actions{display:flex;gap:12px;align-items:center;font-size:12px}.entity-programme-actions label{display:flex;align-items:center;gap:4px}.entity-course-preview summary{cursor:pointer;color:var(--green)}.entity-course-preview p{font-size:11px;color:var(--muted)}
@media(max-width:760px){.entity-sidebar-resizer{display:none}}
