.integrated-only{display:none}.timegap-integrated .integrated-only{display:inline-flex}
.server-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px;font-size:18px}.server-dialog__head button{background:none;border:0;color:#f3f1ed;font-size:25px;cursor:pointer}
#server-dialog{width:min(520px,calc(100vw - 30px));max-height:80vh;overflow:auto;padding:24px;border:1px solid #4b4d55;border-radius:2px;background:#151820;color:#f3f1ed;box-shadow:0 18px 80px #0009}#server-dialog::backdrop{background:#000a}.server-form,.server-form label,.server-list{display:grid;gap:12px}.server-form input{width:100%;padding:12px;color:#f3f1ed;background:#252931;border:1px solid #4b4d55}.server-actions,.server-list__row{display:flex;gap:10px}.server-actions button,.server-list__row button{padding:10px 14px;border:1px solid #4b4d55;border-radius:2px;color:#f3f1ed;background:#252931}.server-actions button[type=submit]{background:#efc995;border-color:#efc995;color:#211913}.server-list__row button:first-child{flex:1;text-align:left}.server-note{color:#c3c2c1;line-height:1.5}.server-list{max-height:45vh;overflow:auto}
body.embedded-view .topbar,body.embedded-view .editor-top,body.embedded-view .simulation-bar,body.embedded-view .canvas-toolbar,body.embedded-view .canvas-footer,body.embedded-view .panel-left,body.embedded-view .panel-right,body.embedded-view #print-panel,body.embedded-view #actor-controls,body.embedded-view #trace-panel{display:none!important}body.embedded-view .editor{padding:0}body.embedded-view .viewport{height:500px;min-height:300px;max-height:none}body.embedded-view .stage{pointer-events:none}
.shared-message{display:none}.shared-loading .shared-message{display:block;position:absolute;z-index:5;top:20px;left:20px;right:20px;padding:16px;border-radius:12px;background:#fff;color:#273042;font:500 15px sans-serif}.shared-loading .stage-sizer,.shared-loading .canvas-watermark{visibility:hidden}
.timegap-integrated:not(.embedded-view) .brand,.timegap-integrated:not(.embedded-view) .top-divider,.timegap-integrated:not(.embedded-view) .project-title{display:none}.timegap-integrated:not(.embedded-view) .topbar{justify-content:flex-end;min-height:60px}.timegap-integrated .top-actions{margin-left:0}.timegap-integrated:not(.embedded-view) .editor-top{display:none}

/* Compact user workspace: menus float over the paper instead of pushing it down. */
body.compact-ready .topbar,body.compact-ready .editor-top,body.compact-ready .canvas-tabs{display:none}
body.compact-ready .workspace{min-height:0}
body.compact-ready .editor{padding:0;position:relative}
body.compact-ready .canvas-toolbar{position:relative;z-index:20;min-height:52px;gap:12px;padding:5px 10px;background:#151820}
.compact-actions{display:flex;align-items:center;gap:7px;min-width:0}
.compact-title{font-size:13px;color:#f5f2ed;white-space:nowrap;margin:0 8px 0 3px}
.compact-actions .add-node-button{min-width:0;min-height:40px;padding:8px 12px}
.compact-menu{position:relative;flex:none}
.compact-menu>summary{display:flex;align-items:center;justify-content:center;min-height:40px;padding:0 11px;border:1px solid transparent;border-radius:3px;color:#e4e2de;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;list-style:none}
.compact-menu>summary::-webkit-details-marker{display:none}
.compact-menu>summary:hover,.compact-menu[open]>summary{background:#292c34;border-color:#494b53}
.compact-menu>summary:focus-visible{outline:2px solid #f5be74;outline-offset:2px}
.compact-menu__panel{position:absolute;top:calc(100% + 7px);left:0;z-index:70;width:min(330px,calc(100vw - 32px));max-height:min(65dvh,540px);overflow:auto;padding:14px;border:1px solid #4b4d55;border-radius:4px;background:#1b1e26;box-shadow:0 16px 40px #0009;color:#f3f1ed}
.compact-menu--files .compact-menu__panel{left:auto;right:0;width:230px}
.compact-menu--examples .compact-menu__panel{display:grid;gap:10px}
.compact-menu--examples label{display:grid;gap:7px;color:#c3c2c1;font-size:12px}
.compact-menu--examples select{width:100%;min-height:42px;padding:8px;background:#252931;color:#f3f1ed;border:1px solid #555861}
.compact-menu--files .top-actions{display:grid;gap:7px}
.compact-menu--files .top-actions .status-indicator{display:block;margin:3px 0 5px;white-space:normal}
.compact-menu--files .top-actions .button,.compact-menu--files .import-action{width:100%;justify-content:flex-start;font-size:12px}
.compact-menu--run .simulation-bar{display:flex;margin:0;padding:0;border:0;background:none}
.compact-menu--run .simulation-bar #simulation-result{font-size:12px}
.compact-menu--run .actor-controls,.compact-menu--run .trace-panel,.compact-menu--run .print-panel{margin:12px 0 0}
body.compact-ready .viewport{height:calc(100dvh - 86px);min-height:390px;max-height:none}
body.compact-ready .canvas-footer{min-height:34px;height:34px}
@media(max-width:700px){
  .compact-title{display:none}
  body.compact-ready .canvas-toolbar{justify-content:flex-start;gap:3px;padding:5px 7px}
  .compact-actions{gap:2px}
  .compact-actions .add-node-button{padding:8px 9px;font-size:11px}
  .compact-menu>summary{padding:0 7px;font-size:11px}
  .compact-menu__panel,.compact-menu--files .compact-menu__panel{position:fixed;top:57px;left:8px;right:8px;width:auto;max-height:min(65dvh,540px)}
  body.compact-ready .canvas-tools{position:absolute;top:calc(100dvh - 92px);right:10px;z-index:8;gap:2px;padding:2px 5px;border:1px solid #4b4d55;border-radius:4px;background:#151820eF;box-shadow:0 4px 18px #0006}
  body.compact-ready .canvas-tools .icon-button{min-width:34px;min-height:40px}
  body.compact-ready .canvas-tools #undo,body.compact-ready .canvas-tools #redo,body.compact-ready .canvas-tools .tool-separator{display:none}
  body.compact-ready .viewport{min-height:340px}
}
