/* محیط AMIR FLOW — ظاهر شبیه Google Flow: تاریک مطلق، منوی تخت، ورودی پایین صفحه */
:root[data-ws="flow"], :root[data-ws="flow"][data-mode="light"], :root[data-ws="flow"][data-mode="dark"] {
	--bg:#000000;--bg-side:#000000;--bg-elev:#161616;--text:#f1f1f1;--muted:#9a9a9a;--border:#262626;--hover:#1a1a1a;--active:#262626;
	--accent:#ffffff;--accent-soft:#1c1c1c;--accent-contrast:#000000;--user-bubble:#1c1c1c;--composer-bg:#141414;--composer-border:#262626;--composer-radius:24px;
	--send-bg:#262626;--send-fg:#f1f1f1;--shadow:0 2px 14px rgba(0,0,0,.5);--shadow-lg:0 18px 50px rgba(0,0,0,.7);
	--code-bg:#0f0f0f;--code-head:#1c1c1c;--code-text:#e8e8e8;--code-muted:#9a9a9a;color-scheme:dark;
}
@media (prefers-color-scheme: dark) { :root[data-ws="flow"]:not([data-mode="light"]) {
	--bg:#000000;--bg-side:#000000;--bg-elev:#161616;--text:#f1f1f1;--muted:#9a9a9a;--border:#262626;--hover:#1a1a1a;--active:#262626;
	--accent:#ffffff;--accent-soft:#1c1c1c;--accent-contrast:#000000;--user-bubble:#1c1c1c;--composer-bg:#141414;--composer-border:#262626;--composer-radius:24px;
	--send-bg:#262626;--send-fg:#f1f1f1;--shadow:0 2px 14px rgba(0,0,0,.5);--shadow-lg:0 18px 50px rgba(0,0,0,.7);
	--code-bg:#0f0f0f;--code-head:#1c1c1c;--code-text:#e8e8e8;--code-muted:#9a9a9a;color-scheme:dark;
} }

.amirai-theme-flow .app { direction: ltr; }
.amirai-theme-flow .sidebar { width: 240px; padding: 12px 12px; gap: 2px; border-inline-end: 0; background: #000; }
.amirai-theme-flow .app.side-collapsed .sidebar { margin-inline-start: -240px; }
.amirai-theme-flow .brand-sub, .amirai-theme-flow .disclaimer, .amirai-theme-flow .side-head .brand-mark { display: none; }
.amirai-theme-flow .side-head { padding: 2px 4px 10px; }
.amirai-theme-flow .brand-title { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.amirai-theme-flow .topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.amirai-theme-flow .main { background: #000; }
.amirai-theme-flow .side-foot { border-top: 0; }
.amirai-theme-flow .avatar { background: #262626; color: #f1f1f1; }

.fl-side { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; direction: ltr; }
.fl-side hr { border: 0; border-top: 1px solid #262626; margin: 8px 0; width: 100%; }
.fl-grow { flex: 1; }
.fl-proj { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; font-size: 14.5px; font-weight: 500; }
.fl-proj span { flex: 1; white-space: nowrap; }
.fl-proj button { background: none; border: 0; color: var(--text); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.fl-proj button svg { width: 20px; height: 20px; }
.fl-proj button:hover { background: #1a1a1a; }
.fl-nav { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--text); font: 500 14px/1 inherit; font-family: inherit; text-align: start; cursor: pointer; }
.fl-nav svg { width: 22px; height: 22px; flex: none; }
.fl-nav span { flex: 1; }
.fl-nav em { display: grid; font-style: normal; }
.fl-nav em svg { width: 18px; height: 18px; }
.fl-nav:hover { background: #141414; }
.fl-nav.on { background: #262626; }

.studio-mode .thread { overflow: hidden; }
.fl-wrap { direction: ltr; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 14px 24px 12px; box-sizing: border-box; font-family: "Google Sans", Roboto, system-ui, sans-serif; }
.fl-top { width: 100%; max-width: 1100px; display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; flex: none; }
.fl-search { width: min(430px, 100%); height: 40px; border-radius: 20px; background: #141414; border: 1px solid #1f1f1f; display: flex; align-items: center; padding: 0 14px; color: var(--muted); cursor: pointer; }
.fl-search svg { width: 18px; height: 18px; }
.fl-round { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #1a1a1a; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.fl-round svg { width: 18px; height: 18px; }
.fl-top-r { position: absolute; inset-inline-end: 0; display: flex; align-items: center; gap: 6px; }
.fl-top-r button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.fl-top-r button svg { width: 22px; height: 22px; }
.fl-top-r button:hover { background: #1a1a1a; }
.fl-pro { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: #262626; letter-spacing: .04em; }
.fl-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: #d9d9d9; }
.fl-bloom { width: 76px; height: 76px; color: #fff; filter: drop-shadow(0 0 12px rgba(255,255,255,.18)); }
.fl-bloom svg { width: 100%; height: 100%; }
.fl-hi { font-size: 22px; font-weight: 400; color: #cfcfcf; text-align: center; }
.fl-prompt { width: min(600px, 100%); background: #141414; border: 1px solid #1f1f1f; border-radius: 24px; padding: 18px 18px 12px; cursor: text; flex: none; }
.fl-ph { color: #8a8a8a; font-size: 15px; padding: 0 2px 20px; }
.fl-prow { display: flex; align-items: center; gap: 8px; }
.fl-ico { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #1f1f1f; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.fl-ico svg { width: 17px; height: 17px; }
.fl-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: #1f1f1f; color: var(--text); font: 500 12.5px/1 inherit; font-family: inherit; cursor: pointer; }
.fl-pill svg { width: 13px; height: 13px; }
.fl-go { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #262626; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.fl-go svg { width: 18px; height: 18px; }
.fl-note { color: #6f6f6f; font-size: 11.5px; padding-top: 10px; flex: none; }
@media (max-width: 760px) { .fl-top-r { display: none; } .fl-wrap { padding: 8px 12px 10px; } .fl-pill span:first-child { font-size: 11.5px; } }
.amirai-theme-flow .pm-list svg { background: linear-gradient(135deg,#7c3aed,#ff6b8b); color: #fff; }
