/* ArzCredit Support — customer portal (V5.8): three layouts on one engine.
 *   .acp-c1  گفتگوی مینیمال   one calm column, the conversation first
 *   .acp-c2  پشتیبانی مدرن    overview + refined cards, details beside the conversation on wide screens
 *   .acp-c3  پیام‌رسان فشرده  split list + conversation, messenger rhythm, full-height on phones
 * Spacing scale 4 · 8 · 12 · 16 · 20 · 24 · 32. Secondary information sits behind «جزئیات», «⋯» and «Aa». */
#acsd.acp{
  --ac:#0b74de;--ac-ink:#0757a8;--ac-soft:color-mix(in srgb,var(--ac) 9%,#fff);--ac-line:color-mix(in srgb,var(--ac) 24%,#fff);
  --tx:#0f172a;--tx2:#475569;--tx3:#64748b;--line:#e2e8f0;--line2:#edf1f6;--bg:#fff;--bg2:#f7f9fc;--bg3:#f1f5f9;
  --ok:#0f8a5f;--ok-bg:#e8f7f0;--warn:#b45309;--warn-bg:#fff5e6;--info:#0b66c3;--info-bg:#eaf3fd;--bad:#c62828;--bad-bg:#fdecec;--mute:#64748b;--mute-bg:#f1f5f9;
  --r:14px;--r-sm:10px;--r-lg:20px;--sh:0 1px 2px rgba(15,23,42,.04),0 4px 16px rgba(15,23,42,.05);--sh-pop:0 12px 32px rgba(15,23,42,.14),0 2px 6px rgba(15,23,42,.06);
  --fs:15px;--lh:1.9;
  font-family:inherit;font-size:var(--fs);line-height:var(--lh);color:var(--tx);direction:rtl;text-align:right;position:relative;margin:0 auto;box-sizing:border-box;-webkit-font-smoothing:antialiased}
#acsd.acp *,#acsd.acp *::before,#acsd.acp *::after{box-sizing:border-box}
#acsd.acp.acp-large{--fs:16px}
#acsd.acp :where(h1,h2,h3,h4,p,ul,ol,figure){margin:0;padding:0}
#acsd.acp :where(ul,ol){list-style:none}
#acsd.acp :where(button){font:inherit;color:inherit;cursor:pointer}
#acsd.acp :where(a){color:var(--ac);text-decoration:none}
#acsd.acp :where(a):hover{text-decoration:underline}
#acsd.acp svg{flex:none;display:block}
#acsd.acp [hidden]{display:none!important}
#acsd.acp :focus-visible{outline:2px solid var(--ac);outline-offset:2px;border-radius:8px}

/* ---------------------------------------------------------------- controls */
#acsd .acp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 18px;border-radius:12px;border:1px solid transparent;background:var(--ac);color:#fff;font-weight:600;font-size:14.5px;line-height:1.4;white-space:nowrap;transition:background .15s,border-color .15s,box-shadow .15s,transform .05s;text-decoration:none!important}
#acsd .acp-btn:hover{background:var(--ac-ink)}
#acsd .acp-btn:active{transform:translateY(1px)}
#acsd .acp-btn[disabled]{opacity:.55;cursor:not-allowed}
#acsd .acp-btn.is-ghost{background:var(--bg);color:var(--tx);border-color:var(--line)}
#acsd .acp-btn.is-ghost:hover{background:var(--bg2);border-color:#cbd5e1}
#acsd .acp-btn.is-quiet{background:transparent;color:var(--tx2);border-color:transparent;padding-inline:10px}
#acsd .acp-btn.is-quiet:hover{background:var(--bg3);color:var(--tx)}
#acsd .acp-btn.is-sm{min-height:34px;padding:5px 12px;font-size:13.5px;border-radius:10px}
#acsd .acp-btn.is-busy{position:relative;color:transparent!important}
#acsd .acp-btn.is-busy::after{content:"";position:absolute;width:16px;height:16px;border:2px solid #fff;border-top-color:transparent;border-radius:50%;animation:acp-spin .7s linear infinite}
#acsd .acp-btn.is-ghost.is-busy::after{border-color:var(--ac);border-top-color:transparent}
#acsd .acp-icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--tx2);transition:background .15s,color .15s}
#acsd .acp-icon:hover{background:var(--bg3);color:var(--tx)}
#acsd .acp-icon[aria-pressed=true],#acsd .acp-icon[aria-expanded=true]{background:var(--ac-soft);color:var(--ac)}
@keyframes acp-spin{to{transform:rotate(360deg)}}

