/* Edit / duplicate affordance on each row of the Scenario menu. */
.scenmenu button{position:relative}
.sedit{position:absolute;right:8px;top:8px;width:24px;height:24px;border-radius:7px;
  display:grid;place-items:center;color:var(--muted);opacity:0;transition:opacity .12s}
.scenmenu button:hover .sedit{opacity:1}
.sedit:hover{background:var(--surface-hi);color:var(--text)}

/* ---------- flow editor (the node module) ---------- */
.editor{flex:none;width:340px;display:flex;flex-direction:column;min-height:0;
  background:var(--chrome);border-left:1px solid var(--stroke);color:var(--text)}

.ehead{flex:none;display:flex;align-items:center;gap:8px;padding:10px 10px 10px 14px;
  border-bottom:1px solid var(--stroke)}
.ehead b{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);
  font-weight:700;flex:none}
.ehead .ename{font-size:13px;font-weight:600;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.ehead .grow{flex:1}
.edot{width:7px;height:7px;border-radius:50%;background:var(--amber);flex:none}

.eread{flex:none;display:flex;align-items:center;gap:10px;padding:10px 14px;font-size:12px;
  color:var(--muted);line-height:1.5;background:var(--surface);
  border-bottom:1px solid var(--stroke)}

.etabs{flex:none;display:flex;gap:2px;padding:8px 10px;border-bottom:1px solid var(--stroke)}
.etabs button{flex:1;height:28px;border:1px solid transparent;border-radius:8px;
  background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.etabs button:hover{background:var(--surface)}
.etabs button.on{background:var(--surface);border-color:var(--stroke-hi);color:var(--text);
  font-weight:600}

.ebody{flex:1;min-height:0;overflow-y:auto;padding:12px 14px 18px}

.efield{display:block;margin-bottom:12px}
.elab{display:block;font-size:11px;font-weight:600;color:var(--muted);margin-bottom:5px}
.ehint{display:block;font-size:10.5px;color:var(--faint);line-height:1.5;margin-top:4px}
.efield input,.efield textarea,.efield select{width:100%;box-sizing:border-box;
  padding:7px 9px;border-radius:8px;border:1px solid var(--stroke);background:var(--panel);
  color:var(--text);font:inherit;font-size:12.5px;line-height:1.5;outline:none;resize:vertical}
.efield input:focus,.efield textarea:focus,.efield select:focus{border-color:var(--brand)}
.efield input:disabled,.efield textarea:disabled,.efield select:disabled{opacity:.55}

.echk{display:flex;align-items:flex-start;gap:9px;margin:2px 0 12px;font-size:12px;
  line-height:1.5;cursor:pointer}
.echk input{margin-top:2px;accent-color:var(--brand)}

.erow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.erow .ehint{margin-top:0;flex:1;min-width:150px}
.estepnote{margin:-4px 0 12px}

.ebtn{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:8px;
  border:1px solid var(--stroke);background:var(--surface);color:var(--text);font:inherit;
  font-size:12px;cursor:pointer;white-space:nowrap}
.ebtn:hover:not(:disabled){border-color:var(--stroke-hi);background:var(--surface-hi)}
.ebtn:disabled{opacity:.35;cursor:default}
.ebtn.go{background:linear-gradient(160deg,var(--brand),var(--brand-2));border-color:transparent;
  color:var(--brand-fg);font-weight:600}
.ebtn.danger:hover:not(:disabled){border-color:#7f1d1d;color:#fca5a5}
.ebtn.x{width:24px;height:24px;padding:0;justify-content:center;border-color:transparent;
  background:transparent;color:var(--muted)}
.ebtn.x:hover:not(:disabled){background:var(--surface-hi);color:var(--text)}

/* ---- the shelf of saved boxes, under "+ Add a box" ---- */
.eshelf{border:1px solid var(--stroke);border-radius:10px;margin-bottom:12px;
  background:var(--panel);overflow:hidden}
.eshelfhead{display:flex;align-items:center;gap:8px;padding:7px 7px 7px 11px;
  font-size:11px;font-weight:600;color:var(--muted)}
.eshelfhead span{flex:1}
.egroup{border-top:1px solid var(--stroke);padding:8px 10px 10px}
.egrouphead{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);
  font-weight:700;margin-bottom:7px}
.epresets{display:flex;flex-wrap:wrap;gap:6px}
.epreset{position:relative;display:inline-flex;align-items:center;gap:7px;height:30px;
  padding:0 10px;border-radius:8px;border:1px solid var(--stroke);background:var(--surface);
  color:var(--text);font:inherit;font-size:11.5px;cursor:pointer;max-width:100%}
.epreset:hover:not(:disabled){border-color:var(--brand);background:var(--surface-hi)}
.epreset:disabled{opacity:.4;cursor:default}
.epicon{display:grid;place-items:center;flex:none;color:var(--muted)}
.epicon img{display:block}
.eptitle{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.epx{position:absolute;top:-6px;right:-6px;width:16px;height:16px;border-radius:50%;
  display:grid;place-items:center;background:var(--panel);border:1px solid var(--stroke-hi);
  color:var(--muted);opacity:0;transition:opacity .12s}
.epreset:hover .epx{opacity:1}
.epx:hover{color:#fca5a5;border-color:#7f1d1d}

/* ---- icon picker ---- */
.eicons{border:1px solid var(--stroke);border-radius:8px;background:var(--panel);
  padding:8px 9px;max-height:196px;overflow-y:auto}
.eicongroup{font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);
  font-weight:700;margin:2px 0 6px}
.eiconrow{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:9px}
.eiconrow:last-child{margin-bottom:0}
.eicon{width:30px;height:30px;display:grid;place-items:center;border-radius:7px;
  border:1px solid transparent;background:var(--surface);color:var(--muted);cursor:pointer}
.eicon:hover:not(:disabled){border-color:var(--stroke-hi);color:var(--text)}
.eicon.on{border-color:var(--brand);background:var(--surface-hi);color:var(--text)}
.eicon:disabled{opacity:.4;cursor:default}
.eicon img{display:block}

.enode,.estep{border:1px solid var(--stroke);border-radius:10px;margin-bottom:8px;
  background:var(--panel);overflow:hidden}
.enode{cursor:pointer}
.enode.on{border-color:var(--brand)}
.enhead{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 11px}
.enhead b{font-size:12.5px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;flex:1}
.enum{width:19px;height:19px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:var(--surface-hi);color:var(--muted);font-size:10px;font-weight:700}
.eid,.ekind{font-size:10px;color:var(--faint);flex:none;font-variant-numeric:tabular-nums}
.ekind{padding:2px 7px;border-radius:999px;background:var(--surface);text-transform:uppercase;
  letter-spacing:.06em}
.enbody{padding:2px 11px 10px;border-top:1px solid var(--stroke)}

.efoot{flex:none;display:flex;align-items:center;gap:8px;padding:10px 12px;
  border-top:1px solid var(--stroke);background:var(--chrome)}
.efoot .grow{flex:1}
