.adem-atlas{--ink:#e4eff2;--muted:#9bb1ba;color:var(--ink);background:#0b141b;border:1px solid #30444e;border-radius:8px;margin:16px 0;padding:16px;min-width:0}.adem-atlas *{box-sizing:border-box}.adem-atlas [hidden]{display:none!important}.adem-atlas button,.adem-atlas select,.adem-atlas input{color:var(--ink);background:#14242e;border:1px solid #3c5964;border-radius:5px;padding:9px;max-width:100%}.adem-atlas button{cursor:pointer;margin:3px}.adem-atlas button:focus-visible,.adem-atlas input:focus-visible,.adem-atlas select:focus-visible,.adem-atlas g:focus{outline:3px solid #e5b85c;outline-offset:3px}.adem-atlas button[aria-pressed=true]{background:#255047}.atlas-workspace{display:grid;grid-template-columns:minmax(140px,180px) minmax(0,1fr) minmax(220px,300px);gap:14px;min-width:0}.atlas-workspace>nav{display:flex;flex-direction:column;gap:8px}.atlas-workspace>div{overflow:hidden;min-width:0}.atlas-inspector{max-height:720px;overflow:auto;border-left:1px solid #29434d;padding:10px;overflow-wrap:anywhere}.atlas-inspector h3{margin-top:0}.atlas-inspector output{font-size:24px;font-weight:700;color:#8cd8c2}.adem-atlas pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#071117;padding:10px;border:1px solid #29434d;border-radius:4px;font-size:13px}.atlas-pins,.atlas-note{color:var(--muted);white-space:pre-wrap;font-size:13px}.atlas-warning{color:#e3bd72}.atlas-graph-scroll,.atlas-table-scroll{max-height:650px;overflow:auto;border:1px solid #29434d;background:#081118}.atlas-concept{cursor:pointer}.atlas-concept rect{fill:#172b35;stroke:#779caa;stroke-width:1.3}.atlas-concept.selected rect{fill:#22483f;stroke:#9edac9;stroke-width:3}.atlas-concept text{fill:var(--ink);font:14px system-ui,sans-serif;pointer-events:none}.atlas-edge{fill:none;stroke:#86b7b0;stroke-width:1.5;opacity:.65}.atlas-edge.taxonomy{stroke:#7f98ab;stroke-dasharray:4 4}.atlas-edge.conceptual{stroke:#7fa7a2;opacity:.4}.atlas-edge.formula{stroke:#8dd7bc;stroke-width:2}.adem-atlas table{width:100%;border-collapse:collapse;font-size:13px}.adem-atlas th,.adem-atlas td{border:1px solid #29434d;padding:8px;vertical-align:top;text-align:left;white-space:pre-wrap;min-width:100px}.adem-atlas th{position:sticky;top:0;background:#172933;z-index:1}.adem-atlas td:nth-child(3){min-width:280px;max-width:600px}.atlas-layer-plane{fill:#234c5b;fill-opacity:.12;stroke:#466c7c;stroke-opacity:.6}.atlas-layer-label{fill:#a7c1ce;font:12px system-ui}.atlas-matrix-cell{cursor:pointer}.atlas-matrix-cell circle{fill:#122832;stroke:#9fc6d5;stroke-width:2}.atlas-matrix-cell.known circle{fill:#79d3b6;stroke:#bce8d9}.atlas-matrix-cell text{fill:#dfedf2;font:12px system-ui}.atlas-layer-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.atlas-tabs{margin:12px 0}.adem-atlas svg{touch-action:none}@media(max-width:1100px){.atlas-workspace{grid-template-columns:160px minmax(0,1fr)}.atlas-inspector{grid-column:1/-1;max-height:none;border-left:0;border-top:1px solid #29434d}}@media(max-width:550px){.adem-atlas{padding:9px}.atlas-workspace{grid-template-columns:minmax(0,1fr)}.atlas-inspector{grid-column:auto}.atlas-workspace>nav select[size]{max-height:120px}.adem-atlas td{max-width:250px}}
/* Value diagnostics: brief red pulse; persistent amber marker and warning list.
   This is distinct from any fixed red extra-provider-cost encoding. */
.atlas-value-norms{margin:12px 0;border:1px solid #776844;border-radius:6px;padding:10px}.atlas-value-norms[hidden]{display:none}.atlas-value-norms summary{cursor:pointer;font-weight:600}.atlas-value-norms fieldset{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.atlas-value-norms fieldset>label{display:flex;gap:4px;align-items:center}.atlas-value-norms input[type=number]{width:110px}.atlas-value-norms p{font-size:13px}.atlas-value-outside circle,.atlas-value-outside rect{stroke:#c54854;stroke-width:3}.atlas-value-badge{fill:#d45f68!important;font-weight:800}.atlas-value-flash circle,.atlas-value-flash rect,.atlas-value-flash td{animation:adem-value-warning-pulse 1.2s ease-out 1}.atlas-value-warning-list{max-height:240px;overflow:auto}.atlas-value-warning-list button{text-align:left}
@keyframes adem-value-warning-pulse{0%,35%{fill:#b72936;background:#7f2730;stroke:#ff9da4}100%{}}
@media(prefers-reduced-motion:reduce){.atlas-value-flash circle,.atlas-value-flash rect,.atlas-value-flash td{animation:none!important}}
.adem-atlas{font-family:system-ui,sans-serif}.atlas-value-norms fieldset{min-width:0;border:1px solid #3c5964;border-radius:5px;padding:12px}.atlas-value-norms fieldset>p{flex-basis:100%;margin:4px 0}.atlas-value-norms fieldset>select{width:min(100%,440px)}
.adem-atlas{color-scheme:dark}
/* The light shell declares important form backgrounds. Keep the private atlas
 * controls readable inside that shell without changing the surrounding theme. */
html.gritt-shell-page[data-theme] .adem-atlas :is(input,select,textarea,option){color:var(--ink)!important;background:#14242e!important;color-scheme:dark}
.atlas-demo-tools,.atlas-demo-moment:not(:empty){margin:14px 0;padding:12px;border:1px solid #3c5964;border-radius:6px;min-width:0;overflow-wrap:anywhere}.atlas-demo-tools:empty{display:none}.atlas-demo-tools select{width:min(100%,580px);margin:4px}/* Chat-only extract of index.html/common.css: Aileron-Light, 14px,
   1.62 line height, .015em tracking, square turns and paired light gradients.
   A separate font alias prevents Research's Aileron-Regular from winning. */
@font-face{font-family:"GRITT Chat Transcript";src:url('/assets/fonts/aileron/Aileron-Light.otf') format('opentype');font-weight:400;font-style:normal;font-display:swap}
.atlas-demo-chat{display:flex;flex-direction:column;gap:10px;max-height:36rem;overflow:auto;margin:1rem 0;padding:28px 40px 12px 12px;background:#edf0f2;color:rgba(25,29,34,.88);font:400 14px/1.62 "GRITT Chat Transcript",Aileron,Arial,sans-serif;letter-spacing:.015em;isolation:isolate}
.atlas-demo-chat article{position:relative;isolation:isolate;max-width:75%;padding:10px 12px;align-self:flex-start;border:0;border-radius:0;background:transparent;font:inherit;letter-spacing:inherit}
.atlas-demo-chat article.user{align-self:flex-end;margin-top:8px}
.atlas-demo-chat article:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border:0;border-radius:0;box-shadow:none}
.atlas-demo-chat article.bot:before{left:-12px;background:linear-gradient(90deg,rgba(39,54,66,0) 0,rgba(39,54,66,.055) 7px,rgba(39,54,66,.125) 12px,rgba(39,54,66,.15) calc(100% - 12px),rgba(39,54,66,.16) 100%)}
.atlas-demo-chat article.user:before{right:-40px;background:linear-gradient(90deg,rgba(39,54,66,.16) 0,rgba(39,54,66,.15) 42%,rgba(39,54,66,.125) calc(100% - 40px),rgba(39,54,66,.055) calc(100% - 17px),rgba(39,54,66,0) 100%)}
.atlas-demo-chat article>small{display:block;font:400 11px/1.4 "GRITT Chat Transcript",Aileron,Arial,sans-serif;letter-spacing:.03em;color:rgba(25,29,34,.66);margin:0 0 5px}
.atlas-demo-chat article>p{margin:0;font:inherit;letter-spacing:inherit;color:inherit;white-space:pre-wrap;overflow-wrap:break-word;word-break:break-word}
.atlas-demo-chat article[data-current=true]{outline:1px solid rgba(65,110,101,.35);outline-offset:2px}
.atlas-chat-reveal{animation:atlas-gritt-reveal 1600ms cubic-bezier(.2,.8,.2,1) forwards}
@keyframes atlas-gritt-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.atlas-chat-reveal{animation:none;opacity:1}}
.atlas-response-translation{display:block;margin-top:8px}.atlas-response-source{font-size:12px}
.atlas-demo-moment table{max-width:620px}.atlas-demo-moment th,.atlas-demo-moment td{min-width:0}.atlas-demo-moment td:nth-child(2){width:30%}@media(max-width:550px){.atlas-demo-chat{padding-left:4px;padding-right:18px}.atlas-demo-chat article{max-width:94%}.atlas-demo-chat article.user:before{right:-18px}}
.atlas-saved-changes{margin:1rem 0;padding:.8rem;border:1px solid #67b8dc;border-radius:.4rem}.atlas-saved-changes details button{display:block;margin:.35rem 0;text-align:left}.atlas-saved-changes pre{max-height:18rem;overflow:auto;white-space:pre-wrap}.atlas-saved-value-changed{outline:2px solid #64cefa;outline-offset:2px;animation:atlas-saved-change 1.2s ease-out}.atlas-saved-value-changed circle,.atlas-saved-value-changed rect{stroke:#64cefa!important;stroke-width:3!important}@keyframes atlas-saved-change{from{filter:drop-shadow(0 0 7px #64cefa)}to{filter:none}}@media(prefers-reduced-motion:reduce){.atlas-saved-value-changed{animation:none}}

.atlas-provider-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.atlas-provider-answer{min-width:0;border:1px solid #3c5964;padding:12px;border-radius:6px}.atlas-provider-answer .atlas-demo-chat{padding:12px;max-height:none}.atlas-provider-answer .atlas-demo-chat article{max-width:100%}@media(max-width:760px){.atlas-provider-answers{grid-template-columns:1fr}}

.atlas-grouping-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px;font-size:12px;color:var(--muted)}
.atlas-grouping-controls button:disabled{opacity:.5;cursor:default}
.atlas-concept .atlas-subtype-toggle rect{fill:#173c38;stroke:#8dbbae;stroke-width:1}
.atlas-concept .atlas-subtype-toggle text{font-size:12px;fill:#d5ece4}
.atlas-concept .atlas-hidden-inputs{font-size:11px;fill:#e3bd72}
/* The atlas is the main working canvas, with controls in one clear toolbar. */
.adem-atlas .atlas-toolbar{display:block;padding:0 0 12px;margin:0;border:0;background:linear-gradient(90deg,color-mix(in srgb,var(--ink) 4%,transparent),transparent 85%)}
.adem-atlas .atlas-view-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:0 8px 6px}
.adem-atlas .atlas-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:0;min-width:0}
.adem-atlas .atlas-tabs>button{margin:0;padding:8px 12px;font-size:13px;border-radius:5px}
.adem-atlas .atlas-enlarge{margin:0;padding:7px 11px;min-height:35px;font-size:12px;white-space:nowrap;background:transparent}
.adem-atlas .atlas-meta-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 18px;padding:0 9px}
.adem-atlas .atlas-status{font-size:12px;line-height:1.5;margin:0;flex:1 1 280px;color:var(--muted)}
.adem-atlas .atlas-grouping-controls{gap:7px;margin:0;font-size:11px;line-height:1.4}.adem-atlas .atlas-grouping-controls button{font-size:11px;padding:4px 7px;margin:0}
.adem-atlas .atlas-grouping-tools:empty{display:none}.adem-atlas .atlas-grouping-controls>span{max-width:50ch}
.adem-atlas .atlas-graph-scroll{height:clamp(540px,calc(var(--atlas-screen-height,100vh)*.78),1080px);max-height:none;scrollbar-gutter:stable}
.adem-atlas .atlas-concept text{font-size:14px}
.adem-atlas .atlas-expanded,.adem-atlas.atlas-expanded{position:fixed;inset:10px;z-index:10000;margin:0!important;padding:14px!important;background:#0b141b;overflow:auto;box-shadow:0 16px 80px #0006;isolation:isolate}
.adem-model-workspace .adem-atlas.atlas-expanded{background:#f8fafb;border:1px solid #c6d8d4;border-radius:8px}
.adem-atlas.atlas-expanded .atlas-toolbar{position:sticky;top:-14px;padding-top:8px;z-index:3;background:inherit;border-bottom:1px solid color-mix(in srgb,var(--ink) 18%,transparent)}
.adem-atlas.atlas-expanded .atlas-graph-scroll{height:calc(var(--atlas-screen-height,100vh) - 135px);max-height:none;min-height:400px}
.adem-atlas .adem-network3d-viewport{max-height:none;height:clamp(540px,calc(var(--atlas-screen-height,100vh)*.78),1080px)}
.adem-atlas .adem-network3d svg{min-width:960px;min-height:680px;max-height:none}
.adem-atlas.atlas-expanded .adem-network3d-viewport{height:calc(var(--atlas-screen-height,100vh) - 230px);min-height:400px}
@media(max-width:680px){.adem-atlas .atlas-view-row{padding-inline:0;gap:8px}.adem-atlas .atlas-tabs{gap:4px}.adem-atlas .atlas-tabs>button{font-size:12px;padding:7px 9px}.adem-atlas .atlas-meta-row{padding-inline:1px}.adem-atlas .atlas-enlarge{font-size:11px;min-height:32px}.adem-atlas .atlas-graph-scroll{height:calc(var(--atlas-screen-height,100vh)*.72);min-height:480px}.adem-atlas.atlas-expanded{inset:5px;padding:10px!important}.adem-atlas.atlas-expanded .atlas-graph-scroll{height:calc(var(--atlas-screen-height,100vh) - 185px)}.adem-atlas .adem-network3d svg{width:960px}}
.adem-atlas .atlas-reading-guide{font-size:12px;margin:4px 0 6px;padding:0;border:0;color:var(--muted)}.adem-atlas .atlas-reading-guide>summary{font-size:12px;font-weight:400;padding:3px 0;cursor:pointer}.adem-atlas .atlas-reading-guide p{margin:6px 0 12px;max-width:100ch}
.adem-atlas.atlas-expanded .adem-research-matrix iframe{height:calc(var(--atlas-screen-height,100vh) - 170px)!important;min-height:480px}

/* Auto-height institutional frames keep the enlarged atlas in flow. Sizing uses
   the outer browser viewport so measuring the frame cannot grow it recursively. */
.adem-atlas.atlas-expanded.atlas-embedded{position:relative!important;inset:auto!important;width:100%;margin:0!important;box-shadow:none;overflow:visible;scroll-margin-top:12px}
.adem-atlas.atlas-expanded.atlas-embedded .atlas-workspace{grid-template-columns:minmax(0,1fr)}
.adem-atlas.atlas-expanded.atlas-embedded .atlas-workspace>nav{flex-direction:row;flex-wrap:wrap}.adem-atlas.atlas-expanded.atlas-embedded .atlas-workspace>nav select[size]{max-height:100px}
.adem-atlas.atlas-expanded.atlas-embedded .atlas-inspector{grid-column:1/-1;border-left:0;max-height:none}

.adem-atlas .adem-research-matrix iframe{height:clamp(680px,calc(var(--atlas-screen-height,100vh)*.84),1400px)!important}

/* The authenticated original atlas owns its taxonomy, controls and inspector. */
.adem-atlas .atlas-original-workspace{display:block!important}.adem-atlas .atlas-original-workspace>nav,.adem-atlas .atlas-original-workspace>.atlas-inspector{display:none!important}.adem-original-network iframe{display:block;width:100%;height:clamp(850px,calc(var(--atlas-screen-height,1000px)*.96),1400px);border:0;border-radius:8px;background:#090e13}.adem-atlas.atlas-expanded .adem-original-network iframe{height:max(750px,calc(var(--atlas-screen-height,1000px) - 130px))}

.adem-atlas .atlas-formula-workspace{display:block!important}.adem-atlas .atlas-formula-workspace>nav,.adem-atlas .atlas-formula-workspace>.atlas-inspector{display:none!important}

/* Native renderers own their controls; no second concept picker or page frame. */
.adem-atlas .atlas-matrix-workspace{display:block!important}
.adem-atlas .atlas-matrix-workspace>nav,.adem-atlas .atlas-matrix-workspace>.atlas-inspector{display:none!important}
.adem-atlas .atlas-matrix-workspace>div,.adem-atlas .atlas-original-workspace>div{overflow:visible;min-width:0;width:100%}
.adem-original-network-native,.adem-native-matrix{display:block;max-width:none;width:100%;overflow:visible}
/* Keep dialogue in one reading column, visibly staggered by speaker. */
.atlas-demo-chat{--speaker-offset:clamp(24px,5vw,80px)}
.atlas-demo-chat article{box-sizing:border-box;width:min(calc(100% - var(--speaker-offset)),76ch);max-width:calc(100% - var(--speaker-offset));align-self:center;transform:translateX(calc(var(--speaker-offset) / -2))}
.atlas-demo-chat article.user{width:min(calc(100% - var(--speaker-offset)),76ch);max-width:calc(100% - var(--speaker-offset));align-self:center;transform:translateX(calc(var(--speaker-offset) / 2))}
.atlas-provider-answer .atlas-demo-chat article{width:100%;max-width:100%;transform:none}

/* The visual workspace uses 95% of the page, centred below the model controls. */
.native-research .adem-atlas .atlas-matrix-workspace,
.native-research .adem-atlas .atlas-original-workspace{
 width:calc(95vw / var(--education-scale,1));max-width:none;margin-inline:calc(50% - 47.5vw / var(--education-scale,1));
 border:0;border-radius:0;padding:0;
}
.native-research .atlas-matrix-workspace .adem-native-matrix,
.native-research .atlas-original-workspace .adem-original-network-native{border:0;border-radius:0}
.native-research .atlas-matrix-workspace .adem-research-matrix>.atlas-note,
.native-research .atlas-original-workspace .adem-original-network>p:not([hidden]){
 padding-inline:clamp(18px,3vw,48px);margin-block:10px;
}

/* The view choices are part of the dark working surface. A short fade joins
   the light model controls to this surface without an extra framed panel. */
.project-studio .native-research.adem-model-workspace .adem-atlas:not(.atlas-expanded){border-top:0;padding-top:64px;background:transparent}
.project-studio .native-research .adem-atlas .atlas-toolbar{
 --ink:#e4eff2;--muted:#a9bdc5;position:relative;
 width:calc(95vw / var(--education-scale,1));max-width:none;margin-inline:calc(50% - 47.5vw / var(--education-scale,1));
 background:#081116;color:var(--ink);padding:16px clamp(12px,1.5vw,26px) 12px;
}
.project-studio .native-research .adem-atlas .atlas-toolbar::before{
 content:"";position:absolute;inset:-64px 0 auto;height:64px;
 background:linear-gradient(180deg,rgba(8,17,22,0),#081116);pointer-events:none;
}
.project-studio .native-research .adem-atlas .atlas-toolbar :is(button,select,input){background:#14242e;color:#e4eff2;border-color:#3c5964}
.project-studio .native-research .adem-atlas .atlas-toolbar button[aria-pressed=true]{background:#255047;color:#e4eff2;border-color:#6fa899}
.project-studio .native-research .adem-atlas .atlas-toolbar .atlas-status{color:#a9bdc5}
.project-studio .native-research .adem-atlas .atlas-toolbar .atlas-view-row{padding-inline:0;padding-bottom:9px}
.project-studio .native-research .adem-atlas .atlas-toolbar .atlas-meta-row{padding-inline:0}
.native-research .atlas-matrix-workspace .adem-research-matrix{background:#081116}
.native-research .atlas-matrix-workspace .adem-research-matrix>.atlas-note{color:#a9bdc5;margin:0;padding-block:8px 12px}
.native-research .adem-atlas.atlas-expanded .atlas-toolbar{width:100%;margin-inline:0}
.native-research .adem-atlas.atlas-expanded .atlas-toolbar::before{display:none}
.native-research .adem-atlas.atlas-expanded :is(.atlas-matrix-workspace,.atlas-original-workspace){width:100%;margin-inline:0}

/* Full-width paint with the existing 95% working content: the margins are
   breathing room inside the dark surface, not light page gutters. */
.native-research .adem-atlas:not(.atlas-expanded) :is(.atlas-matrix-workspace,.atlas-original-workspace),
.project-studio .native-research .adem-atlas:not(.atlas-expanded) .atlas-toolbar{position:relative;isolation:isolate}
.native-research .adem-atlas:not(.atlas-expanded) :is(.atlas-matrix-workspace,.atlas-original-workspace)::before,
.project-studio .native-research .adem-atlas:not(.atlas-expanded) .atlas-toolbar::after{
 content:"";position:absolute;top:0;bottom:0;left:50%;width:calc(100vw / var(--education-scale,1));
 transform:translateX(-50%);background:var(--adem-bleed-background,#081116);z-index:-1;pointer-events:none;
}
.native-research .adem-atlas .atlas-original-workspace{--adem-bleed-background:#090e13}
.project-studio .native-research .adem-atlas:not(.atlas-expanded) .atlas-toolbar::before{
 left:50%;right:auto;width:calc(100vw / var(--education-scale,1));transform:translateX(-50%);
}

.adem-atlas .atlas-view-actions,.adem-atlas .atlas-network-actions,.adem-atlas .atlas-original-actions{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px;
}
.adem-atlas .atlas-view-actions{margin-left:auto;justify-content:flex-end}
.adem-atlas .atlas-view-actions :is(button,select){margin:0;width:auto;height:35px;min-height:35px;box-sizing:border-box;flex:none;font-size:12px;line-height:19px;padding:7px 11px;white-space:nowrap}
html.gritt-shell-page[data-theme] .native-research.adem-model-workspace .adem-atlas .atlas-view-actions :is(select,option){background:#14242e!important;color:#e4eff2!important;border-color:#3c5964!important;color-scheme:dark}
