#chatForm.composer,#chatForm.composer.is-recording{position:relative!important;width:100%;max-width:760px;margin:0 auto;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;min-height:0!important}
#chatForm .composer-bar{direction:ltr;display:flex!important;align-items:center!important;gap:6px;min-height:44px!important;padding:5px 8px!important;border-radius:14px!important;background:var(--paper,#fff)!important;border:1px solid var(--line,#d9dde3)!important;box-shadow:none!important}
#chatForm .composer-bar:focus-within{border-color:var(--green,#5aa597)!important}
#chatForm .composer-bar>textarea{flex:1 1 auto;min-width:0;min-height:32px;max-height:160px;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;resize:none;padding:6px 4px!important;margin:0;font:inherit;font-size:calc(15px * var(--font-scale, 1));line-height:1.5;color:var(--ink,#1b1f23);direction:rtl;unicode-bidi:plaintext}
#chatForm .composer-tool,#chatForm .voice-button,#chatForm .send-button,#chatForm .voice-cancel,#chatForm .voice-send{width:32px!important;height:32px!important;flex:0 0 32px;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--ink,#1b1f23)!important;display:grid!important;place-items:center;padding:0!important;margin:0;cursor:pointer;box-shadow:none!important;transition:background .15s}
#chatForm .composer-tool:hover,#chatForm .voice-button:hover,#chatForm .send-button:hover,#chatForm .voice-cancel:hover,#chatForm .voice-send:hover{background:var(--soft,#eef1f4)!important}
#chatForm .composer-bar svg{width:18px;height:18px;display:block}
#chatForm:not(.has-text) .send-button{opacity:.45}
#chatForm .composer-right{display:flex!important;align-items:center;gap:4px;flex:0 0 auto}
#chatForm .enter-hint{display:none!important}
#chatForm.is-recording .composer-bar>.composer-tool,#chatForm.is-recording .composer-bar>textarea,#chatForm.is-recording .composer-bar>.composer-right,#chatForm.is-busy .composer-bar>.composer-tool,#chatForm.is-busy .composer-bar>textarea,#chatForm.is-busy .composer-bar>.composer-right{display:none!important}
#chatForm .voice-recorder[hidden]{display:none!important}
#chatForm .voice-recorder:not([hidden]){display:flex!important;align-items:center;gap:8px;flex:1 1 auto;min-width:0;direction:ltr}
#chatForm .voice-send{order:-1}
#chatForm .voice-cancel{order:1}
#chatForm .voice-live{order:0;flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:10px;direction:ltr;padding:0!important}
#chatForm .voice-live-label{order:2;margin:0!important;display:flex;align-items:center}
#chatForm .voice-live-label .recording-dot,#chatForm .voice-live-label span[data-i18n]{display:none!important}
#chatForm .voice-live-label time{font:500 13px 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;color:var(--ink,#1b1f23);min-width:40px;text-align:center;direction:ltr;unicode-bidi:isolate}
#chatForm .voice-waveform{order:1;flex:1 1 auto;height:28px;display:flex;align-items:center;justify-content:flex-end;gap:3px;overflow:hidden}
#chatForm .voice-waveform i{display:block;width:3px;height:24px;flex:0 0 3px;border-radius:3px;background:var(--muted,#667);opacity:1;filter:none;transform:scaleY(.12);transition:transform 70ms linear}
#voiceStatus{display:none}
#chatForm.is-busy #voiceStatus{display:flex;flex:1 1 auto;align-items:center;justify-content:center;gap:10px;min-height:32px;direction:rtl;font-size:calc(14px * var(--font-scale, 1));color:var(--muted,#667)}
#voiceStatus .vs-spin{width:14px;height:14px;border:2px solid var(--line,#d9dde3);border-top-color:var(--ink,#1b1f23);border-radius:50%;animation:vsspin .8s linear infinite}
@keyframes vsspin{to{transform:rotate(360deg)}}
#voiceToast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);background:var(--ink,#1b1f23);color:var(--paper,#fff);padding:8px 14px;border-radius:10px;font-size:calc(13px * var(--font-scale, 1));z-index:9999;max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s}
#voiceToast.show{opacity:1}
#chatForm .voice-live{order:0}
#chatForm .voice-cancel{order:1;border-radius:50%!important}
#chatForm .voice-send{order:2;border-radius:50%!important;background:rgba(128,128,128,.2)!important}
#chatForm .voice-send:hover{background:rgba(128,128,128,.3)!important}
#chatForm .composer-bar{border:1px solid var(--line,#e6e3dc)!important}
.message-avatar.assistant-bot-mark{overflow:hidden!important;border-radius:50%!important;background:transparent!important}
.message-row.assistant .message-avatar.assistant-bot-mark img{object-fit:cover!important;background:transparent!important;border-radius:50%}

