.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}
.scenario-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start}
.scenario-list{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;overflow:visible}
.scenario-list a{display:block;background:white;border:1px solid var(--line);padding:16px;border-radius:10px;white-space:normal;color:var(--ink)}
.scenario-list a:hover,.scenario-list a.active{background:#efebfa;border-color:#d2c5f0;color:var(--ink)}
.scenario-list strong{font-size:12px;display:block;font-weight:550;margin-bottom:7px}
.scenario-list small{color:var(--muted);font-size:10px;line-height:1.5}
.scenario-summary{padding:24px;margin-bottom:20px}.scenario-summary h2{font-size:23px;margin:13px 0}.scenario-summary p{font-size:12px;line-height:1.8}.scenario-entry{font-size:11px;margin-top:18px;color:var(--purple)}
.scenario-steps{list-style:none;margin:0;padding:0 0 0 15px;border-left:2px solid #e0d7f1}
.scenario-step{position:relative;padding:20px 23px;margin-bottom:16px;scroll-margin-top:20px}.scenario-step:before{content:'';position:absolute;left:-23px;top:25px;border-radius:50%;width:10px;height:10px;background:#a38ad7;border:3px solid var(--paper)}
.step-heading{display:flex;align-items:center;gap:12px;margin-bottom:9px}.step-number{background:#eee8f8;color:#9270ba;border-radius:7px;padding:5px 7px;font-size:9px}.step-heading h3{font-size:14px;margin:0}.step-trigger{font-size:10px;color:var(--purple);margin-bottom:10px}.scenario-step>p{font-size:11px;line-height:1.8;color:var(--muted)}
.step-texts{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.step-texts a{font-size:10px;border:1px solid #e5deef;border-radius:6px;padding:7px 9px;color:#88729f;background:#faf8fd;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.step-texts a:hover{background:#eee7fa}.step-next{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:18px;font-size:9px;color:#a397b2}.step-next a{color:#88729f;text-decoration:underline;text-underline-offset:3px}
.text-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:22px;align-items:start}.text-library{position:sticky;top:20px}.library-tools{padding:16px;border-bottom:1px solid var(--line)}.library-tools input,.library-tools select{width:100%;border:1px solid #e6e1ed;background:#fcfbfd;border-radius:7px;font-size:11px;padding:11px;margin-bottom:9px}.library-tools p{font-size:9px}.text-list{max-height:calc(100vh - 320px);min-height:220px;overflow:auto;padding:6px}.text-item{border:0;background:transparent;display:block;text-align:left;width:100%;border-radius:7px;padding:12px 10px;color:#6d627e;font-size:11px;line-height:1.5}.text-item:hover{background:#f8f5fc}.text-item.active{background:#efe9f9;color:#7154a0}.text-item .text-item-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-item code{display:block;font-size:8px;color:#afa2ba;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.custom-indicator{color:#a28b53;font-size:8px;display:block;margin-top:4px}
.text-editor{min-width:0}.editor-heading{display:flex;gap:14px;justify-content:space-between;padding:23px;border-bottom:1px solid var(--line)}.editor-heading h2{font-size:16px;margin:11px 0;line-height:1.5;overflow-wrap:anywhere}.editor-heading code{font-size:9px;color:#b1a3be;overflow-wrap:anywhere}.editor-heading>.muted{font-size:9px;white-space:nowrap;padding-top:5px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:22px;padding:22px}.editor-grid .field-label{margin:0 0 10px}.editor-input{min-width:0}.editor-input textarea{width:100%;resize:vertical;min-height:230px;line-height:1.8;padding:12px;font-size:12px;border:1px solid #ded6ea;border-radius:8px;font-family:inherit;color:var(--ink);background:#fefcfe}.editor-input textarea:focus{outline:2px solid #d8c9ee;outline-offset:1px}.editor-counter{display:flex;justify-content:space-between;gap:12px;font-size:9px}.editor-counter>span:last-child{white-space:nowrap}.format-tools{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:8px}.format-tools button{background:#faf7fd;border:1px solid #e8e0f0;border-radius:5px;font-size:9px;padding:6px;color:#8f77a7}.link-tools{display:flex;gap:7px;margin-top:14px}.link-tools input{min-width:0;flex:1;border:1px solid #e6deee;border-radius:6px;font-size:10px;padding:8px}.link-tools .button{font-size:9px;padding:8px;min-height:32px}.variables{margin-top:20px}.variables .field-label{font-size:10px}.variables button{font:10px ui-monospace,monospace;border:1px solid #e3d8ef;color:#977bb4;background:#faf7fe;border-radius:5px;padding:6px 8px;margin:0 5px 5px 0}.variables .field-hint{font-size:9px}.editor-preview{min-width:0}.telegram-preview{background:#e8eddf;border-radius:10px;padding:15px;min-height:170px}.preview-brand{font-size:11px;font-weight:550;margin-bottom:11px;color:#5f7050}.preview-brand span{font-weight:400;color:#99a68c;font-size:9px;padding-left:5px}.preview-message{background:#fff;border-radius:0 10px 10px 10px;padding:13px;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:#434c39;box-shadow:0 1px 2px #71805a16}.preview-message a{color:#598fb7;text-decoration:underline}.preview-message blockquote{margin:6px 0;border-left:3px solid #94b483;background:#f2f6ee;border-radius:3px;padding:7px 10px;font-size:11px}.preview-message code{font-size:11px;background:#f3f1f6;padding:1px 3px;border-radius:3px}.preview-message pre{overflow:auto;white-space:pre-wrap}.preview-message .tg-spoiler,.preview-message tg-spoiler{background:#d6d8d3;color:#656a60;border-radius:3px}.preview-message.preview-button{color:#72579b;background:#faf6ff;text-align:center;font-weight:550;border-radius:8px}.editor-actions{border-top:1px solid var(--line);padding:18px 22px;display:flex;justify-content:space-between;gap:15px;align-items:center}.editor-actions>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.editor-actions .muted{font-size:9px}.editor-actions .field-error{font-size:10px;max-width:300px}.text-history{border-top:1px solid var(--line);padding:16px 22px}.text-history summary{font-size:11px;color:#9b87af;cursor:pointer}.history-entry{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.history-entry p{font-size:10px;color:var(--muted);line-height:1.7}.history-entry .button{min-height:30px;font-size:9px;padding:7px 9px}#text-load-warning{margin:15px 22px 0}.search:focus-within{border-color:#b49ad6;box-shadow:0 0 0 2px #eee6f8}
@media(max-width:1400px){.editor-grid{grid-template-columns:1fr}.editor-heading{padding:20px}.editor-actions{align-items:flex-start;flex-direction:column}.text-layout{grid-template-columns:235px minmax(0,1fr)}}
@media(max-width:1000px){.scenario-layout{grid-template-columns:210px minmax(0,1fr);gap:15px}.text-layout{grid-template-columns:210px minmax(0,1fr);gap:15px}.editor-heading{flex-direction:column;gap:3px}.editor-heading>.muted{padding:0}.scenario-step{padding:17px}.step-heading{gap:8px}.step-heading h3{font-size:12px}}
@media(max-width:800px){.scenario-layout,.text-layout{grid-template-columns:1fr}.scenario-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:8px;margin:0}.scenario-list a{padding:12px;white-space:normal}.scenario-list a strong{font-size:11px}.scenario-list small{font-size:9px}.text-library{position:static}.text-list{max-height:200px;min-height:0}.text-layout{gap:16px}.library-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.library-tools input,.library-tools select{margin:0}.library-tools p{grid-column:1/-1}.editor-grid{padding:18px}.editor-heading{padding:18px}.editor-actions{padding:18px}.scenario-summary{padding:20px}.scenario-summary h2{font-size:20px}.text-history{padding:16px 18px}}
.toast{max-width:calc(100vw - 32px);width:max-content;line-height:1.6;text-align:center}
