:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#303342;background:#f5f5f8;font-size:13px;--purple:#5b56ca;--line:#e2e3ec}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:6px;padding:7px 10px;white-space:nowrap}button:hover{border-color:#a5a2d7;background:#f6f5ff}button:disabled{opacity:.4;cursor:default}button.primary,.primary{background:var(--purple);color:white;border-color:var(--purple)}input,select,textarea{border:1px solid var(--line);background:#fff;border-radius:5px;padding:8px;min-width:0}input[type=checkbox],input[type=color],input[type=range]{accent-color:var(--purple)}input[type=checkbox]{width:14px;height:14px}label{display:flex;gap:6px;align-items:center}a{color:inherit;text-decoration:none}a:hover{color:var(--purple)}.topbar{height:66px;display:flex;align-items:center;gap:17px;padding:0 25px;background:white;border-bottom:1px solid var(--line)}.brand{font-size:22px;font-weight:650;letter-spacing:-1px;display:flex;gap:9px;align-items:center}.brand>span:first-child{background:var(--purple);color:#fff;width:30px;height:31px;text-align:center;border-radius:8px;font-family:Georgia,serif;font-size:28px;font-weight:500;line-height:27px}.brand-dot{color:var(--purple);margin-left:-10px}.top-divider{height:22px;border-left:1px solid var(--line)}#product-name{border:none;padding:6px 0;max-width:180px;font-weight:550;background:transparent}.saved{font-size:10px;color:#9093a5}.saved:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#78a48b;margin-right:5px}.top-actions{display:flex;gap:6px;align-items:center;margin-left:auto}.top-actions>a{font-size:10px;color:#8d8fa0;margin-left:10px}.studio-bar{padding:25px 25px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:650;color:#9393a9}.studio-bar h1{font-size:20px;font-weight:550;letter-spacing:-.6px;margin:6px 0 0}.studio-status{display:flex;align-items:center;gap:12px}.studio-status>span{font-size:11px;color:#868799}.workspace{padding:0 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-height:calc(100vh - 211px)}.pane{min-width:0;background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 3px 9px #25214b03}.pane-heading{display:flex;gap:10px;align-items:center;padding:17px 15px;border-bottom:1px solid var(--line)}.step{width:27px;height:27px;display:grid;place-items:center;background:#f1f0fa;color:#706ab3;border-radius:7px;font-size:10px;font-weight:650}.pane-heading h2{font-size:14px;font-weight:650;margin:0}.pane-heading p{font-size:10px;color:#8b8da1;margin:4px 0 0}.expand{margin-left:auto;border:0;color:#85859b;background:none;padding:6px}.text-tools,.schema-tools,.reference-tools{display:flex;align-items:center;gap:5px;min-height:46px;padding:10px 12px;font-size:10px;border-bottom:1px solid #eeeeF4;flex-wrap:wrap}.text-tools{justify-content:space-between}.text-tools input{margin:0}.text-tools>span{color:#9394a6}.schema-tools span{margin-right:auto;color:#9998ac;font-size:9px}.schema-tools button,.reference-tools button{padding:5px 7px;font-size:10px}.reference-tools span{color:#9a9aaa;font-size:9px}#spec{flex:1;min-height:345px;resize:vertical;width:100%;border:0;border-radius:0;padding:20px 18px;font-size:13px;line-height:1.85;color:#45465e;font-family:inherit;background:linear-gradient(#fff,#fff)}#spec:focus{outline:0;box-shadow:inset 3px 0 #d5d1f7}.text-bottom{padding:11px 12px;display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid #f1f0f5}.text-bottom span{font-size:10px;color:#8f90a5}.text-bottom button{font-size:10px}.grammar{padding:12px 15px;color:#9292a5;font-size:10px;border-top:1px solid #ececf3;line-height:1.7}.grammar summary{cursor:pointer;font-size:11px;color:#77768f}.questions{max-height:210px;overflow:auto}.question{padding:12px;margin:7px 12px;border:1px solid #ecdbb9;background:#fffcf4;border-radius:7px;font-size:11px;line-height:1.5}.question p{margin:0 0 8px}.question small{color:#a88d65;display:block;margin-bottom:6px}.question button{white-space:normal;font-size:10px;margin:2px}.unmapped{padding:8px 14px;color:#9791a8;font-size:10px}.unmapped button{border:0;padding:0;background:none;color:#7168ac;white-space:normal;text-align:left;font-size:10px}#graph-scroll{height:370px;overflow:auto;background-color:#fafafd;background-image:radial-gradient(#ddddE8 1px,transparent 1px);background-size:15px 15px;position:relative;flex:1;min-height:290px}#graph{position:relative;min-width:320px;width:520px;height:800px}#edges{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}#edges path{fill:none;stroke:#bab4df;stroke-width:1.6}#edges text{font-size:10px;fill:#8c83ba;paint-order:stroke;stroke:#fafafd;stroke-width:4px;stroke-linejoin:round}.node{position:absolute;width:236px;background:#fff;border:1px solid #dedde9;border-radius:9px;box-shadow:0 3px 12px #3c325508;overflow:hidden;touch-action:none}.node.selected{border-color:#9185d7;box-shadow:0 0 0 2px #dcd7f555}.node-head{display:flex;align-items:center;padding:12px;background:#f5f4fc;cursor:grab;border-bottom:1px solid #ecebf5;gap:8px}.node-head:active{cursor:grabbing}.node-symbol{width:19px;height:19px;display:grid;place-items:center;color:#8c83bc;font-size:13px}.node-head b{font-weight:600;font-size:12px}.node-head span:last-child{margin-left:auto;color:#aaa5ba;letter-spacing:1px}.node-fields{padding:8px 14px}.node-field{display:flex;justify-content:space-between;gap:10px;font-size:10px;padding:4px 0;color:#727187}.node-field small{color:#aaa7bb;font-size:9px}.node-ops{display:flex;gap:4px;flex-wrap:wrap;padding:0 12px 10px}.node-ops span{background:#f4f3fa;color:#9a92b3;font-size:8px;padding:3px 5px;border-radius:3px}.node-empty{font-size:10px;color:#aaa5b8;padding:10px 14px}.inspector{border-top:1px solid var(--line);padding:13px;max-height:345px;overflow:auto;font-size:11px}.inspector-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:7px}.inspector-title input{font-weight:600;min-width:0;width:120px;border-color:transparent;padding:4px}.inspector-title button{font-size:10px;padding:4px 7px}.inspector h4{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#a09bb2;margin:14px 0 7px}.field-row{display:flex;gap:5px;margin:4px 0}.field-row input{width:100%;padding:5px;font-size:10px}.field-row select{padding:4px;width:75px;font-size:9px}.field-row button{padding:3px 6px;color:#aaa}.operation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;font-size:10px}.operation-grid label{gap:3px}.operation-grid input{width:12px;height:12px}.relation-row{border:1px solid #e6e1f1;border-radius:5px;padding:7px;margin:5px 0;display:flex;flex-wrap:wrap;gap:5px;align-items:center;font-size:10px}.relation-row select{font-size:10px;padding:4px;max-width:100%}.relation-row button{padding:3px 5px;margin-left:auto}.relation-row.pending{background:#fffbf1}.connect-form{display:flex;gap:4px}.connect-form select{font-size:10px;padding:5px;min-width:0;flex:1}.connect-form button{padding:5px 7px}.operation-field{display:flex;justify-content:space-between;gap:8px;margin:5px 0;font-size:10px}.operation-field select{font-size:10px;padding:4px}.layout-tools{display:flex;gap:7px;padding:10px 12px;border-bottom:1px solid #eeeef4}.layout-tools label{font-size:9px;color:#9190a5;flex:1;display:block}.layout-tools select{font-size:10px;width:100%;margin-top:5px;padding:5px}.preview-host{padding:12px;flex:1;background:#f7f7fa;overflow:auto;min-height:330px}.pane-footer{padding:12px;display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:10px;border-top:1px solid var(--line)}.pane-footer>span{font-size:9px;color:#aaa5b8}.craft-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(132px,100%),1fr));gap:10px 12px;padding:12px;border-top:1px solid var(--line);align-items:end}.craft-controls label{font-size:10px;display:grid;grid-template-rows:1fr auto;gap:5px;min-width:0;color:#828096}.craft-controls output{font-size:9px;color:#aaa4bc}.craft-controls input[type=range]{width:100%;padding:0;height:13px}.craft-controls input[type=color]{width:26px;height:21px;padding:1px;border-radius:4px}.craft-controls label.color{display:flex;align-items:center;justify-content:space-between;min-height:32px;background:#faf9fd;border:1px solid #eae7f2;padding:6px;border-radius:6px}.prototype{background:var(--background);color:var(--text);font-size:var(--fontSize);min-height:390px;border:1px solid var(--borderColor);border-radius:var(--radius);overflow:hidden;max-width:100%;box-shadow:0 2px 7px #00000003}.prototype button,.prototype select,.prototype input{font:inherit;font-size:.78em;border:var(--border) solid var(--borderColor);border-radius:var(--radius);padding:.55em .7em;background:var(--surface);color:var(--text);min-width:0}.prototype input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}.prototype .primary{background:var(--accent);color:white}.proto-brand{display:flex;gap:8px;align-items:center;background:var(--surface);padding:var(--spacing);border-bottom:1px solid var(--borderColor);font-size:.76em;font-weight:600}.proto-brand small{margin-left:auto;font-weight:400;font-size:.8em;color:var(--muted)}.proto-logo{color:var(--accent);font-size:1.25em}.proto-shell{display:flex;min-height:330px}.proto-shell>nav{display:flex;flex-direction:column;gap:5px;width:90px;flex-shrink:0;padding:10px 7px;border-right:1px solid var(--borderColor);background:var(--surface)}.proto-shell>nav button{border-color:transparent;background:transparent;text-align:left;font-size:.69em;white-space:normal;padding:8px 5px}.proto-shell>nav button[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);font-weight:600}.proto-shell>main{padding:var(--spacing);flex:1;min-width:0}.proto-title{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.proto-title h2{font-size:1.3em;letter-spacing:-.4px;font-weight:600;margin:5px 0 0}.proto-eyebrow{font-size:.5em;letter-spacing:1px;color:var(--muted)}.proto-tools{display:flex;gap:5px;flex-wrap:wrap;margin:var(--spacing) 0}.proto-tools input{flex:1;width:110px}.proto-tools select{max-width:120px}.table-wrap{overflow:auto;border:var(--border) solid var(--borderColor);border-radius:var(--radius);background:var(--surface)}.prototype table{border-collapse:collapse;width:100%;font-size:.7em;min-width:300px}.prototype th,.prototype td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--borderColor);min-width:70px;max-width:170px;overflow-wrap:anywhere}.prototype th{font-weight:500;color:var(--muted);font-size:.9em;background:var(--background)}.prototype td:first-child{font-weight:550}.row-actions{display:flex;gap:3px;align-items:center}.row-actions button{font-size:10px}.record-list{display:flex;flex-direction:column;gap:10px}.record-list.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.record-list article{background:var(--surface);border:var(--border) solid var(--borderColor);border-radius:var(--radius);padding:var(--spacing);font-size:.75em}.record-value{margin-bottom:8px}.record-value small{display:block;color:var(--muted);font-size:.8em;margin-bottom:3px}.record-detail{margin-top:var(--spacing);padding:var(--spacing);border:1px solid var(--accent);border-radius:var(--radius);background:var(--surface)}.record-detail header{display:flex;gap:8px;justify-content:space-between;align-items:center}.record-detail h3{margin:0;font-size:.95em}.record-detail label{display:flex;flex-direction:column;align-items:flex-start;font-size:.7em;margin:10px 0;gap:5px}.record-detail label>input:not([type=checkbox]),.record-detail select{width:100%;font-size:1em}.record-detail select[multiple]{min-height:60px}.proto-foot{display:flex;justify-content:space-between;gap:8px;font-size:.55em;color:var(--muted);margin-top:15px}.no-results{padding:20px 8px;font-size:.8em;color:var(--muted)}.prototype[data-nav=top] .proto-shell,.prototype[data-nav=tabs] .proto-shell,.prototype[data-nav=bottom] .proto-shell,.prototype[data-nav=dropdown] .proto-shell{flex-direction:column}.prototype:is([data-nav=top],[data-nav=tabs],[data-nav=bottom]) .proto-shell>nav{flex-direction:row;flex-wrap:wrap;width:auto;border-right:0;border-bottom:1px solid var(--borderColor);padding:8px}.prototype[data-nav=tabs] .proto-shell>nav button{border-radius:0;border-bottom:2px solid transparent}.prototype[data-nav=tabs] .proto-shell>nav button[aria-pressed=true]{border-bottom-color:var(--accent);background:transparent}.prototype[data-nav=bottom] .proto-shell>nav{order:2;border-top:1px solid var(--borderColor);border-bottom:0;position:sticky;bottom:0}.prototype[data-nav=dropdown] .proto-shell>select{margin:10px var(--spacing) 0}.empty{padding:45px 20px;text-align:center;color:#9693aa}.empty>span{font-size:35px;color:#c1bbd7}.empty h3{font-size:14px;font-weight:500;line-height:1.5}.empty p{font-size:11px;line-height:1.7}.workspace[data-arrangement=rows]{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace[data-arrangement=rows] .pane{min-height:590px}.workspace[data-focus] .pane{display:none}.workspace[data-focus=text] [data-pane=text],.workspace[data-focus=schema] [data-pane=schema],.workspace[data-focus=layout] [data-pane=layout],.workspace[data-focus=craft] [data-pane=craft]{display:flex;grid-column:1/-1}.workspace[data-focus] .preview-host{padding:25px 12%;}.workspace[data-focus=schema] #graph-scroll{min-height:500px}.workspace[data-focus=text] #spec{min-height:500px}dialog{border:1px solid var(--line);border-radius:12px;width:min(540px,90vw);padding:0;color:#424153;box-shadow:0 20px 80px #24213530}dialog::backdrop{background:#28253955}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:17px;margin:0}.dialog-head button{border:0}.dialog-body{padding:20px;font-size:13px;line-height:1.8}.dialog-body p:first-child{margin-top:0}.dialog-body label{display:flex;flex-direction:column;align-items:stretch}dialog footer{padding:14px 20px;text-align:right;border-top:1px solid var(--line)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#353147;color:white;border-radius:8px;padding:12px 18px;font-size:12px;z-index:20;max-width:80vw;box-shadow:0 5px 25px #0002}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:1100px){.workspace{grid-template-columns:repeat(2,minmax(0,1fr))}.pane{min-height:580px}.top-actions>a{display:none}.saved{display:none}.studio-status>span{display:none}}@media(max-width:650px){.workspace,.workspace[data-arrangement=rows]{grid-template-columns:1fr;padding:0 10px}.topbar{padding:10px;height:auto;gap:9px;flex-wrap:wrap}.topbar .brand{font-size:18px}.top-actions{margin:0 0 0 auto;flex-wrap:wrap}.top-actions button{font-size:10px;padding:6px}#product-name{width:130px}.studio-bar{padding:20px 14px;align-items:flex-start}.studio-bar h1{font-size:17px}.studio-status{gap:5px}.studio-status button{font-size:10px;padding:6px}.pane{min-height:540px}.workspace[data-focus] .preview-host{padding:12px}}

