/* طراحی یکپارچه‌ی همه‌ی محیط‌ها شبیه اپ Gemini (RTL) — بعد از تم‌ها بارگذاری می‌شود؛ رنگ تأکید هر محیط حفظ می‌شود */

:root[data-ws]:not([data-ws="flow"]) {
	--bg: #f8f9fb;
	--bg-side: #ffffff;
	--bg-elev: #ffffff;
	--text: #1f1f1f;
	--muted: #5f6368;
	--border: #dfe4ea;
	--hover: #eef2f8;
	--active: #e6edf8;
	--user-bubble: #e9eef6;
	--composer-bg: #ffffff;
	--composer-border: #ffffff;
	--composer-radius: 32px;
	--shadow: 0 1px 3px rgba(31, 31, 31, .08);
	--shadow-lg: 0 18px 50px rgba(31, 31, 31, .18);
	--code-bg: #f0f4f9;
	--code-head: #e1e8f1;
	--code-text: #1f1f1f;
	--code-muted: #5f6368;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root[data-ws]:not([data-ws="flow"]):not([data-mode="light"]) {
		--bg: #0f0f10;
		--bg-side: #161617;
		--bg-elev: #1e1f20;
		--text: #e3e3e3;
		--muted: #9aa0a6;
		--border: #37393b;
		--hover: #242526;
		--active: #26282b;
		--accent: #8ab4f8;
		--accent-soft: #1d2b45;
		--accent-contrast: #062e6f;
		--user-bubble: #282a2c;
		--composer-bg: #1e1f20;
		--composer-border: #1e1f20;
		--composer-radius: 32px;
		--send-bg: #8ab4f8;
		--send-fg: #062e6f;
		--shadow: 0 1px 4px rgba(0, 0, 0, .4);
		--shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
		--code-bg: #0f0f10;
		--code-head: #1b1c1d;
		--code-text: #e3e3e3;
		--code-muted: #9aa0a6;
		color-scheme: dark;
	}
}

:root[data-ws]:not([data-ws="flow"])[data-mode="dark"] {
	--bg: #0f0f10;
	--bg-side: #161617;
	--bg-elev: #1e1f20;
	--text: #e3e3e3;
	--muted: #9aa0a6;
	--border: #37393b;
	--hover: #242526;
	--active: #26282b;
	--user-bubble: #282a2c;
	--composer-bg: #1e1f20;
	--composer-border: #1e1f20;
	--composer-radius: 32px;
	--shadow: 0 1px 4px rgba(0, 0, 0, .4);
	--shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
	--code-bg: #0f0f10;
	--code-head: #1b1c1d;
	--code-text: #e3e3e3;
	--code-muted: #9aa0a6;
	color-scheme: dark;
}

