/* ArtinAI 3.2.2 — conversation-first, RTL minimal sidebar. */
/* Keep logo and collapse control at the top; no bulky navigation links. */
.artinai-body .artin-chat .n-gpt-sidebar-head{margin-bottom:5px!important;padding:5px 7px!important;min-height:54px!important}
.artinai-body .artin-chat .n-side-shell{gap:0!important}
.artinai-body .artin-chat .n-sidebar-scroll.n-sidebar-history-only{flex:1 1 auto!important;min-height:0!important;padding:0 2px!important;overflow-y:auto!important;overflow-x:hidden!important}
.artinai-body .artin-chat .n-sidebar-scroll .n-inline-history{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.artinai-body .artin-chat .n-history-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:43px!important;padding:5px 9px!important;margin:0 0 6px!important;border:0!important;background:transparent!important}
.artinai-body .artin-chat .n-history-heading>span{display:flex!important;align-items:center!important;min-width:0!important;white-space:nowrap!important;font-size:12px!important;color:var(--muted)!important}
.artinai-body .artin-chat .n-history-heading>span b{font-size:12px!important;font-weight:650!important;color:var(--muted)!important}
.artinai-body .artin-chat .n-history-head-actions{display:flex!important;align-items:center!important;gap:3px!important;margin-inline-start:auto!important}
.artinai-body .artin-chat .n-history-head-actions button{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;display:grid!important;place-items:center!important;padding:0!important;margin:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--muted)!important;font-size:0!important;cursor:pointer!important;box-shadow:none!important}
.artinai-body .artin-chat .n-history-head-actions button:hover{background:var(--hover)!important;color:var(--text)!important}
.artinai-body .artin-chat .n-history-head-actions button .n-svg,.artinai-body .artin-chat .n-history-head-actions button svg{width:17px!important;height:17px!important;display:block!important;stroke:currentColor!important;stroke-width:1.7!important;fill:none!important}
.artinai-body .artin-chat .n-history-head-actions button:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
.artinai-body .artin-chat .n-history-list{margin-top:0!important;padding-top:0!important}
.artinai-body .artin-chat .n-history-row{min-height:37px!important;margin:1px 0!important}
.artinai-body .artin-chat .n-history-item{height:37px!important;min-height:37px!important;font-size:12px!important}
.artinai-body .artin-chat .n-minimal-profile-dock{margin-top:auto!important}
/* Main conversation header: model picker at the right, quick actions at the far left. */
.artinai-body .artin-chat .n-minimal-chat-header{justify-content:space-between!important;direction:rtl!important}
.artinai-body .artin-chat .n-minimal-chat-heading-group{order:0!important;min-width:0!important;flex:0 1 auto!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions{order:1!important;margin-inline-start:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:3px!important;flex:none!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions button{width:38px!important;height:38px!important;min-height:38px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important;color:var(--text)!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions button:hover{background:var(--hover)!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions button .n-svg,.artinai-body .artin-chat .n-minimal-chat-head-actions button svg{width:19px!important;height:19px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.artinai-body .artin-chat .n-minimal-chat-head-actions button:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
/* Mobile: keep the existing slide-out sidebar, avoid duplicate full-size nav rows. */
@media(max-width:1024px){
 .artinai-body .artin-chat .n-sidebar{width:min(292px,calc(100vw - 28px))!important}
 .artinai-body .artin-chat .n-minimal-chat-head-actions button{width:34px!important;height:34px!important;min-height:34px!important}
 .artinai-body .artin-chat .n-history-actions{opacity:1!important;visibility:visible!important}
}
@media(max-width:420px){
 .artinai-body .artin-chat .n-minimal-chat-header{padding-inline:9px!important}
 .artinai-body .artin-chat .n-minimal-chat-identity{max-width:calc(100vw - 140px)!important;min-width:0!important}
 .artinai-body .artin-chat .n-minimal-chat-model{max-width:66px!important;text-overflow:ellipsis!important;overflow:hidden!important}
}
