/* One editor toolbar, two peer workspaces. */
#editor-toolbar { padding:8px 14px; gap:8px 12px; }
#editor-toolbar .toolbar-left { flex:1 1 240px; }
#editor-toolbar .toolbar-right { gap:6px; }
#editor-toolbar .toolbar-group { gap:4px; padding:3px; border-radius:7px; }
#editor-toolbar .toolbar-group-publish { padding:0; }
#editor-toolbar .topbar-btn { padding:6px 10px; }
.editor-mode-toggle { display:flex; align-self:flex-start; gap:2px; padding:3px; border:1px solid var(--border); border-radius:7px; background:var(--bg); margin-left:auto; }
.editor-mode-toggle button { padding:7px 14px; border:0; border-radius:4px; background:transparent; color:var(--text-secondary); font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; white-space:nowrap; }
.editor-mode-toggle button[aria-selected="true"] { background:var(--navy,#1b263b); color:#fff; }
.editor-mode-toggle button:focus-visible { outline:2px solid var(--international-orange,#f40); outline-offset:2px; }
#editor-view.agent-mode #editor-sidebar,
#editor-view.agent-mode #editor-workspace,
#editor-view.agent-mode .toolbar-group-structure { display:none; }
#walter-workbench { flex:1; min-height:0; min-width:0; background:var(--bg,#f8f7f2); color:var(--text,#17263e); display:flex; flex-direction:column; font:13px/1.4 'Manrope',system-ui,sans-serif; }
#walter-workbench[hidden], #walter-workbench [hidden] { display:none !important; }
#walter-workbench nav { display:flex; align-items:center; gap:3px; padding:6px 12px; border-bottom:1px solid var(--border,#dde4ee); background:var(--surface,#fff); flex-wrap:wrap; }
#walter-revision { margin-left:auto; color:var(--text-muted,#64748b); font-size:12px; }
#walter-workbench button, #walter-workbench .walter-file { cursor:pointer; padding:5px 9px; border:1px solid var(--border-strong,#b8c3ce); border-radius:4px; background:#fff; color:var(--text,#173252); font:inherit; }
#walter-workbench button:hover { background:var(--bg,#f0f3f6); }
#walter-workbench button:disabled { opacity:.55; cursor:default; }
#walter-workbench button[aria-selected="true"], #walter-workbench .walter-primary { background:var(--navy,#1b263b); color:#fff; border-color:var(--navy,#1b263b); }
#walter-workbench input, #walter-workbench select, #walter-workbench textarea { padding:5px 7px; border:1px solid var(--border-strong,#b8c3ce); border-radius:4px; font:inherit; max-width:100%; background:#fff; color:var(--text,#17263e); }
#walter-workbench textarea { width:100%; box-sizing:border-box; }
#walter-workbench .walter-body { overflow:auto; flex:1; padding:8px 12px; min-height:0; }
#walter-workbench section { height:100%; box-sizing:border-box; }
#walter-workbench section[data-panel="preview"], #walter-workbench section[data-panel="source"] { display:flex; flex-direction:column; min-height:0; }
#walter-workbench .walter-tools { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-bottom:6px; }
#walter-workbench .walter-note { color:var(--text-muted,#51617a); margin:4px 0; font-size:12px; }
#walter-workbench #walter-status { padding:5px 12px; border-top:1px solid var(--border,#dde4ee); background:#fff; white-space:pre-wrap; font-size:12px; }
#walter-workbench #walter-status:empty { display:none; }
#walter-workbench #walter-status[data-error="true"] { color:#9f2020; }
#walter-workbench #walter-source { flex:1; min-height:160px; font:13px/1.5 ui-monospace,monospace; tab-size:2; resize:none; }
#walter-workbench #walter-preview-frame { flex:1; width:100%; min-height:220px; border:1px solid var(--border,#ccd6e5); background:#fff; }
#walter-workbench pre { white-space:pre-wrap; overflow-wrap:anywhere; padding:8px; margin:6px 0; background:var(--bg,#f0f3f6); border:1px solid var(--border,#dde4ee); border-radius:4px; font-size:12px; }
#walter-workbench h3 { font-size:13px; margin:10px 0 6px; }
#walter-workbench p { margin:5px 0; }
#walter-workbench .walter-feedback-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:12px; }
#walter-workbench #walter-canvas { width:100%; height:auto; background:#e3e9f2; touch-action:none; cursor:crosshair; border:1px solid #bac8da; }
#walter-workbench .walter-history-item { width:100%; text-align:left; display:block; margin:4px 0; }
#walter-workbench .walter-result { border-bottom:1px solid var(--border,#d5dfea); padding:6px 0; }
#walter-workbench .walter-result p { margin:3px 0; }
#walter-workbench .walter-credentials { max-width:900px; }
#walter-workbench .walter-reference-list { padding-left:20px; }
#walter-workbench .walter-image-input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
@media(max-width:800px) {
  #walter-workbench .walter-feedback-layout { grid-template-columns:1fr; }
  #editor-toolbar { padding:8px; }
  #editor-toolbar .toolbar-left { flex-basis:160px; }
  .editor-mode-toggle button { padding:7px 9px; }
}
