/* Scoped ticket Markdown: source is retained; presentation never loads remote media. */
.ticket-markdown-field,.ticket-editor,.ticket-editor-preview,.ticket-message,.ticket-markdown{min-width:0;max-width:100%}
.ticket-editor{border:1px solid #dedfeb;border-radius:16px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.ticket-editor:focus-within{border-color:#a38ae0;box-shadow:0 0 0 3px #9f83dd14}
.ticket-editor-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#f8f8fd;border-bottom:1px solid #ecebf3}
.ticket-editor-tabs{display:flex;gap:4px}
.ticket-editor-tab.btn,.ticket-editor-tool.btn{box-shadow:none;border:0;background:transparent;color:#7a8297;font-size:12px;font-weight:500;min-height:32px;padding:6px 10px;border-radius:9px;line-height:1.5}
.ticket-editor-tab.selected.btn{background:#eee7fd;color:#7046bd;font-weight:600}
.ticket-editor-tab.btn:hover,.ticket-editor-tool.btn:hover{background:#f0ebfa;color:#7046bd}
.ticket-editor-format-label{font-size:11px;color:#9197a8;white-space:nowrap}
.ticket-editor-tools{display:flex;align-items:center;gap:4px;padding:6px 10px;border-bottom:1px solid #f0eff5;flex-wrap:wrap}
.ticket-editor-tools[hidden],.ticket-editor .ticket-textarea[hidden],.ticket-editor-preview[hidden]{display:none}
.ticket-editor-tool.btn:disabled{opacity:.45;cursor:not-allowed;background:transparent}
.ticket-editor-tool[data-format=bold]{font-weight:700}
.ticket-editor-tool[data-format=inline],.ticket-editor-tool[data-format=code]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.ticket-editor .ticket-textarea{display:block;box-sizing:border-box;width:100%;border:0;border-radius:0;box-shadow:none;background:transparent;min-height:160px;padding:15px;line-height:1.75;font-size:13px;outline:none}
.ticket-editor .ticket-textarea:focus{box-shadow:none;border:0;outline:none}
.ticket-editor-preview{min-height:160px;padding:15px;overflow-wrap:anywhere}
.ticket-editor-empty{color:#949aaa;font-size:13px;line-height:1.8;margin:0}
.ticket-editor-status{font-size:12px;line-height:1.6;color:#b05d34}
.ticket-editor-status:empty{display:none}
.ticket-editor-help{font-size:11px;color:#8b91a4;line-height:1.7}
.ticket-editor-help summary{cursor:pointer;width:max-content;color:#84669f}
.ticket-editor-help p{font-size:11px;margin:6px 0;color:#858da1}
.ticket-editor-help>code{display:block;padding:8px 10px;border-radius:8px;background:#f4f4fa;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.ticket-markdown{font-size:13px;line-height:1.8;color:#536077;overflow-wrap:anywhere}
.ticket-message>.ticket-markdown{margin-top:12px}
.ticket-markdown:empty{display:none}
.ticket-markdown p,.ticket-message .ticket-markdown p,.ticket-reason-detail .ticket-markdown p{margin:0 0 10px;line-height:1.8;white-space:normal;font-size:inherit;color:inherit;overflow-wrap:anywhere}
.ticket-markdown>:last-child{margin-bottom:0}
.ticket-markdown h1,.ticket-markdown h2,.ticket-markdown h3,.ticket-markdown h4,.ticket-markdown h5,.ticket-markdown h6{margin:18px 0 8px;color:#38465f;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
.ticket-markdown h1{font-size:21px}.ticket-markdown h2{font-size:19px}.ticket-markdown h3{font-size:17px}.ticket-markdown h4,.ticket-markdown h5,.ticket-markdown h6{font-size:14px}
.ticket-markdown>:first-child{margin-top:0}
.ticket-markdown strong{font-weight:650;color:#3f4a62}
.ticket-markdown ul,.ticket-markdown ol{margin:8px 0 12px;padding-left:24px}
.ticket-markdown li{margin:4px 0;padding-left:2px}.ticket-markdown li>p{margin:3px 0}.ticket-markdown li>ul,.ticket-markdown li>ol{margin:3px 0}
.ticket-markdown blockquote{border-left:3px solid #b9a2e7;margin:12px 0;padding:9px 13px;background:#ede8f65e;color:#71788c;border-radius:0 10px 10px 0}
.ticket-markdown blockquote>:last-child{margin-bottom:0}
.ticket-markdown hr{border:0;border-top:1px solid #e4e4ef;margin:17px 0}
.ticket-markdown a{color:#7551c3;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.ticket-markdown :not(pre)>code{background:#eae5f3;border:1px solid #ded6ed;border-radius:5px;color:#70558f;padding:1px 5px;font-size:.92em;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace}
.ticket-md-code{max-width:100%;min-width:0;margin:12px 0;border:1px solid #dedfeb;border-radius:12px;overflow:hidden;background:#f4f5fa}
.ticket-md-code-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px;border-bottom:1px solid #dedfeb;background:#eceef6}
.ticket-md-language{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.6;color:#717d96;overflow-wrap:anywhere}
.ticket-md-copy{border:1px solid #d8dce9;color:#62718c;background:#ffffffc7;border-radius:7px;min-height:30px;padding:4px 9px;font-size:11px;line-height:1.5;cursor:pointer;white-space:nowrap;flex-shrink:0}
.ticket-md-copy:hover{background:#fff;color:#7046bd;border-color:#bba5df}
.ticket-md-copy:focus-visible,.ticket-editor-tab:focus-visible,.ticket-editor-tool:focus-visible{outline:2px solid #9d7ddd;outline-offset:2px}
.ticket-md-copy-status{display:block;font-size:11px;line-height:1.6;color:#6f7c93;padding:0 12px 8px}
.ticket-md-copy-status:empty{display:none}
.ticket-markdown pre{margin:0;max-width:100%;min-width:0;padding:14px;overflow-x:auto;overscroll-behavior-x:contain;white-space:pre;tab-size:2;font-size:12px;line-height:1.7;background:transparent;color:#3d4e69;text-align:left;-webkit-overflow-scrolling:touch}
.ticket-markdown pre code{display:block;white-space:pre;word-break:normal;overflow-wrap:normal;font-size:inherit;font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;background:none;border:0;padding:0;color:inherit}
.ticket-md-table-wrap{max-width:100%;overflow-x:auto;margin:12px 0;border:1px solid #dfe3ee;border-radius:10px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.ticket-markdown table{border-collapse:collapse;min-width:100%;width:auto;font-size:12px;margin:0}
.ticket-markdown th,.ticket-markdown td{padding:9px 12px;line-height:1.65;border:1px solid #e1e5ef;text-align:left;white-space:normal;min-width:80px;overflow-wrap:anywhere}
.ticket-markdown th{background:#eff1f9;color:#55617b;font-weight:600}.ticket-markdown td{background:#ffffff90;color:#63708b}
.ticket-md-image-placeholder{display:inline-block;color:#858397;background:#eeedf5;border-radius:6px;padding:2px 7px;font-size:12px}
.ticket-markdown-plain{white-space:pre-wrap!important;overflow-wrap:anywhere}
.ticket-md-task-item{list-style:none;position:relative}.ticket-md-task-mark{display:inline-block;margin-left:-20px;margin-right:7px;color:#8e70bf;line-height:1.3}
@media(max-width:760px){
 .ticket-editor-topline{padding:8px 10px}.ticket-editor-tools{gap:3px;padding:5px 7px}
 .ticket-editor-tab.btn,.ticket-editor-tool.btn{min-height:44px;padding:8px 11px;font-size:12px}
 .ticket-editor-format-label{font-size:10px}.ticket-editor .ticket-textarea{font-size:16px;min-height:170px;padding:13px}
 .ticket-editor-preview{padding:13px;min-height:170px}.ticket-md-copy{min-height:44px;padding:8px 11px}
 .ticket-markdown pre{font-size:12px;padding:12px}.ticket-md-code-head{padding:6px 10px}
 .ticket-markdown h1{font-size:19px}.ticket-markdown h2{font-size:17px}.ticket-markdown h3{font-size:15px}
}
