/* Scoped to scenario controls; existing sending and shared buttons stay intact. */
.scenario-help-action{display:inline-flex;align-items:center;gap:3px;max-width:100%;min-width:0;vertical-align:middle}
#scenarioView .scenario-help-info{display:inline-grid;place-items:center;width:32px;height:36px;min-width:32px;min-height:36px;padding:0;border:0;border-radius:6px;background:transparent;color:#52747a;font:600 20px/1 sans-serif;box-shadow:none;cursor:help;flex:0 0 32px}
#scenarioView .scenario-help-info:hover,#scenarioView .scenario-help-info:focus-visible{background:#eaf5f2;color:#007d70;outline:2px solid #66b5a7;outline-offset:1px}
.scenario-help-tooltip{position:fixed;z-index:1000;width:max-content;max-width:min(320px,calc(100vw - 16px));padding:11px 13px;border:1px solid #d4e3df;border-radius:9px;background:#183c37;color:white;font-size:13px;line-height:1.7;box-shadow:0 5px 20px #122f3026;overflow-wrap:anywhere}
.scenario-help-tooltip[hidden]{display:none}
.scenario-help-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #d7e3e2;border-radius:14px;color:#203740;background:white}
.scenario-help-dialog::backdrop{background:#10232a70}.scenario-help-head{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e1e9e9}.scenario-help-head h2{font-size:19px;margin:0;overflow-wrap:anywhere}.scenario-help-head button{border:0;background:transparent;min-width:40px;min-height:40px;font-size:24px;cursor:pointer}.scenario-help-body{padding:18px 20px;max-height:calc(100dvh - 220px);overflow:auto;font-size:14px;line-height:1.9}.scenario-help-notice{margin:0 0 16px;padding:12px;background:#eff7f5;border-radius:8px;font-weight:600}.scenario-help-body ol{padding-left:24px;margin:0}.scenario-help-body li{padding-left:3px;margin-bottom:12px}.scenario-help-extra{font-size:12px;color:#536e75;margin:16px 0 0}.scenario-help-footer{padding:12px 20px;border-top:1px solid #e1e9e9;display:flex;justify-content:flex-end}
#scenarioView .editor-actions{flex-wrap:wrap;justify-content:flex-start;align-items:center;max-width:100%;min-width:0;overflow:visible}
#scenarioView .editor-actions>button,#scenarioView .editor-actions .scenario-help-action>button:not(.scenario-help-info){max-width:100%;white-space:normal;overflow-wrap:anywhere;flex-shrink:1}
#scenarioView .editor-form{min-width:0}
@media(max-width:760px){#scenarioView .scenario-help-info{min-height:44px;height:44px;min-width:40px;width:40px;flex-basis:40px}.scenario-help-head,.scenario-help-body{padding:14px}.scenario-help-action{max-width:100%}}

#scenarioView .scenario-branch-preview {
 min-width: 0;
 padding: 12px 14px;
 border: 1px solid #c7e0db;
 border-radius: 10px;
 background: #f3faf8;
 color: #234741;
 overflow-wrap: anywhere;
}
#scenarioView .scenario-branch-preview h4 { margin: 0 0 6px; }
#scenarioView .scenario-branch-paths { margin: 0; display: grid; gap: 4px; }
