.ft-ticket-create{width:min(48rem,96vw);max-width:48rem;max-height:92dvh;overflow:auto;padding:1.25rem}
.ft-ticket-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.ft-ticket-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-bottom:1rem}
.ft-ticket-toolbar>span{margin-right:auto;color:var(--muted-foreground)}
.ft-ticket-layout{display:grid;grid-template-columns:minmax(0,1fr) 18rem;gap:1rem;align-items:start}
.ft-ticket-main{display:grid;gap:1rem;min-width:0}.ft-ticket-sidebar{position:sticky;top:1rem}
.ft-ticket-conversation{display:flex;flex-direction:column;gap:1.25rem}
.ft-ticket-post{border:1px solid var(--border);border-radius:.75rem;padding:1rem;background:var(--background);overflow-wrap:anywhere}
.ft-ticket-post-header{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.75rem;font-size:.85rem}
.ft-ticket-post-header time{margin-left:auto;color:var(--muted-foreground);font-size:.75rem}
.ft-ticket-message{white-space:pre-wrap;line-height:1.6}.ft-ticket-event{font-size:.8rem;color:var(--muted-foreground);padding:.25rem .5rem;border-left:2px solid var(--border)}
.ft-ticket-event .ft-ticket-post-header{margin-bottom:.25rem}.ft-ticket-note{background:var(--muted);border-style:dashed}
.ft-ticket-attachments{display:flex;flex-wrap:wrap;gap:.75rem;margin:.75rem 0}.ft-ticket-file{display:flex;flex-direction:column;align-items:flex-start;max-width:15rem;overflow:hidden}
.ft-ticket-file img{max-width:13rem;max-height:10rem;object-fit:contain}.ft-ticket-file small{color:var(--muted-foreground)}
.ft-ticket-upload{display:flex;align-items:center;gap:.5rem;border:1px solid var(--border);border-radius:.5rem;padding:.5rem;max-width:100%}
.ft-ticket-upload>span{overflow-wrap:anywhere;font-size:.8rem}.ft-ticket-upload small{display:block}.ft-ticket-upload img{width:3rem;height:3rem;object-fit:contain}
.ft-ticket-composer{border:2px solid transparent;border-radius:.5rem}.ft-ticket-composer.is-dragover{border-color:var(--primary);background:var(--muted)}
.ft-ticket-image-dialog{width:min(70rem,96vw);max-width:70rem;max-height:94dvh}.ft-ticket-image-dialog img{width:100%;max-height:78dvh;object-fit:contain}
.ft-ticket-metadata{display:grid;gap:.25rem;margin:0}.ft-ticket-metadata dt{font-size:.75rem;color:var(--muted-foreground);margin-top:.5rem}.ft-ticket-metadata dd{font-size:.9rem;margin:0;overflow-wrap:anywhere}
@media(max-width:800px){.ft-ticket-layout{grid-template-columns:1fr}.ft-ticket-sidebar{position:static;grid-row:1}.ft-ticket-fields{grid-template-columns:1fr}.ft-ticket-post-header time{margin-left:0}.ft-ticket-post{padding:.75rem}}

.ft-ticket-sidebar{display:grid;gap:1rem;max-height:calc(100dvh - 8rem);overflow:auto}
.ft-ticket-composer>[data-slot=label]{display:block;margin-bottom:.5rem}
.ft-ticket-composer [data-slot=toolbar-content]{flex-wrap:wrap}
.ft-ticket-composer .ql-editor,.ft-ticket-rich{font:inherit;line-height:1.6;min-height:0}
.ft-ticket-rich{height:auto;padding:0;overflow-wrap:anywhere;white-space:pre-wrap}
.ft-ticket-rich p,.ft-ticket-composer .ql-editor p{margin:0 0 .6em}
.ft-ticket-rich p:last-child{margin-bottom:0}
.ft-ticket-rich img,.ft-ticket-composer .ql-editor img{display:inline-block;max-width:100%;height:auto;vertical-align:middle;border-radius:.375rem}
.ft-ticket-rich a{text-decoration:underline;color:var(--primary)}
.ft-ticket-rich ul{list-style:disc;padding-left:1.5rem}.ft-ticket-rich ol{list-style:decimal;padding-left:1.5rem}
.ft-ticket-rich blockquote{border-left:3px solid var(--border);padding-left:1rem}
.ft-ticket-upload-status{font-size:.8rem;padding:.5rem;color:var(--muted-foreground)}
.ft-ticket-history-label{display:flex;flex-direction:column;white-space:normal;overflow-wrap:anywhere;gap:.2rem}
.ft-ticket-history-label time{font-size:.7rem;color:var(--muted-foreground)}
.ft-ticket-history-change{white-space:normal;overflow-wrap:anywhere;font-size:.75rem}
.ft-ticket-history [role=treeitem]>div{height:auto;min-height:2rem}
@media(max-width:800px){.ft-ticket-sidebar{max-height:none;grid-row:auto}.ft-ticket-rich img{max-height:70dvh;object-fit:contain}}

.ft-ticket-history [data-tree-node] .truncate{white-space:normal;text-overflow:clip;overflow:visible}

.ft-ticket-rich.ql-editor li{list-style:inherit;padding-left:0}
