@font-face{font-family:IRANSans;src:url('/static/fonts/IRANSans-Edit.ttf') format('truetype');font-display:swap}
.support-app{--sp-bg:var(--hub-bg,#f8fafc);--sp-surface:var(--hub-surface,#fff);--sp-soft:var(--hub-surface-2,#f1f5f9);--sp-line:var(--hub-line-2,#e2e8f0);--sp-text:var(--hub-text,#1e293b);--sp-muted:var(--hub-muted,#64748b);--sp-primary:#0d66d0;--sp-focus:#60a5fa;color:var(--sp-text);font:14px/1.8 IRANSans,Tahoma,sans-serif}
.support-admin{--sp-primary:#047857;--sp-focus:#059669}
.support-app *{box-sizing:border-box}.support-app [hidden]{display:none!important}.support-app h1,.support-app h2,.support-app p{margin:0}.support-app button,.support-app input,.support-app textarea,.support-app select,.sp-button{font:inherit}
.sp-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:24px}.sp-heading h1{font-size:26px;font-weight:800;letter-spacing:-.5px}.sp-eyebrow{font-size:12px;color:var(--sp-primary);font-weight:700;margin-bottom:4px!important}html[data-theme=dark] .sp-eyebrow{color:#79b4ff}.sp-muted{color:var(--sp-muted);font-size:12px}.sp-heading .sp-muted{font-size:13px;margin-top:6px}
.sp-button,.sp-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid transparent;border-radius:9px;padding:8px 14px;cursor:pointer;text-decoration:none;white-space:nowrap;font-weight:600;line-height:1.5}
.sp-primary{background:var(--sp-primary,#0d66d0);color:#fff}.sp-primary:hover{filter:brightness(1.12)}.sp-quiet{background:var(--sp-soft,var(--hub-surface));border-color:var(--sp-line,var(--hub-line-2));color:var(--sp-text,var(--hub-text))}.sp-quiet:hover{border-color:var(--sp-primary)}.sp-icon-button{background:transparent;border-color:var(--sp-line);color:var(--sp-muted);padding:8px;min-width:42px}.sp-icon-button svg{width:19px;height:19px}.sp-button:disabled,.sp-icon-button:disabled{opacity:.5;cursor:default}
.support-app :focus-visible{outline:3px solid var(--sp-focus,#60a5fa);outline-offset:3px}.sp-alert{border:1px solid #e6a74a;border-radius:10px;padding:12px 16px;background:#fff4de;color:#78350f;margin-bottom:16px;overflow-wrap:anywhere}.sp-alert[data-success=true]{border-color:#6ee7b7;background:#ecfdf5;color:#065f46}
.sp-workspace{display:grid;grid-template-columns:minmax(285px,340px) minmax(0,1fr);align-items:start;gap:20px}.sp-panel{background:var(--sp-surface);border:1px solid var(--sp-line);border-radius:16px;overflow:hidden;min-width:0}.sp-inbox{padding:16px}.sp-search{display:flex;align-items:center;gap:8px}.support-app input:not([type=file]),.support-app textarea,.support-app select{background:var(--sp-soft);color:var(--sp-text);border:1px solid var(--sp-line);border-radius:9px;min-width:0;padding:10px 12px;line-height:1.7}.support-app input::placeholder,.support-app textarea::placeholder{color:var(--sp-muted)}.sp-search input{width:100%;height:44px}.sp-filters{display:flex;align-items:center;gap:10px;margin:12px 0}.sp-filters label{font-size:12px;color:var(--sp-muted)}.sp-filters select{flex:1;width:0;padding-inline:8px}.sp-list-summary{padding:0 2px 12px}.sp-ticket-list{display:flex;flex-direction:column;gap:8px;max-height:65vh;overflow-y:auto}
.sp-ticket{font:inherit;text-align:right;display:flex;flex-direction:column;gap:8px;border:1px solid transparent;border-radius:11px;background:var(--sp-soft);color:var(--sp-text);padding:14px;cursor:pointer;position:relative;width:100%}.sp-ticket:hover{border-color:var(--sp-line)}.sp-ticket.is-selected{border-color:var(--sp-primary);box-shadow:inset -3px 0 var(--sp-primary)}.sp-ticket-title{font-size:13px;font-weight:700;overflow-wrap:anywhere;line-height:1.9}.sp-ticket-meta{display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:11px;color:var(--sp-muted)}.sp-unread{width:7px;height:7px;border-radius:50%;background:#60a5fa;display:inline-block;margin-inline-end:6px}.sp-ticket-owner{color:var(--sp-muted);font-size:11px;overflow-wrap:anywhere}.sp-badge{font-size:11px;line-height:1.5;padding:5px 9px;border-radius:7px;white-space:nowrap;display:inline-block;background:#e0f2fe;color:#075985}.sp-badge.waiting{background:#fff1d6;color:#92400e}.sp-badge.answered{background:#dcfce7;color:#166534}.sp-badge.closed{background:#e2e8f0;color:#475569}.sp-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px;border-top:1px solid var(--sp-line);padding-top:14px}.sp-pagination .sp-button{padding:7px 10px;min-height:38px}
.sp-empty{padding:34px 14px;text-align:center;color:var(--sp-muted);font-size:13px;line-height:2.1}.sp-welcome{min-height:520px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:40px;text-align:center;gap:12px}.sp-welcome-icon{height:76px;width:76px;border:1px solid var(--sp-line);border-radius:22px;display:grid;place-items:center;background:var(--sp-soft);color:var(--sp-primary);margin-bottom:8px}.sp-welcome-icon svg{width:36px;height:36px}.sp-welcome h2{font-size:20px}.sp-welcome .sp-muted{max-width:330px;font-size:13px}
.sp-thread-head{padding:20px 24px;border-bottom:1px solid var(--sp-line);display:flex;align-items:start;gap:16px}.sp-thread-title{flex:1;min-width:0}.sp-thread-title h2{font-size:17px;overflow-wrap:anywhere}.sp-thread-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.sp-thread-actions .sp-button{font-size:11px;min-height:32px;padding:6px 9px}.sp-back{display:none}.sp-history{display:flex;justify-content:center;padding:12px 0 0}.sp-history:has(button[hidden]){display:none}.sp-messages{padding:24px;display:flex;gap:20px;flex-direction:column;max-height:62vh;min-height:200px;overflow-y:auto}.sp-message{max-width:90%;align-self:flex-start;border:1px solid var(--sp-line);border-radius:14px 3px 14px 14px;padding:14px 16px;background:var(--sp-soft);min-width:170px}.sp-message.is-staff{align-self:flex-end;border-radius:3px 14px 14px 14px;border-color:var(--sp-primary);background:var(--sp-surface)}.sp-message-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:8px;font-size:11px}.sp-message-head strong{font-weight:700}.sp-message time{font-size:10px;color:var(--sp-muted)}.sp-message-body{white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext;font-size:13px;line-height:2}.sp-attachments{display:flex;flex-direction:column;gap:6px;padding-top:12px}.sp-attachment{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--sp-line);border-radius:8px;color:var(--sp-text);font-size:12px;text-decoration:none;background:var(--sp-surface)}.sp-attachment span{overflow-wrap:anywhere;min-width:0}.sp-attachment small{color:var(--sp-muted);white-space:nowrap;margin-inline-start:auto}.sp-attachment:hover{border-color:var(--sp-primary)}
.sp-composer{padding:20px 24px;border-top:1px solid var(--sp-line);display:flex;flex-direction:column;gap:10px}.sp-composer>label{font-size:12px;font-weight:700}.support-app textarea{resize:vertical;width:100%;min-height:100px;max-height:400px}.sp-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sp-file-label{font-size:12px;min-height:36px}.sp-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.sp-upload:focus-within .sp-file-label{outline:2px solid var(--sp-focus);outline-offset:3px}.sp-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:18px}.sp-compose-footer small{font-size:10px;max-width:370px}.sp-files{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}.sp-files li{display:flex;align-items:center;gap:10px;border:1px solid var(--sp-line);border-radius:8px;padding:4px 9px;font-size:11px;max-width:100%;background:var(--sp-soft)}.sp-files li>span{overflow-wrap:anywhere;min-width:0}.sp-files button{border:0;background:transparent;color:var(--sp-text);cursor:pointer;padding:5px;min-width:30px;min-height:32px;font-size:18px}.sp-closed-note{border-top:1px solid var(--sp-line);color:var(--sp-muted);padding:20px 24px;font-size:12px}
.sp-dialog{--sp-surface:var(--hub-surface,#fff);--sp-soft:var(--hub-surface-2,#f1f5f9);--sp-line:var(--hub-line-2,#e2e8f0);--sp-text:var(--hub-text,#1e293b);--sp-muted:var(--hub-muted,#64748b);background:var(--sp-surface);color:var(--sp-text);border:1px solid var(--sp-line);border-radius:18px;width:min(640px,calc(100% - 28px));max-height:calc(100dvh - 36px);padding:0;box-shadow:0 24px 100px #0005;overflow:auto;margin:auto;font:inherit}.sp-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.sp-dialog-head{padding:20px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--sp-line)}.sp-dialog h2{font-size:20px}.sp-dialog-body{display:flex;flex-direction:column;gap:12px;padding:20px 24px}.sp-dialog-body>label{font-weight:700;font-size:12px;margin-top:4px}.sp-dialog-footer{padding:16px 24px;border-top:1px solid var(--sp-line);display:flex;justify-content:space-between;gap:12px;background:var(--sp-surface);position:sticky;bottom:0}.sp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
@media(min-width:1500px){.sp-workspace{grid-template-columns:370px minmax(0,1fr)}}
@media(max-width:1050px){.support-admin .sp-workspace{grid-template-columns:minmax(230px,290px) minmax(0,1fr)}.sp-thread-head{flex-wrap:wrap}.sp-thread-actions{justify-content:flex-start}.sp-compose-footer{align-items:flex-start;flex-direction:column}.sp-compose-footer .sp-primary{align-self:flex-end}}
@media(max-width:760px){.sp-heading{align-items:flex-start;gap:12px;margin-bottom:18px}.sp-heading h1{font-size:20px}.sp-heading .sp-muted{font-size:11px}.sp-heading>.sp-primary{padding:9px 11px;font-size:12px;margin-top:18px}.sp-workspace,.support-admin .sp-workspace{display:block}.sp-workspace .sp-conversation{display:none}.sp-workspace[data-mobile=thread] .sp-conversation{display:block}.sp-workspace[data-mobile=thread] .sp-inbox{display:none}.sp-ticket-list{max-height:none}.sp-ticket{padding:16px}.sp-back{display:inline-flex;font-size:11px;margin-bottom:6px}.sp-thread-head{padding:16px;flex-direction:column;gap:8px}.sp-thread-actions{width:100%;justify-content:space-between}.sp-messages{padding:18px 14px;max-height:55dvh}.sp-message{max-width:96%;padding:12px}.sp-message-head{gap:14px}.sp-composer{padding:16px}.support-app input:not([type=file]),.support-app textarea,.support-app select{font-size:16px}.sp-composer textarea{min-height:115px}.sp-composer .sp-button{min-height:42px}.sp-compose-footer{gap:12px}.sp-compose-footer .sp-primary{width:100%}.sp-dialog-head,.sp-dialog-body,.sp-dialog-footer{padding:16px}.sp-dialog-footer .sp-button{font-size:12px;white-space:normal}.sp-dialog{max-height:calc(100dvh - 20px)}.sp-thread-title{width:100%}.sp-alert{font-size:12px}.sp-attachment{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.support-app *{scroll-behavior:auto!important}}

/* User support is a hub page: keep the app header, right nav and mobile dock.
   Like processed sheets, the working area is on the right and filters on left. */
#pageSupport.is-active{display:flex;flex:1;min-height:0;overflow:hidden;flex-direction:column}
.support-embedded{display:flex;flex-direction:column;flex:1;min-height:0}
.support-embedded .sp-heading{flex:0 0 auto;margin-bottom:18px;gap:14px}
.support-embedded .sp-heading h1{font-size:20px;font-weight:700;letter-spacing:0}
.support-embedded .sp-eyebrow{display:none}
.support-embedded .sp-heading .sp-muted{margin-top:4px;font-size:12px}
.support-embedded .sp-workspace{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 272px;gap:18px;align-items:stretch}
.support-embedded .sp-inbox{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:0;padding:14px}
.support-embedded .sp-ticket-list{flex:1;min-height:0;max-height:none;overflow:auto}
.support-embedded .sp-pagination{flex:0 0 auto}
.support-embedded .sp-conversation{grid-column:1;grid-row:1;min-height:0;display:flex;flex-direction:column}
.support-embedded .sp-panel{border-color:var(--hub-line);border-radius:12px}
.support-embedded .sp-welcome{flex:1;min-height:0;padding:28px}
.support-embedded #spThread{flex:1;min-height:0;display:flex;flex-direction:column}
.support-embedded .sp-thread-head,.support-embedded .sp-composer,.support-embedded .sp-closed-note,.support-embedded .sp-history{flex:0 0 auto}
.support-embedded .sp-messages{flex:1;min-height:100px;max-height:none;padding:18px 20px}
.support-embedded .sp-composer{padding:14px 20px;gap:8px}
.support-embedded .sp-composer textarea{min-height:76px;height:86px}
.support-embedded .sp-thread-head{padding:14px 20px}
.support-embedded .sp-heading .sp-primary{min-height:36px;padding:7px 12px;font-size:12px}
.support-embedded .sp-search{gap:6px}.support-embedded .sp-search input{font-size:12px;padding:9px}
.support-embedded .sp-filters{gap:7px}.support-embedded .sp-filters select{font-size:11px}
.support-embedded .sp-ticket{padding:11px}.support-embedded .sp-ticket-meta{flex-wrap:wrap;font-size:10px}
.support-embedded .sp-ticket-title{font-size:12px}
@media(max-width:1100px) and (min-width:761px){.support-embedded .sp-workspace{grid-template-columns:minmax(0,1fr) 242px;gap:12px}.support-embedded .sp-thread-actions{gap:5px}.support-embedded .sp-compose-footer{flex-direction:row;align-items:center}}
.support-app .sp-composer{display:flex;flex-direction:column;gap:7px;padding:10px 14px}
.support-app .sp-inputbar{display:flex;align-items:flex-end;gap:8px;padding:6px;border:1px solid var(--sp-line);border-radius:12px;background:var(--sp-soft);min-width:0}
.support-app .sp-inputbar:focus-within{border-color:var(--sp-focus)}
.support-app .sp-inputbar textarea{flex:1;min-width:0;width:0;min-height:44px;height:56px;max-height:150px;border:0;background:transparent;resize:none;padding:8px 4px;line-height:1.7}
.support-app .sp-inputbar textarea:focus-visible{outline:none}
.support-app .sp-inputbar .sp-file-label{flex:0 0 36px;width:36px;height:36px;min-height:36px;min-width:36px;padding:7px;border:0;color:var(--sp-muted);margin-bottom:2px;cursor:pointer}
.support-app .sp-inputbar .sp-file-label:hover{background:var(--sp-surface);color:var(--sp-text)}
.support-app .sp-inputbar:has(.sp-file-input:focus-visible) .sp-file-label{outline:2px solid var(--sp-focus);outline-offset:1px}
.support-app .sp-inputbar .sp-send{flex:0 0 auto;min-height:36px;height:36px;padding:7px 11px;margin-bottom:2px}
.support-app .sp-composer .sp-files{max-height:76px;overflow:auto;gap:5px}
.support-app .sp-composer .sp-files:empty{display:none}
.support-app .sp-composer .sp-files li{background:var(--sp-soft);border:0;border-radius:7px}
@media(max-width:760px){
  #pageSupport.is-active{display:block;flex:0 0 auto;min-height:100%;overflow:visible}
  .support-embedded{display:block;height:auto}.support-embedded .sp-heading{margin:0 0 12px}.support-embedded .sp-heading h1{font-size:16px}
  .support-app .sp-button{min-height:34px;padding:6px 10px;font-size:11px;border-radius:8px}
  .support-app .sp-icon-button{min-height:36px;min-width:36px;padding:7px}
  .support-embedded .sp-heading .sp-primary{margin:0;min-height:32px;padding:5px 9px;font-size:11px}
  .support-embedded .sp-workspace{display:block}.support-embedded .sp-inbox{display:flex;min-height:280px;padding:12px}.support-embedded .sp-ticket-list{max-height:none;overflow:visible}.support-embedded .sp-conversation{display:none}
  .support-embedded .sp-workspace[data-mobile=thread] .sp-inbox{display:none}.support-embedded .sp-workspace[data-mobile=thread] .sp-conversation{display:flex}
  .support-app .sp-workspace[data-mobile=thread] .sp-conversation{height:100%;min-height:0;overflow:hidden}
  .support-app #spThread{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
  .support-app .sp-thread-head{display:grid;grid-template-columns:32px minmax(0,1fr);gap:5px 9px;padding:10px 12px;flex:0 0 auto;align-items:center}
  .support-app .sp-back{width:32px;height:32px;min-height:32px;padding:5px;margin:0;grid-column:1;grid-row:1}
  .support-app .sp-thread-title{grid-column:2;grid-row:1;min-width:0}
  .support-app .sp-thread-title h2{font-size:13px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .support-app #spTicketNumber{font-size:9px;line-height:1.6}
  .support-app .sp-thread-actions{grid-column:2;grid-row:2;display:flex;justify-content:space-between;gap:6px;flex-wrap:nowrap}
  .support-app .sp-thread-actions .sp-button{min-height:28px;padding:4px 7px;font-size:10px}
  .support-app .sp-badge{font-size:9px;padding:4px 6px}
  .support-app .sp-history{flex:0 0 auto;padding:4px 0}
  .support-app .sp-history .sp-button{min-height:28px;padding:4px 9px;font-size:10px}
  .support-app .sp-messages{flex:1 1 0;min-height:0;max-height:none;padding:14px 10px;gap:12px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .support-app .sp-message{flex:0 0 auto;max-width:94%;min-width:130px;padding:9px 11px;border-radius:12px 3px 12px 12px}
  .support-app .sp-message.is-staff{border-radius:3px 12px 12px 12px}
  .support-app .sp-message-head{font-size:10px;gap:10px;margin-bottom:5px}
  .support-app .sp-message time{font-size:9px}
  .support-app .sp-message-body{font-size:12px;line-height:1.9}
  .support-app .sp-attachment{font-size:10px;gap:6px;padding:7px 8px}
  .support-app .sp-composer{display:flex;gap:6px;padding:8px;flex:0 0 auto;background:var(--sp-surface)}
  .support-app .sp-inputbar{gap:5px;padding:4px;border-radius:12px}
  .support-app .sp-inputbar textarea{min-height:44px;height:44px;max-height:96px;padding:8px 4px;font-size:16px;line-height:1.6}
  .support-app .sp-inputbar .sp-file-label{flex-basis:32px;width:32px;height:34px;min-width:32px;min-height:34px;padding:7px;margin:0 0 4px}
  .support-app .sp-inputbar .sp-send{width:34px;height:34px;min-height:34px;padding:7px;margin:0 0 4px;border-radius:10px}
  .support-app .sp-send-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .support-app .sp-composer .sp-files{max-height:70px;gap:4px}
  .support-app .sp-files li{font-size:10px;padding:2px 6px;gap:5px}
  .support-app .sp-closed-note{flex:0 0 auto;font-size:11px;padding:12px}
  .support-embedded .sp-welcome{display:none}
  .support-embedded .sp-search input,.support-embedded .sp-filters select{font-size:16px}
  body.hub-app.sp-mobile-thread .hub-main{overflow:hidden;padding-bottom:0}
  body.hub-app.sp-mobile-thread #pageSupport.is-active{position:fixed;top:var(--sp-mobile-top,58px);left:8px;right:8px;height:var(--sp-mobile-height,calc(100dvh - 140px));min-height:0;display:flex;overflow:hidden}
  .support-embedded.is-thread{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
  .support-embedded.is-thread .sp-heading{flex:0 0 auto;margin-bottom:7px;gap:8px}
  .support-embedded.is-thread .sp-heading h1{font-size:13px}
  .support-embedded.is-thread .sp-workspace{flex:1;min-height:0;overflow:hidden}
  .support-embedded.is-thread .sp-alert{flex:0 0 auto;font-size:10px;line-height:1.6;padding:7px 9px;margin-bottom:7px;max-height:54px;overflow:auto}
  .support-admin.is-thread .sp-workspace{position:fixed;top:var(--sp-mobile-top);left:10px;right:10px;height:var(--sp-mobile-height);overflow:hidden}
  body.hub-app.sp-mobile-thread.sp-keyboard-open .hub-dock{display:none}
}

.support-app .sp-button svg,.support-app .sp-files button svg,.support-app .sp-attachment svg{width:18px;height:18px;flex:0 0 18px}.support-app .sp-files button{display:inline-flex;align-items:center;justify-content:center}
