/* ArtinAI 3.3.4 — Editorial chat, approved design.
 * Assistant: no bubble, no card, one 2px blue accent rule on the RTL edge.
 * User: retains the compact neutral bubble from 3.3.3.
 * The action toolbar stays outside the message body and keeps all handlers.
 */
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row {
  margin-bottom:28px!important;
  min-width:0!important;
  direction:rtl!important;
}
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-editorial-card {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.artinai-body .artin-chat .n-editorial-heading {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:24px;
  margin:0 0 11px!important;
  padding:0!important;
  color:var(--text)!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.8!important;
  letter-spacing:0!important;
  text-align:right!important;
  direction:rtl!important;
}
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-msg.n-editorial-body {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  display:block!important;
  padding:0 15px 0 0!important;
  margin:0!important;
  border:0!important;
  border-right:2px solid #A9CFE4!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  color:var(--text)!important;
  line-height:1.95!important;
  text-align:right!important;
  direction:rtl!important;
  overflow:visible!important;
}
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content {
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  width:100%!important;
  min-width:0!important;
  line-height:inherit!important;
  overflow-wrap:anywhere!important;
}
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content p {
  margin:0 0 13px!important;
  line-height:1.95!important;
}
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content p:last-child {margin-bottom:0!important}
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content h1,
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content h2,
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content h3 {
  text-align:right!important;
  line-height:1.7!important;
  margin:15px 0 7px!important;
}
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content :is(ul,ol) {
  margin:8px 0 14px!important;
  padding-inline-start:23px!important;
  line-height:1.9!important;
}
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content .n-table-wrap,
.artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-message-content .n-code-block {
  max-width:100%!important;
  box-sizing:border-box!important;
  margin-block:12px!important;
}
.artinai-body .artin-chat .n-editorial-actions {
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  direction:rtl!important;
  padding:0!important;
  margin:9px 0 0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.artinai-body .artin-chat .n-editorial-actions .n-message-toolbar,
.artinai-body .artin-chat .n-editorial-actions .n-message-toolbar.n-tools-place-inside-top,
.artinai-body .artin-chat .n-editorial-actions .n-message-toolbar.n-tools-place-inside-bottom,
.artinai-body .artin-chat .n-editorial-actions .n-message-toolbar.n-tools-place-outside-bottom {
  align-self:flex-start!important;
  justify-content:flex-start!important;
  margin:0!important;
  padding:0!important;
  width:fit-content!important;
  max-width:100%!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  gap:2px!important;
}
.artinai-body .artin-chat .n-editorial-actions .n-message-toolbar .n-msg-action,
.artinai-body .artin-chat .n-editorial-actions .n-message-toolbar .n-message-more>summary {
  color:var(--muted)!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.artinai-body .artin-chat .n-editorial-actions .n-message-toolbar .n-msg-action:hover,
.artinai-body .artin-chat .n-editorial-actions .n-message-toolbar .n-message-more>summary:hover {
  background:var(--hover)!important;
  color:var(--text)!important;
}
/* Use the same accent in dark mode, with enough contrast against dark surfaces. */
html[data-theme="dark"] .artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-msg.n-editorial-body,
html[data-artin-theme="dark"] .artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-msg.n-editorial-body {
  border-right-color:#4F7892!important;
}
@media(max-width:760px) {
  .artinai-body .artin-chat .n-msg-row.ai.n-editorial-row {margin-bottom:23px!important}
  .artinai-body .artin-chat .n-msg-row.ai.n-editorial-row .n-msg.n-editorial-body {padding-right:11px!important}
  .artinai-body .artin-chat .n-editorial-heading {margin-bottom:8px!important}
  .artinai-body .artin-chat .n-editorial-actions {margin-top:7px!important}
}
@media(prefers-reduced-motion:reduce){.artinai-body .artin-chat .n-editorial-actions *{transition:none!important}}