#acsd .acp-field{display:flex;flex-direction:column;gap:6px;margin:0 0 18px}
#acsd .acp-field>label,#acsd .acp-field>.acp-lbl{font-weight:600;font-size:14px;color:var(--tx)}
#acsd .acp-field small{color:var(--tx3);font-size:12.5px;line-height:1.7}
#acsd .acp-input,#acsd .acp-select{width:100%;min-height:46px;padding:10px 14px;border:1px solid #d5dde8;border-radius:12px;background:#fff;color:var(--tx);font:inherit;font-size:15px;line-height:1.5;transition:border-color .15s,box-shadow .15s;box-shadow:0 1px 0 rgba(15,23,42,.02)}
#acsd .acp-input::placeholder{color:#94a3b8}
#acsd .acp-input:hover,#acsd .acp-select:hover{border-color:#b9c5d6}
#acsd .acp-input:focus,#acsd .acp-select:focus{outline:0;border-color:var(--ac);box-shadow:0 0 0 4px color-mix(in srgb,var(--ac) 14%,transparent)}
#acsd .acp-select{appearance:none;-webkit-appearance:none;padding-inline-end:42px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 14px center;background-size:18px}
#acsd .acp-select:disabled,#acsd .acp-input:disabled{background-color:var(--bg3);color:var(--tx3);cursor:not-allowed}
#acsd .acp-hint{margin-top:6px;padding:10px 12px;border-radius:10px;background:var(--bg2);color:var(--tx2);font-size:13.5px;line-height:1.8}

/* status: a dot + text by default (calm), or a soft pill */
#acsd .acp-st{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--tx2);white-space:nowrap;line-height:1.5}
#acsd .acp-st::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--mute)}
#acsd .acp-st.is-warn::before{background:#f59e0b}
#acsd .acp-st.is-info::before{background:#3b82f6}
#acsd .acp-st.is-ok::before{background:#10b981}
#acsd.acp-s-pill .acp-st{padding:3px 10px;border-radius:999px;background:var(--mute-bg)}
#acsd.acp-s-pill .acp-st.is-warn{background:var(--warn-bg);color:var(--warn)}
#acsd.acp-s-pill .acp-st.is-info{background:var(--info-bg);color:var(--info)}
#acsd.acp-s-pill .acp-st.is-ok{background:var(--ok-bg);color:var(--ok)}
#acsd.acp-s-text .acp-st::before{display:none}
#acsd .acp-no{font-variant-numeric:tabular-nums;color:var(--tx3);font-size:13px;letter-spacing:.2px;unicode-bidi:isolate}

/* ---------------------------------------------------------------- header */
#acsd .acp-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
#acsd .acp-head-t{display:flex;align-items:center;gap:14px;min-width:0}
#acsd .acp-head-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--ac-soft);color:var(--ac);flex:none}
#acsd .acp-head h2{font-size:20px;font-weight:800;line-height:1.5;color:var(--tx)}
#acsd .acp-head p{color:var(--tx3);font-size:13.5px;line-height:1.7}
#acsd .acp-head p b{color:var(--ac);font-weight:700}
#acsd .acp-head-a{display:flex;align-items:center;gap:8px;flex:none}

