/* Isolated customer and staff ticket workspace. */
.emt{--emt-ink:#304527;--emt-muted:#766b59;--emt-gold:#a78143;--emt-line:#e6d7c5;--emt-paper:#fffaf3;--emt-green:#536d32;display:grid;gap:18px;min-width:0;width:100%;color:var(--emt-ink);font-family:inherit;line-height:1.65;text-align:right;box-sizing:border-box}.emt *{box-sizing:border-box}.emt [hidden]{display:none!important}.emt h1,.emt h2,.emt h3,.emt p{margin:0;color:inherit}.emt h1{font-size:clamp(22px,2.5vw,32px);font-weight:800;overflow-wrap:anywhere}.emt h2{font-size:17px;font-weight:750}.emt h3{font-size:16px}.emt small,.emt p{color:var(--emt-muted)}.emt .emt-icon{width:23px;height:23px;flex:none;vertical-align:middle;color:var(--emt-gold)}.emt a{text-decoration:none;color:var(--emt-ink)}.emt .emt-kicker{font-size:12px;color:#8b6b38;font-weight:700;letter-spacing:.01em}.emt .emt-hero,.emt .emt-panel,.emt .emt-stat{border:1px solid #fff;border-radius:23px;background:linear-gradient(145deg,#fffbf6,#f6ecdf);box-shadow:0 10px 24px #6f4f3010, inset 0 1px 0 #fff;padding:clamp(14px,2.2vw,25px);min-width:0}.emt .emt-hero{background:linear-gradient(125deg,#f8f1e5,#e9edd6);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.emt .emt-hero>div{min-width:0;flex:1 1 250px}.emt .emt-hero p{font-size:13px;margin-top:5px}.emt .emt-btn{border:1px solid var(--emt-line);border-radius:12px;background:#fff9f1;color:var(--emt-ink);padding:10px 16px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;text-align:center;box-shadow:0 4px 9px #6f4f300d;white-space:normal}.emt .emt-btn:hover{background:#f0e9d9}.emt .emt-primary{color:#fff;background:linear-gradient(125deg,#748b42,#3d592a);border-color:#58713a}.emt .emt-primary .emt-icon{color:#fff}.emt .emt-primary:hover{background:#405a2a;color:white}.emt .emt-btn:disabled{opacity:.6;cursor:wait}.emt :is(button,a,input,select,textarea):focus-visible{outline:2px solid #7b944d;outline-offset:3px}.emt .emt-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.emt .emt-stat{display:flex;align-items:center;gap:10px;padding:14px;border-radius:17px}.emt .emt-stat .emt-icon{width:29px;height:29px}.emt .emt-stat small{display:block;font-size:11px;line-height:1.45}.emt .emt-stat strong{display:block;font-size:26px;font-weight:800}.emt .emt-stat.is-active{background:#e8edd5;border-color:#a3b27e}.emt .emt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}.emt .emt-heading>a,.emt .emt-heading>span{font-size:12px;color:var(--emt-muted)}.emt .emt-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.emt .emt-search{grid-column:span 2}.emt .emt-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;font-weight:700;color:var(--emt-ink)}.emt .emt-field :is(input,select,textarea){font:inherit;font-weight:400;min-height:44px;width:100%;max-width:100%;min-width:0;background:#fffcf8;border:1px solid var(--emt-line);border-radius:11px;padding:10px 12px;color:#293b23;box-shadow:inset 0 2px 5px #6e4c2009}.emt .emt-field textarea{resize:vertical;min-height:110px;line-height:1.8}.emt .emt-ticket{display:grid;grid-template-columns:48px minmax(0,1fr) auto 22px;align-items:center;gap:12px;padding:14px 10px;border-top:1px solid var(--emt-line);min-width:0}.emt .emt-ticket:hover{background:#f0eadb;border-radius:12px}.emt .emt-tile,.emt .emt-message-avatar{display:grid;place-items:center;width:46px;height:46px;border:1px solid #fff;border-radius:15px;background:#f0e4d2;flex:none}.emt .emt-ticket-title,.emt .emt-ticket-meta{display:flex;flex-direction:column;gap:4px;min-width:0}.emt .emt-ticket-title strong{font-size:15px;overflow-wrap:anywhere}.emt .emt-ticket-title small,.emt .emt-ticket-meta small{font-size:11px;overflow-wrap:anywhere}.emt .emt-ticket-meta{align-items:flex-end}.emt .emt-status{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;background:#f3e5c9;color:#775b29;font-size:11px;border-radius:9px;max-width:100%;font-weight:700}.emt .emt-status .emt-icon{width:15px;height:15px;color:inherit}.emt .emt-status-pending_customer{background:#f6e0df;color:#8d4541}.emt .emt-status-closed{background:#e4ead6;color:#456031}.emt .emt-empty{text-align:center;padding:35px 8px;display:grid;justify-items:center;gap:10px}.emt .emt-empty>.emt-icon{width:66px;height:66px;padding:14px;background:#ede6d4;border-radius:22px}.emt .emt-pagination,.emt .emt-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.emt .emt-pagination{justify-content:center;margin-top:18px}.emt .emt-pagination a{padding:8px 15px;border:1px solid var(--emt-line);border-radius:10px;background:var(--emt-paper)}.emt .emt-form{display:grid;gap:16px;width:100%;max-width:none}.emt .emt-step{display:flex;align-items:center;gap:12px;margin-top:7px;padding-top:14px;border-top:1px solid var(--emt-line)}.emt .emt-step:first-of-type{border:0;padding-top:0}.emt .emt-step>span{display:grid;place-items:center;background:#e6ebd1;color:#405b2b;border:1px solid white;width:40px;height:40px;border-radius:13px;font-weight:800;flex:none}.emt .emt-step p{font-size:12px}.emt .emt-order-picker{display:grid;gap:8px;padding:14px;border:1px solid var(--emt-line);border-radius:15px;background:#f8f3e7}.emt .emt-order-picker .emt-btn{justify-self:start}.emt .emt-topics{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;min-width:0}.emt .emt-topic{position:relative;min-height:78px;display:grid;place-items:center;align-content:center;gap:5px;text-align:center;background:#fffbf5;border:1px solid var(--emt-line);border-radius:13px;padding:8px;cursor:pointer;font-weight:700;font-size:12px}.emt .emt-topic input{position:absolute;top:8px;left:8px;margin:0;accent-color:#536d32}.emt .emt-topic:has(input:checked){background:#e7ecd5;border-color:#82994f;color:#3d572a}.emt .emt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.emt .emt-files{display:grid;gap:7px;min-width:0}.emt .emt-drop{display:grid;gap:6px;justify-items:center;text-align:center;border:1px dashed #b6a482;background:#fffbf5;border-radius:14px;padding:16px;cursor:pointer}.emt .emt-drop .emt-icon{width:29px;height:29px}.emt .emt-drop small{font-size:11px}.emt .emt-drop input{max-width:100%;font:inherit;font-size:12px}.emt [data-emt-file-list]{display:flex;gap:8px;flex-wrap:wrap}.emt .emt-upload-item{display:flex;align-items:center;gap:7px;max-width:100%;border:1px solid var(--emt-line);border-radius:10px;background:#f7efe3;padding:7px;font-size:11px}.emt .emt-upload-item span{overflow-wrap:anywhere;min-width:0}.emt .emt-upload-item button{background:transparent;border:0;cursor:pointer;color:#963f3d;font-size:19px;min-width:30px;min-height:30px}.emt [data-emt-file-error]{color:#a2393c;font-size:12px}.emt .emt-faq details{border-top:1px solid var(--emt-line);padding:12px 0}.emt .emt-faq summary{cursor:pointer;font-weight:700;font-size:13px}.emt .emt-faq p{font-size:13px;margin-top:6px}.emt .emt-thread{display:flex;flex-direction:column;gap:16px;background:#f1e9db;border:1px solid #e7dac8;border-radius:17px;padding:clamp(10px,2vw,22px);min-height:180px;max-height:70vh;overflow:auto;overscroll-behavior:contain;margin-bottom:17px;scrollbar-width:thin}.emt .emt-message{display:flex;align-items:flex-start;gap:9px;max-width:85%;align-self:flex-start;min-width:0}.emt .emt-staff{align-self:flex-end;flex-direction:row-reverse}.emt .emt-bubble{padding:12px 15px;border-radius:16px 4px 16px 16px;border:1px solid #fff;background:#fffaf2;min-width:0;box-shadow:0 4px 12px #7a58310d}.emt .emt-staff .emt-bubble{background:#e7edd5;border-radius:4px 16px 16px 16px}.emt .emt-bubble header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:7px}.emt .emt-bubble strong{font-size:12px}.emt .emt-bubble time{font-size:10px;color:#766b59;direction:ltr}.emt .emt-bubble p{font-size:14px;color:#393c30;overflow-wrap:anywhere;white-space:normal}.emt .emm-ch-ticket-images{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.emt .emm-ch-ticket-images a{display:flex;flex-direction:column;align-items:center;width:115px;max-width:100%;height:auto;gap:4px;background:#fff9f1;border:1px solid var(--emt-line);border-radius:9px;padding:6px;overflow:hidden}.emt .emm-ch-ticket-images img{width:100%;height:85px;object-fit:contain;border-radius:5px}.emt .emt-file-name{font-size:10px;overflow-wrap:anywhere;text-align:center}.emt .emm-ch-ticket-images small{font-size:10px}.emt .emt-pdf{display:grid;place-items:center;width:50px;height:62px;border-radius:7px;background:#f3dedb;color:#903c39;font-size:13px;font-weight:bold}.emt .emt-older{align-self:center}.emt .emt-closed{background:#e5ebd5;border-radius:12px;padding:14px}.emt .emt-chat .emt-form>.emt-btn{justify-self:start;min-width:140px}
@media(max-width:1050px){.emt .emt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.emt .emt-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.emt .emt-topics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:580px){.emt{gap:12px}.emt .emt-hero,.emt .emt-panel{border-radius:17px;padding:14px}.emt .emt-hero>.emt-btn{width:100%}.emt .emt-stat{padding:10px;gap:8px}.emt .emt-stat .emt-icon{width:22px;height:22px}.emt .emt-stat strong{font-size:22px}.emt .emt-filters,.emt .emt-topics{grid-template-columns:repeat(2,minmax(0,1fr))}.emt .emt-ticket{grid-template-columns:36px minmax(0,1fr) 16px;gap:8px;padding:12px 2px}.emt .emt-tile{width:36px;height:36px}.emt .emt-ticket-meta{grid-column:2;align-items:flex-start;grid-row:2}.emt .emt-ticket>.emt-icon{grid-column:3;grid-row:1}.emt .emt-message{max-width:97%;gap:5px}.emt .emt-message-avatar{width:27px;height:27px;border-radius:9px}.emt .emt-message-avatar .emt-icon{width:16px;height:16px}.emt .emt-bubble{padding:10px}.emt .emt-bubble p{font-size:13px}.emt .emt-thread{max-height:62vh;padding:8px}.emt .emt-actions>.emt-btn{flex:1 1 auto}.emt .emt-chat .emt-form>.emt-btn{width:100%}.emt .emt-drop{padding:12px 6px}.emt .emt-field :is(input,select,textarea){font-size:16px}}
.emm-customer-hub .emt .emt-primary{color:#fff}.emm-customer-hub .emt .emm-ch-ticket-images img{width:100%;height:85px;object-fit:contain}.emt .emt-drop.is-dragging{background:#e4ebd1;border-color:#748b42}.emt .emt-upload-item img{width:35px;height:35px;object-fit:cover;border-radius:6px}
.emt .emt-chat.emt-expanded{position:fixed;inset:0;z-index:2147483000;border-radius:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;padding:clamp(12px,3vw,36px);background:#f8efe3}.emt .emt-chat.emt-expanded .emt-thread{flex:1 1 200px;max-height:none;min-height:130px}.emt .emt-chat.emt-expanded .emt-form{flex:none}.emt .emt-chat.emt-expanded .emt-form textarea{min-height:76px}.emt .emt-chat.emt-expanded .emt-drop{padding:8px}.emt .emt-chat.emt-expanded .emt-drop>.emt-icon{display:none}
/* RC.25: response feedback and compact mobile layout. */
.emt .emt-filter-details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;font-size:16px;font-weight:750;min-height:44px}.emt .emt-filter-details>summary::-webkit-details-marker{display:none}.emt .emt-filter-details>summary::after{content:'+';margin-inline-start:auto;font-size:24px;color:var(--emt-green)}.emt .emt-filter-details[open]>summary::after{content:'−'}.emt .emt-filter-reset{justify-content:flex-end;margin:5px 0 12px}.emt .emt-rating{border-top:1px solid #d4ddbd;margin-top:12px;padding-top:10px;display:grid;gap:5px}.emt .emt-rating>span{font-size:12px;font-weight:700}.emt .emt-feedback-form{margin:0!important;padding:0!important;display:block;min-width:0}.emt .emt-stars{display:flex;flex-wrap:nowrap;gap:3px;direction:rtl;max-width:100%}.emt .emt-stars button,.emt .emt-stars>span{display:grid;place-items:center;flex:0 1 44px;min-width:0;height:44px;border-radius:10px;padding:5px;box-shadow:none;border:1px solid #d4c4a6;background:#fffaf2;color:#98723b;cursor:pointer}.emt .emt-stars svg{width:23px;height:23px;max-width:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.emt .emt-stars button:hover,.emt .emt-stars button:focus-visible{background:#f7e6bc;color:#966725}.emt .emt-stars button:hover svg,.emt .emt-stars button:focus-visible svg,.emt .emt-stars .is-filled svg{fill:#c79a43;stroke:#8f642d}.emt .emt-stars-saved>span{background:transparent;border:0;cursor:default;height:30px;flex-basis:29px;padding:2px}.emt .emt-resolution{margin-top:12px;border-top:1px solid #d4ddbd;padding-top:12px;display:grid;gap:7px}.emt .emt-resolution>strong{font-size:14px}.emt .emt-resolution>small{font-size:12px}.emt .emt-resolution-actions{display:flex;flex-wrap:wrap;gap:8px}.emt .emt-resolution-actions .emt-btn{flex:1 1 120px;margin:0;font-size:13px}.emt .emt-resolution-result{display:flex;align-items:center;gap:7px;background:#f6f9eb;border:1px solid #c9d6ab;border-radius:10px;padding:8px;margin-top:10px!important;font-size:12px!important}.emt .emt-resolution-result.is-unresolved{background:#fff4e0;border-color:#ead5ad}.emt .emt-staff-close{margin:0 0 14px;display:flex;justify-content:flex-end}.emt .emt-staff-close .emt-btn{color:#854a38;border-color:#d6bca9}
@media(max-width:580px){.emt{gap:10px;line-height:1.7}.emt .emt-hero,.emt .emt-panel{padding:12px;border-radius:14px}.emt .emt-hero h1{font-size:21px}.emt .emt-kicker{font-size:11px}.emt .emt-stat{padding:9px;gap:7px;min-height:65px;box-shadow:none}.emt .emt-stat small{font-size:12px}.emt .emt-stat strong{font-size:20px;line-height:1.3}.emt .emt-filters{grid-template-columns:minmax(0,1fr);gap:10px}.emt .emt-search{grid-column:auto}.emt .emt-filter-panel{padding-block:7px}.emt .emt-ticket{padding:12px 0}.emt .emt-ticket-title strong{font-size:14px}.emt .emt-ticket-meta{gap:4px}.emt .emt-actions{gap:6px}.emt .emt-actions>.emt-btn{padding:8px;font-size:12px}.emt .emt-chat .emt-heading{gap:7px;margin-bottom:10px}.emt .emt-chat .emt-heading>small{display:none}.emt .emt-chat .emt-heading h2{font-size:15px}.emt .emt-chat .emt-heading>.emt-btn{padding:6px 9px;font-size:12px}.emt .emt-thread{padding:8px;gap:14px;margin-bottom:12px;max-height:68vh}.emt .emt-message{max-width:94%}.emt .emt-staff{width:100%;max-width:100%}.emt .emt-staff .emt-message-avatar{display:none}.emt .emt-staff .emt-bubble{width:100%}.emt .emt-bubble{padding:12px}.emt .emt-bubble p{font-size:14px;line-height:1.85}.emt .emt-bubble header{gap:5px}.emt .emt-stars button{height:44px;flex:1 1 44px;max-width:48px}.emt .emt-resolution-actions .emt-btn{flex:1 1 100%;width:100%}.emt .emt-chat .emt-form{gap:9px}.emt .emt-chat .emt-form textarea{min-height:85px}.emt .emt-chat .emt-drop{padding:8px;gap:4px}.emt .emt-chat .emt-drop>.emt-icon{display:none}.emt .emt-chat .emt-drop small{font-size:11px}.emt .emt-chat.emt-expanded{padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));height:100dvh;max-height:100dvh}.emt .emt-chat.emt-expanded .emt-thread{flex:1 1 auto;min-height:150px}.emt .emt-chat.emt-expanded .emt-form{flex:none}.emt .emt-chat.emt-expanded .emt-form textarea{min-height:70px}.emt .emt-chat.emt-expanded .emt-drop{padding:6px}}
.emt .emt-drop{position:relative;cursor:pointer}.emt .emt-drop input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;inset-inline-start:8px;top:8px}.emt .emt-drop:focus-within{outline:2px solid #7b944d;outline-offset:2px}.emt .emt-drop::after{content:'انتخاب فایل';display:inline-block;border:1px solid #d4c4a6;border-radius:9px;padding:5px 14px;font-size:12px;color:#40572c;background:#fffaf3;min-height:30px}.emt .emt-chat .emt-drop::after{padding:3px 12px;min-height:28px}@media(max-width:580px){.emt .emt-chat .emt-form textarea{height:90px;min-height:76px}.emt .emt-chat.emt-expanded .emt-form textarea{height:76px;min-height:65px}}
/* RC.26: full-width messages and cumulative, asynchronous star feedback. */
.emt .emt-thread .emt-message{display:block;width:100%;max-width:100%;align-self:stretch;min-width:0}
.emt .emt-thread .emt-message .emt-bubble{width:100%;max-width:100%;box-sizing:border-box;border-radius:15px}
.emt .emt-thread .emt-message-author{display:flex;align-items:center;gap:8px;min-width:0}
.emt .emt-thread .emt-message .emt-message-avatar{display:grid;flex:none;width:32px;height:32px;border-radius:10px}
.emt .emt-thread .emt-message-avatar .emt-icon{width:19px;height:19px}
.emt .emt-stars button:hover svg,.emt .emt-stars button:focus-visible svg{fill:none;stroke:currentColor}
.emt .emt-stars button.is-filled,.emt .emt-stars button.is-filled:hover,.emt .emt-stars button.is-filled:focus-visible{background:#f7e6bc;border-color:#c9a15b;color:#966725}
.emt .emt-stars button.is-filled svg,.emt .emt-stars .is-filled svg{fill:#c79a43;stroke:#8f642d}
.emt .emt-stars button:disabled{cursor:wait;opacity:1}
.emt .emt-rating-count{font-size:13px;font-weight:750;color:#536d32;min-height:1.6em}
.emt .emt-rating-status{font-size:12px;color:#665638;overflow-wrap:anywhere}
.emt .emt-rating-status:empty{display:none}
@media(max-width:580px){.emt .emt-rating-count,.emt .emt-rating-status{text-align:center}.emt .emt-stars{justify-content:center}.emt .emt-thread .emt-message .emt-message-avatar{width:28px;height:28px}.emt .emt-thread .emt-message .emt-bubble{padding:12px}.emt .emt-stars button{min-height:44px}}