/* ---------- ظاهر شبیه Gemini: چیدمان LTR، منوی تخت، ورودی کپسولی، درخشش آبی ---------- */
:root[data-ws] { --grad: linear-gradient(90deg, #4285f4 0%, #9b72cb 52%, #d96570 100%); --glow: rgba(66, 133, 244, .16); }
@media (prefers-color-scheme: dark) { :root[data-ws]:not([data-mode="light"]) { --glow: rgba(40, 70, 200, .28); } }
:root[data-ws][data-mode="dark"] { --glow: rgba(40, 70, 200, .28); }

body[class*="amirai-theme-"] .sidebar { width: 288px; padding: 10px 8px; gap: 2px; border-inline-end: 0; }
body[class*="amirai-theme-"] .side-head { padding: 6px 8px 10px; }
body[class*="amirai-theme-"] .brand-mark { background: none; width: 28px; height: 28px; border-radius: 0; color: #4285f4; }
body[class*="amirai-theme-"] .brand-mark svg { width: 26px; height: 26px; }
body[class*="amirai-theme-"] .brand-title { font-weight: 500; font-size: 19px; letter-spacing: 0; font-family: "Google Sans", "Product Sans", Roboto, "Vazirmatn", system-ui, sans-serif; }
body[class*="amirai-theme-"] .brand-sub { display: none; }
body[class*="amirai-theme-"] .side-head .icon-btn { width: 32px; height: 32px; }

body[class*="amirai-theme-"] .new-chat, body[class*="amirai-theme-"] .search, body[class*="amirai-theme-"] .proj-head, body[class*="amirai-theme-"] .proj-item, body[class*="amirai-theme-"] .bot-btn {
	border: 0; background: transparent; border-radius: 99px; padding: 9px 14px; font-size: 14px; font-weight: 500; color: var(--text); gap: 12px;
}
body[class*="amirai-theme-"] .new-chat { background: var(--active); }
body[class*="amirai-theme-"] .new-chat:hover, body[class*="amirai-theme-"] .proj-item:hover, body[class*="amirai-theme-"] .bot-btn:hover { background: var(--hover); }
body[class*="amirai-theme-"] .new-chat svg { width: 19px; height: 19px; color: var(--text); }
body[class*="amirai-theme-"] .search {
	padding-inline-start: 44px; background: transparent no-repeat 14px center / 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a95' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E");
	text-align: start;
}
body[class*="amirai-theme-"] .search:hover, body[class*="amirai-theme-"] .search:focus { background-color: var(--hover); border: 0; box-shadow: none; }
body[class*="amirai-theme-"] .proj-head { color: var(--muted); font-size: 13px; font-weight: 500; padding-top: 16px; }
body[class*="amirai-theme-"] .proj-empty { display: none; }
body[class*="amirai-theme-"] .conv-group { font-size: 13px; font-weight: 500; padding: 16px 14px 4px; }
body[class*="amirai-theme-"] .conv { border-radius: 99px; }
body[class*="amirai-theme-"] .conv-title { font-size: 13.5px; padding: 8px 14px; unicode-bidi: plaintext; }
body[class*="amirai-theme-"] .conv:hover { background: var(--hover); }
body[class*="amirai-theme-"] .conv.active { background: var(--active); }
body[class*="amirai-theme-"] .side-foot { border-top: 0; padding-top: 4px; }
body[class*="amirai-theme-"] .disclaimer { display: none; }
body[class*="amirai-theme-"] .avatar { width: 30px; height: 30px; background: var(--grad); color: #fff; font-size: 12.5px; }
body[class*="amirai-theme-"] .user-row { padding: 6px 8px; border-radius: 99px; }

/* نوار بالا و درخشش پس‌زمینه */
body[class*="amirai-theme-"] .topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; min-height: 54px; padding: 8px 14px; }
body[class*="amirai-theme-"] .main { background: radial-gradient(ellipse 55% 42% at 50% 58%, var(--glow), transparent 72%), var(--bg); }
body[class*="amirai-theme-"] .ws-switch { font-size: 0; }
body[class*="amirai-theme-"] .ws-switch button { font-size: 11.5px; padding: 5px 11px; }

/* گفتگو */
body[class*="amirai-theme-"] .thread-inner { max-width: 780px; gap: 24px; }
body[class*="amirai-theme-"] .msg.user { justify-content: flex-end; }
body[class*="amirai-theme-"] .msg .bubble { background: var(--user-bubble); border-radius: 22px 22px 6px 22px; padding: 11px 18px; max-width: 80%; unicode-bidi: plaintext; text-align: start; }
body[class*="amirai-theme-"] .msg.user .user-col { align-items: flex-end; }
body[class*="amirai-theme-"] .msg .ava { background: transparent; width: 30px; height: 30px; color: #4285f4; }
body[class*="amirai-theme-"] .msg .ava svg { width: 26px; height: 26px; }
body[class*="amirai-theme-"] .msg.assistant .body { font-size: 16px; line-height: 1.85; }
body[class*="amirai-theme-"] .md p, body[class*="amirai-theme-"] .md li, body[class*="amirai-theme-"] .md h1, body[class*="amirai-theme-"] .md h2, body[class*="amirai-theme-"] .md h3, body[class*="amirai-theme-"] .md h4, body[class*="amirai-theme-"] .md blockquote { unicode-bidi: plaintext; text-align: start; }
body[class*="amirai-theme-"] .msg .actions { opacity: 1; }

/* حالت خالی */
body[class*="amirai-theme-"] .empty-logo { display: none; }
body[class*="amirai-theme-"] .empty { justify-content: center; gap: 0; padding-bottom: 12vh; }
body[class*="amirai-theme-"] .empty h1 { font-family: "Google Sans", "Product Sans", Roboto, "Vazirmatn", system-ui, sans-serif; font-weight: 400; font-size: clamp(30px, 4.6vw, 42px); background: none; color: var(--text); -webkit-text-fill-color: currentColor; margin-bottom: 28px; }
body[class*="amirai-theme-"] .empty p { display: none; }
body[class*="amirai-theme-"] .chips { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 660px; margin-top: 22px; }
body[class*="amirai-theme-"] .chip { min-height: 0; padding: 10px 16px; border: 0; background: transparent; border-radius: 99px; font-size: 14.5px; display: flex; align-items: center; gap: 12px; text-align: start; unicode-bidi: plaintext; }
body[class*="amirai-theme-"] .chip::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--accent); opacity: .85; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 5.4 4.6 9.4 10 10-5.4.6-9.4 4.6-10 10-.6-5.4-4.6-9.4-10-10 5.4-.6 9.4-4.6 10-10z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 5.4 4.6 9.4 10 10-5.4.6-9.4 4.6-10 10-.6-5.4-4.6-9.4-10-10 5.4-.6 9.4-4.6 10-10z'/%3E%3C/svg%3E") center / contain no-repeat; }
body[class*="amirai-theme-"] .chip:hover { background: var(--hover); transform: none; }

/* ورودی کپسولی: + ، متن، مدل، ارسال */
body[class*="amirai-theme-"] .composer { border-radius: 32px; padding: 8px 10px; align-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
body[class*="amirai-theme-"] .composer-row { display: flex; align-items: center; gap: 2px; width: 100%; }
body[class*="amirai-theme-"] .composer-row textarea { padding: 12px 10px; unicode-bidi: plaintext; text-align: start; font-size: 16px; }
body[class*="amirai-theme-"] .composer-row .attach-btn { width: 38px; height: 38px; }
body[class*="amirai-theme-"] .composer .model-btn { font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 99px; color: var(--text); font-family: "Google Sans", Roboto, system-ui, sans-serif; }
body[class*="amirai-theme-"] .composer .model-btn:hover { background: var(--hover); }
body[class*="amirai-theme-"] .composer .menu { top: auto; bottom: calc(100% + 8px); inset-inline-start: auto; inset-inline-end: 0; border-radius: 20px; }
body[class*="amirai-theme-"] .send-btn { width: 40px; height: 40px; background: transparent; color: var(--accent); }
body[class*="amirai-theme-"] .send-btn:hover { background: var(--hover); filter: none; }
body[class*="amirai-theme-"] .attach-row { order: -1; }
body[class*="amirai-theme-"] .composer-wrap { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
body[class*="amirai-theme-"] .composer:focus-within { box-shadow: 0 1px 6px rgba(0,0,0,.08), 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
body[class*="amirai-theme-"] .m-logo { background: var(--grad); color: #fff; border-radius: 50%; }
body[class*="amirai-theme-"] .modal { border-radius: 28px; }
@media (max-width: 760px) { body[class*="amirai-theme-"] .empty { padding-bottom: 6vh; } }
body[class*="amirai-theme-"] .chips { width: 100%; align-self: center; }


/* =====================================================================
   چیدمان جدید (2.17): RTL یکپارچه، سایدبار سمت راست، هدر، ورودی و منوی «+»
   ===================================================================== */
:root[data-ws] { --grad: linear-gradient(90deg, #4285f4 0%, #9b72cb 52%, #d96570 100%); }
body[class*="amirai-theme-"] .app { direction: rtl; flex-direction: row; }
body[class*="amirai-theme-"] .app.side-collapsed .sidebar { margin-inline-start: -288px; }
body[class*="amirai-theme-"] .sidebar { width: 288px; padding: 12px 10px 10px; gap: 2px; border-inline-end: 0; direction: rtl; }
body[class*="amirai-theme-"] .brand-sub { display: none; }
@media (max-width: 860px) {
	body[class*="amirai-theme-"] .sidebar { inset-inline-start: 0; margin-inline-start: 0 !important; }
}

/* ناوبری سایدبار */
.nav-box { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 6px; }
.nav-item, .nav-box .bot-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; margin: 0; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--text); text-align: start; background: transparent; border: 0; transition: background .15s; }
.nav-item:hover, .nav-box .bot-btn:hover { background: var(--hover); color: var(--text); }
.nav-item > svg, .nav-box .bot-btn > svg { width: 19px; height: 19px; flex: none; color: var(--muted); }
.nav-item > span, .nav-box .bot-btn > span { flex: 1; min-width: 0; }
.nav-new { background: var(--active); margin-bottom: 4px; }
.nav-new > svg { color: var(--text); }
.nav-item.on, .nav-item.on > svg { color: var(--accent); }
.nav-item.on { background: var(--accent-soft); }
.nav-grp > svg:last-child { width: 15px; height: 15px; transition: transform .2s; transform: rotate(90deg); }
.nav-grp.open > svg:last-child { transform: rotate(-90deg); }
.nav-sub { display: flex; flex-direction: column; gap: 1px; padding: 2px 14px 6px 0; margin-inline-start: 18px; border-inline-start: 1px solid var(--border); }
.nav-sub.closed { display: none; }
.nav-sub .bot-btn { font-size: 13.5px; padding: 8px 12px; }
.nav-sub .bot-btn.soon { opacity: .5; cursor: default; }
.nav-sub .bot-btn small { font-size: 10.5px; color: var(--muted); }
.nav-sub .search { width: 100%; box-sizing: border-box; margin: 2px 0; padding: 9px 14px; border: 1px solid var(--border); border-radius: 99px; background: var(--bg); background-image: none; text-align: start; direction: rtl; font-size: 13.5px; }
.nav-sub .proj-box { margin: 0; }
.nav-sub .proj-head { padding: 2px 6px 2px 10px; }
.conv-label { padding: 12px 18px 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.conv-actions button.pinned { color: var(--accent); display: grid; }
.conv:hover .conv-actions { display: flex; }
.conv-list { margin: 0; }

/* هدر: منو (راست) … مدل‌ها + آواتار (چپ) */
body[class*="amirai-theme-"] .topbar { flex-direction: row; direction: rtl; gap: 4px; padding: 8px 12px; }
.top-menu { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-elev); }
.top-right { position: relative; display: flex; align-items: center; gap: 8px; }
.top-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 13.5px; display: grid; place-items: center; border: 2px solid var(--bg-elev); box-shadow: 0 0 0 1px var(--border); }
.av-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 220px; padding: 6px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop .14s ease-out; display: flex; flex-direction: column; gap: 1px; }
.av-head { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 4px; } .av-head small { color: var(--muted); font-size: 12px; direction: ltr; text-align: right; }
.av-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 14px; text-align: start; } .av-menu button:hover { background: var(--hover); } .av-menu svg { width: 18px; height: 18px; color: var(--muted); }
body[class*="amirai-theme-"] .model-picker { position: relative; }
body[class*="amirai-theme-"] .model-btn { direction: rtl; flex-direction: row; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 99px; background: var(--bg-elev); }
body[class*="amirai-theme-"] .topbar .menu { inset-inline-start: auto; inset-inline-end: auto; left: 0; right: auto; direction: rtl; border-radius: 22px; min-width: 270px; }
body[class*="amirai-theme-"] .menu button { direction: rtl; border-radius: 14px; }
@media (max-width: 640px) { body[class*="amirai-theme-"] .topbar { flex-wrap: nowrap; } body[class*="amirai-theme-"] .topbar > .model-picker { flex-basis: auto; order: 0; } .topbar > .top-spacer { display: block !important; } }

/* نوار محیط‌ها (با «استودیو هوش مصنوعی» باز می‌شود): راست‌به‌چپ GPT ‹ Gemini ‹ Claude ‹ Gamma ‹ Flow */
.ws-bar { display: none; justify-content: center; padding: 0 12px 8px; }
.ws-bar.open { display: flex; animation: rise .2s ease; }
.ws-bar .ws-switch { position: relative !important; left: auto !important; transform: none !important; direction: rtl; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--bg-elev); }
.ws-bar .ws-switch button { font-size: 12px; padding: 7px 14px; }
.ws-bar .ws-switch button:not(.on) .ws-label { display: inline !important; }
@media (max-width: 520px) { .ws-bar .ws-switch button { padding: 7px 10px; } .ws-bar .ws-switch button:not(.on) .ws-label { display: none !important; } }

/* ورودی: [دیکته][صدا/ارسال][ ... متن ... ][+] */
body[class*="amirai-theme-"] .composer { direction: rtl; flex-direction: column; padding: 8px 10px; border-radius: 32px; background: var(--composer-bg); }
body[class*="amirai-theme-"] .composer-row { direction: rtl; display: flex; align-items: center; gap: 4px; width: 100%; }
body[class*="amirai-theme-"] .composer-row textarea { flex: 1; min-width: 0; direction: rtl; text-align: start; padding: 12px 8px; font-size: 16px; }
.rt-btn, .composer .send-btn { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--text); transition: background .15s, color .15s; }
.rt-btn:hover { background: var(--hover); }
.rt-btn svg { width: 21px; height: 21px; }
.dict-btn.on { color: #fff; background: #ea3943; animation: hdpulse 1.4s infinite; }
.vc-open { background: var(--accent-soft); color: var(--accent); }
body[class*="amirai-theme-"] .composer .send-btn { background: var(--accent); color: var(--accent-contrast); }
body[class*="amirai-theme-"] .composer .send-btn:hover { filter: brightness(1.1); background: var(--accent); }
body[class*="amirai-theme-"] .plus-btn { width: 42px; height: 42px; }
body[class*="amirai-theme-"] .plus-btn[aria-expanded="true"] { transform: none; }

/* منوی + */
.plus-menu { inset-inline-start: auto; left: 0; right: auto; width: min(340px, 94vw); padding: 10px; gap: 0; border-radius: 28px; direction: rtl; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pm-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 18px; font-size: 12.5px; font-weight: 500; color: var(--text); background: var(--hover); transition: background .15s, transform .1s; }
.pm-item:hover { background: var(--active); } .pm-item:active { transform: scale(.97); }
.pm-item svg { width: 24px; height: 24px; color: var(--accent); }
.pm-sep { height: 1px; background: var(--border); margin: 12px 4px; }
.pm-sws { display: flex; flex-direction: column; gap: 2px; }
.pm-sw { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; text-align: start; }
.pm-sw:hover { background: var(--hover); }
.pm-sw > svg { width: 21px; height: 21px; color: var(--muted); flex: none; } .pm-sw.on > svg { color: var(--accent); }
.pm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .pm-t b { font-size: 14px; font-weight: 600; } .pm-t small { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.pm-knob { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--border); flex: none; transition: background .2s; }
.pm-knob::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: inset-inline-start .2s; }
.pm-sw.on .pm-knob { background: var(--accent); } .pm-sw.on .pm-knob::after { inset-inline-start: 21px; }
.pm-tools { grid-template-columns: 1fr; gap: 0; }
.plus-menu .pm-tools .attach-btn { padding: 9px 12px; font-size: 13.5px; }
.pm-sep2 { margin: 8px 4px; }

/* حالت خالی و پیشنهادها */
body[class*="amirai-theme-"] .chips { align-items: stretch; }
body[class*="amirai-theme-"] .chip { text-align: start; }
body[class*="amirai-theme-"] .empty h1 { text-align: center; }
@media (max-width: 640px) {
	body[class*="amirai-theme-"] .composer-row { flex-wrap: nowrap; gap: 2px; }
	body[class*="amirai-theme-"] .composer-row textarea { order: 0; flex: 1 1 auto; width: auto; border: 0; margin: 0; padding: 12px 6px; min-height: 26px; }
	.rt-btn, .composer .send-btn, body[class*="amirai-theme-"] .plus-btn { width: 38px; height: 38px; }
	.plus-menu { left: -4px; }
}

/* v2.26: همبرگر منو در موبایل همیشه بالا-راست (قبلاً به‌دلیل order بعد از انتخابگر مدل می‌آمد) */
@media (max-width: 860px) {
	body[class*="amirai-theme-"] .topbar { direction: rtl; flex-direction: row; flex-wrap: nowrap; }
	body[class*="amirai-theme-"] .topbar > .top-menu { order: -3; flex: none; }
	body[class*="amirai-theme-"] .topbar > .top-move { order: -2; }
	body[class*="amirai-theme-"] .topbar > .top-title { order: -1; }
	body[class*="amirai-theme-"] .topbar > .model-picker { order: 0; flex-basis: auto; min-width: 0; }
	body[class*="amirai-theme-"] .topbar > .top-spacer { order: 1; display: block !important; flex: 1; }
	body[class*="amirai-theme-"] .topbar > .top-right { order: 2; flex: none; margin-inline-start: auto; }
}

/* ---------- قفل استودیوها بر اساس پلن ---------- */
.bot-btn.is-locked { opacity: .72; position: relative; }
.bot-btn.is-locked:hover { opacity: 1; }
.bot-btn .lk-badge { margin-inline-start: auto; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent); white-space: nowrap; }
html[data-mode="dark"] .bot-btn .lk-badge { color: #fbbf24; }
.wl-pc .wl-st { display: grid; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border, rgba(128,128,128,.3)); font-size: 12px; line-height: 1.7; }
.wl-pc .wl-st b { font-size: 11px; opacity: .7; letter-spacing: .02em; }

/* ---------- حساب کاربری (باکس رنگی پایین منو) ---------- */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--bg-elev); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.top-avbtn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; line-height: 0; }
.top-avbtn:focus-visible, .user-av:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-grp.pulse { animation: accPulse 1.4s ease-out; }
@keyframes accPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #f43f5e 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.acc-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 10px 10px; }
.acc-head { display: flex; align-items: center; gap: 12px; }
.acc-av { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad, var(--accent)); color: #fff; font-weight: 700; font-size: 20px; overflow: hidden; border: 2px solid var(--bg-elev); box-shadow: 0 0 0 1px var(--border); }
.acc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-head-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-head-t b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-head-t small { color: var(--muted); font-size: 11.5px; }
.acc-av-act, .acc-act { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-mini { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; border: 1px solid transparent; background: color-mix(in srgb, #f43f5e 16%, transparent); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.acc-mini.ghost { background: transparent; border-color: var(--border); }
.acc-mini svg { width: 14px; height: 14px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.acc-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acc-f > span { font-size: 11.5px; color: var(--muted); }
.acc-f .field { width: 100%; padding: 8px 10px; font-size: 13px; border-radius: 12px; min-width: 0; }
.acc-f .field.ro { opacity: .7; }
.acc-f:nth-last-child(-n+2) { grid-column: 1 / -1; }
.acc-save { padding: 8px 16px; font-size: 13px; }
.acc-st { color: var(--muted); font-size: 11.5px; }
@media (max-width: 380px) { .acc-grid { grid-template-columns: 1fr; } }

/* صفحه‌ی حساب کاربری */
.acc-page { max-width: 720px; margin: 0 auto; padding: 8px 4px 40px; }
.acc-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.acc-bar h2 { margin: 0; font-size: 20px; }
.acc-page .acc-body { padding: 16px; border: 1px solid var(--border); border-radius: 22px; background: var(--bg-elev); gap: 18px; }
.acc-page .acc-av { width: 88px; height: 88px; font-size: 28px; }
.acc-page .acc-f .field { padding: 10px 12px; font-size: 14px; }
.acc-page .acc-f:nth-last-child(-n+2) { grid-column: auto; }
@media (max-width: 560px) { .acc-page .acc-grid { grid-template-columns: 1fr; } }
