/* IRIS Technologies — shared presentation layer. No workflow or geometry rules. */
@font-face{font-family:Geist;src:url('/tools/iris-design-engine/geist.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{--iris-orange:#f45b00;--iris-action:#bd4500;--iris-ink:#242421;--iris-muted:#706e68;--iris-paper:#faf8f4;--iris-line:#dfdcd5;--iris-soft:#fff0e6;--iris-canvas:#f4f2ee;font:14px Geist,'Segoe UI',Arial,sans-serif;color:var(--iris-ink);background:var(--iris-paper);accent-color:var(--iris-action)}
body button,body input,body select,body textarea{font-family:Geist,'Segoe UI',Arial,sans-serif}
body button{transition:background .12s,border-color .12s;color:var(--iris-ink);border-radius:6px}
body button:hover:not(:disabled){background:var(--iris-soft);border-color:#edb38c}
body button:disabled{cursor:default}
body input,body select,body textarea{border-color:var(--iris-line);border-radius:6px;color:var(--iris-ink);background:#fff}
body button:focus-visible,body input:focus,body select:focus,body textarea:focus{outline:2px solid var(--iris-action);outline-offset:2px}
body header{height:64px;min-height:64px;background:var(--iris-paper);color:var(--iris-ink);border-bottom:1px solid var(--iris-line);padding:0 22px;gap:20px}
body .brand{display:flex;align-items:center;gap:16px;color:var(--iris-ink);flex-shrink:0;text-decoration:none;letter-spacing:0}
.brand img{display:block;width:88px;height:49px;object-fit:contain}
body .brand .brand-product{display:grid;gap:3px;border-left:1px solid #d9d4cb;padding-left:16px;font-size:18px;font-weight:650;line-height:1.1;color:var(--iris-ink);letter-spacing:-.5px}
body .brand-product>span{font-size:11px;font-weight:450;color:var(--iris-muted);letter-spacing:0}
body #name{color:var(--iris-ink);font-size:14px;margin-left:0;border:1px solid transparent;width:190px}
body #name:focus{background:white;border-color:var(--iris-line)}
body #dirty{color:var(--iris-muted);font-size:12px}
body .header-actions{gap:7px}
body .header-actions button{border-color:var(--iris-line);color:var(--iris-ink);background:#fff;padding:8px 12px}
body .header-actions button:hover{background:var(--iris-soft)}
body .tab-strip{height:42px;min-height:42px;background:var(--iris-paper);border-color:var(--iris-line);padding:0 22px;gap:12px;flex-shrink:0}
body .tab-strip strong{color:var(--iris-muted);font-size:11px;letter-spacing:1.2px;margin-right:24px}
body .tab-strip button{font-size:12px;font-weight:550;letter-spacing:.6px;padding:0 18px;border-radius:0;color:var(--iris-muted)}
body .tab-strip button.active{border-bottom:3px solid var(--iris-orange);color:var(--iris-action);background:#fff2e8}
body .tab-strip>span{color:var(--iris-muted);font-size:10px}
body .ribbon{height:104px;background:#fff;border-color:var(--iris-line);padding:9px 18px;gap:10px}
body .ribbon{overflow-x:auto;overflow-y:hidden}
body .ribbon>.tool-group,body .ribbon>button{flex-shrink:0}
body .tool-group{border-color:var(--iris-line)}
body .tool{font-size:12px;min-width:72px;height:70px;gap:4px}
body .tool b{color:var(--iris-action);font-size:26px}
body .tool-group>small{font-size:9px;color:var(--iris-muted)}
body .tool.active,body .tree-feature.selected,body .timeline-item.selected{background:var(--iris-soft);border-color:var(--iris-orange);color:var(--iris-action)}
body .rebuild{background:var(--iris-soft);color:var(--iris-action);border-color:#edc2a8;font-size:13px}
body .primary,body #import-model,body #model-import-empty,body #draw-place{background:var(--iris-action)!important;border-color:var(--iris-action)!important;color:#fff!important}
body .primary:hover:not(:disabled),body #import-model:hover:not(:disabled){background:#a63d00!important;border-color:#a63d00!important}
body main{height:calc(100dvh - 240px);grid-template-columns:230px minmax(300px,1fr) 270px}
body .browser,body .inspector{background:#fff;border-color:var(--iris-line)}
body .panel-title{height:38px;min-height:38px;background:var(--iris-paper);color:var(--iris-muted);border-color:var(--iris-line);font-size:10px;padding:12px 15px}
body .tree-root,body .body-heading,body .tree-feature{font-size:12px}
body .feature-icon,body .add-feature,body .browser-footer button{color:var(--iris-action)}
body .origin,body .help,body .scope-note,body .browser-footer p{color:var(--iris-muted)}
body .origin button,body .browser-footer button{font-size:12px}
body .browser-footer h3,body h3{color:var(--iris-muted);font-size:11px}
body .viewport-bar{background:var(--iris-paper);color:var(--iris-muted);border-color:var(--iris-line);font-size:11px;height:34px;min-height:34px}
body #mode-label{color:var(--iris-action)}
body #viewer{background:var(--iris-canvas)}
body .view-cube button,body .navigation{background:#ffffffed;color:var(--iris-muted);border-color:var(--iris-line);border-radius:6px}
body .view-cube button{font-size:10px}
body .navigation button{font-size:12px}
body .navigation button[aria-pressed=true]{background:var(--iris-soft);color:var(--iris-action)}
body .timeline{background:var(--iris-paper);border-color:var(--iris-line)}
body .timeline-item{background:white;border-color:var(--iris-line);color:var(--iris-action)}
body .timeline-end{border-color:var(--iris-orange)}
body #empty{color:var(--iris-muted)}
body #empty h1{font-family:Georgia,serif;font-size:30px;color:var(--iris-ink)}
body #empty p{font-size:14px}
body #empty button{background:#fff;color:var(--iris-action);border-color:#edc2a8;font-size:13px}
body .field,body dt{font-size:12px;color:var(--iris-muted)}
body dd{font-size:13px;color:var(--iris-ink)}
body .field input,body .field select{font-size:14px}
body .help,body .scope-note,body #export-note{font-size:12px;line-height:1.6}
body .properties,body #exports,body .body-heading,body .browser-footer{border-color:var(--iris-line)}
body #export-links a{color:var(--iris-action);border-color:var(--iris-line);font-size:12px}
body footer{height:30px;min-height:30px;background:var(--iris-paper);border-color:var(--iris-line);color:var(--iris-muted);font-size:11px;padding:0 20px}
body #statistics{font-size:11px}
body dialog{border-color:var(--iris-line);color:var(--iris-ink);box-shadow:0 18px 70px #24242126;border-radius:12px}
body dialog::backdrop{background:#24242155}
body #sketch-canvas{background:#faf8f4f5}
body #plane-picker,body #edge-choices{background:#fffdf9;border-color:var(--iris-line);color:var(--iris-ink)}
body #plane-picker button.active{background:var(--iris-soft);border-color:var(--iris-orange)}
body #drawing-fields input.locked{border-color:var(--iris-orange);background:var(--iris-soft);color:var(--iris-action)}
/* Mesh workspace keeps its full-size canvas and contextual tool panel. */
body #mesh-workspace{background:var(--iris-canvas);color:var(--iris-ink);font-family:Geist,'Segoe UI',Arial,sans-serif}
body #mesh-workspace button{background:#fff;border-color:var(--iris-line);color:var(--iris-ink);border-radius:6px;font-size:13px;padding:9px 12px}
body #mesh-workspace button:hover:not(:disabled){background:var(--iris-soft);border-color:#edb38c}
body #mesh-workspace button.active,body #mesh-workspace button[aria-pressed=true]{background:var(--iris-soft);border-color:#df8b57;color:var(--iris-action)}
body #mesh-workspace .primary,body #mesh-workspace #mesh-preview,body #mesh-workspace #mesh-export,body #mesh-workspace #mesh-empty-import{background:var(--iris-action)!important;color:white!important;border-color:var(--iris-action)!important}
body #mesh-workspace #mesh-to-solid:not(:disabled){background:#fff;border-color:#df8b57;color:var(--iris-action)}
body #mesh-workspace input:not([type=checkbox]),body #mesh-workspace select,body #mesh-workspace textarea{border-color:var(--iris-line);color:var(--iris-ink);border-radius:6px;padding:9px 8px;background:#fff}
body #mesh-workspace :is(input,select,textarea):focus,body #mesh-workspace button:focus-visible{outline:2px solid var(--iris-action);outline-offset:2px}
body #mesh-workspace label{font-size:13px;color:var(--iris-muted)}
body .mesh-toolbar{background:#fff;border-color:var(--iris-line);padding:12px 20px;gap:12px;min-height:64px}
body .mesh-toolbar>div{gap:8px}
body .mesh-toolbar strong{font-weight:650;font-size:16px;letter-spacing:-.35px;color:var(--iris-ink)}
body .mesh-file-menu>summary{background:#fff;border-color:var(--iris-line);border-radius:6px;padding:9px 12px;font-size:13px}
body .mesh-file-menu>div{background:#fff;border-color:var(--iris-line);border-radius:10px;box-shadow:0 12px 36px #24242120}
body .mesh-view-toolbar{background:var(--iris-paper);border-bottom:1px solid var(--iris-line);padding:10px 20px;min-height:48px}
body #mesh-name{color:var(--iris-ink);font-size:13px}
body .mesh-view-label{color:var(--iris-muted);font-size:10px;letter-spacing:1.1px;top:17px;left:22px;right:22px}
body .mesh-view-label span{color:var(--iris-muted)}
body .mesh-settings,body .mesh-output{background:#fff;border-color:var(--iris-line)}
body .mesh-settings{padding:20px 20px 0}
body #mesh-workspace h2{font-size:21px;letter-spacing:-.6px;color:var(--iris-ink)}
body .mesh-help{color:var(--iris-muted);font-size:13px;line-height:1.6}
body .mesh-actions{background:#fff;border-color:var(--iris-line);padding-top:14px}
body #mesh-advanced,body #mesh-point-details{border-color:var(--iris-line)}
body #mesh-canvas-hint{color:var(--iris-muted);background:#fffdf9ed;border:1px solid var(--iris-line);border-radius:30px;padding:7px 14px;font-size:11px}
body #mesh-empty h2{font-family:Georgia,serif;font-size:34px;letter-spacing:-.8px;font-weight:400;color:var(--iris-ink)}
body #mesh-empty p{color:var(--iris-muted);font-size:15px;line-height:1.7}
body #mesh-empty{gap:14px}
body #mesh-message{background:#fffdf9;border-color:var(--iris-line);color:var(--iris-muted);font-size:12px;padding:11px 20px}
body #mesh-message.error{background:#fff0e8;color:#9b3509!important}
body #mesh-parts-bar{background:#fff;border-color:var(--iris-line);padding:12px 20px;gap:12px}
body #mesh-parts-bar>strong{font-size:12px;color:var(--iris-muted)}
body #mesh-part-buttons button{font-size:12px}
body .mesh-history-bar{background:var(--iris-paper);border-color:var(--iris-line);height:48px;min-height:48px;padding:7px 20px}
body #mesh-history-state,body #mesh-check dt{color:var(--iris-muted)}
body #mesh-check dd{color:var(--iris-ink)}
body #mesh-working{background:#faf8f4eb;color:var(--iris-ink)}
body .mesh-preview-dock{background:var(--iris-canvas);border-color:var(--iris-line)!important;box-shadow:0 12px 36px #24242126;border-radius:10px}
body .mesh-outline-path{stroke:var(--iris-action);fill:#f45b000a}
body .mesh-selection-box{stroke:var(--iris-action)}
body .mesh-grip{stroke:var(--iris-action);filter:drop-shadow(0 1px 2px #24242126)}
body .mesh-rotate-grip,body .mesh-centre-grip{fill:var(--iris-action);stroke:#fff}
body .mesh-rotate-line{stroke:var(--iris-action)}
body .mesh-size-tag{fill:var(--iris-action);stroke:var(--iris-canvas);font-family:Geist,Arial,sans-serif}
/* Drafting uses the same controls while keeping the technical sheet white. */
body .draft-toolbar,body .draft-panel{background:#fff;border-color:var(--iris-line);color:var(--iris-ink)}
body #draft-workspace{background:var(--iris-canvas);color:var(--iris-ink)}
body #draft-workspace button{background:#fff;border-color:var(--iris-line);color:var(--iris-ink)}
body #draft-workspace button:hover,body #draft-workspace button[aria-pressed=true]{background:var(--iris-soft);border-color:#df8b57;color:var(--iris-action)}
body #draft-workspace button.primary{background:var(--iris-action);color:#fff}
body .draft-tools,body .draft-properties{background:#fff;border-color:var(--iris-line)}
body .draft-tools h2,body .draft-properties label,body .draft-properties summary,body .draft-check{font-size:12px;color:var(--iris-muted)}
body .draft-properties details{border-color:var(--iris-line)}
body #draft-instruction{background:var(--iris-paper);color:var(--iris-muted);border-color:var(--iris-line);font-size:12px}
body .mesh-settings input[type=range],body .draft-check input{accent-color:var(--iris-action)}
@media(max-width:1200px){body header{gap:12px;padding:0 16px}body #dirty{display:none}body main{grid-template-columns:190px minmax(300px,1fr) 240px}body .tool{min-width:62px;font-size:11px}body .tab-strip>span{display:none}body .mesh-toolbar{padding:10px 14px}body .mesh-toolbar strong{display:none}}
@media(max-width:800px){body header{padding:0 12px;gap:10px}body .brand .brand-product{font-size:16px;padding-left:10px}body .brand{gap:10px}.brand img{width:76px;height:44px}body .brand-product>span{display:none}body #name{width:120px}body .header-actions{gap:4px}body .header-actions button{padding:7px 8px;font-size:12px}body .tab-strip{padding:0 12px;gap:3px;overflow-x:auto}body .tab-strip strong{margin-right:8px}body .tab-strip button{padding:0 13px;white-space:nowrap}body main{height:auto;grid-template-columns:155px minmax(250px,1fr)}body .mesh-toolbar{padding:9px 12px;min-height:0}body .mesh-view-toolbar{padding:9px 12px}body #mesh-parts-bar{padding:9px 12px}body .mesh-history-bar{padding:6px 12px}body #mesh-message{padding:9px 12px}}
@media(max-width:520px){body header{height:60px;min-height:60px}.brand img{width:68px;height:40px}body .brand-product>span{display:none}body .brand .brand-product{font-size:14px}body #name{width:90px}body .header-actions button{font-size:11px;padding:6px}body .tab-strip strong{display:none}body .tab-strip{gap:2px}body .tab-strip button{font-size:11px;padding:0 12px}body #mesh-workspace button{padding:7px 9px}body .mesh-toolbar>div{gap:5px}body .mesh-toolbar #mesh-export-part{max-width:150px}body #mesh-empty h2{font-size:27px}body .mesh-view-label{left:12px;right:12px}body .mesh-settings{padding:14px 16px 0}body footer{padding:0 12px}body #statistics{display:none}}
@media(max-width:760px){
 body.mesh-mode{height:auto;min-height:100dvh;overflow:auto}
 body.mesh-mode header{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;position:relative}
 body.mesh-mode header .header-actions{margin-left:auto;flex:0 0 auto;width:auto}
 body.mesh-mode #mesh-workspace{flex:none;min-height:calc(100dvh - 132px)}
 body #mesh-workspace .mesh-layout,body #mesh-workspace.is-editing .mesh-layout{overflow:visible;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(500px,1fr) auto;flex:none}
 body #mesh-workspace .mesh-layout>.mesh-centre{min-height:500px}
 body #mesh-workspace .mesh-layout>.mesh-settings{max-height:none;overflow:visible;grid-row:2;border-color:var(--iris-line)}
 body .mesh-views{min-height:260px}
 body .mesh-settings .mesh-actions{position:sticky;background:#fff;bottom:0}
 body #mesh-canvas-hint{white-space:normal;text-align:center;max-width:90%;width:max-content}
 body .mesh-view-toolbar{flex-wrap:wrap}
 body footer{flex-shrink:0}
}