/* menus (⋯) and the details popover */
#acsd .acp-pop{position:absolute;z-index:40;min-width:240px;max-width:min(340px,calc(100vw - 32px));padding:8px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-pop);animation:acp-in .14s ease-out}
#acsd .acp-pop .acp-mi{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;background:none;border-radius:10px;text-align:right;font-size:14.5px;line-height:1.6;color:var(--tx)}
#acsd .acp-pop .acp-mi:hover{background:var(--bg2)}
#acsd .acp-pop .acp-mi svg{color:var(--tx3)}
#acsd .acp-pop .acp-mi small{display:block;color:var(--tx3);font-size:12.5px}
@keyframes acp-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* dialogs */
#acsd .acp-dlg{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px;background:rgba(15,23,42,.42);animation:acp-fade .15s}
#acsd .acp-dlg-box{width:min(460px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border-radius:18px;box-shadow:var(--sh-pop);padding:24px}
#acsd .acp-dlg-box h3{font-size:17px;font-weight:800;margin:0 0 8px}
#acsd .acp-dlg-box p{color:var(--tx2);font-size:14.5px;line-height:1.9;margin:0 0 16px}
#acsd .acp-dlg-a{display:flex;gap:8px;justify-content:flex-start;margin-top:20px;flex-wrap:wrap}
#acsd .acp-steps{counter-reset:s;margin:0 0 12px}
#acsd .acp-steps li{counter-increment:s;position:relative;padding:4px 36px 10px 0;font-size:14.5px;line-height:1.85}
#acsd .acp-steps li::before{content:counter(s);position:absolute;right:0;top:4px;width:24px;height:24px;border-radius:50%;background:var(--ac-soft);color:var(--ac);font-size:13px;font-weight:700;display:grid;place-items:center}
@keyframes acp-fade{from{opacity:0}to{opacity:1}}

/* ---------------------------------------------------------------- list */
#acsd .acp-tools{display:flex;align-items:center;gap:10px;margin:0 0 14px;flex-wrap:wrap}
#acsd .acp-seg{display:inline-flex;padding:4px;gap:2px;border-radius:12px;background:var(--bg3)}
#acsd .acp-seg button{border:0;background:none;padding:6px 14px;border-radius:9px;font-size:14px;font-weight:600;color:var(--tx2);line-height:1.6}
#acsd .acp-seg button[aria-selected=true]{background:#fff;color:var(--tx);box-shadow:0 1px 3px rgba(15,23,42,.1)}
#acsd .acp-seg b{font-weight:700;color:var(--tx3);margin-inline-start:4px;font-size:12.5px}
#acsd .acp-search{position:relative;flex:1;min-width:180px}
#acsd .acp-search svg{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none}
#acsd .acp-search .acp-input{padding-inline-start:42px;min-height:42px;background:var(--bg2);border-color:transparent}
#acsd .acp-search .acp-input:focus{background:#fff;border-color:var(--ac)}
#acsd .acp-row{display:grid;grid-template-columns:1fr auto;gap:4px 16px;width:100%;padding:16px 20px;border:0;background:#fff;text-align:right;border-radius:0;transition:background .12s;color:var(--tx)}
#acsd .acp-row:hover{background:var(--bg2)}
#acsd .acp-row-t{font-size:15.5px;font-weight:700;line-height:1.7;color:var(--tx);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#acsd .acp-row-x{grid-column:1/-1;color:var(--tx2);font-size:14px;line-height:1.75;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#acsd .acp-row-x em{font-style:normal;color:var(--tx3)}
#acsd .acp-row-m{grid-column:1/-1;display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:4px}
#acsd .acp-row time{color:var(--tx3);font-size:13px;white-space:nowrap;line-height:1.7}
#acsd .acp-row.is-unread .acp-row-t::after{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--ac);margin-inline-start:8px;vertical-align:middle}
#acsd .acp-row.is-unread .acp-row-x{color:var(--tx);font-weight:500}
#acsd .acp-row.is-cur{background:var(--ac-soft)}
#acsd .acp-from{font-size:12.5px;color:var(--ac);font-weight:600}
#acsd .acp-empty{text-align:center;padding:56px 24px;color:var(--tx3)}
#acsd .acp-empty>svg{margin:0 auto 14px;color:#a3b3c8}
#acsd .acp-empty h3{font-size:17px;font-weight:800;color:var(--tx);margin:0 0 6px}
#acsd .acp-empty p{font-size:14.5px;line-height:1.9;margin:0 auto 18px;max-width:420px}
#acsd .acp-pager{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 0 4px;color:var(--tx3);font-size:13.5px}
#acsd .acp-legacy{margin-top:16px;border:1px dashed var(--line);border-radius:12px;padding:12px 16px;font-size:14px}
#acsd .acp-legacy summary{cursor:pointer;font-weight:600;color:var(--tx2)}
#acsd .acp-legacy li{padding:6px 0;border-top:1px solid var(--line2)}