/* armix plus menu: three small round icons */
#composerMenu{display:flex!important;flex-direction:row;direction:ltr;gap:8px;min-width:0;padding:0;border:0;background:transparent;box-shadow:none;inset-inline-start:auto!important;left:7px;bottom:calc(100% + 8px)}
#composerMenu[hidden]{visibility:hidden;pointer-events:none}
#composerMenu button{width:34px;height:34px;min-height:0;padding:0;justify-content:center;border:1px solid var(--line);border-radius:50%;background:var(--paper);box-shadow:0 2px 8px rgba(0,0,0,.08);opacity:1;transform:none;transition:opacity .26s ease,transform .26s ease,background .15s}
#composerMenu[hidden] button{opacity:0;transform:translateX(-14px);transition-delay:0s}
#composerMenu button:nth-child(2){transition-delay:.05s}
#composerMenu button:nth-child(3){transition-delay:.1s}
#composerMenu svg{width:17px;height:17px}
#attachButton{transition:transform .3s cubic-bezier(.3,1.4,.5,1)}
#attachButton[aria-expanded="true"]{transform:rotate(45deg)}

/* armix flat messages */
.message-bubble, .message-row.user .message-bubble { background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: 0 !important; padding: 4px 2px !important; color: var(--ink) !important; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.message-row.user .message-bubble { opacity: .7; }
.message-bubble, .message-row.user .message-bubble, .message-meta { text-shadow: none !important; }
.message-row.user .message-bubble { opacity: .85 !important; }
.chat-layout, .messages, .messages *, .message-row, .message-body { text-shadow: none !important; filter: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.message-bubble, .message-row.user .message-bubble { opacity: 1 !important; }
.messages { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.messages .message-bubble, .messages .message-bubble * { color: #111 !important; opacity: 1 !important; -webkit-font-smoothing: antialiased; }
body[data-theme="dark"] .messages .message-bubble, body[data-theme="dark"] .messages .message-bubble * { color: #f2f2f2 !important; }
.messages .message-row, .messages .message-body { opacity: 1 !important; }
.messages .message-meta { color: #555 !important; }
.message-bubble, .message-row.user .message-bubble { border: 0.5px solid rgba(127,127,127,.10) !important; border-radius: 8px !important; background: transparent !important; padding: 8px 12px !important; }
.speak-button { background: transparent !important; border: 0 !important; box-shadow: none !important; opacity: .18 !important; color: #444 !important; filter: grayscale(1) !important; }
.speak-button:hover { opacity: .45 !important; }
.messages .message-bubble, .messages .message-bubble * { font-weight: 500 !important; color: #000 !important; }
body[data-theme="dark"] .messages .message-bubble, body[data-theme="dark"] .messages .message-bubble * { color: #fff !important; }
.speech-controls.speaking .speak-button { font-size: 1.7em !important; line-height: 1 !important; }
.settings-rail-items > :nth-child(13) { display: none !important; }
html, body, .messages, .messages * { -webkit-font-smoothing: auto !important; -moz-osx-font-smoothing: auto !important; text-rendering: auto !important; }
.messages .message-bubble, .messages .message-bubble * { font-weight: 500 !important; }

/* armix chat v1: my message soft fill, assistant thin line */
.messages .message-row.user .message-bubble { background: rgba(127,127,127,.09) !important; border: 0 !important; border-radius: 12px !important; padding: 10px 18px !important; }
.messages .message-row.assistant .message-bubble { background: transparent !important; border: 1px solid rgba(127,127,127,.25) !important; border-radius: 12px !important; padding: 10px 18px !important; }

/* armix white themes */
body:is([data-theme="white-pure"],[data-theme="white-1"],[data-theme="white-2"],[data-theme="white-3"],[data-theme="snow"],[data-theme="snow-blue"],[data-theme="snow-mint"],[data-theme="cream"],[data-theme="milk-light"],[data-theme="milk"]) { color-scheme: light; --ink:#1f2328; --muted:#5f6368; --line:rgba(0,0,0,.10); --soft:#ffffff; --green:#2f5f37; --green-deep:#1f4527; --green-soft:#e4efe5; --gold:#8b682f; --gold-soft:#eee4d0; --surface-glass:rgba(255,255,255,.84); }
body[data-theme="white-pure"] { --paper:#FFFFFF; --canvas:#F6F6F4; }
body[data-theme="white-1"] { --paper:#FEFEFD; --canvas:#F5F5F3; }
body[data-theme="white-2"] { --paper:#FEFDFB; --canvas:#F5F4F1; }
body[data-theme="white-3"] { --paper:#FDFCFA; --canvas:#F4F3F0; }
body[data-theme="snow"] { --paper:#FCFBF8; --canvas:#F3F2EE; }
body[data-theme="snow-blue"] { --paper:#F6F9FB; --canvas:#EDF1F4; }
body[data-theme="snow-mint"] { --paper:#F6FAF7; --canvas:#EDF2EE; }
body[data-theme="cream"] { --paper:#F9F7F2; --canvas:#EFEDE6; }
body[data-theme="milk-light"] { --paper:#F5F2EA; --canvas:#EBE8DF; }
body[data-theme="milk"] { --paper:#F0ECE0; --canvas:#E6E2D5; }
body:is([data-theme="white-pure"],[data-theme="white-1"],[data-theme="white-2"],[data-theme="white-3"],[data-theme="snow"],[data-theme="snow-blue"],[data-theme="snow-mint"],[data-theme="cream"],[data-theme="milk-light"],[data-theme="milk"]) .main-panel { background-color:var(--canvas); background-image:linear-gradient(180deg,color-mix(in srgb,var(--paper) 78%,transparent),color-mix(in srgb,var(--paper) 70%,transparent)),var(--armix-background); }

/* armix short voice bar: about 3.5cm, right side */
#chatForm .voice-recorder:not([hidden]) { flex: 0 0 auto !important; margin-left: auto !important; width: auto !important; }
#chatForm .voice-live { flex: 0 0 auto !important; }
#chatForm .voice-waveform { flex: 0 0 130px !important; width: 130px !important; }

/* armix lighter lines: level 5 */
.messages .message-row.user .message-bubble { background: rgba(127,127,127,.05) !important; }
.messages .message-row.assistant .message-bubble { border: 1px solid rgba(127,127,127,.08) !important; }
#chatForm .composer-bar { border: 1px solid rgba(127,127,127,.08) !important; }

/* armix: hide second workspace at boot */
body:not(.armix-ready) .armix-main-workspace { display: none !important; }

/* ابزارها: صفحه‌ی بزرگ وسط */
body .armix-main-workspace.open{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(900px,94vw)!important;height:min(82vh,760px)!important;max-height:82vh!important;z-index:9996!important;border-radius:18px!important;box-shadow:0 0 0 100vmax rgba(0,0,0,.28),0 12px 40px rgba(0,0,0,.2)!important}

/* قدم ۱: برداشتن کره‌ی زمین و ذره‌بین قدیمی از نوار پیام */
#armixBarNews,#armixBarSearch,#armixNewsMenu{display:none!important}
html body #chatForm .composer-bar #armixBarNews,html body #chatForm .composer-bar #armixBarSearch,html body #armixNewsMenu{display:none!important;visibility:hidden!important;width:0!important;height:0!important;overflow:hidden!important}
html body .settings-icon-rail,html body .rail-profile-anchor,html body #profileButton{display:none!important}
html:root{--armix-rail-width:0px!important}
html body .sidebar{display:none!important}
html body .app-shell,html body.sidebar-collapsed .app-shell{grid-template-columns:minmax(0,1fr)!important}

/* مخفی کردن اسکرول‌بار پیام‌ها */
html body .messages{scrollbar-width:none!important;-ms-overflow-style:none!important}
html body .messages::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

/* برداشتن نوار سفید چپ */
html body .app-shell{padding:0!important;margin:0!important;max-width:none!important;width:100%!important}
html body .main-panel{margin:0!important;padding-left:0!important;padding-inline-start:0!important;width:100%!important;max-width:none!important}

/* پنهان کردن عکس‌ها و اسم و ساعت پیام‌ها */
html body .message-avatar{display:none!important}
html body .messages .message-meta{display:none!important}