/* Pinned full-width views and persistent horizontal navigation. */
body{padding-bottom:116px}.view-picker{display:flex;align-items:center;gap:8px;padding:0 20px 14px;flex-wrap:wrap}.view-picker>span:first-child{font-size:12px;font-weight:600;margin-right:4px}.view-picker button[aria-pressed=true]{background:#eeedf9;border-color:#aaa7e1;color:#4541a6}.view-picker button:disabled{opacity:1;cursor:default}.view-hint{font-size:12px;color:#85859b;margin-left:5px}
.workspace[data-arrangement=pan]{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc(100vw - 40px);gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;align-items:stretch;padding:0 20px}.workspace[data-arrangement=pan]::-webkit-scrollbar{display:none}.workspace .pane[hidden]{display:none!important}.workspace[data-arrangement=pan] .pane{min-width:0;min-height:calc(100vh - 290px)}.workspace[data-arrangement=pan] #spec{min-height:440px}.workspace[data-arrangement=pan] #graph-scroll{min-height:450px}.workspace[data-arrangement=pan] .preview-host{min-height:440px;padding:20px}.workspace[data-arrangement=overview]{grid-template-columns:repeat(var(--view-count),minmax(0,1fr))}
@media(max-width:1100px){.workspace[data-arrangement=overview]{grid-template-columns:repeat(min(2,var(--view-count)),minmax(0,1fr))}}
@media(max-width:650px){.workspace[data-arrangement=overview]{grid-template-columns:1fr}.view-picker{padding:0 10px 12px}.view-hint{display:none}body{padding-bottom:125px}}.pan-instruction{text-align:center;pointer-events:none}@media(pointer:coarse){.pan-instruction{font-size:0}.pan-instruction:after{content:'Drag here to pan between views';font-size:11px}}

[data-wheel-params] label:has(select),[data-wheel-params] label:has(input[type=range]){border-radius:7px;transition:background .12s,box-shadow .12s}[data-wheel-params] label:has(select):hover,[data-wheel-params] label:has(input[type=range]):hover{background:#eeedf9;box-shadow:0 0 0 5px #eeedf9;cursor:ns-resize}[data-wheel-params] label:has(select):hover select{border-color:#aaa7e1}

.studio-bar{padding:12px 20px;justify-content:flex-end}@media(max-width:650px){.studio-bar{padding:10px}}

/* Full-size interactive canvases, uniformly scaled into fixed 2×2 slots. */
body.grid-mode{padding-bottom:0;overflow:hidden}.workspace[data-arrangement=grid]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;padding:0 20px;height:var(--grid-height);min-height:0;overflow:hidden}.scaled-slot{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:8px;background:#eaeaf1}.workspace[data-arrangement=grid] .pane{position:absolute;left:50%;top:50%;width:var(--source-width);height:var(--source-height);min-height:0;transform:translate(-50%,-50%) scale(var(--view-scale));transform-origin:center;flex-shrink:0}.workspace[data-arrangement=grid] #spec{min-height:0;resize:none}.workspace[data-arrangement=grid] #graph-scroll{min-height:0}.workspace[data-arrangement=grid] .preview-host{min-height:0;padding:20px}.workspace[data-arrangement=grid] .pane> :not(#spec):not(#graph-scroll):not(.preview-host){flex-shrink:0}.studio-status button[aria-pressed=true]{background:#eeedf9;border-color:#aaa7e1;color:#4541a6}

.workspace[data-arrangement=grid] .pane{left:calc(50% + var(--camera-x,0px));top:calc(50% + var(--camera-y,0px));transform:translate(-50%,-50%) scale(var(--camera-scale,var(--view-scale)));will-change:transform}.camera-tools{position:absolute;right:6px;bottom:6px;z-index:5;display:flex;align-items:center;gap:3px;padding:3px;background:rgba(255,255,255,.95);border:1px solid #dcdce7;border-radius:7px;box-shadow:0 2px 8px #25244815}.camera-tools button{font-size:11px;padding:3px 7px;min-width:24px}.camera-scale{font-size:10px;color:#78748e;min-width:32px;text-align:center}.workspace.space-pan .scaled-slot,.workspace.space-pan .scaled-slot *{cursor:grab!important}.workspace.camera-dragging .scaled-slot,.workspace.camera-dragging .scaled-slot *{cursor:grabbing!important;user-select:none}.scaled-slot{overscroll-behavior:contain}

.workspace[data-arrangement=split]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-auto-flow:row;gap:12px;padding:0 20px;align-items:stretch;overflow:hidden}.workspace[data-arrangement=split]>.pane{position:static;width:auto;height:auto;min-width:0;transform:none;min-height:calc(100vh - 310px)}.workspace[data-arrangement=split] .pane-heading{flex-wrap:wrap}.workspace[data-arrangement=split] .text-tools,.workspace[data-arrangement=split] .text-bottom{flex-wrap:wrap}.workspace[data-arrangement=split] #spec{min-width:0;min-height:360px;overflow-wrap:break-word}.workspace[data-arrangement=split] .preview-host{padding:12px;min-width:0}.studio-status{flex-wrap:wrap;justify-content:flex-end}@media(max-width:650px){.workspace[data-arrangement=split]{padding:0 10px;gap:8px}.workspace[data-arrangement=split] .pane-heading{padding:10px}.workspace[data-arrangement=split] #spec{padding:12px 10px}}

/* Per-object form placement, shared by both live projections. */
.prototype{position:relative}.record-overlay{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;padding:20px}.prototype .record-backdrop{position:absolute;inset:0;border:0;border-radius:0;background:#11182766;padding:0;width:100%;height:100%}.record-overlay .record-detail{position:relative;z-index:1;width:min(100%,560px);max-height:100%;overflow:auto;margin:0;background:var(--surface);border:1px solid var(--borderColor);border-radius:var(--radius);box-shadow:0 10px 40px #0003;padding:20px}.record-overlay.drawer{justify-content:flex-end;padding:0}.record-overlay.drawer .record-detail{height:100%;width:min(85%,420px);border-radius:0}.prototype:is([data-form=modal],[data-form=drawer]){min-height:540px}.record-dropdown{margin:16px 0;border:1px solid var(--borderColor);border-radius:var(--radius);background:var(--surface);padding:12px}.record-dropdown>summary{cursor:pointer;font-weight:600}.record-dropdown .record-detail{margin-bottom:0}.record-page{min-height:350px}.record-breadcrumb{font-size:.75em;color:var(--muted)}.record-list-context[hidden]{display:none}

.layout-tools label{min-width:0}

.interpretation-coverage{padding:10px 12px;border-bottom:1px solid #e5e3ef;font-size:11px;font-weight:600;color:#55516c}.interpretation-coverage small,.question>small:last-child{display:block;margin-top:6px;font-size:10px;font-weight:400;color:#858099}.question form{display:flex;gap:5px;margin-top:8px}.question form input{min-width:0;flex:1;font-size:11px}.interpretation-notes{padding:12px;font-size:11px;overflow-wrap:anywhere}.interpretation-notes summary{cursor:pointer;color:#5651ac}.interpretation-notes p{line-height:1.6}.interpretation-notes small{color:#77738b}

/* Adjustable panes and screen-fit layout. */
.pane{position:relative}.pane-resize{position:absolute;right:1px;bottom:1px;z-index:12;width:22px;height:22px;padding:0!important;border:0!important;background:#eeedf9!important;color:#615b9b!important;border-radius:5px 0 8px 0!important;cursor:nwse-resize;touch-action:none;font-size:16px!important;line-height:22px}.pane-resize:focus-visible{outline:2px solid #5452c9;outline-offset:-2px}.resizing-pane,.resizing-pane *{cursor:nwse-resize!important;user-select:none!important}.workspace[data-arrangement=pan]{display:flex;align-items:stretch}.workspace[data-arrangement=pan]>.pane{flex:0 0 var(--pane-width);height:var(--pane-height);min-height:320px}.workspace[data-arrangement=pan]>.pane[style*="--pane-height"]{overflow:auto}.workspace[data-arrangement=overview],.workspace[data-arrangement=split]{grid-template-columns:var(--resize-columns)}.workspace[data-arrangement=grid]{grid-template-columns:var(--resize-columns);grid-template-rows:var(--resize-rows)}.scaled-slot>.pane>.pane-resize{display:none}.scaled-slot>.camera-tools{right:28px}
body.fit-mode{overflow:hidden;padding-bottom:0}.workspace[data-arrangement=fit]{display:grid;grid-template-columns:var(--resize-columns);grid-template-rows:var(--resize-rows);grid-auto-flow:row;gap:12px;padding:0 20px;height:var(--fit-height);min-height:0;overflow:hidden;align-items:stretch}.workspace[data-arrangement=fit][data-fit-count="3"]>.pane[data-fit-last=true]{grid-column:1/-1}.workspace[data-arrangement=fit]>.pane{width:auto;height:auto;min-width:0;min-height:0;transform:none;overflow:auto}.workspace[data-arrangement=fit] #spec{min-height:100px;resize:none}.workspace[data-arrangement=fit] #graph-scroll{min-height:120px}.workspace[data-arrangement=fit] .preview-host{min-height:120px}.workspace[data-arrangement=fit] .pane-heading{padding:10px;flex-shrink:0}.workspace[data-arrangement=fit] .pane-heading p{display:none}.workspace[data-arrangement=fit] .text-tools,.workspace[data-arrangement=fit] .text-bottom{flex-wrap:wrap}.workspace[data-arrangement=fit] .layout-tools,.workspace[data-arrangement=fit] .reference-tools{flex-shrink:0}.workspace[data-arrangement=fit] .pane-resize{position:sticky;align-self:flex-end;margin-top:-22px;flex-shrink:0;bottom:0}.workspace[data-arrangement=fit] .questions{flex-shrink:0}

/* Source prose and normalized requirements remain visible together. */
.text-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex:1;min-height:320px;overflow:hidden}.freeform-column,.normalized-column{display:flex;flex-direction:column;min-width:0;min-height:0}.freeform-column{border-right:1px solid #e4e2ee}.text-workbench section>header{display:flex;flex-wrap:wrap;gap:5px;justify-content:space-between;align-items:center;padding:10px 12px;background:#faf9fd;border-bottom:1px solid #eeedf5}.text-workbench h3{font-size:11px;margin:0;font-weight:650}.text-workbench header span{font-size:9px;color:#858099}.text-workbench #spec{min-height:0!important;height:100%;flex:1;resize:none;padding:14px;font-size:12px;line-height:1.8}.normalized-scroll{overflow:auto;flex:1;min-height:0;background:#fcfcff}.normalized-group{padding:12px;border-bottom:1px solid #eceaf4;border-left:3px solid #b9b5ed;overflow-wrap:anywhere}.normalized-group p{margin:5px 0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.65;color:#423f64}.normalized-source{display:block;text-align:left;background:none;border:0;padding:0;color:#7e7a91;font-size:10px;line-height:1.5;white-space:normal;max-width:100%}.normalized-group>small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.4px;color:#9792ae;margin:7px 0}.normalized-group.pending{border-left-color:#e1c481;background:#fffcf4}.normalized-empty{padding:20px;color:#918ba6;font-size:12px;line-height:1.7}.normalized-column .question select{width:100%;min-width:0;font-size:11px;padding:8px;margin-top:5px}.normalized-column .question{overflow-wrap:anywhere}.normalized-column .question form{flex-wrap:wrap}.normalized-column .question form input{width:100%;flex-basis:100%}.workspace[data-arrangement=pan] .text-workbench,.workspace[data-arrangement=split] .text-workbench{height:560px;flex:0 0 auto}.workspace[data-arrangement=grid] .text-workbench{min-height:0;flex:1!important}.workspace[data-arrangement=fit] .text-workbench{min-height:220px;flex:1}.text-pane>.grammar{flex-shrink:0}.text-pane>.text-bottom{flex-shrink:0}

/* Soft capsule controls, inspired by the supplied navigation reference. */
:root{color:#30302f;background:#fafaf9;--purple:#202020;--line:#e7e6e3}
button:not(.prototype *):not(.pane-resize){border-radius:999px;background:#fff;border-color:#e5e4e1;color:#62615e;box-shadow:0 1px 2px #18181804;transition:background .13s,border-color .13s,color .13s,box-shadow .13s}
button:not(.prototype *):not(.pane-resize):hover{background:#f3f2ef;border-color:#d7d5d0;color:#202020}
button:not(.prototype *):focus-visible,a:focus-visible,select:not(.prototype *):focus-visible{outline:2px solid #77746b;outline-offset:3px}
button.primary:not(.prototype *),#interpret,#new{background:#171717;color:#fff;border-color:#171717}
button.primary:not(.prototype *):hover,#interpret:hover,#new:hover{background:#333;color:#fff;border-color:#333}
input:not(.prototype *):not([type=range]):not([type=checkbox]):not([type=color]),select:not(.prototype *){border-radius:18px;background:#fcfbfa;border-color:#e7e5e1;color:#4d4b47}
.topbar{height:auto;min-height:82px;padding:14px 24px;gap:15px;background:#fff;border-bottom:0;flex-wrap:wrap}
.brand{font-size:20px;color:#252525;letter-spacing:-.8px}.brand>span:first-child{width:42px;height:42px;line-height:39px;border-radius:50%;background:#fff;color:#171717;border:1px solid #e9e7e3;box-shadow:0 1px 4px #00000004}.brand-dot{color:#292929}.top-divider{display:none}
#product-name{border:1px solid #eceae6;padding:10px 16px;max-width:220px;border-radius:999px;background:#fcfbfa;font-size:12px}.saved{color:#93918c}
.top-actions{padding:6px;gap:3px;background:#fcfbfa;border:1px solid #eae8e4;border-radius:999px;box-shadow:0 1px 3px #16161603;flex-wrap:wrap}
.top-actions button{padding:8px 13px;border-color:transparent!important;background:transparent!important;font-size:11px}.top-actions #new{background:#171717!important;color:#fff}.top-actions #new:hover{background:#333!important}.top-actions button:hover{background:#eeece8!important}.top-actions #undo,.top-actions #redo{width:33px;height:33px;padding:0;border-radius:50%}.top-actions>a{margin:0 10px;font-size:10px;color:#88857f}
.studio-bar{padding:4px 22px 12px}.studio-status{gap:5px;padding:6px;background:#fff;border:1px solid #eae8e4;border-radius:25px;box-shadow:0 1px 3px #16161603}.studio-status>span{padding:0 10px;color:#95918a}.studio-status button{font-size:11px;padding:8px 13px;border-color:transparent;background:transparent}.studio-status button[aria-pressed=true]{background:#202020;color:#fff;border-color:#202020;box-shadow:0 2px 4px #0000000d}.studio-status button[aria-pressed=true]:hover{background:#383838;color:#fff;border-color:#383838}
.view-picker{gap:5px;padding-bottom:15px}.view-picker>span:first-child{font-size:10px;color:#96928a;font-weight:500;margin-right:8px}.view-picker button{font-size:11px;padding:7px 15px}.view-picker button[aria-pressed=true]{color:#34322e;background:#efeeea;border-color:#e2dfd8}.view-picker button[aria-pressed=true]:hover{background:#e8e6e0;border-color:#d7d3ca}.view-hint{color:#a39f97;font-size:10px}
.pane{border-color:#e7e5e1;border-radius:18px;box-shadow:0 2px 7px #20202003}.pane-heading{border-bottom-color:#f0eeeb}.step{border-radius:50%;background:#f3f2ee;color:#77736b;font-weight:500}.expand{border:1px solid #eae7e1!important;width:29px;height:29px;padding:0!important;color:#8c877c!important;background:#fff!important}.pane-heading p{color:#98948b}
.schema-tools button,.reference-tools button{padding:6px 12px;font-size:10px}.layout-tools{background:#fdfcfb;border-color:#efede8;padding:12px;gap:10px}.layout-tools label{color:#8c877d}.layout-tools select{border-radius:999px;padding:8px 12px;background:#fff;font-size:11px;border-color:#e7e4dd}
[data-wheel-params] label:has(select):hover,[data-wheel-params] label:has(input[type=range]):hover{background:#f1efea;box-shadow:0 0 0 5px #f1efea}[data-wheel-params] label:has(select):hover select{border-color:#c8c2b7}
.camera-tools{border-radius:999px;border-color:#e8e4dc;padding:4px}.camera-tools button{border-radius:999px}.normalized-source{border-radius:0!important;box-shadow:none!important;background:transparent!important}.normalized-source:hover{color:#34312b!important}.normalized-group{border-left-color:#c9c3b7}.normalized-group p{color:#47433b}.text-workbench section>header{background:#fbfaf8;border-bottom-color:#eeebe6}.normalized-scroll{background:#fffefd}.interpretation-notes summary{color:#6c6253}.unmapped button{color:#8a7760!important;background:transparent!important;box-shadow:none!important}#spec:focus{box-shadow:inset 3px 0 #c9c1b2}
dialog{border-radius:22px;border-color:#e7e3dc;box-shadow:0 18px 70px #26201822}.dialog-head{border-bottom-color:#efebe5}.dialog-head button{width:32px;height:32px;border-radius:50%}.question{border-radius:14px}.text-bottom #interpret{padding:8px 16px}
@media(max-width:650px){.topbar{padding:12px;gap:10px}.top-actions{border-radius:22px;margin-left:0;max-width:100%}.top-actions button{padding:6px 9px}.studio-bar{padding:2px 10px 12px}.studio-status{justify-content:flex-start;border-radius:22px}.studio-status button{font-size:10px;padding:7px 10px}.view-picker button{padding:6px 11px}}
@media(prefers-reduced-motion:reduce){button:not(.prototype *):not(.pane-resize){transition:none}}

/* Quantized prototype rules, shared by Layout and Craft. */
.craft-controls select{width:100%;min-width:0;font-size:11px;min-height:30px;padding:5px 8px}.layout-tools{flex-wrap:wrap}.layout-tools label{min-width:100px}
.prototype button,.prototype select,.prototype input:not([type=checkbox]){padding:8px var(--controlPadding)}
.prototype .proto-tools,.prototype .record-list,.prototype .proto-shell>nav,.prototype .row-actions{gap:var(--gap)}
.prototype th,.prototype td{padding:var(--spacing) var(--controlPadding)}
.prototype .proto-shell>nav{padding:8px;align-items:stretch}
.prototype .proto-shell>nav button{padding:8px var(--controlPadding)}
.prototype[data-nav-align=left] .proto-shell>nav button{text-align:left}
.prototype[data-nav-align=center] .proto-shell>nav button{text-align:center}
.prototype[data-nav-align=right] .proto-shell>nav button{text-align:right}
.prototype:is([data-nav=top],[data-nav=tabs],[data-nav=bottom]) .proto-shell>nav{width:100%;align-self:stretch;justify-content:flex-start}
.prototype:is([data-nav=top],[data-nav=tabs],[data-nav=bottom])[data-nav-align=center] .proto-shell>nav{justify-content:center}
.prototype:is([data-nav=top],[data-nav=tabs],[data-nav=bottom])[data-nav-align=right] .proto-shell>nav{justify-content:flex-end}
.prototype:is([data-nav=top],[data-nav=tabs],[data-nav=bottom])[data-nav-width=hug] .proto-shell>nav{width:fit-content;max-width:100%;align-self:flex-start}
.prototype:is([data-nav=top],[data-nav=tabs],[data-nav=bottom])[data-nav-width=hug][data-nav-align=center] .proto-shell>nav{align-self:center}
.prototype:is([data-nav=top],[data-nav=tabs],[data-nav=bottom])[data-nav-width=hug][data-nav-align=right] .proto-shell>nav{align-self:flex-end}
.prototype[data-nav=left][data-nav-width=hug] .proto-shell>nav{width:max-content;max-width:40%;align-items:flex-start}
.prototype[data-nav=left][data-nav-width=hug][data-nav-align=center] .proto-shell>nav{align-items:center}
.prototype[data-nav=left][data-nav-width=hug][data-nav-align=right] .proto-shell>nav{align-items:flex-end}
.prototype[data-nav=dropdown] .proto-shell>select{align-self:flex-start;width:calc(100% - 2 * var(--spacing))}
.prototype[data-nav=dropdown][data-nav-width=hug] .proto-shell>select{width:auto;max-width:calc(100% - 2 * var(--spacing))}
.prototype[data-nav=dropdown][data-nav-align=center] .proto-shell>select{align-self:center}
.prototype[data-nav=dropdown][data-nav-align=right] .proto-shell>select{align-self:flex-end}

.axiom-phrase{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 10px;padding:8px 0;border-bottom:1px solid #eeeae3;font-size:12px;line-height:1.7}.axiom-chip{display:inline-flex;align-items:center;gap:5px;background:#f2f0eb;border:1px solid #e5e0d7;border-radius:6px;padding:3px 7px;color:#36332e}.axiom-chip small{font-size:9px;color:#8b8275}.axiom-origin{padding:0!important;background:none!important;border:0!important;white-space:normal}.axiom-phrase select{max-width:100%;font-size:11px;padding:6px;background:#fffaf0;border-color:#d8ccb4}.axiom-details{font-size:11px;margin:12px 0;color:#82796b}.axiom-setting{display:inline-block;margin:4px;padding:4px;border:1px solid #eee}.axiom-pending{font-size:11px;color:#8b7350}.compact-decision{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:6px 0;padding:8px;background:#fffaf0}.compact-decision p{margin:0;font-size:11px}.compact-decision select{font-size:11px;max-width:100%}.compact-decision details{font-size:10px}.interpretation-coverage{display:none}

/* One readable semantic schema; source text is no longer duplicated. */
.text-workbench{grid-template-columns:minmax(0,1fr)}.freeform-column{border-right:0}.meaning-scroll{flex:1;min-height:200px;overflow:auto;padding:16px;background:#fcfbf8}.meaning-scroll[hidden],#graph-scroll[hidden]{display:none!important}.meaning-object{border:1px solid #e4ded4;border-radius:10px;background:#fff;padding:12px;margin-bottom:12px;min-width:0;overflow-wrap:anywhere}.meaning-object.selected{border-color:#9d927f;box-shadow:0 0 0 2px #c8bda52b}.meaning-object>.axiom-phrase{margin:0 0 8px;padding:0;border:0}.meaning-name{border:0!important;padding:0!important;background:none!important;white-space:normal}.meaning-name .axiom-chip{font-weight:650}.meaning-clause{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:5px 0;font-size:12px}.meaning-clause>span:first-child{color:#918675;min-width:30px}.meaning-edge{border-left:2px solid #ded6c6;margin:10px 0 0 8px;padding-left:12px}.meaning-edge>.meaning-object{margin:8px 0 0}.meaning-relationship{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.meaning-relationship select{max-width:100%;font-size:11px;background:#fcf9f2}.meaning-link{font-size:12px;border:0!important;background:#f4f1eb!important;white-space:normal}.meaning-scroll .questions{max-height:none;overflow:visible}.schema-pane>.inspector{max-height:280px}.meaning-scroll .axiom-origin{font-size:11px;color:#928879}.meaning-scroll:empty{min-height:100px}

/* Source-linked clarification overlays preserve native textarea editing/undo. */
.topbar .brand{font-size:22px;font-weight:750;letter-spacing:-.6px}
.spec-editor{position:relative;flex:1;min-height:0;display:flex;overflow:hidden}.spec-editor #spec{position:relative;width:100%;height:100%;margin:0}.spec-annotations{position:absolute;inset:0;overflow:hidden;pointer-events:none}.spec-mirror{white-space:pre-wrap;overflow-wrap:break-word;color:transparent;box-sizing:border-box;transform-origin:top left}.spec-mirror .phrase-trigger{display:inline!important;font:inherit!important;letter-spacing:inherit;line-height:inherit!important;white-space:pre-wrap!important;color:transparent!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;box-shadow:none!important;text-decoration:underline dotted #a98030;text-decoration-thickness:2px;text-underline-offset:4px;pointer-events:auto;cursor:pointer;box-decoration-break:clone}.spec-mirror .phrase-trigger:hover,.spec-mirror .phrase-trigger:focus-visible{background:#d9b45a25!important;outline:1px solid #b38c40;outline-offset:2px}.phrase-menu{position:fixed;margin:0;width:324px;max-width:calc(100vw - 16px);max-height:70vh;overflow:auto;padding:12px;z-index:100;background:#fffefd;border:1px solid #d9d1c2;border-radius:12px;box-shadow:0 12px 45px #0003}.phrase-menu header{display:flex;align-items:center;justify-content:space-between}.phrase-menu header button{border:0}.phrase-menu section{padding:8px 0;border-bottom:1px solid #eee8de}.phrase-menu p{font-size:13px;line-height:1.5;margin:6px 0 10px}.phrase-menu .meaning-option{display:block;white-space:normal;text-align:left;width:100%;margin:5px 0;padding:9px;border-radius:7px}.phrase-menu .quiet{font-size:11px;color:#8e8272;border:0;background:transparent}.phrase-menu small{font-size:11px;line-height:1.5;color:#837b6f;display:block}.phrase-menu footer{padding-top:12px;text-align:right}.phrase-menu footer button{font-size:11px}

.spec-mirror .phrase-trigger::after{content:'⌄';position:absolute;color:#a98030;font-size:10px;transform:translate(-2px,8px);pointer-events:none}

/* Persistent, compact project-variation rail. */
:root{--version-rail-width:64px}body{margin-left:var(--version-rail-width)}.version-rail{position:fixed;inset:0 auto 0 0;width:var(--version-rail-width);z-index:40;background:#f7f5f0;border-right:1px solid #e4e0d8;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px;overflow-y:auto}.version-rail-label{font-size:10px;font-weight:600;color:#a19888;padding:4px 0 10px}#version-list{display:flex;flex-direction:column;gap:8px}.version-rail .version-tile{width:44px;height:44px;aspect-ratio:1;border-radius:9px;padding:0;display:grid;place-items:center;border:1px solid #e2ddd3;background:#fffdf9;color:#7c7469;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;flex-shrink:0}.version-rail .version-tile[aria-pressed=true]{background:#282724;border-color:#282724;color:#fff}.version-rail .version-tile:hover{border-color:#9a8e7a}.version-rail #add-version{font-size:21px;background:transparent;border-style:dashed}.version-rail .series-tile{background:transparent;color:#958a77}.workspace[data-arrangement=pan]{grid-auto-columns:calc(100vw - var(--version-rail-width) - 40px)}@media(max-width:650px){:root{--version-rail-width:52px}.version-rail{padding:12px 5px}.version-rail .version-tile{width:38px;height:38px}}

/* One compact row for view selection and arrangement. */
.workspace-toolbar{display:flex;align-items:center;gap:16px;padding:12px 20px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}.workspace-toolbar>.view-picker{padding:0;margin:0;display:flex;flex-wrap:nowrap;gap:5px;flex:0 0 auto}.workspace-toolbar>.studio-bar{padding:0;margin:0;flex:0 0 auto}.workspace-toolbar .studio-status{flex-wrap:nowrap;gap:5px}.workspace-toolbar button{font-size:11px;white-space:nowrap}.workspace-toolbar #model-status{display:block}.workspace-toolbar .studio-bar{border-left:1px solid var(--line);padding-left:16px}@media(max-width:650px){.workspace-toolbar{padding:10px;gap:10px}.workspace-toolbar .studio-bar{padding-left:10px}}

/* Reference-derived craft tokens */
.crafted[data-font=system]{font-family:Inter,system-ui,sans-serif}.crafted[data-font=serif]{font-family:Georgia,serif}.crafted[data-font=mono]{font-family:ui-monospace,monospace}
.crafted .proto-title h2{font-size:var(--headingSize)}
.crafted button,.crafted input,.crafted select{border-radius:var(--controlRadius)}
.crafted[data-button-style=outline] button.primary{background:transparent;color:var(--accent);border:1px solid var(--accent)}
.crafted[data-button-style=soft] button.primary{background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);border-color:transparent}
.crafted[data-shadow=soft] :is(.record-list article,.table-wrap,.record-detail){box-shadow:0 2px 8px #00000012}.crafted[data-shadow=raised] :is(.record-list article,.table-wrap,.record-detail){box-shadow:0 8px 24px #00000024}
#design-dialog{width:min(760px,94vw);max-height:90vh;overflow:auto}#design-dialog label{display:grid;gap:6px;margin:12px 0}#design-dialog input,#design-dialog textarea,#design-dialog select{padding:8px;border:1px solid #d8d9e0;border-radius:8px;min-width:0}#design-dialog textarea{min-height:70px}#design-dialog .ds-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.ds-tokens{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:4px 16px}.ds-tokens label{font-size:12px}#ds-message{font-size:13px;white-space:pre-wrap}#ds-image-preview{max-width:100%;max-height:160px;object-fit:contain}#ds-review{border-top:1px solid #ddd;margin-top:16px}#ds-review h3{margin-top:16px}

/* Layout parameters share one compact, horizontally scrollable toolbar. */
.layout-pane>.layout-tools{flex-wrap:nowrap;align-items:flex-start;gap:10px;overflow-x:auto;scrollbar-width:thin;flex-shrink:0}
#layout-quantized{display:contents}
.layout-pane>.layout-tools label{flex:0 0 auto;min-width:0;width:auto}
.layout-pane>.layout-tools select{display:block;field-sizing:content;width:auto;min-width:0}
/* Explicit chevron inset preserves space between short values and the edge. */
.layout-tools select,.craft-controls select,#ds-tokens select,#user-context,.meaning-object .capability-target{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%236b665e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 12px}

/* Overview uses the workspace without a bottom navigation dock. */
body{padding-bottom:0}
.workspace[data-arrangement=overview]{grid-template-columns:var(--resize-columns,minmax(0,1fr) minmax(0,1fr) minmax(0,2fr))}
@media(max-width:650px){.workspace[data-arrangement=overview]{grid-template-columns:1fr}}

/* Device sizes are independent of the surrounding workspace arrangement. */
.layout-device-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#fcfbf9;border-bottom:1px solid #e9e5dd;flex-wrap:wrap;flex-shrink:0}
#layout-devices{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #e6e2da;border-radius:999px;background:#fff}
#layout-devices button{display:flex;align-items:center;gap:6px;padding:7px 11px;font-size:10px;border-color:transparent;box-shadow:none}
#layout-devices button[aria-pressed=true]{background:#282724;color:white;border-color:#282724}
#layout-devices svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;flex-shrink:0}
#layout-device-size{font-size:9px;color:#999082;white-space:nowrap;font-variant-numeric:tabular-nums}
#layout-preview.device-preview{background-color:#f4f3f0;background-image:radial-gradient(#dad6ce .65px,transparent .65px);background-size:12px 12px;min-height:280px}
#layout-preview.device-preview>.prototype{margin:0 auto;flex-shrink:0;overflow:auto;box-shadow:0 3px 18px #29251c0a}
#layout-preview.device-preview>.prototype>.proto-shell{min-height:calc(100% - 50px)}
@media(max-width:650px){#layout-devices button{padding:7px 9px;font-size:9px}.layout-device-bar{padding:9px}}

.workspace-toolbar>.studio-bar{margin-left:auto}
#layout-preview.device-preview{min-width:0;max-height:80vh;overflow:auto}

.device-frame{position:relative;max-width:calc(100% - 16px);container-type:inline-size;container-name:device;}
#layout-preview .device-frame>.prototype{margin:0;overflow:auto;box-shadow:0 3px 18px #29251c0a}
.device-resize{position:absolute;left:100%;top:0;bottom:0;width:16px;padding:0;border:0;border-radius:0;background:#e5e0d7;color:#71695b;cursor:ew-resize;touch-action:none;font-size:20px}
.device-resize:hover,.device-resize:focus-visible{background:#cfc5b4}
@container device (max-width:480px){.prototype[data-nav=left] .proto-shell{flex-direction:column}.prototype[data-nav=left] .proto-shell>nav{width:auto;flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--borderColor)}.prototype .proto-shell>main{padding:12px}.prototype table{min-width:0}.prototype .proto-tools input{min-width:0;width:100%}}

.top-actions .toolbar-icon{display:inline-flex;align-items:center;justify-content:center;padding:7px;width:32px;height:32px}
.toolbar-icon svg{width:16px;height:16px;flex-shrink:0;stroke-width:1.75}

/* Share the toolbar space and let the canvas grow with its pane. */
.workspace-toolbar>.view-picker{flex:1 0 auto}
.workspace-toolbar>.view-picker button{flex:1 0 auto}
#layout-preview.device-preview{display:flex;align-items:stretch;max-height:none}
#layout-preview .device-frame{display:flex;flex-direction:column;flex-shrink:0;min-height:100%}
#layout-preview .device-frame>.prototype{flex:1 0 auto;overflow:visible;display:flex;flex-direction:column}
#layout-preview .device-frame>.prototype>.proto-brand{flex-shrink:0}
#layout-preview .device-frame>.prototype>.proto-shell{flex:1;min-height:0}

#inspector-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:0;border:1px solid #ddd6ca;border-radius:14px;box-shadow:0 16px 60px #28221a26}
#inspector-dialog::backdrop{background:#28221a26}
#inspector-dialog .inspector{max-height:none;border-top:0;padding:24px;font-size:14px;line-height:1.5}
#inspector-dialog .inspector-title input{width:auto;flex:1}
.meaning-object{cursor:pointer}
.meaning-object:focus-visible{outline:2px solid #9d927f;outline-offset:2px}

/* Empty specification helper stays out of the saved document. */
.text-workbench #spec:placeholder-shown{font-size:24px;line-height:1.5;font-weight:400}
.text-workbench #spec::placeholder{color:#b6b2ac;opacity:1}

/* Generation: linked schema nodes and an assembling screen, in the output columns. */
.schema-pane,.layout-pane{position:relative}
.generation-indicator{position:absolute;inset:60px 0 28px;display:grid;place-items:center;z-index:8;background:rgba(250,249,247,.86);backdrop-filter:blur(5px);border-radius:0 0 18px 18px;cursor:progress}
.generation-indicator[hidden]{display:none}
.generation-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:24px;max-width:100%;box-sizing:border-box}
.generation-card strong{font-size:14px;font-weight:550;color:#514b61;letter-spacing:-.2px}
.generation-card small{font-size:11px;line-height:1.6;color:#8d879c;max-width:220px}
.generation-art{width:100px;height:80px;position:relative;margin-bottom:12px;color:#a59abf}
.generation-art i,.generation-art span{display:block;position:absolute;box-sizing:border-box}
.schema-seed span{left:25px;top:39px;width:50px;height:1px;background:currentColor;transform:rotate(-30deg);opacity:.45}
.schema-seed i{width:20px;height:20px;border:1px solid currentColor;background:#f0edf6;border-radius:6px;animation:schema-bloom 2.4s ease-in-out infinite}
.schema-seed i:nth-child(1){left:6px;top:39px}.schema-seed i:nth-child(2){left:40px;top:17px;animation-delay:.3s}.schema-seed i:nth-child(3){right:5px;top:40px;animation-delay:.6s}.schema-seed i:nth-child(4){left:40px;bottom:0;animation-delay:.9s}
.layout-seed{border:1px solid #c3bace;border-radius:9px;background:#fffdfb;box-shadow:0 5px 22px #74618d0b}
.layout-seed span{left:9px;right:9px;top:12px;height:4px;border-radius:4px;background:#c4b9d4}
.layout-seed i{background:#e6dfef;border:1px solid #d1c6de;border-radius:3px;animation:layout-assemble 2.6s ease-in-out infinite}
.layout-seed i:nth-child(1){left:9px;top:25px;width:19px;height:43px}.layout-seed i:nth-child(2){left:35px;top:25px;width:53px;height:11px;animation-delay:.2s}.layout-seed i:nth-child(3){left:35px;top:43px;width:23px;height:25px;animation-delay:.4s}.layout-seed i:nth-child(4){left:65px;top:43px;width:23px;height:25px;animation-delay:.6s}
@keyframes schema-bloom{0%,100%{transform:scale(.82);opacity:.45}45%,65%{transform:scale(1);opacity:1;background:#ded5ed}}
@keyframes layout-assemble{0%,100%{transform:translateY(4px);opacity:.25}35%,70%{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.generation-art i{animation:none!important;opacity:.8}.generation-indicator{backdrop-filter:none}}

.view-picker button[data-pin][aria-pressed=true],.view-picker button[data-pin][aria-pressed=true]:hover{background:#282724;border-color:#282724;color:#fff}

.topbar .brand img{display:block;width:auto;height:28px;max-width:none;object-fit:contain}

/* Align the visible logo artwork with the workspace controls. */
.topbar{padding-left:20px}
.topbar .brand{overflow:hidden}
.topbar .brand img{margin-left:-9.333px}
@media(max-width:650px){.topbar{padding-left:10px}}

/* Record actions sit at the trailing edge of their row or card. */
.prototype .row-actions{justify-content:flex-end}
.prototype .actions-cell{width:1%;white-space:nowrap;text-align:right}
.prototype .actions-cell .row-actions{flex-wrap:nowrap}

/* Prototype handoff */
#export-dialog{width:min(560px,94vw);max-height:90vh;overflow:auto}
#export-dialog .dialog-body{display:grid;gap:16px;line-height:1.6}
#export-dialog p{margin:0}#export-dialog label{display:grid;gap:6px;font-size:12px;color:#4d4b47}
#export-dialog select,#export-dialog textarea{padding:10px 12px;width:100%;border:1px solid #e5e4e1;background:#fcfbfa;border-radius:8px;font:inherit}
#export-dialog textarea{resize:vertical;min-height:90px}#export-dialog .optional{font-size:10px;color:#8a8780}
#export-dialog .export-summary{font-size:12px;padding:10px 12px;background:#f5f3ef;border-radius:8px}
#export-dialog .export-note{font-size:11px;color:#827e76}#export-dialog .export-actions{display:flex;flex-wrap:wrap;gap:8px}
#export-message{font-size:12px}#export-message:empty{display:none}

/* Optional voice input in the Text column. */
.text-pane .dictation-toggle{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:11px;padding:6px 9px}
.text-pane .dictation-toggle+.expand{margin-left:0}
#dictate[aria-pressed=true],#dictate[aria-pressed=true]:hover{background:#282724;color:#fff;border-color:#282724}
#dictate[aria-pressed=true] svg{color:#93c9a0}#dictate[aria-disabled=true]{opacity:.55}
.dictation-status,.dictation-interim{flex-shrink:0;margin:0;padding:8px 14px;font-size:11px;line-height:1.5;background:#f7f5f1;color:#666159;border-bottom:1px solid #e9e5dd}
.dictation-interim{font-style:italic;color:#8b8478;max-height:90px;overflow:auto}
.dictation-status[hidden],.dictation-interim[hidden]{display:none}

/* Comfortable object editing controls, scoped to the inspector modal. */
#inspector-dialog .dialog-head{padding:20px 24px}
#inspector-dialog .dialog-head h2{font-size:19px}
#inspector-dialog .dialog-head button{width:44px;height:44px;font-size:20px}
#inspector-dialog .inspector-title{gap:12px;margin-bottom:20px}
#inspector-dialog .inspector-title>div{display:flex;gap:6px}
#inspector-dialog .inspector-title input{font-size:17px;padding:10px 12px;border-color:var(--line)}
#inspector-dialog .inspector h4{font-size:12px;letter-spacing:.8px;margin:24px 0 12px}
#inspector-dialog .inspector input:not([type=checkbox]),#inspector-dialog .inspector select{min-height:44px;padding:10px 12px;font-size:14px;border-radius:8px}
#inspector-dialog .inspector button{min-width:44px;min-height:44px;padding:10px 12px;font-size:14px}
#inspector-dialog .field-row{gap:10px;margin:10px 0;align-items:center}
#inspector-dialog .field-row input{flex:1;min-width:0;width:0}
#inspector-dialog .field-row select{flex:0 0 112px;width:112px}
#inspector-dialog .operation-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;font-size:14px}
#inspector-dialog .operation-grid label{min-height:48px;padding:12px;gap:10px;cursor:pointer;border:1px solid #e5e0d8;border-radius:8px;background:#fff;user-select:none}
#inspector-dialog .operation-grid label:hover{background:#f7f5f0;border-color:#bbb2a3}
#inspector-dialog .operation-grid label:has(input:checked){background:#f1eee7;border-color:#c6bdaf}
#inspector-dialog .operation-grid label:focus-within{outline:2px solid #777063;outline-offset:2px}
#inspector-dialog .operation-grid input{width:18px;height:18px;flex:0 0 18px;margin:0;cursor:pointer}
#inspector-dialog .operation-field{gap:12px;margin:12px 0;font-size:14px}
#inspector-dialog .relation-row{padding:14px;gap:10px;margin:12px 0;font-size:14px;border-radius:9px}
#inspector-dialog .relation-row>span{flex-basis:100%;overflow-wrap:anywhere}
#inspector-dialog .relation-row select{flex:1;min-width:0}
#inspector-dialog .connect-form{gap:10px;flex-wrap:wrap}
#inspector-dialog .connect-form select{flex:1 1 130px}
/* Schema language: user roles, objects and actions remain visually distinct. */
.meaning-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.meaning-legend .axiom-chip{font-size:10px;padding:4px 7px;border-radius:5px}
.meaning-object .axiom-phrase{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px;line-height:1.7}
.meaning-sentence{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:8px 0;font-size:14px}
.axiom-phrase>.meaning-sentence{display:contents}
.meaning-object .axiom-chip{font-size:13px;line-height:1.5;padding:4px 7px;border-radius:6px}
.meaning-legend .semantic-user,.meaning-object .semantic-user,.meaning-sentence .semantic-user{background:#f0eafa;color:#67418d;border-color:#d8c6ee}
.meaning-legend .semantic-object,.meaning-object .semantic-object,.meaning-sentence .semantic-object{background:#eaf1fb;color:#245a91;border-color:#c5d7ee}
.meaning-legend .semantic-action,.meaning-object .semantic-action,.meaning-sentence .semantic-action,.meaning-unassigned .semantic-action{background:#e8f4ec;color:#276442;border-color:#bedbc9}
.meaning-object .semantic-field{background:#f4f2ee;color:#635c50;border-color:#e1dbd1}
.meaning-object[data-object-kind=user]{border-left:3px solid #ac8bca}
.meaning-object .capability-target{font:inherit;font-size:13px;field-sizing:content;max-width:100%;min-width:0;width:auto;min-height:32px;padding:4px 8px;border-radius:6px;cursor:pointer}
.meaning-field-type{color:#756f65;font-size:10px;margin-right:6px}
.meaning-relationship:empty{display:none}
.node[data-object-kind=user] .node-head{background:#f0eafa;color:#67418d}
.node[data-object-kind=object] .node-head{background:#eaf1fb;color:#245a91}
.node .node-ops>span{background:#e8f4ec;color:#276442}
@media(max-width:480px){
 #inspector-dialog .inspector{padding:18px}
 #inspector-dialog .dialog-head{padding:16px 18px}
 #inspector-dialog .operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #inspector-dialog .field-row{gap:6px}
 #inspector-dialog .field-row select{flex-basis:96px;width:96px}
 #inspector-dialog .inspector-title{flex-wrap:wrap}
 #inspector-dialog .inspector-title input{flex-basis:100%}
}

/* One shared actor context for the readable schema and both prototypes. */
.user-context-bar{display:flex;align-items:center;gap:12px;padding:0 20px 12px;font-size:12px}
.user-context-bar[hidden],.diagram-context[hidden]{display:none!important}
.user-context-bar label{gap:10px;font-weight:550}.user-context-bar select{background:#f0eafa;color:#67418d;border-color:#d8c6ee;border-radius:20px;min-height:36px;max-width:280px;padding:7px 30px 7px 12px}
.user-context-bar>span{color:#888177;font-size:11px}.diagram-context{font-size:11px;gap:6px}.diagram-context select{max-width:170px}
.meaning-unassigned{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px;margin-bottom:12px;background:#fff8e8;border:1px solid #e5d7b9;border-radius:9px;font-size:12px}
.meaning-unassigned select{max-width:100%}.meaning-relationship{font-size:13px;line-height:1.7}
.preview-empty-role{padding:24px;color:#82796b;font-size:13px}.inspector-actions{margin-bottom:18px}.inspector-actions h5{font-size:14px;margin:12px 0}
@media(max-width:650px){.user-context-bar{padding:0 10px 10px;flex-wrap:wrap}.user-context-bar>span{display:none}}

/* Full-width Layout keeps device presets alongside its presentation controls. */
.layout-pane.layout-single>.layout-tools{display:flex;align-items:center;flex-wrap:wrap;overflow:visible}
.layout-pane.layout-single .layout-tools>.layout-device-bar{margin-left:auto;padding:0;border:0;background:transparent;flex:0 0 auto;gap:14px;justify-content:flex-end}
#layout-focus{margin-left:auto;font-size:11px}#layout-focus[aria-pressed=true]{background:#282724;color:#fff;border-color:#282724}
body.layout-focus-mode>.topbar,body.layout-focus-mode>.workspace-toolbar{display:none!important}
body.layout-focus-mode>.user-context-bar{padding-top:12px}
body.layout-focus-mode>#workspace{padding-top:12px}
body.layout-focus-mode .layout-pane{min-height:calc(100dvh - 76px)}
@media(max-width:900px){.layout-pane.layout-single .layout-tools>.layout-device-bar{flex-basis:100%;padding-top:8px;justify-content:flex-end}}
.layout-pane .pane-heading .expand{margin-left:0}

/* Project, views and file actions share one compact app header. */
.topbar{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr) auto;gap:12px;min-height:66px;height:auto;padding:12px 20px;align-items:center}
.topbar #product-name{width:100%;max-width:none;min-width:0;padding:8px 10px;font-size:13px;font-weight:600;border:1px solid transparent;background:transparent;letter-spacing:-.2px}
.topbar #product-name:hover,.topbar #product-name:focus{border-color:#e4e0d8;background:#fff}
.topbar>.workspace-toolbar{padding:0;gap:8px;min-width:0;overflow:visible;flex-wrap:nowrap}
.topbar .workspace-toolbar>.view-picker{flex:1 1 auto;gap:3px}
.topbar .workspace-toolbar>.view-picker button{flex:1 1 auto;padding:7px 9px;font-size:10px}
.topbar .workspace-toolbar>.studio-bar{padding-left:8px;margin:0;flex:0 0 auto}
.topbar .workspace-toolbar .studio-status{gap:3px}
.topbar .workspace-toolbar .studio-status button{padding:7px 9px;font-size:10px}
.topbar>.top-actions{margin:0;gap:4px;flex-wrap:nowrap}
.topbar .top-actions>button{padding:7px 9px;font-size:11px}
.topbar .top-actions>.toolbar-icon{padding:7px;width:30px;height:30px}
.user-context-bar{padding-top:2px;gap:0}
.user-context-bar>select{font-size:12px;background:#f0eafa;color:#67418d;border-color:#d8c6ee;border-radius:20px;min-height:36px;max-width:280px;padding:7px 30px 7px 12px;field-sizing:content}
.text-bottom{justify-content:flex-end}
.schema-tools{justify-content:flex-end}
@media(max-width:1120px){
 .topbar{grid-template-columns:minmax(120px,1fr) auto;gap:10px}
 .topbar>.workspace-toolbar{grid-column:1/-1;grid-row:2}
 .topbar>.top-actions{grid-column:2;grid-row:1}
}
@media(max-width:650px){
 .topbar{padding:10px;gap:8px}
 .topbar>.workspace-toolbar{flex-wrap:wrap;gap:8px}
 .topbar .workspace-toolbar>.view-picker{flex:1 1 100%}
 .topbar .workspace-toolbar>.studio-bar{border-left:0;padding-left:0;margin-left:auto}
 .topbar #product-name{font-size:12px;padding:7px 4px}
 .topbar .top-actions>button{font-size:10px;padding:6px}
}

/* Individual view toggles fill the simplified header. */
.topbar .workspace-toolbar>.view-picker{width:100%}
.user-context-bar label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:550}
.version-entry{position:relative;width:44px;height:44px;flex-shrink:0}
.version-rail .version-delete{position:absolute;top:-5px;right:-6px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid #ded7ce;border-radius:50%;background:#fff;color:#9b4b41;font-size:16px;line-height:1;opacity:0;pointer-events:none;transition:opacity .12s}
.version-entry:hover .version-delete,.version-entry:focus-within .version-delete{opacity:1;pointer-events:auto}
.version-rail .version-delete:hover{background:#fff0ed;border-color:#b87b71;color:#813c32}
#delete-project-dialog .danger{margin-left:8px;background:#9b473c;border-color:#9b473c;color:#fff}
@media(hover:none){.version-rail .version-delete{opacity:1;pointer-events:auto}}
@media(max-width:650px){.version-entry{width:38px;height:38px}}


/* Match the header controls and keep the user context beside the project title. */
.topbar{display:flex;flex-wrap:nowrap;gap:12px}
.topbar #product-name{flex:0 1 170px;width:170px;min-width:110px;height:44px;padding:10px 14px;border:1px solid #e4e0d8;background:#fcfbfa}
.topbar>.user-context-bar{flex:0 0 auto;padding:0;margin:0}
.topbar .user-context-bar label{white-space:nowrap;gap:8px}
#user-context{field-sizing:content;width:auto;min-width:0;max-width:240px;height:44px;padding:10px 36px 10px 12px;font-size:12px;background-position:right 12px center}
.topbar>.workspace-toolbar{flex:1 1 auto;min-width:250px}
.topbar .workspace-toolbar>.view-picker{height:44px}
.topbar .workspace-toolbar>.view-picker button{height:44px;font-size:11px}
.topbar>.top-actions{flex:0 0 auto;height:44px;box-sizing:border-box;padding:5px}
body.layout-focus-mode>.topbar{display:flex!important;min-height:0;padding-top:12px;padding-bottom:0}
body.layout-focus-mode>.topbar>:not(.user-context-bar){display:none!important}
body.layout-focus-mode>.topbar:not(:has(.user-context-bar:not([hidden]))){display:none!important}
@media(max-width:1120px){
 .topbar{flex-wrap:wrap}
 .topbar>.workspace-toolbar{order:4;flex:1 1 100%}
 .topbar>.top-actions{margin-left:auto}
}
@media(max-width:650px){
 .topbar{gap:8px}
 .topbar #product-name{flex:1 1 140px}
 .topbar>.user-context-bar{flex:0 1 auto;max-width:100%}
 #user-context{max-width:190px}
 .topbar>.top-actions{margin-left:0}
}


.text-bottom[hidden]{display:none}
.layout-pane>.layout-tools{display:flex;align-items:center;flex-wrap:wrap;overflow:visible}
.layout-pane .layout-tools>.layout-device-bar{margin-left:auto;padding:0;border:0;background:transparent;flex:0 0 auto;gap:14px;justify-content:flex-end}
@media(max-width:900px){.layout-pane.layout-single .layout-tools>.layout-device-bar{flex-basis:auto;padding-top:0}}
.version-rail .version-duplicate{position:absolute;bottom:-5px;right:-6px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid #ded7ce;border-radius:50%;background:#fff;color:#625d54;opacity:0;pointer-events:none}
.version-entry:hover .version-duplicate,.version-entry:focus-within .version-duplicate{opacity:1;pointer-events:auto}
.version-rail .version-duplicate:hover{background:#efede8;border-color:#aaa399}
@media(hover:none){.version-rail .version-duplicate{opacity:1;pointer-events:auto}}


/* Keep object editing beside the workspace, without a modal backdrop. */
.schema-tools{justify-content:stretch}
.schema-tools>button{flex:1 1 0;min-height:36px;text-align:center}
.schema-tools>.diagram-context{flex:1 0 100%;justify-content:space-between}
.meaning-object .capability-target{padding-right:36px;background-position:right 12px center}
body:has(#inspector-dialog[open]){--inspector-width:400px;padding-right:var(--inspector-width)}
#inspector-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:400px;max-width:none;height:100dvh;max-height:none;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:-4px 0 16px #2421350a;padding:0;z-index:30}
#inspector-dialog[open]{display:flex;flex-direction:column}
#inspector-dialog .dialog-head{flex-shrink:0;padding:18px 20px}
#inspector-dialog .inspector{flex:1;min-height:0;max-height:none;overflow-y:auto;padding:20px}
#inspector-dialog .operation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#inspector-dialog .inspector-title{flex-wrap:wrap}
#inspector-dialog .inspector-title input{flex:1 1 100%;width:100%}
body:has(#inspector-dialog[open]) .topbar{flex-wrap:wrap}
body:has(#inspector-dialog[open]) .topbar>.workspace-toolbar{order:4;flex:1 1 100%}
body:has(#inspector-dialog[open]) .topbar>.top-actions{margin-left:auto}
body:has(#inspector-dialog[open]) #workspace[data-arrangement=pan]>.pane{max-width:calc(100vw - var(--version-rail-width,0px) - var(--inspector-width) - 40px)}
@media(max-width:700px){
 body:has(#inspector-dialog[open]){padding-right:0;padding-bottom:50dvh}
 #inspector-dialog{inset:auto 0 0 0;width:100%;height:48dvh;border-left:0;border-top:1px solid var(--line)}
 body:has(#inspector-dialog[open]) #workspace[data-arrangement=pan]>.pane{max-width:calc(100vw - var(--version-rail-width,0px) - 20px)}
}


/* Align device presets with the controls, below their captions. */
.layout-pane>.layout-tools,.layout-pane.layout-single>.layout-tools{align-items:flex-end}
.layout-pane .layout-tools>.layout-device-bar{align-self:flex-end}

/* A compact caption above the current user, within the shared header height. */
.topbar .user-context-bar label{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:0;padding-top:12px}
.topbar .user-context-bar label>span{position:absolute;top:-1px;left:12px;font-size:10px;line-height:12px;font-weight:500;color:#777168}
.topbar #user-context{height:32px;min-height:32px;padding-top:6px;padding-bottom:6px}

/* Restrained active view toggles; schema typography and relationship guides. */
.view-picker button[data-pin][aria-pressed=true],
.view-picker button[data-pin][aria-pressed=true]:hover{background:#fff;color:#282724;border-color:#68645c}
.meaning-object{--schema-stroke:#e4ded4;font-weight:550}
.meaning-object .axiom-chip,.meaning-object .meaning-name .axiom-chip,
.meaning-object .capability-target,.meaning-object .meaning-field-type,
.meaning-object .meaning-name{font-weight:550}
.meaning-edge{border-left:1px solid var(--schema-stroke)}
.meaning-object[data-object-kind=user]{border-left-width:1px}
.meaning-object .axiom-chip,.meaning-object .meaning-name{flex:0 0 auto;width:fit-content}
.meaning-object .capability-target{flex:0 0 auto;field-sizing:content;width:auto;padding-right:32px;background-repeat:no-repeat;background-position:right 10px center;background-size:12px 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23245a91' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}


/* Keep the context caption inside the role selector. */
.topbar .user-context-bar label{padding-top:0}
.topbar .user-context-bar label>span{top:50%;left:12px;transform:translateY(-50%);color:#78648b;pointer-events:none;z-index:1}
.topbar #user-context{height:44px;min-height:44px;padding:10px 36px 10px 44px}


/* A lighter, more compact editor with the shared action palette. */
#inspector-dialog{color-scheme:light;background:#fff;color:#36332e}
#inspector-dialog .dialog-head{padding:14px 18px}
#inspector-dialog .dialog-head h2{font-size:16px}
#inspector-dialog .dialog-head button{width:36px;height:36px;font-size:18px}
#inspector-dialog .inspector{padding:18px;font-size:13px}
#inspector-dialog .inspector-title{gap:8px;margin-bottom:16px}
#inspector-dialog .inspector input:not([type=checkbox]),#inspector-dialog .inspector select{min-height:38px;padding:8px 10px;font-size:13px}
#inspector-dialog .inspector-title input{font-size:15px}
#inspector-dialog .inspector button{min-height:36px;min-width:36px;padding:8px 10px;font-size:13px}
#inspector-dialog .field-row{gap:8px;margin:8px 0}
#inspector-dialog .field-row select{flex-basis:100px;width:100px}
#inspector-dialog .inspector h4{font-size:11px;margin:20px 0 10px}
#inspector-dialog .operation-grid{gap:8px;font-size:13px}
#inspector-dialog .operation-grid label{min-height:44px;padding:10px;gap:8px;background:#f5faf6;border-color:#cde2d3;color:#276442}
#inspector-dialog .operation-grid label:hover{background:#e8f4ec;border-color:#8fb99d}
#inspector-dialog .operation-grid label:has(input:checked){background:#e8f4ec;border-color:#7bab8a;color:#276442}
#inspector-dialog .operation-grid label:focus-within{outline-color:#43875a}
#inspector-dialog .operation-grid input{width:16px;height:16px;flex-basis:16px;accent-color:#276442}
#inspector-dialog .operation-field{font-size:13px;gap:10px;margin:10px 0}
#inspector-dialog .relation-row{font-size:13px;padding:12px;gap:8px;margin:10px 0}
#inspector-dialog .connect-form{gap:8px}


/* Match the prefix and selected role, separated within the same control. */
.topbar .user-context-bar label>span{font-size:12px;line-height:18px;font-weight:550;color:#67418d;padding-right:10px;border-right:1px solid #c8b5df}
.topbar #user-context{font-size:12px;font-weight:550;padding-left:60px}


/* User perspectives belong to Layout; Schema remains a shared map. */
.layout-user-tabs{display:flex;gap:4px;padding:10px 12px 0;border-bottom:1px solid var(--line);overflow-x:auto;flex-shrink:0}
.layout-user-tabs[hidden]{display:none}
.layout-user-tabs>[role=tab]{flex:0 0 auto;border:0;border-bottom:2px solid transparent;border-radius:6px 6px 0 0;padding:9px 12px;background:transparent;color:#82796e;font-size:12px;font-weight:550}
.layout-user-tabs>[role=tab][aria-selected=true]{color:#67418d;background:#f0eafa;border-bottom-color:#9573b4}
.layout-user-tabs>[role=tab]:hover{background:#f6f2fa;color:#67418d}
#inspector-dialog .dialog-head{background:#282724;color:#f4f1eb;border-bottom-color:#45423c}
#inspector-dialog .dialog-head button{background:transparent;color:#f4f1eb;border-color:transparent}
#inspector-dialog .dialog-head button:hover{background:#45423c}