/* ---------------------------------------------------------------- conversation */
#acsd .acp-conv{display:flex;flex-direction:column;min-width:0;background:#fff}
#acsd .acp-th-head{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line2);position:relative}
#acsd .acp-th-t{flex:1;min-width:0}
#acsd .acp-th-t h3{font-size:17.5px;font-weight:800;line-height:1.6;color:var(--tx);word-break:break-word}
#acsd .acp-th-m{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:4px}
#acsd .acp-th-a{display:flex;gap:4px;flex:none}
#acsd .acp-details{border-bottom:1px solid var(--line2);background:var(--bg2);padding:14px 20px}
#acsd .acp-dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;font-size:14px;line-height:1.8}
#acsd .acp-dl dt{color:var(--tx3)}
#acsd .acp-dl dd{margin:0;color:var(--tx);min-width:0;word-break:break-word}
#acsd .acp-thread{display:flex;flex-direction:column;gap:14px;padding:24px 20px;background:var(--bg2);min-height:220px}
#acsd .acp-m{display:flex;gap:10px;align-items:flex-end;max-width:100%}
#acsd .acp-m.is-me{flex-direction:row-reverse}
#acsd .acp-avt{width:32px;height:32px;border-radius:50%;background:var(--ac-soft);color:var(--ac);display:grid;place-items:center;flex:none}
#acsd .acp-bub{max-width:min(78%,640px);padding:14px 18px 10px;border-radius:18px;background:#fff;border:1px solid var(--line2);box-shadow:0 1px 2px rgba(15,23,42,.04);min-width:120px;overflow-wrap:anywhere}
#acsd .acp-m.is-them .acp-bub{border-end-start-radius:6px}
#acsd .acp-m.is-me .acp-bub{background:var(--ac-soft);border-color:var(--ac-line);border-end-end-radius:6px}
#acsd .acp-who{font-size:12.5px;font-weight:700;color:var(--ac);margin-bottom:4px;line-height:1.6}
#acsd .acp-m.is-me .acp-who{display:none}
#acsd .acp-txt{font-size:var(--fs);line-height:var(--lh);color:var(--tx)}
#acsd .acp-txt p{margin:0 0 8px}
#acsd .acp-txt p:last-child{margin:0}
#acsd .acp-txt ul,#acsd .acp-txt ol{padding-inline-start:20px;margin:4px 0 8px;list-style:disc}
#acsd .acp-txt a{word-break:break-all}
#acsd .acp-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:6px;color:var(--tx3);font-size:12px;line-height:1.5}
#acsd .acp-meta svg{color:var(--ac)}
#acsd .acp-m.is-pending .acp-bub{opacity:.65}
#acsd .acp-m.is-failed .acp-bub{border-color:#f3b4b4}
#acsd .acp-m.is-sys{justify-content:center}
#acsd .acp-m.is-sys span{background:#fff;border:1px solid var(--line2);border-radius:999px;padding:4px 14px;color:var(--tx3);font-size:12.5px}
#acsd .acp-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#acsd .acp-file{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;background:var(--bg2);border:1px solid var(--line2);font-size:13.5px;color:var(--tx);max-width:100%}
#acsd .acp-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}
#acsd .acp-file small{color:var(--tx3)}
#acsd .acp-file.is-img{padding:0;border:0;background:none}
#acsd .acp-file.is-img img{display:block;width:160px;height:120px;object-fit:cover;border-radius:12px;border:1px solid var(--line2)}
#acsd .acp-older{align-self:center}
#acsd .acp-rate{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid var(--line2);font-size:14.5px;color:var(--tx2)}
#acsd .acp-rate button{border:0;background:none;color:#cbd5e1;padding:4px}
#acsd .acp-rate button:hover,#acsd .acp-rate button:hover~button{color:#f59e0b}
#acsd .acp-closed{padding:14px 20px;background:var(--bg2);border-top:1px solid var(--line2);color:var(--tx2);font-size:14px;text-align:center}

