/* رَسان is a light app (one consistent look). The few dark-scheme fragments that existed made dark
   cards inside light screens on a phone set to dark mode, so they are switched off (written as
   `@media print and (prefers-color-scheme:dark)`) until a complete dark theme is designed. */
:root{color-scheme:light}
/* One page system for the five bottom-bar sections (گفتگوها، تماس‌ها، مخاطبین، میز کار، تنظیمات):
   same header (colored 3D tile + bold title), same raised cards, same colors. */
[data-tone="slate"]{--tone-a:#8fa3b0;--tone-b:#4f6472}
.page-title{display:flex!important;align-items:center;gap:10px;margin:0;font-size:20px!important;font-weight:800!important;color:#14232b;letter-spacing:-.2px}
.page-tile{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:#fff;background:linear-gradient(145deg,var(--tone-a),var(--tone-b));box-shadow:0 4px 9px -3px var(--tone-b),inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.12)}
.page-tile svg{width:19px!important;height:19px!important;fill:none;stroke:currentColor;stroke-width:2}
.page-tile .icon-solid{fill:currentColor;stroke:none}

/* Headers: same height, white glass, soft shadow instead of a hard line. */
.telegram-side-toolbar,.settings-screen>header,.voip-dial-header{background:linear-gradient(180deg,#fff,#f6f9fb)!important;border-bottom:0!important;box-shadow:0 6px 14px -12px rgba(30,60,90,.5)}
.telegram-side-toolbar strong.page-title{text-align:right!important;justify-content:flex-start}
.settings-screen>header strong.page-title{flex:1}
.voip-dial-header{margin:calc(-14px - env(safe-area-inset-top)) -20px 6px;padding:calc(12px + env(safe-area-inset-top)) 20px 12px}
.voip-dial-header h2.page-title{flex:1;justify-content:flex-start}
.voip-dial-header-spacer{display:none}

/* Chat list: bold names, raised avatars. */
#list .conversation strong{font-weight:800;color:#14232b}
#list .conversation .circle{box-shadow:0 4px 10px -4px rgba(20,60,90,.55),inset 0 1px 0 rgba(255,255,255,.35)}
#list .conversation .unread{font-weight:800;box-shadow:0 2px 5px -1px rgba(30,111,224,.5)}

/* Contacts & call history: rows as raised cards on a soft ground. */
#voip-call-screen.voip-mode-dial{background:linear-gradient(180deg,#eef4f8,#f7f9fa 260px)}
.voip-contact-row{margin:0 0 8px;border-radius:16px;background:#fff;box-shadow:0 6px 14px -10px rgba(30,60,90,.45),0 1px 2px rgba(30,60,90,.06)}
.voip-contact-call{padding:10px 12px}
.voip-contact-info b{font-weight:800}
.voip-contact-avatar{box-shadow:0 4px 9px -4px rgba(20,60,90,.6)}
span.voip-contact-avatar{background:linear-gradient(145deg,#5ab4ff,#1f6fe0)}
.voip-contacts-search{border-radius:14px!important;box-shadow:inset 0 1px 3px rgba(30,60,90,.12)}

/* Segmented tabs and keypad: 3D. */
.voip-tabs{background:linear-gradient(180deg,#e3ebf0,#edf2f5);box-shadow:inset 0 1px 3px rgba(30,60,90,.15)}
.voip-tab.active{background:linear-gradient(180deg,#fff,#f1f5f8);color:#f2780c;box-shadow:0 3px 8px -3px rgba(30,60,90,.4)}
.voip-keypad button{background:linear-gradient(160deg,#fff,#eef3f6)!important;box-shadow:0 6px 12px -6px rgba(30,60,90,.45),inset 0 1px 0 #fff,inset 0 -2px 0 rgba(30,60,90,.06)!important}
.voip-keypad button b{font-weight:700}
.voip-keypad button:active{transform:translateY(1px);box-shadow:0 2px 5px -3px rgba(30,60,90,.45)!important}

@media print and (prefers-color-scheme:dark){:root:not([data-theme="light"]) .page-title{color:#e9f0f4}:root:not([data-theme="light"]) .telegram-side-toolbar,:root:not([data-theme="light"]) .settings-screen>header,:root:not([data-theme="light"]) .voip-dial-header{background:linear-gradient(180deg,#1f2a31,#1a242a)!important}:root:not([data-theme="light"]) .voip-contact-row{background:#1f2a31}:root:not([data-theme="light"]) #list .conversation strong{color:#e9f0f4}}
@media (prefers-reduced-motion:reduce){.voip-keypad button:active{transform:none}}

/* گفتگوها header: refresh (left) and compose (right) as soft raised buttons matching the tile. */
.telegram-side-toolbar .telegram-refresh,.telegram-side-toolbar .telegram-compose{display:grid!important;place-items:center;width:40px!important;height:40px!important;border:0!important;border-radius:13px!important;background:linear-gradient(160deg,#fff,#eaf1f6)!important;color:#1f6fe0!important;box-shadow:0 5px 11px -6px rgba(30,60,90,.55),inset 0 1px 0 #fff!important;transition:transform .15s ease}
.telegram-side-toolbar .telegram-refresh svg,.telegram-side-toolbar .telegram-compose svg{width:21px!important;height:21px!important;stroke-width:2.1!important}
.telegram-side-toolbar .telegram-refresh:active,.telegram-side-toolbar .telegram-compose:active{transform:scale(.93)}
.telegram-side-toolbar .telegram-refresh:active svg{transform:rotate(-120deg);transition:transform .3s ease}
.telegram-side-toolbar strong.page-title{justify-content:center!important}
.side-head .search{border:0!important;background:#eef3f7!important;box-shadow:inset 0 1px 3px rgba(30,60,90,.12)!important}
/* Avatars: colored like the tiles, cycling tones. */
#list .conversation .circle{color:#fff!important;font-weight:800;background:linear-gradient(145deg,#5ab4ff,#1f6fe0)!important}
#list .conversation:nth-child(6n+2) .circle{background:linear-gradient(145deg,#4cd964,#1f9d48)!important}
#list .conversation:nth-child(6n+3) .circle{background:linear-gradient(145deg,#ffb340,#f2780c)!important}
#list .conversation:nth-child(6n+4) .circle{background:linear-gradient(145deg,#b67cff,#7a3fe0)!important}
#list .conversation:nth-child(6n+5) .circle{background:linear-gradient(145deg,#ff7eb6,#e0337a)!important}
#list .conversation:nth-child(6n) .circle{background:linear-gradient(145deg,#3ddbc8,#0f9488)!important}
#list .conversation .unread{background:linear-gradient(145deg,#5ab4ff,#1f6fe0)!important;color:#fff!important}

/* تماس‌ها: centered segmented control, orange active tab. */
.voip-screen-dial .voip-tabs{align-self:center;margin-inline:auto!important;width:min(340px,100%)}
.voip-screen-dial .voip-tab{color:#5b6b75!important;background:transparent!important;box-shadow:none!important}
.voip-screen-dial .voip-tab.active{background:linear-gradient(145deg,#ffb340,#f2780c)!important;color:#fff!important;box-shadow:0 4px 10px -4px #f2780c,inset 0 1px 0 rgba(255,255,255,.4)!important}
.voip-status{text-align:center}

/* مخاطبین: search right under the header, one-line hint, saved contacts look exactly like colleagues. */
.voip-contacts-subtitle{font-size:12px!important;color:#7c878d!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0 6px!important}
.voip-screen-dial .voip-contacts-search{margin-top:4px!important}
.voip-swipe-row{margin:0 0 8px;border-radius:16px!important;background:#fff;box-shadow:0 6px 14px -10px rgba(30,60,90,.45),0 1px 2px rgba(30,60,90,.06)}
.voip-swipe-row .voip-contact-row{margin:0;box-shadow:none;border-radius:16px}
.voip-swipe-content{border-radius:16px;background:#fff}
.voip-swipe-row:not(.swiped-open) .voip-swipe-actions{visibility:hidden}
.voip-add-contact-row{background:transparent!important;box-shadow:none!important}

/* ---- Chat screen: light, airy, same palette as the main pages (html body prefix beats the
   older sheets that load after this one) ---- */
html body .top{background:rgba(255,255,255,.94)!important;border-bottom:0!important;box-shadow:0 4px 16px -10px rgba(30,60,90,.35)!important}
html body .top .round{width:40px!important;height:40px!important;border:0!important;border-radius:50%!important;box-shadow:none!important;transition:transform .15s ease}
html body .top .round svg{width:21px!important;height:21px!important;stroke-width:2!important}
html body .top .round:active{transform:scale(.9)}
html body .top #back{background:transparent!important;color:#1f6fe0!important}
html body .top #voice-call{background:#fff1e3!important;color:#f2780c!important}
html body .top #video-call{background:#e5f7ea!important;color:#1f9d48!important}
html body .top #chat-search-toggle{background:#e6f0fd!important;color:#1f6fe0!important}
html body .top #more{background:#eef2f5!important;color:#4f6472!important}
html body .top .head-avatar{color:#fff!important;font-weight:800;background:linear-gradient(145deg,#5ab4ff,#1f6fe0)!important;box-shadow:0 4px 10px -4px rgba(31,111,224,.7)!important}
html body .chat-identity strong{font-weight:800!important;color:#14232b!important}
html body main #messages{background:linear-gradient(180deg,#eaf2f8 0%,#f1f5f8 50%,#eef4f1 100%)!important;background-image:none!important}
html body #messages .date-separator span{background:rgba(255,255,255,.9)!important;color:#1f6fe0!important;font-weight:700;border-radius:14px!important;padding:5px 12px!important;box-shadow:0 3px 10px -5px rgba(30,60,90,.45)!important;backdrop-filter:blur(6px)}
html body #messages .bubble{border:0!important;border-radius:18px 18px 18px 6px!important;box-shadow:0 2px 6px -3px rgba(30,60,90,.35)!important}
html body #messages .mine .bubble{border-radius:18px 18px 6px 18px!important}
html body #composer{background:rgba(255,255,255,.94)!important;border-top:0!important;box-shadow:0 -4px 16px -10px rgba(30,60,90,.35)!important}
html body #composer .input-wrap{border:0!important;background:#f0f4f7!important;box-shadow:none!important}
html body #composer .input-wrap button{border:0!important;background:transparent!important;box-shadow:none!important;color:#f0a800!important}
html body #composer .attach{border:0!important;border-radius:50%!important;background:#f1eafd!important;color:#7a3fe0!important;box-shadow:none!important}
html body #composer button[id*="voice"],html body #composer button[id*="record"],html body #composer .mic{color:#1f6fe0!important}
html body #composer .send{background:linear-gradient(145deg,#4cd964,#1f9d48)!important;color:#fff!important;box-shadow:0 4px 10px -4px #1f9d48!important}

/* ---- Every other screen: dialogs, sheets, menus, info panel ---- */
dialog{border:0!important;border-radius:20px!important;box-shadow:0 24px 50px -20px rgba(20,40,60,.55)!important}
dialog h2,dialog h3,dialog header strong,.info header strong{font-weight:800!important;color:#14232b}
.message-menu,.header-menu,.attach-menu{border:0!important;box-shadow:0 18px 40px -16px rgba(20,40,60,.5)!important}
.info header{background:linear-gradient(180deg,#fff,#f6f9fb)!important;border-bottom:0!important;box-shadow:0 6px 14px -12px rgba(30,60,90,.5)}
.info-tabs button{border-radius:12px!important;font-weight:700}
.info-tabs button.active{background:linear-gradient(145deg,#5ab4ff,#1f6fe0)!important;color:#fff!important;box-shadow:0 4px 10px -4px #1f6fe0!important}
button.primary,.primary-button,.org-save,.btn-primary{background:linear-gradient(145deg,#5ab4ff,#1f6fe0)!important;color:#fff!important;border:0!important;box-shadow:0 5px 12px -6px #1f6fe0,inset 0 1px 0 rgba(255,255,255,.35)!important;font-weight:700}
@media print and (prefers-color-scheme:dark){:root:not([data-theme="light"]) .top,:root:not([data-theme="light"]) #composer,:root:not([data-theme="light"]) .info header{background:linear-gradient(180deg,#1f2a31,#1a242a)!important}:root:not([data-theme="light"]) .top .round,:root:not([data-theme="light"]) #composer .attach{background:linear-gradient(160deg,#2c3a43,#202b32)!important}:root:not([data-theme="light"]) #messages{background-color:#141c21!important}:root:not([data-theme="light"]) .chat-identity strong{color:#e9f0f4!important}:root:not([data-theme="light"]) #composer .input-wrap{background:#1f2a31!important}}

/* Chat list: group / channel vs. personal chat at a glance. */
#list .conversation .circle{position:relative;overflow:visible!important}
#list .conversation.kind-group .circle,#list .conversation.kind-channel .circle{border-radius:16px!important}
#list .conversation .circle img{border-radius:inherit}
#list .kind-badge{position:absolute;bottom:-3px;left:-3px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;border:2px solid #fff;color:#fff;font-style:normal;box-shadow:0 2px 5px -2px rgba(0,0,0,.4)}
#list .kind-group .kind-badge{background:linear-gradient(145deg,#4cd964,#1f9d48)}
#list .kind-channel .kind-badge{background:linear-gradient(145deg,#ffb340,#f2780c)}
#list .kind-badge svg{width:11px!important;height:11px!important;fill:none;stroke:currentColor;stroke-width:2.6}
#list .conversation strong{display:inline-flex;align-items:center;gap:5px;min-width:0}
#list .kind-title-icon{flex:none;display:inline-grid;place-items:center}
#list .kind-title-icon svg{width:15px!important;height:15px!important;fill:none;stroke-width:2.4}
#list .kind-group .kind-title-icon{color:#1f9d48}
#list .kind-channel .kind-title-icon{color:#f2780c}

/* «مصرف اینترنت»: deferred media and the settings page. */
.media-deferred{position:relative;min-height:120px;min-width:180px;background:linear-gradient(145deg,#e3ecf3,#d3e0ea);border-radius:14px}
.media-deferred img,.media-deferred video{visibility:hidden}
.media-load{position:absolute;inset:0;margin:auto;width:max-content;height:38px;padding:0 16px;border:0;border-radius:19px;background:rgba(20,35,43,.72);color:#fff;font:inherit;font-weight:700;cursor:pointer;backdrop-filter:blur(4px)}
.data-saver-panel .ds-option{display:flex;gap:10px;align-items:flex-start;padding:12px;margin:8px 0;border-radius:14px;background:#fff;box-shadow:0 6px 14px -10px rgba(30,60,90,.45)}
.data-saver-panel .ds-option span{display:flex;flex-direction:column;gap:3px}
.data-saver-panel .ds-option small{color:#7c878d;line-height:1.6}
.data-saver-panel .ds-now{margin-top:12px;color:#4f6472}

/* Send button: the arrow stays solid white on the green button while typing. */
html body #composer .send,html body #composer .send:not(:disabled){opacity:1!important;color:#fff!important}
html body #composer .send svg,html body #composer .send .app-icon,html body #composer .send .icon{color:#fff!important;stroke:#fff!important;opacity:1!important;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
html body #composer .send svg path{stroke:#fff!important}

/* Chat list filter chips (همه / خوانده‌نشده / شخصی / گروه‌ها / کانال‌ها). */
.list-filters{display:flex;gap:8px;overflow-x:auto;padding:10px 12px 8px;scrollbar-width:none;direction:rtl}
.list-filters::-webkit-scrollbar{display:none}
.list-filter{flex:none;display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 14px;border:0;border-radius:16px;background:#eef3f7;color:#4f6472;font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:inset 0 -1px 0 rgba(30,60,90,.06)}
.list-filter em{font-style:normal;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#1f6fe0;color:#fff;font-size:11px;line-height:18px;text-align:center}
.list-filter.active{background:linear-gradient(145deg,#5ab4ff,#1f6fe0);color:#fff;box-shadow:0 4px 10px -4px #1f6fe0}
.list-filter.active em{background:#fff;color:#1f6fe0}
.list-filter[data-filter="group"].active{background:linear-gradient(145deg,#4cd964,#1f9d48);box-shadow:0 4px 10px -4px #1f9d48}
.list-filter[data-filter="channel"].active{background:linear-gradient(145deg,#ffb340,#f2780c);box-shadow:0 4px 10px -4px #f2780c}
@media print and (prefers-color-scheme:dark){:root:not([data-theme="light"]) .list-filter:not(.active){background:#24313a;color:#c5d2da}}
.video-compress-work{position:fixed;left:-9999px;top:0;width:2px;height:2px;opacity:0;pointer-events:none}
/* «ارسال ویدیو با چه کیفیتی؟» sheet */
.vq-backdrop{position:fixed;inset:0;z-index:700;display:flex;align-items:flex-end;justify-content:center;background:rgba(15,30,45,.45)}
.vq-sheet{width:min(460px,100%);max-height:88vh;overflow:auto;padding:14px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#f4f7fa;box-shadow:0 -12px 30px -10px rgba(20,40,60,.5);direction:rtl}
.vq-sheet h3{margin:4px 2px 4px;font-size:17px;font-weight:800;color:#14232b}
.vq-sheet p{margin:0 2px 12px;font-size:12.5px;color:#6b7a83;line-height:1.7}
.vq-option{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:10px;width:100%;margin:0 0 8px;padding:11px 14px;border:0;border-radius:14px;background:#fff;text-align:right;font:inherit;cursor:pointer;box-shadow:0 6px 14px -10px rgba(30,60,90,.45)}
.vq-option b{font-size:14.5px;font-weight:800;color:#14232b}
.vq-option small{grid-row:2;color:#7c878d;font-size:12px}
.vq-option em{grid-column:2;grid-row:1 / span 2;align-self:center;font-style:normal;font-weight:700;color:#1f6fe0;font-size:13px}
.vq-option:active{transform:scale(.98)}
.vq-option[disabled]{opacity:.45;cursor:default}
.vq-option[disabled] em{color:#c0392b}
.vq-cancel{width:100%;margin-top:4px;padding:12px;border:0;border-radius:14px;background:transparent;color:#c0392b;font:inherit;font-weight:700;cursor:pointer}

/* Short messages (#toast, toast-ui.js): white card under the header, colored icon, progress bar. */
html body #toast{position:fixed!important;z-index:900!important;top:calc(70px + env(safe-area-inset-top))!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translate(-50%,-14px)!important;width:max-content;max-width:min(92vw,440px);display:grid!important;grid-template-columns:auto 1fr;align-items:center;gap:4px 10px;padding:11px 16px 11px 14px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.97)!important;color:#14232b!important;font-size:13.5px!important;font-weight:600;line-height:1.7;text-align:right;direction:rtl;box-shadow:0 14px 34px -14px rgba(20,40,60,.55),0 2px 6px rgba(20,40,60,.08)!important;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .25s cubic-bezier(.2,.9,.3,1.2)!important;backdrop-filter:blur(10px)}
html body #toast.show{opacity:1!important;transform:translate(-50%,0)!important;pointer-events:auto}
#toast .toast-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:#fff;font-weight:900;font-size:14px;background:linear-gradient(145deg,#5ab4ff,#1f6fe0);box-shadow:0 3px 8px -3px #1f6fe0}
#toast[data-kind="success"] .toast-icon{background:linear-gradient(145deg,#4cd964,#1f9d48);box-shadow:0 3px 8px -3px #1f9d48}
#toast[data-kind="error"] .toast-icon{background:linear-gradient(145deg,#ff6b6b,#e0263a);box-shadow:0 3px 8px -3px #e0263a}
#toast[data-kind="progress"] .toast-icon{background:conic-gradient(#1f6fe0 0 25%,#d6e4f5 0);border-radius:50%;animation:toast-spin 1s linear infinite;box-shadow:none;-webkit-mask:radial-gradient(circle,transparent 7px,#000 8px);mask:radial-gradient(circle,transparent 7px,#000 8px)}
#toast .toast-bar{grid-column:1 / -1;height:7px;margin-top:4px;border-radius:4px;background:#e3ebf2;overflow:hidden}
#toast .toast-bar i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#5ab4ff,#1f6fe0);transition:width .4s ease}
@keyframes toast-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#toast[data-kind="progress"] .toast-icon{animation:none}}
/* Progress (a message with a percentage, e.g. video compression) sits in the middle of the screen. */
html body #toast[data-kind="progress"]{top:50%!important;transform:translate(-50%,-50%) scale(.96)!important;min-width:min(80vw,320px);padding:16px 18px!important}
html body #toast[data-kind="progress"].show{transform:translate(-50%,-50%) scale(1)!important}
.vq-wait{color:#9aa7b0;font-weight:500}
/* Under each chat video: its size and length. */
.message-video{position:relative}
.message-video video{background:#1d2a33}
.video-meta{position:absolute;right:8px;bottom:8px;display:inline-flex;gap:6px;align-items:center;padding:3px 9px;border-radius:10px;background:rgba(10,20,28,.62);color:#fff;font-size:11.5px;font-weight:600;backdrop-filter:blur(4px);pointer-events:none}
.video-meta:empty{display:none}
.video-meta .video-duration:not(:empty)::before{content:'· ';opacity:.7}
.video-meta .video-duration:empty{display:none}
/* Chat video in its real shape from the first moment (size known from the server). */
.message-video.is-landscape{width:min(320px,72vw)}
.message-video.is-portrait{width:min(220px,56vw)}
.message-video.shape-unknown{width:min(240px,60vw);aspect-ratio:1/1}
.message-video.is-landscape video,.message-video.is-portrait video,.message-video.shape-unknown video{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover;border-radius:12px}

/* Accessibility: one clear keyboard-focus ring everywhere (not shown for taps/clicks), and muted
   texts dark enough to read (WCAG AA on white). */
html body :focus-visible{outline:3px solid #1f6fe0!important;outline-offset:2px!important;border-radius:inherit}
html body .telegram-bottom-nav button:focus-visible,html body .list-filter:focus-visible{outline-offset:-3px!important}
html body :focus:not(:focus-visible){outline:none}
.settings-body>button small,#list .conversation span.preview,.voip-contact-info small,.vq-option small{color:#5f6d75!important}
#list .conversation time{color:#66737b}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* «📷 گالری سامانهٔ خرید» */
.pg-panel form{display:flex;flex-direction:column;gap:10px}
.pg-pick{align-self:flex-start;padding:10px 16px;border-radius:13px;background:#e6f0fd;color:#1f6fe0;font-weight:800;cursor:pointer}
.pg-thumbs{display:flex;flex-wrap:wrap;gap:6px}
.pg-thumb{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:10px;background:#fff;font-size:12px;box-shadow:0 2px 6px -3px rgba(20,50,80,.4)}
.pg-thumb button{border:0;background:none;color:#b3261e;font-size:16px;cursor:pointer}
.pg-send{height:48px;border:0;border-radius:15px;background:linear-gradient(145deg,#5ab4ff,#1f6fe0);color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
.pg-send:disabled{background:#cfd8de}
.pg-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.pg-row label{display:flex;flex-direction:column;gap:4px;min-width:0}
.pg-card{padding:12px 14px;border-radius:14px;background:linear-gradient(145deg,#e5f7ea,#d3f0dc);color:#14532d;line-height:1.9;box-shadow:0 8px 18px -12px #1f9d48}
.pg-card small{color:#2f5d3e}
/* «📣 تازه‌ها و راهنما» */
.an-panel .an-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.an-item{padding:14px;border-radius:16px;background:#fff;box-shadow:0 8px 18px -12px rgba(20,50,80,.45)}
.an-item b{display:block;font-size:15px;color:#14232b}
.an-item small{color:#66737b}
.an-item p{margin:8px 0 0;font-size:13.5px;line-height:1.9;color:#33454f}
.an-item details summary{margin-top:8px;font-weight:800;color:#1f6fe0;cursor:pointer}
.an-compose{padding:12px;border-radius:16px;background:#fff;box-shadow:0 8px 18px -12px rgba(20,50,80,.45)}
.an-compose summary{font-weight:800;cursor:pointer}
.an-compose label{display:flex;flex-direction:column;gap:4px;margin-top:8px}
.an-compose .an-all{flex-direction:row;align-items:center;gap:6px}
.an-pick{max-height:200px;overflow:auto;display:flex;flex-direction:column;gap:4px;margin-top:6px}
.an-pick label{flex-direction:row;align-items:center;gap:6px;margin:0}
.an-send{width:100%;height:44px;margin-top:10px;border:0;border-radius:13px;background:linear-gradient(145deg,#5ab4ff,#1f6fe0);color:#fff;font:inherit;font-weight:800;cursor:pointer}
.an-empty{color:#66737b;text-align:center;padding:20px}

/* Service accounts: picture in their app's color, «رسمی» badge, shortcut bar, read-only note. */
.bot-face{display:grid;place-items:center;width:100%;height:100%;border-radius:inherit;background:linear-gradient(145deg,color-mix(in srgb,var(--bot) 70%,#fff),var(--bot));color:#fff;font-size:22px;line-height:1;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
html body #list .conversation.kind-bot .circle{border-radius:16px!important;background:var(--bot,#4f6472)!important;overflow:hidden}
html body #list .conversation.kind-bot .circle .bot-face{border-radius:16px}
html body .top .head-avatar:has(.bot-face){border-radius:14px!important;overflow:hidden;background:transparent!important;box-shadow:none!important}
.official-badge{display:inline-grid;place-items:center;width:16px;height:16px;margin-inline-start:5px;border-radius:50%;background:#1f6fe0;color:#fff;font-size:10px;font-weight:900;vertical-align:middle;flex:none}
.bot-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 12px;background:linear-gradient(180deg,color-mix(in srgb,var(--bot) 10%,#fff),#fff);border-bottom:1px solid color-mix(in srgb,var(--bot) 18%,#fff)}
.bot-bar-about{flex:1 1 100%;font-size:12px;color:#4f6472}
.bot-bar button{height:32px;padding:0 12px;border:0;border-radius:16px;background:var(--bot);color:#fff;font:inherit;font-size:12.5px;font-weight:800;box-shadow:0 4px 10px -6px var(--bot);cursor:pointer}
.bot-bar-ro{font-size:11.5px;color:#66737b}
html body .shell.bot-readonly #composer{display:none!important}
.list-filter[data-filter="bot"].active{background:linear-gradient(145deg,#b67cff,#7a3fe0);box-shadow:0 4px 10px -4px #7a3fe0}
.bp-row{display:flex;flex-direction:column;gap:6px;margin:10px 0;padding:12px;border-radius:14px;background:#fff;box-shadow:0 6px 14px -10px rgba(20,50,80,.45)}
.bp-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bp-row label{display:flex;flex-direction:column;gap:3px;font-size:12px}
.bp-row .bp-ro{flex-direction:row;align-items:center;gap:6px}
.bp-row button{height:38px;border:0;border-radius:11px;background:#1f6fe0;color:#fff;font:inherit;font-weight:800;cursor:pointer}
/* Bot pictures: full-size colored tile with a large emoji, immune to the list's text styles. */
html body .circle i.bot-face,html body .head-avatar i.bot-face{display:grid!important;place-items:center;width:100%!important;height:100%!important;margin:0!important;padding:0;border-radius:inherit;font-style:normal;background:linear-gradient(145deg,color-mix(in srgb,var(--bot) 65%,#fff),var(--bot))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
html body .circle i.bot-face b,html body .head-avatar i.bot-face b{display:block;margin:0!important;font-size:26px!important;line-height:1;color:#fff!important;font-weight:400;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
html body .head-avatar i.bot-face b{font-size:22px!important}
html body #list .conversation.kind-bot .circle,html body .top .head-avatar:has(.bot-face){background:transparent!important;border-radius:14px!important;overflow:hidden;padding:0}
/* 3D glossy service-account tiles: lit gradient, top gloss, inner bevel, soft drop shadow. */
html body .circle i.bot-face,html body .head-avatar i.bot-face{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 30% 15%,color-mix(in srgb,var(--bot) 45%,#fff) 0%,color-mix(in srgb,var(--bot) 85%,#fff) 38%,var(--bot) 70%,color-mix(in srgb,var(--bot) 75%,#000) 100%)!important;box-shadow:inset 0 2px 1px rgba(255,255,255,.55),inset 0 -3px 6px rgba(0,0,0,.28),0 6px 14px -6px color-mix(in srgb,var(--bot) 80%,#000)!important}
html body .circle i.bot-face::before,html body .head-avatar i.bot-face::before{content:'';position:absolute;inset:3px 4px 52% 4px;border-radius:12px 12px 40% 40%;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0));pointer-events:none}
html body i.bot-face svg{position:relative;width:62%;height:62%;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1.5px 1px rgba(0,0,0,.35)) drop-shadow(0 0 1px rgba(0,0,0,.15))}
html body i.bot-face svg circle[r="1.2"],html body i.bot-face svg circle[r="1.3"],html body i.bot-face svg circle[r="1.4"]{fill:#fff}
html body #list .conversation.kind-bot .circle{box-shadow:none!important}
html body .official-badge{color:#fff!important;font-size:10px!important;margin-top:0!important;line-height:16px;text-align:center;background:linear-gradient(145deg,#5ab4ff,#1f6fe0)!important;box-shadow:0 2px 4px -1px rgba(31,111,224,.6)}
