/* Compact reference editor. */
.shilling-editor{display:grid;gap:18px;min-width:0}
.shilling-community-switch{position:relative;display:flex;align-items:center;gap:12px;align-self:start;min-height:48px;margin:0;padding:12px 14px;border:1px solid var(--app-line-strong);border-radius:10px;cursor:pointer;font-size:13px;box-sizing:border-box}.shilling-community-switch>input{position:absolute;width:1px;height:1px;opacity:0}.shilling-switch-track{position:relative;flex:0 0 42px;width:42px;height:24px;border:1px solid var(--app-line-strong);border-radius:99px;background:var(--app-surface-raised)}.shilling-switch-track:after{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:var(--app-muted)}.shilling-community-switch>input:checked+.shilling-switch-track{background:var(--app-lime);border-color:var(--app-lime)}.shilling-community-switch>input:checked+.shilling-switch-track:after{left:21px;background:#14200c}.shilling-community-switch>input:focus-visible+.shilling-switch-track{outline:2px solid var(--app-lime);outline-offset:4px}.shilling-community-switch small{display:block;margin-top:4px;color:var(--app-muted);font-size:11px}
.shilling-mode-settings,.shilling-reserves,.shilling-autoreply{display:grid;gap:14px;padding:16px;border:1px solid var(--app-line-strong);border-radius:12px;min-width:0}.shilling-mode-settings>p{margin:0}.shilling-autoreply>div{display:grid;gap:14px}.shilling-reserves>.checkline{display:flex;align-items:center;gap:8px;margin:0}.shilling-reserves select[multiple]{min-height:112px}
.shilling-community-settings{display:grid;gap:18px;min-width:0}.shilling-community-settings .checkline{display:flex;align-items:center;gap:9px;margin:0;padding:12px;border:1px solid var(--app-line-strong);border-radius:10px;font-size:12px}.shilling-community-emojis{display:flex;flex-wrap:wrap;gap:7px}.shilling-community-emojis>.btn{font-size:20px;min-width:38px;padding:6px}.shilling-community-emojis>.btn[aria-pressed="true"]{border-color:var(--app-lime);background:color-mix(in srgb,var(--app-lime) 14%,var(--app-surface))}.shilling-editor>#m-shilling-editor-status:empty{display:none}
.shilling-editor .field{min-width:0;margin:0}.shilling-editor .field :is(input,textarea,select){width:100%;min-width:0;max-width:100%;box-sizing:border-box}.shilling-editor textarea{resize:vertical}
.shilling-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.shilling-section-heading h3{margin:0;font-size:14px}
.shilling-count{font-size:11px;color:var(--app-lime);border:1px solid var(--app-line-strong);border-radius:999px;padding:3px 8px;white-space:nowrap}
.shilling-role-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.shilling-role-tools .btn{font-size:11px;min-height:30px;padding:5px 9px}
.shilling-topic-label{display:flex;align-items:center;justify-content:space-between;gap:12px}.shilling-topic-label .btn{font-size:11px;padding:6px 10px;min-height:30px}
.shilling-ai-roles-control{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.shilling-ai-roles-control small{margin-left:auto;color:var(--app-muted);font-size:11px}
.shilling-role-grid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}.shilling-role-card{position:relative;min-width:0;width:210px;border:1px solid var(--app-line-strong);border-radius:12px;background:var(--app-surface);box-sizing:border-box}
.shilling-role-card>summary{display:flex;align-items:center;gap:9px;padding:11px;cursor:pointer;list-style:none}.shilling-role-card summary::-webkit-details-marker,.shilling-step-editor summary::-webkit-details-marker{display:none}
.shilling-role-card summary>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.shilling-role-card summary b,.shilling-role-card summary small{display:block}.shilling-role-card summary b{font-size:12px}.shilling-role-card summary small{font-size:11px;color:var(--app-muted);margin-top:4px}
.shilling-role-index{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;background:color-mix(in srgb,var(--app-lime) 16%,var(--app-surface));color:var(--app-lime);border-radius:8px;font-size:12px}
.shilling-role-card[open]{width:min(100%,420px)}.shilling-role-fields{display:grid;gap:12px;padding:4px 12px 14px}.shilling-role-fields>small{font-size:11px;color:var(--app-muted)}
.shilling-empty{margin:0;padding:16px;color:var(--app-muted);border:1px dashed var(--app-line-strong);border-radius:10px;width:100%}
.shilling-scenario-section{border:1px solid var(--app-line-strong);border-radius:12px;background:var(--app-surface);padding:14px;min-width:0}
.shilling-step-list{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:8px}.shilling-step-card{position:relative;border:1px solid var(--app-line-strong);border-radius:10px;padding:0;min-width:0;background:var(--app-bg)}
.shilling-step-editor>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:10px 108px 10px 12px;min-width:0}.shilling-step-title{display:grid;gap:3px;min-width:0}.shilling-step-number{font-size:10px;color:var(--app-muted)}
[data-shilling-sender]{font-size:11px;color:var(--app-lime);overflow-wrap:anywhere}[data-shilling-excerpt]{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shilling-edit-label{font-size:10px;color:var(--app-muted);margin-left:auto}.shilling-step-actions{position:absolute;right:8px;top:10px;display:flex;gap:4px}.shilling-step-actions .btn{padding:3px 6px;min-width:26px;min-height:27px;font-size:12px}
.shilling-step-fields{display:grid;gap:12px;padding:8px 12px 14px;border-top:1px solid var(--app-line-strong)}.shilling-step-fields textarea{min-height:80px}.shilling-step-fields [data-shilling-reaction]{font-size:20px}
.shilling-scenario-section>.task-actions .btn{font-size:12px;min-height:32px;padding:5px 10px}.shilling-scenario-section>small{font-size:11px;display:block;margin-top:12px}
.shilling-editor [hidden]{display:none!important}.shilling-preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.shilling-campaign-preview { margin: 24px 0; padding: 24px; }
.shilling-campaign-preview > details { margin: 20px 0; }
.shilling-campaign-preview > details > .shilling-role-grid { margin-top: 18px; }
.shilling-preview-steps { display: grid; gap: 12px; list-style: none; padding: 0; margin: 20px 0; }
.shilling-preview-steps > li { padding: 18px; border-left: 2px solid var(--app-lime); background: var(--app-surface); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
.shilling-preview-steps > li > div { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.shilling-preview-steps small { color: var(--app-muted); }
.shilling-preview-steps p { margin: 10px 0 0; }
.shilling-preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }

@media(max-width:720px){.shilling-section-heading{align-items:flex-start;flex-wrap:wrap}.shilling-role-tools{justify-content:flex-start}.shilling-role-card{width:100%}.shilling-topic-label{align-items:flex-start;flex-wrap:wrap}.shilling-ai-roles-control{flex-wrap:wrap}.shilling-ai-roles-control small{margin-left:0}.shilling-scenario-section{padding:10px}.shilling-edit-label{display:none}.shilling-step-editor>summary{padding-right:100px}.shilling-campaign-preview{padding:16px}}