/* composer: one calm box; formatting appears only on «Aa» */
#acsd .acp-compose{padding:14px 16px 16px;border-top:1px solid var(--line2);background:#fff}
#acsd .acp-box{border:1px solid #d5dde8;border-radius:16px;background:#fff;transition:border-color .15s,box-shadow .15s}
#acsd .acp-box:focus-within{border-color:var(--ac);box-shadow:0 0 0 4px color-mix(in srgb,var(--ac) 12%,transparent)}
#acsd .acp-fmt{display:flex;gap:4px;padding:8px 10px 0;border-bottom:0}
#acsd .acp-fmt button{width:34px;height:34px;border:0;border-radius:9px;background:none;color:var(--tx2);display:grid;place-items:center}
#acsd .acp-fmt button:hover{background:var(--bg3);color:var(--tx)}
#acsd .acp-editor{min-height:56px;max-height:240px;overflow:auto;padding:14px 16px;font-size:var(--fs);line-height:1.9;color:var(--tx);outline:0;word-break:break-word}
#acsd .acp-editor:empty::before{content:attr(data-ph);color:#94a3b8;pointer-events:none}
#acsd .acp-editor p{margin:0 0 6px}
#acsd .acp-editor ul{padding-inline-start:20px;list-style:disc}
#acsd .acp-bar{display:flex;align-items:center;gap:4px;padding:6px 8px 8px}
#acsd .acp-bar .acp-sp{flex:1}
#acsd .acp-bar .acp-icon{width:38px;height:38px;border-radius:10px}
#acsd .acp-upl{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px}
#acsd .acp-upl:empty{display:none}
#acsd .acp-up{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;background:var(--bg2);border:1px solid var(--line2);font-size:13px;max-width:100%;margin-top:8px}
#acsd .acp-up img{width:28px;height:28px;border-radius:6px;object-fit:cover}
#acsd .acp-up span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}
#acsd .acp-up small{color:var(--tx3)}
#acsd .acp-up button{border:0;background:none;color:var(--tx3);font-size:18px;line-height:1;padding:0 2px}
#acsd .acp-up.is-busy{color:var(--tx3)}
#acsd .acp-prog{display:block;width:60px;height:4px;border-radius:2px;background:var(--line);overflow:hidden}
#acsd .acp-prog b{display:block;height:100%;width:0;background:var(--ac);transition:width .2s}
#acsd .acp-note{color:var(--tx3);font-size:12.5px;line-height:1.7}
#acsd .acp-send-l{display:inline}

/* new request */
#acsd .acp-form{padding:22px 20px 24px}
#acsd .acp-form .acp-box{margin-top:2px}
#acsd .acp-form-a{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
#acsd .acp-svc{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:var(--ac-soft);color:var(--tx);margin:0 0 18px;font-size:14.5px}

