/* ArtinAI 3.3.1 — macOS Unified Brand (approved design 2)
   Scoped to the chat sidebar only. Existing admin-uploaded logo URLs are used by app.js. */
.artinai-body .artin-chat .n-sidebar.n-unified-sidebar .n-unified-brand-head{
  direction:rtl!important;
  padding:6px 8px!important;
  gap:5px!important;
  align-items:center!important;
  justify-content:space-between!important;
  overflow:hidden!important;
}
.artinai-body .artin-chat:not(.sidebar-collapsed) .n-unified-brand-head .n-sidebar-brand-lockup{
  order:0!important;
  direction:rtl!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex:0 1 auto!important;
  width:auto!important;
  max-width:140px!important;
  min-width:0!important;
  height:36px!important;
  min-height:36px!important;
  padding:3px 7px!important;
  gap:7px!important;
  border-radius:10px!important;
  border:1px solid var(--artin-border)!important;
  background:var(--surface)!important;
  box-shadow:0 1px 2px rgba(22,38,55,.035)!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.artinai-body .artin-chat .n-unified-brand-head .n-sidebar-brand-logo{
  width:27px!important;
  height:27px!important;
  flex:0 0 27px!important;
  border-radius:7px!important;
  background:transparent!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
.artinai-body .artin-chat .n-unified-brand-head .n-sidebar-brand-logo img{
  display:block!important;
  width:26px!important;
  height:26px!important;
  max-width:26px!important;
  max-height:26px!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:5px!important;
}
.artinai-body .artin-chat .n-unified-brand-head .n-sidebar-brand-copy{
  display:block!important;
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:95px!important;
  overflow:hidden!important;
}
.artinai-body .artin-chat .n-unified-brand-head .n-sidebar-brand-copy b{
  display:block!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.4!important;
  letter-spacing:0!important;
  color:var(--text)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.artinai-body .artin-chat .n-unified-brand-head .n-sidebar-brand-copy small{display:none!important}
.artinai-body .artin-chat .n-unified-brand-head .n-brand-monogram,
.artinai-body .artin-chat .n-unified-rail-logo .n-brand-monogram{
  width:26px;height:26px;border-radius:7px;
  display:grid;place-items:center;
  background:color-mix(in srgb,var(--accent) 13%,var(--surface));
  color:var(--accent);font:700 15px/1 system-ui,sans-serif;
}
.artinai-body .artin-chat .n-unified-brand-head .n-unified-head-actions{
  order:1!important;flex:0 0 auto!important;display:flex!important;
  flex-direction:row!important;align-items:center!important;gap:2px!important;
  margin:0!important;min-width:0!important;
}
.artinai-body .artin-chat .n-unified-brand-head .n-unified-head-actions .n-unified-action,
.artinai-body .artin-chat .n-unified-brand-head .n-unified-head-actions .n-sidebar-collapse{
  width:30px!important;min-width:30px!important;height:34px!important;min-height:34px!important;
  border-radius:8px!important;
}
.artinai-body .artin-chat .n-unified-brand-head .n-unified-head-actions .n-unified-action:hover,
.artinai-body .artin-chat .n-unified-brand-head .n-unified-head-actions .n-sidebar-collapse:hover{
  background:var(--surface)!important;
}
/* Closed rail uses exactly the same configured identity image. */
.artinai-body .artin-chat.sidebar-collapsed .n-unified-rail-logo{
  background:var(--surface)!important;
  border:1px solid var(--artin-border)!important;
  box-sizing:border-box!important;
}
.artinai-body .artin-chat.sidebar-collapsed .n-unified-rail-logo img{
  display:block!important;max-width:27px!important;max-height:27px!important;
  width:27px!important;height:27px!important;object-fit:contain!important;
}
@media(max-width:1024px){
  .artinai-body .artin-chat .n-unified-brand-head .n-sidebar-brand-lockup{max-width:140px!important}
}

/* 3.4.1 — long administrator-entered copy must not break the home layout. */
.artinai-body .artin-chat .n-welcome-subtitle,.artinai-body .artin-chat .n-home-intro-widget p{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.8!important}
.artinai-body .artin-chat .n-home-intro-widget,.artinai-body .artin-chat .n-welcome-area{min-width:0!important;max-width:100%!important}
