/* Workspace geometry reconstructed from shipped SysDes bundle-10.js and live-layout.json.
   56px header, 280px library, 44px canvas tabs, 320px inspector; theme is a separate repaint. */
.studio-page{--studio-bg:#09090b;--studio-panel:#18181b;--studio-raised:#27272a;--studio-hover:#3f3f46;--studio-line:#3f3f46;--studio-text:#f4f4f5;--studio-muted:#a1a1aa;--studio-accent:#22d3ee;--studio-accent-fill:#083344;--studio-danger:#fb7185;margin:0;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;direction:ltr;font-size:14px;line-height:1.5;color:var(--studio-text);background:var(--studio-bg);font-family:'Nunito','Vazirmatn',sans-serif}.studio-page::after{display:none}.studio-page *{box-sizing:border-box}.studio-page [hidden]{display:none!important}.studio-page button,.studio-page input,.studio-page select,.studio-page textarea{font:inherit;color:inherit}.studio-page button{cursor:pointer;white-space:nowrap;border:0;background:transparent;border-radius:6px;font-weight:600;padding:7px 10px;line-height:1.5}.studio-page button:hover{background:var(--studio-raised)}.studio-page button:disabled{opacity:.4;cursor:not-allowed}.studio-page input,.studio-page select,.studio-page textarea{background:var(--studio-bg);border:1px solid var(--studio-line);border-radius:6px;padding:8px 10px;max-width:100%;min-width:0;caret-color:var(--studio-accent)}.studio-page input[type=number]{direction:ltr;font-variant-numeric:tabular-nums}.studio-page label{font-weight:500}.studio-page textarea{width:100%;resize:vertical}.studio-page h1,.studio-page h2,.studio-page h3{font-family:inherit;letter-spacing:0;margin:0;line-height:1.4}.studio-page h1{font-size:24px;font-weight:700}.studio-page h2{font-size:17px;font-weight:700}.studio-page h3{font-size:14px;font-weight:700}.studio-page p{margin:7px 0 14px;max-width:none}.studio-page a{color:var(--studio-accent);text-underline-offset:3px}.studio-page svg{display:block;flex-shrink:0}.studio-page button svg{stroke:currentColor}.studio-page :focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px}.studio-page ::selection{background:var(--studio-accent-fill);color:var(--studio-text)}.studio-page ::-webkit-scrollbar{width:5px;height:4px}.studio-page ::-webkit-scrollbar-thumb{background:var(--studio-line);border-radius:5px}.studio-page{scrollbar-color:var(--studio-line) transparent}.studio-page .primary{background:var(--studio-accent);color:#082f49;font-weight:700}.studio-page .primary:hover{filter:brightness(1.08)}.studio-page button.active,.studio-page button[aria-selected=true]{background:var(--studio-raised);color:var(--studio-text)}.studio-page .danger,.studio-page .status-bad{color:var(--studio-danger)}.studio-page .status-good{color:#34d399}.studio-page .status-warn{color:#fbbf24}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:10px;top:-90px;z-index:200;padding:10px;background:var(--studio-panel)}.skip-link:focus{top:8px}
.studio-header{height:56px;min-height:56px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--studio-line);background:var(--studio-panel);position:relative;z-index:40;direction:ltr}.header-brand,.header-actions{display:flex;align-items:center;flex-shrink:0;gap:6px}.studio-brand{display:flex;align-items:center;gap:8px;min-width:0;color:var(--studio-text)!important;text-decoration:none}.brand-icon{display:flex;width:40px;height:40px;border-radius:12px;align-items:center;justify-content:center;color:var(--studio-accent);background:var(--studio-accent-fill);border:1px solid var(--studio-line)}.brand-name{font-size:18px;font-weight:800;line-height:1.2}.brand-tagline{display:block;font-size:11px;font-weight:500;color:var(--studio-muted);margin-top:2px}.header-divider{width:1px;height:24px;margin:0 5px;background:var(--studio-line)}.studio-page .tool-button{width:36px;height:36px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:8px;color:var(--studio-muted);flex-shrink:0;gap:6px}.tool-button .tool-label{display:none}.tool-button.labelled{width:auto;padding:0 8px;font-size:12px}.tool-button.labelled .tool-label{display:block}.accent-button{border:1px solid var(--studio-line)!important;background:var(--studio-accent-fill)!important;color:var(--studio-accent)!important}.language-button{font-size:11px!important}.header-problem{flex:1;min-width:0;max-width:576px;margin:0 auto;position:relative}.header-problem>button{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:7px 12px;background:var(--studio-bg);border:1px solid var(--studio-line);border-radius:12px;text-align:start;font-size:13px}.header-problem>button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.problem-popover,.more-menu{position:absolute;top:calc(100% + 5px);z-index:70;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-panel);box-shadow:0 15px 35px #0004;max-height:320px;overflow:auto}.problem-popover{left:0;right:0;min-width:240px}.problem-popover button,.more-menu button{width:100%;display:block;text-align:start;white-space:normal;border-radius:0;font-size:12px;padding:9px 12px}.problem-popover button.selected{color:var(--studio-accent)}.more-wrapper{position:relative}.more-menu{right:0;width:230px;max-height:calc(100dvh - 70px)}.more-menu hr{border:0;border-top:1px solid var(--studio-line);margin:4px 0}.header-actions #run-header{display:flex;align-items:center;gap:6px;height:36px;font-size:12px;padding:0 12px}.header-actions #evaluate-header{border:1px solid var(--studio-line)}
.studio-workspace{display:flex;position:relative;flex:1;min-height:0;overflow:hidden;direction:ltr}.palette{width:280px;min-width:280px;flex-shrink:0;display:flex;flex-direction:column;border-right:1px solid var(--studio-line);background:var(--studio-panel);overflow:hidden;transition:width .2s,min-width .2s}.palette.collapsed{width:0;min-width:0;border:0;visibility:hidden}.library-tabs,.workbench-tabs{display:flex;align-items:center;gap:2px;margin:8px 8px 0;padding:4px;min-height:44px;flex-shrink:0;background:var(--studio-raised);border-radius:8px;overflow:auto;direction:ltr}.library-tabs button{flex:1;padding:6px 8px;font-size:15px}.library-tabs button[aria-selected=true]{background:var(--studio-panel)}.library-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto}.component-search{position:relative;margin:16px 12px 12px;flex-shrink:0}.component-search>svg{position:absolute;left:11px;top:11px;color:var(--studio-muted)}.component-search input{width:100%;padding-left:35px;font-size:14px;line-height:20px}.component-actions{padding:0 12px 12px}.component-actions>button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;font-size:15px;border:1px dashed var(--studio-accent);background:var(--studio-accent-fill);text-align:start}.component-list{padding:0 12px 16px;overflow:visible;min-height:0}.component-category{display:flex;align-items:center;gap:8px;margin:17px 0 7px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--studio-muted)}.component-category:after{content:'';flex:1;height:1px;background:var(--studio-line)}.component-category small{background:var(--studio-raised);padding:0 4px;border-radius:3px;font-size:10px}.studio-page .component-item{display:flex;align-items:center;gap:8px;width:100%;border:1px solid transparent;border-left:2px solid var(--component-color,var(--studio-accent));border-radius:6px;background:transparent;text-align:start;padding:8px;cursor:grab;font-size:14px;font-weight:500;line-height:20px}.component-item>svg{width:16px;height:16px;color:var(--component-color,var(--studio-accent))}.component-item .component-label{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.component-item .component-qps{font-size:11px;font-weight:400;color:var(--studio-muted);font-variant-numeric:tabular-nums}.component-item:hover{background:var(--studio-raised)}.component-item .component-info{font-size:10px;color:var(--studio-muted);width:18px;text-align:center;opacity:0}.component-item:hover .component-info{opacity:1}.problem-picker{padding:12px;display:flex;gap:7px}.problem-picker select{width:100%;font-size:12px}.exercise-filters{padding:0 12px 12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.exercise-filters input{width:100%;font-size:13px}.exercise-filters select{flex:1;font-size:12px;padding:6px}.exercise-filters button,.exercise-filters span,.exercise-filters label{font-size:10px}.problem-card-list{padding:0 12px 16px}.problem-card{display:block;width:100%;border:1px solid var(--studio-line)!important;text-align:start;border-radius:8px!important;padding:12px!important;margin-bottom:8px;white-space:normal!important}.problem-card.selected{border-color:var(--studio-accent)!important;background:var(--studio-accent-fill)}.problem-card strong{display:block;font-size:14px}.problem-card p{font-size:12px;line-height:1.6;color:var(--studio-muted);margin:7px 0}.problem-card .tags{display:flex;gap:5px;flex-wrap:wrap}.badge,.problem-card .tags span{display:inline-block;padding:2px 6px;background:var(--studio-raised);border-radius:4px;font-size:10px;color:var(--studio-muted)}
.canvas-panel{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;overflow:hidden;background:var(--studio-bg)}.canvas-tabs{display:flex;align-items:center;height:44px;min-height:44px;padding:0 8px;border-bottom:1px solid var(--studio-line);gap:8px;background:var(--studio-bg)}.canvas-tabs [role=tablist]{display:flex;gap:4px;overflow:auto;flex:1;min-width:0}.canvas-tabs [role=tab]{height:36px;padding:5px 12px;font-size:15px;white-space:nowrap;font-weight:700;color:var(--studio-muted)}.canvas-tabs [role=tab][aria-selected=true]{background:var(--studio-accent-fill);color:var(--studio-accent);box-shadow:inset 0 0 0 1px var(--studio-line)}.studio-page .shortcuts-button{display:flex;align-items:center;gap:5px;height:36px;padding:0 8px;font-size:10px;color:var(--studio-accent);border-right:1px solid var(--studio-line);border-radius:0}.canvas-tabs #save-status{font-size:9px;color:var(--studio-muted);max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.canvas-surface{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;direction:ltr}#design-canvas{position:absolute;width:100%;height:100%;display:block;touch-action:none;color:var(--studio-muted);user-select:none}#design-canvas[data-tool=pan]{cursor:grab}#design-canvas[data-tool=pen],#design-canvas[data-tool=connect]{cursor:crosshair}.canvas-empty{position:absolute;inset:0;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;gap:24px}.empty-architecture{height:68px;width:68px;display:flex;align-items:center;justify-content:center;border:1px solid var(--studio-line);border-radius:16px;color:var(--studio-accent);background:var(--studio-accent-fill)}.canvas-empty h1{font-size:24px;line-height:32px;font-weight:600;max-width:500px}.canvas-empty p{font-size:16px;line-height:26px;max-width:440px;color:var(--studio-muted);margin:-16px 0 0}.quick-start{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;max-width:512px;pointer-events:auto}.quick-start button{display:flex;flex-direction:column;align-items:center;gap:9px;white-space:normal;border:1px solid var(--studio-line);padding:16px 12px;background:var(--studio-panel);border-radius:10px;min-height:115px}.quick-start button:last-child{background:var(--studio-accent-fill)}.quick-start button>svg{color:var(--studio-accent)}.quick-start strong{font-size:13px;line-height:19px}.quick-start small{font-size:11px;line-height:17px;color:var(--studio-muted)}.canvas-toolbar{position:absolute;right:12px;top:12px;display:flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--studio-line);border-radius:6px;background:var(--studio-panel);z-index:5;box-shadow:0 6px 14px #0002}.canvas-toolbar button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border-radius:4px;color:var(--studio-muted)}.canvas-toolbar [data-tool=select],.canvas-toolbar [data-tool=connect],.canvas-toolbar [data-tool=pan],.canvas-toolbar #undo,.canvas-toolbar #redo,.canvas-toolbar>.tool-separator{display:none}.canvas-toolbar button.active{color:var(--studio-accent);background:var(--studio-accent-fill)}.pen-options{display:flex;align-items:center;gap:4px;border-left:1px solid var(--studio-line);padding-left:5px;margin-left:3px}.pen-options button{width:20px;height:20px}.pen-options .pen-color{border:1px solid var(--studio-line);border-radius:50%;width:18px;height:18px}.pen-options .pen-color.active{outline:2px solid var(--studio-muted);outline-offset:2px}.pen-options .pen-width span{display:block;background:var(--studio-text);border-radius:50%}.canvas-controls{position:absolute;bottom:15px;left:15px;display:flex;flex-direction:column;border:1px solid var(--studio-line);background:var(--studio-panel);border-radius:6px;overflow:hidden;box-shadow:0 3px 8px #0001;z-index:5}.canvas-controls button{width:27px;height:27px;display:flex;justify-content:center;align-items:center;padding:0;border-radius:0;font-size:20px;border-bottom:1px solid var(--studio-line);font-weight:400}.canvas-controls button:last-child{border:0}.minimap{width:140px;height:90px;position:absolute;bottom:15px;right:15px;background:var(--studio-panel);border:1px solid var(--studio-line);border-radius:6px;overflow:hidden;pointer-events:none}.minimap svg{width:100%;height:100%}.zoom-label{position:absolute;bottom:6px;left:53px;font-size:9px;color:var(--studio-muted);pointer-events:none}.canvas-corner{position:absolute;bottom:3px;right:15px;display:flex;gap:12px;font-size:9px;color:var(--studio-muted);pointer-events:none}.canvas-hint{position:absolute;bottom:4px;left:88px;right:165px;margin:0!important;font-size:10px;text-align:center;color:var(--studio-muted);pointer-events:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reference-banner{position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:8px;padding:6px 10px;background:var(--studio-panel);border:1px solid var(--studio-line);border-radius:6px;font-size:10px;max-width:calc(100% - 90px)}.reference-banner button{font-size:10px;white-space:normal}.graph-node{cursor:grab;outline:none}.graph-node .node-body{fill:var(--studio-panel);stroke:var(--studio-line);stroke-width:1}.graph-node.selected .node-body,.graph-node:focus-visible .node-body{stroke:var(--studio-accent);stroke-width:2}.node-title{font-size:12px;font-family:inherit;font-weight:600;fill:var(--studio-text)}.node-meta,.node-status{font-size:10px;font-family:inherit;fill:var(--studio-muted)}.node-top{fill:transparent}.node-icon-bg{fill:var(--studio-accent-fill)}.node-icon{color:var(--studio-accent)}.node-status-dot{fill:#71717a}.graph-node.healthy .node-status-dot{fill:#34d399}.graph-node.overloaded .node-status-dot,.graph-node.failed .node-status-dot{fill:#fb7185}.graph-node.overloaded .node-body,.graph-node.failed .node-body{stroke:#fb7185}.node-port{fill:var(--studio-accent);stroke:var(--studio-bg);stroke-width:2;cursor:crosshair}.graph-edge{cursor:pointer;outline:none}.edge-path{fill:none;stroke:var(--studio-muted);stroke-width:1.6;marker-end:url(#arrow)}.edge-hit{fill:none;stroke:transparent;stroke-width:18}.graph-edge.selected .edge-path,.graph-edge:focus-visible .edge-path{stroke:var(--studio-accent);stroke-width:3}.edge-label{fill:var(--studio-muted);font-size:10px;font-family:inherit;paint-order:stroke;stroke:var(--studio-bg);stroke-width:5;stroke-linejoin:round}.graph-edge.flow .edge-path{stroke:var(--studio-accent);stroke-dasharray:8 5;animation:message-flow 1s linear infinite}.annotation{fill:none;stroke:var(--studio-accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;cursor:pointer}.annotation-note{fill:var(--studio-text);font-size:15px;font-family:inherit;cursor:pointer}
.inspector{width:320px;min-width:320px;flex-shrink:0;background:var(--studio-panel);border-left:1px solid var(--studio-line);display:flex;flex-direction:column;min-height:0;overflow:hidden;transition:width .2s,min-width .2s}.inspector.collapsed{width:0;min-width:0;border:0;visibility:hidden}.workbench-tabs{margin:8px 8px 0;width:calc(100% - 16px);min-height:44px;padding:4px;gap:2px;overflow:auto;justify-content:flex-start}.workbench-tabs button{display:flex;align-items:center;gap:4px;padding:6px 12px;min-height:36px;font-size:15px;font-weight:500;flex-shrink:0}.workbench-tabs button>svg{color:var(--studio-accent)}.workbench-tabs button[aria-selected=true]{background:var(--studio-hover);color:var(--studio-text)}.workbench-panel{padding:16px;flex:1;min-height:0;overflow:auto;font-size:14px;line-height:1.65}.workbench-panel>h2,.workbench-panel .panel-heading h2{font-size:16px;font-weight:600}.workbench-panel>p{color:var(--studio-muted);font-size:13px;line-height:1.65}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}.panel-heading h2{margin:0}.selection-heading{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--studio-line);padding-top:16px;margin-top:20px;margin-bottom:15px}.selection-heading h2{font-size:12px;font-weight:600;color:var(--studio-muted);text-transform:uppercase;letter-spacing:.05em}.selection-heading button{padding:5px;color:var(--studio-danger)}.inspector-title{font-size:16px;font-weight:600;margin-bottom:12px}.component-description,.config-message,.empty-selection{font-size:13px;color:var(--studio-muted);line-height:1.75}.empty-selection{text-align:center;padding:26px 10px}.inspector #selection-panel label{display:flex;flex-direction:column;gap:6px;margin:13px 0;font-size:13px}.inspector #selection-panel input,.inspector #selection-panel select{width:100%}.requirements-title{font-size:12px!important;text-transform:uppercase;letter-spacing:.04em;font-weight:600!important;color:var(--studio-muted);margin:0 0 12px!important}.requirement-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid var(--studio-line);border-radius:6px;margin:7px 0;background:var(--studio-bg);font-size:13px}.requirement-row>span{color:var(--studio-muted)}.requirement-row strong{font-weight:500}.requirements-note{font-size:12px;color:var(--studio-muted);margin-top:10px}.requirement-details{font-size:12px;color:var(--studio-muted);margin-top:14px}.requirement-details summary{font-weight:600;cursor:pointer;text-transform:uppercase;letter-spacing:.03em;font-size:11px}.requirement-details ul{padding-inline-start:18px}.requirement-details li{margin:8px 0}.simulation-controls{display:flex;flex-direction:column;gap:15px;margin:18px 0}.simulation-controls label{display:flex;flex-direction:column;gap:8px;font-size:14px}.simulation-controls input{width:100%}.simulation-controls input[type=number]{font-size:18px;font-weight:600}.simulation-controls .check-label{font-size:12px;flex-direction:row}.simulation-controls label[hidden]{display:none}.action-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0}.action-row button{font-size:12px;padding:7px 9px;border:1px solid var(--studio-line);border-radius:6px}.action-row span{font-size:11px;color:var(--studio-muted)}#run-simulation{flex:1;font-size:15px;height:48px}#step-simulation,#reset-simulation{font-size:11px;padding:5px 7px}#simulation-speed{font-size:14px}#panel-simulation>.panel-heading .badge{display:none}#panel-simulation>.panel-heading h2{font-size:14px}.result-metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0 17px}.result-metrics strong{display:block;font-size:21px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums}.result-metrics span{display:block;font-size:11px;color:var(--studio-muted);margin-top:3px}.result-metrics>div:last-child{grid-column:1/-1}.table-scroll{overflow:auto}.studio-page table{border-collapse:collapse;width:100%;font-size:11px;text-align:start}.studio-page td,.studio-page th{padding:8px;border-bottom:1px solid var(--studio-line);text-align:start;white-space:nowrap}.studio-page th{font-weight:500;color:var(--studio-muted)}.assumptions{margin-top:16px;font-size:11px;color:var(--studio-muted)}.assumptions summary{font-weight:600;cursor:pointer}.event-log{max-height:150px;overflow:auto;font-size:10px;font-family:var(--font-mono);direction:ltr;text-align:left;white-space:pre-wrap;background:var(--studio-bg);padding:10px;border-radius:6px;margin-top:10px}.evaluation-score{display:flex;align-items:center;gap:16px;margin:20px 0}.evaluation-score>strong{font-size:40px;color:var(--studio-accent);line-height:1.2}.evaluation-score p{font-size:11px;color:var(--studio-muted)}.check-list{padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;margin:18px 0}.check-list li{border:1px solid var(--studio-line);border-radius:6px;padding:10px;font-size:12px;background:var(--studio-bg)}.check-list b{font-size:12px;display:block;margin-bottom:6px}.check-list p{font-size:11px;color:var(--studio-muted);margin:0}.tradeoff-form{display:flex;flex-direction:column;gap:12px;margin:20px 0}.tradeoff-form label{font-size:13px}.tradeoff-form input{display:block;width:100%;margin-top:6px}.tradeoff-form button{align-self:flex-start}.decision-entry,.saved-entry{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 0;border-bottom:1px solid var(--studio-line)}.decision-entry strong,.saved-entry strong{font-size:13px}.decision-entry p{font-size:12px;color:var(--studio-muted);margin:5px 0}.decision-entry button,.saved-entry button{font-size:11px;border:1px solid var(--studio-line);padding:5px 8px}.saved-entry>div:last-child{display:flex;gap:5px}.saved-entry small{display:block;font-size:11px;color:var(--studio-muted)}.concept-list{display:flex;flex-direction:column;gap:13px}.concept-item{padding:12px;border:1px solid var(--studio-line);border-radius:6px}.concept-item h3{font-size:14px}.concept-item p{font-size:12px;color:var(--studio-muted)}.concept-item button{font-size:11px;border:1px solid var(--studio-line)}.empty-state{font-size:12px;color:var(--studio-muted);padding:15px 0}.error-note{color:var(--studio-danger);font-size:12px}.brief-links{display:flex;gap:15px;flex-wrap:wrap;margin-top:15px;font-size:12px}.brief-layout{display:flex;flex-direction:column;gap:20px}.brief-signals{padding-inline-start:18px;font-size:12px;color:var(--studio-muted)}.brief-signals li{margin:8px 0}.inline-form{display:flex;gap:7px;margin:12px 0;flex-wrap:wrap}.inline-form input{flex:1;min-width:160px}.coach-answer{white-space:pre-wrap;background:var(--studio-bg);padding:14px;border:1px solid var(--studio-line);border-radius:6px;line-height:1.9;font-size:13px;margin-top:20px}.coach-answer:empty{display:none}.coach-answer .badge{margin-bottom:10px}.interview-phases{display:flex;flex-direction:column;gap:8px;margin:20px 0}.interview-phases button{white-space:normal;text-align:start;padding:12px;border:1px solid var(--studio-line);background:var(--studio-bg);font-size:13px}.interview-phases small{display:block;font-size:11px;color:var(--studio-muted);margin-top:6px}.timer{font-variant-numeric:tabular-nums;direction:ltr;font-size:30px;color:var(--studio-accent)}
.side-drawer{position:absolute;right:0;top:0;bottom:0;width:360px;max-width:100%;z-index:25;display:flex;flex-direction:column;background:var(--studio-panel);border-left:1px solid var(--studio-line);box-shadow:-12px 0 30px #0002;min-height:0;overflow:hidden}.side-drawer .workbench-panel{width:100%}.assistant-drawer{width:380px;z-index:30}.drawer-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;min-height:52px;border-bottom:1px solid var(--studio-line);flex-shrink:0}.drawer-heading h2{font-size:16px}.drawer-heading button{font-size:20px;padding:0 8px;color:var(--studio-muted)}.assistant-modes{display:flex;gap:4px;padding:8px;border-bottom:1px solid var(--studio-line)}.assistant-modes button{flex:1;font-size:13px;border:1px solid var(--studio-line)}.studio-page dialog{padding:24px;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-panel);color:var(--studio-text);max-width:calc(100vw - 24px);width:480px;max-height:85dvh;overflow:auto}.studio-page dialog::backdrop{background:#0009}.studio-page dialog label{display:block;margin:13px 0 6px;font-size:13px}.studio-page dialog input{width:100%}.studio-page dialog .primary{margin-top:18px}.shortcut-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--studio-line);font-size:12px}.studio-page kbd{padding:3px 6px;border:1px solid var(--studio-line);background:var(--studio-raised);border-radius:4px;font-family:var(--font-mono);font-size:10px}.studio-status{position:fixed;bottom:20px;left:50%;transform:translate(-50%,10px);max-width:calc(100vw - 30px);padding:10px 16px;background:var(--studio-raised);color:var(--studio-text);border:1px solid var(--studio-line);border-radius:8px;box-shadow:0 8px 20px #0003;font-size:12px;z-index:120;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.studio-status.visible{opacity:1;transform:translate(-50%,0)}.mobile-scrim{position:absolute;inset:0;background:#0009;z-index:45}.dashboard-overlay{position:fixed;inset:56px 0 0;z-index:55;background:var(--studio-bg);overflow:auto;padding:30px max(20px,calc((100vw - 1100px)/2))}.dashboard-heading{margin-bottom:20px}.dashboard-heading p{font-size:13px;color:var(--studio-muted)}.dashboard-heading button{border:1px solid var(--studio-line);font-size:12px}.progress-overview{display:flex;flex-wrap:wrap;gap:35px;padding:24px 0;border-block:1px solid var(--studio-line);margin:24px 0}.progress-overview strong{display:block;font-size:32px}.progress-overview span{font-size:12px;color:var(--studio-muted)}.dashboard-charts{display:grid;grid-template-columns:1.4fr 1fr;gap:40px;margin:30px 0}.dashboard-charts svg{width:100%;height:240px;overflow:visible}.chart-label{font-size:11px;fill:var(--studio-muted);font-family:inherit}.chart-line{fill:none;stroke:var(--studio-accent);stroke-width:3}.chart-area{fill:var(--studio-accent);fill-opacity:.2}.chart-grid{stroke:var(--studio-line);stroke-width:1}.progress-list{margin:24px 0}html[lang=fa] .library-content,html[lang=fa] .workbench-panel,html[lang=fa] .drawer-heading,html[lang=fa] .problem-popover,html[lang=fa] .more-menu,html[lang=fa] .header-problem>button,html[lang=fa] .dashboard-overlay,html[lang=fa] .studio-page dialog{direction:rtl;text-align:right}html[lang=fa] .component-search>svg{left:auto;right:11px}html[lang=fa] .component-search input{padding-left:10px;padding-right:35px}html[lang=fa] .component-item{border-left-width:1px;border-right:2px solid var(--component-color,var(--studio-accent))}html[lang=fa] .component-category{letter-spacing:0}html[lang=fa] .studio-page h1,html[lang=fa] .studio-page h2{font-family:'Vazirmatn',sans-serif;font-weight:700}@keyframes message-flow{to{stroke-dashoffset:-26}}
@media(max-width:1279px){.wide-only{display:none!important}.header-actions .tool-button.labelled .tool-label{display:none}.header-actions .tool-button.labelled{width:36px;padding:0}.studio-header{gap:8px}.header-brand,.header-actions{gap:4px}.brand-tagline{display:none}.brand-name{font-size:16px}.studio-brand{gap:6px}.brand-icon{width:34px;height:34px}.header-divider{margin:0 2px}.palette{width:280px;min-width:280px}.inspector{width:320px;min-width:320px}}
@media(max-width:1023px){.header-brand>#load-reference-header,.header-brand>#add-note-header,.header-actions #share-header{display:none!important}.studio-header{padding:0 8px;gap:7px}.header-actions .language-button{display:none}.header-problem>button{font-size:12px}.quick-start{grid-template-columns:1fr;max-width:320px}.quick-start button{min-height:70px;padding:10px;display:grid;grid-template-columns:24px 1fr;text-align:start;gap:3px 9px}.quick-start button svg{grid-row:1/3}.quick-start button small,.quick-start button strong{width:100%}.canvas-empty{gap:20px}.canvas-empty h1{font-size:20px}.canvas-empty p{font-size:14px;line-height:23px}.empty-architecture{height:60px;width:60px}.canvas-tabs #save-status{display:none}.canvas-hint{display:none}.shortcuts-button span{display:none}.shortcuts-button{padding:0 6px!important}}
@media(max-width:767px){.desktop-only{display:none!important}.studio-header{height:56px;min-height:56px;gap:6px;padding:0 8px}.header-brand{gap:5px}.header-brand .brand-icon,.header-divider{display:none}.brand-name{font-size:14px}.studio-brand{padding-right:2px}.header-brand .tool-button,.header-actions .tool-button{height:36px;width:30px}.header-actions{gap:2px}.header-problem{max-width:none}.header-problem>button{font-size:11px;padding:7px 9px;border-radius:10px}.header-actions #run-header{font-size:11px;padding:0 9px;height:36px;gap:4px}.header-actions #run-header svg{width:12px}.header-actions #assistant-header{width:30px}.header-actions #evaluate-header{display:none}.palette{position:absolute;left:0;top:0;bottom:0;width:85%;min-width:0;max-width:320px;z-index:50;transform:translateX(-100%);transition:transform .2s;visibility:hidden}.palette.mobile-open{transform:translateX(0);visibility:visible}.palette.collapsed{width:85%;min-width:0;visibility:hidden}.inspector{position:absolute;right:0;bottom:0;top:auto;width:100%;min-width:0;height:75%;max-height:85dvh;border:1px solid var(--studio-line);border-radius:12px 12px 0 0;z-index:50;transform:translateY(100%);visibility:hidden;transition:transform .2s}.inspector.mobile-open{transform:translateY(0);visibility:visible}.inspector.collapsed{width:100%;min-width:0;visibility:hidden}.workbench-tabs{min-height:44px;margin-top:8px}.workbench-panel{padding:16px}.canvas-tabs{height:44px;min-height:44px}.canvas-tabs [role=tab]{font-size:14px;max-width:220px;overflow:hidden;text-overflow:ellipsis}.canvas-toolbar{right:12px;top:12px}.canvas-empty{padding:16px;gap:20px}.canvas-empty h1{font-size:20px;line-height:28px}.canvas-empty p{font-size:14px;line-height:23px;max-width:350px}.quick-start{max-width:360px;gap:9px}.quick-start button{min-height:65px;padding:11px 14px}.empty-architecture{height:64px;width:64px}.minimap{display:none}.canvas-corner{font-size:8px;right:12px}.side-drawer{position:absolute;inset:0;width:100%;max-width:100%;z-index:60;border:0;box-shadow:none}.assistant-drawer{width:100%}.drawer-heading{min-height:48px}.more-menu{position:fixed;top:53px;right:8px;width:225px}.problem-popover{position:fixed;top:53px;left:8px;right:8px;min-width:0;max-height:60dvh}.dashboard-overlay{padding:20px 15px}.dashboard-charts{grid-template-columns:1fr;gap:20px}.progress-overview{gap:22px}.progress-overview strong{font-size:27px}.studio-status{bottom:12px;font-size:11px;min-width:200px}.pen-options{gap:3px}.pen-options button{width:17px;height:17px}.pen-options .pen-color{width:15px;height:15px}.canvas-toolbar:has(.pen-options:not([hidden])){left:12px;right:auto}}
@media(max-width:420px){.studio-header{gap:4px}.header-brand{gap:1px}.brand-name{font-size:13px}.header-actions #assistant-header{display:none}.header-problem>button{font-size:10px;padding:7px}.header-problem>button svg{width:12px}.header-actions #run-header{padding:0 8px}.canvas-empty{gap:18px}.canvas-empty h1{font-size:20px}.canvas-empty p{margin-top:-11px}.quick-start button{min-height:62px}.canvas-tabs [role=tab]{font-size:12px;padding:5px 10px}}
html[data-motion=off] .studio-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-motion=off] .graph-edge.flow .edge-path{stroke-dasharray:8 5}
/* Final palette repaint. Geometry above intentionally stays independent from the study theme. */
html:not([data-reference-skin]) .studio-page{--studio-bg:var(--ground-2);--studio-panel:var(--ground);--studio-raised:var(--ground-3);--studio-hover:#e6dccb;--studio-line:var(--line);--studio-text:var(--ink);--studio-muted:var(--muted);--studio-accent:var(--link);--studio-accent-fill:#e8dff4;--studio-danger:#b43e57}html[data-theme=dark]:not([data-reference-skin]) .studio-page{--studio-hover:#514656;--studio-accent-fill:#3e344d;--studio-danger:#ff9db2}html:not([data-reference-skin]) .studio-page .primary{background:var(--link);color:#fff}html[data-theme=dark]:not([data-reference-skin]) .studio-page .primary{color:#302828}html:not([data-reference-skin]) .studio-page .status-good{color:#267343}html:not([data-reference-skin]) .studio-page .status-warn{color:#926315}html[data-theme=dark]:not([data-reference-skin]) .studio-page .status-good{color:#95d7ae}html[data-theme=dark]:not([data-reference-skin]) .studio-page .status-warn{color:#e4c175}
/* Minimap contents and locked-canvas state. */
.mini-node{fill:var(--studio-raised);stroke:var(--studio-accent);stroke-width:3}.mini-edge{stroke:var(--studio-muted);stroke-width:3}.mini-view{fill:none;stroke:var(--studio-accent);stroke-width:4;stroke-dasharray:14 10}
.canvas-surface.locked #design-canvas{cursor:not-allowed}.canvas-controls #lock-canvas[aria-pressed=true]{background:var(--studio-accent);color:var(--studio-panel)}
/* Study-site polish: cream cards, pastel category colour, Nunito display type. */
html:not([data-reference-skin]) .studio-page{--studio-radius:14px;font-family:var(--font-body)}
.studio-page .brand-name,.studio-page h1,.studio-page h2,.studio-page h3,.problem-card strong,.quick-start strong{font-family:var(--font-display)}
.component-group{display:flex;justify-content:space-between;align-items:center;margin:16px 2px 6px;font:800 11px/1 var(--font-display);letter-spacing:.08em;text-transform:uppercase;color:var(--studio-muted)}
.component-group span:last-child{background:var(--studio-raised);border-radius:99px;padding:3px 8px;letter-spacing:0}
.component-list .component-item{border:1px solid var(--studio-line);border-left:4px solid var(--component-color,var(--studio-accent));border-right:1px solid var(--studio-line);background:var(--ground-2);border-radius:12px;margin-bottom:6px;padding:9px 10px;box-shadow:0 1px 0 #3028280d;transition:transform .15s var(--ease),box-shadow .15s var(--ease)}
.component-list .component-item:hover{background:var(--ground-2);transform:translateY(-1px);box-shadow:0 6px 14px #30282814}
.graph-node .node-body{fill:var(--ground-2);stroke:color-mix(in srgb,var(--component-color,var(--studio-line)) 45%,var(--studio-line));stroke-width:1.4;filter:drop-shadow(0 3px 6px #3028281a)}
.graph-node .node-top{fill:color-mix(in srgb,var(--component-color,transparent) 18%,transparent)}
.graph-node .node-title{fill:var(--studio-text);font-weight:800}
html[data-theme=dark] .graph-node .node-body{fill:var(--ground-3)}
.problem-card{border-radius:14px;background:var(--ground-2)}.problem-card.selected{background:var(--studio-accent-fill);border-color:var(--studio-accent)}
.quick-start button{border-radius:16px;background:var(--ground-2);box-shadow:0 2px 0 #3028280d}
.quick-start button:hover{border-color:var(--studio-accent);transform:translateY(-1px)}
.inspector .workbench-tabs{overflow-x:auto;scrollbar-width:none}.inspector .workbench-tabs button{flex:1 0 auto;padding:7px 9px;font-size:12px;gap:5px;white-space:nowrap}.inspector .workbench-tabs button svg{width:14px;height:14px}
.inspector input:not([type=checkbox]),.inspector select,.side-drawer input:not([type=checkbox]),.side-drawer select,.side-drawer textarea{width:100%;box-sizing:border-box;font:500 14px/1.3 var(--font-body);padding:8px 10px;border:1px solid var(--studio-line);border-radius:10px;background:var(--ground-2);color:var(--studio-text)}
.inspector input[type=checkbox]{width:16px;height:16px;flex:none;accent-color:var(--studio-accent)}.check-label{display:flex;align-items:center;gap:8px}
.simulation-controls{display:grid;gap:10px}.simulation-controls label{display:grid;gap:4px;font-size:12px;font-weight:700;color:var(--studio-muted)}.simulation-controls .check-label{display:flex}
.inspector h2{font-size:16px}.inspector .action-row{flex-wrap:wrap;gap:6px}.inspector .action-row button{font-size:12px;padding:6px 10px;border-radius:10px}
/* Own layout language: library as tiles, journey empty state, solution walkthrough, canvas Run pill. */
.canvas-toolbar{left:14px!important;right:auto!important;top:14px}
.canvas-run{position:absolute;right:16px;top:14px;z-index:6;display:flex;align-items:center;gap:7px;padding:9px 18px;border:0;border-radius:99px;background:var(--link);color:#fff;font:800 14px var(--font-display);box-shadow:0 8px 20px #4f44b83a;cursor:pointer;transition:transform .15s var(--ease)}
.canvas-run:hover{transform:translateY(-1px);background:var(--link-hover)}html[data-theme=dark] .canvas-run{color:#302828}
.journey{list-style:none;margin:0;padding:0;display:grid;gap:10px;width:min(420px,92%);text-align:start}
.journey button{width:100%;display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid var(--studio-line);border-radius:16px;background:var(--ground-2);color:var(--studio-text);cursor:pointer;text-align:start;font:inherit;transition:transform .15s var(--ease),border-color .15s}
.journey button:hover{border-color:var(--studio-accent);transform:translateX(3px)}
.journey b{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--hue,#d3c3f2);color:var(--hue-deep,#6a4fd0);font:900 16px var(--font-display)}
.journey strong{display:block;font:800 15px var(--font-display)}.journey small{color:var(--studio-muted);font-size:12px}
.component-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.component-list .component-group,.component-list .empty-state{grid-column:1/-1}
.component-list .component-item{flex-direction:column;align-items:flex-start;gap:6px;margin:0;padding:10px;border-left:1px solid var(--studio-line);border-top:4px solid var(--component-color,var(--studio-accent))}
.component-list .component-item .component-label{white-space:normal;font-size:13px;font-weight:700;line-height:1.25}
.walkthrough-drawer{width:460px}.walkthrough-drawer .workbench-panel{overflow:auto;padding:16px 18px 28px}
.walk-step{display:flex;gap:12px;margin:0 0 18px;padding-bottom:16px;border-bottom:1px dashed var(--studio-line)}
.walk-num{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--studio-accent-fill);color:var(--studio-accent);font:900 13px var(--font-display)}
.walk-step h3{margin:2px 0 8px;font-size:15px}.walk-step p,.walk-step li{font-size:13.5px;line-height:1.75}.walk-step ul,.walk-step ol{padding-inline-start:18px;margin:6px 0}
.walk-parts li{margin-bottom:10px}.walk-parts em{display:block;color:var(--studio-muted);font-style:normal}.walk-parts small{display:block;color:var(--studio-accent)}
.walk-path{font:700 13px var(--font-mono);background:var(--studio-raised);padding:8px 10px;border-radius:10px;direction:ltr;text-align:left}

.packet{fill:var(--link);filter:drop-shadow(0 0 5px var(--link));pointer-events:none}
.packet.dropped{fill:#b3422f;filter:drop-shadow(0 0 5px #b3422f)}
.graph-node.receiving .node-body{stroke:var(--link);stroke-width:2.5;filter:drop-shadow(0 0 8px var(--link))}
.graph-node .node-body{transition:stroke .25s,filter .25s}
.canvas-run{overflow:visible}
.canvas-run::after{content:"";position:absolute;inset:0;border-radius:99px;border:2px solid var(--link);opacity:0;pointer-events:none}
.canvas-run.running::after{animation:run-ring 1.6s ease-out infinite}
.canvas-run.running svg{animation:run-beat 1s ease-in-out infinite}
.canvas-run:active{transform:scale(.95)}
@keyframes run-ring{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.5,1.9);opacity:0}}
@keyframes run-beat{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}

.run-verdict{position:absolute;width:max-content;left:50%;top:64px;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);padding:8px 8px 8px 16px;border-radius:14px;background:var(--studio-panel,#fff);color:var(--studio-text,inherit);border:1.5px solid var(--studio-line,#ccc);box-shadow:0 6px 22px rgb(0 0 0/.14);font-size:13px;animation:verdict-in .35s cubic-bezier(.16,1,.3,1)}
.run-verdict[hidden]{display:none}
.run-verdict b{white-space:nowrap}.run-verdict.ok{border-color:#3f7d4e}.run-verdict.ok b{color:#3f7d4e}.run-verdict.bad{border-color:#b3422f}.run-verdict.bad b{color:#b3422f}
.run-verdict button{margin-inline-start:auto;border:0;border-radius:99px;padding:6px 12px;background:var(--link);color:#fff;font:800 12px inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
@keyframes verdict-in{from{opacity:0;transform:translate(-50%,-10px)}to{opacity:1;transform:translate(-50%,0)}}