/* banners: small and dismissable */
#acsd .acp-banner{display:flex;gap:12px;align-items:center;padding:12px 16px;border-radius:12px;background:var(--info-bg);color:var(--tx);font-size:14px;line-height:1.8;margin:0 0 14px}
#acsd .acp-banner.is-warn{background:var(--warn-bg)}
#acsd .acp-banner.is-ok{background:var(--ok-bg)}
#acsd .acp-banner img{width:40px;height:40px;border-radius:8px;object-fit:cover}
#acsd .acp-banner div{flex:1}
#acsd .acp-banner button{border:0;background:none;font-size:20px;color:var(--tx3);line-height:1}

#acsd .acp-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);opacity:0;z-index:100001;background:#0f172a;color:#fff;padding:12px 20px;border-radius:12px;font-size:14.5px;box-shadow:var(--sh-pop);transition:opacity .2s,transform .2s;pointer-events:none;max-width:calc(100vw - 32px)}
#acsd .acp-toast.is-on{opacity:1;transform:translateX(-50%)}
#acsd .acp-toast.is-bad{background:#b42318}
#acsd .acp-nf{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid #f5c2b8;background:#fff6f4;color:#7a271a;border-radius:var(--r,14px);font-size:14px;line-height:1.9}
#acsd .acp-nf p{flex:1}
#acsd .acp-nf span{flex:none;display:inline-flex;margin-top:3px}
#acsd .acp-nf button{flex:none;border:0;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:8px}
#acsd .acp-nf button:focus-visible{outline:2px solid currentColor}
#acsd .acp-skel{display:flex;flex-direction:column;gap:12px;padding:20px}
#acsd .acp-skel i{display:block;height:64px;border-radius:12px;background:linear-gradient(90deg,#f1f5f9,#e8edf3,#f1f5f9);background-size:200% 100%;animation:acp-sk 1.2s infinite}
@keyframes acp-sk{to{background-position:-200% 0}}

/* ================================================================ C1 — گفتگوی مینیمال */
#acsd.acp-c1{max-width:780px}
#acsd.acp-c1 .acp-head-ic{display:none}
#acsd.acp-c1 .acp-head h2{font-size:21px}
#acsd.acp-c1 .acp-items{border-top:1px solid var(--line2)}
#acsd.acp-c1 .acp-items li{border-bottom:1px solid var(--line2)}
#acsd.acp-c1 .acp-row{padding:18px 4px;background:transparent}
#acsd.acp-c1 .acp-row:hover{background:var(--bg2)}
#acsd.acp-c1 .acp-conv{border:1px solid var(--line2);border-radius:var(--r-lg);overflow:hidden}
#acsd.acp-c1 .acp-thread{background:#fff;padding:28px 24px;gap:18px}
#acsd.acp-c1 .acp-avt{display:none}
#acsd.acp-c1 .acp-m.is-them .acp-bub{background:var(--bg2);border-color:transparent;box-shadow:none}
#acsd.acp-c1 .acp-m.is-me .acp-bub{box-shadow:none}
#acsd.acp-c1 .acp-th-head{padding:20px 24px}
#acsd.acp-c1 .acp-compose{padding:16px 20px 20px}

