:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202825;background:#f4f5f1;font-size:14px;font-synthesis:none;--green:#245c46;--line:#dfe4dc;--muted:#6e786f;--mono:ui-monospace,SFMono-Regular,Consolas,monospace}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,select{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--green)}button,input,textarea,select{outline-offset:3px}button:focus-visible,a:focus-visible{outline:2px solid #3e8463}input:focus,textarea:focus,select:focus{outline:2px solid #80aa91;border-color:transparent}button{transition:background .12s}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{height:70px;background:#182e25;color:#edf4eb;display:flex;align-items:center;padding:0 28px;gap:28px}.brand{color:inherit;text-decoration:none;font-weight:600;letter-spacing:-.5px;font-size:19px;display:flex;align-items:center;gap:11px}.brand-mark{font:24px Georgia,serif;background:#caddb4;color:#203c2c;width:32px;height:32px;text-align:center;border-radius:7px}.nav-current{align-self:stretch;display:flex;align-items:center;border-bottom:3px solid #bdd0a7;padding:0 13px;font-size:13px}.local-label{margin-left:auto;color:#bdd0c1;display:flex;align-items:center;gap:8px;font-size:12px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#91b181;flex-shrink:0}.version{font:11px var(--mono);color:#b7c6bb}.version strong{color:#fff}.badge{font:10px var(--mono);border:1px solid #78917a;border-radius:4px;padding:4px 7px}.notice{padding:12px 28px;border-bottom:1px solid var(--line);background:#e8efdf;color:#31543c;font-size:13px}.notice.error{background:#fbece7;color:#953e27}.workspace{display:grid;grid-template-columns:290px minmax(420px,1fr) 300px;min-height:calc(100dvh - 70px)}.outline{background:#f4f5f1;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:24px 16px 0}.pane-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.eyebrow{text-transform:uppercase;letter-spacing:1.4px;font-size:10px;font-weight:650;color:var(--muted)}.text-button{border:0;background:transparent;font-size:12px;padding:4px;color:var(--green)}#scheme{width:100%;font-size:19px;font-weight:600;background:transparent;border:0;padding:3px 0}select option{font-size:14px}.outline-meta{display:flex;justify-content:space-between;font:10px var(--mono);color:var(--muted);margin:12px 0 22px}.search{display:flex;align-items:center;gap:8px;border:1px solid #d9dfd4;background:#fff;border-radius:6px;padding:8px 10px}.search>span{font-size:22px;line-height:1}.search input{border:0;width:100%;min-width:0;outline:none;font-size:12px;background:transparent}.search kbd{font:10px var(--mono);border:1px solid var(--line);border-radius:3px;padding:1px 5px;color:var(--muted)}.tree-caption{display:flex;justify-content:space-between;font:9px var(--mono);color:#8b9489;letter-spacing:1px;margin:22px 7px 9px}.tree{flex:1;min-height:180px;padding-bottom:30px}.tree-item{display:flex;align-items:center;gap:3px;min-height:38px;border-radius:5px;margin:2px 0;padding-right:9px}.tree-item.selected{background:#e0e9d8;box-shadow:inset 3px 0 var(--green)}.tree-item:hover{background:#e9ede4}.tree-pick{border:0;background:transparent;min-width:0;flex:1;text-align:left;font-size:12px;padding:9px 2px;overflow-wrap:anywhere}.selected .tree-pick{font-weight:650;color:#264733}.tree-toggle{background:none;border:0;padding:6px 3px;width:19px;font-size:11px;color:#85907f}.status-dot{width:6px;height:6px;border-radius:50%;background:#6c8f61;flex-shrink:0}.status-dot.provisional{background:transparent;border:1px solid #a58e5b}.outline-footer{border-top:1px solid var(--line);padding:18px 0 8px}.outline-footer p{font-size:10px;color:#899183;text-align:center;margin:15px 0}.button{background:#fff;border:1px solid #d2dacd;padding:9px 13px;border-radius:5px;font-size:12px;font-weight:550;white-space:nowrap}.button.primary{background:var(--green);border-color:var(--green);color:#fff}.button.full{width:100%;text-align:left}.button.small{padding:6px 9px;font-size:11px}.detail{background:#fff;min-width:0}.term-heading{padding:31px 34px 22px;border-bottom:1px solid var(--line)}.breadcrumbs{font-size:11px;color:var(--muted);margin-bottom:20px;line-height:1.8}.breadcrumbs span{margin:0 7px;color:#abb2a7}.title-line{display:flex;align-items:center;gap:12px;margin:0 0 13px}.title-line h1{font-size:29px;letter-spacing:-1px;line-height:1.2;margin:0;overflow-wrap:anywhere}.status-pill{font-size:10px;color:#567047;background:#eef2e7;padding:4px 8px;border-radius:4px}.status-pill.provisional{color:#977637;background:#f8f3e6}.term-id{font:10px var(--mono);color:#889280;overflow-wrap:anywhere;line-height:1.8}.term-actions{display:flex;gap:8px;margin-top:22px;flex-wrap:wrap}.usage-note{font-size:10px;color:#8b9385;align-self:center;margin-left:auto}.term-body{padding:26px 34px 32px}.field{display:block;margin-bottom:22px}.field-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:11px;font-weight:650;color:#596652;letter-spacing:.3px}.field input:not([type=checkbox]),.field textarea,.field select{width:100%;border:1px solid #d9dfd5;border-radius:5px;padding:10px 11px;background:#fcfdfb;font-size:13px}.field textarea{resize:vertical;line-height:1.65;min-height:100px}.help{font-size:11px;line-height:1.7;color:#89917f;margin:7px 0 0}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.section-line{border-top:1px solid var(--line);padding-top:22px;margin-top:8px}.relations-list{display:flex;flex-direction:column;gap:7px;margin:0 0 10px}.relation-row{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#f5f7f1;border-radius:4px;font-size:12px}.relation-type{font:9px var(--mono);color:#577447;background:#e5ecdd;padding:4px 6px;border-radius:3px}.relation-row .relation-pick{background:none;border:0;padding:0;text-align:left;color:#31543c;flex:1;overflow-wrap:anywhere}.relation-row .remove{border:0;background:none;color:#8a9280;padding:3px;font-size:16px}.relation-add{display:flex;gap:7px;flex-wrap:wrap}.relation-add select{border:1px solid #d9dfd5;border-radius:4px;background:#fff;font-size:11px;padding:7px;min-width:0}.relation-add .target{flex:1;width:130px}.alias-list{display:flex;flex-wrap:wrap;gap:5px}.alias{font:10px var(--mono);padding:5px 7px;border:1px solid var(--line);border-radius:4px;color:#737f69;overflow-wrap:anywhere;max-width:100%}.save-bar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px;gap:10px;margin-top:24px}.save-state{font-size:11px;color:#89917f}.save-buttons{display:flex;gap:8px}.form-error{font-size:12px;color:#a3422c;line-height:1.7;overflow-wrap:anywhere}.history{background:#f8f9f5;border-left:1px solid var(--line);display:flex;flex-direction:column}.history-heading{padding:27px 22px 15px}.history h2{font-size:18px;letter-spacing:-.3px;margin:10px 0 8px}.history h2 span{font:10px var(--mono);background:#e8edde;color:#798568;border-radius:4px;padding:3px 5px;vertical-align:middle;margin-left:5px}.history-heading p{font-size:11px;color:#8c9582;margin:0}.history-filter{font-size:11px;display:flex;align-items:center;gap:7px;color:var(--muted);padding:0 20px 20px;border-bottom:1px solid var(--line)}input[type=checkbox]{accent-color:var(--green)}.changes{padding:6px 22px 20px;flex:1;max-height:calc(100dvh - 270px);overflow-y:auto}.change-card{padding:17px 0;border-bottom:1px solid #e6eadf}.change-top{display:flex;justify-content:space-between;gap:8px;font:9px var(--mono);color:#8b957e;margin-bottom:8px}.change-kind{font-size:10px;text-transform:capitalize;letter-spacing:.2px;color:#5d7849}.change-kind.breaking{color:#a06b34}.change-label{font-size:12px;font-weight:550;margin:6px 0;overflow-wrap:anywhere}.change-summary{font-size:11px;color:#87917b;line-height:1.65}.change-view{font-size:10px;color:#66824e;border:0;background:none;padding:8px 0 0;text-decoration:underline;text-underline-offset:3px}.history-footer{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);padding:18px 22px;font-size:10px;color:#839074}.empty{max-width:420px;margin:110px auto;padding:24px;text-align:center;color:var(--muted)}.empty h1{font-size:24px;color:#364c37;letter-spacing:-.7px}.empty p{line-height:1.8;font-size:13px}.empty-symbol{font:48px Georgia,serif;color:#69855b}.empty .button{margin-top:16px}.tree-empty{font-size:12px;line-height:1.8;color:var(--muted);padding:24px 8px}.dirty-tag{color:#a37b3d}.history-description{color:#52634a;line-height:1.7;font-size:13px}.revision-json{font:11px/1.65 var(--mono);background:#f4f6ef;padding:14px;border-radius:5px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto}dialog{border:1px solid var(--line);border-radius:10px;max-width:540px;width:calc(100% - 32px);padding:28px;box-shadow:0 20px 90px #10271c33}dialog::backdrop{background:#142c2359;backdrop-filter:blur(2px)}.dialog-heading{margin-bottom:24px}.dialog-heading h2{font-size:23px;letter-spacing:-.6px;margin:10px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}dialog>p{font-size:13px;line-height:1.8}
@media(min-width:1600px){.workspace{grid-template-columns:320px minmax(420px,1fr) 330px}.term-heading{padding:40px 50px 25px}.term-body{padding:30px 50px;max-width:1000px}}
@media(max-width:1150px){.workspace{grid-template-columns:250px minmax(360px,1fr)}.history{grid-column:1/-1;border-left:0;border-top:1px solid var(--line)}.changes{max-height:340px;display:grid;grid-template-columns:repeat(3,1fr);gap:0 25px}.history-heading{padding-top:20px}.history-filter{padding-bottom:10px}.local-label{display:none}.version{margin-left:auto}.term-heading,.term-body{padding-left:25px;padding-right:25px}}
@media(max-width:650px){.topbar{height:60px;padding:0 15px;gap:12px}.brand{font-size:16px}.brand-mark{display:none}.nav-current{font-size:11px;padding:0 6px}.badge{font-size:8px}.version{font-size:9px}.workspace{display:flex;flex-direction:column;min-height:calc(100dvh - 60px)}.outline{padding:18px 16px 0;border-right:0;border-bottom:1px solid var(--line)}.tree{max-height:260px;overflow:auto;min-height:100px;padding-bottom:8px}.outline-footer{padding:12px 0}.outline-footer p{display:none}.outline-meta{margin-bottom:12px}.tree-caption{margin-top:15px}.term-heading,.term-body{padding:24px 20px}.title-line h1{font-size:25px}.usage-note{width:100%;margin:6px 0 0}.two-columns{grid-template-columns:1fr;gap:0}.changes{grid-template-columns:1fr 1fr;padding:0 20px 20px;gap:0 20px}.save-bar{flex-wrap:wrap}.empty{margin:30px auto}.term-id{font-size:9px}}
.relation-add input{border:1px solid #d9dfd5;border-radius:4px;background:#fff;font-size:11px;padding:7px;min-width:0}
.field .relation-add select,.field .relation-add input{width:auto;min-width:0}
.field .relation-add .target{flex:1;width:130px}
@media(min-width:1151px){body{height:100dvh;display:flex;flex-direction:column}.topbar,.notice{flex-shrink:0}.workspace{flex:1;min-height:0;overflow:hidden}.outline,.history{min-height:0}.tree{overflow-y:auto;min-height:0}.detail{overflow-y:auto}.changes{min-height:0;max-height:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.scheme-tools{display:flex;justify-content:space-between;margin:-8px 0 15px;gap:8px}.scheme-tools a{text-decoration:none}.breaking-actions{padding-top:12px;border-top:1px solid var(--line)}.breaking-actions .button{border-color:#dcc6a3;color:#866037}.retirement-banner{background:#f8f0df;border:1px solid #e8d7b4;border-radius:5px;padding:12px;margin-top:16px;font-size:12px;line-height:1.7}.tree-item.retired .tree-pick{text-decoration:line-through;color:#899183}.status-dot.retired{background:#b5b7af}.status-pill.retired{background:#eee9df;color:#8b7651}.wide-dialog{max-width:700px;max-height:90dvh;overflow-y:auto}.preview-box{padding:16px;border:1px solid #cbd8be;background:#f3f7ed;border-radius:6px;font-size:12px;line-height:1.7}.preview-box ul{padding-left:20px;max-height:250px;overflow:auto}.preview-box li{margin:6px 0}.import-warnings{background:#fff7e6;color:#7b582c;border-radius:4px;padding:12px;margin:12px 0}.split-term{border-bottom:1px solid var(--line);margin-bottom:18px}.split-term .field{margin-bottom:14px}dialog .section-line{margin-top:20px}
.notation-row{display:grid;grid-template-columns:minmax(70px,1fr) minmax(130px,2fr) 75px 30px;align-items:end;gap:7px}.notation-row label{min-width:0}.notation-row input{min-width:0}.notation-row .help{display:block;margin:0 0 4px}#scheme-notations:not(:empty){margin-bottom:18px}@media(max-width:650px){.notation-row{grid-template-columns:minmax(70px,1fr) minmax(100px,2fr)}.notation-row button{justify-self:end}}

/* Concept-set definition and expansion reuse the taxonomy editor panes. */
#set-form { padding: 28px; max-width: 900px; }
#set-form .detail-heading { padding: 0 0 20px; }
.set-members { padding-left: 24px; }
.set-members li { padding: 8px 0; border-bottom: 1px solid var(--line, #ddd); }
.set-members li span { display: inline-block; min-width: 40%; }
.set-members button { margin-left: 6px; }
#set-expansion a { color: inherit; }
.sets-workspace #sets-list { padding: 12px; }
.sets-workspace .dialog-actions { flex-wrap: wrap; }
.topbar a.text-button { color: #caddb4; }
.sets-workspace #set-scheme { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: white; }

.graph-workspace { grid-template-columns: 250px minmax(400px,1fr) 330px; }
.graph-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.graph-toolbar fieldset { border:0; padding:0; display:flex; flex-wrap:wrap; gap:10px; font-size:12px; }
.graph-toolbar legend { font-size:11px; color:var(--muted); margin-bottom:5px; }
.graph-canvas { padding:20px; }
#graph-scheme { width:100%; padding:9px; border:1px solid var(--line); border-radius:4px; }
#graph-map { width:100%; min-height:440px; background:#fafcf7; border:1px solid var(--line); border-radius:8px; }
.graph-edge { stroke:#829082; stroke-width:1.5; }
.graph-edge.related { stroke:#5d8ca9; }
.graph-edge.opposite { stroke:#b28241; stroke-dasharray:6 4; }
.graph-node { cursor:pointer; }
.graph-node circle { fill:#dce8d2; stroke:#43684c; stroke-width:2; }
.graph-node.focus circle { fill:#245c46; }
.graph-node text { font-size:13px; fill:#203c2c; paint-order:stroke; stroke:#fafcf7; stroke-width:3px; }
.graph-node:focus circle { stroke:#ac6d2b; stroke-width:4; }
.graph-caption { line-height:1.7; }
.graph-inspector { overflow:auto; }
.graph-inspector .changes { overflow:visible; flex:none; }
.graph-inspector h1 { font-size:24px; overflow-wrap:anywhere; }
.graph-relation-group h2 { font-size:13px; text-transform:capitalize; margin:14px 0 4px; }
.graph-relation-group div { display:flex; justify-content:space-between; gap:8px; }
#graph-link-form { padding:20px; border-top:1px solid var(--line); }
#graph-link-form h2 { font-size:16px; }
@media(max-width:1150px){.graph-workspace{grid-template-columns:220px minmax(0,1fr)}.graph-inspector .changes{display:block}}
@media(max-width:650px){.graph-workspace{display:flex}.graph-canvas{padding:16px}#graph-map{min-height:320px}.topbar{gap:10px}.graph-toolbar fieldset{gap:6px}}
.concept-connections { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding-top:16px; padding-bottom:16px; }
.concept-connections h2 { font-size:15px; margin:0 0 10px; }
.concept-connections div { margin:7px 0; line-height:1.8; }
.concept-connections strong { display:inline-block; min-width:75px; font-size:12px; text-transform:capitalize; }
@media(max-width:650px){.topbar{flex-wrap:wrap;height:auto;min-height:60px;padding-top:10px;padding-bottom:10px}.graph-toolbar fieldset{min-width:0}}
.collection-choice { display:flex; gap:8px; align-items:center; padding:6px 0; }
.field .collection-choice input { width:auto; flex:none; }
#import-analysis table { width:100%; border-collapse:collapse; background:white; }
#import-analysis th,#import-analysis td { text-align:left; vertical-align:top; border:1px solid var(--line); padding:8px; }
#import-analysis td ul { margin:0; }
.side-panel{padding:0 22px 14px;border-bottom:1px solid var(--line);margin-bottom:6px}.side-panel h3{margin:0 0 8px}.subscriber{font-size:12px;line-height:1.6;padding:8px 0;border-top:1px solid #e6eadf}.subscriber:first-of-type{border-top:0}.subscriber.held .subscriber-hold{color:#866037}.proposal-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.proposal-row .help{margin:0}.proposal-banner{background:#eef4e6;border:1px solid #cfdcc0;border-radius:5px;padding:12px;margin-top:16px;font-size:12px;line-height:1.7}.proposal-banner code{font-family:var(--mono);font-size:11px;word-break:break-all}.proposal-banner .button{margin-left:6px}.pending-mark{font-size:10px;color:#866037;border:1px solid #e8d7b4;border-radius:9px;padding:0 6px;margin-left:auto}
.source-results{display:grid;gap:2px;margin-top:6px;max-height:220px;overflow-y:auto}.source-option{display:flex;justify-content:space-between;align-items:baseline;gap:10px;text-align:left;background:none;border:1px solid transparent;border-radius:5px;padding:6px 8px;font:inherit;cursor:pointer}.source-option:hover,.source-option:focus-visible{background:#eef4e6;border-color:#cfdcc0}.source-option .help{margin:0;white-space:nowrap}.source-chosen{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start;margin-top:8px;padding:10px;background:#eef4e6;border:1px solid #cfdcc0;border-radius:5px}.source-chosen select{grid-column:1/-1}.source-label{min-width:0;overflow-wrap:anywhere}.source-label .help{display:block;margin:0}

/* Read-only visitors: controls that write are greyed out in place; the top bar shows who is signed in. */
.read-only :is(button, input[type=checkbox], input[type=radio]):disabled, .read-only [data-write] :is(input, select):disabled { opacity: 0.45; cursor: not-allowed; }
.read-only a[data-write] { opacity: 0.45; pointer-events: none; }
.viewer { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: #bdd0c1; font-size: 12px; white-space: nowrap; }
.viewer .text-button { color: #edf4eb; text-decoration: underline; text-underline-offset: 3px; }
.viewer ~ .version { margin-left: 0; }
.read-only .term-body input[readonly], .read-only .term-body textarea[readonly] { background: transparent; }
.read-only [readonly]::placeholder { color: transparent; }
.graph-node:active { cursor:grabbing; }

.graph-frame { position:relative; }
.graph-zoom { position:absolute; top:10px; right:10px; display:flex; gap:4px; }
.graph-zoom .button { min-width:30px; }
#graph-map { touch-action:none; cursor:grab; }
#graph-map.panning { cursor:grabbing; }
.graph-option { display:flex; align-items:center; gap:6px; font-size:12px; }
.graph-export-menu { position:relative; }
.graph-export-menu summary { list-style:none; cursor:pointer; }
.graph-export-menu summary::-webkit-details-marker { display:none; }
.graph-export-list { position:absolute; z-index:5; top:calc(100% + 6px); right:0; width:220px; background:#fff; border:1px solid var(--line); border-radius:6px; box-shadow:0 8px 30px #10271c22; padding:6px; display:flex; flex-direction:column; }
.graph-export-list button { border:0; background:none; text-align:left; font-size:12px; padding:8px 10px; border-radius:4px; }
.graph-export-list button:hover, .graph-export-list button:focus-visible { background:#eef2e7; }
.graph-export-list .help { padding:4px 10px 2px; margin:0; }
