.tw-icon{width:18px;height:18px;flex:none;vertical-align:middle}
#ticketsView .tw-summary{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 16px;color:#496273;font-size:13px}
#ticketsView .tw-summary strong{color:#163549;font-size:16px}
#ticketsView .tw-automation{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid #d9e6e9;border-radius:12px;background:#fff;margin-bottom:20px;color:#37616c}
#ticketsView .tw-automation[hidden]{display:none}
#ticketsView .tw-automation>span{flex:1}
#ticketsView .tw-automation small{display:block;margin-top:3px;color:#627884}
#ticketsView .tw-automation.has-error{border-color:#cf7d43;background:#fff7ea}
#ticketsView .section-bar{margin:0 0 12px;gap:14px;flex-wrap:wrap}
#ticketsView .tabs{border-radius:10px;padding:4px;background:#e9eff2;gap:4px}
#ticketsView .tabs button{min-height:40px;padding:8px 16px;display:flex;gap:9px;align-items:center;border-radius:7px}
#ticketsView .tabs button.active{background:#fff;color:#005e70;box-shadow:0 1px 4px #17384b16}
#ticketsView [data-ticket-count]{display:inline-flex;min-width:24px;justify-content:center;padding:2px 6px;background:#e3ecef;border-radius:6px;font-size:11px;font-weight:750}
#ticketsView .tw-filters{display:flex;gap:14px;margin-bottom:16px}
#ticketsView .tw-filters label{display:grid;gap:5px;color:#4c6371;font-size:12px;min-width:210px}
#ticketsView .tw-filters select{min-height:38px;background:#fff;border:1px solid #d6e2e7;border-radius:8px;padding:7px 12px;color:#17394b}
#ticketsView .ticket-list{display:grid;gap:12px}
#ticketsView .tw-card{display:flex;align-items:flex-start;gap:15px;padding:20px;box-shadow:none;border-radius:12px;background:var(--ticket-surface)}
#ticketsView .tw-card-mark{height:36px;width:36px;border-radius:9px;display:grid;place-items:center;color:var(--ticket-ink);background:var(--ticket-pill);flex:none}
#ticketsView .tw-card .ticket-card-content{flex:1;min-width:0}
#ticketsView .tw-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#ticketsView .tw-card h3{font-size:16px;line-height:1.45;margin:0;color:#163549;font-weight:750}
#ticketsView .tw-card h3 span{font-size:14px;font-weight:550}
#ticketsView .tw-request{font-weight:650;color:#254657;font-size:14px;margin-top:5px}
#ticketsView .tw-excerpt{font-size:13px;line-height:1.6;color:#4c6471;max-width:1000px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 10px}
#ticketsView .tw-facts{display:flex;gap:8px 20px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:#405e6a}
#ticketsView .tw-facts>span{display:flex;gap:6px;align-items:center}
#ticketsView .tw-facts .tw-icon{width:14px;height:14px}
#ticketsView .tw-intake{font-size:11px;color:#657881;margin-top:8px}
#ticketsView .tw-next{display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--ticket-border);font-size:12px;color:#254b5b}
#ticketsView .ticket-card-actions{display:flex;align-items:center;gap:8px;margin-top:2px;flex-wrap:wrap;position:relative}
#ticketsView .ticket-open-action{min-height:40px;box-shadow:none;gap:8px;border-radius:8px;white-space:nowrap}
#ticketsView .tw-more>summary{cursor:pointer;list-style:none;padding:8px;color:#5d747e;border-radius:6px;min-width:32px}
#ticketsView .tw-more[open]{position:relative;z-index:2}
#ticketsView .tw-more[open] button{position:absolute;right:0;top:36px;background:#fff;border:1px solid #d7e3e6;box-shadow:0 5px 15px #17384b20;min-width:100px}
#ticketsView .tw-empty{text-align:center;border:1px dashed #cbdce2;background:#fff;border-radius:12px;padding:40px;color:#5a7580}
#ticketsView .tw-empty>.tw-icon{width:32px;height:32px}
#ticketsView .tw-empty h3{margin:12px 0 8px;color:#254657}
.tw-dialog{width:min(900px,calc(100vw - 30px));max-height:92vh;padding:0;border:1px solid #d3e2e6;border-radius:16px;color:#17394b;box-shadow:0 20px 70px #09253538;background:#f5f9fa}
.tw-dialog::backdrop{background:#102e4066;backdrop-filter:blur(2px)}
.tw-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:white;border-bottom:1px solid #dbe7e9;position:sticky;top:0;z-index:2}
.tw-dialog-head small{font-size:10px;letter-spacing:.12em;color:#607c87;font-weight:700}
.tw-dialog-head h2{font-size:22px;margin:4px 0 0}
.tw-dialog-body{padding:22px 24px;display:grid;gap:16px}
.tw-detail-top{display:grid;gap:10px;padding:4px}
.tw-detail-top>.ticket-status{justify-self:start;border-radius:6px;background:#e5eef1;padding:4px 10px;font-size:12px}
.tw-detail-top>strong{font-size:18px}
.tw-dialog p{line-height:1.6;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.tw-dialog small{color:#647a85;display:block;line-height:1.5}
.tw-panel{background:white;border:1px solid #dce7ea;border-radius:12px;padding:18px;min-width:0}
.tw-panel h3,.tw-panel>summary{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:700;margin:0 0 10px;color:#21495b}
.tw-panel>summary{cursor:pointer;margin-bottom:0;min-height:30px}
.tw-panel[open]>summary{margin-bottom:14px}
.tw-dialog pre{white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:13px;line-height:1.65;background:#f5f8fa;padding:12px;border-radius:6px;max-height:350px;overflow:auto}
.tw-source+.tw-source{margin-top:20px;border-top:1px solid #d8e4e8;padding-top:16px}
.tw-file{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #e4edf0;flex-wrap:wrap;font-size:13px}
.tw-file>span{flex:1;min-width:130px;overflow-wrap:anywhere}
.tw-dialog label{display:grid;gap:6px;font-size:13px;font-weight:600;margin:10px 0}
.tw-dialog input:not([type=checkbox]),.tw-dialog textarea{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #cbdce2;border-radius:8px;background:#fff;font:inherit;color:#153e51;min-height:40px}
.tw-dialog textarea{resize:vertical;line-height:1.6}
.tw-dialog select{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #cbdce2;border-radius:8px;background:#fff;color:#153e51;font:inherit;min-height:40px}
.tw-dialog input[readonly]{background:#edf4f6}
.tw-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;box-shadow:none}
.tw-dialog button:disabled{opacity:.55;cursor:wait}
.tw-dialog :focus-visible,#ticketsView :focus-visible{outline:3px solid #398fa8;outline-offset:3px}
.tw-search{display:flex;gap:8px}
.tw-client-choice{width:100%;justify-content:space-between!important;background:#f2f8fa;border:1px solid #cee1e6;border-radius:8px;padding:10px;margin-top:6px;cursor:pointer;flex-wrap:wrap}
.tw-information{margin-top:18px;padding-top:14px;border-top:1px solid #e0eaed}
.tw-information>summary{cursor:pointer;font-size:13px;color:#5a7280}
.tw-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.tw-reply{padding:12px;border-inline-start:3px solid #b9dce2;background:#f5f9fa;border-radius:4px;margin-bottom:10px}
.tw-review-note{padding:12px;background:#fff2d6;border-radius:8px}
.tw-dialog .tw-check{display:flex;align-items:center;gap:10px;font-weight:400}
.tw-dialog fieldset{border:1px solid #d6e3e7;border-radius:8px;margin:16px 0}
.tw-error{color:#b02b3c;font-size:13px}
.tw-error:empty{display:none}
@media(max-width:850px){body:has(#ticketsView.active) .topbar-heading,body:has(#ticketsView.active) .top-actions{flex:0 1 auto}}
@media(max-width:850px){#ticketsView .tw-card{flex-wrap:wrap}#ticketsView .ticket-card-actions{width:100%;padding-left:51px}#ticketsView .tw-card-content{width:calc(100% - 52px)}}
@media(max-width:550px){#ticketsView .tw-card{padding:15px;flex-direction:row}#ticketsView .tw-card-mark{display:none}#ticketsView .ticket-card-actions{padding-left:0}#ticketsView .tw-filters{display:grid;grid-template-columns:1fr;width:100%}#ticketsView .tw-automation{flex-wrap:wrap}#ticketsView .tabs{width:100%}#ticketsView .tabs button{flex:1;padding:8px 9px}.tw-dialog-head,.tw-dialog-body{padding:15px}.tw-dialog-head h2{font-size:18px}.tw-file button{font-size:12px}.tw-dialog{max-height:96vh;width:calc(100vw - 12px)}.tw-search{flex-wrap:wrap}}