/* ================================================================ C2 — پشتیبانی مدرن */
#acsd.acp-c2{max-width:1120px}
#acsd.acp-c2 .acp-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border-radius:var(--r-lg);background:linear-gradient(135deg,color-mix(in srgb,var(--ac) 8%,#fff),#fff 70%);border:1px solid var(--line2);margin:0 0 20px;flex-wrap:wrap}
#acsd.acp-c2 .acp-hero .acp-head{margin:0}
#acsd.acp-c2 .acp-stats{display:flex;gap:10px;flex-wrap:wrap}
#acsd.acp-c2 .acp-stat{display:flex;flex-direction:column;gap:2px;min-width:112px;padding:10px 16px;border-radius:14px;background:#fff;border:1px solid var(--line2);text-align:right}
#acsd.acp-c2 .acp-stat b{font-size:20px;font-weight:800;line-height:1.4;color:var(--tx)}
#acsd.acp-c2 .acp-stat span{font-size:12.5px;color:var(--tx3)}
#acsd.acp-c2 .acp-stat[aria-pressed=true]{border-color:var(--ac);box-shadow:0 0 0 3px color-mix(in srgb,var(--ac) 12%,transparent)}
#acsd.acp-c2 .acp-items{display:flex;flex-direction:column;gap:10px}
#acsd.acp-c2 .acp-row{border:1px solid var(--line2);border-radius:var(--r);box-shadow:var(--sh)}
#acsd.acp-c2 .acp-row:hover{border-color:#cfd9e6;background:#fff;box-shadow:0 2px 4px rgba(15,23,42,.05),0 10px 24px rgba(15,23,42,.06)}
#acsd.acp-c2 .acp-row.is-cur{border-color:var(--ac-line)}
#acsd.acp-c2 .acp-main-wrap{display:grid;grid-template-columns:1fr;gap:20px;align-items:start}
#acsd.acp-c2 .acp-conv{border:1px solid var(--line2);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh)}
#acsd.acp-c2 .acp-side{border:1px solid var(--line2);border-radius:var(--r-lg);background:#fff;padding:20px;box-shadow:var(--sh);position:sticky;top:20px}
#acsd.acp-c2 .acp-side h4{font-size:14.5px;font-weight:800;margin:0 0 12px}
@media (min-width:1024px){
  #acsd.acp-c2 .acp-main-wrap.has-side{grid-template-columns:minmax(0,1fr) 300px}
  #acsd.acp-c2 .acp-main-wrap.has-side .acp-details{display:none}
}
@media (max-width:1023px){#acsd.acp-c2 .acp-side{display:none}}

/* ================================================================ C3 — پیام‌رسان فشرده */
#acsd.acp-c3{max-width:1180px}
#acsd.acp-c3 .acp-head{margin:0 0 14px}
#acsd.acp-c3 .acp-head-ic{width:40px;height:40px;border-radius:12px}
#acsd.acp-c3 .acp-head h2{font-size:18px}
#acsd.acp-c3 .acp-shell{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:#fff;box-shadow:var(--sh)}
#acsd.acp-c3 .acp-list{background:#fff}
#acsd.acp-c3 .acp-list .acp-tools{padding:12px 12px 8px;margin:0;border-bottom:1px solid var(--line2)}
#acsd.acp-c3 .acp-list .acp-search{min-width:0;flex-basis:100%}
#acsd.acp-c3 .acp-row{grid-template-columns:auto 1fr auto;gap:2px 12px;padding:12px 14px;align-items:center}
#acsd.acp-c3 .acp-row-av{grid-row:1/3;width:42px;height:42px;border-radius:50%;background:var(--bg3);color:var(--tx2);display:grid;place-items:center}
#acsd.acp-c3 .acp-row.is-unread .acp-row-av{background:var(--ac-soft);color:var(--ac)}
#acsd.acp-c3 .acp-row-t{font-size:14.5px}
#acsd.acp-c3 .acp-row-x{grid-column:2/4;font-size:13.5px}
#acsd.acp-c3 .acp-row-m{display:none}
#acsd.acp-c3 .acp-row .acp-badge{grid-row:2;grid-column:3;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--ac);color:#fff;font-size:11.5px;font-weight:700;display:grid;place-items:center}
#acsd.acp-c3 .acp-row.is-unread .acp-row-t::after{display:none}
#acsd.acp-c3 .acp-items li+li .acp-row{border-top:1px solid var(--line2)}
#acsd.acp-c3 .acp-thread{background:#f4f6fa;flex:1;overflow:auto}
#acsd.acp-c3 .acp-placeholder{flex:1;display:grid;place-items:center;text-align:center;color:var(--tx3);padding:40px;background:var(--bg2)}
#acsd.acp-c3 .acp-placeholder svg{margin:0 auto 12px;color:#b6c3d4}
@media (min-width:900px){
  #acsd.acp-c3 .acp-shell{display:grid;grid-template-columns:340px minmax(0,1fr);height:min(78vh,820px);min-height:560px}
  #acsd.acp-c3 .acp-shell.is-collapsed{grid-template-columns:0 minmax(0,1fr)}
  #acsd.acp-c3 .acp-list{border-inline-end:1px solid var(--line2);overflow:auto;display:flex;flex-direction:column}
  #acsd.acp-c3 .acp-shell.is-collapsed .acp-list{visibility:hidden}
  #acsd.acp-c3 .acp-main{display:flex;flex-direction:column;min-height:0}
  #acsd.acp-c3 .acp-conv{flex:1;min-height:0}
  #acsd.acp-c3 .acp-form{overflow:auto}
}
@media (max-width:899px){
  #acsd.acp-c3[data-view=thread] .acp-head{display:none}
  #acsd.acp-c3[data-view=thread] .acp-shell{border-radius:16px}
  #acsd.acp-c3[data-view=thread] .acp-conv{min-height:calc(100dvh - 140px)}
  #acsd.acp-c3[data-view=thread] .acp-thread{flex:1}
}

/* ---------------------------------------------------------------- shared responsive */
#acsd .acp-only-m{display:none}
@media (max-width:899px){
  #acsd .acp-only-m{display:inline-grid}
}
@media (max-width:640px){
  #acsd .acp-head{flex-wrap:wrap;gap:12px;margin-bottom:16px}
  #acsd .acp-head-ic{width:42px;height:42px}
  #acsd .acp-head h2{font-size:18px}
  #acsd.acp-c2 .acp-hero{padding:18px 16px;gap:14px}
  #acsd.acp-c2 .acp-stats{width:100%}
  #acsd.acp-c2 .acp-stat{flex:1;min-width:0;padding:8px 12px}
  #acsd .acp-row{padding:14px 16px}
  #acsd.acp-c1 .acp-row{padding:16px 2px}
  #acsd .acp-th-head{padding:14px 14px}
  #acsd .acp-thread{padding:18px 12px;gap:12px}
  #acsd.acp-c1 .acp-thread{padding:20px 14px}
  #acsd .acp-bub{max-width:88%;padding:12px 16px 9px}
  #acsd .acp-avt{display:none}
  #acsd .acp-compose{padding:12px}
  #acsd .acp-form{padding:18px 14px 20px}
  #acsd .acp-send-l{display:none}
  #acsd .acp-btn.is-send{width:44px;min-height:44px;padding:0;border-radius:50%}
  #acsd .acp-file.is-img img{width:132px;height:100px}
  #acsd .acp-tools{gap:8px}
  #acsd .acp-seg{width:100%}
  #acsd .acp-seg button{flex:1;padding:6px 8px}
  #acsd .acp-dl{grid-template-columns:1fr;gap:0 0}
  #acsd .acp-dl dd{margin-bottom:8px}
}
@media (max-width:360px){
  #acsd .acp-head-a .acp-btn:not(.is-quiet) .acp-l{display:none}
  #acsd .acp-head-a .acp-btn:not(.is-quiet){width:42px;padding:0}
}
@media (prefers-reduced-motion:reduce){#acsd .acp-pop,#acsd .acp-dlg,#acsd .acp-toast{animation:none;transition:none}}
/* pass 1 refinements */
@media (min-width:1024px){#acsd.acp-c2 .acp-main-wrap.has-side [data-details]{display:none}}
@media (max-width:640px){
  #acsd.acp-c2:not([data-view=list]) .acp-stats{display:none}
  #acsd.acp-c2:not([data-view=list]) .acp-hero{padding:14px 16px;margin-bottom:14px}
  #acsd:not([data-view=list]) .acp-head p{display:none}
}
#acsd.acp-c3 .acp-row-x{grid-column:2/3;grid-row:2}
#acsd.acp-c3 .acp-row .acp-badge{grid-row:2;grid-column:3;justify-self:end;align-self:center;width:auto}
@media (min-width:1600px){#acsd.acp-c2,#acsd.acp-c3{max-width:1240px}}
